Harmonize readelf's output for version sections.
[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,
f948b2de 7# 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019
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; \
f948b2de
NC
160 GDC="$(GDC_FOR_BUILD)"; export GDC; \
161 GDCFLAGS="$(GDCFLAGS_FOR_BUILD)"; export GDCFLAGS; \
378fce5b
DD
162 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
163 LD="$(LD_FOR_BUILD)"; export LD; \
164 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
165 NM="$(NM_FOR_BUILD)"; export NM; \
166 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
0c24b341
NC
167 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
168 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
50212802 169
6641ce42 170# These variables must be set on the make command line for directories
2440009d 171# built for the build system to override those in BASE_FLAGS_TO_PASS.
6641ce42
JM
172EXTRA_BUILD_FLAGS = \
173 CFLAGS="$(CFLAGS_FOR_BUILD)" \
174 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
175
50212802
NN
176# This is the list of directories to built for the host system.
177SUBDIRS = @configdirs@
911e63d0 178TARGET_CONFIGDIRS = @target_configdirs@
50212802
NN
179# This is set by the configure script to the arguments to use when configuring
180# directories built for the host system.
181HOST_CONFIGARGS = @host_configargs@
b00612cc
PB
182# Host programs are put under this directory, which is . except if building
183# with srcdir=..
184HOST_SUBDIR = @host_subdir@
378fce5b 185# This is the list of variables to export in the environment when
be01d343
PB
186# configuring subdirectories for the host system. We need to pass
187# some to the GCC configure because of its hybrid host/target nature.
378fce5b 188HOST_EXPORTS = \
6a9cf61e 189 $(BASE_EXPORTS) \
378fce5b 190 CC="$(CC)"; export CC; \
da888c87 191 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
378fce5b
DD
192 CFLAGS="$(CFLAGS)"; export CFLAGS; \
193 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
194 CXX="$(CXX)"; export CXX; \
195 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1b05fbbd 196 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
9b980aa1 197 GOC="$(GOC)"; export GOC; \
f948b2de 198 GDC="$(GDC)"; export GDC; \
378fce5b
DD
199 AR="$(AR)"; export AR; \
200 AS="$(AS)"; export AS; \
201 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
202 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
203 LD="$(LD)"; export LD; \
e8a5fa9c 204 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
378fce5b
DD
205 NM="$(NM)"; export NM; \
206 RANLIB="$(RANLIB)"; export RANLIB; \
207 WINDRES="$(WINDRES)"; export WINDRES; \
0c24b341 208 WINDMC="$(WINDMC)"; export WINDMC; \
378fce5b 209 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
95b6a1f2 210 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
f948b2de 211 OTOOL="$(OTOOL)"; export OTOOL; \
b121d7d4 212 READELF="$(READELF)"; export READELF; \
be01d343
PB
213 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
214 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
215 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
216 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
217 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
218 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
6b91c541 219 OBJCOPY_FOR_TARGET="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY_FOR_TARGET; \
f948b2de 220 OTOOL_FOR_TARGET="$(OTOOL_FOR_TARGET)"; export OTOOL_FOR_TARGET; \
be01d343 221 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
b121d7d4 222 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
378fce5b 223 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
e8a5fa9c 224 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
378fce5b 225 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02 226 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1b6c0831 227 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
7ec59b9e 228 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
22121df0
L
229 LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
230 LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
4849dfd8 231 XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \
f70224b5
PB
232@if gcc-bootstrap
233 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
234@endif gcc-bootstrap
e90269c8 235 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
378fce5b 236
1f53ca9a
AO
237POSTSTAGE1_CXX_EXPORT = \
238 CXX='$(CXX)'; export CXX; \
239 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
240@if target-libstdc++-v3-bootstrap
241# Override the above if we're bootstrapping C++.
242POSTSTAGE1_CXX_EXPORT = \
d2489204 243 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
1f53ca9a 244 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
1d14850f 245 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
ffdd6afc 246 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
abca8d87 247 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
248 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
249 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$s/libstdc++-v3/libsupc++ \
ffdd6afc
ILT
250 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
251 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
252 export CXX; \
1f53ca9a
AO
253 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
254@endif target-libstdc++-v3-bootstrap
255
378fce5b 256# Similar, for later GCC stages.
d545f33b 257POSTSTAGE1_HOST_EXPORTS = \
7ffa0b57 258 $(HOST_EXPORTS) \
b00612cc 259 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
1b05fbbd
AO
260 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
261 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
262 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
1f53ca9a 263 $(POSTSTAGE1_CXX_EXPORT) \
1b6c0831 264 $(LTO_EXPORTS) \
f948b2de
NC
265 GDC="$$r/$(HOST_SUBDIR)/prev-gcc/gdc$(exeext) -B$$r/$(HOST_SUBDIR)/prev-gcc/ \
266 -B$(build_tooldir)/bin/ $(GDC_FLAGS_FOR_TARGET) \
267 -B$$r/prev-$(TARGET_SUBDIR)/libphobos/src \
268 -I$$r/prev-$(TARGET_SUBDIR)/libphobos/libdruntime -I$$s/libphobos/libdruntime \
269 -L$$r/prev-$(TARGET_SUBDIR)/libphobos/src/.libs \
270 -L$$r/prev-$(TARGET_SUBDIR)/libphobos/libdruntime/.libs"; \
271 export GDC; \
272 GDC_FOR_BUILD="$$GDC"; export GDC_FOR_BUILD; \
e8a5fa9c
RW
273 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
274 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
275 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
50212802 276
50212802
NN
277# Target libraries are put under this directory:
278TARGET_SUBDIR = @target_subdir@
279# This is set by the configure script to the arguments to use when configuring
280# directories built for the target.
a7254363 281TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
378fce5b 282# This is the list of variables to export in the environment when
f2b2dd91 283# configuring subdirectories for the target system.
378fce5b 284BASE_TARGET_EXPORTS = \
6a9cf61e 285 $(BASE_EXPORTS) \
378fce5b 286 AR="$(AR_FOR_TARGET)"; export AR; \
be01d343 287 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1b05fbbd
AO
288 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
289 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
378fce5b 290 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
06bcb89d 291 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1b05fbbd 292 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1b05fbbd 293 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
e552509b 294 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
f948b2de 295 GDC="$(GDC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GDC; \
378fce5b 296 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
be01d343 297 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
378fce5b 298 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7e0f7140 299 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
be01d343 300 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
5ae72758 301 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
6b91c541 302 OBJCOPY="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY; \
f948b2de 303 OTOOL="$(OTOOL_FOR_TARGET)"; export OTOOL; \
378fce5b 304 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
b121d7d4 305 READELF="$(READELF_FOR_TARGET)"; export READELF; \
7e0f7140 306 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
315b3b02 307 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0c24b341 308 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f2b2dd91
RW
309@if gcc-bootstrap
310 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
311@endif gcc-bootstrap
911e63d0
JR
312 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
313 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
378fce5b
DD
314
315RAW_CXX_TARGET_EXPORTS = \
316 $(BASE_TARGET_EXPORTS) \
317 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
1b05fbbd 318 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
378fce5b
DD
319
320NORMAL_TARGET_EXPORTS = \
321 $(BASE_TARGET_EXPORTS) \
1b05fbbd 322 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
50212802 323
4b1cb4fe
DD
324# Where to find GMP
325HOST_GMPLIBS = @gmplibs@
326HOST_GMPINC = @gmpinc@
327
4849dfd8 328# Where to find isl
1b6c0831 329HOST_ISLLIBS = @isllibs@
7ec59b9e 330HOST_ISLINC = @islinc@
e28c595f 331
700d40ca
ILT
332# Where to find libelf
333HOST_LIBELFLIBS = @libelflibs@
334HOST_LIBELFINC = @libelfinc@
335
50212802
NN
336# ----------------------------------------------
337# Programs producing files for the BUILD machine
338# ----------------------------------------------
339
f6c1938b 340SHELL = @SHELL@
50212802
NN
341
342# pwd command to use. Allow user to override default by setting PWDCMD in
343# the environment to account for automounters. The make variable must not
344# be called PWDCMD, otherwise the value set here is passed to make
345# subprocesses and overrides the setting from the user's environment.
b40e3958
L
346# Don't use PWD since it is a common shell environment variable and we
347# don't want to corrupt it.
348PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
349
350# compilers to use to create programs which must be run in the build
351# environment.
b5714970
PB
352AR_FOR_BUILD = @AR_FOR_BUILD@
353AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 354CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 355CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
356CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
357CXX_FOR_BUILD = @CXX_FOR_BUILD@
358DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
b5714970 359GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 360GOC_FOR_BUILD = @GOC_FOR_BUILD@
f948b2de 361GDC_FOR_BUILD = @GDC_FOR_BUILD@
b5714970
PB
362LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
363LD_FOR_BUILD = @LD_FOR_BUILD@
364NM_FOR_BUILD = @NM_FOR_BUILD@
365RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
366WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
367WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
368
369# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
370# here so that they can be overridden by Makefile fragments.
50212802
NN
371BUILD_PREFIX = @BUILD_PREFIX@
372BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 373
0df3d27f
PB
374# Flags to pass to stage2 and later makes. They are defined
375# here so that they can be overridden by Makefile fragments.
376BOOT_CFLAGS= -g -O2
f6d183c0 377BOOT_LDFLAGS=
d7b9dae9 378BOOT_ADAFLAGS= -gnatpg
0df3d27f 379
8e957354
PB
380AWK = @AWK@
381SED = @SED@
be01d343
PB
382BISON = @BISON@
383YACC = @YACC@
384FLEX = @FLEX@
385LEX = @LEX@
386M4 = @M4@
387MAKEINFO = @MAKEINFO@
388EXPECT = @EXPECT@
389RUNTEST = @RUNTEST@
252b5132 390
f948b2de 391AUTO_PROFILE = gcc-auto-profile -c 10000000
05a13254 392
252b5132
RH
393# This just becomes part of the MAKEINFO definition passed down to
394# sub-makes. It lets flags be given on the command line while still
395# using the makeinfo from the object tree.
62a3fc85
DD
396# (Default to avoid splitting info files by setting the threshold high.)
397MAKEINFOFLAGS = --split-size=5000000
252b5132 398
50212802
NN
399# ---------------------------------------------
400# Programs producing files for the HOST machine
401# ---------------------------------------------
252b5132 402
50212802 403AS = @AS@
50212802
NN
404AR = @AR@
405AR_FLAGS = rc
50212802 406CC = @CC@
50212802 407CXX = @CXX@
50212802 408DLLTOOL = @DLLTOOL@
50212802 409LD = @LD@
be01d343
PB
410LIPO = @LIPO@
411NM = @NM@
80911fe1 412OBJDUMP = @OBJDUMP@
f948b2de 413OTOOL = @OTOOL@
50212802 414RANLIB = @RANLIB@
b121d7d4 415READELF = @READELF@
be01d343 416STRIP = @STRIP@
50212802 417WINDRES = @WINDRES@
0c24b341 418WINDMC = @WINDMC@
252b5132 419
f948b2de 420GDC = @GDC@
a0323144
PB
421GNATBIND = @GNATBIND@
422GNATMAKE = @GNATMAKE@
423
be01d343 424CFLAGS = @CFLAGS@
b2edfdd2 425LDFLAGS = @LDFLAGS@
be01d343
PB
426LIBCFLAGS = $(CFLAGS)
427CXXFLAGS = @CXXFLAGS@
428LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
e552509b 429GOCFLAGS = $(CFLAGS)
f948b2de 430GDCFLAGS = $(CFLAGS)
50212802 431
05a13254
NC
432CREATE_GCOV = create_gcov
433
1b05fbbd
AO
434TFLAGS =
435
436# Defaults for all stages; some are overridden below.
437
438STAGE_CFLAGS = $(BOOT_CFLAGS)
439STAGE_TFLAGS = $(TFLAGS)
440STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
441
442
443# Defaults for stage 1; some are overridden below.
444STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
445STAGE1_CXXFLAGS = $(CXXFLAGS)
446@if target-libstdc++-v3-bootstrap
447# Override the above if we're bootstrapping C++.
448STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
449@endif target-libstdc++-v3-bootstrap
1b05fbbd 450STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 451STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
452
453# Defaults for stage 2; some are overridden below.
454STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
455STAGE2_CXXFLAGS = $(CXXFLAGS)
456@if target-libstdc++-v3-bootstrap
457# Override the above if we're bootstrapping C++.
458STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
459@endif target-libstdc++-v3-bootstrap
1b05fbbd 460STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 461STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
462
463# Defaults for stage 3; some are overridden below.
464STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
465STAGE3_CXXFLAGS = $(CXXFLAGS)
466@if target-libstdc++-v3-bootstrap
467# Override the above if we're bootstrapping C++.
468STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
469@endif target-libstdc++-v3-bootstrap
1b05fbbd 470STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 471STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
472
473# Defaults for stage 4; some are overridden below.
474STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
475STAGE4_CXXFLAGS = $(CXXFLAGS)
476@if target-libstdc++-v3-bootstrap
477# Override the above if we're bootstrapping C++.
478STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
479@endif target-libstdc++-v3-bootstrap
1b05fbbd 480STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 481STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
482
483# Defaults for stage profile; some are overridden below.
484STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
485STAGEprofile_CXXFLAGS = $(CXXFLAGS)
486@if target-libstdc++-v3-bootstrap
487# Override the above if we're bootstrapping C++.
488STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
489@endif target-libstdc++-v3-bootstrap
1b05fbbd 490STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 491STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd 492
f948b2de
NC
493# Defaults for stage train; some are overridden below.
494STAGEtrain_CFLAGS = $(STAGE_CFLAGS)
495STAGEtrain_CXXFLAGS = $(CXXFLAGS)
496@if target-libstdc++-v3-bootstrap
497# Override the above if we're bootstrapping C++.
498STAGEtrain_CXXFLAGS = $(STAGEtrain_CFLAGS)
499@endif target-libstdc++-v3-bootstrap
500STAGEtrain_TFLAGS = $(STAGE_TFLAGS)
501STAGEtrain_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
502
1b05fbbd
AO
503# Defaults for stage feedback; some are overridden below.
504STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
505STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
506@if target-libstdc++-v3-bootstrap
507# Override the above if we're bootstrapping C++.
508STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
509@endif target-libstdc++-v3-bootstrap
1b05fbbd 510STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 511STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd 512
f948b2de
NC
513# Defaults for stage autoprofile; some are overridden below.
514STAGEautoprofile_CFLAGS = $(STAGE_CFLAGS)
515STAGEautoprofile_CXXFLAGS = $(CXXFLAGS)
516@if target-libstdc++-v3-bootstrap
517# Override the above if we're bootstrapping C++.
518STAGEautoprofile_CXXFLAGS = $(STAGEautoprofile_CFLAGS)
519@endif target-libstdc++-v3-bootstrap
520STAGEautoprofile_TFLAGS = $(STAGE_TFLAGS)
521STAGEautoprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
522
523# Defaults for stage autofeedback; some are overridden below.
524STAGEautofeedback_CFLAGS = $(STAGE_CFLAGS)
525STAGEautofeedback_CXXFLAGS = $(CXXFLAGS)
526@if target-libstdc++-v3-bootstrap
527# Override the above if we're bootstrapping C++.
528STAGEautofeedback_CXXFLAGS = $(STAGEautofeedback_CFLAGS)
529@endif target-libstdc++-v3-bootstrap
530STAGEautofeedback_TFLAGS = $(STAGE_TFLAGS)
531STAGEautofeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
532
1b05fbbd 533
22121df0
L
534# By default, C and C++ are the only stage1 languages, because they are the
535# only ones we require to build with the bootstrap compiler, and also the
536# only ones useful for building stage2.
8a0d8a5c 537
1b05fbbd 538STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
539STAGE1_CHECKING = @stage1_checking@
540STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
541# * We force-disable intermodule optimizations, even if
542# --enable-intermodule was passed, since the installed compiler
543# probably can't handle them. Luckily, autoconf always respects
544# the last argument when conflicting --enable arguments are passed.
545# * Likewise, we force-disable coverage flags, since the installed
546# compiler probably has never heard of them.
880b18d1 547# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 548STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 549 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
550 --disable-build-format-warnings
8a0d8a5c 551
f948b2de
NC
552# When using the slow stage1 compiler disable IL verification and forcefully
553# enable it when using the stage2 compiler instead. As we later compare
554# stage2 and stage3 we are merely avoid doing redundant work, plus we apply
555# checking when building all target libraries for release builds.
556STAGE1_TFLAGS += -fno-checking
557STAGE2_CFLAGS += -fno-checking
558STAGE2_TFLAGS += -fno-checking
559STAGE3_CFLAGS += -fchecking=1
560STAGE3_TFLAGS += -fchecking=1
561
1b05fbbd
AO
562STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
563STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 564
f948b2de
NC
565STAGEtrain_CFLAGS = $(filter-out -fchecking=1,$(STAGE3_CFLAGS))
566STAGEtrain_TFLAGS = $(filter-out -fchecking=1,$(STAGE3_TFLAGS))
567
568STAGEfeedback_CFLAGS = $(STAGE4_CFLAGS) -fprofile-use
569STAGEfeedback_TFLAGS = $(STAGE4_TFLAGS)
7f6ef0c0 570
05a13254
NC
571STAGEautoprofile_CFLAGS = $(STAGE2_CFLAGS) -g
572STAGEautoprofile_TFLAGS = $(STAGE2_TFLAGS)
573
574STAGEautofeedback_CFLAGS = $(STAGE3_CFLAGS)
575STAGEautofeedback_TFLAGS = $(STAGE3_TFLAGS)
576
8520c408
AO
577do-compare = @do_compare@
578do-compare3 = $(do-compare)
8520c408 579
50212802
NN
580# -----------------------------------------------
581# Programs producing files for the TARGET machine
582# -----------------------------------------------
0da52010 583
50212802 584AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 585AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 586CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 587
50212802
NN
588# If GCC_FOR_TARGET is not overriden on the command line, then this
589# variable is passed down to the gcc Makefile, where it is used to
590# build libgcc2.a. We define it here so that it can itself be
591# overridden on the command line.
1b05fbbd
AO
592GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
593CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
594RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
1b05fbbd 595GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 596GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
f948b2de 597GDC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GDC_FOR_TARGET@
852e5f18 598DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 599LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 600
7e0f7140 601LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 602NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 603OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 604OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
f948b2de 605OTOOL_FOR_TARGET=@OTOOL_FOR_TARGET@
852e5f18 606RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 607READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 608STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 609WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 610WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 611
be01d343
PB
612COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
613COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
614COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
615
7f6ef0c0
PB
616CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
617CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 618
be01d343
PB
619LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
620LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 621LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 622GOCFLAGS_FOR_TARGET = -O2 -g
f948b2de 623GDCFLAGS_FOR_TARGET = -O2 -g
50212802 624
1b05fbbd
AO
625FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
626SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
627DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
628
629XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
630
50212802
NN
631# ------------------------------------
632# Miscellaneous targets and flag lists
633# ------------------------------------
634
252b5132
RH
635# The first rule in the file had better be this one. Don't put any above it.
636# This lives here to allow makefile fragments to contain dependencies.
f70224b5 637all:
252b5132 638
252b5132 639#### host and target specific makefile fragments come in here.
a0da8069
NN
640@target_makefile_frag@
641@alphaieee_frag@
642@ospace_frag@
643@host_makefile_frag@
252b5132
RH
644###
645
e90269c8 646# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 647# so that programs built for the target machine work.
f948b2de 648TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libsanitizer)$(TARGET_LIB_PATH_libmpx)$(TARGET_LIB_PATH_libvtv)$(TARGET_LIB_PATH_liboffloadmic)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libphobos)$(TARGET_LIB_PATH_libgomp)$(TARGET_LIB_PATH_libitm)$(TARGET_LIB_PATH_libatomic)$(HOST_LIB_PATH_gcc)
e90269c8
PB
649
650@if target-libstdc++-v3
18a8530e 651TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
652@endif target-libstdc++-v3
653
5286fdef
L
654@if target-libsanitizer
655TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
656@endif target-libsanitizer
657
1b6c0831
L
658@if target-libmpx
659TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
660@endif target-libmpx
661
95e43135
JBG
662@if target-libvtv
663TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
664@endif target-libvtv
665
1b6c0831
L
666@if target-liboffloadmic
667TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
668@endif target-liboffloadmic
669
064d0a7c
PB
670@if target-libssp
671TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
672@endif target-libssp
673
f948b2de
NC
674@if target-libphobos
675TARGET_LIB_PATH_libphobos = $$r/$(TARGET_SUBDIR)/libphobos/src/.libs:
676@endif target-libphobos
677
b3ded179
PB
678@if target-libgomp
679TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
680@endif target-libgomp
681
7ec59b9e
L
682@if target-libitm
683TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
684@endif target-libitm
685
686@if target-libatomic
687TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
688@endif target-libatomic
689
e90269c8
PB
690
691
692# This is the list of directories that may be needed in RPATH_ENVVAR
693# so that programs built for the host machine work.
1b6c0831 694HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
695
696# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
697@if gcc
3bbd2f8f 698HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
699@endif gcc
700
701
4b900473
PB
702@if gmp
703HOST_LIB_PATH_gmp = \
704 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
705@endif gmp
706
707@if mpfr
708HOST_LIB_PATH_mpfr = \
05a13254 709 $$r/$(HOST_SUBDIR)/mpfr/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/src/.libs:
4b900473
PB
710@endif mpfr
711
e8a5fa9c
RW
712@if mpc
713HOST_LIB_PATH_mpc = \
05a13254 714 $$r/$(HOST_SUBDIR)/mpc/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/src/.libs:
e8a5fa9c
RW
715@endif mpc
716
7ec59b9e
L
717@if isl
718HOST_LIB_PATH_isl = \
719 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
720@endif isl
e28c595f 721
1f53ca9a
AO
722@if libelf
723HOST_LIB_PATH_libelf = \
724 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
725@endif libelf
726
e90269c8 727
87cda2cf
AO
728CXX_FOR_TARGET_FLAG_TO_PASS = \
729 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
730@if target-libstdc++-v3
731# CXX_FOR_TARGET is tricky to get right for target libs that require a
732# functional C++ compiler. When we recurse, if we expand
733# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
734# libstdc++ include flags from the script. Instead, we get an
735# -funconfigured-* word, so that we'll get errors if this invalid C++
736# command line is used for anything, but also so that we can use the
737# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
738# don't pass it on, sub-make will use the default definition, that
739# re-expands it at the time of use, so we'll get it right when we need
740# it. One potential exception is the expansion of CXX_FOR_TARGET
741# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
742# really work, for C++ host programs can't depend on the current-stage
743# C++ target library.
744CXX_FOR_TARGET_FLAG_TO_PASS = \
745 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
746@endif target-libstdc++-v3
747
22121df0
L
748# Flags to pass down to all sub-makes. STAGE*FLAGS,
749# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
750# overrideable (for a bootstrap build stage1 also builds gcc.info).
252b5132 751BASE_FLAGS_TO_PASS = \
497f816e 752 "DESTDIR=$(DESTDIR)" \
252b5132 753 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 754 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
755 "bindir=$(bindir)" \
756 "datadir=$(datadir)" \
757 "exec_prefix=$(exec_prefix)" \
758 "includedir=$(includedir)" \
108a6f8e
CD
759 "datarootdir=$(datarootdir)" \
760 "docdir=$(docdir)" \
252b5132 761 "infodir=$(infodir)" \
a3ca38d2 762 "pdfdir=$(pdfdir)" \
108a6f8e 763 "htmldir=$(htmldir)" \
252b5132
RH
764 "libdir=$(libdir)" \
765 "libexecdir=$(libexecdir)" \
766 "lispdir=$(lispdir)" \
767 "localstatedir=$(localstatedir)" \
768 "mandir=$(mandir)" \
769 "oldincludedir=$(oldincludedir)" \
770 "prefix=$(prefix)" \
771 "sbindir=$(sbindir)" \
772 "sharedstatedir=$(sharedstatedir)" \
773 "sysconfdir=$(sysconfdir)" \
774 "tooldir=$(tooldir)" \
ba73c63f 775 "build_tooldir=$(build_tooldir)" \
12f0bd74 776 "target_alias=$(target_alias)" \
8e957354 777 "AWK=$(AWK)" \
12f0bd74
NN
778 "BISON=$(BISON)" \
779 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 780 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
781 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
782 "EXPECT=$(EXPECT)" \
6a9cf61e 783 "FLEX=$(FLEX)" \
12f0bd74
NN
784 "INSTALL=$(INSTALL)" \
785 "INSTALL_DATA=$(INSTALL_DATA)" \
786 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
787 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 788 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
789 "LEX=$(LEX)" \
790 "M4=$(M4)" \
791 "MAKE=$(MAKE)" \
792 "RUNTEST=$(RUNTEST)" \
793 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 794 "SED=$(SED)" \
12f0bd74
NN
795 "SHELL=$(SHELL)" \
796 "YACC=$(YACC)" \
c52c6897 797 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 798 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 799 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 800 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
801 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
802 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
803 "CFLAGS=$(CFLAGS)" \
804 "CXXFLAGS=$(CXXFLAGS)" \
805 "LDFLAGS=$(LDFLAGS)" \
806 "LIBCFLAGS=$(LIBCFLAGS)" \
807 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 808 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 809 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
810 "GNATBIND=$(GNATBIND)" \
811 "GNATMAKE=$(GNATMAKE)" \
f948b2de
NC
812 "GDC=$(GDC)" \
813 "GDCFLAGS=$(GDCFLAGS)" \
12f0bd74
NN
814 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
815 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
816 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
817 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 818 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
819 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
820 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 821 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
4b1cb4fe 822 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
823 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
824 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
f948b2de
NC
825 "GDC_FOR_TARGET=$(GDC_FOR_TARGET)" \
826 "GDCFLAGS_FOR_TARGET=$(GDCFLAGS_FOR_TARGET)" \
12f0bd74 827 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 828 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 829 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
830 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
831 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
832 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 833 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
6b91c541 834 "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \
12f0bd74 835 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 836 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 837 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 838 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 839 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 840 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 841 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 842 "LEAN=$(LEAN)" \
1b05fbbd 843 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 844 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
f948b2de 845 "STAGE1_GENERATOR_CFLAGS=$(STAGE1_GENERATOR_CFLAGS)" \
1b05fbbd
AO
846 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
847 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 848 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
f948b2de 849 "STAGE2_GENERATOR_CFLAGS=$(STAGE2_GENERATOR_CFLAGS)" \
1b05fbbd
AO
850 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
851 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 852 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
f948b2de 853 "STAGE3_GENERATOR_CFLAGS=$(STAGE3_GENERATOR_CFLAGS)" \
1b05fbbd
AO
854 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
855 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 856 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
f948b2de 857 "STAGE4_GENERATOR_CFLAGS=$(STAGE4_GENERATOR_CFLAGS)" \
1b05fbbd
AO
858 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
859 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 860 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
f948b2de 861 "STAGEprofile_GENERATOR_CFLAGS=$(STAGEprofile_GENERATOR_CFLAGS)" \
1b05fbbd 862 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
f948b2de
NC
863 "STAGEtrain_CFLAGS=$(STAGEtrain_CFLAGS)" \
864 "STAGEtrain_CXXFLAGS=$(STAGEtrain_CXXFLAGS)" \
865 "STAGEtrain_GENERATOR_CFLAGS=$(STAGEtrain_GENERATOR_CFLAGS)" \
866 "STAGEtrain_TFLAGS=$(STAGEtrain_TFLAGS)" \
1b05fbbd 867 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 868 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
f948b2de 869 "STAGEfeedback_GENERATOR_CFLAGS=$(STAGEfeedback_GENERATOR_CFLAGS)" \
1b05fbbd 870 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
f948b2de
NC
871 "STAGEautoprofile_CFLAGS=$(STAGEautoprofile_CFLAGS)" \
872 "STAGEautoprofile_CXXFLAGS=$(STAGEautoprofile_CXXFLAGS)" \
873 "STAGEautoprofile_GENERATOR_CFLAGS=$(STAGEautoprofile_GENERATOR_CFLAGS)" \
874 "STAGEautoprofile_TFLAGS=$(STAGEautoprofile_TFLAGS)" \
875 "STAGEautofeedback_CFLAGS=$(STAGEautofeedback_CFLAGS)" \
876 "STAGEautofeedback_CXXFLAGS=$(STAGEautofeedback_CXXFLAGS)" \
877 "STAGEautofeedback_GENERATOR_CFLAGS=$(STAGEautofeedback_GENERATOR_CFLAGS)" \
878 "STAGEautofeedback_TFLAGS=$(STAGEautofeedback_TFLAGS)" \
87cda2cf 879 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 880 "TFLAGS=$(TFLAGS)" \
10ecffb9 881 "CONFIG_SHELL=$(SHELL)" \
52cf9762
NC
882 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
883 $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
252b5132 884
55db4b87
PB
885# We leave this in just in case, but it is not needed anymore.
886RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 887
252b5132
RH
888# Flags to pass down to most sub-makes, in which we're building with
889# the host environment.
252b5132
RH
890EXTRA_HOST_FLAGS = \
891 'AR=$(AR)' \
892 'AS=$(AS)' \
893 'CC=$(CC)' \
894 'CXX=$(CXX)' \
895 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd 896 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 897 'GOC=$(GOC)' \
f948b2de 898 'GDC=$(GDC)' \
252b5132 899 'LD=$(LD)' \
be01d343 900 'LIPO=$(LIPO)' \
252b5132 901 'NM=$(NM)' \
80911fe1 902 'OBJDUMP=$(OBJDUMP)' \
f948b2de 903 'OTOOL=$(OTOOL)' \
b9459e83 904 'RANLIB=$(RANLIB)' \
b121d7d4 905 'READELF=$(READELF)' \
be01d343 906 'STRIP=$(STRIP)' \
0c24b341 907 'WINDRES=$(WINDRES)' \
05a13254
NC
908 'WINDMC=$(WINDMC)' \
909 'CREATE_GCOV=$(CREATE_GCOV)'
252b5132
RH
910
911FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
912
b3676d82
EB
913# Flags to pass to stage1 or when not bootstrapping.
914
915STAGE1_FLAGS_TO_PASS = \
916 LDFLAGS="$${LDFLAGS}" \
917 HOST_LIBS="$${HOST_LIBS}"
918
8a0d8a5c
PB
919# Flags to pass to stage2 and later makes.
920
921POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
922 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
923 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
f948b2de 924 GDC="$${GDC}" GDC_FOR_BUILD="$${GDC_FOR_BUILD}" \
e8a5fa9c 925 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
926 LDFLAGS="$${LDFLAGS}" \
927 HOST_LIBS="$${HOST_LIBS}" \
1b6c0831 928 $(LTO_FLAGS_TO_PASS) \
8a0d8a5c
PB
929 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
930
f91ca6bc
IB
931@if gcc-bootstrap
932EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \
933 $(POSTSTAGE1_HOST_EXPORTS) \
22121df0 934 fi;
f91ca6bc
IB
935
936EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS"
937@endif gcc-bootstrap
938
252b5132 939# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
940# The double $ decreases the length of the command line; those variables
941# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
942# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
943# so we expand them here.
252b5132
RH
944EXTRA_TARGET_FLAGS = \
945 'AR=$$(AR_FOR_TARGET)' \
0aed8855 946 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
947 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
948 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
949 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
950 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
951 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 952 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 953 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd 954 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 955 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 956 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
f948b2de
NC
957 'GDC=$$(GDC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
958 'GDCFLAGS=$$(GDCFLAGS_FOR_TARGET)' \
0aed8855 959 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 960 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
961 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
962 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 963 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 964 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 965 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 966 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 967 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 968 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
969 'WINDMC=$$(WINDMC_FOR_TARGET)' \
970 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
971 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
972 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 973 "TFLAGS=$$TFLAGS"
252b5132
RH
974
975TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
976
977# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
978# unfortunately needs the native compiler and the target ar and
979# ranlib.
980# If any variables are added here, they must be added to do-*, below.
2a4cbe27 981# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
982# cross-building scheme.
983EXTRA_GCC_FLAGS = \
252b5132 984 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 985 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 986 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 987
f0b24077 988GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 989
1b05fbbd 990@if gcc
96655cc4 991BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
992ifneq ($(BUILD_CONFIG),)
993include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
994endif
995@endif gcc
996
dd12c3a8 997.PHONY: configure-host
b813574b 998configure-host: \
dd12c3a8
NN
999 maybe-configure-bfd \
1000 maybe-configure-opcodes \
1001 maybe-configure-binutils \
1002 maybe-configure-bison \
f9806fa5 1003 maybe-configure-cgen \
dd12c3a8 1004 maybe-configure-dejagnu \
dd12c3a8
NN
1005 maybe-configure-etc \
1006 maybe-configure-fastjar \
d3ed111c 1007 maybe-configure-fixincludes \
dd12c3a8
NN
1008 maybe-configure-flex \
1009 maybe-configure-gas \
b813574b 1010 maybe-configure-gcc \
4b900473
PB
1011 maybe-configure-gmp \
1012 maybe-configure-mpfr \
e8a5fa9c 1013 maybe-configure-mpc \
7ec59b9e 1014 maybe-configure-isl \
1f53ca9a 1015 maybe-configure-libelf \
93f9b408 1016 maybe-configure-gold \
dd12c3a8 1017 maybe-configure-gprof \
dd12c3a8
NN
1018 maybe-configure-intl \
1019 maybe-configure-tcl \
1020 maybe-configure-itcl \
1021 maybe-configure-ld \
2bf680c4 1022 maybe-configure-libbacktrace \
04cf1b77 1023 maybe-configure-libcpp \
be01d343 1024 maybe-configure-libdecnumber \
dd12c3a8
NN
1025 maybe-configure-libgui \
1026 maybe-configure-libiberty \
1b6c0831 1027 maybe-configure-libiberty-linker-plugin \
dc448a7b 1028 maybe-configure-libiconv \
dd12c3a8 1029 maybe-configure-m4 \
dd12c3a8 1030 maybe-configure-readline \
dd12c3a8
NN
1031 maybe-configure-sid \
1032 maybe-configure-sim \
dd12c3a8 1033 maybe-configure-texinfo \
dd12c3a8
NN
1034 maybe-configure-zlib \
1035 maybe-configure-gdb \
1036 maybe-configure-expect \
1037 maybe-configure-guile \
1038 maybe-configure-tk \
dd12c3a8 1039 maybe-configure-libtermcap \
b00612cc 1040 maybe-configure-utils \
700d40ca 1041 maybe-configure-gnattools \
1b6c0831
L
1042 maybe-configure-lto-plugin \
1043 maybe-configure-libcc1 \
0e65dfba
NA
1044 maybe-configure-gotools \
1045 maybe-configure-libctf
dd12c3a8
NN
1046.PHONY: configure-target
1047configure-target: \
1048 maybe-configure-target-libstdc++-v3 \
5286fdef 1049 maybe-configure-target-libsanitizer \
1b6c0831 1050 maybe-configure-target-libmpx \
95e43135 1051 maybe-configure-target-libvtv \
1b6c0831 1052 maybe-configure-target-liboffloadmic \
064d0a7c 1053 maybe-configure-target-libssp \
dd12c3a8 1054 maybe-configure-target-newlib \
6aa8ef82 1055 maybe-configure-target-libgcc \
2bf680c4 1056 maybe-configure-target-libbacktrace \
e552509b 1057 maybe-configure-target-libquadmath \
4b1cb4fe 1058 maybe-configure-target-libgfortran \
dd12c3a8 1059 maybe-configure-target-libobjc \
e552509b 1060 maybe-configure-target-libgo \
f948b2de
NC
1061 maybe-configure-target-libhsail-rt \
1062 maybe-configure-target-libphobos \
dd12c3a8
NN
1063 maybe-configure-target-libtermcap \
1064 maybe-configure-target-winsup \
1065 maybe-configure-target-libgloss \
dd12c3a8 1066 maybe-configure-target-libffi \
dd12c3a8 1067 maybe-configure-target-zlib \
a2592b1b 1068 maybe-configure-target-rda \
b3ded179 1069 maybe-configure-target-libada \
7ec59b9e
L
1070 maybe-configure-target-libgomp \
1071 maybe-configure-target-libitm \
1072 maybe-configure-target-libatomic
252b5132 1073
319cab08
PB
1074# The target built for a native non-bootstrap build.
1075.PHONY: all
f70224b5
PB
1076all:
1077@if gcc-bootstrap
be01d343 1078 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
1079 @r=`${PWD_COMMAND}`; export r; \
1080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 1081 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 1082@endif gcc-bootstrap
0aed8855 1083 @: $(MAKE); $(unstage)
f70224b5
PB
1084 @r=`${PWD_COMMAND}`; export r; \
1085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 1086@if gcc-bootstrap
b5233201 1087 if [ -f stage_last ]; then \
07fc31c9 1088 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 1089 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 1090 else \
1b05fbbd 1091@endif gcc-bootstrap
b5233201
AO
1092 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
1093@if gcc-bootstrap
1094 ; \
04ec0acb 1095 fi \
b5233201 1096@endif gcc-bootstrap
04ec0acb 1097 && :
6a9cf61e
PB
1098
1099.PHONY: all-build
c52c6897
PB
1100
1101all-build: maybe-all-build-libiberty
1102all-build: maybe-all-build-bison
c52c6897
PB
1103all-build: maybe-all-build-flex
1104all-build: maybe-all-build-m4
1105all-build: maybe-all-build-texinfo
1106all-build: maybe-all-build-fixincludes
1b6c0831 1107all-build: maybe-all-build-libcpp
c52c6897 1108
dd12c3a8 1109.PHONY: all-host
c52c6897 1110
c52c6897
PB
1111@if bfd-no-bootstrap
1112all-host: maybe-all-bfd
1113@endif bfd-no-bootstrap
1114@if opcodes-no-bootstrap
1115all-host: maybe-all-opcodes
1116@endif opcodes-no-bootstrap
1117@if binutils-no-bootstrap
1118all-host: maybe-all-binutils
1119@endif binutils-no-bootstrap
1120all-host: maybe-all-bison
f9806fa5 1121all-host: maybe-all-cgen
c52c6897 1122all-host: maybe-all-dejagnu
c52c6897
PB
1123all-host: maybe-all-etc
1124all-host: maybe-all-fastjar
201f096f 1125@if fixincludes-no-bootstrap
c52c6897 1126all-host: maybe-all-fixincludes
201f096f 1127@endif fixincludes-no-bootstrap
c52c6897
PB
1128all-host: maybe-all-flex
1129@if gas-no-bootstrap
1130all-host: maybe-all-gas
1131@endif gas-no-bootstrap
1132@if gcc-no-bootstrap
1133all-host: maybe-all-gcc
1134@endif gcc-no-bootstrap
4b900473
PB
1135@if gmp-no-bootstrap
1136all-host: maybe-all-gmp
1137@endif gmp-no-bootstrap
1138@if mpfr-no-bootstrap
1139all-host: maybe-all-mpfr
1140@endif mpfr-no-bootstrap
e8a5fa9c
RW
1141@if mpc-no-bootstrap
1142all-host: maybe-all-mpc
1143@endif mpc-no-bootstrap
7ec59b9e
L
1144@if isl-no-bootstrap
1145all-host: maybe-all-isl
1146@endif isl-no-bootstrap
1f53ca9a
AO
1147@if libelf-no-bootstrap
1148all-host: maybe-all-libelf
1149@endif libelf-no-bootstrap
93f9b408
ILT
1150@if gold-no-bootstrap
1151all-host: maybe-all-gold
1152@endif gold-no-bootstrap
c52c6897 1153all-host: maybe-all-gprof
c52c6897
PB
1154@if intl-no-bootstrap
1155all-host: maybe-all-intl
1156@endif intl-no-bootstrap
1157all-host: maybe-all-tcl
1158all-host: maybe-all-itcl
1159@if ld-no-bootstrap
1160all-host: maybe-all-ld
1161@endif ld-no-bootstrap
2bf680c4
ILT
1162@if libbacktrace-no-bootstrap
1163all-host: maybe-all-libbacktrace
1164@endif libbacktrace-no-bootstrap
c52c6897
PB
1165@if libcpp-no-bootstrap
1166all-host: maybe-all-libcpp
1167@endif libcpp-no-bootstrap
1168@if libdecnumber-no-bootstrap
1169all-host: maybe-all-libdecnumber
1170@endif libdecnumber-no-bootstrap
1171all-host: maybe-all-libgui
1172@if libiberty-no-bootstrap
1173all-host: maybe-all-libiberty
1174@endif libiberty-no-bootstrap
1b6c0831
L
1175@if libiberty-linker-plugin-no-bootstrap
1176all-host: maybe-all-libiberty-linker-plugin
1177@endif libiberty-linker-plugin-no-bootstrap
016a3251 1178@if libiconv-no-bootstrap
dc448a7b 1179all-host: maybe-all-libiconv
016a3251 1180@endif libiconv-no-bootstrap
c52c6897 1181all-host: maybe-all-m4
c52c6897 1182all-host: maybe-all-readline
c52c6897
PB
1183all-host: maybe-all-sid
1184all-host: maybe-all-sim
c52c6897 1185all-host: maybe-all-texinfo
c52c6897
PB
1186@if zlib-no-bootstrap
1187all-host: maybe-all-zlib
1188@endif zlib-no-bootstrap
1189all-host: maybe-all-gdb
1190all-host: maybe-all-expect
1191all-host: maybe-all-guile
1192all-host: maybe-all-tk
1193all-host: maybe-all-libtermcap
1194all-host: maybe-all-utils
1195all-host: maybe-all-gnattools
700d40ca
ILT
1196@if lto-plugin-no-bootstrap
1197all-host: maybe-all-lto-plugin
1198@endif lto-plugin-no-bootstrap
1b6c0831
L
1199all-host: maybe-all-libcc1
1200all-host: maybe-all-gotools
0e65dfba
NA
1201@if libctf-no-bootstrap
1202all-host: maybe-all-libctf
1203@endif libctf-no-bootstrap
c52c6897 1204
dd12c3a8 1205.PHONY: all-target
c52c6897 1206
e8a5fa9c 1207@if target-libstdc++-v3-no-bootstrap
c52c6897 1208all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1209@endif target-libstdc++-v3-no-bootstrap
5eb08693 1210@if target-libsanitizer-no-bootstrap
5286fdef 1211all-target: maybe-all-target-libsanitizer
5eb08693 1212@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1213@if target-libmpx-no-bootstrap
1214all-target: maybe-all-target-libmpx
1215@endif target-libmpx-no-bootstrap
95e43135
JBG
1216@if target-libvtv-no-bootstrap
1217all-target: maybe-all-target-libvtv
1218@endif target-libvtv-no-bootstrap
1b6c0831 1219all-target: maybe-all-target-liboffloadmic
c52c6897 1220all-target: maybe-all-target-libssp
c52c6897 1221all-target: maybe-all-target-newlib
f86e35b8 1222@if target-libgcc-no-bootstrap
6aa8ef82 1223all-target: maybe-all-target-libgcc
f86e35b8 1224@endif target-libgcc-no-bootstrap
2bf680c4 1225all-target: maybe-all-target-libbacktrace
e552509b 1226all-target: maybe-all-target-libquadmath
c52c6897
PB
1227all-target: maybe-all-target-libgfortran
1228all-target: maybe-all-target-libobjc
e552509b 1229all-target: maybe-all-target-libgo
f948b2de
NC
1230all-target: maybe-all-target-libhsail-rt
1231all-target: maybe-all-target-libphobos
c52c6897
PB
1232all-target: maybe-all-target-libtermcap
1233all-target: maybe-all-target-winsup
1234all-target: maybe-all-target-libgloss
c52c6897 1235all-target: maybe-all-target-libffi
c52c6897 1236all-target: maybe-all-target-zlib
c52c6897
PB
1237all-target: maybe-all-target-rda
1238all-target: maybe-all-target-libada
911e63d0 1239@if target-libgomp-no-bootstrap
c52c6897 1240all-target: maybe-all-target-libgomp
911e63d0 1241@endif target-libgomp-no-bootstrap
7ec59b9e
L
1242all-target: maybe-all-target-libitm
1243all-target: maybe-all-target-libatomic
252b5132
RH
1244
1245# Do a target for all the subdirectories. A ``make do-X'' will do a
1246# ``make X'' in all subdirectories (because, in general, there is a
1247# dependency (below) of X upon do-X, a ``make X'' will also do this,
1248# but it may do additional work as well).
e393202e 1249
2a4cbe27 1250.PHONY: do-info
f70224b5 1251do-info:
0aed8855 1252 @: $(MAKE); $(unstage)
e360f423
PB
1253 @r=`${PWD_COMMAND}`; export r; \
1254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1255 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1256 info-target
f70224b5 1257
e393202e 1258
2a4cbe27 1259.PHONY: info-host
c52c6897 1260
c52c6897
PB
1261info-host: maybe-info-bfd
1262info-host: maybe-info-opcodes
1263info-host: maybe-info-binutils
1264info-host: maybe-info-bison
f9806fa5 1265info-host: maybe-info-cgen
c52c6897 1266info-host: maybe-info-dejagnu
c52c6897
PB
1267info-host: maybe-info-etc
1268info-host: maybe-info-fastjar
c52c6897
PB
1269info-host: maybe-info-fixincludes
1270info-host: maybe-info-flex
1271info-host: maybe-info-gas
1272info-host: maybe-info-gcc
4b900473
PB
1273info-host: maybe-info-gmp
1274info-host: maybe-info-mpfr
e8a5fa9c 1275info-host: maybe-info-mpc
7ec59b9e 1276info-host: maybe-info-isl
1f53ca9a 1277info-host: maybe-info-libelf
93f9b408 1278info-host: maybe-info-gold
c52c6897 1279info-host: maybe-info-gprof
c52c6897
PB
1280info-host: maybe-info-intl
1281info-host: maybe-info-tcl
1282info-host: maybe-info-itcl
1283info-host: maybe-info-ld
2bf680c4 1284info-host: maybe-info-libbacktrace
c52c6897
PB
1285info-host: maybe-info-libcpp
1286info-host: maybe-info-libdecnumber
1287info-host: maybe-info-libgui
1288info-host: maybe-info-libiberty
1b6c0831 1289info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1290info-host: maybe-info-libiconv
c52c6897 1291info-host: maybe-info-m4
c52c6897 1292info-host: maybe-info-readline
c52c6897
PB
1293info-host: maybe-info-sid
1294info-host: maybe-info-sim
c52c6897 1295info-host: maybe-info-texinfo
c52c6897
PB
1296info-host: maybe-info-zlib
1297info-host: maybe-info-gdb
1298info-host: maybe-info-expect
1299info-host: maybe-info-guile
1300info-host: maybe-info-tk
1301info-host: maybe-info-libtermcap
1302info-host: maybe-info-utils
1303info-host: maybe-info-gnattools
700d40ca 1304info-host: maybe-info-lto-plugin
1b6c0831
L
1305info-host: maybe-info-libcc1
1306info-host: maybe-info-gotools
0e65dfba 1307info-host: maybe-info-libctf
252b5132 1308
2a4cbe27 1309.PHONY: info-target
c52c6897
PB
1310
1311info-target: maybe-info-target-libstdc++-v3
5286fdef 1312info-target: maybe-info-target-libsanitizer
1b6c0831 1313info-target: maybe-info-target-libmpx
95e43135 1314info-target: maybe-info-target-libvtv
1b6c0831 1315info-target: maybe-info-target-liboffloadmic
c52c6897 1316info-target: maybe-info-target-libssp
c52c6897 1317info-target: maybe-info-target-newlib
6aa8ef82 1318info-target: maybe-info-target-libgcc
2bf680c4 1319info-target: maybe-info-target-libbacktrace
e552509b 1320info-target: maybe-info-target-libquadmath
c52c6897
PB
1321info-target: maybe-info-target-libgfortran
1322info-target: maybe-info-target-libobjc
e552509b 1323info-target: maybe-info-target-libgo
f948b2de
NC
1324info-target: maybe-info-target-libhsail-rt
1325info-target: maybe-info-target-libphobos
c52c6897
PB
1326info-target: maybe-info-target-libtermcap
1327info-target: maybe-info-target-winsup
1328info-target: maybe-info-target-libgloss
c52c6897 1329info-target: maybe-info-target-libffi
c52c6897 1330info-target: maybe-info-target-zlib
c52c6897
PB
1331info-target: maybe-info-target-rda
1332info-target: maybe-info-target-libada
1333info-target: maybe-info-target-libgomp
7ec59b9e
L
1334info-target: maybe-info-target-libitm
1335info-target: maybe-info-target-libatomic
252b5132 1336
4fa63067 1337.PHONY: do-dvi
f70224b5 1338do-dvi:
0aed8855 1339 @: $(MAKE); $(unstage)
e360f423
PB
1340 @r=`${PWD_COMMAND}`; export r; \
1341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1342 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1343 dvi-target
f70224b5 1344
2a4cbe27 1345
4fa63067 1346.PHONY: dvi-host
c52c6897 1347
c52c6897
PB
1348dvi-host: maybe-dvi-bfd
1349dvi-host: maybe-dvi-opcodes
1350dvi-host: maybe-dvi-binutils
1351dvi-host: maybe-dvi-bison
f9806fa5 1352dvi-host: maybe-dvi-cgen
c52c6897 1353dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1354dvi-host: maybe-dvi-etc
1355dvi-host: maybe-dvi-fastjar
c52c6897
PB
1356dvi-host: maybe-dvi-fixincludes
1357dvi-host: maybe-dvi-flex
1358dvi-host: maybe-dvi-gas
1359dvi-host: maybe-dvi-gcc
4b900473
PB
1360dvi-host: maybe-dvi-gmp
1361dvi-host: maybe-dvi-mpfr
e8a5fa9c 1362dvi-host: maybe-dvi-mpc
7ec59b9e 1363dvi-host: maybe-dvi-isl
1f53ca9a 1364dvi-host: maybe-dvi-libelf
93f9b408 1365dvi-host: maybe-dvi-gold
c52c6897 1366dvi-host: maybe-dvi-gprof
c52c6897
PB
1367dvi-host: maybe-dvi-intl
1368dvi-host: maybe-dvi-tcl
1369dvi-host: maybe-dvi-itcl
1370dvi-host: maybe-dvi-ld
2bf680c4 1371dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1372dvi-host: maybe-dvi-libcpp
1373dvi-host: maybe-dvi-libdecnumber
1374dvi-host: maybe-dvi-libgui
1375dvi-host: maybe-dvi-libiberty
1b6c0831 1376dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1377dvi-host: maybe-dvi-libiconv
c52c6897 1378dvi-host: maybe-dvi-m4
c52c6897 1379dvi-host: maybe-dvi-readline
c52c6897
PB
1380dvi-host: maybe-dvi-sid
1381dvi-host: maybe-dvi-sim
c52c6897 1382dvi-host: maybe-dvi-texinfo
c52c6897
PB
1383dvi-host: maybe-dvi-zlib
1384dvi-host: maybe-dvi-gdb
1385dvi-host: maybe-dvi-expect
1386dvi-host: maybe-dvi-guile
1387dvi-host: maybe-dvi-tk
1388dvi-host: maybe-dvi-libtermcap
1389dvi-host: maybe-dvi-utils
1390dvi-host: maybe-dvi-gnattools
700d40ca 1391dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1392dvi-host: maybe-dvi-libcc1
1393dvi-host: maybe-dvi-gotools
0e65dfba 1394dvi-host: maybe-dvi-libctf
2a4cbe27 1395
4fa63067 1396.PHONY: dvi-target
c52c6897
PB
1397
1398dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1399dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1400dvi-target: maybe-dvi-target-libmpx
95e43135 1401dvi-target: maybe-dvi-target-libvtv
1b6c0831 1402dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1403dvi-target: maybe-dvi-target-libssp
c52c6897 1404dvi-target: maybe-dvi-target-newlib
6aa8ef82 1405dvi-target: maybe-dvi-target-libgcc
2bf680c4 1406dvi-target: maybe-dvi-target-libbacktrace
e552509b 1407dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1408dvi-target: maybe-dvi-target-libgfortran
1409dvi-target: maybe-dvi-target-libobjc
e552509b 1410dvi-target: maybe-dvi-target-libgo
f948b2de
NC
1411dvi-target: maybe-dvi-target-libhsail-rt
1412dvi-target: maybe-dvi-target-libphobos
c52c6897
PB
1413dvi-target: maybe-dvi-target-libtermcap
1414dvi-target: maybe-dvi-target-winsup
1415dvi-target: maybe-dvi-target-libgloss
c52c6897 1416dvi-target: maybe-dvi-target-libffi
c52c6897 1417dvi-target: maybe-dvi-target-zlib
c52c6897
PB
1418dvi-target: maybe-dvi-target-rda
1419dvi-target: maybe-dvi-target-libada
1420dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1421dvi-target: maybe-dvi-target-libitm
1422dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1423
56a8fe78
DD
1424.PHONY: do-pdf
1425do-pdf:
1426 @: $(MAKE); $(unstage)
1427 @r=`${PWD_COMMAND}`; export r; \
1428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1429 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1430 pdf-target
1431
1432
1433.PHONY: pdf-host
1434
56a8fe78
DD
1435pdf-host: maybe-pdf-bfd
1436pdf-host: maybe-pdf-opcodes
1437pdf-host: maybe-pdf-binutils
1438pdf-host: maybe-pdf-bison
f9806fa5 1439pdf-host: maybe-pdf-cgen
56a8fe78 1440pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1441pdf-host: maybe-pdf-etc
1442pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1443pdf-host: maybe-pdf-fixincludes
1444pdf-host: maybe-pdf-flex
1445pdf-host: maybe-pdf-gas
1446pdf-host: maybe-pdf-gcc
4b900473
PB
1447pdf-host: maybe-pdf-gmp
1448pdf-host: maybe-pdf-mpfr
e8a5fa9c 1449pdf-host: maybe-pdf-mpc
7ec59b9e 1450pdf-host: maybe-pdf-isl
1f53ca9a 1451pdf-host: maybe-pdf-libelf
93f9b408 1452pdf-host: maybe-pdf-gold
56a8fe78 1453pdf-host: maybe-pdf-gprof
56a8fe78
DD
1454pdf-host: maybe-pdf-intl
1455pdf-host: maybe-pdf-tcl
1456pdf-host: maybe-pdf-itcl
1457pdf-host: maybe-pdf-ld
2bf680c4 1458pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1459pdf-host: maybe-pdf-libcpp
1460pdf-host: maybe-pdf-libdecnumber
1461pdf-host: maybe-pdf-libgui
1462pdf-host: maybe-pdf-libiberty
1b6c0831 1463pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1464pdf-host: maybe-pdf-libiconv
56a8fe78 1465pdf-host: maybe-pdf-m4
56a8fe78 1466pdf-host: maybe-pdf-readline
56a8fe78
DD
1467pdf-host: maybe-pdf-sid
1468pdf-host: maybe-pdf-sim
56a8fe78 1469pdf-host: maybe-pdf-texinfo
56a8fe78
DD
1470pdf-host: maybe-pdf-zlib
1471pdf-host: maybe-pdf-gdb
1472pdf-host: maybe-pdf-expect
1473pdf-host: maybe-pdf-guile
1474pdf-host: maybe-pdf-tk
1475pdf-host: maybe-pdf-libtermcap
1476pdf-host: maybe-pdf-utils
1477pdf-host: maybe-pdf-gnattools
700d40ca 1478pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1479pdf-host: maybe-pdf-libcc1
1480pdf-host: maybe-pdf-gotools
0e65dfba 1481pdf-host: maybe-pdf-libctf
56a8fe78
DD
1482
1483.PHONY: pdf-target
1484
1485pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1486pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1487pdf-target: maybe-pdf-target-libmpx
95e43135 1488pdf-target: maybe-pdf-target-libvtv
1b6c0831 1489pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1490pdf-target: maybe-pdf-target-libssp
1491pdf-target: maybe-pdf-target-newlib
6aa8ef82 1492pdf-target: maybe-pdf-target-libgcc
2bf680c4 1493pdf-target: maybe-pdf-target-libbacktrace
e552509b 1494pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1495pdf-target: maybe-pdf-target-libgfortran
1496pdf-target: maybe-pdf-target-libobjc
e552509b 1497pdf-target: maybe-pdf-target-libgo
f948b2de
NC
1498pdf-target: maybe-pdf-target-libhsail-rt
1499pdf-target: maybe-pdf-target-libphobos
56a8fe78
DD
1500pdf-target: maybe-pdf-target-libtermcap
1501pdf-target: maybe-pdf-target-winsup
1502pdf-target: maybe-pdf-target-libgloss
56a8fe78 1503pdf-target: maybe-pdf-target-libffi
56a8fe78 1504pdf-target: maybe-pdf-target-zlib
56a8fe78
DD
1505pdf-target: maybe-pdf-target-rda
1506pdf-target: maybe-pdf-target-libada
1507pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1508pdf-target: maybe-pdf-target-libitm
1509pdf-target: maybe-pdf-target-libatomic
56a8fe78 1510
6d389afc 1511.PHONY: do-html
f70224b5 1512do-html:
0aed8855 1513 @: $(MAKE); $(unstage)
e360f423
PB
1514 @r=`${PWD_COMMAND}`; export r; \
1515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1516 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1517 html-target
f70224b5 1518
6d389afc
MS
1519
1520.PHONY: html-host
c52c6897 1521
c52c6897
PB
1522html-host: maybe-html-bfd
1523html-host: maybe-html-opcodes
1524html-host: maybe-html-binutils
1525html-host: maybe-html-bison
f9806fa5 1526html-host: maybe-html-cgen
c52c6897 1527html-host: maybe-html-dejagnu
c52c6897
PB
1528html-host: maybe-html-etc
1529html-host: maybe-html-fastjar
c52c6897
PB
1530html-host: maybe-html-fixincludes
1531html-host: maybe-html-flex
1532html-host: maybe-html-gas
1533html-host: maybe-html-gcc
4b900473
PB
1534html-host: maybe-html-gmp
1535html-host: maybe-html-mpfr
e8a5fa9c 1536html-host: maybe-html-mpc
7ec59b9e 1537html-host: maybe-html-isl
1f53ca9a 1538html-host: maybe-html-libelf
93f9b408 1539html-host: maybe-html-gold
c52c6897 1540html-host: maybe-html-gprof
c52c6897
PB
1541html-host: maybe-html-intl
1542html-host: maybe-html-tcl
1543html-host: maybe-html-itcl
1544html-host: maybe-html-ld
2bf680c4 1545html-host: maybe-html-libbacktrace
c52c6897
PB
1546html-host: maybe-html-libcpp
1547html-host: maybe-html-libdecnumber
1548html-host: maybe-html-libgui
1549html-host: maybe-html-libiberty
1b6c0831 1550html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1551html-host: maybe-html-libiconv
c52c6897 1552html-host: maybe-html-m4
c52c6897 1553html-host: maybe-html-readline
c52c6897
PB
1554html-host: maybe-html-sid
1555html-host: maybe-html-sim
c52c6897 1556html-host: maybe-html-texinfo
c52c6897
PB
1557html-host: maybe-html-zlib
1558html-host: maybe-html-gdb
1559html-host: maybe-html-expect
1560html-host: maybe-html-guile
1561html-host: maybe-html-tk
1562html-host: maybe-html-libtermcap
1563html-host: maybe-html-utils
1564html-host: maybe-html-gnattools
700d40ca 1565html-host: maybe-html-lto-plugin
1b6c0831
L
1566html-host: maybe-html-libcc1
1567html-host: maybe-html-gotools
0e65dfba 1568html-host: maybe-html-libctf
6d389afc
MS
1569
1570.PHONY: html-target
c52c6897
PB
1571
1572html-target: maybe-html-target-libstdc++-v3
5286fdef 1573html-target: maybe-html-target-libsanitizer
1b6c0831 1574html-target: maybe-html-target-libmpx
95e43135 1575html-target: maybe-html-target-libvtv
1b6c0831 1576html-target: maybe-html-target-liboffloadmic
c52c6897 1577html-target: maybe-html-target-libssp
c52c6897 1578html-target: maybe-html-target-newlib
6aa8ef82 1579html-target: maybe-html-target-libgcc
2bf680c4 1580html-target: maybe-html-target-libbacktrace
e552509b 1581html-target: maybe-html-target-libquadmath
c52c6897
PB
1582html-target: maybe-html-target-libgfortran
1583html-target: maybe-html-target-libobjc
e552509b 1584html-target: maybe-html-target-libgo
f948b2de
NC
1585html-target: maybe-html-target-libhsail-rt
1586html-target: maybe-html-target-libphobos
c52c6897
PB
1587html-target: maybe-html-target-libtermcap
1588html-target: maybe-html-target-winsup
1589html-target: maybe-html-target-libgloss
c52c6897 1590html-target: maybe-html-target-libffi
c52c6897 1591html-target: maybe-html-target-zlib
c52c6897
PB
1592html-target: maybe-html-target-rda
1593html-target: maybe-html-target-libada
1594html-target: maybe-html-target-libgomp
7ec59b9e
L
1595html-target: maybe-html-target-libitm
1596html-target: maybe-html-target-libatomic
6d389afc 1597
4fa63067 1598.PHONY: do-TAGS
f70224b5 1599do-TAGS:
0aed8855 1600 @: $(MAKE); $(unstage)
e360f423
PB
1601 @r=`${PWD_COMMAND}`; export r; \
1602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1603 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1604 TAGS-target
f70224b5 1605
2a4cbe27 1606
4fa63067 1607.PHONY: TAGS-host
c52c6897 1608
c52c6897
PB
1609TAGS-host: maybe-TAGS-bfd
1610TAGS-host: maybe-TAGS-opcodes
1611TAGS-host: maybe-TAGS-binutils
1612TAGS-host: maybe-TAGS-bison
f9806fa5 1613TAGS-host: maybe-TAGS-cgen
c52c6897 1614TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1615TAGS-host: maybe-TAGS-etc
1616TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1617TAGS-host: maybe-TAGS-fixincludes
1618TAGS-host: maybe-TAGS-flex
1619TAGS-host: maybe-TAGS-gas
1620TAGS-host: maybe-TAGS-gcc
4b900473
PB
1621TAGS-host: maybe-TAGS-gmp
1622TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1623TAGS-host: maybe-TAGS-mpc
7ec59b9e 1624TAGS-host: maybe-TAGS-isl
1f53ca9a 1625TAGS-host: maybe-TAGS-libelf
93f9b408 1626TAGS-host: maybe-TAGS-gold
c52c6897 1627TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1628TAGS-host: maybe-TAGS-intl
1629TAGS-host: maybe-TAGS-tcl
1630TAGS-host: maybe-TAGS-itcl
1631TAGS-host: maybe-TAGS-ld
2bf680c4 1632TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1633TAGS-host: maybe-TAGS-libcpp
1634TAGS-host: maybe-TAGS-libdecnumber
1635TAGS-host: maybe-TAGS-libgui
1636TAGS-host: maybe-TAGS-libiberty
1b6c0831 1637TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1638TAGS-host: maybe-TAGS-libiconv
c52c6897 1639TAGS-host: maybe-TAGS-m4
c52c6897 1640TAGS-host: maybe-TAGS-readline
c52c6897
PB
1641TAGS-host: maybe-TAGS-sid
1642TAGS-host: maybe-TAGS-sim
c52c6897 1643TAGS-host: maybe-TAGS-texinfo
c52c6897
PB
1644TAGS-host: maybe-TAGS-zlib
1645TAGS-host: maybe-TAGS-gdb
1646TAGS-host: maybe-TAGS-expect
1647TAGS-host: maybe-TAGS-guile
1648TAGS-host: maybe-TAGS-tk
1649TAGS-host: maybe-TAGS-libtermcap
1650TAGS-host: maybe-TAGS-utils
1651TAGS-host: maybe-TAGS-gnattools
700d40ca 1652TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1653TAGS-host: maybe-TAGS-libcc1
1654TAGS-host: maybe-TAGS-gotools
0e65dfba 1655TAGS-host: maybe-TAGS-libctf
2a4cbe27 1656
4fa63067 1657.PHONY: TAGS-target
c52c6897
PB
1658
1659TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1660TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1661TAGS-target: maybe-TAGS-target-libmpx
95e43135 1662TAGS-target: maybe-TAGS-target-libvtv
1b6c0831 1663TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1664TAGS-target: maybe-TAGS-target-libssp
c52c6897 1665TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1666TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1667TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1668TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1669TAGS-target: maybe-TAGS-target-libgfortran
1670TAGS-target: maybe-TAGS-target-libobjc
e552509b 1671TAGS-target: maybe-TAGS-target-libgo
f948b2de
NC
1672TAGS-target: maybe-TAGS-target-libhsail-rt
1673TAGS-target: maybe-TAGS-target-libphobos
c52c6897
PB
1674TAGS-target: maybe-TAGS-target-libtermcap
1675TAGS-target: maybe-TAGS-target-winsup
1676TAGS-target: maybe-TAGS-target-libgloss
c52c6897 1677TAGS-target: maybe-TAGS-target-libffi
c52c6897 1678TAGS-target: maybe-TAGS-target-zlib
c52c6897
PB
1679TAGS-target: maybe-TAGS-target-rda
1680TAGS-target: maybe-TAGS-target-libada
1681TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1682TAGS-target: maybe-TAGS-target-libitm
1683TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1684
4fa63067 1685.PHONY: do-install-info
f70224b5 1686do-install-info:
0aed8855 1687 @: $(MAKE); $(unstage)
e360f423
PB
1688 @r=`${PWD_COMMAND}`; export r; \
1689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1690 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1691 install-info-target
f70224b5 1692
a2592b1b 1693
4fa63067 1694.PHONY: install-info-host
c52c6897 1695
c52c6897
PB
1696install-info-host: maybe-install-info-bfd
1697install-info-host: maybe-install-info-opcodes
1698install-info-host: maybe-install-info-binutils
1699install-info-host: maybe-install-info-bison
f9806fa5 1700install-info-host: maybe-install-info-cgen
c52c6897 1701install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1702install-info-host: maybe-install-info-etc
1703install-info-host: maybe-install-info-fastjar
c52c6897
PB
1704install-info-host: maybe-install-info-fixincludes
1705install-info-host: maybe-install-info-flex
1706install-info-host: maybe-install-info-gas
1707install-info-host: maybe-install-info-gcc
4b900473
PB
1708install-info-host: maybe-install-info-gmp
1709install-info-host: maybe-install-info-mpfr
e8a5fa9c 1710install-info-host: maybe-install-info-mpc
7ec59b9e 1711install-info-host: maybe-install-info-isl
1f53ca9a 1712install-info-host: maybe-install-info-libelf
93f9b408 1713install-info-host: maybe-install-info-gold
c52c6897 1714install-info-host: maybe-install-info-gprof
c52c6897
PB
1715install-info-host: maybe-install-info-intl
1716install-info-host: maybe-install-info-tcl
1717install-info-host: maybe-install-info-itcl
1718install-info-host: maybe-install-info-ld
2bf680c4 1719install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1720install-info-host: maybe-install-info-libcpp
1721install-info-host: maybe-install-info-libdecnumber
1722install-info-host: maybe-install-info-libgui
1723install-info-host: maybe-install-info-libiberty
1b6c0831 1724install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1725install-info-host: maybe-install-info-libiconv
c52c6897 1726install-info-host: maybe-install-info-m4
c52c6897 1727install-info-host: maybe-install-info-readline
c52c6897
PB
1728install-info-host: maybe-install-info-sid
1729install-info-host: maybe-install-info-sim
c52c6897 1730install-info-host: maybe-install-info-texinfo
c52c6897
PB
1731install-info-host: maybe-install-info-zlib
1732install-info-host: maybe-install-info-gdb
1733install-info-host: maybe-install-info-expect
1734install-info-host: maybe-install-info-guile
1735install-info-host: maybe-install-info-tk
1736install-info-host: maybe-install-info-libtermcap
1737install-info-host: maybe-install-info-utils
1738install-info-host: maybe-install-info-gnattools
700d40ca 1739install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1740install-info-host: maybe-install-info-libcc1
1741install-info-host: maybe-install-info-gotools
0e65dfba 1742install-info-host: maybe-install-info-libctf
a2592b1b 1743
4fa63067 1744.PHONY: install-info-target
c52c6897
PB
1745
1746install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1747install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1748install-info-target: maybe-install-info-target-libmpx
95e43135 1749install-info-target: maybe-install-info-target-libvtv
1b6c0831 1750install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1751install-info-target: maybe-install-info-target-libssp
c52c6897 1752install-info-target: maybe-install-info-target-newlib
6aa8ef82 1753install-info-target: maybe-install-info-target-libgcc
2bf680c4 1754install-info-target: maybe-install-info-target-libbacktrace
e552509b 1755install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1756install-info-target: maybe-install-info-target-libgfortran
1757install-info-target: maybe-install-info-target-libobjc
e552509b 1758install-info-target: maybe-install-info-target-libgo
f948b2de
NC
1759install-info-target: maybe-install-info-target-libhsail-rt
1760install-info-target: maybe-install-info-target-libphobos
c52c6897
PB
1761install-info-target: maybe-install-info-target-libtermcap
1762install-info-target: maybe-install-info-target-winsup
1763install-info-target: maybe-install-info-target-libgloss
c52c6897 1764install-info-target: maybe-install-info-target-libffi
c52c6897 1765install-info-target: maybe-install-info-target-zlib
c52c6897
PB
1766install-info-target: maybe-install-info-target-rda
1767install-info-target: maybe-install-info-target-libada
1768install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1769install-info-target: maybe-install-info-target-libitm
1770install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1771
a3ca38d2
DD
1772.PHONY: do-install-pdf
1773do-install-pdf:
1774 @: $(MAKE); $(unstage)
1775 @r=`${PWD_COMMAND}`; export r; \
1776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1777 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1778 install-pdf-target
1779
1780
1781.PHONY: install-pdf-host
1782
a3ca38d2
DD
1783install-pdf-host: maybe-install-pdf-bfd
1784install-pdf-host: maybe-install-pdf-opcodes
1785install-pdf-host: maybe-install-pdf-binutils
1786install-pdf-host: maybe-install-pdf-bison
f9806fa5 1787install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1788install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1789install-pdf-host: maybe-install-pdf-etc
1790install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1791install-pdf-host: maybe-install-pdf-fixincludes
1792install-pdf-host: maybe-install-pdf-flex
1793install-pdf-host: maybe-install-pdf-gas
1794install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1795install-pdf-host: maybe-install-pdf-gmp
1796install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1797install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1798install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1799install-pdf-host: maybe-install-pdf-libelf
93f9b408 1800install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1801install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1802install-pdf-host: maybe-install-pdf-intl
1803install-pdf-host: maybe-install-pdf-tcl
1804install-pdf-host: maybe-install-pdf-itcl
1805install-pdf-host: maybe-install-pdf-ld
2bf680c4 1806install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1807install-pdf-host: maybe-install-pdf-libcpp
1808install-pdf-host: maybe-install-pdf-libdecnumber
1809install-pdf-host: maybe-install-pdf-libgui
1810install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1811install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1812install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1813install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1814install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1815install-pdf-host: maybe-install-pdf-sid
1816install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1817install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2
DD
1818install-pdf-host: maybe-install-pdf-zlib
1819install-pdf-host: maybe-install-pdf-gdb
1820install-pdf-host: maybe-install-pdf-expect
1821install-pdf-host: maybe-install-pdf-guile
1822install-pdf-host: maybe-install-pdf-tk
1823install-pdf-host: maybe-install-pdf-libtermcap
1824install-pdf-host: maybe-install-pdf-utils
1825install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1826install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1827install-pdf-host: maybe-install-pdf-libcc1
1828install-pdf-host: maybe-install-pdf-gotools
0e65dfba 1829install-pdf-host: maybe-install-pdf-libctf
a3ca38d2
DD
1830
1831.PHONY: install-pdf-target
1832
1833install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1834install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1835install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1836install-pdf-target: maybe-install-pdf-target-libvtv
1b6c0831 1837install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1838install-pdf-target: maybe-install-pdf-target-libssp
1839install-pdf-target: maybe-install-pdf-target-newlib
1840install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1841install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1842install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1843install-pdf-target: maybe-install-pdf-target-libgfortran
1844install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1845install-pdf-target: maybe-install-pdf-target-libgo
f948b2de
NC
1846install-pdf-target: maybe-install-pdf-target-libhsail-rt
1847install-pdf-target: maybe-install-pdf-target-libphobos
a3ca38d2
DD
1848install-pdf-target: maybe-install-pdf-target-libtermcap
1849install-pdf-target: maybe-install-pdf-target-winsup
1850install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2 1851install-pdf-target: maybe-install-pdf-target-libffi
a3ca38d2 1852install-pdf-target: maybe-install-pdf-target-zlib
a3ca38d2
DD
1853install-pdf-target: maybe-install-pdf-target-rda
1854install-pdf-target: maybe-install-pdf-target-libada
1855install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1856install-pdf-target: maybe-install-pdf-target-libitm
1857install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1858
108a6f8e
CD
1859.PHONY: do-install-html
1860do-install-html:
1861 @: $(MAKE); $(unstage)
1862 @r=`${PWD_COMMAND}`; export r; \
1863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1864 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1865 install-html-target
1866
1867
1868.PHONY: install-html-host
1869
108a6f8e
CD
1870install-html-host: maybe-install-html-bfd
1871install-html-host: maybe-install-html-opcodes
1872install-html-host: maybe-install-html-binutils
1873install-html-host: maybe-install-html-bison
f9806fa5 1874install-html-host: maybe-install-html-cgen
108a6f8e 1875install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1876install-html-host: maybe-install-html-etc
1877install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1878install-html-host: maybe-install-html-fixincludes
1879install-html-host: maybe-install-html-flex
1880install-html-host: maybe-install-html-gas
1881install-html-host: maybe-install-html-gcc
4b900473
PB
1882install-html-host: maybe-install-html-gmp
1883install-html-host: maybe-install-html-mpfr
e8a5fa9c 1884install-html-host: maybe-install-html-mpc
7ec59b9e 1885install-html-host: maybe-install-html-isl
1f53ca9a 1886install-html-host: maybe-install-html-libelf
93f9b408 1887install-html-host: maybe-install-html-gold
108a6f8e 1888install-html-host: maybe-install-html-gprof
108a6f8e
CD
1889install-html-host: maybe-install-html-intl
1890install-html-host: maybe-install-html-tcl
1891install-html-host: maybe-install-html-itcl
1892install-html-host: maybe-install-html-ld
2bf680c4 1893install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1894install-html-host: maybe-install-html-libcpp
1895install-html-host: maybe-install-html-libdecnumber
1896install-html-host: maybe-install-html-libgui
1897install-html-host: maybe-install-html-libiberty
1b6c0831 1898install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1899install-html-host: maybe-install-html-libiconv
108a6f8e 1900install-html-host: maybe-install-html-m4
108a6f8e 1901install-html-host: maybe-install-html-readline
108a6f8e
CD
1902install-html-host: maybe-install-html-sid
1903install-html-host: maybe-install-html-sim
108a6f8e 1904install-html-host: maybe-install-html-texinfo
108a6f8e
CD
1905install-html-host: maybe-install-html-zlib
1906install-html-host: maybe-install-html-gdb
1907install-html-host: maybe-install-html-expect
1908install-html-host: maybe-install-html-guile
1909install-html-host: maybe-install-html-tk
1910install-html-host: maybe-install-html-libtermcap
1911install-html-host: maybe-install-html-utils
1912install-html-host: maybe-install-html-gnattools
700d40ca 1913install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1914install-html-host: maybe-install-html-libcc1
1915install-html-host: maybe-install-html-gotools
0e65dfba 1916install-html-host: maybe-install-html-libctf
108a6f8e
CD
1917
1918.PHONY: install-html-target
1919
1920install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1921install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1922install-html-target: maybe-install-html-target-libmpx
95e43135 1923install-html-target: maybe-install-html-target-libvtv
1b6c0831 1924install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1925install-html-target: maybe-install-html-target-libssp
108a6f8e 1926install-html-target: maybe-install-html-target-newlib
6aa8ef82 1927install-html-target: maybe-install-html-target-libgcc
2bf680c4 1928install-html-target: maybe-install-html-target-libbacktrace
e552509b 1929install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1930install-html-target: maybe-install-html-target-libgfortran
1931install-html-target: maybe-install-html-target-libobjc
e552509b 1932install-html-target: maybe-install-html-target-libgo
f948b2de
NC
1933install-html-target: maybe-install-html-target-libhsail-rt
1934install-html-target: maybe-install-html-target-libphobos
108a6f8e
CD
1935install-html-target: maybe-install-html-target-libtermcap
1936install-html-target: maybe-install-html-target-winsup
1937install-html-target: maybe-install-html-target-libgloss
108a6f8e 1938install-html-target: maybe-install-html-target-libffi
108a6f8e 1939install-html-target: maybe-install-html-target-zlib
108a6f8e
CD
1940install-html-target: maybe-install-html-target-rda
1941install-html-target: maybe-install-html-target-libada
1942install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1943install-html-target: maybe-install-html-target-libitm
1944install-html-target: maybe-install-html-target-libatomic
108a6f8e 1945
2a4cbe27 1946.PHONY: do-installcheck
f70224b5 1947do-installcheck:
0aed8855 1948 @: $(MAKE); $(unstage)
e360f423
PB
1949 @r=`${PWD_COMMAND}`; export r; \
1950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1951 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1952 installcheck-target
f70224b5 1953
2a4cbe27
NN
1954
1955.PHONY: installcheck-host
c52c6897 1956
c52c6897
PB
1957installcheck-host: maybe-installcheck-bfd
1958installcheck-host: maybe-installcheck-opcodes
1959installcheck-host: maybe-installcheck-binutils
1960installcheck-host: maybe-installcheck-bison
f9806fa5 1961installcheck-host: maybe-installcheck-cgen
c52c6897 1962installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1963installcheck-host: maybe-installcheck-etc
1964installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1965installcheck-host: maybe-installcheck-fixincludes
1966installcheck-host: maybe-installcheck-flex
1967installcheck-host: maybe-installcheck-gas
1968installcheck-host: maybe-installcheck-gcc
4b900473
PB
1969installcheck-host: maybe-installcheck-gmp
1970installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1971installcheck-host: maybe-installcheck-mpc
7ec59b9e 1972installcheck-host: maybe-installcheck-isl
1f53ca9a 1973installcheck-host: maybe-installcheck-libelf
93f9b408 1974installcheck-host: maybe-installcheck-gold
c52c6897 1975installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1976installcheck-host: maybe-installcheck-intl
1977installcheck-host: maybe-installcheck-tcl
1978installcheck-host: maybe-installcheck-itcl
1979installcheck-host: maybe-installcheck-ld
2bf680c4 1980installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1981installcheck-host: maybe-installcheck-libcpp
1982installcheck-host: maybe-installcheck-libdecnumber
1983installcheck-host: maybe-installcheck-libgui
1984installcheck-host: maybe-installcheck-libiberty
1b6c0831 1985installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1986installcheck-host: maybe-installcheck-libiconv
c52c6897 1987installcheck-host: maybe-installcheck-m4
c52c6897 1988installcheck-host: maybe-installcheck-readline
c52c6897
PB
1989installcheck-host: maybe-installcheck-sid
1990installcheck-host: maybe-installcheck-sim
c52c6897 1991installcheck-host: maybe-installcheck-texinfo
c52c6897
PB
1992installcheck-host: maybe-installcheck-zlib
1993installcheck-host: maybe-installcheck-gdb
1994installcheck-host: maybe-installcheck-expect
1995installcheck-host: maybe-installcheck-guile
1996installcheck-host: maybe-installcheck-tk
1997installcheck-host: maybe-installcheck-libtermcap
1998installcheck-host: maybe-installcheck-utils
1999installcheck-host: maybe-installcheck-gnattools
700d40ca 2000installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
2001installcheck-host: maybe-installcheck-libcc1
2002installcheck-host: maybe-installcheck-gotools
0e65dfba 2003installcheck-host: maybe-installcheck-libctf
2a4cbe27
NN
2004
2005.PHONY: installcheck-target
c52c6897
PB
2006
2007installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 2008installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 2009installcheck-target: maybe-installcheck-target-libmpx
95e43135 2010installcheck-target: maybe-installcheck-target-libvtv
1b6c0831 2011installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 2012installcheck-target: maybe-installcheck-target-libssp
c52c6897 2013installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 2014installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 2015installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 2016installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
2017installcheck-target: maybe-installcheck-target-libgfortran
2018installcheck-target: maybe-installcheck-target-libobjc
e552509b 2019installcheck-target: maybe-installcheck-target-libgo
f948b2de
NC
2020installcheck-target: maybe-installcheck-target-libhsail-rt
2021installcheck-target: maybe-installcheck-target-libphobos
c52c6897
PB
2022installcheck-target: maybe-installcheck-target-libtermcap
2023installcheck-target: maybe-installcheck-target-winsup
2024installcheck-target: maybe-installcheck-target-libgloss
c52c6897 2025installcheck-target: maybe-installcheck-target-libffi
c52c6897 2026installcheck-target: maybe-installcheck-target-zlib
c52c6897
PB
2027installcheck-target: maybe-installcheck-target-rda
2028installcheck-target: maybe-installcheck-target-libada
2029installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
2030installcheck-target: maybe-installcheck-target-libitm
2031installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 2032
4fa63067 2033.PHONY: do-mostlyclean
f70224b5 2034do-mostlyclean:
0aed8855 2035 @: $(MAKE); $(unstage)
e360f423
PB
2036 @r=`${PWD_COMMAND}`; export r; \
2037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2038 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 2039 mostlyclean-target
f70224b5 2040
2a4cbe27 2041
4fa63067 2042.PHONY: mostlyclean-host
c52c6897 2043
c52c6897
PB
2044mostlyclean-host: maybe-mostlyclean-bfd
2045mostlyclean-host: maybe-mostlyclean-opcodes
2046mostlyclean-host: maybe-mostlyclean-binutils
2047mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 2048mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 2049mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
2050mostlyclean-host: maybe-mostlyclean-etc
2051mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
2052mostlyclean-host: maybe-mostlyclean-fixincludes
2053mostlyclean-host: maybe-mostlyclean-flex
2054mostlyclean-host: maybe-mostlyclean-gas
2055mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
2056mostlyclean-host: maybe-mostlyclean-gmp
2057mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 2058mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 2059mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 2060mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 2061mostlyclean-host: maybe-mostlyclean-gold
c52c6897 2062mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
2063mostlyclean-host: maybe-mostlyclean-intl
2064mostlyclean-host: maybe-mostlyclean-tcl
2065mostlyclean-host: maybe-mostlyclean-itcl
2066mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 2067mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
2068mostlyclean-host: maybe-mostlyclean-libcpp
2069mostlyclean-host: maybe-mostlyclean-libdecnumber
2070mostlyclean-host: maybe-mostlyclean-libgui
2071mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 2072mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 2073mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 2074mostlyclean-host: maybe-mostlyclean-m4
c52c6897 2075mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
2076mostlyclean-host: maybe-mostlyclean-sid
2077mostlyclean-host: maybe-mostlyclean-sim
c52c6897 2078mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897
PB
2079mostlyclean-host: maybe-mostlyclean-zlib
2080mostlyclean-host: maybe-mostlyclean-gdb
2081mostlyclean-host: maybe-mostlyclean-expect
2082mostlyclean-host: maybe-mostlyclean-guile
2083mostlyclean-host: maybe-mostlyclean-tk
2084mostlyclean-host: maybe-mostlyclean-libtermcap
2085mostlyclean-host: maybe-mostlyclean-utils
2086mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 2087mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
2088mostlyclean-host: maybe-mostlyclean-libcc1
2089mostlyclean-host: maybe-mostlyclean-gotools
0e65dfba 2090mostlyclean-host: maybe-mostlyclean-libctf
2a4cbe27 2091
4fa63067 2092.PHONY: mostlyclean-target
c52c6897
PB
2093
2094mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 2095mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 2096mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 2097mostlyclean-target: maybe-mostlyclean-target-libvtv
1b6c0831 2098mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 2099mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2100mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2101mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2102mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2103mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2104mostlyclean-target: maybe-mostlyclean-target-libgfortran
2105mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2106mostlyclean-target: maybe-mostlyclean-target-libgo
f948b2de
NC
2107mostlyclean-target: maybe-mostlyclean-target-libhsail-rt
2108mostlyclean-target: maybe-mostlyclean-target-libphobos
c52c6897
PB
2109mostlyclean-target: maybe-mostlyclean-target-libtermcap
2110mostlyclean-target: maybe-mostlyclean-target-winsup
2111mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897 2112mostlyclean-target: maybe-mostlyclean-target-libffi
c52c6897 2113mostlyclean-target: maybe-mostlyclean-target-zlib
c52c6897
PB
2114mostlyclean-target: maybe-mostlyclean-target-rda
2115mostlyclean-target: maybe-mostlyclean-target-libada
2116mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2117mostlyclean-target: maybe-mostlyclean-target-libitm
2118mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2119
4fa63067 2120.PHONY: do-clean
f70224b5 2121do-clean:
0aed8855 2122 @: $(MAKE); $(unstage)
e360f423
PB
2123 @r=`${PWD_COMMAND}`; export r; \
2124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2125 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2126 clean-target
f70224b5 2127
2a4cbe27 2128
4fa63067 2129.PHONY: clean-host
c52c6897 2130
c52c6897
PB
2131clean-host: maybe-clean-bfd
2132clean-host: maybe-clean-opcodes
2133clean-host: maybe-clean-binutils
2134clean-host: maybe-clean-bison
f9806fa5 2135clean-host: maybe-clean-cgen
c52c6897 2136clean-host: maybe-clean-dejagnu
c52c6897
PB
2137clean-host: maybe-clean-etc
2138clean-host: maybe-clean-fastjar
c52c6897
PB
2139clean-host: maybe-clean-fixincludes
2140clean-host: maybe-clean-flex
2141clean-host: maybe-clean-gas
2142clean-host: maybe-clean-gcc
4b900473
PB
2143clean-host: maybe-clean-gmp
2144clean-host: maybe-clean-mpfr
e8a5fa9c 2145clean-host: maybe-clean-mpc
7ec59b9e 2146clean-host: maybe-clean-isl
1f53ca9a 2147clean-host: maybe-clean-libelf
93f9b408 2148clean-host: maybe-clean-gold
c52c6897 2149clean-host: maybe-clean-gprof
c52c6897
PB
2150clean-host: maybe-clean-intl
2151clean-host: maybe-clean-tcl
2152clean-host: maybe-clean-itcl
2153clean-host: maybe-clean-ld
2bf680c4 2154clean-host: maybe-clean-libbacktrace
c52c6897
PB
2155clean-host: maybe-clean-libcpp
2156clean-host: maybe-clean-libdecnumber
2157clean-host: maybe-clean-libgui
2158clean-host: maybe-clean-libiberty
1b6c0831 2159clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2160clean-host: maybe-clean-libiconv
c52c6897 2161clean-host: maybe-clean-m4
c52c6897 2162clean-host: maybe-clean-readline
c52c6897
PB
2163clean-host: maybe-clean-sid
2164clean-host: maybe-clean-sim
c52c6897 2165clean-host: maybe-clean-texinfo
c52c6897
PB
2166clean-host: maybe-clean-zlib
2167clean-host: maybe-clean-gdb
2168clean-host: maybe-clean-expect
2169clean-host: maybe-clean-guile
2170clean-host: maybe-clean-tk
2171clean-host: maybe-clean-libtermcap
2172clean-host: maybe-clean-utils
2173clean-host: maybe-clean-gnattools
700d40ca 2174clean-host: maybe-clean-lto-plugin
1b6c0831
L
2175clean-host: maybe-clean-libcc1
2176clean-host: maybe-clean-gotools
0e65dfba 2177clean-host: maybe-clean-libctf
2a4cbe27 2178
4fa63067 2179.PHONY: clean-target
c52c6897
PB
2180
2181clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2182clean-target: maybe-clean-target-libsanitizer
1b6c0831 2183clean-target: maybe-clean-target-libmpx
95e43135 2184clean-target: maybe-clean-target-libvtv
1b6c0831 2185clean-target: maybe-clean-target-liboffloadmic
c52c6897 2186clean-target: maybe-clean-target-libssp
c52c6897 2187clean-target: maybe-clean-target-newlib
6aa8ef82 2188clean-target: maybe-clean-target-libgcc
2bf680c4 2189clean-target: maybe-clean-target-libbacktrace
e552509b 2190clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2191clean-target: maybe-clean-target-libgfortran
2192clean-target: maybe-clean-target-libobjc
e552509b 2193clean-target: maybe-clean-target-libgo
f948b2de
NC
2194clean-target: maybe-clean-target-libhsail-rt
2195clean-target: maybe-clean-target-libphobos
c52c6897
PB
2196clean-target: maybe-clean-target-libtermcap
2197clean-target: maybe-clean-target-winsup
2198clean-target: maybe-clean-target-libgloss
c52c6897 2199clean-target: maybe-clean-target-libffi
c52c6897 2200clean-target: maybe-clean-target-zlib
c52c6897
PB
2201clean-target: maybe-clean-target-rda
2202clean-target: maybe-clean-target-libada
2203clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2204clean-target: maybe-clean-target-libitm
2205clean-target: maybe-clean-target-libatomic
2a4cbe27 2206
4fa63067 2207.PHONY: do-distclean
f70224b5 2208do-distclean:
0aed8855 2209 @: $(MAKE); $(unstage)
e360f423
PB
2210 @r=`${PWD_COMMAND}`; export r; \
2211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2212 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2213 distclean-target
f70224b5 2214
2a4cbe27 2215
4fa63067 2216.PHONY: distclean-host
c52c6897 2217
c52c6897
PB
2218distclean-host: maybe-distclean-bfd
2219distclean-host: maybe-distclean-opcodes
2220distclean-host: maybe-distclean-binutils
2221distclean-host: maybe-distclean-bison
f9806fa5 2222distclean-host: maybe-distclean-cgen
c52c6897 2223distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2224distclean-host: maybe-distclean-etc
2225distclean-host: maybe-distclean-fastjar
c52c6897
PB
2226distclean-host: maybe-distclean-fixincludes
2227distclean-host: maybe-distclean-flex
2228distclean-host: maybe-distclean-gas
2229distclean-host: maybe-distclean-gcc
4b900473
PB
2230distclean-host: maybe-distclean-gmp
2231distclean-host: maybe-distclean-mpfr
e8a5fa9c 2232distclean-host: maybe-distclean-mpc
7ec59b9e 2233distclean-host: maybe-distclean-isl
1f53ca9a 2234distclean-host: maybe-distclean-libelf
93f9b408 2235distclean-host: maybe-distclean-gold
c52c6897 2236distclean-host: maybe-distclean-gprof
c52c6897
PB
2237distclean-host: maybe-distclean-intl
2238distclean-host: maybe-distclean-tcl
2239distclean-host: maybe-distclean-itcl
2240distclean-host: maybe-distclean-ld
2bf680c4 2241distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2242distclean-host: maybe-distclean-libcpp
2243distclean-host: maybe-distclean-libdecnumber
2244distclean-host: maybe-distclean-libgui
2245distclean-host: maybe-distclean-libiberty
1b6c0831 2246distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2247distclean-host: maybe-distclean-libiconv
c52c6897 2248distclean-host: maybe-distclean-m4
c52c6897 2249distclean-host: maybe-distclean-readline
c52c6897
PB
2250distclean-host: maybe-distclean-sid
2251distclean-host: maybe-distclean-sim
c52c6897 2252distclean-host: maybe-distclean-texinfo
c52c6897
PB
2253distclean-host: maybe-distclean-zlib
2254distclean-host: maybe-distclean-gdb
2255distclean-host: maybe-distclean-expect
2256distclean-host: maybe-distclean-guile
2257distclean-host: maybe-distclean-tk
2258distclean-host: maybe-distclean-libtermcap
2259distclean-host: maybe-distclean-utils
2260distclean-host: maybe-distclean-gnattools
700d40ca 2261distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2262distclean-host: maybe-distclean-libcc1
2263distclean-host: maybe-distclean-gotools
0e65dfba 2264distclean-host: maybe-distclean-libctf
2a4cbe27 2265
4fa63067 2266.PHONY: distclean-target
c52c6897
PB
2267
2268distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2269distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2270distclean-target: maybe-distclean-target-libmpx
95e43135 2271distclean-target: maybe-distclean-target-libvtv
1b6c0831 2272distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2273distclean-target: maybe-distclean-target-libssp
c52c6897 2274distclean-target: maybe-distclean-target-newlib
6aa8ef82 2275distclean-target: maybe-distclean-target-libgcc
2bf680c4 2276distclean-target: maybe-distclean-target-libbacktrace
e552509b 2277distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2278distclean-target: maybe-distclean-target-libgfortran
2279distclean-target: maybe-distclean-target-libobjc
e552509b 2280distclean-target: maybe-distclean-target-libgo
f948b2de
NC
2281distclean-target: maybe-distclean-target-libhsail-rt
2282distclean-target: maybe-distclean-target-libphobos
c52c6897
PB
2283distclean-target: maybe-distclean-target-libtermcap
2284distclean-target: maybe-distclean-target-winsup
2285distclean-target: maybe-distclean-target-libgloss
c52c6897 2286distclean-target: maybe-distclean-target-libffi
c52c6897 2287distclean-target: maybe-distclean-target-zlib
c52c6897
PB
2288distclean-target: maybe-distclean-target-rda
2289distclean-target: maybe-distclean-target-libada
2290distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2291distclean-target: maybe-distclean-target-libitm
2292distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2293
4fa63067 2294.PHONY: do-maintainer-clean
f70224b5 2295do-maintainer-clean:
0aed8855 2296 @: $(MAKE); $(unstage)
e360f423
PB
2297 @r=`${PWD_COMMAND}`; export r; \
2298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2299 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2300 maintainer-clean-target
f70224b5 2301
2a4cbe27 2302
4fa63067 2303.PHONY: maintainer-clean-host
c52c6897 2304
c52c6897
PB
2305maintainer-clean-host: maybe-maintainer-clean-bfd
2306maintainer-clean-host: maybe-maintainer-clean-opcodes
2307maintainer-clean-host: maybe-maintainer-clean-binutils
2308maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2309maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2310maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2311maintainer-clean-host: maybe-maintainer-clean-etc
2312maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2313maintainer-clean-host: maybe-maintainer-clean-fixincludes
2314maintainer-clean-host: maybe-maintainer-clean-flex
2315maintainer-clean-host: maybe-maintainer-clean-gas
2316maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2317maintainer-clean-host: maybe-maintainer-clean-gmp
2318maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2319maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2320maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2321maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2322maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2323maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2324maintainer-clean-host: maybe-maintainer-clean-intl
2325maintainer-clean-host: maybe-maintainer-clean-tcl
2326maintainer-clean-host: maybe-maintainer-clean-itcl
2327maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2328maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2329maintainer-clean-host: maybe-maintainer-clean-libcpp
2330maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2331maintainer-clean-host: maybe-maintainer-clean-libgui
2332maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2333maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2334maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2335maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2336maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2337maintainer-clean-host: maybe-maintainer-clean-sid
2338maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2339maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897
PB
2340maintainer-clean-host: maybe-maintainer-clean-zlib
2341maintainer-clean-host: maybe-maintainer-clean-gdb
2342maintainer-clean-host: maybe-maintainer-clean-expect
2343maintainer-clean-host: maybe-maintainer-clean-guile
2344maintainer-clean-host: maybe-maintainer-clean-tk
2345maintainer-clean-host: maybe-maintainer-clean-libtermcap
2346maintainer-clean-host: maybe-maintainer-clean-utils
2347maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2348maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2349maintainer-clean-host: maybe-maintainer-clean-libcc1
2350maintainer-clean-host: maybe-maintainer-clean-gotools
0e65dfba 2351maintainer-clean-host: maybe-maintainer-clean-libctf
2a4cbe27 2352
4fa63067 2353.PHONY: maintainer-clean-target
c52c6897
PB
2354
2355maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2356maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2357maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2358maintainer-clean-target: maybe-maintainer-clean-target-libvtv
1b6c0831 2359maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2360maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2361maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2362maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2363maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2364maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2365maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2366maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2367maintainer-clean-target: maybe-maintainer-clean-target-libgo
f948b2de
NC
2368maintainer-clean-target: maybe-maintainer-clean-target-libhsail-rt
2369maintainer-clean-target: maybe-maintainer-clean-target-libphobos
c52c6897
PB
2370maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2371maintainer-clean-target: maybe-maintainer-clean-target-winsup
2372maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897 2373maintainer-clean-target: maybe-maintainer-clean-target-libffi
c52c6897 2374maintainer-clean-target: maybe-maintainer-clean-target-zlib
c52c6897
PB
2375maintainer-clean-target: maybe-maintainer-clean-target-rda
2376maintainer-clean-target: maybe-maintainer-clean-target-libada
2377maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2378maintainer-clean-target: maybe-maintainer-clean-target-libitm
2379maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2380
2a4cbe27 2381
4fa63067 2382# Here are the targets which correspond to the do-X targets.
2a4cbe27 2383
a3ca38d2
DD
2384.PHONY: info installcheck dvi pdf html
2385.PHONY: install-info install-pdf install-html
4fa63067
NN
2386.PHONY: clean distclean mostlyclean maintainer-clean realclean
2387.PHONY: local-clean local-distclean local-maintainer-clean
2388info: do-info
2389installcheck: do-installcheck
2390dvi: do-dvi
56a8fe78 2391pdf: do-pdf
6d389afc 2392html: do-html
2a4cbe27 2393
4fa63067
NN
2394# Make sure makeinfo is built before we do a `make info', if we're
2395# in fact building texinfo.
2396do-info: maybe-all-texinfo
2a4cbe27 2397
4fa63067 2398install-info: do-install-info dir.info
b40e3958 2399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2400 if [ -f dir.info ]; then \
2401 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2402 else true; fi
2a4cbe27 2403
a3ca38d2
DD
2404install-pdf: do-install-pdf
2405
108a6f8e
CD
2406install-html: do-install-html
2407
4fa63067
NN
2408local-clean:
2409 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2410
4fa63067
NN
2411local-distclean:
2412 -rm -f Makefile config.status config.cache mh-frag mt-frag
bb7dc663 2413 -rm -f maybedep.tmp serdep.tmp stage_final
4fa63067
NN
2414 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2415 rm -rf $(TARGET_SUBDIR); \
2416 else true; fi
2417 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2418 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2419 rm -rf $(HOST_SUBDIR); \
2420 else true; fi
4fa63067
NN
2421 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2422 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2423 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2424 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
bb7dc663
NC
2425 -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
2426 -rmdir texinfo zlib 2>/dev/null
18fa8f9c 2427 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2428
4fa63067
NN
2429local-maintainer-clean:
2430 @echo "This command is intended for maintainers to use;"
2431 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2432
4fa63067
NN
2433clean: do-clean local-clean
2434mostlyclean: do-mostlyclean local-clean
2435distclean: do-distclean local-clean local-distclean
2436maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2437maintainer-clean: local-distclean
2438realclean: maintainer-clean
2a4cbe27 2439
4fa63067 2440# Check target.
2a4cbe27 2441
4fa63067
NN
2442.PHONY: check do-check
2443check: do-check
2a4cbe27 2444
4fa63067 2445# Only include modules actually being configured and built.
f70224b5
PB
2446.PHONY: check-host
2447check-host: \
4fa63067
NN
2448 maybe-check-bfd \
2449 maybe-check-opcodes \
2450 maybe-check-binutils \
2451 maybe-check-bison \
f9806fa5 2452 maybe-check-cgen \
4fa63067 2453 maybe-check-dejagnu \
4fa63067
NN
2454 maybe-check-etc \
2455 maybe-check-fastjar \
d3ed111c 2456 maybe-check-fixincludes \
4fa63067
NN
2457 maybe-check-flex \
2458 maybe-check-gas \
b813574b 2459 maybe-check-gcc \
4b900473
PB
2460 maybe-check-gmp \
2461 maybe-check-mpfr \
e8a5fa9c 2462 maybe-check-mpc \
7ec59b9e 2463 maybe-check-isl \
1f53ca9a 2464 maybe-check-libelf \
93f9b408 2465 maybe-check-gold \
4fa63067 2466 maybe-check-gprof \
4fa63067
NN
2467 maybe-check-intl \
2468 maybe-check-tcl \
2469 maybe-check-itcl \
2470 maybe-check-ld \
2bf680c4 2471 maybe-check-libbacktrace \
04cf1b77 2472 maybe-check-libcpp \
be01d343 2473 maybe-check-libdecnumber \
4fa63067
NN
2474 maybe-check-libgui \
2475 maybe-check-libiberty \
1b6c0831 2476 maybe-check-libiberty-linker-plugin \
dc448a7b 2477 maybe-check-libiconv \
4fa63067 2478 maybe-check-m4 \
4fa63067 2479 maybe-check-readline \
4fa63067
NN
2480 maybe-check-sid \
2481 maybe-check-sim \
4fa63067 2482 maybe-check-texinfo \
4fa63067
NN
2483 maybe-check-zlib \
2484 maybe-check-gdb \
2485 maybe-check-expect \
2486 maybe-check-guile \
2487 maybe-check-tk \
4fa63067
NN
2488 maybe-check-libtermcap \
2489 maybe-check-utils \
700d40ca 2490 maybe-check-gnattools \
1b6c0831
L
2491 maybe-check-lto-plugin \
2492 maybe-check-libcc1 \
0e65dfba
NA
2493 maybe-check-gotools \
2494 maybe-check-libctf
f70224b5
PB
2495
2496.PHONY: check-target
2497check-target: \
4fa63067 2498 maybe-check-target-libstdc++-v3 \
5286fdef 2499 maybe-check-target-libsanitizer \
1b6c0831 2500 maybe-check-target-libmpx \
95e43135 2501 maybe-check-target-libvtv \
1b6c0831 2502 maybe-check-target-liboffloadmic \
064d0a7c 2503 maybe-check-target-libssp \
4fa63067 2504 maybe-check-target-newlib \
6aa8ef82 2505 maybe-check-target-libgcc \
2bf680c4 2506 maybe-check-target-libbacktrace \
e552509b 2507 maybe-check-target-libquadmath \
4b1cb4fe 2508 maybe-check-target-libgfortran \
4fa63067 2509 maybe-check-target-libobjc \
e552509b 2510 maybe-check-target-libgo \
f948b2de
NC
2511 maybe-check-target-libhsail-rt \
2512 maybe-check-target-libphobos \
4fa63067
NN
2513 maybe-check-target-libtermcap \
2514 maybe-check-target-winsup \
2515 maybe-check-target-libgloss \
4fa63067 2516 maybe-check-target-libffi \
4fa63067 2517 maybe-check-target-zlib \
4fa63067 2518 maybe-check-target-rda \
b3ded179 2519 maybe-check-target-libada \
7ec59b9e
L
2520 maybe-check-target-libgomp \
2521 maybe-check-target-libitm \
2522 maybe-check-target-libatomic
f70224b5
PB
2523
2524do-check:
0aed8855 2525 @: $(MAKE); $(unstage)
e360f423
PB
2526 @r=`${PWD_COMMAND}`; export r; \
2527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2528 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2529
4fa63067 2530# Automated reporting of test results.
2a4cbe27 2531
4fa63067
NN
2532warning.log: build.log
2533 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2534
4fa63067
NN
2535mail-report.log:
2536 if test x'$(BOOT_CFLAGS)' != x''; then \
2537 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2538 fi; \
2539 $(srcdir)/contrib/test_summary -t >$@
2540 chmod +x $@
2541 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2542
4fa63067
NN
2543mail-report-with-warnings.log: warning.log
2544 if test x'$(BOOT_CFLAGS)' != x''; then \
2545 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2546 fi; \
2547 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2548 chmod +x $@
2549 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2550
1b6c0831
L
2551# Local Vim config
2552
2553$(srcdir)/.local.vimrc:
22121df0 2554 $(LN_S) contrib/vimrc $@
1b6c0831
L
2555
2556$(srcdir)/.lvimrc:
22121df0 2557 $(LN_S) contrib/vimrc $@
1b6c0831
L
2558
2559vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2560
2561.PHONY: vimrc
2562
4849dfd8
NC
2563# clang-format config
2564
2565$(srcdir)/.clang-format:
2566 $(LN_S) contrib/clang-format $@
2567
2568clang-format: $(srcdir)/.clang-format
2569
2570.PHONY: clang-format
2571
4fa63067 2572# Installation targets.
2a4cbe27 2573
4fa63067 2574.PHONY: install uninstall
f70224b5 2575install:
0aed8855 2576 @: $(MAKE); $(unstage)
e360f423
PB
2577 @r=`${PWD_COMMAND}`; export r; \
2578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2579 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2580
4fa63067
NN
2581.PHONY: install-host-nogcc
2582install-host-nogcc: \
4fa63067
NN
2583 maybe-install-bfd \
2584 maybe-install-opcodes \
2585 maybe-install-binutils \
2586 maybe-install-bison \
f9806fa5 2587 maybe-install-cgen \
4fa63067 2588 maybe-install-dejagnu \
4fa63067
NN
2589 maybe-install-etc \
2590 maybe-install-fastjar \
d3ed111c 2591 maybe-install-fixincludes \
4fa63067
NN
2592 maybe-install-flex \
2593 maybe-install-gas \
4b900473
PB
2594 maybe-install-gmp \
2595 maybe-install-mpfr \
e8a5fa9c 2596 maybe-install-mpc \
7ec59b9e 2597 maybe-install-isl \
1f53ca9a 2598 maybe-install-libelf \
93f9b408 2599 maybe-install-gold \
4fa63067 2600 maybe-install-gprof \
4fa63067
NN
2601 maybe-install-intl \
2602 maybe-install-tcl \
2603 maybe-install-itcl \
2604 maybe-install-ld \
2bf680c4 2605 maybe-install-libbacktrace \
04cf1b77 2606 maybe-install-libcpp \
be01d343 2607 maybe-install-libdecnumber \
4fa63067
NN
2608 maybe-install-libgui \
2609 maybe-install-libiberty \
1b6c0831 2610 maybe-install-libiberty-linker-plugin \
dc448a7b 2611 maybe-install-libiconv \
4fa63067 2612 maybe-install-m4 \
4fa63067 2613 maybe-install-readline \
4fa63067
NN
2614 maybe-install-sid \
2615 maybe-install-sim \
4fa63067 2616 maybe-install-texinfo \
4fa63067
NN
2617 maybe-install-zlib \
2618 maybe-install-gdb \
2619 maybe-install-expect \
2620 maybe-install-guile \
2621 maybe-install-tk \
4fa63067 2622 maybe-install-libtermcap \
b00612cc 2623 maybe-install-utils \
700d40ca 2624 maybe-install-gnattools \
1b6c0831
L
2625 maybe-install-lto-plugin \
2626 maybe-install-libcc1 \
0e65dfba
NA
2627 maybe-install-gotools \
2628 maybe-install-libctf
2a4cbe27 2629
4fa63067 2630.PHONY: install-host
b813574b 2631install-host: \
4fa63067
NN
2632 maybe-install-bfd \
2633 maybe-install-opcodes \
2634 maybe-install-binutils \
2635 maybe-install-bison \
f9806fa5 2636 maybe-install-cgen \
4fa63067 2637 maybe-install-dejagnu \
4fa63067
NN
2638 maybe-install-etc \
2639 maybe-install-fastjar \
d3ed111c 2640 maybe-install-fixincludes \
4fa63067
NN
2641 maybe-install-flex \
2642 maybe-install-gas \
b813574b 2643 maybe-install-gcc \
4b900473
PB
2644 maybe-install-gmp \
2645 maybe-install-mpfr \
e8a5fa9c 2646 maybe-install-mpc \
7ec59b9e 2647 maybe-install-isl \
1f53ca9a 2648 maybe-install-libelf \
93f9b408 2649 maybe-install-gold \
4fa63067 2650 maybe-install-gprof \
4fa63067
NN
2651 maybe-install-intl \
2652 maybe-install-tcl \
2653 maybe-install-itcl \
2654 maybe-install-ld \
2bf680c4 2655 maybe-install-libbacktrace \
04cf1b77 2656 maybe-install-libcpp \
be01d343 2657 maybe-install-libdecnumber \
4fa63067
NN
2658 maybe-install-libgui \
2659 maybe-install-libiberty \
1b6c0831 2660 maybe-install-libiberty-linker-plugin \
dc448a7b 2661 maybe-install-libiconv \
4fa63067 2662 maybe-install-m4 \
4fa63067 2663 maybe-install-readline \
4fa63067
NN
2664 maybe-install-sid \
2665 maybe-install-sim \
4fa63067 2666 maybe-install-texinfo \
4fa63067
NN
2667 maybe-install-zlib \
2668 maybe-install-gdb \
2669 maybe-install-expect \
2670 maybe-install-guile \
2671 maybe-install-tk \
4fa63067 2672 maybe-install-libtermcap \
b00612cc 2673 maybe-install-utils \
700d40ca 2674 maybe-install-gnattools \
1b6c0831
L
2675 maybe-install-lto-plugin \
2676 maybe-install-libcc1 \
0e65dfba
NA
2677 maybe-install-gotools \
2678 maybe-install-libctf
2a4cbe27 2679
4fa63067
NN
2680.PHONY: install-target
2681install-target: \
2682 maybe-install-target-libstdc++-v3 \
5286fdef 2683 maybe-install-target-libsanitizer \
1b6c0831 2684 maybe-install-target-libmpx \
95e43135 2685 maybe-install-target-libvtv \
1b6c0831 2686 maybe-install-target-liboffloadmic \
064d0a7c 2687 maybe-install-target-libssp \
4fa63067 2688 maybe-install-target-newlib \
6aa8ef82 2689 maybe-install-target-libgcc \
2bf680c4 2690 maybe-install-target-libbacktrace \
e552509b 2691 maybe-install-target-libquadmath \
4b1cb4fe 2692 maybe-install-target-libgfortran \
4fa63067 2693 maybe-install-target-libobjc \
e552509b 2694 maybe-install-target-libgo \
f948b2de
NC
2695 maybe-install-target-libhsail-rt \
2696 maybe-install-target-libphobos \
4fa63067
NN
2697 maybe-install-target-libtermcap \
2698 maybe-install-target-winsup \
2699 maybe-install-target-libgloss \
4fa63067 2700 maybe-install-target-libffi \
4fa63067 2701 maybe-install-target-zlib \
4fa63067 2702 maybe-install-target-rda \
b3ded179 2703 maybe-install-target-libada \
7ec59b9e
L
2704 maybe-install-target-libgomp \
2705 maybe-install-target-libitm \
2706 maybe-install-target-libatomic
2a4cbe27 2707
4fa63067
NN
2708uninstall:
2709 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2710
4fa63067
NN
2711.PHONY: install.all
2712install.all: install-no-fixedincludes
22121df0
L
2713 @if [ -f ./gcc/Makefile ]; then \
2714 r=`${PWD_COMMAND}`; export r; \
0aed8855 2715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2716 $(HOST_EXPORTS) \
4fa63067 2717 (cd ./gcc && \
22121df0 2718 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2719 else \
22121df0 2720 true; \
4fa63067 2721 fi
2a4cbe27 2722
7ec59b9e
L
2723# install-no-fixedincludes is used to allow the elaboration of binary packages
2724# suitable for distribution, where we cannot include the fixed system header
2725# files.
4fa63067
NN
2726.PHONY: install-no-fixedincludes
2727install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2728 install-target gcc-install-no-fixedincludes
2a4cbe27 2729
9b980aa1
RW
2730.PHONY: install-strip
2731install-strip:
2732 @: $(MAKE); $(unstage)
2733 @r=`${PWD_COMMAND}`; export r; \
2734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2735 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2736
2737.PHONY: install-strip-host
2738install-strip-host: \
9b980aa1
RW
2739 maybe-install-strip-bfd \
2740 maybe-install-strip-opcodes \
2741 maybe-install-strip-binutils \
2742 maybe-install-strip-bison \
9b980aa1
RW
2743 maybe-install-strip-cgen \
2744 maybe-install-strip-dejagnu \
9b980aa1
RW
2745 maybe-install-strip-etc \
2746 maybe-install-strip-fastjar \
9b980aa1
RW
2747 maybe-install-strip-fixincludes \
2748 maybe-install-strip-flex \
2749 maybe-install-strip-gas \
2750 maybe-install-strip-gcc \
9b980aa1
RW
2751 maybe-install-strip-gmp \
2752 maybe-install-strip-mpfr \
2753 maybe-install-strip-mpc \
7ec59b9e 2754 maybe-install-strip-isl \
9b980aa1 2755 maybe-install-strip-libelf \
9b980aa1
RW
2756 maybe-install-strip-gold \
2757 maybe-install-strip-gprof \
9b980aa1
RW
2758 maybe-install-strip-intl \
2759 maybe-install-strip-tcl \
2760 maybe-install-strip-itcl \
2761 maybe-install-strip-ld \
2bf680c4 2762 maybe-install-strip-libbacktrace \
9b980aa1
RW
2763 maybe-install-strip-libcpp \
2764 maybe-install-strip-libdecnumber \
2765 maybe-install-strip-libgui \
2766 maybe-install-strip-libiberty \
1b6c0831 2767 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2768 maybe-install-strip-libiconv \
9b980aa1 2769 maybe-install-strip-m4 \
9b980aa1 2770 maybe-install-strip-readline \
9b980aa1
RW
2771 maybe-install-strip-sid \
2772 maybe-install-strip-sim \
9b980aa1 2773 maybe-install-strip-texinfo \
9b980aa1
RW
2774 maybe-install-strip-zlib \
2775 maybe-install-strip-gdb \
2776 maybe-install-strip-expect \
2777 maybe-install-strip-guile \
2778 maybe-install-strip-tk \
2779 maybe-install-strip-libtermcap \
2780 maybe-install-strip-utils \
2781 maybe-install-strip-gnattools \
1b6c0831
L
2782 maybe-install-strip-lto-plugin \
2783 maybe-install-strip-libcc1 \
0e65dfba
NA
2784 maybe-install-strip-gotools \
2785 maybe-install-strip-libctf
9b980aa1
RW
2786
2787.PHONY: install-strip-target
2788install-strip-target: \
2789 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2790 maybe-install-strip-target-libsanitizer \
1b6c0831 2791 maybe-install-strip-target-libmpx \
95e43135 2792 maybe-install-strip-target-libvtv \
1b6c0831 2793 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2794 maybe-install-strip-target-libssp \
2795 maybe-install-strip-target-newlib \
2796 maybe-install-strip-target-libgcc \
2bf680c4 2797 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2798 maybe-install-strip-target-libquadmath \
2799 maybe-install-strip-target-libgfortran \
2800 maybe-install-strip-target-libobjc \
2801 maybe-install-strip-target-libgo \
f948b2de
NC
2802 maybe-install-strip-target-libhsail-rt \
2803 maybe-install-strip-target-libphobos \
9b980aa1
RW
2804 maybe-install-strip-target-libtermcap \
2805 maybe-install-strip-target-winsup \
2806 maybe-install-strip-target-libgloss \
9b980aa1 2807 maybe-install-strip-target-libffi \
9b980aa1 2808 maybe-install-strip-target-zlib \
9b980aa1
RW
2809 maybe-install-strip-target-rda \
2810 maybe-install-strip-target-libada \
7ec59b9e
L
2811 maybe-install-strip-target-libgomp \
2812 maybe-install-strip-target-libitm \
2813 maybe-install-strip-target-libatomic
9b980aa1
RW
2814
2815
4fa63067 2816### other supporting targets
2a4cbe27 2817
4fa63067
NN
2818MAKEDIRS= \
2819 $(DESTDIR)$(prefix) \
2820 $(DESTDIR)$(exec_prefix)
2821.PHONY: installdirs
2822installdirs: mkinstalldirs
2823 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2824
4fa63067 2825dir.info: do-install-info
22121df0
L
2826 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2827 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2828 mv -f dir.info.new dir.info; \
2829 else true; \
4fa63067 2830 fi
2a4cbe27 2831
4fa63067
NN
2832dist:
2833 @echo "Building a full distribution of this tree isn't done"
2834 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2835
4fa63067 2836etags tags: TAGS
2a4cbe27 2837
4fa63067
NN
2838# Right now this just builds TAGS in each subdirectory. emacs19 has the
2839# ability to use several tags files at once, so there is probably no need
2840# to combine them into one big TAGS file (like CVS 1.3 does). We could
2841# (if we felt like it) have this Makefile write a piece of elisp which
2842# the user could load to tell emacs19 where all the TAGS files we just
2843# built are.
2844TAGS: do-TAGS
2a4cbe27 2845
a7254363
PB
2846# ------------------------------------
2847# Macros for configure and all targets
2848# ------------------------------------
2849
2850
2851
2852
2853
4fa63067
NN
2854# --------------------------------------
2855# Modules which run on the build machine
2856# --------------------------------------
2857
a7254363 2858
4fa63067
NN
2859.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2860maybe-configure-build-libiberty:
4f0ef2d8
CD
2861@if gcc-bootstrap
2862configure-build-libiberty: stage_current
2863@endif gcc-bootstrap
6bd3dfaa
PB
2864@if build-libiberty
2865maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2866configure-build-libiberty:
0aed8855 2867 @: $(MAKE); $(unstage)
c52c6897 2868 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2870 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2871 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2872 $(BUILD_EXPORTS) \
4fa63067
NN
2873 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2874 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2875 case $(srcdir) in \
b00612cc
PB
2876 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2877 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2878 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2879 esac; \
1b6c0831 2880 module_srcdir=libiberty; \
4fa63067 2881 rm -f no-such-file || : ; \
1b6c0831
L
2882 CONFIG_SITE=no-such-file $(SHELL) \
2883 $$s/$$module_srcdir/configure \
2884 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2885 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2886 --target=${target_alias} \
2a4cbe27 2887 || exit 1
6bd3dfaa 2888@endif build-libiberty
2a4cbe27 2889
a7254363
PB
2890
2891
d545f33b
PB
2892
2893
4fa63067
NN
2894.PHONY: all-build-libiberty maybe-all-build-libiberty
2895maybe-all-build-libiberty:
4f0ef2d8
CD
2896@if gcc-bootstrap
2897all-build-libiberty: stage_current
2898@endif gcc-bootstrap
6bd3dfaa 2899@if build-libiberty
72b2455a 2900TARGET-build-libiberty=all
6bd3dfaa 2901maybe-all-build-libiberty: all-build-libiberty
4fa63067 2902all-build-libiberty: configure-build-libiberty
0aed8855 2903 @: $(MAKE); $(unstage)
4fa63067 2904 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2906 $(BUILD_EXPORTS) \
72b2455a 2907 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2908 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2909 $(TARGET-build-libiberty))
6bd3dfaa 2910@endif build-libiberty
2a4cbe27 2911
a7254363
PB
2912
2913
d545f33b
PB
2914
2915
6a9cf61e
PB
2916.PHONY: configure-build-bison maybe-configure-build-bison
2917maybe-configure-build-bison:
4f0ef2d8
CD
2918@if gcc-bootstrap
2919configure-build-bison: stage_current
2920@endif gcc-bootstrap
6a9cf61e
PB
2921@if build-bison
2922maybe-configure-build-bison: configure-build-bison
c52c6897 2923configure-build-bison:
0aed8855 2924 @: $(MAKE); $(unstage)
c52c6897 2925 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2927 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2928 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2929 $(BUILD_EXPORTS) \
6a9cf61e
PB
2930 echo Configuring in $(BUILD_SUBDIR)/bison; \
2931 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2932 case $(srcdir) in \
b00612cc
PB
2933 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2934 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2935 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2936 esac; \
1b6c0831 2937 module_srcdir=bison; \
6a9cf61e 2938 rm -f no-such-file || : ; \
1b6c0831
L
2939 CONFIG_SITE=no-such-file $(SHELL) \
2940 $$s/$$module_srcdir/configure \
2941 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2942 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2943 --target=${target_alias} \
6a9cf61e
PB
2944 || exit 1
2945@endif build-bison
2946
a7254363
PB
2947
2948
d545f33b
PB
2949
2950
6a9cf61e
PB
2951.PHONY: all-build-bison maybe-all-build-bison
2952maybe-all-build-bison:
4f0ef2d8
CD
2953@if gcc-bootstrap
2954all-build-bison: stage_current
2955@endif gcc-bootstrap
6a9cf61e 2956@if build-bison
72b2455a 2957TARGET-build-bison=all
6a9cf61e
PB
2958maybe-all-build-bison: all-build-bison
2959all-build-bison: configure-build-bison
0aed8855 2960 @: $(MAKE); $(unstage)
6a9cf61e
PB
2961 @r=`${PWD_COMMAND}`; export r; \
2962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2963 $(BUILD_EXPORTS) \
72b2455a 2964 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2965 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2966 $(TARGET-build-bison))
6a9cf61e
PB
2967@endif build-bison
2968
a7254363
PB
2969
2970
d545f33b
PB
2971
2972
6a9cf61e
PB
2973.PHONY: configure-build-flex maybe-configure-build-flex
2974maybe-configure-build-flex:
4f0ef2d8
CD
2975@if gcc-bootstrap
2976configure-build-flex: stage_current
2977@endif gcc-bootstrap
6a9cf61e
PB
2978@if build-flex
2979maybe-configure-build-flex: configure-build-flex
c52c6897 2980configure-build-flex:
0aed8855 2981 @: $(MAKE); $(unstage)
c52c6897 2982 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2984 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2985 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2986 $(BUILD_EXPORTS) \
6a9cf61e
PB
2987 echo Configuring in $(BUILD_SUBDIR)/flex; \
2988 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2989 case $(srcdir) in \
b00612cc
PB
2990 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2991 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2992 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2993 esac; \
1b6c0831 2994 module_srcdir=flex; \
6a9cf61e 2995 rm -f no-such-file || : ; \
1b6c0831
L
2996 CONFIG_SITE=no-such-file $(SHELL) \
2997 $$s/$$module_srcdir/configure \
2998 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2999 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3000 --target=${target_alias} \
6a9cf61e
PB
3001 || exit 1
3002@endif build-flex
3003
a7254363
PB
3004
3005
d545f33b
PB
3006
3007
6a9cf61e
PB
3008.PHONY: all-build-flex maybe-all-build-flex
3009maybe-all-build-flex:
4f0ef2d8
CD
3010@if gcc-bootstrap
3011all-build-flex: stage_current
3012@endif gcc-bootstrap
6a9cf61e 3013@if build-flex
72b2455a 3014TARGET-build-flex=all
6a9cf61e
PB
3015maybe-all-build-flex: all-build-flex
3016all-build-flex: configure-build-flex
0aed8855 3017 @: $(MAKE); $(unstage)
6a9cf61e
PB
3018 @r=`${PWD_COMMAND}`; export r; \
3019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3020 $(BUILD_EXPORTS) \
72b2455a 3021 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 3022 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3023 $(TARGET-build-flex))
6a9cf61e
PB
3024@endif build-flex
3025
a7254363
PB
3026
3027
d545f33b
PB
3028
3029
6a9cf61e
PB
3030.PHONY: configure-build-m4 maybe-configure-build-m4
3031maybe-configure-build-m4:
4f0ef2d8
CD
3032@if gcc-bootstrap
3033configure-build-m4: stage_current
3034@endif gcc-bootstrap
6a9cf61e
PB
3035@if build-m4
3036maybe-configure-build-m4: configure-build-m4
c52c6897 3037configure-build-m4:
0aed8855 3038 @: $(MAKE); $(unstage)
c52c6897 3039 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3041 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 3042 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 3043 $(BUILD_EXPORTS) \
6a9cf61e
PB
3044 echo Configuring in $(BUILD_SUBDIR)/m4; \
3045 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
3046 case $(srcdir) in \
b00612cc
PB
3047 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3048 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
3049 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3050 esac; \
1b6c0831 3051 module_srcdir=m4; \
6a9cf61e 3052 rm -f no-such-file || : ; \
1b6c0831
L
3053 CONFIG_SITE=no-such-file $(SHELL) \
3054 $$s/$$module_srcdir/configure \
3055 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3056 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3057 --target=${target_alias} \
6a9cf61e
PB
3058 || exit 1
3059@endif build-m4
3060
a7254363
PB
3061
3062
d545f33b
PB
3063
3064
6a9cf61e
PB
3065.PHONY: all-build-m4 maybe-all-build-m4
3066maybe-all-build-m4:
4f0ef2d8
CD
3067@if gcc-bootstrap
3068all-build-m4: stage_current
3069@endif gcc-bootstrap
6a9cf61e 3070@if build-m4
72b2455a 3071TARGET-build-m4=all
6a9cf61e
PB
3072maybe-all-build-m4: all-build-m4
3073all-build-m4: configure-build-m4
0aed8855 3074 @: $(MAKE); $(unstage)
6a9cf61e
PB
3075 @r=`${PWD_COMMAND}`; export r; \
3076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3077 $(BUILD_EXPORTS) \
72b2455a 3078 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 3079 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3080 $(TARGET-build-m4))
6a9cf61e
PB
3081@endif build-m4
3082
a7254363
PB
3083
3084
d545f33b
PB
3085
3086
6a9cf61e
PB
3087.PHONY: configure-build-texinfo maybe-configure-build-texinfo
3088maybe-configure-build-texinfo:
4f0ef2d8
CD
3089@if gcc-bootstrap
3090configure-build-texinfo: stage_current
3091@endif gcc-bootstrap
6a9cf61e
PB
3092@if build-texinfo
3093maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 3094configure-build-texinfo:
0aed8855 3095 @: $(MAKE); $(unstage)
c52c6897 3096 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3098 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 3099 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 3100 $(BUILD_EXPORTS) \
6a9cf61e
PB
3101 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3102 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3103 case $(srcdir) in \
b00612cc
PB
3104 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3105 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3106 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3107 esac; \
1b6c0831 3108 module_srcdir=texinfo; \
6a9cf61e 3109 rm -f no-such-file || : ; \
1b6c0831
L
3110 CONFIG_SITE=no-such-file $(SHELL) \
3111 $$s/$$module_srcdir/configure \
3112 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3113 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3114 --target=${target_alias} \
6a9cf61e
PB
3115 || exit 1
3116@endif build-texinfo
3117
a7254363
PB
3118
3119
d545f33b
PB
3120
3121
6a9cf61e
PB
3122.PHONY: all-build-texinfo maybe-all-build-texinfo
3123maybe-all-build-texinfo:
4f0ef2d8
CD
3124@if gcc-bootstrap
3125all-build-texinfo: stage_current
3126@endif gcc-bootstrap
6a9cf61e 3127@if build-texinfo
72b2455a 3128TARGET-build-texinfo=all
6a9cf61e
PB
3129maybe-all-build-texinfo: all-build-texinfo
3130all-build-texinfo: configure-build-texinfo
0aed8855 3131 @: $(MAKE); $(unstage)
6a9cf61e
PB
3132 @r=`${PWD_COMMAND}`; export r; \
3133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3134 $(BUILD_EXPORTS) \
72b2455a 3135 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3136 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3137 $(TARGET-build-texinfo))
6a9cf61e
PB
3138@endif build-texinfo
3139
a7254363
PB
3140
3141
d545f33b
PB
3142
3143
ee025550
PB
3144.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3145maybe-configure-build-fixincludes:
4f0ef2d8
CD
3146@if gcc-bootstrap
3147configure-build-fixincludes: stage_current
3148@endif gcc-bootstrap
ee025550
PB
3149@if build-fixincludes
3150maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3151configure-build-fixincludes:
0aed8855 3152 @: $(MAKE); $(unstage)
c52c6897 3153 @r=`${PWD_COMMAND}`; export r; \
ee025550 3154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3155 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3156 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3157 $(BUILD_EXPORTS) \
ee025550
PB
3158 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3159 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3160 case $(srcdir) in \
b00612cc
PB
3161 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3162 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3163 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3164 esac; \
1b6c0831 3165 module_srcdir=fixincludes; \
ee025550 3166 rm -f no-such-file || : ; \
1b6c0831
L
3167 CONFIG_SITE=no-such-file $(SHELL) \
3168 $$s/$$module_srcdir/configure \
3169 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3170 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3171 --target=${target_alias} \
ee025550
PB
3172 || exit 1
3173@endif build-fixincludes
3174
a7254363
PB
3175
3176
d545f33b
PB
3177
3178
ee025550
PB
3179.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3180maybe-all-build-fixincludes:
4f0ef2d8
CD
3181@if gcc-bootstrap
3182all-build-fixincludes: stage_current
3183@endif gcc-bootstrap
ee025550
PB
3184@if build-fixincludes
3185TARGET-build-fixincludes=all
3186maybe-all-build-fixincludes: all-build-fixincludes
3187all-build-fixincludes: configure-build-fixincludes
0aed8855 3188 @: $(MAKE); $(unstage)
ee025550
PB
3189 @r=`${PWD_COMMAND}`; export r; \
3190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3191 $(BUILD_EXPORTS) \
ee025550 3192 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3193 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3194 $(TARGET-build-fixincludes))
ee025550
PB
3195@endif build-fixincludes
3196
2a4cbe27 3197
a7254363 3198
d545f33b
PB
3199
3200
1b6c0831
L
3201.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3202maybe-configure-build-libcpp:
3203@if gcc-bootstrap
3204configure-build-libcpp: stage_current
3205@endif gcc-bootstrap
3206@if build-libcpp
3207maybe-configure-build-libcpp: configure-build-libcpp
3208configure-build-libcpp:
3209 @: $(MAKE); $(unstage)
3210 @r=`${PWD_COMMAND}`; export r; \
3211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3212 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3213 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3214 $(BUILD_EXPORTS) \
3215 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3216 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3217 case $(srcdir) in \
3218 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3219 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3220 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3221 esac; \
3222 module_srcdir=libcpp; \
3223 rm -f no-such-file || : ; \
3224 CONFIG_SITE=no-such-file $(SHELL) \
3225 $$s/$$module_srcdir/configure \
3226 --srcdir=$${topdir}/$$module_srcdir \
3227 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3228 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3229 || exit 1
3230@endif build-libcpp
3231
3232
3233
3234
3235
3236.PHONY: all-build-libcpp maybe-all-build-libcpp
3237maybe-all-build-libcpp:
3238@if gcc-bootstrap
3239all-build-libcpp: stage_current
3240@endif gcc-bootstrap
3241@if build-libcpp
3242TARGET-build-libcpp=all
3243maybe-all-build-libcpp: all-build-libcpp
3244all-build-libcpp: configure-build-libcpp
3245 @: $(MAKE); $(unstage)
3246 @r=`${PWD_COMMAND}`; export r; \
3247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3248 $(BUILD_EXPORTS) \
3249 (cd $(BUILD_SUBDIR)/libcpp && \
3250 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3251 $(TARGET-build-libcpp))
3252@endif build-libcpp
3253
3254
3255
3256
3257
4fa63067
NN
3258# --------------------------------------
3259# Modules which run on the host machine
3260# --------------------------------------
2a4cbe27 3261
a7254363 3262
a90ef4bf
JM
3263.PHONY: configure-bfd maybe-configure-bfd
3264maybe-configure-bfd:
4f0ef2d8 3265@if gcc-bootstrap
a90ef4bf 3266configure-bfd: stage_current
4f0ef2d8 3267@endif gcc-bootstrap
a90ef4bf
JM
3268@if bfd
3269maybe-configure-bfd: configure-bfd
3270configure-bfd:
c52c6897 3271 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3273 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3274 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3275 $(HOST_EXPORTS) \
a90ef4bf
JM
3276 echo Configuring in $(HOST_SUBDIR)/bfd; \
3277 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3278 case $(srcdir) in \
b00612cc 3279 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3280 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3281 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3282 esac; \
1b6c0831
L
3283 module_srcdir=bfd; \
3284 $(SHELL) \
3285 $$s/$$module_srcdir/configure \
3286 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3287 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3288 --target=${target_alias} \
2a4cbe27 3289 || exit 1
a90ef4bf 3290@endif bfd
a7254363 3291
d545f33b
PB
3292
3293
a90ef4bf
JM
3294.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3295maybe-configure-stage1-bfd:
3296@if bfd-bootstrap
3297maybe-configure-stage1-bfd: configure-stage1-bfd
3298configure-stage1-bfd:
3299 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3300 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3301 @r=`${PWD_COMMAND}`; export r; \
3302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3303 TFLAGS="$(STAGE1_TFLAGS)"; \
3304 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3305 $(HOST_EXPORTS) \
3306 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3307 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3308 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3309 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3310 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3311 cd $(HOST_SUBDIR)/bfd || exit 1; \
3312 case $(srcdir) in \
3313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3314 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3316 esac; \
1b6c0831
L
3317 module_srcdir=bfd; \
3318 $(SHELL) $$s/$$module_srcdir/configure \
3319 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3320 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3321 --target=${target_alias} \
3322 \
a90ef4bf
JM
3323 $(STAGE1_CONFIGURE_FLAGS)
3324@endif bfd-bootstrap
2a4cbe27 3325
a90ef4bf
JM
3326.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3327maybe-configure-stage2-bfd:
3328@if bfd-bootstrap
3329maybe-configure-stage2-bfd: configure-stage2-bfd
3330configure-stage2-bfd:
3331 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3332 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3333 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3335 TFLAGS="$(STAGE2_TFLAGS)"; \
3336 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3337 $(HOST_EXPORTS) \
a90ef4bf
JM
3338 $(POSTSTAGE1_HOST_EXPORTS) \
3339 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3340 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3341 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3342 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3343 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3344 cd $(HOST_SUBDIR)/bfd || exit 1; \
3345 case $(srcdir) in \
3346 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3347 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3348 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3349 esac; \
1b6c0831
L
3350 module_srcdir=bfd; \
3351 $(SHELL) $$s/$$module_srcdir/configure \
3352 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3353 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3354 --target=${target_alias} \
22121df0 3355 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3356 $(STAGE2_CONFIGURE_FLAGS)
3357@endif bfd-bootstrap
2a4cbe27 3358
a90ef4bf
JM
3359.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3360maybe-configure-stage3-bfd:
3361@if bfd-bootstrap
3362maybe-configure-stage3-bfd: configure-stage3-bfd
3363configure-stage3-bfd:
3364 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3365 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3366 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3368 TFLAGS="$(STAGE3_TFLAGS)"; \
3369 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3370 $(HOST_EXPORTS) \
a90ef4bf
JM
3371 $(POSTSTAGE1_HOST_EXPORTS) \
3372 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3373 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3374 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3375 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3376 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3377 cd $(HOST_SUBDIR)/bfd || exit 1; \
3378 case $(srcdir) in \
3379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3380 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3382 esac; \
1b6c0831
L
3383 module_srcdir=bfd; \
3384 $(SHELL) $$s/$$module_srcdir/configure \
3385 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3386 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3387 --target=${target_alias} \
22121df0 3388 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3389 $(STAGE3_CONFIGURE_FLAGS)
3390@endif bfd-bootstrap
9b980aa1 3391
a90ef4bf
JM
3392.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3393maybe-configure-stage4-bfd:
3394@if bfd-bootstrap
3395maybe-configure-stage4-bfd: configure-stage4-bfd
3396configure-stage4-bfd:
3397 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3398 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3399 @r=`${PWD_COMMAND}`; export r; \
3400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3401 TFLAGS="$(STAGE4_TFLAGS)"; \
3402 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3403 $(HOST_EXPORTS) \
a90ef4bf
JM
3404 $(POSTSTAGE1_HOST_EXPORTS) \
3405 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3406 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3407 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3408 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3409 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3410 cd $(HOST_SUBDIR)/bfd || exit 1; \
3411 case $(srcdir) in \
3412 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3413 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3414 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3415 esac; \
1b6c0831
L
3416 module_srcdir=bfd; \
3417 $(SHELL) $$s/$$module_srcdir/configure \
3418 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3419 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3420 --target=${target_alias} \
22121df0 3421 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3422 $(STAGE4_CONFIGURE_FLAGS)
3423@endif bfd-bootstrap
4fa63067 3424
a90ef4bf
JM
3425.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3426maybe-configure-stageprofile-bfd:
3427@if bfd-bootstrap
3428maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3429configure-stageprofile-bfd:
3430 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3431 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3432 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3434 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3435 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3436 $(HOST_EXPORTS) \
a90ef4bf
JM
3437 $(POSTSTAGE1_HOST_EXPORTS) \
3438 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3439 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3440 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3441 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3442 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3443 cd $(HOST_SUBDIR)/bfd || exit 1; \
3444 case $(srcdir) in \
3445 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3446 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3447 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3448 esac; \
1b6c0831
L
3449 module_srcdir=bfd; \
3450 $(SHELL) $$s/$$module_srcdir/configure \
3451 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3452 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3453 --target=${target_alias} \
22121df0 3454 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3455 $(STAGEprofile_CONFIGURE_FLAGS)
3456@endif bfd-bootstrap
2a4cbe27 3457
f948b2de
NC
3458.PHONY: configure-stagetrain-bfd maybe-configure-stagetrain-bfd
3459maybe-configure-stagetrain-bfd:
3460@if bfd-bootstrap
3461maybe-configure-stagetrain-bfd: configure-stagetrain-bfd
3462configure-stagetrain-bfd:
3463 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
3464 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3465 @r=`${PWD_COMMAND}`; export r; \
3466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3467 TFLAGS="$(STAGEtrain_TFLAGS)"; \
3468 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3469 $(HOST_EXPORTS) \
3470 $(POSTSTAGE1_HOST_EXPORTS) \
3471 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
3472 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
3473 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
3474 echo Configuring stage train in $(HOST_SUBDIR)/bfd; \
3475 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
3476 cd $(HOST_SUBDIR)/bfd || exit 1; \
3477 case $(srcdir) in \
3478 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3479 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3480 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3481 esac; \
3482 module_srcdir=bfd; \
3483 $(SHELL) $$s/$$module_srcdir/configure \
3484 --srcdir=$${topdir}/$$module_srcdir \
3485 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3486 --target=${target_alias} \
3487 --with-build-libsubdir=$(HOST_SUBDIR) \
3488 $(STAGEtrain_CONFIGURE_FLAGS)
3489@endif bfd-bootstrap
3490
a90ef4bf
JM
3491.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3492maybe-configure-stagefeedback-bfd:
3493@if bfd-bootstrap
3494maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3495configure-stagefeedback-bfd:
3496 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3497 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3498 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3500 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3501 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3502 $(HOST_EXPORTS) \
a90ef4bf
JM
3503 $(POSTSTAGE1_HOST_EXPORTS) \
3504 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3505 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3506 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3507 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3508 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3509 cd $(HOST_SUBDIR)/bfd || exit 1; \
3510 case $(srcdir) in \
3511 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3512 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3513 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3514 esac; \
1b6c0831
L
3515 module_srcdir=bfd; \
3516 $(SHELL) $$s/$$module_srcdir/configure \
3517 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3518 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3519 --target=${target_alias} \
22121df0 3520 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3521 $(STAGEfeedback_CONFIGURE_FLAGS)
3522@endif bfd-bootstrap
2a4cbe27 3523
f948b2de
NC
3524.PHONY: configure-stageautoprofile-bfd maybe-configure-stageautoprofile-bfd
3525maybe-configure-stageautoprofile-bfd:
3526@if bfd-bootstrap
3527maybe-configure-stageautoprofile-bfd: configure-stageautoprofile-bfd
3528configure-stageautoprofile-bfd:
3529 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
3530 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3531 @r=`${PWD_COMMAND}`; export r; \
3532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3533 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
3534 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3535 $(HOST_EXPORTS) \
3536 $(POSTSTAGE1_HOST_EXPORTS) \
3537 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
3538 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
3539 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
3540 echo Configuring stage autoprofile in $(HOST_SUBDIR)/bfd; \
3541 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
3542 cd $(HOST_SUBDIR)/bfd || exit 1; \
3543 case $(srcdir) in \
3544 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3545 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3546 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3547 esac; \
3548 module_srcdir=bfd; \
3549 $(SHELL) $$s/$$module_srcdir/configure \
3550 --srcdir=$${topdir}/$$module_srcdir \
3551 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3552 --target=${target_alias} \
3553 --with-build-libsubdir=$(HOST_SUBDIR) \
3554 $(STAGEautoprofile_CONFIGURE_FLAGS)
3555@endif bfd-bootstrap
3556
3557.PHONY: configure-stageautofeedback-bfd maybe-configure-stageautofeedback-bfd
3558maybe-configure-stageautofeedback-bfd:
3559@if bfd-bootstrap
3560maybe-configure-stageautofeedback-bfd: configure-stageautofeedback-bfd
3561configure-stageautofeedback-bfd:
3562 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
3563 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3564 @r=`${PWD_COMMAND}`; export r; \
3565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3566 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
3567 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3568 $(HOST_EXPORTS) \
3569 $(POSTSTAGE1_HOST_EXPORTS) \
3570 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
3571 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
3572 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
3573 echo Configuring stage autofeedback in $(HOST_SUBDIR)/bfd; \
3574 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
3575 cd $(HOST_SUBDIR)/bfd || exit 1; \
3576 case $(srcdir) in \
3577 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3578 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3579 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3580 esac; \
3581 module_srcdir=bfd; \
3582 $(SHELL) $$s/$$module_srcdir/configure \
3583 --srcdir=$${topdir}/$$module_srcdir \
3584 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3585 --target=${target_alias} \
3586 --with-build-libsubdir=$(HOST_SUBDIR) \
3587 $(STAGEautofeedback_CONFIGURE_FLAGS)
3588@endif bfd-bootstrap
3589
56a8fe78 3590
56a8fe78 3591
56a8fe78 3592
6d389afc 3593
a90ef4bf
JM
3594.PHONY: all-bfd maybe-all-bfd
3595maybe-all-bfd:
3596@if gcc-bootstrap
3597all-bfd: stage_current
3598@endif gcc-bootstrap
3599@if bfd
3600TARGET-bfd=all
3601maybe-all-bfd: all-bfd
3602all-bfd: configure-bfd
3603 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3605 $(HOST_EXPORTS) \
3606 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3607 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3608 $(TARGET-bfd))
3609@endif bfd
6d389afc 3610
6d389afc 3611
2a4cbe27 3612
a90ef4bf
JM
3613.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3614.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3615maybe-all-stage1-bfd:
3616maybe-clean-stage1-bfd:
3617@if bfd-bootstrap
3618maybe-all-stage1-bfd: all-stage1-bfd
3619all-stage1: all-stage1-bfd
3620TARGET-stage1-bfd = $(TARGET-bfd)
3621all-stage1-bfd: configure-stage1-bfd
3622 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3623 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3625 TFLAGS="$(STAGE1_TFLAGS)"; \
3626 $(HOST_EXPORTS) \
3627 cd $(HOST_SUBDIR)/bfd && \
05a13254 3628 \
a90ef4bf
JM
3629 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3630 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 3631 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
3632 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3633 LIBCFLAGS="$(LIBCFLAGS)" \
3634 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3635 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3636 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3637 $(EXTRA_HOST_FLAGS) \
3638 $(STAGE1_FLAGS_TO_PASS) \
05a13254 3639 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 3640 $(TARGET-stage1-bfd)
2a4cbe27 3641
a90ef4bf
JM
3642maybe-clean-stage1-bfd: clean-stage1-bfd
3643clean-stage1: clean-stage1-bfd
3644clean-stage1-bfd:
3645 @if [ $(current_stage) = stage1 ]; then \
3646 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3647 else \
3648 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3649 $(MAKE) stage1-start; \
3650 fi; \
3651 cd $(HOST_SUBDIR)/bfd && \
3652 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3653 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3654@endif bfd-bootstrap
2a4cbe27 3655
2a4cbe27 3656
a90ef4bf
JM
3657.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3658.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3659maybe-all-stage2-bfd:
3660maybe-clean-stage2-bfd:
3661@if bfd-bootstrap
3662maybe-all-stage2-bfd: all-stage2-bfd
3663all-stage2: all-stage2-bfd
3664TARGET-stage2-bfd = $(TARGET-bfd)
3665all-stage2-bfd: configure-stage2-bfd
3666 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3667 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3669 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3670 $(HOST_EXPORTS) \
a90ef4bf
JM
3671 $(POSTSTAGE1_HOST_EXPORTS) \
3672 cd $(HOST_SUBDIR)/bfd && \
05a13254 3673 \
a90ef4bf
JM
3674 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3675 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 3676 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
3677 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3678 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3679 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3680 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3681 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3682 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3683 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 3684 $(TARGET-stage2-bfd)
2a4cbe27 3685
a90ef4bf
JM
3686maybe-clean-stage2-bfd: clean-stage2-bfd
3687clean-stage2: clean-stage2-bfd
3688clean-stage2-bfd:
3689 @if [ $(current_stage) = stage2 ]; then \
3690 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3691 else \
3692 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3693 $(MAKE) stage2-start; \
3694 fi; \
3695 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3696 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3697@endif bfd-bootstrap
2a4cbe27 3698
a3ca38d2 3699
a90ef4bf
JM
3700.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3701.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3702maybe-all-stage3-bfd:
3703maybe-clean-stage3-bfd:
3704@if bfd-bootstrap
3705maybe-all-stage3-bfd: all-stage3-bfd
3706all-stage3: all-stage3-bfd
3707TARGET-stage3-bfd = $(TARGET-bfd)
3708all-stage3-bfd: configure-stage3-bfd
3709 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3710 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3712 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3713 $(HOST_EXPORTS) \
a90ef4bf
JM
3714 $(POSTSTAGE1_HOST_EXPORTS) \
3715 cd $(HOST_SUBDIR)/bfd && \
05a13254 3716 \
a90ef4bf
JM
3717 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3718 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 3719 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
3720 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3721 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3722 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3723 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3724 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3725 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3726 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 3727 $(TARGET-stage3-bfd)
a3ca38d2 3728
a90ef4bf
JM
3729maybe-clean-stage3-bfd: clean-stage3-bfd
3730clean-stage3: clean-stage3-bfd
3731clean-stage3-bfd:
3732 @if [ $(current_stage) = stage3 ]; then \
3733 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3734 else \
3735 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3736 $(MAKE) stage3-start; \
3737 fi; \
3738 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3739 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3740@endif bfd-bootstrap
a3ca38d2 3741
108a6f8e 3742
a90ef4bf
JM
3743.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3744.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3745maybe-all-stage4-bfd:
3746maybe-clean-stage4-bfd:
3747@if bfd-bootstrap
3748maybe-all-stage4-bfd: all-stage4-bfd
3749all-stage4: all-stage4-bfd
3750TARGET-stage4-bfd = $(TARGET-bfd)
3751all-stage4-bfd: configure-stage4-bfd
3752 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3753 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3755 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3756 $(HOST_EXPORTS) \
a90ef4bf
JM
3757 $(POSTSTAGE1_HOST_EXPORTS) \
3758 cd $(HOST_SUBDIR)/bfd && \
05a13254 3759 \
a90ef4bf
JM
3760 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3761 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 3762 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
3763 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3764 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3765 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3766 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3767 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3768 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3769 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 3770 $(TARGET-stage4-bfd)
108a6f8e 3771
a90ef4bf
JM
3772maybe-clean-stage4-bfd: clean-stage4-bfd
3773clean-stage4: clean-stage4-bfd
3774clean-stage4-bfd:
3775 @if [ $(current_stage) = stage4 ]; then \
3776 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3777 else \
3778 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3779 $(MAKE) stage4-start; \
3780 fi; \
3781 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3782 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3783@endif bfd-bootstrap
108a6f8e 3784
2a4cbe27 3785
a90ef4bf
JM
3786.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3787.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3788maybe-all-stageprofile-bfd:
3789maybe-clean-stageprofile-bfd:
3790@if bfd-bootstrap
3791maybe-all-stageprofile-bfd: all-stageprofile-bfd
3792all-stageprofile: all-stageprofile-bfd
3793TARGET-stageprofile-bfd = $(TARGET-bfd)
3794all-stageprofile-bfd: configure-stageprofile-bfd
3795 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3796 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3798 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3799 $(HOST_EXPORTS) \
a90ef4bf
JM
3800 $(POSTSTAGE1_HOST_EXPORTS) \
3801 cd $(HOST_SUBDIR)/bfd && \
05a13254 3802 \
a90ef4bf
JM
3803 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3804 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 3805 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
3806 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3807 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3808 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3809 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3810 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3811 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3812 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 3813 $(TARGET-stageprofile-bfd)
2a4cbe27 3814
a90ef4bf
JM
3815maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3816clean-stageprofile: clean-stageprofile-bfd
3817clean-stageprofile-bfd:
3818 @if [ $(current_stage) = stageprofile ]; then \
3819 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3820 else \
3821 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3822 $(MAKE) stageprofile-start; \
3823 fi; \
3824 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3825 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3826@endif bfd-bootstrap
2a4cbe27 3827
a7254363 3828
f948b2de
NC
3829.PHONY: all-stagetrain-bfd maybe-all-stagetrain-bfd
3830.PHONY: clean-stagetrain-bfd maybe-clean-stagetrain-bfd
3831maybe-all-stagetrain-bfd:
3832maybe-clean-stagetrain-bfd:
3833@if bfd-bootstrap
3834maybe-all-stagetrain-bfd: all-stagetrain-bfd
3835all-stagetrain: all-stagetrain-bfd
3836TARGET-stagetrain-bfd = $(TARGET-bfd)
3837all-stagetrain-bfd: configure-stagetrain-bfd
3838 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
3839 @r=`${PWD_COMMAND}`; export r; \
3840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3841 TFLAGS="$(STAGEtrain_TFLAGS)"; \
3842 $(HOST_EXPORTS) \
3843 $(POSTSTAGE1_HOST_EXPORTS) \
3844 cd $(HOST_SUBDIR)/bfd && \
3845 \
3846 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3847 CFLAGS="$(STAGEtrain_CFLAGS)" \
3848 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
3849 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
3850 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
3851 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3852 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3853 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3854 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3855 TFLAGS="$(STAGEtrain_TFLAGS)" \
3856 $(TARGET-stagetrain-bfd)
3857
3858maybe-clean-stagetrain-bfd: clean-stagetrain-bfd
3859clean-stagetrain: clean-stagetrain-bfd
3860clean-stagetrain-bfd:
3861 @if [ $(current_stage) = stagetrain ]; then \
3862 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3863 else \
3864 [ -f $(HOST_SUBDIR)/stagetrain-bfd/Makefile ] || exit 0; \
3865 $(MAKE) stagetrain-start; \
3866 fi; \
3867 cd $(HOST_SUBDIR)/bfd && \
3868 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
3869@endif bfd-bootstrap
3870
3871
a90ef4bf
JM
3872.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3873.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3874maybe-all-stagefeedback-bfd:
3875maybe-clean-stagefeedback-bfd:
3876@if bfd-bootstrap
3877maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3878all-stagefeedback: all-stagefeedback-bfd
3879TARGET-stagefeedback-bfd = $(TARGET-bfd)
3880all-stagefeedback-bfd: configure-stagefeedback-bfd
3881 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3882 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3884 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3885 $(HOST_EXPORTS) \
3886 $(POSTSTAGE1_HOST_EXPORTS) \
3887 cd $(HOST_SUBDIR)/bfd && \
05a13254 3888 \
a90ef4bf
JM
3889 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3890 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 3891 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
3892 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3893 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3894 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3895 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3896 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3897 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3898 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 3899 $(TARGET-stagefeedback-bfd)
d545f33b 3900
a90ef4bf
JM
3901maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3902clean-stagefeedback: clean-stagefeedback-bfd
3903clean-stagefeedback-bfd:
3904 @if [ $(current_stage) = stagefeedback ]; then \
3905 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3906 else \
3907 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3908 $(MAKE) stagefeedback-start; \
3909 fi; \
3910 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3911 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3912@endif bfd-bootstrap
d545f33b 3913
2a4cbe27 3914
f948b2de
NC
3915.PHONY: all-stageautoprofile-bfd maybe-all-stageautoprofile-bfd
3916.PHONY: clean-stageautoprofile-bfd maybe-clean-stageautoprofile-bfd
3917maybe-all-stageautoprofile-bfd:
3918maybe-clean-stageautoprofile-bfd:
3919@if bfd-bootstrap
3920maybe-all-stageautoprofile-bfd: all-stageautoprofile-bfd
3921all-stageautoprofile: all-stageautoprofile-bfd
3922TARGET-stageautoprofile-bfd = $(TARGET-bfd)
3923all-stageautoprofile-bfd: configure-stageautoprofile-bfd
3924 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
3925 @r=`${PWD_COMMAND}`; export r; \
3926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3927 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
3928 $(HOST_EXPORTS) \
3929 $(POSTSTAGE1_HOST_EXPORTS) \
3930 cd $(HOST_SUBDIR)/bfd && \
3931 $$s/gcc/config/i386/$(AUTO_PROFILE) \
3932 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3933 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
3934 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
3935 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
3936 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
3937 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3938 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3939 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3940 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3941 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
3942 $(TARGET-stageautoprofile-bfd)
3943
3944maybe-clean-stageautoprofile-bfd: clean-stageautoprofile-bfd
3945clean-stageautoprofile: clean-stageautoprofile-bfd
3946clean-stageautoprofile-bfd:
3947 @if [ $(current_stage) = stageautoprofile ]; then \
3948 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3949 else \
3950 [ -f $(HOST_SUBDIR)/stageautoprofile-bfd/Makefile ] || exit 0; \
3951 $(MAKE) stageautoprofile-start; \
3952 fi; \
3953 cd $(HOST_SUBDIR)/bfd && \
3954 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
3955@endif bfd-bootstrap
3956
3957
3958.PHONY: all-stageautofeedback-bfd maybe-all-stageautofeedback-bfd
3959.PHONY: clean-stageautofeedback-bfd maybe-clean-stageautofeedback-bfd
3960maybe-all-stageautofeedback-bfd:
3961maybe-clean-stageautofeedback-bfd:
3962@if bfd-bootstrap
3963maybe-all-stageautofeedback-bfd: all-stageautofeedback-bfd
3964all-stageautofeedback: all-stageautofeedback-bfd
3965TARGET-stageautofeedback-bfd = $(TARGET-bfd)
3966all-stageautofeedback-bfd: configure-stageautofeedback-bfd
3967 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
3968 @r=`${PWD_COMMAND}`; export r; \
3969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3970 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
3971 $(HOST_EXPORTS) \
3972 $(POSTSTAGE1_HOST_EXPORTS) \
3973 cd $(HOST_SUBDIR)/bfd && \
3974 \
3975 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3976 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
3977 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
3978 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
3979 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
3980 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3981 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3982 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3983 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
3984 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
3985 $(TARGET-stageautofeedback-bfd)
3986
3987maybe-clean-stageautofeedback-bfd: clean-stageautofeedback-bfd
3988clean-stageautofeedback: clean-stageautofeedback-bfd
3989clean-stageautofeedback-bfd:
3990 @if [ $(current_stage) = stageautofeedback ]; then \
3991 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3992 else \
3993 [ -f $(HOST_SUBDIR)/stageautofeedback-bfd/Makefile ] || exit 0; \
3994 $(MAKE) stageautofeedback-start; \
3995 fi; \
3996 cd $(HOST_SUBDIR)/bfd && \
3997 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
3998@endif bfd-bootstrap
3999
4000
a7254363 4001
d545f33b
PB
4002
4003
a90ef4bf
JM
4004.PHONY: check-bfd maybe-check-bfd
4005maybe-check-bfd:
4006@if bfd
4007maybe-check-bfd: check-bfd
2a4cbe27 4008
a90ef4bf 4009check-bfd:
0aed8855 4010 @: $(MAKE); $(unstage)
4fa63067 4011 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4013 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4014 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 4015 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4016
a90ef4bf 4017@endif bfd
2a4cbe27 4018
a90ef4bf
JM
4019.PHONY: install-bfd maybe-install-bfd
4020maybe-install-bfd:
4021@if bfd
4022maybe-install-bfd: install-bfd
2a4cbe27 4023
a90ef4bf 4024install-bfd: installdirs
0aed8855 4025 @: $(MAKE); $(unstage)
4fa63067 4026 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4028 $(HOST_EXPORTS) \
a90ef4bf 4029 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 4030 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 4031
a90ef4bf 4032@endif bfd
2a4cbe27 4033
a90ef4bf
JM
4034.PHONY: install-strip-bfd maybe-install-strip-bfd
4035maybe-install-strip-bfd:
4036@if bfd
4037maybe-install-strip-bfd: install-strip-bfd
9b980aa1 4038
a90ef4bf 4039install-strip-bfd: installdirs
9b980aa1
RW
4040 @: $(MAKE); $(unstage)
4041 @r=`${PWD_COMMAND}`; export r; \
4042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4043 $(HOST_EXPORTS) \
a90ef4bf 4044 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
4045 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4046
a90ef4bf 4047@endif bfd
9b980aa1 4048
56a8fe78 4049# Other targets (info, dvi, pdf, etc.)
2a4cbe27 4050
a90ef4bf
JM
4051.PHONY: maybe-info-bfd info-bfd
4052maybe-info-bfd:
4053@if bfd
4054maybe-info-bfd: info-bfd
4fa63067 4055
a90ef4bf
JM
4056info-bfd: \
4057 configure-bfd
4058 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4059 r=`${PWD_COMMAND}`; export r; \
4060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4061 $(HOST_EXPORTS) \
b813574b 4062 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4064 done; \
22121df0 4065 echo "Doing info in bfd"; \
a90ef4bf 4066 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4069 "RANLIB=$${RANLIB}" \
0c24b341 4070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4071 info) \
2a4cbe27
NN
4072 || exit 1
4073
a90ef4bf 4074@endif bfd
2a4cbe27 4075
a90ef4bf
JM
4076.PHONY: maybe-dvi-bfd dvi-bfd
4077maybe-dvi-bfd:
4078@if bfd
4079maybe-dvi-bfd: dvi-bfd
2a4cbe27 4080
a90ef4bf
JM
4081dvi-bfd: \
4082 configure-bfd
4083 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4084 r=`${PWD_COMMAND}`; export r; \
4085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4086 $(HOST_EXPORTS) \
b813574b 4087 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4089 done; \
22121df0 4090 echo "Doing dvi in bfd"; \
a90ef4bf 4091 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4094 "RANLIB=$${RANLIB}" \
0c24b341 4095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4096 dvi) \
2a4cbe27
NN
4097 || exit 1
4098
a90ef4bf 4099@endif bfd
2a4cbe27 4100
a90ef4bf
JM
4101.PHONY: maybe-pdf-bfd pdf-bfd
4102maybe-pdf-bfd:
4103@if bfd
4104maybe-pdf-bfd: pdf-bfd
56a8fe78 4105
a90ef4bf
JM
4106pdf-bfd: \
4107 configure-bfd
4108 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
4109 r=`${PWD_COMMAND}`; export r; \
4110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4111 $(HOST_EXPORTS) \
4112 for flag in $(EXTRA_HOST_FLAGS) ; do \
4113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4114 done; \
22121df0 4115 echo "Doing pdf in bfd"; \
a90ef4bf 4116 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
4117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4119 "RANLIB=$${RANLIB}" \
0c24b341 4120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
4121 pdf) \
4122 || exit 1
4123
a90ef4bf 4124@endif bfd
56a8fe78 4125
a90ef4bf
JM
4126.PHONY: maybe-html-bfd html-bfd
4127maybe-html-bfd:
4128@if bfd
4129maybe-html-bfd: html-bfd
6d389afc 4130
a90ef4bf
JM
4131html-bfd: \
4132 configure-bfd
4133 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
4134 r=`${PWD_COMMAND}`; export r; \
4135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4136 $(HOST_EXPORTS) \
4137 for flag in $(EXTRA_HOST_FLAGS) ; do \
4138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4139 done; \
22121df0 4140 echo "Doing html in bfd"; \
a90ef4bf 4141 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
4142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4144 "RANLIB=$${RANLIB}" \
0c24b341 4145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
4146 html) \
4147 || exit 1
4148
a90ef4bf 4149@endif bfd
6d389afc 4150
a90ef4bf
JM
4151.PHONY: maybe-TAGS-bfd TAGS-bfd
4152maybe-TAGS-bfd:
4153@if bfd
4154maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 4155
a90ef4bf
JM
4156TAGS-bfd: \
4157 configure-bfd
4158 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4159 r=`${PWD_COMMAND}`; export r; \
4160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4161 $(HOST_EXPORTS) \
b813574b 4162 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4164 done; \
22121df0 4165 echo "Doing TAGS in bfd"; \
a90ef4bf 4166 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4169 "RANLIB=$${RANLIB}" \
0c24b341 4170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4171 TAGS) \
2a4cbe27
NN
4172 || exit 1
4173
a90ef4bf 4174@endif bfd
2a4cbe27 4175
a90ef4bf
JM
4176.PHONY: maybe-install-info-bfd install-info-bfd
4177maybe-install-info-bfd:
4178@if bfd
4179maybe-install-info-bfd: install-info-bfd
2a4cbe27 4180
a90ef4bf
JM
4181install-info-bfd: \
4182 configure-bfd \
4183 info-bfd
4184 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4185 r=`${PWD_COMMAND}`; export r; \
4186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4187 $(HOST_EXPORTS) \
b813574b 4188 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4190 done; \
22121df0 4191 echo "Doing install-info in bfd"; \
a90ef4bf 4192 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4195 "RANLIB=$${RANLIB}" \
0c24b341 4196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4197 install-info) \
2a4cbe27
NN
4198 || exit 1
4199
a90ef4bf 4200@endif bfd
2a4cbe27 4201
a90ef4bf
JM
4202.PHONY: maybe-install-pdf-bfd install-pdf-bfd
4203maybe-install-pdf-bfd:
4204@if bfd
4205maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 4206
a90ef4bf
JM
4207install-pdf-bfd: \
4208 configure-bfd \
4209 pdf-bfd
4210 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
4211 r=`${PWD_COMMAND}`; export r; \
4212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4213 $(HOST_EXPORTS) \
4214 for flag in $(EXTRA_HOST_FLAGS) ; do \
4215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4216 done; \
22121df0 4217 echo "Doing install-pdf in bfd"; \
a90ef4bf 4218 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
4219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4221 "RANLIB=$${RANLIB}" \
0c24b341 4222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
4223 install-pdf) \
4224 || exit 1
4225
a90ef4bf 4226@endif bfd
a3ca38d2 4227
a90ef4bf
JM
4228.PHONY: maybe-install-html-bfd install-html-bfd
4229maybe-install-html-bfd:
4230@if bfd
4231maybe-install-html-bfd: install-html-bfd
108a6f8e 4232
a90ef4bf
JM
4233install-html-bfd: \
4234 configure-bfd \
4235 html-bfd
4236 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
4237 r=`${PWD_COMMAND}`; export r; \
4238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4239 $(HOST_EXPORTS) \
4240 for flag in $(EXTRA_HOST_FLAGS) ; do \
4241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4242 done; \
22121df0 4243 echo "Doing install-html in bfd"; \
a90ef4bf 4244 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
4245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4247 "RANLIB=$${RANLIB}" \
0c24b341 4248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
4249 install-html) \
4250 || exit 1
4251
a90ef4bf 4252@endif bfd
108a6f8e 4253
a90ef4bf
JM
4254.PHONY: maybe-installcheck-bfd installcheck-bfd
4255maybe-installcheck-bfd:
4256@if bfd
4257maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 4258
a90ef4bf
JM
4259installcheck-bfd: \
4260 configure-bfd
4261 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4262 r=`${PWD_COMMAND}`; export r; \
4263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4264 $(HOST_EXPORTS) \
b813574b 4265 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4267 done; \
22121df0 4268 echo "Doing installcheck in bfd"; \
a90ef4bf 4269 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4272 "RANLIB=$${RANLIB}" \
0c24b341 4273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4274 installcheck) \
2a4cbe27
NN
4275 || exit 1
4276
a90ef4bf 4277@endif bfd
2a4cbe27 4278
a90ef4bf
JM
4279.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
4280maybe-mostlyclean-bfd:
4281@if bfd
4282maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 4283
a90ef4bf
JM
4284mostlyclean-bfd:
4285 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4286 r=`${PWD_COMMAND}`; export r; \
4287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4288 $(HOST_EXPORTS) \
b813574b 4289 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4291 done; \
22121df0 4292 echo "Doing mostlyclean in bfd"; \
a90ef4bf 4293 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4296 "RANLIB=$${RANLIB}" \
0c24b341 4297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4298 mostlyclean) \
2a4cbe27
NN
4299 || exit 1
4300
a90ef4bf 4301@endif bfd
2a4cbe27 4302
a90ef4bf
JM
4303.PHONY: maybe-clean-bfd clean-bfd
4304maybe-clean-bfd:
4305@if bfd
4306maybe-clean-bfd: clean-bfd
2a4cbe27 4307
a90ef4bf
JM
4308clean-bfd:
4309 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4310 r=`${PWD_COMMAND}`; export r; \
4311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4312 $(HOST_EXPORTS) \
b813574b 4313 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4315 done; \
22121df0 4316 echo "Doing clean in bfd"; \
a90ef4bf 4317 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4320 "RANLIB=$${RANLIB}" \
0c24b341 4321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4322 clean) \
2a4cbe27
NN
4323 || exit 1
4324
a90ef4bf 4325@endif bfd
2a4cbe27 4326
a90ef4bf
JM
4327.PHONY: maybe-distclean-bfd distclean-bfd
4328maybe-distclean-bfd:
4329@if bfd
4330maybe-distclean-bfd: distclean-bfd
2a4cbe27 4331
a90ef4bf
JM
4332distclean-bfd:
4333 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4334 r=`${PWD_COMMAND}`; export r; \
4335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4336 $(HOST_EXPORTS) \
b813574b 4337 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4339 done; \
22121df0 4340 echo "Doing distclean in bfd"; \
a90ef4bf 4341 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4344 "RANLIB=$${RANLIB}" \
0c24b341 4345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4346 distclean) \
2a4cbe27
NN
4347 || exit 1
4348
a90ef4bf 4349@endif bfd
2a4cbe27 4350
a90ef4bf
JM
4351.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4352maybe-maintainer-clean-bfd:
4353@if bfd
4354maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4355
a90ef4bf
JM
4356maintainer-clean-bfd:
4357 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4358 r=`${PWD_COMMAND}`; export r; \
4359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4360 $(HOST_EXPORTS) \
b813574b 4361 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4363 done; \
22121df0 4364 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4365 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4368 "RANLIB=$${RANLIB}" \
0c24b341 4369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4370 maintainer-clean) \
2a4cbe27
NN
4371 || exit 1
4372
a90ef4bf 4373@endif bfd
2a4cbe27 4374
2a4cbe27 4375
a7254363 4376
a90ef4bf
JM
4377.PHONY: configure-opcodes maybe-configure-opcodes
4378maybe-configure-opcodes:
4f0ef2d8 4379@if gcc-bootstrap
a90ef4bf 4380configure-opcodes: stage_current
4f0ef2d8 4381@endif gcc-bootstrap
a90ef4bf
JM
4382@if opcodes
4383maybe-configure-opcodes: configure-opcodes
4384configure-opcodes:
c52c6897 4385 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4387 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4388 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4389 $(HOST_EXPORTS) \
a90ef4bf
JM
4390 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4391 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4392 case $(srcdir) in \
b00612cc 4393 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4394 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4395 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4396 esac; \
1b6c0831
L
4397 module_srcdir=opcodes; \
4398 $(SHELL) \
4399 $$s/$$module_srcdir/configure \
4400 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4401 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4402 --target=${target_alias} \
2a4cbe27 4403 || exit 1
a90ef4bf 4404@endif opcodes
a7254363 4405
d545f33b
PB
4406
4407
a90ef4bf
JM
4408.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4409maybe-configure-stage1-opcodes:
4410@if opcodes-bootstrap
4411maybe-configure-stage1-opcodes: configure-stage1-opcodes
4412configure-stage1-opcodes:
4413 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4414 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4415 @r=`${PWD_COMMAND}`; export r; \
4416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4417 TFLAGS="$(STAGE1_TFLAGS)"; \
4418 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4419 $(HOST_EXPORTS) \
4420 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4421 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4422 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4423 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4424 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4425 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4426 case $(srcdir) in \
4427 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4428 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4429 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4430 esac; \
1b6c0831
L
4431 module_srcdir=opcodes; \
4432 $(SHELL) $$s/$$module_srcdir/configure \
4433 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4434 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4435 --target=${target_alias} \
4436 \
a90ef4bf
JM
4437 $(STAGE1_CONFIGURE_FLAGS)
4438@endif opcodes-bootstrap
2a4cbe27 4439
a90ef4bf
JM
4440.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4441maybe-configure-stage2-opcodes:
4442@if opcodes-bootstrap
4443maybe-configure-stage2-opcodes: configure-stage2-opcodes
4444configure-stage2-opcodes:
4445 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4446 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4447 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4449 TFLAGS="$(STAGE2_TFLAGS)"; \
4450 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4451 $(HOST_EXPORTS) \
a90ef4bf
JM
4452 $(POSTSTAGE1_HOST_EXPORTS) \
4453 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4454 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4455 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4456 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4457 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4458 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4459 case $(srcdir) in \
4460 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4461 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4462 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4463 esac; \
1b6c0831
L
4464 module_srcdir=opcodes; \
4465 $(SHELL) $$s/$$module_srcdir/configure \
4466 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4467 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4468 --target=${target_alias} \
22121df0 4469 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4470 $(STAGE2_CONFIGURE_FLAGS)
4471@endif opcodes-bootstrap
2a4cbe27 4472
a90ef4bf
JM
4473.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4474maybe-configure-stage3-opcodes:
4475@if opcodes-bootstrap
4476maybe-configure-stage3-opcodes: configure-stage3-opcodes
4477configure-stage3-opcodes:
4478 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4479 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4480 @r=`${PWD_COMMAND}`; export r; \
4481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4482 TFLAGS="$(STAGE3_TFLAGS)"; \
4483 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4484 $(HOST_EXPORTS) \
a90ef4bf
JM
4485 $(POSTSTAGE1_HOST_EXPORTS) \
4486 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4487 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4488 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4489 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4490 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4491 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4492 case $(srcdir) in \
4493 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4494 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4495 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4496 esac; \
1b6c0831
L
4497 module_srcdir=opcodes; \
4498 $(SHELL) $$s/$$module_srcdir/configure \
4499 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4500 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4501 --target=${target_alias} \
22121df0 4502 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4503 $(STAGE3_CONFIGURE_FLAGS)
4504@endif opcodes-bootstrap
9b980aa1 4505
a90ef4bf
JM
4506.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4507maybe-configure-stage4-opcodes:
4508@if opcodes-bootstrap
4509maybe-configure-stage4-opcodes: configure-stage4-opcodes
4510configure-stage4-opcodes:
4511 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4512 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4513 @r=`${PWD_COMMAND}`; export r; \
4514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4515 TFLAGS="$(STAGE4_TFLAGS)"; \
4516 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4517 $(HOST_EXPORTS) \
a90ef4bf
JM
4518 $(POSTSTAGE1_HOST_EXPORTS) \
4519 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4520 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4521 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4522 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4523 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4524 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4525 case $(srcdir) in \
4526 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4527 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4528 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4529 esac; \
1b6c0831
L
4530 module_srcdir=opcodes; \
4531 $(SHELL) $$s/$$module_srcdir/configure \
4532 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4533 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4534 --target=${target_alias} \
22121df0 4535 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4536 $(STAGE4_CONFIGURE_FLAGS)
4537@endif opcodes-bootstrap
4fa63067 4538
a90ef4bf
JM
4539.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4540maybe-configure-stageprofile-opcodes:
4541@if opcodes-bootstrap
4542maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4543configure-stageprofile-opcodes:
4544 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4545 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4546 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4548 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4549 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4550 $(HOST_EXPORTS) \
a90ef4bf
JM
4551 $(POSTSTAGE1_HOST_EXPORTS) \
4552 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4553 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4554 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4555 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4556 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4557 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4558 case $(srcdir) in \
4559 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4560 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4561 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4562 esac; \
1b6c0831
L
4563 module_srcdir=opcodes; \
4564 $(SHELL) $$s/$$module_srcdir/configure \
4565 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4566 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4567 --target=${target_alias} \
22121df0 4568 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4569 $(STAGEprofile_CONFIGURE_FLAGS)
4570@endif opcodes-bootstrap
4571
f948b2de
NC
4572.PHONY: configure-stagetrain-opcodes maybe-configure-stagetrain-opcodes
4573maybe-configure-stagetrain-opcodes:
4574@if opcodes-bootstrap
4575maybe-configure-stagetrain-opcodes: configure-stagetrain-opcodes
4576configure-stagetrain-opcodes:
4577 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
4578 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4579 @r=`${PWD_COMMAND}`; export r; \
4580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4581 TFLAGS="$(STAGEtrain_TFLAGS)"; \
4582 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4583 $(HOST_EXPORTS) \
4584 $(POSTSTAGE1_HOST_EXPORTS) \
4585 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
4586 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
4587 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
4588 echo Configuring stage train in $(HOST_SUBDIR)/opcodes; \
4589 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
4590 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4591 case $(srcdir) in \
4592 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4593 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4594 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4595 esac; \
4596 module_srcdir=opcodes; \
4597 $(SHELL) $$s/$$module_srcdir/configure \
4598 --srcdir=$${topdir}/$$module_srcdir \
4599 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4600 --target=${target_alias} \
4601 --with-build-libsubdir=$(HOST_SUBDIR) \
4602 $(STAGEtrain_CONFIGURE_FLAGS)
4603@endif opcodes-bootstrap
4604
a90ef4bf
JM
4605.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4606maybe-configure-stagefeedback-opcodes:
4607@if opcodes-bootstrap
4608maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4609configure-stagefeedback-opcodes:
4610 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4611 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4612 @r=`${PWD_COMMAND}`; export r; \
4613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4614 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4615 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4616 $(HOST_EXPORTS) \
4617 $(POSTSTAGE1_HOST_EXPORTS) \
4618 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4619 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4620 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4621 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4622 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4623 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4624 case $(srcdir) in \
4625 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4626 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4627 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4628 esac; \
1b6c0831
L
4629 module_srcdir=opcodes; \
4630 $(SHELL) $$s/$$module_srcdir/configure \
4631 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4632 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4633 --target=${target_alias} \
22121df0 4634 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4635 $(STAGEfeedback_CONFIGURE_FLAGS)
4636@endif opcodes-bootstrap
4637
f948b2de
NC
4638.PHONY: configure-stageautoprofile-opcodes maybe-configure-stageautoprofile-opcodes
4639maybe-configure-stageautoprofile-opcodes:
4640@if opcodes-bootstrap
4641maybe-configure-stageautoprofile-opcodes: configure-stageautoprofile-opcodes
4642configure-stageautoprofile-opcodes:
4643 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
4644 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4645 @r=`${PWD_COMMAND}`; export r; \
4646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4647 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
4648 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4649 $(HOST_EXPORTS) \
4650 $(POSTSTAGE1_HOST_EXPORTS) \
4651 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
4652 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
4653 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
4654 echo Configuring stage autoprofile in $(HOST_SUBDIR)/opcodes; \
4655 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
4656 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4657 case $(srcdir) in \
4658 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4659 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4660 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4661 esac; \
4662 module_srcdir=opcodes; \
4663 $(SHELL) $$s/$$module_srcdir/configure \
4664 --srcdir=$${topdir}/$$module_srcdir \
4665 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4666 --target=${target_alias} \
4667 --with-build-libsubdir=$(HOST_SUBDIR) \
4668 $(STAGEautoprofile_CONFIGURE_FLAGS)
4669@endif opcodes-bootstrap
4670
4671.PHONY: configure-stageautofeedback-opcodes maybe-configure-stageautofeedback-opcodes
4672maybe-configure-stageautofeedback-opcodes:
4673@if opcodes-bootstrap
4674maybe-configure-stageautofeedback-opcodes: configure-stageautofeedback-opcodes
4675configure-stageautofeedback-opcodes:
4676 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
4677 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4678 @r=`${PWD_COMMAND}`; export r; \
4679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4680 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
4681 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4682 $(HOST_EXPORTS) \
4683 $(POSTSTAGE1_HOST_EXPORTS) \
4684 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
4685 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
4686 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
4687 echo Configuring stage autofeedback in $(HOST_SUBDIR)/opcodes; \
4688 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
4689 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4690 case $(srcdir) in \
4691 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4692 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4693 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4694 esac; \
4695 module_srcdir=opcodes; \
4696 $(SHELL) $$s/$$module_srcdir/configure \
4697 --srcdir=$${topdir}/$$module_srcdir \
4698 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
4699 --target=${target_alias} \
4700 --with-build-libsubdir=$(HOST_SUBDIR) \
4701 $(STAGEautofeedback_CONFIGURE_FLAGS)
4702@endif opcodes-bootstrap
4703
a90ef4bf
JM
4704
4705
4706
4707
4708.PHONY: all-opcodes maybe-all-opcodes
4709maybe-all-opcodes:
4710@if gcc-bootstrap
4711all-opcodes: stage_current
4712@endif gcc-bootstrap
4713@if opcodes
4714TARGET-opcodes=all
4715maybe-all-opcodes: all-opcodes
4716all-opcodes: configure-opcodes
4717 @r=`${PWD_COMMAND}`; export r; \
4718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4719 $(HOST_EXPORTS) \
4720 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4721 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4722 $(TARGET-opcodes))
4723@endif opcodes
4724
4725
4726
4727.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4728.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4729maybe-all-stage1-opcodes:
4730maybe-clean-stage1-opcodes:
4731@if opcodes-bootstrap
4732maybe-all-stage1-opcodes: all-stage1-opcodes
4733all-stage1: all-stage1-opcodes
4734TARGET-stage1-opcodes = $(TARGET-opcodes)
4735all-stage1-opcodes: configure-stage1-opcodes
4736 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4737 @r=`${PWD_COMMAND}`; export r; \
4738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4739 TFLAGS="$(STAGE1_TFLAGS)"; \
4740 $(HOST_EXPORTS) \
4741 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4742 \
a90ef4bf
JM
4743 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4744 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 4745 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
4746 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4747 LIBCFLAGS="$(LIBCFLAGS)" \
4748 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4749 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4750 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4751 $(EXTRA_HOST_FLAGS) \
4752 $(STAGE1_FLAGS_TO_PASS) \
05a13254 4753 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
4754 $(TARGET-stage1-opcodes)
4755
4756maybe-clean-stage1-opcodes: clean-stage1-opcodes
4757clean-stage1: clean-stage1-opcodes
4758clean-stage1-opcodes:
4759 @if [ $(current_stage) = stage1 ]; then \
4760 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4761 else \
4762 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4763 $(MAKE) stage1-start; \
4764 fi; \
4765 cd $(HOST_SUBDIR)/opcodes && \
4766 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4767 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4768@endif opcodes-bootstrap
4769
4770
4771.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4772.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4773maybe-all-stage2-opcodes:
4774maybe-clean-stage2-opcodes:
4775@if opcodes-bootstrap
4776maybe-all-stage2-opcodes: all-stage2-opcodes
4777all-stage2: all-stage2-opcodes
4778TARGET-stage2-opcodes = $(TARGET-opcodes)
4779all-stage2-opcodes: configure-stage2-opcodes
4780 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4781 @r=`${PWD_COMMAND}`; export r; \
4782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4783 TFLAGS="$(STAGE2_TFLAGS)"; \
4784 $(HOST_EXPORTS) \
4785 $(POSTSTAGE1_HOST_EXPORTS) \
4786 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4787 \
a90ef4bf
JM
4788 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4789 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 4790 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
4791 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4792 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4793 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4794 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4795 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4796 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4797 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
4798 $(TARGET-stage2-opcodes)
4799
4800maybe-clean-stage2-opcodes: clean-stage2-opcodes
4801clean-stage2: clean-stage2-opcodes
4802clean-stage2-opcodes:
4803 @if [ $(current_stage) = stage2 ]; then \
4804 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4805 else \
4806 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4807 $(MAKE) stage2-start; \
4808 fi; \
4809 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4810 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4811@endif opcodes-bootstrap
4812
4813
4814.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4815.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4816maybe-all-stage3-opcodes:
4817maybe-clean-stage3-opcodes:
4818@if opcodes-bootstrap
4819maybe-all-stage3-opcodes: all-stage3-opcodes
4820all-stage3: all-stage3-opcodes
4821TARGET-stage3-opcodes = $(TARGET-opcodes)
4822all-stage3-opcodes: configure-stage3-opcodes
4823 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4824 @r=`${PWD_COMMAND}`; export r; \
4825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4826 TFLAGS="$(STAGE3_TFLAGS)"; \
4827 $(HOST_EXPORTS) \
4828 $(POSTSTAGE1_HOST_EXPORTS) \
4829 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4830 \
a90ef4bf
JM
4831 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4832 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 4833 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
4834 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4835 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4836 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4837 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4838 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4839 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4840 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
4841 $(TARGET-stage3-opcodes)
4842
4843maybe-clean-stage3-opcodes: clean-stage3-opcodes
4844clean-stage3: clean-stage3-opcodes
4845clean-stage3-opcodes:
4846 @if [ $(current_stage) = stage3 ]; then \
4847 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4848 else \
4849 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4850 $(MAKE) stage3-start; \
4851 fi; \
4852 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4853 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4854@endif opcodes-bootstrap
4855
4856
4857.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4858.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4859maybe-all-stage4-opcodes:
4860maybe-clean-stage4-opcodes:
4861@if opcodes-bootstrap
4862maybe-all-stage4-opcodes: all-stage4-opcodes
4863all-stage4: all-stage4-opcodes
4864TARGET-stage4-opcodes = $(TARGET-opcodes)
4865all-stage4-opcodes: configure-stage4-opcodes
4866 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4867 @r=`${PWD_COMMAND}`; export r; \
4868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4869 TFLAGS="$(STAGE4_TFLAGS)"; \
4870 $(HOST_EXPORTS) \
4871 $(POSTSTAGE1_HOST_EXPORTS) \
4872 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4873 \
a90ef4bf
JM
4874 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4875 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 4876 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
4877 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4878 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4879 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4880 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4881 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4882 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4883 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
4884 $(TARGET-stage4-opcodes)
4885
4886maybe-clean-stage4-opcodes: clean-stage4-opcodes
4887clean-stage4: clean-stage4-opcodes
4888clean-stage4-opcodes:
4889 @if [ $(current_stage) = stage4 ]; then \
4890 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4891 else \
4892 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4893 $(MAKE) stage4-start; \
4894 fi; \
4895 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4896 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4897@endif opcodes-bootstrap
4898
4899
4900.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4901.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4902maybe-all-stageprofile-opcodes:
4903maybe-clean-stageprofile-opcodes:
4904@if opcodes-bootstrap
4905maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4906all-stageprofile: all-stageprofile-opcodes
4907TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4908all-stageprofile-opcodes: configure-stageprofile-opcodes
4909 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4910 @r=`${PWD_COMMAND}`; export r; \
4911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4912 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4913 $(HOST_EXPORTS) \
4914 $(POSTSTAGE1_HOST_EXPORTS) \
4915 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4916 \
a90ef4bf
JM
4917 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4918 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 4919 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
4920 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4921 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4922 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4923 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4924 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4925 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4926 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
4927 $(TARGET-stageprofile-opcodes)
4928
4929maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4930clean-stageprofile: clean-stageprofile-opcodes
4931clean-stageprofile-opcodes:
4932 @if [ $(current_stage) = stageprofile ]; then \
4933 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4934 else \
4935 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4936 $(MAKE) stageprofile-start; \
4937 fi; \
4938 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4939 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4940@endif opcodes-bootstrap
4941
4942
f948b2de
NC
4943.PHONY: all-stagetrain-opcodes maybe-all-stagetrain-opcodes
4944.PHONY: clean-stagetrain-opcodes maybe-clean-stagetrain-opcodes
4945maybe-all-stagetrain-opcodes:
4946maybe-clean-stagetrain-opcodes:
4947@if opcodes-bootstrap
4948maybe-all-stagetrain-opcodes: all-stagetrain-opcodes
4949all-stagetrain: all-stagetrain-opcodes
4950TARGET-stagetrain-opcodes = $(TARGET-opcodes)
4951all-stagetrain-opcodes: configure-stagetrain-opcodes
4952 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
4953 @r=`${PWD_COMMAND}`; export r; \
4954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4955 TFLAGS="$(STAGEtrain_TFLAGS)"; \
4956 $(HOST_EXPORTS) \
4957 $(POSTSTAGE1_HOST_EXPORTS) \
4958 cd $(HOST_SUBDIR)/opcodes && \
4959 \
4960 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4961 CFLAGS="$(STAGEtrain_CFLAGS)" \
4962 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
4963 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
4964 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
4965 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4966 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4967 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4968 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4969 TFLAGS="$(STAGEtrain_TFLAGS)" \
4970 $(TARGET-stagetrain-opcodes)
4971
4972maybe-clean-stagetrain-opcodes: clean-stagetrain-opcodes
4973clean-stagetrain: clean-stagetrain-opcodes
4974clean-stagetrain-opcodes:
4975 @if [ $(current_stage) = stagetrain ]; then \
4976 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4977 else \
4978 [ -f $(HOST_SUBDIR)/stagetrain-opcodes/Makefile ] || exit 0; \
4979 $(MAKE) stagetrain-start; \
4980 fi; \
4981 cd $(HOST_SUBDIR)/opcodes && \
4982 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
4983@endif opcodes-bootstrap
4984
4985
a90ef4bf
JM
4986.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4987.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4988maybe-all-stagefeedback-opcodes:
4989maybe-clean-stagefeedback-opcodes:
4990@if opcodes-bootstrap
4991maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4992all-stagefeedback: all-stagefeedback-opcodes
4993TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4994all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4995 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4996 @r=`${PWD_COMMAND}`; export r; \
4997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4998 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4999 $(HOST_EXPORTS) \
5000 $(POSTSTAGE1_HOST_EXPORTS) \
5001 cd $(HOST_SUBDIR)/opcodes && \
05a13254 5002 \
a90ef4bf
JM
5003 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5004 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 5005 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
5006 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
5007 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5008 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5009 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5010 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5011 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5012 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
5013 $(TARGET-stagefeedback-opcodes)
5014
5015maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
5016clean-stagefeedback: clean-stagefeedback-opcodes
5017clean-stagefeedback-opcodes:
5018 @if [ $(current_stage) = stagefeedback ]; then \
5019 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
5020 else \
5021 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
5022 $(MAKE) stagefeedback-start; \
5023 fi; \
5024 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 5025 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
5026@endif opcodes-bootstrap
5027
5028
f948b2de
NC
5029.PHONY: all-stageautoprofile-opcodes maybe-all-stageautoprofile-opcodes
5030.PHONY: clean-stageautoprofile-opcodes maybe-clean-stageautoprofile-opcodes
5031maybe-all-stageautoprofile-opcodes:
5032maybe-clean-stageautoprofile-opcodes:
5033@if opcodes-bootstrap
5034maybe-all-stageautoprofile-opcodes: all-stageautoprofile-opcodes
5035all-stageautoprofile: all-stageautoprofile-opcodes
5036TARGET-stageautoprofile-opcodes = $(TARGET-opcodes)
5037all-stageautoprofile-opcodes: configure-stageautoprofile-opcodes
5038 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
5039 @r=`${PWD_COMMAND}`; export r; \
5040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5041 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
5042 $(HOST_EXPORTS) \
5043 $(POSTSTAGE1_HOST_EXPORTS) \
5044 cd $(HOST_SUBDIR)/opcodes && \
5045 $$s/gcc/config/i386/$(AUTO_PROFILE) \
5046 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5047 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
5048 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
5049 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
5050 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
5051 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5052 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5053 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5054 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5055 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
5056 $(TARGET-stageautoprofile-opcodes)
5057
5058maybe-clean-stageautoprofile-opcodes: clean-stageautoprofile-opcodes
5059clean-stageautoprofile: clean-stageautoprofile-opcodes
5060clean-stageautoprofile-opcodes:
5061 @if [ $(current_stage) = stageautoprofile ]; then \
5062 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
5063 else \
5064 [ -f $(HOST_SUBDIR)/stageautoprofile-opcodes/Makefile ] || exit 0; \
5065 $(MAKE) stageautoprofile-start; \
5066 fi; \
5067 cd $(HOST_SUBDIR)/opcodes && \
5068 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
5069@endif opcodes-bootstrap
5070
5071
5072.PHONY: all-stageautofeedback-opcodes maybe-all-stageautofeedback-opcodes
5073.PHONY: clean-stageautofeedback-opcodes maybe-clean-stageautofeedback-opcodes
5074maybe-all-stageautofeedback-opcodes:
5075maybe-clean-stageautofeedback-opcodes:
5076@if opcodes-bootstrap
5077maybe-all-stageautofeedback-opcodes: all-stageautofeedback-opcodes
5078all-stageautofeedback: all-stageautofeedback-opcodes
5079TARGET-stageautofeedback-opcodes = $(TARGET-opcodes)
5080all-stageautofeedback-opcodes: configure-stageautofeedback-opcodes
5081 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
5082 @r=`${PWD_COMMAND}`; export r; \
5083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5084 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
5085 $(HOST_EXPORTS) \
5086 $(POSTSTAGE1_HOST_EXPORTS) \
5087 cd $(HOST_SUBDIR)/opcodes && \
5088 \
5089 $(MAKE) $(BASE_FLAGS_TO_PASS) \
5090 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
5091 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
5092 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
5093 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
5094 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5095 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5096 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5097 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5098 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
5099 $(TARGET-stageautofeedback-opcodes)
5100
5101maybe-clean-stageautofeedback-opcodes: clean-stageautofeedback-opcodes
5102clean-stageautofeedback: clean-stageautofeedback-opcodes
5103clean-stageautofeedback-opcodes:
5104 @if [ $(current_stage) = stageautofeedback ]; then \
5105 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
5106 else \
5107 [ -f $(HOST_SUBDIR)/stageautofeedback-opcodes/Makefile ] || exit 0; \
5108 $(MAKE) stageautofeedback-start; \
5109 fi; \
5110 cd $(HOST_SUBDIR)/opcodes && \
5111 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
5112@endif opcodes-bootstrap
5113
5114
a90ef4bf
JM
5115
5116
5117
5118.PHONY: check-opcodes maybe-check-opcodes
5119maybe-check-opcodes:
5120@if opcodes
5121maybe-check-opcodes: check-opcodes
5122
5123check-opcodes:
0aed8855 5124 @: $(MAKE); $(unstage)
a90ef4bf 5125 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5127 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5128 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 5129 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5130
a90ef4bf 5131@endif opcodes
2a4cbe27 5132
a90ef4bf
JM
5133.PHONY: install-opcodes maybe-install-opcodes
5134maybe-install-opcodes:
5135@if opcodes
5136maybe-install-opcodes: install-opcodes
56a8fe78 5137
a90ef4bf 5138install-opcodes: installdirs
56a8fe78 5139 @: $(MAKE); $(unstage)
a90ef4bf 5140 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
5141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5142 $(HOST_EXPORTS) \
a90ef4bf
JM
5143 (cd $(HOST_SUBDIR)/opcodes && \
5144 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 5145
a90ef4bf 5146@endif opcodes
56a8fe78 5147
a90ef4bf
JM
5148.PHONY: install-strip-opcodes maybe-install-strip-opcodes
5149maybe-install-strip-opcodes:
5150@if opcodes
5151maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 5152
a90ef4bf 5153install-strip-opcodes: installdirs
0aed8855 5154 @: $(MAKE); $(unstage)
a90ef4bf
JM
5155 @r=`${PWD_COMMAND}`; export r; \
5156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5157 $(HOST_EXPORTS) \
5158 (cd $(HOST_SUBDIR)/opcodes && \
5159 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5160
5161@endif opcodes
5162
5163# Other targets (info, dvi, pdf, etc.)
5164
5165.PHONY: maybe-info-opcodes info-opcodes
5166maybe-info-opcodes:
5167@if opcodes
5168maybe-info-opcodes: info-opcodes
5169
5170info-opcodes: \
5171 configure-opcodes
5172 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
5173 r=`${PWD_COMMAND}`; export r; \
5174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5175 $(HOST_EXPORTS) \
5176 for flag in $(EXTRA_HOST_FLAGS) ; do \
5177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5178 done; \
22121df0 5179 echo "Doing info in opcodes"; \
a90ef4bf 5180 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
5181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5183 "RANLIB=$${RANLIB}" \
0c24b341 5184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5185 info) \
6d389afc
MS
5186 || exit 1
5187
a90ef4bf 5188@endif opcodes
6d389afc 5189
a90ef4bf
JM
5190.PHONY: maybe-dvi-opcodes dvi-opcodes
5191maybe-dvi-opcodes:
5192@if opcodes
5193maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 5194
a90ef4bf
JM
5195dvi-opcodes: \
5196 configure-opcodes
5197 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5198 r=`${PWD_COMMAND}`; export r; \
5199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5200 $(HOST_EXPORTS) \
b813574b 5201 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5203 done; \
22121df0 5204 echo "Doing dvi in opcodes"; \
a90ef4bf 5205 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5208 "RANLIB=$${RANLIB}" \
0c24b341 5209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5210 dvi) \
2a4cbe27
NN
5211 || exit 1
5212
a90ef4bf 5213@endif opcodes
2a4cbe27 5214
a90ef4bf
JM
5215.PHONY: maybe-pdf-opcodes pdf-opcodes
5216maybe-pdf-opcodes:
5217@if opcodes
5218maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 5219
a90ef4bf
JM
5220pdf-opcodes: \
5221 configure-opcodes
5222 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5223 r=`${PWD_COMMAND}`; export r; \
5224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5225 $(HOST_EXPORTS) \
b813574b 5226 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5228 done; \
22121df0 5229 echo "Doing pdf in opcodes"; \
a90ef4bf 5230 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5233 "RANLIB=$${RANLIB}" \
0c24b341 5234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5235 pdf) \
2a4cbe27
NN
5236 || exit 1
5237
a90ef4bf 5238@endif opcodes
2a4cbe27 5239
a90ef4bf
JM
5240.PHONY: maybe-html-opcodes html-opcodes
5241maybe-html-opcodes:
5242@if opcodes
5243maybe-html-opcodes: html-opcodes
a3ca38d2 5244
a90ef4bf
JM
5245html-opcodes: \
5246 configure-opcodes
5247 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
5248 r=`${PWD_COMMAND}`; export r; \
5249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5250 $(HOST_EXPORTS) \
5251 for flag in $(EXTRA_HOST_FLAGS) ; do \
5252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5253 done; \
22121df0 5254 echo "Doing html in opcodes"; \
a90ef4bf 5255 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
5256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5258 "RANLIB=$${RANLIB}" \
0c24b341 5259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5260 html) \
a3ca38d2
DD
5261 || exit 1
5262
a90ef4bf 5263@endif opcodes
a3ca38d2 5264
a90ef4bf
JM
5265.PHONY: maybe-TAGS-opcodes TAGS-opcodes
5266maybe-TAGS-opcodes:
5267@if opcodes
5268maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 5269
a90ef4bf
JM
5270TAGS-opcodes: \
5271 configure-opcodes
5272 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
5273 r=`${PWD_COMMAND}`; export r; \
5274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5275 $(HOST_EXPORTS) \
5276 for flag in $(EXTRA_HOST_FLAGS) ; do \
5277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5278 done; \
22121df0 5279 echo "Doing TAGS in opcodes"; \
a90ef4bf 5280 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
5281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5283 "RANLIB=$${RANLIB}" \
0c24b341 5284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5285 TAGS) \
108a6f8e
CD
5286 || exit 1
5287
a90ef4bf 5288@endif opcodes
108a6f8e 5289
a90ef4bf
JM
5290.PHONY: maybe-install-info-opcodes install-info-opcodes
5291maybe-install-info-opcodes:
5292@if opcodes
5293maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 5294
a90ef4bf
JM
5295install-info-opcodes: \
5296 configure-opcodes \
5297 info-opcodes
5298 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5299 r=`${PWD_COMMAND}`; export r; \
5300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5301 $(HOST_EXPORTS) \
b813574b 5302 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5304 done; \
22121df0 5305 echo "Doing install-info in opcodes"; \
a90ef4bf 5306 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5309 "RANLIB=$${RANLIB}" \
0c24b341 5310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5311 install-info) \
2a4cbe27
NN
5312 || exit 1
5313
a90ef4bf 5314@endif opcodes
2a4cbe27 5315
a90ef4bf
JM
5316.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
5317maybe-install-pdf-opcodes:
5318@if opcodes
5319maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 5320
a90ef4bf
JM
5321install-pdf-opcodes: \
5322 configure-opcodes \
5323 pdf-opcodes
5324 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5325 r=`${PWD_COMMAND}`; export r; \
5326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5327 $(HOST_EXPORTS) \
b813574b 5328 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5330 done; \
22121df0 5331 echo "Doing install-pdf in opcodes"; \
a90ef4bf 5332 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5335 "RANLIB=$${RANLIB}" \
0c24b341 5336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5337 install-pdf) \
2a4cbe27
NN
5338 || exit 1
5339
a90ef4bf 5340@endif opcodes
2a4cbe27 5341
a90ef4bf
JM
5342.PHONY: maybe-install-html-opcodes install-html-opcodes
5343maybe-install-html-opcodes:
5344@if opcodes
5345maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 5346
a90ef4bf
JM
5347install-html-opcodes: \
5348 configure-opcodes \
5349 html-opcodes
5350 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5351 r=`${PWD_COMMAND}`; export r; \
5352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5353 $(HOST_EXPORTS) \
b813574b 5354 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5356 done; \
22121df0 5357 echo "Doing install-html in opcodes"; \
a90ef4bf 5358 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5361 "RANLIB=$${RANLIB}" \
0c24b341 5362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5363 install-html) \
2a4cbe27
NN
5364 || exit 1
5365
a90ef4bf 5366@endif opcodes
2a4cbe27 5367
a90ef4bf
JM
5368.PHONY: maybe-installcheck-opcodes installcheck-opcodes
5369maybe-installcheck-opcodes:
5370@if opcodes
5371maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 5372
a90ef4bf
JM
5373installcheck-opcodes: \
5374 configure-opcodes
5375 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5376 r=`${PWD_COMMAND}`; export r; \
5377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5378 $(HOST_EXPORTS) \
b813574b 5379 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5381 done; \
22121df0 5382 echo "Doing installcheck in opcodes"; \
a90ef4bf 5383 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5386 "RANLIB=$${RANLIB}" \
0c24b341 5387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 5388 installcheck) \
2a4cbe27
NN
5389 || exit 1
5390
a90ef4bf 5391@endif opcodes
2a4cbe27 5392
a90ef4bf
JM
5393.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
5394maybe-mostlyclean-opcodes:
5395@if opcodes
5396maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 5397
a90ef4bf
JM
5398mostlyclean-opcodes:
5399 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5400 r=`${PWD_COMMAND}`; export r; \
5401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5402 $(HOST_EXPORTS) \
b813574b 5403 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5405 done; \
22121df0 5406 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 5407 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5410 "RANLIB=$${RANLIB}" \
0c24b341 5411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5412 mostlyclean) \
2a4cbe27
NN
5413 || exit 1
5414
a90ef4bf 5415@endif opcodes
2a4cbe27 5416
a90ef4bf
JM
5417.PHONY: maybe-clean-opcodes clean-opcodes
5418maybe-clean-opcodes:
5419@if opcodes
5420maybe-clean-opcodes: clean-opcodes
2a4cbe27 5421
a90ef4bf
JM
5422clean-opcodes:
5423 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5424 r=`${PWD_COMMAND}`; export r; \
5425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5426 $(HOST_EXPORTS) \
b813574b 5427 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5429 done; \
22121df0 5430 echo "Doing clean in opcodes"; \
a90ef4bf 5431 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5434 "RANLIB=$${RANLIB}" \
0c24b341 5435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5436 clean) \
2a4cbe27
NN
5437 || exit 1
5438
a90ef4bf 5439@endif opcodes
2a4cbe27 5440
a90ef4bf
JM
5441.PHONY: maybe-distclean-opcodes distclean-opcodes
5442maybe-distclean-opcodes:
5443@if opcodes
5444maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 5445
a90ef4bf
JM
5446distclean-opcodes:
5447 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5448 r=`${PWD_COMMAND}`; export r; \
5449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5450 $(HOST_EXPORTS) \
b813574b 5451 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5453 done; \
22121df0 5454 echo "Doing distclean in opcodes"; \
a90ef4bf 5455 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5458 "RANLIB=$${RANLIB}" \
0c24b341 5459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5460 distclean) \
2a4cbe27
NN
5461 || exit 1
5462
a90ef4bf 5463@endif opcodes
2a4cbe27 5464
a90ef4bf
JM
5465.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
5466maybe-maintainer-clean-opcodes:
5467@if opcodes
5468maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 5469
a90ef4bf
JM
5470maintainer-clean-opcodes:
5471 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5472 r=`${PWD_COMMAND}`; export r; \
5473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5474 $(HOST_EXPORTS) \
b813574b 5475 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5477 done; \
22121df0 5478 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 5479 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5482 "RANLIB=$${RANLIB}" \
0c24b341 5483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5484 maintainer-clean) \
2a4cbe27
NN
5485 || exit 1
5486
a90ef4bf 5487@endif opcodes
2a4cbe27 5488
2a4cbe27 5489
a7254363 5490
a90ef4bf
JM
5491.PHONY: configure-binutils maybe-configure-binutils
5492maybe-configure-binutils:
4f0ef2d8 5493@if gcc-bootstrap
a90ef4bf 5494configure-binutils: stage_current
4f0ef2d8 5495@endif gcc-bootstrap
a90ef4bf
JM
5496@if binutils
5497maybe-configure-binutils: configure-binutils
5498configure-binutils:
c52c6897
PB
5499 @r=`${PWD_COMMAND}`; export r; \
5500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5501 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 5502 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 5503 $(HOST_EXPORTS) \
a90ef4bf
JM
5504 echo Configuring in $(HOST_SUBDIR)/binutils; \
5505 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 5506 case $(srcdir) in \
b00612cc 5507 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5508 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 5509 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5510 esac; \
1b6c0831
L
5511 module_srcdir=binutils; \
5512 $(SHELL) \
5513 $$s/$$module_srcdir/configure \
5514 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5515 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5516 --target=${target_alias} \
2a4cbe27 5517 || exit 1
a90ef4bf 5518@endif binutils
2a4cbe27 5519
a7254363
PB
5520
5521
a90ef4bf
JM
5522.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
5523maybe-configure-stage1-binutils:
5524@if binutils-bootstrap
5525maybe-configure-stage1-binutils: configure-stage1-binutils
5526configure-stage1-binutils:
c52c6897 5527 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 5528 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5529 @r=`${PWD_COMMAND}`; export r; \
5530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5531 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 5532 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 5533 $(HOST_EXPORTS) \
8ee82aff 5534 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5535 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
5536 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
5537 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
5538 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5539 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5540 case $(srcdir) in \
5541 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5542 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5543 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5544 esac; \
1b6c0831
L
5545 module_srcdir=binutils; \
5546 $(SHELL) $$s/$$module_srcdir/configure \
5547 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5548 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5549 --target=${target_alias} \
5550 \
1b05fbbd 5551 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 5552@endif binutils-bootstrap
d545f33b 5553
a90ef4bf
JM
5554.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
5555maybe-configure-stage2-binutils:
5556@if binutils-bootstrap
5557maybe-configure-stage2-binutils: configure-stage2-binutils
5558configure-stage2-binutils:
c52c6897 5559 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 5560 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5561 @r=`${PWD_COMMAND}`; export r; \
5562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5563 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 5564 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5565 $(HOST_EXPORTS) \
1b05fbbd 5566 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5567 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5568 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
5569 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5570 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
5571 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5572 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5573 case $(srcdir) in \
5574 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5575 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5576 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5577 esac; \
1b6c0831
L
5578 module_srcdir=binutils; \
5579 $(SHELL) $$s/$$module_srcdir/configure \
5580 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5581 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5582 --target=${target_alias} \
22121df0 5583 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5584 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5585@endif binutils-bootstrap
8520c408 5586
a90ef4bf
JM
5587.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5588maybe-configure-stage3-binutils:
5589@if binutils-bootstrap
5590maybe-configure-stage3-binutils: configure-stage3-binutils
5591configure-stage3-binutils:
c52c6897 5592 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5593 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5594 @r=`${PWD_COMMAND}`; export r; \
5595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5596 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5597 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5598 $(HOST_EXPORTS) \
1b05fbbd 5599 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5600 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5601 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5602 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5603 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5604 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5605 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5606 case $(srcdir) in \
5607 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5608 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5609 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5610 esac; \
1b6c0831
L
5611 module_srcdir=binutils; \
5612 $(SHELL) $$s/$$module_srcdir/configure \
5613 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5614 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5615 --target=${target_alias} \
22121df0 5616 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5617 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5618@endif binutils-bootstrap
8520c408 5619
a90ef4bf
JM
5620.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5621maybe-configure-stage4-binutils:
5622@if binutils-bootstrap
5623maybe-configure-stage4-binutils: configure-stage4-binutils
5624configure-stage4-binutils:
c52c6897 5625 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5626 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5627 @r=`${PWD_COMMAND}`; export r; \
5628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5629 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5630 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5631 $(HOST_EXPORTS) \
1b05fbbd 5632 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5633 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5634 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5635 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5636 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5637 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5638 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5639 case $(srcdir) in \
5640 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5641 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5642 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5643 esac; \
1b6c0831
L
5644 module_srcdir=binutils; \
5645 $(SHELL) $$s/$$module_srcdir/configure \
5646 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5647 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5648 --target=${target_alias} \
22121df0 5649 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5650 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5651@endif binutils-bootstrap
d545f33b 5652
a90ef4bf
JM
5653.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5654maybe-configure-stageprofile-binutils:
5655@if binutils-bootstrap
5656maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5657configure-stageprofile-binutils:
c52c6897 5658 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5659 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5660 @r=`${PWD_COMMAND}`; export r; \
5661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5662 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5663 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5664 $(HOST_EXPORTS) \
1b05fbbd
AO
5665 $(POSTSTAGE1_HOST_EXPORTS) \
5666 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5667 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5668 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5669 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5670 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5671 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5672 case $(srcdir) in \
5673 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5674 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5675 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5676 esac; \
1b6c0831
L
5677 module_srcdir=binutils; \
5678 $(SHELL) $$s/$$module_srcdir/configure \
5679 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5680 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5681 --target=${target_alias} \
22121df0 5682 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5683 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5684@endif binutils-bootstrap
d545f33b 5685
f948b2de
NC
5686.PHONY: configure-stagetrain-binutils maybe-configure-stagetrain-binutils
5687maybe-configure-stagetrain-binutils:
5688@if binutils-bootstrap
5689maybe-configure-stagetrain-binutils: configure-stagetrain-binutils
5690configure-stagetrain-binutils:
5691 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
5692 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
5693 @r=`${PWD_COMMAND}`; export r; \
5694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5695 TFLAGS="$(STAGEtrain_TFLAGS)"; \
5696 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
5697 $(HOST_EXPORTS) \
5698 $(POSTSTAGE1_HOST_EXPORTS) \
5699 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
5700 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
5701 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
5702 echo Configuring stage train in $(HOST_SUBDIR)/binutils; \
5703 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
5704 cd $(HOST_SUBDIR)/binutils || exit 1; \
5705 case $(srcdir) in \
5706 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5707 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5708 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5709 esac; \
5710 module_srcdir=binutils; \
5711 $(SHELL) $$s/$$module_srcdir/configure \
5712 --srcdir=$${topdir}/$$module_srcdir \
5713 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5714 --target=${target_alias} \
5715 --with-build-libsubdir=$(HOST_SUBDIR) \
5716 $(STAGEtrain_CONFIGURE_FLAGS)
5717@endif binutils-bootstrap
5718
a90ef4bf
JM
5719.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5720maybe-configure-stagefeedback-binutils:
5721@if binutils-bootstrap
5722maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5723configure-stagefeedback-binutils:
c52c6897 5724 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5725 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5726 @r=`${PWD_COMMAND}`; export r; \
5727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5728 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5729 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5730 $(HOST_EXPORTS) \
1b05fbbd
AO
5731 $(POSTSTAGE1_HOST_EXPORTS) \
5732 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5733 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5734 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5735 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5736 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5737 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5738 case $(srcdir) in \
5739 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5740 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5741 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5742 esac; \
1b6c0831
L
5743 module_srcdir=binutils; \
5744 $(SHELL) $$s/$$module_srcdir/configure \
5745 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5746 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5747 --target=${target_alias} \
22121df0 5748 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5749 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5750@endif binutils-bootstrap
d545f33b 5751
f948b2de
NC
5752.PHONY: configure-stageautoprofile-binutils maybe-configure-stageautoprofile-binutils
5753maybe-configure-stageautoprofile-binutils:
5754@if binutils-bootstrap
5755maybe-configure-stageautoprofile-binutils: configure-stageautoprofile-binutils
5756configure-stageautoprofile-binutils:
5757 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
5758 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
5759 @r=`${PWD_COMMAND}`; export r; \
5760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5761 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
5762 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
5763 $(HOST_EXPORTS) \
5764 $(POSTSTAGE1_HOST_EXPORTS) \
5765 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
5766 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
5767 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
5768 echo Configuring stage autoprofile in $(HOST_SUBDIR)/binutils; \
5769 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
5770 cd $(HOST_SUBDIR)/binutils || exit 1; \
5771 case $(srcdir) in \
5772 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5773 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5774 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5775 esac; \
5776 module_srcdir=binutils; \
5777 $(SHELL) $$s/$$module_srcdir/configure \
5778 --srcdir=$${topdir}/$$module_srcdir \
5779 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5780 --target=${target_alias} \
5781 --with-build-libsubdir=$(HOST_SUBDIR) \
5782 $(STAGEautoprofile_CONFIGURE_FLAGS)
5783@endif binutils-bootstrap
5784
5785.PHONY: configure-stageautofeedback-binutils maybe-configure-stageautofeedback-binutils
5786maybe-configure-stageautofeedback-binutils:
5787@if binutils-bootstrap
5788maybe-configure-stageautofeedback-binutils: configure-stageautofeedback-binutils
5789configure-stageautofeedback-binutils:
5790 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
5791 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
5792 @r=`${PWD_COMMAND}`; export r; \
5793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5794 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
5795 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
5796 $(HOST_EXPORTS) \
5797 $(POSTSTAGE1_HOST_EXPORTS) \
5798 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
5799 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
5800 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
5801 echo Configuring stage autofeedback in $(HOST_SUBDIR)/binutils; \
5802 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
5803 cd $(HOST_SUBDIR)/binutils || exit 1; \
5804 case $(srcdir) in \
5805 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5806 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5807 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5808 esac; \
5809 module_srcdir=binutils; \
5810 $(SHELL) $$s/$$module_srcdir/configure \
5811 --srcdir=$${topdir}/$$module_srcdir \
5812 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
5813 --target=${target_alias} \
5814 --with-build-libsubdir=$(HOST_SUBDIR) \
5815 $(STAGEautofeedback_CONFIGURE_FLAGS)
5816@endif binutils-bootstrap
5817
d545f33b
PB
5818
5819
5820
5821
a90ef4bf
JM
5822.PHONY: all-binutils maybe-all-binutils
5823maybe-all-binutils:
4f0ef2d8 5824@if gcc-bootstrap
a90ef4bf 5825all-binutils: stage_current
4f0ef2d8 5826@endif gcc-bootstrap
a90ef4bf
JM
5827@if binutils
5828TARGET-binutils=all
5829maybe-all-binutils: all-binutils
5830all-binutils: configure-binutils
c52c6897 5831 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5833 $(HOST_EXPORTS) \
a90ef4bf 5834 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5835 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5836 $(TARGET-binutils))
5837@endif binutils
2a4cbe27 5838
a7254363 5839
d545f33b 5840
a90ef4bf
JM
5841.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5842.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5843maybe-all-stage1-binutils:
5844maybe-clean-stage1-binutils:
5845@if binutils-bootstrap
5846maybe-all-stage1-binutils: all-stage1-binutils
5847all-stage1: all-stage1-binutils
5848TARGET-stage1-binutils = $(TARGET-binutils)
5849all-stage1-binutils: configure-stage1-binutils
c52c6897 5850 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5851 @r=`${PWD_COMMAND}`; export r; \
5852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5853 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5854 $(HOST_EXPORTS) \
a90ef4bf 5855 cd $(HOST_SUBDIR)/binutils && \
05a13254 5856 \
7f6ef0c0 5857 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5858 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 5859 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
1f53ca9a 5860 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5861 LIBCFLAGS="$(LIBCFLAGS)" \
5862 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5863 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5864 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5865 $(EXTRA_HOST_FLAGS) \
5866 $(STAGE1_FLAGS_TO_PASS) \
05a13254 5867 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5868 $(TARGET-stage1-binutils)
d545f33b 5869
a90ef4bf
JM
5870maybe-clean-stage1-binutils: clean-stage1-binutils
5871clean-stage1: clean-stage1-binutils
5872clean-stage1-binutils:
9dbaa842 5873 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5874 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5875 else \
a90ef4bf 5876 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5877 $(MAKE) stage1-start; \
5878 fi; \
a90ef4bf 5879 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5880 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5881 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5882@endif binutils-bootstrap
d545f33b
PB
5883
5884
a90ef4bf
JM
5885.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5886.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5887maybe-all-stage2-binutils:
5888maybe-clean-stage2-binutils:
5889@if binutils-bootstrap
5890maybe-all-stage2-binutils: all-stage2-binutils
5891all-stage2: all-stage2-binutils
5892TARGET-stage2-binutils = $(TARGET-binutils)
5893all-stage2-binutils: configure-stage2-binutils
c52c6897 5894 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5895 @r=`${PWD_COMMAND}`; export r; \
5896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5897 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5898 $(HOST_EXPORTS) \
1f53ca9a 5899 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5900 cd $(HOST_SUBDIR)/binutils && \
05a13254 5901 \
7f6ef0c0 5902 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5903 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 5904 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
1f53ca9a 5905 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5906 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5907 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5908 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5909 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5910 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5911 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5912 $(TARGET-stage2-binutils)
d545f33b 5913
a90ef4bf
JM
5914maybe-clean-stage2-binutils: clean-stage2-binutils
5915clean-stage2: clean-stage2-binutils
5916clean-stage2-binutils:
9dbaa842 5917 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5918 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5919 else \
a90ef4bf 5920 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5921 $(MAKE) stage2-start; \
5922 fi; \
a90ef4bf 5923 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5924 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5925@endif binutils-bootstrap
d545f33b
PB
5926
5927
a90ef4bf
JM
5928.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5929.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5930maybe-all-stage3-binutils:
5931maybe-clean-stage3-binutils:
5932@if binutils-bootstrap
5933maybe-all-stage3-binutils: all-stage3-binutils
5934all-stage3: all-stage3-binutils
5935TARGET-stage3-binutils = $(TARGET-binutils)
5936all-stage3-binutils: configure-stage3-binutils
c52c6897 5937 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5938 @r=`${PWD_COMMAND}`; export r; \
5939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5940 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5941 $(HOST_EXPORTS) \
1f53ca9a 5942 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5943 cd $(HOST_SUBDIR)/binutils && \
05a13254 5944 \
7f6ef0c0 5945 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5946 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 5947 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
1f53ca9a 5948 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5949 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5950 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5951 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5952 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5953 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5954 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5955 $(TARGET-stage3-binutils)
d545f33b 5956
a90ef4bf
JM
5957maybe-clean-stage3-binutils: clean-stage3-binutils
5958clean-stage3: clean-stage3-binutils
5959clean-stage3-binutils:
9dbaa842 5960 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5961 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5962 else \
a90ef4bf 5963 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5964 $(MAKE) stage3-start; \
5965 fi; \
a90ef4bf 5966 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5967 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5968@endif binutils-bootstrap
d545f33b
PB
5969
5970
a90ef4bf
JM
5971.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5972.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5973maybe-all-stage4-binutils:
5974maybe-clean-stage4-binutils:
5975@if binutils-bootstrap
5976maybe-all-stage4-binutils: all-stage4-binutils
5977all-stage4: all-stage4-binutils
5978TARGET-stage4-binutils = $(TARGET-binutils)
5979all-stage4-binutils: configure-stage4-binutils
c52c6897 5980 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5981 @r=`${PWD_COMMAND}`; export r; \
5982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5983 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5984 $(HOST_EXPORTS) \
1f53ca9a 5985 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5986 cd $(HOST_SUBDIR)/binutils && \
05a13254 5987 \
7f6ef0c0 5988 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5989 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 5990 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
1f53ca9a 5991 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5992 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5993 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5994 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5995 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5996 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5997 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5998 $(TARGET-stage4-binutils)
d545f33b 5999
a90ef4bf
JM
6000maybe-clean-stage4-binutils: clean-stage4-binutils
6001clean-stage4: clean-stage4-binutils
6002clean-stage4-binutils:
9dbaa842 6003 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 6004 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 6005 else \
a90ef4bf 6006 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
6007 $(MAKE) stage4-start; \
6008 fi; \
a90ef4bf 6009 cd $(HOST_SUBDIR)/binutils && \
b3676d82 6010 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 6011@endif binutils-bootstrap
d545f33b
PB
6012
6013
a90ef4bf
JM
6014.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
6015.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
6016maybe-all-stageprofile-binutils:
6017maybe-clean-stageprofile-binutils:
6018@if binutils-bootstrap
6019maybe-all-stageprofile-binutils: all-stageprofile-binutils
6020all-stageprofile: all-stageprofile-binutils
6021TARGET-stageprofile-binutils = $(TARGET-binutils)
6022all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 6023 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
6024 @r=`${PWD_COMMAND}`; export r; \
6025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6026 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 6027 $(HOST_EXPORTS) \
1f53ca9a 6028 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 6029 cd $(HOST_SUBDIR)/binutils && \
05a13254 6030 \
7f6ef0c0 6031 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 6032 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 6033 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
1f53ca9a 6034 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
6035 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
6036 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6037 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6038 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6039 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 6040 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 6041 $(TARGET-stageprofile-binutils)
d545f33b 6042
a90ef4bf
JM
6043maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
6044clean-stageprofile: clean-stageprofile-binutils
6045clean-stageprofile-binutils:
9dbaa842 6046 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 6047 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 6048 else \
a90ef4bf 6049 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
6050 $(MAKE) stageprofile-start; \
6051 fi; \
a90ef4bf 6052 cd $(HOST_SUBDIR)/binutils && \
b3676d82 6053 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 6054@endif binutils-bootstrap
d545f33b
PB
6055
6056
f948b2de
NC
6057.PHONY: all-stagetrain-binutils maybe-all-stagetrain-binutils
6058.PHONY: clean-stagetrain-binutils maybe-clean-stagetrain-binutils
6059maybe-all-stagetrain-binutils:
6060maybe-clean-stagetrain-binutils:
6061@if binutils-bootstrap
6062maybe-all-stagetrain-binutils: all-stagetrain-binutils
6063all-stagetrain: all-stagetrain-binutils
6064TARGET-stagetrain-binutils = $(TARGET-binutils)
6065all-stagetrain-binutils: configure-stagetrain-binutils
6066 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
6067 @r=`${PWD_COMMAND}`; export r; \
6068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6069 TFLAGS="$(STAGEtrain_TFLAGS)"; \
6070 $(HOST_EXPORTS) \
6071 $(POSTSTAGE1_HOST_EXPORTS) \
6072 cd $(HOST_SUBDIR)/binutils && \
6073 \
6074 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6075 CFLAGS="$(STAGEtrain_CFLAGS)" \
6076 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
6077 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
6078 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
6079 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6080 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6081 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6082 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6083 TFLAGS="$(STAGEtrain_TFLAGS)" \
6084 $(TARGET-stagetrain-binutils)
6085
6086maybe-clean-stagetrain-binutils: clean-stagetrain-binutils
6087clean-stagetrain: clean-stagetrain-binutils
6088clean-stagetrain-binutils:
6089 @if [ $(current_stage) = stagetrain ]; then \
6090 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
6091 else \
6092 [ -f $(HOST_SUBDIR)/stagetrain-binutils/Makefile ] || exit 0; \
6093 $(MAKE) stagetrain-start; \
6094 fi; \
6095 cd $(HOST_SUBDIR)/binutils && \
6096 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
6097@endif binutils-bootstrap
6098
6099
a90ef4bf
JM
6100.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
6101.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
6102maybe-all-stagefeedback-binutils:
6103maybe-clean-stagefeedback-binutils:
6104@if binutils-bootstrap
6105maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
6106all-stagefeedback: all-stagefeedback-binutils
6107TARGET-stagefeedback-binutils = $(TARGET-binutils)
6108all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 6109 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
6110 @r=`${PWD_COMMAND}`; export r; \
6111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6112 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 6113 $(HOST_EXPORTS) \
1f53ca9a 6114 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 6115 cd $(HOST_SUBDIR)/binutils && \
05a13254 6116 \
7f6ef0c0 6117 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 6118 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 6119 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
1f53ca9a 6120 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
6121 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
6122 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6123 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6124 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6125 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 6126 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 6127 $(TARGET-stagefeedback-binutils)
d545f33b 6128
a90ef4bf
JM
6129maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
6130clean-stagefeedback: clean-stagefeedback-binutils
6131clean-stagefeedback-binutils:
9dbaa842 6132 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 6133 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 6134 else \
a90ef4bf 6135 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
6136 $(MAKE) stagefeedback-start; \
6137 fi; \
a90ef4bf 6138 cd $(HOST_SUBDIR)/binutils && \
b3676d82 6139 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 6140@endif binutils-bootstrap
d545f33b
PB
6141
6142
f948b2de
NC
6143.PHONY: all-stageautoprofile-binutils maybe-all-stageautoprofile-binutils
6144.PHONY: clean-stageautoprofile-binutils maybe-clean-stageautoprofile-binutils
6145maybe-all-stageautoprofile-binutils:
6146maybe-clean-stageautoprofile-binutils:
6147@if binutils-bootstrap
6148maybe-all-stageautoprofile-binutils: all-stageautoprofile-binutils
6149all-stageautoprofile: all-stageautoprofile-binutils
6150TARGET-stageautoprofile-binutils = $(TARGET-binutils)
6151all-stageautoprofile-binutils: configure-stageautoprofile-binutils
6152 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
6153 @r=`${PWD_COMMAND}`; export r; \
6154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6155 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
6156 $(HOST_EXPORTS) \
6157 $(POSTSTAGE1_HOST_EXPORTS) \
6158 cd $(HOST_SUBDIR)/binutils && \
6159 $$s/gcc/config/i386/$(AUTO_PROFILE) \
6160 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6161 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
6162 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
6163 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
6164 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
6165 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6166 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6167 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6168 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6169 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
6170 $(TARGET-stageautoprofile-binutils)
6171
6172maybe-clean-stageautoprofile-binutils: clean-stageautoprofile-binutils
6173clean-stageautoprofile: clean-stageautoprofile-binutils
6174clean-stageautoprofile-binutils:
6175 @if [ $(current_stage) = stageautoprofile ]; then \
6176 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
6177 else \
6178 [ -f $(HOST_SUBDIR)/stageautoprofile-binutils/Makefile ] || exit 0; \
6179 $(MAKE) stageautoprofile-start; \
6180 fi; \
6181 cd $(HOST_SUBDIR)/binutils && \
6182 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
6183@endif binutils-bootstrap
6184
6185
6186.PHONY: all-stageautofeedback-binutils maybe-all-stageautofeedback-binutils
6187.PHONY: clean-stageautofeedback-binutils maybe-clean-stageautofeedback-binutils
6188maybe-all-stageautofeedback-binutils:
6189maybe-clean-stageautofeedback-binutils:
6190@if binutils-bootstrap
6191maybe-all-stageautofeedback-binutils: all-stageautofeedback-binutils
6192all-stageautofeedback: all-stageautofeedback-binutils
6193TARGET-stageautofeedback-binutils = $(TARGET-binutils)
6194all-stageautofeedback-binutils: configure-stageautofeedback-binutils
6195 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
6196 @r=`${PWD_COMMAND}`; export r; \
6197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6198 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
6199 $(HOST_EXPORTS) \
6200 $(POSTSTAGE1_HOST_EXPORTS) \
6201 cd $(HOST_SUBDIR)/binutils && \
6202 \
6203 $(MAKE) $(BASE_FLAGS_TO_PASS) \
6204 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
6205 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
6206 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
6207 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
6208 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
6209 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
6210 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
6211 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6212 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
6213 $(TARGET-stageautofeedback-binutils)
6214
6215maybe-clean-stageautofeedback-binutils: clean-stageautofeedback-binutils
6216clean-stageautofeedback: clean-stageautofeedback-binutils
6217clean-stageautofeedback-binutils:
6218 @if [ $(current_stage) = stageautofeedback ]; then \
6219 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
6220 else \
6221 [ -f $(HOST_SUBDIR)/stageautofeedback-binutils/Makefile ] || exit 0; \
6222 $(MAKE) stageautofeedback-start; \
6223 fi; \
6224 cd $(HOST_SUBDIR)/binutils && \
6225 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
6226@endif binutils-bootstrap
6227
6228
d545f33b
PB
6229
6230
6231
a90ef4bf
JM
6232.PHONY: check-binutils maybe-check-binutils
6233maybe-check-binutils:
6234@if binutils
6235maybe-check-binutils: check-binutils
2a4cbe27 6236
a90ef4bf 6237check-binutils:
0aed8855 6238 @: $(MAKE); $(unstage)
4fa63067 6239 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6241 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 6242 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 6243 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 6244
a90ef4bf 6245@endif binutils
2a4cbe27 6246
a90ef4bf
JM
6247.PHONY: install-binutils maybe-install-binutils
6248maybe-install-binutils:
6249@if binutils
6250maybe-install-binutils: install-binutils
2a4cbe27 6251
a90ef4bf 6252install-binutils: installdirs
0aed8855 6253 @: $(MAKE); $(unstage)
4fa63067 6254 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6256 $(HOST_EXPORTS) \
a90ef4bf 6257 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 6258 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6259
a90ef4bf 6260@endif binutils
2a4cbe27 6261
a90ef4bf
JM
6262.PHONY: install-strip-binutils maybe-install-strip-binutils
6263maybe-install-strip-binutils:
6264@if binutils
6265maybe-install-strip-binutils: install-strip-binutils
9b980aa1 6266
a90ef4bf 6267install-strip-binutils: installdirs
9b980aa1
RW
6268 @: $(MAKE); $(unstage)
6269 @r=`${PWD_COMMAND}`; export r; \
6270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6271 $(HOST_EXPORTS) \
a90ef4bf 6272 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
6273 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6274
a90ef4bf 6275@endif binutils
9b980aa1 6276
56a8fe78 6277# Other targets (info, dvi, pdf, etc.)
2a4cbe27 6278
a90ef4bf
JM
6279.PHONY: maybe-info-binutils info-binutils
6280maybe-info-binutils:
6281@if binutils
6282maybe-info-binutils: info-binutils
4fa63067 6283
a90ef4bf
JM
6284info-binutils: \
6285 configure-binutils
6286 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
6287 r=`${PWD_COMMAND}`; export r; \
6288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6289 $(HOST_EXPORTS) \
b813574b 6290 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6292 done; \
22121df0 6293 echo "Doing info in binutils"; \
a90ef4bf 6294 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
6295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6297 "RANLIB=$${RANLIB}" \
0c24b341 6298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6299 info) \
2a4cbe27
NN
6300 || exit 1
6301
a90ef4bf 6302@endif binutils
2a4cbe27 6303
a90ef4bf
JM
6304.PHONY: maybe-dvi-binutils dvi-binutils
6305maybe-dvi-binutils:
6306@if binutils
6307maybe-dvi-binutils: dvi-binutils
2a4cbe27 6308
a90ef4bf
JM
6309dvi-binutils: \
6310 configure-binutils
6311 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
6312 r=`${PWD_COMMAND}`; export r; \
6313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6314 $(HOST_EXPORTS) \
b813574b 6315 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6317 done; \
22121df0 6318 echo "Doing dvi in binutils"; \
a90ef4bf 6319 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
6320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6322 "RANLIB=$${RANLIB}" \
0c24b341 6323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6324 dvi) \
2a4cbe27
NN
6325 || exit 1
6326
a90ef4bf 6327@endif binutils
2a4cbe27 6328
a90ef4bf
JM
6329.PHONY: maybe-pdf-binutils pdf-binutils
6330maybe-pdf-binutils:
6331@if binutils
6332maybe-pdf-binutils: pdf-binutils
56a8fe78 6333
a90ef4bf
JM
6334pdf-binutils: \
6335 configure-binutils
6336 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
6337 r=`${PWD_COMMAND}`; export r; \
6338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6339 $(HOST_EXPORTS) \
6340 for flag in $(EXTRA_HOST_FLAGS) ; do \
6341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6342 done; \
22121df0 6343 echo "Doing pdf in binutils"; \
a90ef4bf 6344 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
6345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6347 "RANLIB=$${RANLIB}" \
0c24b341 6348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6349 pdf) \
6350 || exit 1
6351
a90ef4bf 6352@endif binutils
56a8fe78 6353
a90ef4bf
JM
6354.PHONY: maybe-html-binutils html-binutils
6355maybe-html-binutils:
6356@if binutils
6357maybe-html-binutils: html-binutils
6d389afc 6358
a90ef4bf
JM
6359html-binutils: \
6360 configure-binutils
6361 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
6362 r=`${PWD_COMMAND}`; export r; \
6363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6364 $(HOST_EXPORTS) \
6365 for flag in $(EXTRA_HOST_FLAGS) ; do \
6366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6367 done; \
22121df0 6368 echo "Doing html in binutils"; \
a90ef4bf 6369 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
6370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6372 "RANLIB=$${RANLIB}" \
0c24b341 6373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6374 html) \
6375 || exit 1
6376
a90ef4bf 6377@endif binutils
6d389afc 6378
a90ef4bf
JM
6379.PHONY: maybe-TAGS-binutils TAGS-binutils
6380maybe-TAGS-binutils:
6381@if binutils
6382maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 6383
a90ef4bf
JM
6384TAGS-binutils: \
6385 configure-binutils
6386 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
6387 r=`${PWD_COMMAND}`; export r; \
6388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6389 $(HOST_EXPORTS) \
b813574b 6390 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6392 done; \
22121df0 6393 echo "Doing TAGS in binutils"; \
a90ef4bf 6394 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
6395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6397 "RANLIB=$${RANLIB}" \
0c24b341 6398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6399 TAGS) \
2a4cbe27
NN
6400 || exit 1
6401
a90ef4bf 6402@endif binutils
2a4cbe27 6403
a90ef4bf
JM
6404.PHONY: maybe-install-info-binutils install-info-binutils
6405maybe-install-info-binutils:
6406@if binutils
6407maybe-install-info-binutils: install-info-binutils
2a4cbe27 6408
a90ef4bf
JM
6409install-info-binutils: \
6410 configure-binutils \
6411 info-binutils
6412 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
6413 r=`${PWD_COMMAND}`; export r; \
6414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6415 $(HOST_EXPORTS) \
b813574b 6416 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6418 done; \
22121df0 6419 echo "Doing install-info in binutils"; \
a90ef4bf 6420 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
6421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6423 "RANLIB=$${RANLIB}" \
0c24b341 6424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6425 install-info) \
2a4cbe27
NN
6426 || exit 1
6427
a90ef4bf 6428@endif binutils
2a4cbe27 6429
a90ef4bf
JM
6430.PHONY: maybe-install-pdf-binutils install-pdf-binutils
6431maybe-install-pdf-binutils:
6432@if binutils
6433maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 6434
a90ef4bf
JM
6435install-pdf-binutils: \
6436 configure-binutils \
6437 pdf-binutils
6438 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
6439 r=`${PWD_COMMAND}`; export r; \
6440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6441 $(HOST_EXPORTS) \
6442 for flag in $(EXTRA_HOST_FLAGS) ; do \
6443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6444 done; \
22121df0 6445 echo "Doing install-pdf in binutils"; \
a90ef4bf 6446 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
6447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6449 "RANLIB=$${RANLIB}" \
0c24b341 6450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6451 install-pdf) \
6452 || exit 1
6453
a90ef4bf 6454@endif binutils
a3ca38d2 6455
a90ef4bf
JM
6456.PHONY: maybe-install-html-binutils install-html-binutils
6457maybe-install-html-binutils:
6458@if binutils
6459maybe-install-html-binutils: install-html-binutils
108a6f8e 6460
a90ef4bf
JM
6461install-html-binutils: \
6462 configure-binutils \
6463 html-binutils
6464 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
6465 r=`${PWD_COMMAND}`; export r; \
6466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6467 $(HOST_EXPORTS) \
6468 for flag in $(EXTRA_HOST_FLAGS) ; do \
6469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6470 done; \
22121df0 6471 echo "Doing install-html in binutils"; \
a90ef4bf 6472 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
6473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6475 "RANLIB=$${RANLIB}" \
0c24b341 6476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
6477 install-html) \
6478 || exit 1
6479
a90ef4bf 6480@endif binutils
108a6f8e 6481
a90ef4bf
JM
6482.PHONY: maybe-installcheck-binutils installcheck-binutils
6483maybe-installcheck-binutils:
6484@if binutils
6485maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 6486
a90ef4bf
JM
6487installcheck-binutils: \
6488 configure-binutils
6489 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
6490 r=`${PWD_COMMAND}`; export r; \
6491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6492 $(HOST_EXPORTS) \
b813574b 6493 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6495 done; \
22121df0 6496 echo "Doing installcheck in binutils"; \
a90ef4bf 6497 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
6498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6500 "RANLIB=$${RANLIB}" \
0c24b341 6501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6502 installcheck) \
2a4cbe27
NN
6503 || exit 1
6504
a90ef4bf 6505@endif binutils
2a4cbe27 6506
a90ef4bf
JM
6507.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
6508maybe-mostlyclean-binutils:
6509@if binutils
6510maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 6511
a90ef4bf
JM
6512mostlyclean-binutils:
6513 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
6514 r=`${PWD_COMMAND}`; export r; \
6515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6516 $(HOST_EXPORTS) \
b813574b 6517 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6519 done; \
22121df0 6520 echo "Doing mostlyclean in binutils"; \
a90ef4bf 6521 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
6522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6524 "RANLIB=$${RANLIB}" \
0c24b341 6525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6526 mostlyclean) \
2a4cbe27
NN
6527 || exit 1
6528
a90ef4bf 6529@endif binutils
2a4cbe27 6530
a90ef4bf
JM
6531.PHONY: maybe-clean-binutils clean-binutils
6532maybe-clean-binutils:
6533@if binutils
6534maybe-clean-binutils: clean-binutils
2a4cbe27 6535
a90ef4bf
JM
6536clean-binutils:
6537 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
6538 r=`${PWD_COMMAND}`; export r; \
6539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6540 $(HOST_EXPORTS) \
b813574b 6541 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6543 done; \
22121df0 6544 echo "Doing clean in binutils"; \
a90ef4bf 6545 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
6546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6548 "RANLIB=$${RANLIB}" \
0c24b341 6549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6550 clean) \
2a4cbe27
NN
6551 || exit 1
6552
a90ef4bf 6553@endif binutils
2a4cbe27 6554
a90ef4bf
JM
6555.PHONY: maybe-distclean-binutils distclean-binutils
6556maybe-distclean-binutils:
6557@if binutils
6558maybe-distclean-binutils: distclean-binutils
2a4cbe27 6559
a90ef4bf
JM
6560distclean-binutils:
6561 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
6562 r=`${PWD_COMMAND}`; export r; \
6563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6564 $(HOST_EXPORTS) \
b813574b 6565 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6567 done; \
22121df0 6568 echo "Doing distclean in binutils"; \
a90ef4bf 6569 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
6570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6572 "RANLIB=$${RANLIB}" \
0c24b341 6573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6574 distclean) \
2a4cbe27
NN
6575 || exit 1
6576
a90ef4bf 6577@endif binutils
2a4cbe27 6578
a90ef4bf
JM
6579.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
6580maybe-maintainer-clean-binutils:
6581@if binutils
6582maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 6583
a90ef4bf
JM
6584maintainer-clean-binutils:
6585 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
6586 r=`${PWD_COMMAND}`; export r; \
6587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6588 $(HOST_EXPORTS) \
b813574b 6589 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
6590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6591 done; \
22121df0 6592 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 6593 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
6594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6596 "RANLIB=$${RANLIB}" \
0c24b341 6597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6598 maintainer-clean) \
a2592b1b
DD
6599 || exit 1
6600
a90ef4bf 6601@endif binutils
a2592b1b 6602
2a4cbe27 6603
a7254363 6604
a90ef4bf
JM
6605.PHONY: configure-bison maybe-configure-bison
6606maybe-configure-bison:
4f0ef2d8 6607@if gcc-bootstrap
a90ef4bf 6608configure-bison: stage_current
4f0ef2d8 6609@endif gcc-bootstrap
a90ef4bf
JM
6610@if bison
6611maybe-configure-bison: configure-bison
6612configure-bison:
6613 @: $(MAKE); $(unstage)
c52c6897
PB
6614 @r=`${PWD_COMMAND}`; export r; \
6615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 6616 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 6617 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 6618 $(HOST_EXPORTS) \
a90ef4bf
JM
6619 echo Configuring in $(HOST_SUBDIR)/bison; \
6620 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 6621 case $(srcdir) in \
b00612cc 6622 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6623 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 6624 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 6625 esac; \
1b6c0831
L
6626 module_srcdir=bison; \
6627 $(SHELL) \
6628 $$s/$$module_srcdir/configure \
6629 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6630 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6631 --target=${target_alias} \
4fa63067 6632 || exit 1
a90ef4bf 6633@endif bison
2a4cbe27 6634
a7254363
PB
6635
6636
d545f33b 6637
8520c408 6638
a90ef4bf
JM
6639.PHONY: all-bison maybe-all-bison
6640maybe-all-bison:
6641@if gcc-bootstrap
6642all-bison: stage_current
6643@endif gcc-bootstrap
6644@if bison
6645TARGET-bison=all
6646maybe-all-bison: all-bison
6647all-bison: configure-bison
6648 @: $(MAKE); $(unstage)
c52c6897
PB
6649 @r=`${PWD_COMMAND}`; export r; \
6650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6651 $(HOST_EXPORTS) \
6652 (cd $(HOST_SUBDIR)/bison && \
b3676d82 6653 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6654 $(TARGET-bison))
6655@endif bison
8520c408 6656
d545f33b 6657
d545f33b 6658
d545f33b 6659
a90ef4bf
JM
6660.PHONY: check-bison maybe-check-bison
6661maybe-check-bison:
6662@if bison
6663maybe-check-bison: check-bison
d545f33b 6664
a90ef4bf
JM
6665# This module is only tested in a native toolchain.
6666check-bison:
6667 @: $(MAKE); $(unstage)
22121df0 6668 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
6669 r=`${PWD_COMMAND}`; export r; \
6670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6671 $(HOST_EXPORTS) \
a90ef4bf 6672 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 6673 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 6674 fi
d545f33b 6675
a90ef4bf 6676@endif bison
d545f33b 6677
a90ef4bf
JM
6678.PHONY: install-bison maybe-install-bison
6679maybe-install-bison:
6680@if bison
6681maybe-install-bison: install-bison
d545f33b 6682
a90ef4bf
JM
6683install-bison: installdirs
6684 @: $(MAKE); $(unstage)
c52c6897 6685 @r=`${PWD_COMMAND}`; export r; \
4fa63067 6686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6687 $(HOST_EXPORTS) \
6688 (cd $(HOST_SUBDIR)/bison && \
6689 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6690
a90ef4bf 6691@endif bison
a7254363 6692
a90ef4bf
JM
6693.PHONY: install-strip-bison maybe-install-strip-bison
6694maybe-install-strip-bison:
6695@if bison
6696maybe-install-strip-bison: install-strip-bison
d545f33b 6697
a90ef4bf
JM
6698install-strip-bison: installdirs
6699 @: $(MAKE); $(unstage)
d545f33b
PB
6700 @r=`${PWD_COMMAND}`; export r; \
6701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6702 $(HOST_EXPORTS) \
6703 (cd $(HOST_SUBDIR)/bison && \
6704 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 6705
a90ef4bf 6706@endif bison
d545f33b 6707
a90ef4bf 6708# Other targets (info, dvi, pdf, etc.)
d545f33b 6709
a90ef4bf
JM
6710.PHONY: maybe-info-bison info-bison
6711maybe-info-bison:
6712@if bison
6713maybe-info-bison: info-bison
6714
6715info-bison: \
6716 configure-bison
6717 @: $(MAKE); $(unstage)
6718 @[ -f ./bison/Makefile ] || exit 0; \
6719 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6721 $(HOST_EXPORTS) \
a90ef4bf
JM
6722 for flag in $(EXTRA_HOST_FLAGS) ; do \
6723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6724 done; \
22121df0 6725 echo "Doing info in bison"; \
a90ef4bf
JM
6726 (cd $(HOST_SUBDIR)/bison && \
6727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6729 "RANLIB=$${RANLIB}" \
6730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6731 info) \
6732 || exit 1
d545f33b 6733
a90ef4bf 6734@endif bison
d545f33b 6735
a90ef4bf
JM
6736.PHONY: maybe-dvi-bison dvi-bison
6737maybe-dvi-bison:
6738@if bison
6739maybe-dvi-bison: dvi-bison
d545f33b 6740
a90ef4bf
JM
6741dvi-bison: \
6742 configure-bison
6743 @: $(MAKE); $(unstage)
6744 @[ -f ./bison/Makefile ] || exit 0; \
6745 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6747 $(HOST_EXPORTS) \
a90ef4bf
JM
6748 for flag in $(EXTRA_HOST_FLAGS) ; do \
6749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6750 done; \
22121df0 6751 echo "Doing dvi in bison"; \
a90ef4bf
JM
6752 (cd $(HOST_SUBDIR)/bison && \
6753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6755 "RANLIB=$${RANLIB}" \
6756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6757 dvi) \
6758 || exit 1
d545f33b 6759
a90ef4bf 6760@endif bison
d545f33b 6761
a90ef4bf
JM
6762.PHONY: maybe-pdf-bison pdf-bison
6763maybe-pdf-bison:
6764@if bison
6765maybe-pdf-bison: pdf-bison
d545f33b 6766
a90ef4bf
JM
6767pdf-bison: \
6768 configure-bison
6769 @: $(MAKE); $(unstage)
6770 @[ -f ./bison/Makefile ] || exit 0; \
6771 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6773 $(HOST_EXPORTS) \
a90ef4bf
JM
6774 for flag in $(EXTRA_HOST_FLAGS) ; do \
6775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6776 done; \
22121df0 6777 echo "Doing pdf in bison"; \
a90ef4bf
JM
6778 (cd $(HOST_SUBDIR)/bison && \
6779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6781 "RANLIB=$${RANLIB}" \
6782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6783 pdf) \
6784 || exit 1
d545f33b 6785
a90ef4bf 6786@endif bison
d545f33b 6787
a90ef4bf
JM
6788.PHONY: maybe-html-bison html-bison
6789maybe-html-bison:
6790@if bison
6791maybe-html-bison: html-bison
d545f33b 6792
a90ef4bf
JM
6793html-bison: \
6794 configure-bison
6795 @: $(MAKE); $(unstage)
6796 @[ -f ./bison/Makefile ] || exit 0; \
6797 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6799 $(HOST_EXPORTS) \
a90ef4bf
JM
6800 for flag in $(EXTRA_HOST_FLAGS) ; do \
6801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6802 done; \
22121df0 6803 echo "Doing html in bison"; \
a90ef4bf
JM
6804 (cd $(HOST_SUBDIR)/bison && \
6805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6807 "RANLIB=$${RANLIB}" \
6808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6809 html) \
6810 || exit 1
d545f33b 6811
a90ef4bf 6812@endif bison
2a4cbe27 6813
a90ef4bf
JM
6814.PHONY: maybe-TAGS-bison TAGS-bison
6815maybe-TAGS-bison:
6816@if bison
6817maybe-TAGS-bison: TAGS-bison
2a4cbe27 6818
a90ef4bf
JM
6819TAGS-bison: \
6820 configure-bison
0aed8855 6821 @: $(MAKE); $(unstage)
a90ef4bf
JM
6822 @[ -f ./bison/Makefile ] || exit 0; \
6823 r=`${PWD_COMMAND}`; export r; \
4fa63067 6824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6825 $(HOST_EXPORTS) \
a90ef4bf
JM
6826 for flag in $(EXTRA_HOST_FLAGS) ; do \
6827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6828 done; \
22121df0 6829 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6830 (cd $(HOST_SUBDIR)/bison && \
6831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6833 "RANLIB=$${RANLIB}" \
6834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6835 TAGS) \
6836 || exit 1
4fa63067 6837
a90ef4bf 6838@endif bison
4fa63067 6839
a90ef4bf
JM
6840.PHONY: maybe-install-info-bison install-info-bison
6841maybe-install-info-bison:
6842@if bison
6843maybe-install-info-bison: install-info-bison
9b980aa1 6844
a90ef4bf
JM
6845install-info-bison: \
6846 configure-bison \
6847 info-bison
9b980aa1 6848 @: $(MAKE); $(unstage)
a90ef4bf 6849 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6850 r=`${PWD_COMMAND}`; export r; \
6851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6852 $(HOST_EXPORTS) \
b813574b 6853 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6855 done; \
22121df0 6856 echo "Doing install-info in bison"; \
a90ef4bf 6857 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6860 "RANLIB=$${RANLIB}" \
0c24b341 6861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6862 install-info) \
2a4cbe27
NN
6863 || exit 1
6864
a90ef4bf 6865@endif bison
2a4cbe27 6866
a90ef4bf
JM
6867.PHONY: maybe-install-pdf-bison install-pdf-bison
6868maybe-install-pdf-bison:
6869@if bison
6870maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6871
a90ef4bf
JM
6872install-pdf-bison: \
6873 configure-bison \
6874 pdf-bison
6875 @: $(MAKE); $(unstage)
6876 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6877 r=`${PWD_COMMAND}`; export r; \
6878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6879 $(HOST_EXPORTS) \
b813574b 6880 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6882 done; \
22121df0 6883 echo "Doing install-pdf in bison"; \
a90ef4bf 6884 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6887 "RANLIB=$${RANLIB}" \
0c24b341 6888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6889 install-pdf) \
2a4cbe27
NN
6890 || exit 1
6891
a90ef4bf 6892@endif bison
2a4cbe27 6893
a90ef4bf
JM
6894.PHONY: maybe-install-html-bison install-html-bison
6895maybe-install-html-bison:
6896@if bison
6897maybe-install-html-bison: install-html-bison
56a8fe78 6898
a90ef4bf
JM
6899install-html-bison: \
6900 configure-bison \
6901 html-bison
6902 @: $(MAKE); $(unstage)
6903 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6904 r=`${PWD_COMMAND}`; export r; \
6905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6906 $(HOST_EXPORTS) \
6907 for flag in $(EXTRA_HOST_FLAGS) ; do \
6908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6909 done; \
22121df0 6910 echo "Doing install-html in bison"; \
a90ef4bf 6911 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6914 "RANLIB=$${RANLIB}" \
0c24b341 6915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6916 install-html) \
56a8fe78
DD
6917 || exit 1
6918
a90ef4bf 6919@endif bison
56a8fe78 6920
a90ef4bf
JM
6921.PHONY: maybe-installcheck-bison installcheck-bison
6922maybe-installcheck-bison:
6923@if bison
6924maybe-installcheck-bison: installcheck-bison
6d389afc 6925
a90ef4bf
JM
6926installcheck-bison: \
6927 configure-bison
6928 @: $(MAKE); $(unstage)
6929 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6930 r=`${PWD_COMMAND}`; export r; \
6931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6932 $(HOST_EXPORTS) \
6933 for flag in $(EXTRA_HOST_FLAGS) ; do \
6934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6935 done; \
22121df0 6936 echo "Doing installcheck in bison"; \
a90ef4bf 6937 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6940 "RANLIB=$${RANLIB}" \
0c24b341 6941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6942 installcheck) \
6d389afc
MS
6943 || exit 1
6944
a90ef4bf 6945@endif bison
6d389afc 6946
a90ef4bf
JM
6947.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6948maybe-mostlyclean-bison:
6949@if bison
6950maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6951
a90ef4bf
JM
6952mostlyclean-bison:
6953 @: $(MAKE); $(unstage)
6954 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6955 r=`${PWD_COMMAND}`; export r; \
6956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6957 $(HOST_EXPORTS) \
b813574b 6958 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6960 done; \
22121df0 6961 echo "Doing mostlyclean in bison"; \
a90ef4bf 6962 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6965 "RANLIB=$${RANLIB}" \
0c24b341 6966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6967 mostlyclean) \
2a4cbe27
NN
6968 || exit 1
6969
a90ef4bf 6970@endif bison
2a4cbe27 6971
a90ef4bf
JM
6972.PHONY: maybe-clean-bison clean-bison
6973maybe-clean-bison:
6974@if bison
6975maybe-clean-bison: clean-bison
2a4cbe27 6976
a90ef4bf
JM
6977clean-bison:
6978 @: $(MAKE); $(unstage)
6979 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6980 r=`${PWD_COMMAND}`; export r; \
6981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6982 $(HOST_EXPORTS) \
b813574b 6983 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6985 done; \
22121df0 6986 echo "Doing clean in bison"; \
a90ef4bf 6987 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6990 "RANLIB=$${RANLIB}" \
0c24b341 6991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6992 clean) \
2a4cbe27
NN
6993 || exit 1
6994
a90ef4bf 6995@endif bison
2a4cbe27 6996
a90ef4bf
JM
6997.PHONY: maybe-distclean-bison distclean-bison
6998maybe-distclean-bison:
6999@if bison
7000maybe-distclean-bison: distclean-bison
a3ca38d2 7001
a90ef4bf
JM
7002distclean-bison:
7003 @: $(MAKE); $(unstage)
7004 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
7005 r=`${PWD_COMMAND}`; export r; \
7006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7007 $(HOST_EXPORTS) \
7008 for flag in $(EXTRA_HOST_FLAGS) ; do \
7009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7010 done; \
22121df0 7011 echo "Doing distclean in bison"; \
a90ef4bf 7012 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
7013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7015 "RANLIB=$${RANLIB}" \
0c24b341 7016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 7017 distclean) \
a3ca38d2
DD
7018 || exit 1
7019
a90ef4bf 7020@endif bison
a3ca38d2 7021
a90ef4bf
JM
7022.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
7023maybe-maintainer-clean-bison:
7024@if bison
7025maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 7026
a90ef4bf
JM
7027maintainer-clean-bison:
7028 @: $(MAKE); $(unstage)
7029 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
7030 r=`${PWD_COMMAND}`; export r; \
7031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7032 $(HOST_EXPORTS) \
7033 for flag in $(EXTRA_HOST_FLAGS) ; do \
7034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7035 done; \
22121df0 7036 echo "Doing maintainer-clean in bison"; \
a90ef4bf 7037 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
7038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7040 "RANLIB=$${RANLIB}" \
0c24b341 7041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 7042 maintainer-clean) \
108a6f8e
CD
7043 || exit 1
7044
a90ef4bf 7045@endif bison
108a6f8e 7046
2a4cbe27 7047
a90ef4bf
JM
7048
7049.PHONY: configure-cgen maybe-configure-cgen
7050maybe-configure-cgen:
7051@if gcc-bootstrap
7052configure-cgen: stage_current
7053@endif gcc-bootstrap
7054@if cgen
7055maybe-configure-cgen: configure-cgen
7056configure-cgen:
7057 @: $(MAKE); $(unstage)
7058 @r=`${PWD_COMMAND}`; export r; \
7059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7060 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 7061 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
7062 $(HOST_EXPORTS) \
7063 echo Configuring in $(HOST_SUBDIR)/cgen; \
7064 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
7065 case $(srcdir) in \
7066 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7067 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
7068 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
7069 esac; \
1b6c0831
L
7070 module_srcdir=cgen; \
7071 $(SHELL) \
7072 $$s/$$module_srcdir/configure \
7073 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 7074 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7075 --target=${target_alias} \
a90ef4bf
JM
7076 || exit 1
7077@endif cgen
7078
7079
7080
7081
7082
7083.PHONY: all-cgen maybe-all-cgen
7084maybe-all-cgen:
7085@if gcc-bootstrap
7086all-cgen: stage_current
7087@endif gcc-bootstrap
7088@if cgen
7089TARGET-cgen=all
7090maybe-all-cgen: all-cgen
7091all-cgen: configure-cgen
7092 @: $(MAKE); $(unstage)
7093 @r=`${PWD_COMMAND}`; export r; \
7094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7095 $(HOST_EXPORTS) \
7096 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 7097 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7098 $(TARGET-cgen))
7099@endif cgen
7100
7101
7102
7103
7104.PHONY: check-cgen maybe-check-cgen
7105maybe-check-cgen:
7106@if cgen
7107maybe-check-cgen: check-cgen
7108
7109check-cgen:
7110 @: $(MAKE); $(unstage)
7111 @r=`${PWD_COMMAND}`; export r; \
7112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7113 $(HOST_EXPORTS) \
a90ef4bf
JM
7114 (cd $(HOST_SUBDIR)/cgen && \
7115 $(MAKE) $(FLAGS_TO_PASS) check)
7116
7117@endif cgen
7118
7119.PHONY: install-cgen maybe-install-cgen
7120maybe-install-cgen:
7121@if cgen
7122maybe-install-cgen: install-cgen
7123
7124install-cgen: installdirs
7125 @: $(MAKE); $(unstage)
7126 @r=`${PWD_COMMAND}`; export r; \
7127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7128 $(HOST_EXPORTS) \
7129 (cd $(HOST_SUBDIR)/cgen && \
7130 $(MAKE) $(FLAGS_TO_PASS) install)
7131
7132@endif cgen
7133
7134.PHONY: install-strip-cgen maybe-install-strip-cgen
7135maybe-install-strip-cgen:
7136@if cgen
7137maybe-install-strip-cgen: install-strip-cgen
7138
7139install-strip-cgen: installdirs
7140 @: $(MAKE); $(unstage)
7141 @r=`${PWD_COMMAND}`; export r; \
7142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7143 $(HOST_EXPORTS) \
7144 (cd $(HOST_SUBDIR)/cgen && \
7145 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7146
7147@endif cgen
7148
7149# Other targets (info, dvi, pdf, etc.)
7150
7151.PHONY: maybe-info-cgen info-cgen
7152maybe-info-cgen:
7153@if cgen
7154maybe-info-cgen: info-cgen
7155
7156info-cgen: \
7157 configure-cgen
7158 @: $(MAKE); $(unstage)
7159 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
7160 r=`${PWD_COMMAND}`; export r; \
7161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7162 $(HOST_EXPORTS) \
b813574b 7163 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7165 done; \
22121df0 7166 echo "Doing info in cgen"; \
a90ef4bf 7167 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
7168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7170 "RANLIB=$${RANLIB}" \
0c24b341 7171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 7172 info) \
2a4cbe27
NN
7173 || exit 1
7174
a90ef4bf 7175@endif cgen
2a4cbe27 7176
a90ef4bf
JM
7177.PHONY: maybe-dvi-cgen dvi-cgen
7178maybe-dvi-cgen:
7179@if cgen
7180maybe-dvi-cgen: dvi-cgen
2a4cbe27 7181
a90ef4bf
JM
7182dvi-cgen: \
7183 configure-cgen
7184 @: $(MAKE); $(unstage)
7185 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
7186 r=`${PWD_COMMAND}`; export r; \
7187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7188 $(HOST_EXPORTS) \
b813574b 7189 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7191 done; \
22121df0 7192 echo "Doing dvi in cgen"; \
a90ef4bf 7193 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
7194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7196 "RANLIB=$${RANLIB}" \
0c24b341 7197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 7198 dvi) \
2a4cbe27
NN
7199 || exit 1
7200
a90ef4bf 7201@endif cgen
2a4cbe27 7202
a90ef4bf
JM
7203.PHONY: maybe-pdf-cgen pdf-cgen
7204maybe-pdf-cgen:
7205@if cgen
7206maybe-pdf-cgen: pdf-cgen
2a4cbe27 7207
a90ef4bf
JM
7208pdf-cgen: \
7209 configure-cgen
7210 @: $(MAKE); $(unstage)
7211 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
7212 r=`${PWD_COMMAND}`; export r; \
7213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7214 $(HOST_EXPORTS) \
b813574b 7215 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7217 done; \
22121df0 7218 echo "Doing pdf in cgen"; \
a90ef4bf 7219 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
7220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7222 "RANLIB=$${RANLIB}" \
0c24b341 7223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 7224 pdf) \
2a4cbe27
NN
7225 || exit 1
7226
a90ef4bf 7227@endif cgen
2a4cbe27 7228
a90ef4bf
JM
7229.PHONY: maybe-html-cgen html-cgen
7230maybe-html-cgen:
7231@if cgen
7232maybe-html-cgen: html-cgen
2a4cbe27 7233
a90ef4bf
JM
7234html-cgen: \
7235 configure-cgen
7236 @: $(MAKE); $(unstage)
7237 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
7238 r=`${PWD_COMMAND}`; export r; \
7239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7240 $(HOST_EXPORTS) \
b813574b 7241 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7243 done; \
22121df0 7244 echo "Doing html in cgen"; \
a90ef4bf 7245 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
7246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7248 "RANLIB=$${RANLIB}" \
0c24b341 7249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 7250 html) \
2a4cbe27
NN
7251 || exit 1
7252
a90ef4bf 7253@endif cgen
2a4cbe27 7254
a90ef4bf
JM
7255.PHONY: maybe-TAGS-cgen TAGS-cgen
7256maybe-TAGS-cgen:
7257@if cgen
7258maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 7259
a90ef4bf
JM
7260TAGS-cgen: \
7261 configure-cgen
7262 @: $(MAKE); $(unstage)
7263 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
7264 r=`${PWD_COMMAND}`; export r; \
7265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7266 $(HOST_EXPORTS) \
b813574b 7267 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7269 done; \
22121df0 7270 echo "Doing TAGS in cgen"; \
a90ef4bf 7271 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
7272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7274 "RANLIB=$${RANLIB}" \
0c24b341 7275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 7276 TAGS) \
2a4cbe27
NN
7277 || exit 1
7278
a90ef4bf 7279@endif cgen
2a4cbe27 7280
a90ef4bf
JM
7281.PHONY: maybe-install-info-cgen install-info-cgen
7282maybe-install-info-cgen:
7283@if cgen
7284maybe-install-info-cgen: install-info-cgen
2a4cbe27 7285
a90ef4bf
JM
7286install-info-cgen: \
7287 configure-cgen \
7288 info-cgen
7289 @: $(MAKE); $(unstage)
7290 @[ -f ./cgen/Makefile ] || exit 0; \
7291 r=`${PWD_COMMAND}`; export r; \
7292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7293 $(HOST_EXPORTS) \
7294 for flag in $(EXTRA_HOST_FLAGS) ; do \
7295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7296 done; \
22121df0 7297 echo "Doing install-info in cgen"; \
a90ef4bf
JM
7298 (cd $(HOST_SUBDIR)/cgen && \
7299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7301 "RANLIB=$${RANLIB}" \
7302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7303 install-info) \
7304 || exit 1
a7254363 7305
a90ef4bf
JM
7306@endif cgen
7307
7308.PHONY: maybe-install-pdf-cgen install-pdf-cgen
7309maybe-install-pdf-cgen:
7310@if cgen
7311maybe-install-pdf-cgen: install-pdf-cgen
7312
7313install-pdf-cgen: \
7314 configure-cgen \
7315 pdf-cgen
7316 @: $(MAKE); $(unstage)
7317 @[ -f ./cgen/Makefile ] || exit 0; \
7318 r=`${PWD_COMMAND}`; export r; \
c52c6897 7319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
7320 $(HOST_EXPORTS) \
7321 for flag in $(EXTRA_HOST_FLAGS) ; do \
7322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7323 done; \
22121df0 7324 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
7325 (cd $(HOST_SUBDIR)/cgen && \
7326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7328 "RANLIB=$${RANLIB}" \
7329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7330 install-pdf) \
2a4cbe27
NN
7331 || exit 1
7332
a90ef4bf 7333@endif cgen
a7254363 7334
a90ef4bf
JM
7335.PHONY: maybe-install-html-cgen install-html-cgen
7336maybe-install-html-cgen:
7337@if cgen
7338maybe-install-html-cgen: install-html-cgen
a7254363 7339
a90ef4bf
JM
7340install-html-cgen: \
7341 configure-cgen \
7342 html-cgen
7343 @: $(MAKE); $(unstage)
7344 @[ -f ./cgen/Makefile ] || exit 0; \
7345 r=`${PWD_COMMAND}`; export r; \
c52c6897 7346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 7347 $(HOST_EXPORTS) \
a90ef4bf
JM
7348 for flag in $(EXTRA_HOST_FLAGS) ; do \
7349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7350 done; \
22121df0 7351 echo "Doing install-html in cgen"; \
a90ef4bf
JM
7352 (cd $(HOST_SUBDIR)/cgen && \
7353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7355 "RANLIB=$${RANLIB}" \
7356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7357 install-html) \
7358 || exit 1
d545f33b 7359
a90ef4bf
JM
7360@endif cgen
7361
7362.PHONY: maybe-installcheck-cgen installcheck-cgen
7363maybe-installcheck-cgen:
7364@if cgen
7365maybe-installcheck-cgen: installcheck-cgen
7366
7367installcheck-cgen: \
7368 configure-cgen
7369 @: $(MAKE); $(unstage)
7370 @[ -f ./cgen/Makefile ] || exit 0; \
7371 r=`${PWD_COMMAND}`; export r; \
c52c6897 7372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 7373 $(HOST_EXPORTS) \
a90ef4bf
JM
7374 for flag in $(EXTRA_HOST_FLAGS) ; do \
7375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7376 done; \
22121df0 7377 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
7378 (cd $(HOST_SUBDIR)/cgen && \
7379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7381 "RANLIB=$${RANLIB}" \
7382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7383 installcheck) \
7384 || exit 1
8520c408 7385
a90ef4bf
JM
7386@endif cgen
7387
7388.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
7389maybe-mostlyclean-cgen:
7390@if cgen
7391maybe-mostlyclean-cgen: mostlyclean-cgen
7392
7393mostlyclean-cgen:
7394 @: $(MAKE); $(unstage)
7395 @[ -f ./cgen/Makefile ] || exit 0; \
7396 r=`${PWD_COMMAND}`; export r; \
c52c6897 7397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 7398 $(HOST_EXPORTS) \
a90ef4bf
JM
7399 for flag in $(EXTRA_HOST_FLAGS) ; do \
7400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7401 done; \
22121df0 7402 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
7403 (cd $(HOST_SUBDIR)/cgen && \
7404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7406 "RANLIB=$${RANLIB}" \
7407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7408 mostlyclean) \
7409 || exit 1
8520c408 7410
a90ef4bf
JM
7411@endif cgen
7412
7413.PHONY: maybe-clean-cgen clean-cgen
7414maybe-clean-cgen:
7415@if cgen
7416maybe-clean-cgen: clean-cgen
7417
7418clean-cgen:
7419 @: $(MAKE); $(unstage)
7420 @[ -f ./cgen/Makefile ] || exit 0; \
7421 r=`${PWD_COMMAND}`; export r; \
c52c6897 7422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 7423 $(HOST_EXPORTS) \
a90ef4bf
JM
7424 for flag in $(EXTRA_HOST_FLAGS) ; do \
7425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7426 done; \
22121df0 7427 echo "Doing clean in cgen"; \
a90ef4bf
JM
7428 (cd $(HOST_SUBDIR)/cgen && \
7429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7431 "RANLIB=$${RANLIB}" \
7432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7433 clean) \
7434 || exit 1
d545f33b 7435
a90ef4bf
JM
7436@endif cgen
7437
7438.PHONY: maybe-distclean-cgen distclean-cgen
7439maybe-distclean-cgen:
7440@if cgen
7441maybe-distclean-cgen: distclean-cgen
7442
7443distclean-cgen:
7444 @: $(MAKE); $(unstage)
7445 @[ -f ./cgen/Makefile ] || exit 0; \
7446 r=`${PWD_COMMAND}`; export r; \
c52c6897 7447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 7448 $(HOST_EXPORTS) \
a90ef4bf
JM
7449 for flag in $(EXTRA_HOST_FLAGS) ; do \
7450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7451 done; \
22121df0 7452 echo "Doing distclean in cgen"; \
a90ef4bf
JM
7453 (cd $(HOST_SUBDIR)/cgen && \
7454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7456 "RANLIB=$${RANLIB}" \
7457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7458 distclean) \
7459 || exit 1
d545f33b 7460
a90ef4bf
JM
7461@endif cgen
7462
7463.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
7464maybe-maintainer-clean-cgen:
7465@if cgen
7466maybe-maintainer-clean-cgen: maintainer-clean-cgen
7467
7468maintainer-clean-cgen:
7469 @: $(MAKE); $(unstage)
7470 @[ -f ./cgen/Makefile ] || exit 0; \
7471 r=`${PWD_COMMAND}`; export r; \
c52c6897 7472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 7473 $(HOST_EXPORTS) \
a90ef4bf
JM
7474 for flag in $(EXTRA_HOST_FLAGS) ; do \
7475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7476 done; \
22121df0 7477 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
7478 (cd $(HOST_SUBDIR)/cgen && \
7479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7481 "RANLIB=$${RANLIB}" \
7482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7483 maintainer-clean) \
7484 || exit 1
7485
7486@endif cgen
7487
7488
7489
7490.PHONY: configure-dejagnu maybe-configure-dejagnu
7491maybe-configure-dejagnu:
7492@if gcc-bootstrap
7493configure-dejagnu: stage_current
7494@endif gcc-bootstrap
7495@if dejagnu
7496maybe-configure-dejagnu: configure-dejagnu
7497configure-dejagnu:
7498 @: $(MAKE); $(unstage)
7499 @r=`${PWD_COMMAND}`; export r; \
7500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7501 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 7502 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
7503 $(HOST_EXPORTS) \
7504 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
7505 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
7506 case $(srcdir) in \
7507 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7508 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
7509 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
7510 esac; \
1b6c0831
L
7511 module_srcdir=dejagnu; \
7512 $(SHELL) \
7513 $$s/$$module_srcdir/configure \
7514 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7515 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7516 --target=${target_alias} \
a90ef4bf
JM
7517 || exit 1
7518@endif dejagnu
d545f33b
PB
7519
7520
7521
7522
7523
a90ef4bf
JM
7524.PHONY: all-dejagnu maybe-all-dejagnu
7525maybe-all-dejagnu:
4f0ef2d8 7526@if gcc-bootstrap
a90ef4bf 7527all-dejagnu: stage_current
4f0ef2d8 7528@endif gcc-bootstrap
a90ef4bf
JM
7529@if dejagnu
7530TARGET-dejagnu=all
7531maybe-all-dejagnu: all-dejagnu
7532all-dejagnu: configure-dejagnu
7533 @: $(MAKE); $(unstage)
c52c6897 7534 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7536 $(HOST_EXPORTS) \
a90ef4bf 7537 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 7538 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7539 $(TARGET-dejagnu))
7540@endif dejagnu
4fa63067 7541
a7254363 7542
4fa63067 7543
a90ef4bf
JM
7544
7545.PHONY: check-dejagnu maybe-check-dejagnu
7546maybe-check-dejagnu:
7547@if dejagnu
7548maybe-check-dejagnu: check-dejagnu
7549
7550check-dejagnu:
7551 @: $(MAKE); $(unstage)
4fa63067
NN
7552 @r=`${PWD_COMMAND}`; export r; \
7553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7554 $(HOST_EXPORTS) \
a90ef4bf
JM
7555 (cd $(HOST_SUBDIR)/dejagnu && \
7556 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 7557
a90ef4bf 7558@endif dejagnu
2a4cbe27 7559
a90ef4bf
JM
7560.PHONY: install-dejagnu maybe-install-dejagnu
7561maybe-install-dejagnu:
7562@if dejagnu
7563maybe-install-dejagnu: install-dejagnu
2a4cbe27 7564
a90ef4bf
JM
7565install-dejagnu: installdirs
7566 @: $(MAKE); $(unstage)
4fa63067 7567 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7569 $(HOST_EXPORTS) \
a90ef4bf
JM
7570 (cd $(HOST_SUBDIR)/dejagnu && \
7571 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7572
a90ef4bf 7573@endif dejagnu
d545f33b 7574
a90ef4bf
JM
7575.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
7576maybe-install-strip-dejagnu:
7577@if dejagnu
7578maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 7579
a90ef4bf 7580install-strip-dejagnu: installdirs
9b980aa1
RW
7581 @: $(MAKE); $(unstage)
7582 @r=`${PWD_COMMAND}`; export r; \
7583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7584 $(HOST_EXPORTS) \
a90ef4bf 7585 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
7586 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7587
a90ef4bf 7588@endif dejagnu
9b980aa1 7589
56a8fe78 7590# Other targets (info, dvi, pdf, etc.)
d545f33b 7591
a90ef4bf
JM
7592.PHONY: maybe-info-dejagnu info-dejagnu
7593maybe-info-dejagnu:
7594@if dejagnu
7595maybe-info-dejagnu: info-dejagnu
d545f33b 7596
a90ef4bf
JM
7597info-dejagnu: \
7598 configure-dejagnu
7599 @: $(MAKE); $(unstage)
7600 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
7601 r=`${PWD_COMMAND}`; export r; \
7602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7603 $(HOST_EXPORTS) \
7604 for flag in $(EXTRA_HOST_FLAGS) ; do \
7605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7606 done; \
22121df0 7607 echo "Doing info in dejagnu"; \
a90ef4bf 7608 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
7609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7611 "RANLIB=$${RANLIB}" \
0c24b341 7612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
7613 info) \
7614 || exit 1
7615
a90ef4bf 7616@endif dejagnu
d545f33b 7617
a90ef4bf
JM
7618.PHONY: maybe-dvi-dejagnu dvi-dejagnu
7619maybe-dvi-dejagnu:
7620@if dejagnu
7621maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 7622
a90ef4bf
JM
7623dvi-dejagnu: \
7624 configure-dejagnu
7625 @: $(MAKE); $(unstage)
7626 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
7627 r=`${PWD_COMMAND}`; export r; \
7628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7629 $(HOST_EXPORTS) \
7630 for flag in $(EXTRA_HOST_FLAGS) ; do \
7631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7632 done; \
22121df0 7633 echo "Doing dvi in dejagnu"; \
a90ef4bf 7634 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7637 "RANLIB=$${RANLIB}" \
0c24b341 7638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7639 dvi) \
2a4cbe27
NN
7640 || exit 1
7641
a90ef4bf 7642@endif dejagnu
2a4cbe27 7643
a90ef4bf
JM
7644.PHONY: maybe-pdf-dejagnu pdf-dejagnu
7645maybe-pdf-dejagnu:
7646@if dejagnu
7647maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 7648
a90ef4bf
JM
7649pdf-dejagnu: \
7650 configure-dejagnu
7651 @: $(MAKE); $(unstage)
7652 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
7653 r=`${PWD_COMMAND}`; export r; \
7654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7655 $(HOST_EXPORTS) \
7656 for flag in $(EXTRA_HOST_FLAGS) ; do \
7657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7658 done; \
22121df0 7659 echo "Doing pdf in dejagnu"; \
a90ef4bf 7660 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
7661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7663 "RANLIB=$${RANLIB}" \
0c24b341 7664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7665 pdf) \
7666 || exit 1
7667
a90ef4bf 7668@endif dejagnu
56a8fe78 7669
a90ef4bf
JM
7670.PHONY: maybe-html-dejagnu html-dejagnu
7671maybe-html-dejagnu:
7672@if dejagnu
7673maybe-html-dejagnu: html-dejagnu
6d389afc 7674
a90ef4bf
JM
7675html-dejagnu: \
7676 configure-dejagnu
7677 @: $(MAKE); $(unstage)
7678 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
7679 r=`${PWD_COMMAND}`; export r; \
7680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7681 $(HOST_EXPORTS) \
7682 for flag in $(EXTRA_HOST_FLAGS) ; do \
7683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7684 done; \
22121df0 7685 echo "Doing html in dejagnu"; \
a90ef4bf 7686 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
7687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7689 "RANLIB=$${RANLIB}" \
0c24b341 7690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7691 html) \
7692 || exit 1
7693
a90ef4bf 7694@endif dejagnu
6d389afc 7695
a90ef4bf
JM
7696.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
7697maybe-TAGS-dejagnu:
7698@if dejagnu
7699maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 7700
a90ef4bf
JM
7701TAGS-dejagnu: \
7702 configure-dejagnu
7703 @: $(MAKE); $(unstage)
7704 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7705 r=`${PWD_COMMAND}`; export r; \
7706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7707 $(HOST_EXPORTS) \
b813574b 7708 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7710 done; \
22121df0 7711 echo "Doing TAGS in dejagnu"; \
a90ef4bf 7712 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7715 "RANLIB=$${RANLIB}" \
0c24b341 7716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7717 TAGS) \
2a4cbe27
NN
7718 || exit 1
7719
a90ef4bf 7720@endif dejagnu
2a4cbe27 7721
a90ef4bf
JM
7722.PHONY: maybe-install-info-dejagnu install-info-dejagnu
7723maybe-install-info-dejagnu:
7724@if dejagnu
7725maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 7726
a90ef4bf
JM
7727install-info-dejagnu: \
7728 configure-dejagnu \
7729 info-dejagnu
7730 @: $(MAKE); $(unstage)
7731 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7732 r=`${PWD_COMMAND}`; export r; \
7733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7734 $(HOST_EXPORTS) \
b813574b 7735 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7737 done; \
22121df0 7738 echo "Doing install-info in dejagnu"; \
a90ef4bf 7739 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7742 "RANLIB=$${RANLIB}" \
0c24b341 7743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7744 install-info) \
2a4cbe27
NN
7745 || exit 1
7746
a90ef4bf 7747@endif dejagnu
2a4cbe27 7748
a90ef4bf
JM
7749.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
7750maybe-install-pdf-dejagnu:
7751@if dejagnu
7752maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 7753
a90ef4bf
JM
7754install-pdf-dejagnu: \
7755 configure-dejagnu \
7756 pdf-dejagnu
7757 @: $(MAKE); $(unstage)
7758 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
7759 r=`${PWD_COMMAND}`; export r; \
7760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7761 $(HOST_EXPORTS) \
7762 for flag in $(EXTRA_HOST_FLAGS) ; do \
7763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7764 done; \
22121df0 7765 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 7766 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
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}" \
a3ca38d2
DD
7771 install-pdf) \
7772 || exit 1
7773
a90ef4bf 7774@endif dejagnu
a3ca38d2 7775
a90ef4bf
JM
7776.PHONY: maybe-install-html-dejagnu install-html-dejagnu
7777maybe-install-html-dejagnu:
7778@if dejagnu
7779maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 7780
a90ef4bf
JM
7781install-html-dejagnu: \
7782 configure-dejagnu \
7783 html-dejagnu
7784 @: $(MAKE); $(unstage)
7785 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
7786 r=`${PWD_COMMAND}`; export r; \
7787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7788 $(HOST_EXPORTS) \
7789 for flag in $(EXTRA_HOST_FLAGS) ; do \
7790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7791 done; \
22121df0 7792 echo "Doing install-html in dejagnu"; \
a90ef4bf 7793 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
7794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7796 "RANLIB=$${RANLIB}" \
0c24b341 7797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7798 install-html) \
7799 || exit 1
7800
a90ef4bf 7801@endif dejagnu
108a6f8e 7802
a90ef4bf
JM
7803.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
7804maybe-installcheck-dejagnu:
7805@if dejagnu
7806maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 7807
a90ef4bf
JM
7808installcheck-dejagnu: \
7809 configure-dejagnu
7810 @: $(MAKE); $(unstage)
7811 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7812 r=`${PWD_COMMAND}`; export r; \
7813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7814 $(HOST_EXPORTS) \
b813574b 7815 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7817 done; \
22121df0 7818 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7819 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7822 "RANLIB=$${RANLIB}" \
0c24b341 7823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7824 installcheck) \
2a4cbe27
NN
7825 || exit 1
7826
a90ef4bf 7827@endif dejagnu
2a4cbe27 7828
a90ef4bf
JM
7829.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7830maybe-mostlyclean-dejagnu:
7831@if dejagnu
7832maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7833
a90ef4bf
JM
7834mostlyclean-dejagnu:
7835 @: $(MAKE); $(unstage)
7836 @[ -f ./dejagnu/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 mostlyclean in dejagnu"; \
a90ef4bf 7844 (cd $(HOST_SUBDIR)/dejagnu && \
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 mostlyclean) \
2a4cbe27
NN
7850 || exit 1
7851
a90ef4bf 7852@endif dejagnu
2a4cbe27 7853
a90ef4bf
JM
7854.PHONY: maybe-clean-dejagnu clean-dejagnu
7855maybe-clean-dejagnu:
7856@if dejagnu
7857maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7858
a90ef4bf
JM
7859clean-dejagnu:
7860 @: $(MAKE); $(unstage)
7861 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7862 r=`${PWD_COMMAND}`; export r; \
7863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7864 $(HOST_EXPORTS) \
b813574b 7865 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7867 done; \
22121df0 7868 echo "Doing clean in dejagnu"; \
a90ef4bf 7869 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7872 "RANLIB=$${RANLIB}" \
0c24b341 7873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7874 clean) \
2a4cbe27
NN
7875 || exit 1
7876
a90ef4bf 7877@endif dejagnu
2a4cbe27 7878
a90ef4bf
JM
7879.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7880maybe-distclean-dejagnu:
7881@if dejagnu
7882maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7883
a90ef4bf
JM
7884distclean-dejagnu:
7885 @: $(MAKE); $(unstage)
7886 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7887 r=`${PWD_COMMAND}`; export r; \
7888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7889 $(HOST_EXPORTS) \
b813574b 7890 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7892 done; \
22121df0 7893 echo "Doing distclean in dejagnu"; \
a90ef4bf 7894 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7897 "RANLIB=$${RANLIB}" \
0c24b341 7898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7899 distclean) \
2a4cbe27
NN
7900 || exit 1
7901
a90ef4bf 7902@endif dejagnu
2a4cbe27 7903
a90ef4bf
JM
7904.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7905maybe-maintainer-clean-dejagnu:
7906@if dejagnu
7907maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7908
a90ef4bf
JM
7909maintainer-clean-dejagnu:
7910 @: $(MAKE); $(unstage)
7911 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7912 r=`${PWD_COMMAND}`; export r; \
7913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7914 $(HOST_EXPORTS) \
b813574b 7915 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7917 done; \
22121df0 7918 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7919 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7922 "RANLIB=$${RANLIB}" \
0c24b341 7923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7924 maintainer-clean) \
2a4cbe27
NN
7925 || exit 1
7926
a90ef4bf 7927@endif dejagnu
2a4cbe27 7928
2a4cbe27 7929
a7254363 7930
a90ef4bf
JM
7931.PHONY: configure-etc maybe-configure-etc
7932maybe-configure-etc:
4f0ef2d8 7933@if gcc-bootstrap
a90ef4bf 7934configure-etc: stage_current
4f0ef2d8 7935@endif gcc-bootstrap
a90ef4bf
JM
7936@if etc
7937maybe-configure-etc: configure-etc
7938configure-etc:
0aed8855 7939 @: $(MAKE); $(unstage)
c52c6897 7940 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7942 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7943 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7944 $(HOST_EXPORTS) \
a90ef4bf
JM
7945 echo Configuring in $(HOST_SUBDIR)/etc; \
7946 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7947 case $(srcdir) in \
b00612cc 7948 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7949 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7950 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7951 esac; \
1b6c0831
L
7952 module_srcdir=etc; \
7953 $(SHELL) \
7954 $$s/$$module_srcdir/configure \
7955 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7956 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7957 --target=${target_alias} \
2a4cbe27 7958 || exit 1
a90ef4bf 7959@endif etc
2a4cbe27 7960
a7254363
PB
7961
7962
d545f33b
PB
7963
7964
a90ef4bf
JM
7965.PHONY: all-etc maybe-all-etc
7966maybe-all-etc:
4f0ef2d8 7967@if gcc-bootstrap
a90ef4bf 7968all-etc: stage_current
4f0ef2d8 7969@endif gcc-bootstrap
a90ef4bf
JM
7970@if etc
7971TARGET-etc=all
7972maybe-all-etc: all-etc
7973all-etc: configure-etc
0aed8855 7974 @: $(MAKE); $(unstage)
4fa63067
NN
7975 @r=`${PWD_COMMAND}`; export r; \
7976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7977 $(HOST_EXPORTS) \
a90ef4bf 7978 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7979 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7980 $(TARGET-etc))
7981@endif etc
2a4cbe27 7982
a7254363 7983
d545f33b
PB
7984
7985
a90ef4bf
JM
7986.PHONY: check-etc maybe-check-etc
7987maybe-check-etc:
7988@if etc
7989maybe-check-etc: check-etc
2a4cbe27 7990
a90ef4bf 7991check-etc:
0aed8855 7992 @: $(MAKE); $(unstage)
a90ef4bf
JM
7993 @r=`${PWD_COMMAND}`; export r; \
7994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7995 $(HOST_EXPORTS) \
a90ef4bf
JM
7996 (cd $(HOST_SUBDIR)/etc && \
7997 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7998
a90ef4bf 7999@endif etc
4fa63067 8000
a90ef4bf
JM
8001.PHONY: install-etc maybe-install-etc
8002maybe-install-etc:
8003@if etc
8004maybe-install-etc: install-etc
4fa63067 8005
a90ef4bf 8006install-etc: installdirs
0aed8855 8007 @: $(MAKE); $(unstage)
4fa63067 8008 @r=`${PWD_COMMAND}`; export r; \
b40e3958 8009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8010 $(HOST_EXPORTS) \
a90ef4bf 8011 (cd $(HOST_SUBDIR)/etc && \
2da12f12 8012 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 8013
a90ef4bf 8014@endif etc
2a4cbe27 8015
a90ef4bf
JM
8016.PHONY: install-strip-etc maybe-install-strip-etc
8017maybe-install-strip-etc:
8018@if etc
8019maybe-install-strip-etc: install-strip-etc
9b980aa1 8020
a90ef4bf 8021install-strip-etc: installdirs
9b980aa1
RW
8022 @: $(MAKE); $(unstage)
8023 @r=`${PWD_COMMAND}`; export r; \
8024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8025 $(HOST_EXPORTS) \
a90ef4bf 8026 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
8027 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8028
a90ef4bf 8029@endif etc
9b980aa1 8030
56a8fe78 8031# Other targets (info, dvi, pdf, etc.)
2a4cbe27 8032
a90ef4bf
JM
8033.PHONY: maybe-info-etc info-etc
8034maybe-info-etc:
8035@if etc
8036maybe-info-etc: info-etc
4fa63067 8037
a90ef4bf
JM
8038info-etc: \
8039 configure-etc
0aed8855 8040 @: $(MAKE); $(unstage)
a90ef4bf 8041 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
8042 r=`${PWD_COMMAND}`; export r; \
8043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8044 $(HOST_EXPORTS) \
b813574b 8045 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8047 done; \
22121df0 8048 echo "Doing info in etc"; \
a90ef4bf 8049 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
8050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8052 "RANLIB=$${RANLIB}" \
0c24b341 8053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8054 info) \
2a4cbe27
NN
8055 || exit 1
8056
a90ef4bf 8057@endif etc
2a4cbe27 8058
a90ef4bf
JM
8059.PHONY: maybe-dvi-etc dvi-etc
8060maybe-dvi-etc:
8061@if etc
8062maybe-dvi-etc: dvi-etc
2a4cbe27 8063
a90ef4bf
JM
8064dvi-etc: \
8065 configure-etc
0aed8855 8066 @: $(MAKE); $(unstage)
a90ef4bf 8067 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
8068 r=`${PWD_COMMAND}`; export r; \
8069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8070 $(HOST_EXPORTS) \
b813574b 8071 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8073 done; \
22121df0 8074 echo "Doing dvi in etc"; \
a90ef4bf 8075 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
8076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8078 "RANLIB=$${RANLIB}" \
0c24b341 8079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8080 dvi) \
2a4cbe27
NN
8081 || exit 1
8082
a90ef4bf 8083@endif etc
2a4cbe27 8084
a90ef4bf
JM
8085.PHONY: maybe-pdf-etc pdf-etc
8086maybe-pdf-etc:
8087@if etc
8088maybe-pdf-etc: pdf-etc
56a8fe78 8089
a90ef4bf
JM
8090pdf-etc: \
8091 configure-etc
56a8fe78 8092 @: $(MAKE); $(unstage)
a90ef4bf 8093 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
8094 r=`${PWD_COMMAND}`; export r; \
8095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8096 $(HOST_EXPORTS) \
8097 for flag in $(EXTRA_HOST_FLAGS) ; do \
8098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8099 done; \
22121df0 8100 echo "Doing pdf in etc"; \
a90ef4bf 8101 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
8102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8104 "RANLIB=$${RANLIB}" \
0c24b341 8105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8106 pdf) \
8107 || exit 1
8108
a90ef4bf 8109@endif etc
56a8fe78 8110
a90ef4bf
JM
8111.PHONY: maybe-html-etc html-etc
8112maybe-html-etc:
8113@if etc
8114maybe-html-etc: html-etc
6d389afc 8115
a90ef4bf
JM
8116html-etc: \
8117 configure-etc
0aed8855 8118 @: $(MAKE); $(unstage)
a90ef4bf 8119 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
8120 r=`${PWD_COMMAND}`; export r; \
8121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8122 $(HOST_EXPORTS) \
8123 for flag in $(EXTRA_HOST_FLAGS) ; do \
8124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8125 done; \
22121df0 8126 echo "Doing html in etc"; \
a90ef4bf 8127 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
8128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8130 "RANLIB=$${RANLIB}" \
0c24b341 8131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8132 html) \
8133 || exit 1
8134
a90ef4bf 8135@endif etc
6d389afc 8136
a90ef4bf
JM
8137.PHONY: maybe-TAGS-etc TAGS-etc
8138maybe-TAGS-etc:
8139@if etc
8140maybe-TAGS-etc: TAGS-etc
2a4cbe27 8141
a90ef4bf
JM
8142TAGS-etc: \
8143 configure-etc
0aed8855 8144 @: $(MAKE); $(unstage)
a90ef4bf 8145 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
8146 r=`${PWD_COMMAND}`; export r; \
8147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8148 $(HOST_EXPORTS) \
b813574b 8149 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8151 done; \
22121df0 8152 echo "Doing TAGS in etc"; \
a90ef4bf 8153 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
8154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8156 "RANLIB=$${RANLIB}" \
0c24b341 8157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8158 TAGS) \
2a4cbe27
NN
8159 || exit 1
8160
a90ef4bf 8161@endif etc
2a4cbe27 8162
a90ef4bf
JM
8163.PHONY: maybe-install-info-etc install-info-etc
8164maybe-install-info-etc:
8165@if etc
8166maybe-install-info-etc: install-info-etc
2a4cbe27 8167
a90ef4bf
JM
8168install-info-etc: \
8169 configure-etc \
8170 info-etc
0aed8855 8171 @: $(MAKE); $(unstage)
a90ef4bf 8172 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
8173 r=`${PWD_COMMAND}`; export r; \
8174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8175 $(HOST_EXPORTS) \
b813574b 8176 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8178 done; \
22121df0 8179 echo "Doing install-info in etc"; \
a90ef4bf 8180 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
8181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8183 "RANLIB=$${RANLIB}" \
0c24b341 8184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8185 install-info) \
2a4cbe27
NN
8186 || exit 1
8187
a90ef4bf 8188@endif etc
2a4cbe27 8189
a90ef4bf
JM
8190.PHONY: maybe-install-pdf-etc install-pdf-etc
8191maybe-install-pdf-etc:
8192@if etc
8193maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 8194
a90ef4bf
JM
8195install-pdf-etc: \
8196 configure-etc \
8197 pdf-etc
a3ca38d2 8198 @: $(MAKE); $(unstage)
a90ef4bf 8199 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
8200 r=`${PWD_COMMAND}`; export r; \
8201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8202 $(HOST_EXPORTS) \
8203 for flag in $(EXTRA_HOST_FLAGS) ; do \
8204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8205 done; \
22121df0 8206 echo "Doing install-pdf in etc"; \
a90ef4bf 8207 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
8208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8210 "RANLIB=$${RANLIB}" \
0c24b341 8211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8212 install-pdf) \
8213 || exit 1
8214
a90ef4bf 8215@endif etc
a3ca38d2 8216
a90ef4bf
JM
8217.PHONY: maybe-install-html-etc install-html-etc
8218maybe-install-html-etc:
8219@if etc
8220maybe-install-html-etc: install-html-etc
108a6f8e 8221
a90ef4bf
JM
8222install-html-etc: \
8223 configure-etc \
8224 html-etc
108a6f8e 8225 @: $(MAKE); $(unstage)
a90ef4bf 8226 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
8227 r=`${PWD_COMMAND}`; export r; \
8228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8229 $(HOST_EXPORTS) \
8230 for flag in $(EXTRA_HOST_FLAGS) ; do \
8231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8232 done; \
22121df0 8233 echo "Doing install-html in etc"; \
a90ef4bf 8234 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
8235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8237 "RANLIB=$${RANLIB}" \
0c24b341 8238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8239 install-html) \
8240 || exit 1
8241
a90ef4bf 8242@endif etc
108a6f8e 8243
a90ef4bf
JM
8244.PHONY: maybe-installcheck-etc installcheck-etc
8245maybe-installcheck-etc:
8246@if etc
8247maybe-installcheck-etc: installcheck-etc
2a4cbe27 8248
a90ef4bf
JM
8249installcheck-etc: \
8250 configure-etc
0aed8855 8251 @: $(MAKE); $(unstage)
a90ef4bf 8252 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
8253 r=`${PWD_COMMAND}`; export r; \
8254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8255 $(HOST_EXPORTS) \
b813574b 8256 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8258 done; \
22121df0 8259 echo "Doing installcheck in etc"; \
a90ef4bf 8260 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
8261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8263 "RANLIB=$${RANLIB}" \
0c24b341 8264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8265 installcheck) \
2a4cbe27
NN
8266 || exit 1
8267
a90ef4bf 8268@endif etc
2a4cbe27 8269
a90ef4bf
JM
8270.PHONY: maybe-mostlyclean-etc mostlyclean-etc
8271maybe-mostlyclean-etc:
8272@if etc
8273maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 8274
a90ef4bf 8275mostlyclean-etc:
0aed8855 8276 @: $(MAKE); $(unstage)
a90ef4bf 8277 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
8278 r=`${PWD_COMMAND}`; export r; \
8279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8280 $(HOST_EXPORTS) \
b813574b 8281 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8283 done; \
22121df0 8284 echo "Doing mostlyclean in etc"; \
a90ef4bf 8285 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
8286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8288 "RANLIB=$${RANLIB}" \
0c24b341 8289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8290 mostlyclean) \
2a4cbe27
NN
8291 || exit 1
8292
a90ef4bf 8293@endif etc
2a4cbe27 8294
a90ef4bf
JM
8295.PHONY: maybe-clean-etc clean-etc
8296maybe-clean-etc:
8297@if etc
8298maybe-clean-etc: clean-etc
2a4cbe27 8299
a90ef4bf 8300clean-etc:
0aed8855 8301 @: $(MAKE); $(unstage)
a90ef4bf 8302 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
8303 r=`${PWD_COMMAND}`; export r; \
8304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8305 $(HOST_EXPORTS) \
b813574b 8306 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8308 done; \
22121df0 8309 echo "Doing clean in etc"; \
a90ef4bf 8310 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
8311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8313 "RANLIB=$${RANLIB}" \
0c24b341 8314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8315 clean) \
2a4cbe27
NN
8316 || exit 1
8317
a90ef4bf 8318@endif etc
2a4cbe27 8319
a90ef4bf
JM
8320.PHONY: maybe-distclean-etc distclean-etc
8321maybe-distclean-etc:
8322@if etc
8323maybe-distclean-etc: distclean-etc
2a4cbe27 8324
a90ef4bf 8325distclean-etc:
0aed8855 8326 @: $(MAKE); $(unstage)
a90ef4bf 8327 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
8328 r=`${PWD_COMMAND}`; export r; \
8329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8330 $(HOST_EXPORTS) \
b813574b 8331 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8333 done; \
22121df0 8334 echo "Doing distclean in etc"; \
a90ef4bf 8335 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
8336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8338 "RANLIB=$${RANLIB}" \
0c24b341 8339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8340 distclean) \
2a4cbe27
NN
8341 || exit 1
8342
a90ef4bf 8343@endif etc
2a4cbe27 8344
a90ef4bf
JM
8345.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
8346maybe-maintainer-clean-etc:
8347@if etc
8348maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 8349
a90ef4bf 8350maintainer-clean-etc:
0aed8855 8351 @: $(MAKE); $(unstage)
a90ef4bf 8352 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
8353 r=`${PWD_COMMAND}`; export r; \
8354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8355 $(HOST_EXPORTS) \
b813574b 8356 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8358 done; \
22121df0 8359 echo "Doing maintainer-clean in etc"; \
a90ef4bf 8360 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
8361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8363 "RANLIB=$${RANLIB}" \
0c24b341 8364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8365 maintainer-clean) \
2a4cbe27
NN
8366 || exit 1
8367
a90ef4bf 8368@endif etc
2a4cbe27 8369
2a4cbe27 8370
a7254363 8371
a90ef4bf
JM
8372.PHONY: configure-fastjar maybe-configure-fastjar
8373maybe-configure-fastjar:
4f0ef2d8 8374@if gcc-bootstrap
a90ef4bf 8375configure-fastjar: stage_current
4f0ef2d8 8376@endif gcc-bootstrap
a90ef4bf
JM
8377@if fastjar
8378maybe-configure-fastjar: configure-fastjar
8379configure-fastjar:
0aed8855 8380 @: $(MAKE); $(unstage)
c52c6897 8381 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8383 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 8384 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 8385 $(HOST_EXPORTS) \
a90ef4bf
JM
8386 echo Configuring in $(HOST_SUBDIR)/fastjar; \
8387 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 8388 case $(srcdir) in \
b00612cc 8389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8390 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 8391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8392 esac; \
1b6c0831
L
8393 module_srcdir=fastjar; \
8394 $(SHELL) \
8395 $$s/$$module_srcdir/configure \
8396 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8397 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8398 --target=${target_alias} \
4fa63067 8399 || exit 1
a90ef4bf 8400@endif fastjar
4fa63067 8401
a7254363
PB
8402
8403
d545f33b
PB
8404
8405
a90ef4bf
JM
8406.PHONY: all-fastjar maybe-all-fastjar
8407maybe-all-fastjar:
4f0ef2d8 8408@if gcc-bootstrap
a90ef4bf 8409all-fastjar: stage_current
4f0ef2d8 8410@endif gcc-bootstrap
a90ef4bf
JM
8411@if fastjar
8412TARGET-fastjar=all
8413maybe-all-fastjar: all-fastjar
8414all-fastjar: configure-fastjar
0aed8855 8415 @: $(MAKE); $(unstage)
4fa63067
NN
8416 @r=`${PWD_COMMAND}`; export r; \
8417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8418 $(HOST_EXPORTS) \
a90ef4bf 8419 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 8420 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8421 $(TARGET-fastjar))
8422@endif fastjar
4fa63067 8423
a7254363 8424
d545f33b
PB
8425
8426
a90ef4bf
JM
8427.PHONY: check-fastjar maybe-check-fastjar
8428maybe-check-fastjar:
8429@if fastjar
8430maybe-check-fastjar: check-fastjar
4fa63067
NN
8431
8432# This module is only tested in a native toolchain.
a90ef4bf 8433check-fastjar:
0aed8855 8434 @: $(MAKE); $(unstage)
22121df0 8435 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
8436 r=`${PWD_COMMAND}`; export r; \
8437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8438 $(HOST_EXPORTS) \
a90ef4bf 8439 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 8440 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
8441 fi
8442
a90ef4bf 8443@endif fastjar
4fa63067 8444
a90ef4bf
JM
8445.PHONY: install-fastjar maybe-install-fastjar
8446maybe-install-fastjar:
8447@if fastjar
8448maybe-install-fastjar: install-fastjar
4fa63067 8449
a90ef4bf 8450install-fastjar: installdirs
0aed8855 8451 @: $(MAKE); $(unstage)
4fa63067
NN
8452 @r=`${PWD_COMMAND}`; export r; \
8453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8454 $(HOST_EXPORTS) \
a90ef4bf 8455 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 8456 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8457
a90ef4bf 8458@endif fastjar
4fa63067 8459
a90ef4bf
JM
8460.PHONY: install-strip-fastjar maybe-install-strip-fastjar
8461maybe-install-strip-fastjar:
8462@if fastjar
8463maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 8464
a90ef4bf 8465install-strip-fastjar: installdirs
9b980aa1
RW
8466 @: $(MAKE); $(unstage)
8467 @r=`${PWD_COMMAND}`; export r; \
8468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8469 $(HOST_EXPORTS) \
a90ef4bf 8470 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
8471 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8472
a90ef4bf 8473@endif fastjar
9b980aa1 8474
56a8fe78 8475# Other targets (info, dvi, pdf, etc.)
4fa63067 8476
a90ef4bf
JM
8477.PHONY: maybe-info-fastjar info-fastjar
8478maybe-info-fastjar:
8479@if fastjar
8480maybe-info-fastjar: info-fastjar
4fa63067 8481
a90ef4bf
JM
8482info-fastjar: \
8483 configure-fastjar
0aed8855 8484 @: $(MAKE); $(unstage)
a90ef4bf 8485 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8486 r=`${PWD_COMMAND}`; export r; \
8487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8488 $(HOST_EXPORTS) \
b813574b 8489 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8491 done; \
22121df0 8492 echo "Doing info in fastjar"; \
a90ef4bf 8493 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8496 "RANLIB=$${RANLIB}" \
0c24b341 8497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8498 info) \
2a4cbe27
NN
8499 || exit 1
8500
a90ef4bf 8501@endif fastjar
2a4cbe27 8502
a90ef4bf
JM
8503.PHONY: maybe-dvi-fastjar dvi-fastjar
8504maybe-dvi-fastjar:
8505@if fastjar
8506maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 8507
a90ef4bf
JM
8508dvi-fastjar: \
8509 configure-fastjar
0aed8855 8510 @: $(MAKE); $(unstage)
a90ef4bf 8511 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8512 r=`${PWD_COMMAND}`; export r; \
8513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8514 $(HOST_EXPORTS) \
b813574b 8515 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8517 done; \
22121df0 8518 echo "Doing dvi in fastjar"; \
a90ef4bf 8519 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8522 "RANLIB=$${RANLIB}" \
0c24b341 8523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8524 dvi) \
2a4cbe27
NN
8525 || exit 1
8526
a90ef4bf 8527@endif fastjar
2a4cbe27 8528
a90ef4bf
JM
8529.PHONY: maybe-pdf-fastjar pdf-fastjar
8530maybe-pdf-fastjar:
8531@if fastjar
8532maybe-pdf-fastjar: pdf-fastjar
56a8fe78 8533
a90ef4bf
JM
8534pdf-fastjar: \
8535 configure-fastjar
56a8fe78 8536 @: $(MAKE); $(unstage)
a90ef4bf 8537 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
8538 r=`${PWD_COMMAND}`; export r; \
8539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8540 $(HOST_EXPORTS) \
8541 for flag in $(EXTRA_HOST_FLAGS) ; do \
8542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8543 done; \
22121df0 8544 echo "Doing pdf in fastjar"; \
a90ef4bf 8545 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
8546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8548 "RANLIB=$${RANLIB}" \
0c24b341 8549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8550 pdf) \
8551 || exit 1
8552
a90ef4bf 8553@endif fastjar
56a8fe78 8554
a90ef4bf
JM
8555.PHONY: maybe-html-fastjar html-fastjar
8556maybe-html-fastjar:
8557@if fastjar
8558maybe-html-fastjar: html-fastjar
6d389afc 8559
a90ef4bf
JM
8560html-fastjar: \
8561 configure-fastjar
0aed8855 8562 @: $(MAKE); $(unstage)
a90ef4bf 8563 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
8564 r=`${PWD_COMMAND}`; export r; \
8565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8566 $(HOST_EXPORTS) \
8567 for flag in $(EXTRA_HOST_FLAGS) ; do \
8568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8569 done; \
22121df0 8570 echo "Doing html in fastjar"; \
a90ef4bf 8571 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
8572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8574 "RANLIB=$${RANLIB}" \
0c24b341 8575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8576 html) \
8577 || exit 1
8578
a90ef4bf 8579@endif fastjar
6d389afc 8580
a90ef4bf
JM
8581.PHONY: maybe-TAGS-fastjar TAGS-fastjar
8582maybe-TAGS-fastjar:
8583@if fastjar
8584maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 8585
a90ef4bf
JM
8586TAGS-fastjar: \
8587 configure-fastjar
0aed8855 8588 @: $(MAKE); $(unstage)
a90ef4bf 8589 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8590 r=`${PWD_COMMAND}`; export r; \
8591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8592 $(HOST_EXPORTS) \
b813574b 8593 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8595 done; \
22121df0 8596 echo "Doing TAGS in fastjar"; \
a90ef4bf 8597 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8600 "RANLIB=$${RANLIB}" \
0c24b341 8601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8602 TAGS) \
2a4cbe27
NN
8603 || exit 1
8604
a90ef4bf 8605@endif fastjar
2a4cbe27 8606
a90ef4bf
JM
8607.PHONY: maybe-install-info-fastjar install-info-fastjar
8608maybe-install-info-fastjar:
8609@if fastjar
8610maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 8611
a90ef4bf
JM
8612install-info-fastjar: \
8613 configure-fastjar \
8614 info-fastjar
0aed8855 8615 @: $(MAKE); $(unstage)
a90ef4bf 8616 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8617 r=`${PWD_COMMAND}`; export r; \
8618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8619 $(HOST_EXPORTS) \
b813574b 8620 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8622 done; \
22121df0 8623 echo "Doing install-info in fastjar"; \
a90ef4bf 8624 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8627 "RANLIB=$${RANLIB}" \
0c24b341 8628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8629 install-info) \
2a4cbe27
NN
8630 || exit 1
8631
a90ef4bf 8632@endif fastjar
2a4cbe27 8633
a90ef4bf
JM
8634.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
8635maybe-install-pdf-fastjar:
8636@if fastjar
8637maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 8638
a90ef4bf
JM
8639install-pdf-fastjar: \
8640 configure-fastjar \
8641 pdf-fastjar
a3ca38d2 8642 @: $(MAKE); $(unstage)
a90ef4bf 8643 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
8644 r=`${PWD_COMMAND}`; export r; \
8645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8646 $(HOST_EXPORTS) \
8647 for flag in $(EXTRA_HOST_FLAGS) ; do \
8648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8649 done; \
22121df0 8650 echo "Doing install-pdf in fastjar"; \
a90ef4bf 8651 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
8652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8654 "RANLIB=$${RANLIB}" \
0c24b341 8655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8656 install-pdf) \
8657 || exit 1
8658
a90ef4bf 8659@endif fastjar
a3ca38d2 8660
a90ef4bf
JM
8661.PHONY: maybe-install-html-fastjar install-html-fastjar
8662maybe-install-html-fastjar:
8663@if fastjar
8664maybe-install-html-fastjar: install-html-fastjar
108a6f8e 8665
a90ef4bf
JM
8666install-html-fastjar: \
8667 configure-fastjar \
8668 html-fastjar
108a6f8e 8669 @: $(MAKE); $(unstage)
a90ef4bf 8670 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
8671 r=`${PWD_COMMAND}`; export r; \
8672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8673 $(HOST_EXPORTS) \
8674 for flag in $(EXTRA_HOST_FLAGS) ; do \
8675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8676 done; \
22121df0 8677 echo "Doing install-html in fastjar"; \
a90ef4bf 8678 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
8679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8681 "RANLIB=$${RANLIB}" \
0c24b341 8682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8683 install-html) \
8684 || exit 1
8685
a90ef4bf 8686@endif fastjar
108a6f8e 8687
a90ef4bf
JM
8688.PHONY: maybe-installcheck-fastjar installcheck-fastjar
8689maybe-installcheck-fastjar:
8690@if fastjar
8691maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 8692
a90ef4bf
JM
8693installcheck-fastjar: \
8694 configure-fastjar
0aed8855 8695 @: $(MAKE); $(unstage)
a90ef4bf 8696 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8697 r=`${PWD_COMMAND}`; export r; \
8698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8699 $(HOST_EXPORTS) \
b813574b 8700 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8702 done; \
22121df0 8703 echo "Doing installcheck in fastjar"; \
a90ef4bf 8704 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8707 "RANLIB=$${RANLIB}" \
0c24b341 8708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8709 installcheck) \
2a4cbe27
NN
8710 || exit 1
8711
a90ef4bf 8712@endif fastjar
2a4cbe27 8713
a90ef4bf
JM
8714.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
8715maybe-mostlyclean-fastjar:
8716@if fastjar
8717maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 8718
a90ef4bf 8719mostlyclean-fastjar:
0aed8855 8720 @: $(MAKE); $(unstage)
a90ef4bf 8721 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8722 r=`${PWD_COMMAND}`; export r; \
8723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8724 $(HOST_EXPORTS) \
b813574b 8725 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8727 done; \
22121df0 8728 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 8729 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8732 "RANLIB=$${RANLIB}" \
0c24b341 8733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8734 mostlyclean) \
2a4cbe27
NN
8735 || exit 1
8736
a90ef4bf 8737@endif fastjar
2a4cbe27 8738
a90ef4bf
JM
8739.PHONY: maybe-clean-fastjar clean-fastjar
8740maybe-clean-fastjar:
8741@if fastjar
8742maybe-clean-fastjar: clean-fastjar
2a4cbe27 8743
a90ef4bf 8744clean-fastjar:
0aed8855 8745 @: $(MAKE); $(unstage)
a90ef4bf 8746 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8747 r=`${PWD_COMMAND}`; export r; \
8748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8749 $(HOST_EXPORTS) \
b813574b 8750 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8752 done; \
22121df0 8753 echo "Doing clean in fastjar"; \
a90ef4bf 8754 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8757 "RANLIB=$${RANLIB}" \
0c24b341 8758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8759 clean) \
2a4cbe27
NN
8760 || exit 1
8761
a90ef4bf 8762@endif fastjar
2a4cbe27 8763
a90ef4bf
JM
8764.PHONY: maybe-distclean-fastjar distclean-fastjar
8765maybe-distclean-fastjar:
8766@if fastjar
8767maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 8768
a90ef4bf 8769distclean-fastjar:
0aed8855 8770 @: $(MAKE); $(unstage)
a90ef4bf 8771 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8772 r=`${PWD_COMMAND}`; export r; \
8773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8774 $(HOST_EXPORTS) \
b813574b 8775 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8777 done; \
22121df0 8778 echo "Doing distclean in fastjar"; \
a90ef4bf 8779 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8782 "RANLIB=$${RANLIB}" \
0c24b341 8783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8784 distclean) \
2a4cbe27
NN
8785 || exit 1
8786
a90ef4bf 8787@endif fastjar
2a4cbe27 8788
a90ef4bf
JM
8789.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
8790maybe-maintainer-clean-fastjar:
8791@if fastjar
8792maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
8793
8794maintainer-clean-fastjar:
0aed8855 8795 @: $(MAKE); $(unstage)
a90ef4bf 8796 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8797 r=`${PWD_COMMAND}`; export r; \
8798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8799 $(HOST_EXPORTS) \
b813574b 8800 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8802 done; \
22121df0 8803 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 8804 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8807 "RANLIB=$${RANLIB}" \
0c24b341 8808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8809 maintainer-clean) \
2a4cbe27
NN
8810 || exit 1
8811
a90ef4bf 8812@endif fastjar
2a4cbe27 8813
2a4cbe27 8814
a7254363 8815
a90ef4bf
JM
8816.PHONY: configure-fixincludes maybe-configure-fixincludes
8817maybe-configure-fixincludes:
4f0ef2d8 8818@if gcc-bootstrap
a90ef4bf 8819configure-fixincludes: stage_current
4f0ef2d8 8820@endif gcc-bootstrap
a90ef4bf
JM
8821@if fixincludes
8822maybe-configure-fixincludes: configure-fixincludes
8823configure-fixincludes:
c52c6897 8824 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8826 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8827 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8828 $(HOST_EXPORTS) \
a90ef4bf
JM
8829 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8830 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8831 case $(srcdir) in \
b00612cc 8832 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8833 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8834 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8835 esac; \
1b6c0831
L
8836 module_srcdir=fixincludes; \
8837 $(SHELL) \
8838 $$s/$$module_srcdir/configure \
8839 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8840 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8841 --target=${target_alias} \
4fa63067 8842 || exit 1
a90ef4bf 8843@endif fixincludes
4fa63067 8844
a7254363
PB
8845
8846
201f096f 8847.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8848maybe-configure-stage1-fixincludes:
8849@if fixincludes-bootstrap
8850maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8851configure-stage1-fixincludes:
8852 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8853 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8854 @r=`${PWD_COMMAND}`; export r; \
8855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8856 TFLAGS="$(STAGE1_TFLAGS)"; \
8857 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8858 $(HOST_EXPORTS) \
8859 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8860 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8861 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8862 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8863 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8864 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8865 case $(srcdir) in \
8866 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8867 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8868 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8869 esac; \
1b6c0831
L
8870 module_srcdir=fixincludes; \
8871 $(SHELL) $$s/$$module_srcdir/configure \
8872 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8873 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8874 --target=${target_alias} \
8875 \
201f096f 8876 $(STAGE1_CONFIGURE_FLAGS)
8877@endif fixincludes-bootstrap
8878
8879.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8880maybe-configure-stage2-fixincludes:
8881@if fixincludes-bootstrap
8882maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8883configure-stage2-fixincludes:
8884 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8885 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8886 @r=`${PWD_COMMAND}`; export r; \
8887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8888 TFLAGS="$(STAGE2_TFLAGS)"; \
8889 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8890 $(HOST_EXPORTS) \
8891 $(POSTSTAGE1_HOST_EXPORTS) \
8892 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8893 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8894 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8895 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8896 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8897 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8898 case $(srcdir) in \
8899 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8900 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8901 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8902 esac; \
1b6c0831
L
8903 module_srcdir=fixincludes; \
8904 $(SHELL) $$s/$$module_srcdir/configure \
8905 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8906 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8907 --target=${target_alias} \
22121df0 8908 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8909 $(STAGE2_CONFIGURE_FLAGS)
8910@endif fixincludes-bootstrap
8911
8912.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8913maybe-configure-stage3-fixincludes:
8914@if fixincludes-bootstrap
8915maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8916configure-stage3-fixincludes:
8917 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8918 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8919 @r=`${PWD_COMMAND}`; export r; \
8920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8921 TFLAGS="$(STAGE3_TFLAGS)"; \
8922 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8923 $(HOST_EXPORTS) \
8924 $(POSTSTAGE1_HOST_EXPORTS) \
8925 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8926 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8927 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8928 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8929 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8930 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8931 case $(srcdir) in \
8932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8933 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8935 esac; \
1b6c0831
L
8936 module_srcdir=fixincludes; \
8937 $(SHELL) $$s/$$module_srcdir/configure \
8938 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8939 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8940 --target=${target_alias} \
22121df0 8941 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8942 $(STAGE3_CONFIGURE_FLAGS)
8943@endif fixincludes-bootstrap
8944
8945.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8946maybe-configure-stage4-fixincludes:
8947@if fixincludes-bootstrap
8948maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8949configure-stage4-fixincludes:
8950 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8951 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8952 @r=`${PWD_COMMAND}`; export r; \
8953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8954 TFLAGS="$(STAGE4_TFLAGS)"; \
8955 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8956 $(HOST_EXPORTS) \
8957 $(POSTSTAGE1_HOST_EXPORTS) \
8958 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8959 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8960 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8961 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8962 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8963 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8964 case $(srcdir) in \
8965 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8966 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8967 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8968 esac; \
1b6c0831
L
8969 module_srcdir=fixincludes; \
8970 $(SHELL) $$s/$$module_srcdir/configure \
8971 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8972 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8973 --target=${target_alias} \
22121df0 8974 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8975 $(STAGE4_CONFIGURE_FLAGS)
8976@endif fixincludes-bootstrap
8977
8978.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8979maybe-configure-stageprofile-fixincludes:
8980@if fixincludes-bootstrap
8981maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8982configure-stageprofile-fixincludes:
8983 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8984 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8985 @r=`${PWD_COMMAND}`; export r; \
8986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8987 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8988 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8989 $(HOST_EXPORTS) \
8990 $(POSTSTAGE1_HOST_EXPORTS) \
8991 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8992 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8993 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8994 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8996 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8997 case $(srcdir) in \
8998 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8999 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
9000 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9001 esac; \
1b6c0831
L
9002 module_srcdir=fixincludes; \
9003 $(SHELL) $$s/$$module_srcdir/configure \
9004 --srcdir=$${topdir}/$$module_srcdir \
201f096f 9005 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9006 --target=${target_alias} \
22121df0 9007 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 9008 $(STAGEprofile_CONFIGURE_FLAGS)
9009@endif fixincludes-bootstrap
9010
f948b2de
NC
9011.PHONY: configure-stagetrain-fixincludes maybe-configure-stagetrain-fixincludes
9012maybe-configure-stagetrain-fixincludes:
9013@if fixincludes-bootstrap
9014maybe-configure-stagetrain-fixincludes: configure-stagetrain-fixincludes
9015configure-stagetrain-fixincludes:
9016 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
9017 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
9018 @r=`${PWD_COMMAND}`; export r; \
9019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9020 TFLAGS="$(STAGEtrain_TFLAGS)"; \
9021 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
9022 $(HOST_EXPORTS) \
9023 $(POSTSTAGE1_HOST_EXPORTS) \
9024 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
9025 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
9026 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
9027 echo Configuring stage train in $(HOST_SUBDIR)/fixincludes; \
9028 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
9029 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
9030 case $(srcdir) in \
9031 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9032 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
9033 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9034 esac; \
9035 module_srcdir=fixincludes; \
9036 $(SHELL) $$s/$$module_srcdir/configure \
9037 --srcdir=$${topdir}/$$module_srcdir \
9038 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9039 --target=${target_alias} \
9040 --with-build-libsubdir=$(HOST_SUBDIR) \
9041 $(STAGEtrain_CONFIGURE_FLAGS)
9042@endif fixincludes-bootstrap
9043
201f096f 9044.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
9045maybe-configure-stagefeedback-fixincludes:
9046@if fixincludes-bootstrap
9047maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
9048configure-stagefeedback-fixincludes:
9049 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9050 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
9051 @r=`${PWD_COMMAND}`; export r; \
9052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9053 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9054 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
9055 $(HOST_EXPORTS) \
9056 $(POSTSTAGE1_HOST_EXPORTS) \
9057 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9058 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9059 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9060 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
9061 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 9062 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
9063 case $(srcdir) in \
9064 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9065 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
9066 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9067 esac; \
1b6c0831
L
9068 module_srcdir=fixincludes; \
9069 $(SHELL) $$s/$$module_srcdir/configure \
9070 --srcdir=$${topdir}/$$module_srcdir \
201f096f 9071 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9072 --target=${target_alias} \
22121df0 9073 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 9074 $(STAGEfeedback_CONFIGURE_FLAGS)
9075@endif fixincludes-bootstrap
9076
f948b2de
NC
9077.PHONY: configure-stageautoprofile-fixincludes maybe-configure-stageautoprofile-fixincludes
9078maybe-configure-stageautoprofile-fixincludes:
9079@if fixincludes-bootstrap
9080maybe-configure-stageautoprofile-fixincludes: configure-stageautoprofile-fixincludes
9081configure-stageautoprofile-fixincludes:
9082 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
9083 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
9084 @r=`${PWD_COMMAND}`; export r; \
9085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9086 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
9087 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
9088 $(HOST_EXPORTS) \
9089 $(POSTSTAGE1_HOST_EXPORTS) \
9090 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
9091 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
9092 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
9093 echo Configuring stage autoprofile in $(HOST_SUBDIR)/fixincludes; \
9094 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
9095 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
9096 case $(srcdir) in \
9097 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9098 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
9099 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9100 esac; \
9101 module_srcdir=fixincludes; \
9102 $(SHELL) $$s/$$module_srcdir/configure \
9103 --srcdir=$${topdir}/$$module_srcdir \
9104 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9105 --target=${target_alias} \
9106 --with-build-libsubdir=$(HOST_SUBDIR) \
9107 $(STAGEautoprofile_CONFIGURE_FLAGS)
9108@endif fixincludes-bootstrap
9109
9110.PHONY: configure-stageautofeedback-fixincludes maybe-configure-stageautofeedback-fixincludes
9111maybe-configure-stageautofeedback-fixincludes:
9112@if fixincludes-bootstrap
9113maybe-configure-stageautofeedback-fixincludes: configure-stageautofeedback-fixincludes
9114configure-stageautofeedback-fixincludes:
9115 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
9116 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
9117 @r=`${PWD_COMMAND}`; export r; \
9118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9119 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
9120 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
9121 $(HOST_EXPORTS) \
9122 $(POSTSTAGE1_HOST_EXPORTS) \
9123 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
9124 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
9125 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
9126 echo Configuring stage autofeedback in $(HOST_SUBDIR)/fixincludes; \
9127 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
9128 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
9129 case $(srcdir) in \
9130 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9131 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
9132 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9133 esac; \
9134 module_srcdir=fixincludes; \
9135 $(SHELL) $$s/$$module_srcdir/configure \
9136 --srcdir=$${topdir}/$$module_srcdir \
9137 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
9138 --target=${target_alias} \
9139 --with-build-libsubdir=$(HOST_SUBDIR) \
9140 $(STAGEautofeedback_CONFIGURE_FLAGS)
9141@endif fixincludes-bootstrap
9142
201f096f 9143
9144
d545f33b
PB
9145
9146
a90ef4bf
JM
9147.PHONY: all-fixincludes maybe-all-fixincludes
9148maybe-all-fixincludes:
4f0ef2d8 9149@if gcc-bootstrap
a90ef4bf 9150all-fixincludes: stage_current
4f0ef2d8 9151@endif gcc-bootstrap
a90ef4bf
JM
9152@if fixincludes
9153TARGET-fixincludes=all
9154maybe-all-fixincludes: all-fixincludes
9155all-fixincludes: configure-fixincludes
4fa63067
NN
9156 @r=`${PWD_COMMAND}`; export r; \
9157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 9158 $(HOST_EXPORTS) \
a90ef4bf 9159 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 9160 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9161 $(TARGET-fixincludes))
9162@endif fixincludes
4fa63067 9163
a7254363 9164
d545f33b 9165
201f096f 9166.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
9167.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
9168maybe-all-stage1-fixincludes:
9169maybe-clean-stage1-fixincludes:
9170@if fixincludes-bootstrap
9171maybe-all-stage1-fixincludes: all-stage1-fixincludes
9172all-stage1: all-stage1-fixincludes
9173TARGET-stage1-fixincludes = $(TARGET-fixincludes)
9174all-stage1-fixincludes: configure-stage1-fixincludes
9175 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9176 @r=`${PWD_COMMAND}`; export r; \
9177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9178 TFLAGS="$(STAGE1_TFLAGS)"; \
9179 $(HOST_EXPORTS) \
9180 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 9181 \
201f096f 9182 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9183 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 9184 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
201f096f 9185 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9186 LIBCFLAGS="$(LIBCFLAGS)" \
9187 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9188 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9189 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9190 $(EXTRA_HOST_FLAGS) \
9191 $(STAGE1_FLAGS_TO_PASS) \
05a13254 9192 TFLAGS="$(STAGE1_TFLAGS)" \
201f096f 9193 $(TARGET-stage1-fixincludes)
9194
9195maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
9196clean-stage1: clean-stage1-fixincludes
9197clean-stage1-fixincludes:
9198 @if [ $(current_stage) = stage1 ]; then \
9199 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
9200 else \
9201 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
9202 $(MAKE) stage1-start; \
9203 fi; \
9204 cd $(HOST_SUBDIR)/fixincludes && \
9205 $(MAKE) $(EXTRA_HOST_FLAGS) \
9206 $(STAGE1_FLAGS_TO_PASS) clean
9207@endif fixincludes-bootstrap
9208
9209
9210.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
9211.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
9212maybe-all-stage2-fixincludes:
9213maybe-clean-stage2-fixincludes:
9214@if fixincludes-bootstrap
9215maybe-all-stage2-fixincludes: all-stage2-fixincludes
9216all-stage2: all-stage2-fixincludes
9217TARGET-stage2-fixincludes = $(TARGET-fixincludes)
9218all-stage2-fixincludes: configure-stage2-fixincludes
9219 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9220 @r=`${PWD_COMMAND}`; export r; \
9221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9222 TFLAGS="$(STAGE2_TFLAGS)"; \
9223 $(HOST_EXPORTS) \
9224 $(POSTSTAGE1_HOST_EXPORTS) \
9225 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 9226 \
201f096f 9227 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9228 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 9229 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
201f096f 9230 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9231 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9232 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9233 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9234 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9235 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9236 TFLAGS="$(STAGE2_TFLAGS)" \
201f096f 9237 $(TARGET-stage2-fixincludes)
9238
9239maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
9240clean-stage2: clean-stage2-fixincludes
9241clean-stage2-fixincludes:
9242 @if [ $(current_stage) = stage2 ]; then \
9243 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
9244 else \
9245 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
9246 $(MAKE) stage2-start; \
9247 fi; \
9248 cd $(HOST_SUBDIR)/fixincludes && \
9249 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
9250@endif fixincludes-bootstrap
9251
9252
9253.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
9254.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
9255maybe-all-stage3-fixincludes:
9256maybe-clean-stage3-fixincludes:
9257@if fixincludes-bootstrap
9258maybe-all-stage3-fixincludes: all-stage3-fixincludes
9259all-stage3: all-stage3-fixincludes
9260TARGET-stage3-fixincludes = $(TARGET-fixincludes)
9261all-stage3-fixincludes: configure-stage3-fixincludes
9262 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9263 @r=`${PWD_COMMAND}`; export r; \
9264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9265 TFLAGS="$(STAGE3_TFLAGS)"; \
9266 $(HOST_EXPORTS) \
9267 $(POSTSTAGE1_HOST_EXPORTS) \
9268 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 9269 \
201f096f 9270 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9271 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 9272 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
201f096f 9273 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9274 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9275 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9276 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9277 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9278 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9279 TFLAGS="$(STAGE3_TFLAGS)" \
201f096f 9280 $(TARGET-stage3-fixincludes)
9281
9282maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
9283clean-stage3: clean-stage3-fixincludes
9284clean-stage3-fixincludes:
9285 @if [ $(current_stage) = stage3 ]; then \
9286 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
9287 else \
9288 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
9289 $(MAKE) stage3-start; \
9290 fi; \
9291 cd $(HOST_SUBDIR)/fixincludes && \
9292 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
9293@endif fixincludes-bootstrap
9294
9295
9296.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
9297.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
9298maybe-all-stage4-fixincludes:
9299maybe-clean-stage4-fixincludes:
9300@if fixincludes-bootstrap
9301maybe-all-stage4-fixincludes: all-stage4-fixincludes
9302all-stage4: all-stage4-fixincludes
9303TARGET-stage4-fixincludes = $(TARGET-fixincludes)
9304all-stage4-fixincludes: configure-stage4-fixincludes
9305 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9306 @r=`${PWD_COMMAND}`; export r; \
9307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9308 TFLAGS="$(STAGE4_TFLAGS)"; \
9309 $(HOST_EXPORTS) \
9310 $(POSTSTAGE1_HOST_EXPORTS) \
9311 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 9312 \
201f096f 9313 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9314 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 9315 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
201f096f 9316 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9317 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9318 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9319 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9320 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9321 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9322 TFLAGS="$(STAGE4_TFLAGS)" \
201f096f 9323 $(TARGET-stage4-fixincludes)
9324
9325maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
9326clean-stage4: clean-stage4-fixincludes
9327clean-stage4-fixincludes:
9328 @if [ $(current_stage) = stage4 ]; then \
9329 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
9330 else \
9331 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
9332 $(MAKE) stage4-start; \
9333 fi; \
9334 cd $(HOST_SUBDIR)/fixincludes && \
9335 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
9336@endif fixincludes-bootstrap
9337
9338
9339.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
9340.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
9341maybe-all-stageprofile-fixincludes:
9342maybe-clean-stageprofile-fixincludes:
9343@if fixincludes-bootstrap
9344maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
9345all-stageprofile: all-stageprofile-fixincludes
9346TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
9347all-stageprofile-fixincludes: configure-stageprofile-fixincludes
9348 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9349 @r=`${PWD_COMMAND}`; export r; \
9350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9351 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9352 $(HOST_EXPORTS) \
9353 $(POSTSTAGE1_HOST_EXPORTS) \
9354 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 9355 \
201f096f 9356 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9357 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 9358 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
201f096f 9359 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9360 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9361 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9362 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9363 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9364 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9365 TFLAGS="$(STAGEprofile_TFLAGS)" \
201f096f 9366 $(TARGET-stageprofile-fixincludes)
9367
9368maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
9369clean-stageprofile: clean-stageprofile-fixincludes
9370clean-stageprofile-fixincludes:
9371 @if [ $(current_stage) = stageprofile ]; then \
9372 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
9373 else \
9374 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
9375 $(MAKE) stageprofile-start; \
9376 fi; \
9377 cd $(HOST_SUBDIR)/fixincludes && \
9378 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
9379@endif fixincludes-bootstrap
9380
9381
f948b2de
NC
9382.PHONY: all-stagetrain-fixincludes maybe-all-stagetrain-fixincludes
9383.PHONY: clean-stagetrain-fixincludes maybe-clean-stagetrain-fixincludes
9384maybe-all-stagetrain-fixincludes:
9385maybe-clean-stagetrain-fixincludes:
9386@if fixincludes-bootstrap
9387maybe-all-stagetrain-fixincludes: all-stagetrain-fixincludes
9388all-stagetrain: all-stagetrain-fixincludes
9389TARGET-stagetrain-fixincludes = $(TARGET-fixincludes)
9390all-stagetrain-fixincludes: configure-stagetrain-fixincludes
9391 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
9392 @r=`${PWD_COMMAND}`; export r; \
9393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9394 TFLAGS="$(STAGEtrain_TFLAGS)"; \
9395 $(HOST_EXPORTS) \
9396 $(POSTSTAGE1_HOST_EXPORTS) \
9397 cd $(HOST_SUBDIR)/fixincludes && \
9398 \
9399 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9400 CFLAGS="$(STAGEtrain_CFLAGS)" \
9401 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
9402 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
9403 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
9404 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9405 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9406 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9407 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9408 TFLAGS="$(STAGEtrain_TFLAGS)" \
9409 $(TARGET-stagetrain-fixincludes)
9410
9411maybe-clean-stagetrain-fixincludes: clean-stagetrain-fixincludes
9412clean-stagetrain: clean-stagetrain-fixincludes
9413clean-stagetrain-fixincludes:
9414 @if [ $(current_stage) = stagetrain ]; then \
9415 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
9416 else \
9417 [ -f $(HOST_SUBDIR)/stagetrain-fixincludes/Makefile ] || exit 0; \
9418 $(MAKE) stagetrain-start; \
9419 fi; \
9420 cd $(HOST_SUBDIR)/fixincludes && \
9421 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
9422@endif fixincludes-bootstrap
9423
9424
201f096f 9425.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
9426.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
9427maybe-all-stagefeedback-fixincludes:
9428maybe-clean-stagefeedback-fixincludes:
9429@if fixincludes-bootstrap
9430maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
9431all-stagefeedback: all-stagefeedback-fixincludes
9432TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
9433all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
9434 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9435 @r=`${PWD_COMMAND}`; export r; \
9436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9437 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9438 $(HOST_EXPORTS) \
9439 $(POSTSTAGE1_HOST_EXPORTS) \
9440 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 9441 \
201f096f 9442 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9443 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 9444 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
201f096f 9445 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9446 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9447 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9448 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9449 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9450 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9451 TFLAGS="$(STAGEfeedback_TFLAGS)" \
201f096f 9452 $(TARGET-stagefeedback-fixincludes)
9453
9454maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
9455clean-stagefeedback: clean-stagefeedback-fixincludes
9456clean-stagefeedback-fixincludes:
9457 @if [ $(current_stage) = stagefeedback ]; then \
9458 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
9459 else \
9460 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
9461 $(MAKE) stagefeedback-start; \
9462 fi; \
9463 cd $(HOST_SUBDIR)/fixincludes && \
9464 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
9465@endif fixincludes-bootstrap
9466
9467
f948b2de
NC
9468.PHONY: all-stageautoprofile-fixincludes maybe-all-stageautoprofile-fixincludes
9469.PHONY: clean-stageautoprofile-fixincludes maybe-clean-stageautoprofile-fixincludes
9470maybe-all-stageautoprofile-fixincludes:
9471maybe-clean-stageautoprofile-fixincludes:
9472@if fixincludes-bootstrap
9473maybe-all-stageautoprofile-fixincludes: all-stageautoprofile-fixincludes
9474all-stageautoprofile: all-stageautoprofile-fixincludes
9475TARGET-stageautoprofile-fixincludes = $(TARGET-fixincludes)
9476all-stageautoprofile-fixincludes: configure-stageautoprofile-fixincludes
9477 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
9478 @r=`${PWD_COMMAND}`; export r; \
9479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9480 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
9481 $(HOST_EXPORTS) \
9482 $(POSTSTAGE1_HOST_EXPORTS) \
9483 cd $(HOST_SUBDIR)/fixincludes && \
9484 $$s/gcc/config/i386/$(AUTO_PROFILE) \
9485 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9486 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
9487 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
9488 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
9489 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
9490 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9491 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9492 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9493 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9494 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
9495 $(TARGET-stageautoprofile-fixincludes)
9496
9497maybe-clean-stageautoprofile-fixincludes: clean-stageautoprofile-fixincludes
9498clean-stageautoprofile: clean-stageautoprofile-fixincludes
9499clean-stageautoprofile-fixincludes:
9500 @if [ $(current_stage) = stageautoprofile ]; then \
9501 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
9502 else \
9503 [ -f $(HOST_SUBDIR)/stageautoprofile-fixincludes/Makefile ] || exit 0; \
9504 $(MAKE) stageautoprofile-start; \
9505 fi; \
9506 cd $(HOST_SUBDIR)/fixincludes && \
9507 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
9508@endif fixincludes-bootstrap
9509
9510
9511.PHONY: all-stageautofeedback-fixincludes maybe-all-stageautofeedback-fixincludes
9512.PHONY: clean-stageautofeedback-fixincludes maybe-clean-stageautofeedback-fixincludes
9513maybe-all-stageautofeedback-fixincludes:
9514maybe-clean-stageautofeedback-fixincludes:
9515@if fixincludes-bootstrap
9516maybe-all-stageautofeedback-fixincludes: all-stageautofeedback-fixincludes
9517all-stageautofeedback: all-stageautofeedback-fixincludes
9518TARGET-stageautofeedback-fixincludes = $(TARGET-fixincludes)
9519all-stageautofeedback-fixincludes: configure-stageautofeedback-fixincludes
9520 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
9521 @r=`${PWD_COMMAND}`; export r; \
9522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9523 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
9524 $(HOST_EXPORTS) \
9525 $(POSTSTAGE1_HOST_EXPORTS) \
9526 cd $(HOST_SUBDIR)/fixincludes && \
9527 \
9528 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9529 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
9530 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
9531 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
9532 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
9533 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9534 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9535 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9536 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
9537 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
9538 $(TARGET-stageautofeedback-fixincludes)
9539
9540maybe-clean-stageautofeedback-fixincludes: clean-stageautofeedback-fixincludes
9541clean-stageautofeedback: clean-stageautofeedback-fixincludes
9542clean-stageautofeedback-fixincludes:
9543 @if [ $(current_stage) = stageautofeedback ]; then \
9544 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
9545 else \
9546 [ -f $(HOST_SUBDIR)/stageautofeedback-fixincludes/Makefile ] || exit 0; \
9547 $(MAKE) stageautofeedback-start; \
9548 fi; \
9549 cd $(HOST_SUBDIR)/fixincludes && \
9550 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
9551@endif fixincludes-bootstrap
9552
9553
201f096f 9554
9555
d545f33b 9556
a90ef4bf
JM
9557.PHONY: check-fixincludes maybe-check-fixincludes
9558maybe-check-fixincludes:
9559@if fixincludes
9560maybe-check-fixincludes: check-fixincludes
4fa63067 9561
a90ef4bf 9562check-fixincludes:
0aed8855 9563 @: $(MAKE); $(unstage)
4fa63067
NN
9564 @r=`${PWD_COMMAND}`; export r; \
9565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9566 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9567 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 9568 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 9569
a90ef4bf 9570@endif fixincludes
4fa63067 9571
a90ef4bf
JM
9572.PHONY: install-fixincludes maybe-install-fixincludes
9573maybe-install-fixincludes:
9574@if fixincludes
9575maybe-install-fixincludes: install-fixincludes
4fa63067 9576
a90ef4bf 9577install-fixincludes: installdirs
0aed8855 9578 @: $(MAKE); $(unstage)
4fa63067
NN
9579 @r=`${PWD_COMMAND}`; export r; \
9580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9581 $(HOST_EXPORTS) \
a90ef4bf 9582 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 9583 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 9584
a90ef4bf 9585@endif fixincludes
4fa63067 9586
a90ef4bf
JM
9587.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
9588maybe-install-strip-fixincludes:
9589@if fixincludes
9590maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 9591
a90ef4bf 9592install-strip-fixincludes: installdirs
9b980aa1
RW
9593 @: $(MAKE); $(unstage)
9594 @r=`${PWD_COMMAND}`; export r; \
9595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9596 $(HOST_EXPORTS) \
a90ef4bf 9597 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
9598 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9599
a90ef4bf 9600@endif fixincludes
9b980aa1 9601
56a8fe78 9602# Other targets (info, dvi, pdf, etc.)
4fa63067 9603
a90ef4bf
JM
9604.PHONY: maybe-info-fixincludes info-fixincludes
9605maybe-info-fixincludes:
9606@if fixincludes
9607maybe-info-fixincludes: info-fixincludes
4fa63067 9608
a90ef4bf
JM
9609info-fixincludes: \
9610 configure-fixincludes
a90ef4bf 9611 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
9612 r=`${PWD_COMMAND}`; export r; \
9613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9614 $(HOST_EXPORTS) \
b813574b 9615 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9617 done; \
22121df0 9618 echo "Doing info in fixincludes"; \
a90ef4bf 9619 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
9620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9622 "RANLIB=$${RANLIB}" \
0c24b341 9623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9624 info) \
2a4cbe27
NN
9625 || exit 1
9626
a90ef4bf 9627@endif fixincludes
2a4cbe27 9628
a90ef4bf
JM
9629.PHONY: maybe-dvi-fixincludes dvi-fixincludes
9630maybe-dvi-fixincludes:
9631@if fixincludes
9632maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 9633
a90ef4bf
JM
9634dvi-fixincludes: \
9635 configure-fixincludes
a90ef4bf 9636 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
9637 r=`${PWD_COMMAND}`; export r; \
9638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9639 $(HOST_EXPORTS) \
b813574b 9640 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9642 done; \
22121df0 9643 echo "Doing dvi in fixincludes"; \
a90ef4bf 9644 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
9645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9647 "RANLIB=$${RANLIB}" \
0c24b341 9648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9649 dvi) \
2a4cbe27
NN
9650 || exit 1
9651
a90ef4bf 9652@endif fixincludes
2a4cbe27 9653
a90ef4bf
JM
9654.PHONY: maybe-pdf-fixincludes pdf-fixincludes
9655maybe-pdf-fixincludes:
9656@if fixincludes
9657maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 9658
a90ef4bf
JM
9659pdf-fixincludes: \
9660 configure-fixincludes
a90ef4bf 9661 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
9662 r=`${PWD_COMMAND}`; export r; \
9663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9664 $(HOST_EXPORTS) \
9665 for flag in $(EXTRA_HOST_FLAGS) ; do \
9666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9667 done; \
22121df0 9668 echo "Doing pdf in fixincludes"; \
a90ef4bf 9669 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
9670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9672 "RANLIB=$${RANLIB}" \
0c24b341 9673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9674 pdf) \
9675 || exit 1
9676
a90ef4bf 9677@endif fixincludes
56a8fe78 9678
a90ef4bf
JM
9679.PHONY: maybe-html-fixincludes html-fixincludes
9680maybe-html-fixincludes:
9681@if fixincludes
9682maybe-html-fixincludes: html-fixincludes
6d389afc 9683
a90ef4bf
JM
9684html-fixincludes: \
9685 configure-fixincludes
a90ef4bf 9686 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
9687 r=`${PWD_COMMAND}`; export r; \
9688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9689 $(HOST_EXPORTS) \
9690 for flag in $(EXTRA_HOST_FLAGS) ; do \
9691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9692 done; \
22121df0 9693 echo "Doing html in fixincludes"; \
a90ef4bf 9694 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
9695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9697 "RANLIB=$${RANLIB}" \
0c24b341 9698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9699 html) \
9700 || exit 1
9701
a90ef4bf 9702@endif fixincludes
6d389afc 9703
a90ef4bf
JM
9704.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
9705maybe-TAGS-fixincludes:
9706@if fixincludes
9707maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 9708
a90ef4bf
JM
9709# fixincludes doesn't support TAGS.
9710TAGS-fixincludes:
2a4cbe27 9711
a90ef4bf 9712@endif fixincludes
2a4cbe27 9713
a90ef4bf
JM
9714.PHONY: maybe-install-info-fixincludes install-info-fixincludes
9715maybe-install-info-fixincludes:
9716@if fixincludes
9717maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 9718
a90ef4bf
JM
9719install-info-fixincludes: \
9720 configure-fixincludes \
9721 info-fixincludes
a90ef4bf 9722 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
9723 r=`${PWD_COMMAND}`; export r; \
9724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9725 $(HOST_EXPORTS) \
b813574b 9726 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9728 done; \
22121df0 9729 echo "Doing install-info in fixincludes"; \
a90ef4bf 9730 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
9731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9733 "RANLIB=$${RANLIB}" \
0c24b341 9734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9735 install-info) \
2a4cbe27
NN
9736 || exit 1
9737
a90ef4bf 9738@endif fixincludes
2a4cbe27 9739
a90ef4bf
JM
9740.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
9741maybe-install-pdf-fixincludes:
9742@if fixincludes
9743maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 9744
a90ef4bf
JM
9745install-pdf-fixincludes: \
9746 configure-fixincludes \
9747 pdf-fixincludes
a90ef4bf 9748 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
9749 r=`${PWD_COMMAND}`; export r; \
9750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9751 $(HOST_EXPORTS) \
9752 for flag in $(EXTRA_HOST_FLAGS) ; do \
9753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9754 done; \
22121df0 9755 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 9756 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
9757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9759 "RANLIB=$${RANLIB}" \
0c24b341 9760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
9761 install-pdf) \
9762 || exit 1
9763
a90ef4bf 9764@endif fixincludes
a3ca38d2 9765
a90ef4bf
JM
9766.PHONY: maybe-install-html-fixincludes install-html-fixincludes
9767maybe-install-html-fixincludes:
9768@if fixincludes
9769maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 9770
a90ef4bf
JM
9771install-html-fixincludes: \
9772 configure-fixincludes \
9773 html-fixincludes
a90ef4bf 9774 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
9775 r=`${PWD_COMMAND}`; export r; \
9776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9777 $(HOST_EXPORTS) \
9778 for flag in $(EXTRA_HOST_FLAGS) ; do \
9779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9780 done; \
22121df0 9781 echo "Doing install-html in fixincludes"; \
a90ef4bf 9782 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
9783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9785 "RANLIB=$${RANLIB}" \
0c24b341 9786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
9787 install-html) \
9788 || exit 1
9789
a90ef4bf 9790@endif fixincludes
108a6f8e 9791
a90ef4bf
JM
9792.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
9793maybe-installcheck-fixincludes:
9794@if fixincludes
9795maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 9796
a90ef4bf
JM
9797installcheck-fixincludes: \
9798 configure-fixincludes
a90ef4bf 9799 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
9800 r=`${PWD_COMMAND}`; export r; \
9801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9802 $(HOST_EXPORTS) \
b813574b 9803 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9805 done; \
22121df0 9806 echo "Doing installcheck in fixincludes"; \
a90ef4bf 9807 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
9808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9810 "RANLIB=$${RANLIB}" \
0c24b341 9811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9812 installcheck) \
2a4cbe27
NN
9813 || exit 1
9814
a90ef4bf 9815@endif fixincludes
2a4cbe27 9816
a90ef4bf
JM
9817.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
9818maybe-mostlyclean-fixincludes:
9819@if fixincludes
9820maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 9821
a90ef4bf 9822mostlyclean-fixincludes:
a90ef4bf 9823 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
9824 r=`${PWD_COMMAND}`; export r; \
9825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9826 $(HOST_EXPORTS) \
b813574b 9827 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9829 done; \
22121df0 9830 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 9831 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
9832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9834 "RANLIB=$${RANLIB}" \
0c24b341 9835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9836 mostlyclean) \
2a4cbe27
NN
9837 || exit 1
9838
a90ef4bf 9839@endif fixincludes
2a4cbe27 9840
a90ef4bf
JM
9841.PHONY: maybe-clean-fixincludes clean-fixincludes
9842maybe-clean-fixincludes:
9843@if fixincludes
9844maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 9845
a90ef4bf 9846clean-fixincludes:
a90ef4bf 9847 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
9848 r=`${PWD_COMMAND}`; export r; \
9849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9850 $(HOST_EXPORTS) \
b813574b 9851 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9853 done; \
22121df0 9854 echo "Doing clean in fixincludes"; \
a90ef4bf 9855 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
9856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9858 "RANLIB=$${RANLIB}" \
0c24b341 9859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9860 clean) \
2a4cbe27
NN
9861 || exit 1
9862
a90ef4bf 9863@endif fixincludes
2a4cbe27 9864
a90ef4bf
JM
9865.PHONY: maybe-distclean-fixincludes distclean-fixincludes
9866maybe-distclean-fixincludes:
9867@if fixincludes
9868maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 9869
a90ef4bf 9870distclean-fixincludes:
a90ef4bf 9871 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
9872 r=`${PWD_COMMAND}`; export r; \
9873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9874 $(HOST_EXPORTS) \
b813574b 9875 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9877 done; \
22121df0 9878 echo "Doing distclean in fixincludes"; \
a90ef4bf 9879 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
9880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9882 "RANLIB=$${RANLIB}" \
0c24b341 9883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9884 distclean) \
2a4cbe27
NN
9885 || exit 1
9886
a90ef4bf 9887@endif fixincludes
2a4cbe27 9888
a90ef4bf
JM
9889.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
9890maybe-maintainer-clean-fixincludes:
9891@if fixincludes
9892maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 9893
a90ef4bf 9894maintainer-clean-fixincludes:
a90ef4bf 9895 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
9896 r=`${PWD_COMMAND}`; export r; \
9897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9898 $(HOST_EXPORTS) \
b813574b 9899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9901 done; \
22121df0 9902 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 9903 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
9904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9906 "RANLIB=$${RANLIB}" \
0c24b341 9907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9908 maintainer-clean) \
2a4cbe27
NN
9909 || exit 1
9910
a90ef4bf 9911@endif fixincludes
2a4cbe27 9912
2a4cbe27 9913
a7254363 9914
a90ef4bf
JM
9915.PHONY: configure-flex maybe-configure-flex
9916maybe-configure-flex:
f9806fa5 9917@if gcc-bootstrap
a90ef4bf 9918configure-flex: stage_current
f9806fa5 9919@endif gcc-bootstrap
a90ef4bf
JM
9920@if flex
9921maybe-configure-flex: configure-flex
9922configure-flex:
f9806fa5
DE
9923 @: $(MAKE); $(unstage)
9924 @r=`${PWD_COMMAND}`; export r; \
9925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9926 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 9927 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 9928 $(HOST_EXPORTS) \
a90ef4bf
JM
9929 echo Configuring in $(HOST_SUBDIR)/flex; \
9930 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
9931 case $(srcdir) in \
9932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9933 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
9934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9935 esac; \
1b6c0831
L
9936 module_srcdir=flex; \
9937 $(SHELL) \
9938 $$s/$$module_srcdir/configure \
9939 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 9940 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9941 --target=${target_alias} \
f9806fa5 9942 || exit 1
a90ef4bf 9943@endif flex
f9806fa5
DE
9944
9945
9946
9947
9948
a90ef4bf
JM
9949.PHONY: all-flex maybe-all-flex
9950maybe-all-flex:
f9806fa5 9951@if gcc-bootstrap
a90ef4bf 9952all-flex: stage_current
f9806fa5 9953@endif gcc-bootstrap
a90ef4bf
JM
9954@if flex
9955TARGET-flex=all
9956maybe-all-flex: all-flex
9957all-flex: configure-flex
f9806fa5
DE
9958 @: $(MAKE); $(unstage)
9959 @r=`${PWD_COMMAND}`; export r; \
9960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 9961 $(HOST_EXPORTS) \
a90ef4bf 9962 (cd $(HOST_SUBDIR)/flex && \
b3676d82 9963 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9964 $(TARGET-flex))
9965@endif flex
f9806fa5
DE
9966
9967
9968
9969
a90ef4bf
JM
9970.PHONY: check-flex maybe-check-flex
9971maybe-check-flex:
9972@if flex
9973maybe-check-flex: check-flex
f9806fa5 9974
a90ef4bf
JM
9975# This module is only tested in a native toolchain.
9976check-flex:
f9806fa5 9977 @: $(MAKE); $(unstage)
22121df0 9978 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
9979 r=`${PWD_COMMAND}`; export r; \
9980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9981 $(HOST_EXPORTS) \
a90ef4bf 9982 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 9983 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 9984 fi
f9806fa5 9985
a90ef4bf 9986@endif flex
f9806fa5 9987
a90ef4bf
JM
9988.PHONY: install-flex maybe-install-flex
9989maybe-install-flex:
9990@if flex
9991maybe-install-flex: install-flex
f9806fa5 9992
a90ef4bf 9993install-flex: installdirs
f9806fa5
DE
9994 @: $(MAKE); $(unstage)
9995 @r=`${PWD_COMMAND}`; export r; \
9996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9997 $(HOST_EXPORTS) \
a90ef4bf 9998 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9999 $(MAKE) $(FLAGS_TO_PASS) install)
10000
a90ef4bf 10001@endif flex
f9806fa5 10002
a90ef4bf
JM
10003.PHONY: install-strip-flex maybe-install-strip-flex
10004maybe-install-strip-flex:
10005@if flex
10006maybe-install-strip-flex: install-strip-flex
9b980aa1 10007
a90ef4bf 10008install-strip-flex: installdirs
9b980aa1
RW
10009 @: $(MAKE); $(unstage)
10010 @r=`${PWD_COMMAND}`; export r; \
10011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10012 $(HOST_EXPORTS) \
a90ef4bf 10013 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
10014 $(MAKE) $(FLAGS_TO_PASS) install-strip)
10015
a90ef4bf 10016@endif flex
9b980aa1 10017
f9806fa5
DE
10018# Other targets (info, dvi, pdf, etc.)
10019
a90ef4bf
JM
10020.PHONY: maybe-info-flex info-flex
10021maybe-info-flex:
10022@if flex
10023maybe-info-flex: info-flex
f9806fa5 10024
a90ef4bf
JM
10025info-flex: \
10026 configure-flex
f9806fa5 10027 @: $(MAKE); $(unstage)
a90ef4bf 10028 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10029 r=`${PWD_COMMAND}`; export r; \
10030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10031 $(HOST_EXPORTS) \
10032 for flag in $(EXTRA_HOST_FLAGS) ; do \
10033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10034 done; \
22121df0 10035 echo "Doing info in flex"; \
a90ef4bf 10036 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10039 "RANLIB=$${RANLIB}" \
10040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10041 info) \
10042 || exit 1
10043
a90ef4bf 10044@endif flex
f9806fa5 10045
a90ef4bf
JM
10046.PHONY: maybe-dvi-flex dvi-flex
10047maybe-dvi-flex:
10048@if flex
10049maybe-dvi-flex: dvi-flex
f9806fa5 10050
a90ef4bf
JM
10051dvi-flex: \
10052 configure-flex
f9806fa5 10053 @: $(MAKE); $(unstage)
a90ef4bf 10054 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10055 r=`${PWD_COMMAND}`; export r; \
10056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10057 $(HOST_EXPORTS) \
10058 for flag in $(EXTRA_HOST_FLAGS) ; do \
10059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10060 done; \
22121df0 10061 echo "Doing dvi in flex"; \
a90ef4bf 10062 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10065 "RANLIB=$${RANLIB}" \
10066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10067 dvi) \
10068 || exit 1
10069
a90ef4bf 10070@endif flex
f9806fa5 10071
a90ef4bf
JM
10072.PHONY: maybe-pdf-flex pdf-flex
10073maybe-pdf-flex:
10074@if flex
10075maybe-pdf-flex: pdf-flex
f9806fa5 10076
a90ef4bf
JM
10077pdf-flex: \
10078 configure-flex
f9806fa5 10079 @: $(MAKE); $(unstage)
a90ef4bf 10080 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10081 r=`${PWD_COMMAND}`; export r; \
10082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10083 $(HOST_EXPORTS) \
10084 for flag in $(EXTRA_HOST_FLAGS) ; do \
10085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10086 done; \
22121df0 10087 echo "Doing pdf in flex"; \
a90ef4bf 10088 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10091 "RANLIB=$${RANLIB}" \
10092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10093 pdf) \
10094 || exit 1
10095
a90ef4bf 10096@endif flex
f9806fa5 10097
a90ef4bf
JM
10098.PHONY: maybe-html-flex html-flex
10099maybe-html-flex:
10100@if flex
10101maybe-html-flex: html-flex
f9806fa5 10102
a90ef4bf
JM
10103html-flex: \
10104 configure-flex
f9806fa5 10105 @: $(MAKE); $(unstage)
a90ef4bf 10106 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10107 r=`${PWD_COMMAND}`; export r; \
10108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10109 $(HOST_EXPORTS) \
10110 for flag in $(EXTRA_HOST_FLAGS) ; do \
10111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10112 done; \
22121df0 10113 echo "Doing html in flex"; \
a90ef4bf 10114 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10117 "RANLIB=$${RANLIB}" \
10118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10119 html) \
10120 || exit 1
10121
a90ef4bf 10122@endif flex
f9806fa5 10123
a90ef4bf
JM
10124.PHONY: maybe-TAGS-flex TAGS-flex
10125maybe-TAGS-flex:
10126@if flex
10127maybe-TAGS-flex: TAGS-flex
f9806fa5 10128
a90ef4bf
JM
10129TAGS-flex: \
10130 configure-flex
f9806fa5 10131 @: $(MAKE); $(unstage)
a90ef4bf 10132 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10133 r=`${PWD_COMMAND}`; export r; \
10134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10135 $(HOST_EXPORTS) \
10136 for flag in $(EXTRA_HOST_FLAGS) ; do \
10137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10138 done; \
22121df0 10139 echo "Doing TAGS in flex"; \
a90ef4bf 10140 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10143 "RANLIB=$${RANLIB}" \
10144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10145 TAGS) \
10146 || exit 1
10147
a90ef4bf 10148@endif flex
f9806fa5 10149
a90ef4bf
JM
10150.PHONY: maybe-install-info-flex install-info-flex
10151maybe-install-info-flex:
10152@if flex
10153maybe-install-info-flex: install-info-flex
f9806fa5 10154
a90ef4bf
JM
10155install-info-flex: \
10156 configure-flex \
10157 info-flex
f9806fa5 10158 @: $(MAKE); $(unstage)
a90ef4bf 10159 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10160 r=`${PWD_COMMAND}`; export r; \
10161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10162 $(HOST_EXPORTS) \
10163 for flag in $(EXTRA_HOST_FLAGS) ; do \
10164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10165 done; \
22121df0 10166 echo "Doing install-info in flex"; \
a90ef4bf 10167 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10170 "RANLIB=$${RANLIB}" \
10171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10172 install-info) \
10173 || exit 1
10174
a90ef4bf 10175@endif flex
f9806fa5 10176
a90ef4bf
JM
10177.PHONY: maybe-install-pdf-flex install-pdf-flex
10178maybe-install-pdf-flex:
10179@if flex
10180maybe-install-pdf-flex: install-pdf-flex
f9806fa5 10181
a90ef4bf
JM
10182install-pdf-flex: \
10183 configure-flex \
10184 pdf-flex
f9806fa5 10185 @: $(MAKE); $(unstage)
a90ef4bf 10186 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10187 r=`${PWD_COMMAND}`; export r; \
10188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10189 $(HOST_EXPORTS) \
10190 for flag in $(EXTRA_HOST_FLAGS) ; do \
10191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10192 done; \
22121df0 10193 echo "Doing install-pdf in flex"; \
a90ef4bf 10194 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10197 "RANLIB=$${RANLIB}" \
10198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10199 install-pdf) \
10200 || exit 1
10201
a90ef4bf 10202@endif flex
f9806fa5 10203
a90ef4bf
JM
10204.PHONY: maybe-install-html-flex install-html-flex
10205maybe-install-html-flex:
10206@if flex
10207maybe-install-html-flex: install-html-flex
f9806fa5 10208
a90ef4bf
JM
10209install-html-flex: \
10210 configure-flex \
10211 html-flex
f9806fa5 10212 @: $(MAKE); $(unstage)
a90ef4bf 10213 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10214 r=`${PWD_COMMAND}`; export r; \
10215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10216 $(HOST_EXPORTS) \
10217 for flag in $(EXTRA_HOST_FLAGS) ; do \
10218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10219 done; \
22121df0 10220 echo "Doing install-html in flex"; \
a90ef4bf 10221 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10224 "RANLIB=$${RANLIB}" \
10225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10226 install-html) \
10227 || exit 1
10228
a90ef4bf 10229@endif flex
f9806fa5 10230
a90ef4bf
JM
10231.PHONY: maybe-installcheck-flex installcheck-flex
10232maybe-installcheck-flex:
10233@if flex
10234maybe-installcheck-flex: installcheck-flex
f9806fa5 10235
a90ef4bf
JM
10236installcheck-flex: \
10237 configure-flex
f9806fa5 10238 @: $(MAKE); $(unstage)
a90ef4bf 10239 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10240 r=`${PWD_COMMAND}`; export r; \
10241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10242 $(HOST_EXPORTS) \
10243 for flag in $(EXTRA_HOST_FLAGS) ; do \
10244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10245 done; \
22121df0 10246 echo "Doing installcheck in flex"; \
a90ef4bf 10247 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10250 "RANLIB=$${RANLIB}" \
10251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10252 installcheck) \
10253 || exit 1
10254
a90ef4bf 10255@endif flex
f9806fa5 10256
a90ef4bf
JM
10257.PHONY: maybe-mostlyclean-flex mostlyclean-flex
10258maybe-mostlyclean-flex:
10259@if flex
10260maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 10261
a90ef4bf 10262mostlyclean-flex:
f9806fa5 10263 @: $(MAKE); $(unstage)
a90ef4bf 10264 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10265 r=`${PWD_COMMAND}`; export r; \
10266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10267 $(HOST_EXPORTS) \
10268 for flag in $(EXTRA_HOST_FLAGS) ; do \
10269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10270 done; \
22121df0 10271 echo "Doing mostlyclean in flex"; \
a90ef4bf 10272 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10275 "RANLIB=$${RANLIB}" \
10276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10277 mostlyclean) \
10278 || exit 1
10279
a90ef4bf 10280@endif flex
f9806fa5 10281
a90ef4bf
JM
10282.PHONY: maybe-clean-flex clean-flex
10283maybe-clean-flex:
10284@if flex
10285maybe-clean-flex: clean-flex
f9806fa5 10286
a90ef4bf 10287clean-flex:
f9806fa5 10288 @: $(MAKE); $(unstage)
a90ef4bf 10289 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10290 r=`${PWD_COMMAND}`; export r; \
10291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10292 $(HOST_EXPORTS) \
10293 for flag in $(EXTRA_HOST_FLAGS) ; do \
10294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10295 done; \
22121df0 10296 echo "Doing clean in flex"; \
a90ef4bf 10297 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10300 "RANLIB=$${RANLIB}" \
10301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10302 clean) \
10303 || exit 1
10304
a90ef4bf 10305@endif flex
f9806fa5 10306
a90ef4bf
JM
10307.PHONY: maybe-distclean-flex distclean-flex
10308maybe-distclean-flex:
10309@if flex
10310maybe-distclean-flex: distclean-flex
f9806fa5 10311
a90ef4bf 10312distclean-flex:
f9806fa5 10313 @: $(MAKE); $(unstage)
a90ef4bf 10314 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10315 r=`${PWD_COMMAND}`; export r; \
10316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10317 $(HOST_EXPORTS) \
10318 for flag in $(EXTRA_HOST_FLAGS) ; do \
10319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10320 done; \
22121df0 10321 echo "Doing distclean in flex"; \
a90ef4bf 10322 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10325 "RANLIB=$${RANLIB}" \
10326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10327 distclean) \
10328 || exit 1
10329
a90ef4bf 10330@endif flex
f9806fa5 10331
a90ef4bf
JM
10332.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
10333maybe-maintainer-clean-flex:
10334@if flex
10335maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 10336
a90ef4bf 10337maintainer-clean-flex:
f9806fa5 10338 @: $(MAKE); $(unstage)
a90ef4bf 10339 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
10340 r=`${PWD_COMMAND}`; export r; \
10341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10342 $(HOST_EXPORTS) \
10343 for flag in $(EXTRA_HOST_FLAGS) ; do \
10344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10345 done; \
22121df0 10346 echo "Doing maintainer-clean in flex"; \
a90ef4bf 10347 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
10348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10350 "RANLIB=$${RANLIB}" \
10351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
10352 maintainer-clean) \
10353 || exit 1
10354
a90ef4bf 10355@endif flex
f9806fa5
DE
10356
10357
10358
a90ef4bf
JM
10359.PHONY: configure-gas maybe-configure-gas
10360maybe-configure-gas:
4f0ef2d8 10361@if gcc-bootstrap
a90ef4bf 10362configure-gas: stage_current
4f0ef2d8 10363@endif gcc-bootstrap
a90ef4bf
JM
10364@if gas
10365maybe-configure-gas: configure-gas
10366configure-gas:
c52c6897 10367 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10369 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 10370 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 10371 $(HOST_EXPORTS) \
a90ef4bf
JM
10372 echo Configuring in $(HOST_SUBDIR)/gas; \
10373 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 10374 case $(srcdir) in \
b00612cc 10375 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10376 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 10377 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10378 esac; \
1b6c0831
L
10379 module_srcdir=gas; \
10380 $(SHELL) \
10381 $$s/$$module_srcdir/configure \
10382 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10383 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10384 --target=${target_alias} \
4fa63067 10385 || exit 1
a90ef4bf 10386@endif gas
a7254363 10387
d545f33b
PB
10388
10389
a90ef4bf
JM
10390.PHONY: configure-stage1-gas maybe-configure-stage1-gas
10391maybe-configure-stage1-gas:
10392@if gas-bootstrap
10393maybe-configure-stage1-gas: configure-stage1-gas
10394configure-stage1-gas:
10395 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10396 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
10397 @r=`${PWD_COMMAND}`; export r; \
10398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10399 TFLAGS="$(STAGE1_TFLAGS)"; \
10400 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
10401 $(HOST_EXPORTS) \
10402 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10403 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10404 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10405 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
10406 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
10407 cd $(HOST_SUBDIR)/gas || exit 1; \
10408 case $(srcdir) in \
10409 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10410 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
10411 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10412 esac; \
1b6c0831
L
10413 module_srcdir=gas; \
10414 $(SHELL) $$s/$$module_srcdir/configure \
10415 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10416 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10417 --target=${target_alias} \
10418 \
a90ef4bf
JM
10419 $(STAGE1_CONFIGURE_FLAGS)
10420@endif gas-bootstrap
4fa63067 10421
a90ef4bf
JM
10422.PHONY: configure-stage2-gas maybe-configure-stage2-gas
10423maybe-configure-stage2-gas:
10424@if gas-bootstrap
10425maybe-configure-stage2-gas: configure-stage2-gas
10426configure-stage2-gas:
10427 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10428 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
10429 @r=`${PWD_COMMAND}`; export r; \
10430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10431 TFLAGS="$(STAGE2_TFLAGS)"; \
10432 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 10433 $(HOST_EXPORTS) \
a90ef4bf
JM
10434 $(POSTSTAGE1_HOST_EXPORTS) \
10435 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10436 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10437 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10438 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
10439 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
10440 cd $(HOST_SUBDIR)/gas || exit 1; \
10441 case $(srcdir) in \
10442 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10443 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
10444 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10445 esac; \
1b6c0831
L
10446 module_srcdir=gas; \
10447 $(SHELL) $$s/$$module_srcdir/configure \
10448 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10449 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10450 --target=${target_alias} \
22121df0 10451 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10452 $(STAGE2_CONFIGURE_FLAGS)
10453@endif gas-bootstrap
4fa63067 10454
a90ef4bf
JM
10455.PHONY: configure-stage3-gas maybe-configure-stage3-gas
10456maybe-configure-stage3-gas:
10457@if gas-bootstrap
10458maybe-configure-stage3-gas: configure-stage3-gas
10459configure-stage3-gas:
10460 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10461 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
10462 @r=`${PWD_COMMAND}`; export r; \
10463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10464 TFLAGS="$(STAGE3_TFLAGS)"; \
10465 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 10466 $(HOST_EXPORTS) \
a90ef4bf
JM
10467 $(POSTSTAGE1_HOST_EXPORTS) \
10468 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10469 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10470 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10471 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
10472 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
10473 cd $(HOST_SUBDIR)/gas || exit 1; \
10474 case $(srcdir) in \
10475 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10476 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
10477 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10478 esac; \
1b6c0831
L
10479 module_srcdir=gas; \
10480 $(SHELL) $$s/$$module_srcdir/configure \
10481 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10482 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10483 --target=${target_alias} \
22121df0 10484 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10485 $(STAGE3_CONFIGURE_FLAGS)
10486@endif gas-bootstrap
9b980aa1 10487
a90ef4bf
JM
10488.PHONY: configure-stage4-gas maybe-configure-stage4-gas
10489maybe-configure-stage4-gas:
10490@if gas-bootstrap
10491maybe-configure-stage4-gas: configure-stage4-gas
10492configure-stage4-gas:
10493 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10494 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
10495 @r=`${PWD_COMMAND}`; export r; \
10496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10497 TFLAGS="$(STAGE4_TFLAGS)"; \
10498 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 10499 $(HOST_EXPORTS) \
a90ef4bf
JM
10500 $(POSTSTAGE1_HOST_EXPORTS) \
10501 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10502 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10503 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10504 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
10505 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
10506 cd $(HOST_SUBDIR)/gas || exit 1; \
10507 case $(srcdir) in \
10508 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10509 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
10510 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10511 esac; \
1b6c0831
L
10512 module_srcdir=gas; \
10513 $(SHELL) $$s/$$module_srcdir/configure \
10514 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10515 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10516 --target=${target_alias} \
22121df0 10517 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10518 $(STAGE4_CONFIGURE_FLAGS)
10519@endif gas-bootstrap
4fa63067 10520
a90ef4bf
JM
10521.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
10522maybe-configure-stageprofile-gas:
10523@if gas-bootstrap
10524maybe-configure-stageprofile-gas: configure-stageprofile-gas
10525configure-stageprofile-gas:
10526 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10527 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
10528 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10530 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10531 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 10532 $(HOST_EXPORTS) \
a90ef4bf
JM
10533 $(POSTSTAGE1_HOST_EXPORTS) \
10534 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10535 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10536 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10537 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
10538 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
10539 cd $(HOST_SUBDIR)/gas || exit 1; \
10540 case $(srcdir) in \
10541 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10542 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
10543 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10544 esac; \
1b6c0831
L
10545 module_srcdir=gas; \
10546 $(SHELL) $$s/$$module_srcdir/configure \
10547 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10548 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10549 --target=${target_alias} \
22121df0 10550 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10551 $(STAGEprofile_CONFIGURE_FLAGS)
10552@endif gas-bootstrap
2a4cbe27 10553
f948b2de
NC
10554.PHONY: configure-stagetrain-gas maybe-configure-stagetrain-gas
10555maybe-configure-stagetrain-gas:
10556@if gas-bootstrap
10557maybe-configure-stagetrain-gas: configure-stagetrain-gas
10558configure-stagetrain-gas:
10559 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
10560 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
10561 @r=`${PWD_COMMAND}`; export r; \
10562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10563 TFLAGS="$(STAGEtrain_TFLAGS)"; \
10564 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
10565 $(HOST_EXPORTS) \
10566 $(POSTSTAGE1_HOST_EXPORTS) \
10567 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
10568 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
10569 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
10570 echo Configuring stage train in $(HOST_SUBDIR)/gas; \
10571 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
10572 cd $(HOST_SUBDIR)/gas || exit 1; \
10573 case $(srcdir) in \
10574 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10575 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
10576 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10577 esac; \
10578 module_srcdir=gas; \
10579 $(SHELL) $$s/$$module_srcdir/configure \
10580 --srcdir=$${topdir}/$$module_srcdir \
10581 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
10582 --target=${target_alias} \
10583 --with-build-libsubdir=$(HOST_SUBDIR) \
10584 $(STAGEtrain_CONFIGURE_FLAGS)
10585@endif gas-bootstrap
10586
a90ef4bf
JM
10587.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
10588maybe-configure-stagefeedback-gas:
10589@if gas-bootstrap
10590maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
10591configure-stagefeedback-gas:
10592 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10593 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
10594 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10596 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10597 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 10598 $(HOST_EXPORTS) \
a90ef4bf
JM
10599 $(POSTSTAGE1_HOST_EXPORTS) \
10600 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10601 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10602 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10603 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
10604 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
10605 cd $(HOST_SUBDIR)/gas || exit 1; \
10606 case $(srcdir) in \
10607 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10608 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
10609 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10610 esac; \
1b6c0831
L
10611 module_srcdir=gas; \
10612 $(SHELL) $$s/$$module_srcdir/configure \
10613 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10614 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10615 --target=${target_alias} \
22121df0 10616 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10617 $(STAGEfeedback_CONFIGURE_FLAGS)
10618@endif gas-bootstrap
2a4cbe27 10619
f948b2de
NC
10620.PHONY: configure-stageautoprofile-gas maybe-configure-stageautoprofile-gas
10621maybe-configure-stageautoprofile-gas:
10622@if gas-bootstrap
10623maybe-configure-stageautoprofile-gas: configure-stageautoprofile-gas
10624configure-stageautoprofile-gas:
10625 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
10626 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
10627 @r=`${PWD_COMMAND}`; export r; \
10628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10629 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
10630 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
10631 $(HOST_EXPORTS) \
10632 $(POSTSTAGE1_HOST_EXPORTS) \
10633 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
10634 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
10635 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
10636 echo Configuring stage autoprofile in $(HOST_SUBDIR)/gas; \
10637 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
10638 cd $(HOST_SUBDIR)/gas || exit 1; \
10639 case $(srcdir) in \
10640 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10641 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
10642 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10643 esac; \
10644 module_srcdir=gas; \
10645 $(SHELL) $$s/$$module_srcdir/configure \
10646 --srcdir=$${topdir}/$$module_srcdir \
10647 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
10648 --target=${target_alias} \
10649 --with-build-libsubdir=$(HOST_SUBDIR) \
10650 $(STAGEautoprofile_CONFIGURE_FLAGS)
10651@endif gas-bootstrap
10652
10653.PHONY: configure-stageautofeedback-gas maybe-configure-stageautofeedback-gas
10654maybe-configure-stageautofeedback-gas:
10655@if gas-bootstrap
10656maybe-configure-stageautofeedback-gas: configure-stageautofeedback-gas
10657configure-stageautofeedback-gas:
10658 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
10659 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
10660 @r=`${PWD_COMMAND}`; export r; \
10661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10662 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
10663 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
10664 $(HOST_EXPORTS) \
10665 $(POSTSTAGE1_HOST_EXPORTS) \
10666 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
10667 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
10668 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
10669 echo Configuring stage autofeedback in $(HOST_SUBDIR)/gas; \
10670 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
10671 cd $(HOST_SUBDIR)/gas || exit 1; \
10672 case $(srcdir) in \
10673 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10674 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
10675 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10676 esac; \
10677 module_srcdir=gas; \
10678 $(SHELL) $$s/$$module_srcdir/configure \
10679 --srcdir=$${topdir}/$$module_srcdir \
10680 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
10681 --target=${target_alias} \
10682 --with-build-libsubdir=$(HOST_SUBDIR) \
10683 $(STAGEautofeedback_CONFIGURE_FLAGS)
10684@endif gas-bootstrap
10685
56a8fe78 10686
56a8fe78 10687
56a8fe78 10688
6d389afc 10689
a90ef4bf
JM
10690.PHONY: all-gas maybe-all-gas
10691maybe-all-gas:
10692@if gcc-bootstrap
10693all-gas: stage_current
10694@endif gcc-bootstrap
10695@if gas
10696TARGET-gas=all
10697maybe-all-gas: all-gas
10698all-gas: configure-gas
10699 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10701 $(HOST_EXPORTS) \
10702 (cd $(HOST_SUBDIR)/gas && \
b3676d82 10703 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
10704 $(TARGET-gas))
10705@endif gas
6d389afc 10706
6d389afc 10707
2a4cbe27 10708
a90ef4bf
JM
10709.PHONY: all-stage1-gas maybe-all-stage1-gas
10710.PHONY: clean-stage1-gas maybe-clean-stage1-gas
10711maybe-all-stage1-gas:
10712maybe-clean-stage1-gas:
10713@if gas-bootstrap
10714maybe-all-stage1-gas: all-stage1-gas
10715all-stage1: all-stage1-gas
10716TARGET-stage1-gas = $(TARGET-gas)
10717all-stage1-gas: configure-stage1-gas
10718 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10719 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10721 TFLAGS="$(STAGE1_TFLAGS)"; \
10722 $(HOST_EXPORTS) \
10723 cd $(HOST_SUBDIR)/gas && \
05a13254 10724 \
a90ef4bf
JM
10725 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10726 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 10727 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
10728 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10729 LIBCFLAGS="$(LIBCFLAGS)" \
10730 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10731 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10732 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10733 $(EXTRA_HOST_FLAGS) \
10734 $(STAGE1_FLAGS_TO_PASS) \
05a13254 10735 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 10736 $(TARGET-stage1-gas)
2a4cbe27 10737
a90ef4bf
JM
10738maybe-clean-stage1-gas: clean-stage1-gas
10739clean-stage1: clean-stage1-gas
10740clean-stage1-gas:
10741 @if [ $(current_stage) = stage1 ]; then \
10742 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
10743 else \
10744 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
10745 $(MAKE) stage1-start; \
10746 fi; \
10747 cd $(HOST_SUBDIR)/gas && \
10748 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10749 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10750@endif gas-bootstrap
2a4cbe27 10751
2a4cbe27 10752
a90ef4bf
JM
10753.PHONY: all-stage2-gas maybe-all-stage2-gas
10754.PHONY: clean-stage2-gas maybe-clean-stage2-gas
10755maybe-all-stage2-gas:
10756maybe-clean-stage2-gas:
10757@if gas-bootstrap
10758maybe-all-stage2-gas: all-stage2-gas
10759all-stage2: all-stage2-gas
10760TARGET-stage2-gas = $(TARGET-gas)
10761all-stage2-gas: configure-stage2-gas
10762 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10763 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10765 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 10766 $(HOST_EXPORTS) \
a90ef4bf
JM
10767 $(POSTSTAGE1_HOST_EXPORTS) \
10768 cd $(HOST_SUBDIR)/gas && \
05a13254 10769 \
a90ef4bf
JM
10770 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10771 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 10772 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
10773 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10774 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10775 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10776 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10777 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10778 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 10779 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 10780 $(TARGET-stage2-gas)
2a4cbe27 10781
a90ef4bf
JM
10782maybe-clean-stage2-gas: clean-stage2-gas
10783clean-stage2: clean-stage2-gas
10784clean-stage2-gas:
10785 @if [ $(current_stage) = stage2 ]; then \
10786 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
10787 else \
10788 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
10789 $(MAKE) stage2-start; \
10790 fi; \
10791 cd $(HOST_SUBDIR)/gas && \
b3676d82 10792 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10793@endif gas-bootstrap
2a4cbe27 10794
2a4cbe27 10795
a90ef4bf
JM
10796.PHONY: all-stage3-gas maybe-all-stage3-gas
10797.PHONY: clean-stage3-gas maybe-clean-stage3-gas
10798maybe-all-stage3-gas:
10799maybe-clean-stage3-gas:
10800@if gas-bootstrap
10801maybe-all-stage3-gas: all-stage3-gas
10802all-stage3: all-stage3-gas
10803TARGET-stage3-gas = $(TARGET-gas)
10804all-stage3-gas: configure-stage3-gas
10805 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10806 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10808 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 10809 $(HOST_EXPORTS) \
a90ef4bf
JM
10810 $(POSTSTAGE1_HOST_EXPORTS) \
10811 cd $(HOST_SUBDIR)/gas && \
05a13254 10812 \
a90ef4bf
JM
10813 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10814 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 10815 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
10816 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10817 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10818 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10819 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10820 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10821 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 10822 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 10823 $(TARGET-stage3-gas)
2a4cbe27 10824
a90ef4bf
JM
10825maybe-clean-stage3-gas: clean-stage3-gas
10826clean-stage3: clean-stage3-gas
10827clean-stage3-gas:
10828 @if [ $(current_stage) = stage3 ]; then \
10829 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
10830 else \
10831 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
10832 $(MAKE) stage3-start; \
10833 fi; \
10834 cd $(HOST_SUBDIR)/gas && \
b3676d82 10835 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10836@endif gas-bootstrap
2a4cbe27 10837
2a4cbe27 10838
a90ef4bf
JM
10839.PHONY: all-stage4-gas maybe-all-stage4-gas
10840.PHONY: clean-stage4-gas maybe-clean-stage4-gas
10841maybe-all-stage4-gas:
10842maybe-clean-stage4-gas:
10843@if gas-bootstrap
10844maybe-all-stage4-gas: all-stage4-gas
10845all-stage4: all-stage4-gas
10846TARGET-stage4-gas = $(TARGET-gas)
10847all-stage4-gas: configure-stage4-gas
10848 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10849 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10851 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10852 $(HOST_EXPORTS) \
a90ef4bf
JM
10853 $(POSTSTAGE1_HOST_EXPORTS) \
10854 cd $(HOST_SUBDIR)/gas && \
05a13254 10855 \
a90ef4bf
JM
10856 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10857 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 10858 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
10859 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10860 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10861 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10862 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10863 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10864 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 10865 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 10866 $(TARGET-stage4-gas)
2a4cbe27 10867
a90ef4bf
JM
10868maybe-clean-stage4-gas: clean-stage4-gas
10869clean-stage4: clean-stage4-gas
10870clean-stage4-gas:
10871 @if [ $(current_stage) = stage4 ]; then \
10872 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
10873 else \
10874 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
10875 $(MAKE) stage4-start; \
10876 fi; \
10877 cd $(HOST_SUBDIR)/gas && \
b3676d82 10878 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10879@endif gas-bootstrap
2a4cbe27 10880
2a4cbe27 10881
a90ef4bf
JM
10882.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
10883.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
10884maybe-all-stageprofile-gas:
10885maybe-clean-stageprofile-gas:
10886@if gas-bootstrap
10887maybe-all-stageprofile-gas: all-stageprofile-gas
10888all-stageprofile: all-stageprofile-gas
10889TARGET-stageprofile-gas = $(TARGET-gas)
10890all-stageprofile-gas: configure-stageprofile-gas
10891 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10892 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10894 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10895 $(HOST_EXPORTS) \
a90ef4bf
JM
10896 $(POSTSTAGE1_HOST_EXPORTS) \
10897 cd $(HOST_SUBDIR)/gas && \
05a13254 10898 \
a90ef4bf
JM
10899 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10900 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 10901 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
10902 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10903 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10904 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10905 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10906 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10907 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 10908 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 10909 $(TARGET-stageprofile-gas)
4fa63067 10910
a90ef4bf
JM
10911maybe-clean-stageprofile-gas: clean-stageprofile-gas
10912clean-stageprofile: clean-stageprofile-gas
10913clean-stageprofile-gas:
10914 @if [ $(current_stage) = stageprofile ]; then \
10915 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
10916 else \
10917 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
10918 $(MAKE) stageprofile-start; \
10919 fi; \
10920 cd $(HOST_SUBDIR)/gas && \
b3676d82 10921 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 10922@endif gas-bootstrap
4fa63067 10923
a7254363 10924
f948b2de
NC
10925.PHONY: all-stagetrain-gas maybe-all-stagetrain-gas
10926.PHONY: clean-stagetrain-gas maybe-clean-stagetrain-gas
10927maybe-all-stagetrain-gas:
10928maybe-clean-stagetrain-gas:
10929@if gas-bootstrap
10930maybe-all-stagetrain-gas: all-stagetrain-gas
10931all-stagetrain: all-stagetrain-gas
10932TARGET-stagetrain-gas = $(TARGET-gas)
10933all-stagetrain-gas: configure-stagetrain-gas
10934 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
10935 @r=`${PWD_COMMAND}`; export r; \
10936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10937 TFLAGS="$(STAGEtrain_TFLAGS)"; \
10938 $(HOST_EXPORTS) \
10939 $(POSTSTAGE1_HOST_EXPORTS) \
10940 cd $(HOST_SUBDIR)/gas && \
10941 \
10942 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10943 CFLAGS="$(STAGEtrain_CFLAGS)" \
10944 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
10945 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
10946 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
10947 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10948 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10949 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10950 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
10951 TFLAGS="$(STAGEtrain_TFLAGS)" \
10952 $(TARGET-stagetrain-gas)
10953
10954maybe-clean-stagetrain-gas: clean-stagetrain-gas
10955clean-stagetrain: clean-stagetrain-gas
10956clean-stagetrain-gas:
10957 @if [ $(current_stage) = stagetrain ]; then \
10958 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
10959 else \
10960 [ -f $(HOST_SUBDIR)/stagetrain-gas/Makefile ] || exit 0; \
10961 $(MAKE) stagetrain-start; \
10962 fi; \
10963 cd $(HOST_SUBDIR)/gas && \
10964 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
10965@endif gas-bootstrap
10966
10967
a90ef4bf
JM
10968.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
10969.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
10970maybe-all-stagefeedback-gas:
10971maybe-clean-stagefeedback-gas:
10972@if gas-bootstrap
10973maybe-all-stagefeedback-gas: all-stagefeedback-gas
10974all-stagefeedback: all-stagefeedback-gas
10975TARGET-stagefeedback-gas = $(TARGET-gas)
10976all-stagefeedback-gas: configure-stagefeedback-gas
10977 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10978 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10980 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10981 $(HOST_EXPORTS) \
10982 $(POSTSTAGE1_HOST_EXPORTS) \
10983 cd $(HOST_SUBDIR)/gas && \
05a13254 10984 \
a90ef4bf
JM
10985 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10986 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 10987 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
10988 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10989 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10990 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10991 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10992 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10993 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 10994 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 10995 $(TARGET-stagefeedback-gas)
d545f33b 10996
a90ef4bf
JM
10997maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
10998clean-stagefeedback: clean-stagefeedback-gas
10999clean-stagefeedback-gas:
11000 @if [ $(current_stage) = stagefeedback ]; then \
11001 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
11002 else \
11003 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
11004 $(MAKE) stagefeedback-start; \
11005 fi; \
11006 cd $(HOST_SUBDIR)/gas && \
b3676d82 11007 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 11008@endif gas-bootstrap
d545f33b 11009
2a4cbe27 11010
f948b2de
NC
11011.PHONY: all-stageautoprofile-gas maybe-all-stageautoprofile-gas
11012.PHONY: clean-stageautoprofile-gas maybe-clean-stageautoprofile-gas
11013maybe-all-stageautoprofile-gas:
11014maybe-clean-stageautoprofile-gas:
11015@if gas-bootstrap
11016maybe-all-stageautoprofile-gas: all-stageautoprofile-gas
11017all-stageautoprofile: all-stageautoprofile-gas
11018TARGET-stageautoprofile-gas = $(TARGET-gas)
11019all-stageautoprofile-gas: configure-stageautoprofile-gas
11020 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
11021 @r=`${PWD_COMMAND}`; export r; \
11022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11023 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
11024 $(HOST_EXPORTS) \
11025 $(POSTSTAGE1_HOST_EXPORTS) \
11026 cd $(HOST_SUBDIR)/gas && \
11027 $$s/gcc/config/i386/$(AUTO_PROFILE) \
11028 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11029 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
11030 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
11031 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
11032 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
11033 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11034 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11035 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11036 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11037 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
11038 $(TARGET-stageautoprofile-gas)
11039
11040maybe-clean-stageautoprofile-gas: clean-stageautoprofile-gas
11041clean-stageautoprofile: clean-stageautoprofile-gas
11042clean-stageautoprofile-gas:
11043 @if [ $(current_stage) = stageautoprofile ]; then \
11044 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
11045 else \
11046 [ -f $(HOST_SUBDIR)/stageautoprofile-gas/Makefile ] || exit 0; \
11047 $(MAKE) stageautoprofile-start; \
11048 fi; \
11049 cd $(HOST_SUBDIR)/gas && \
11050 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
11051@endif gas-bootstrap
11052
11053
11054.PHONY: all-stageautofeedback-gas maybe-all-stageautofeedback-gas
11055.PHONY: clean-stageautofeedback-gas maybe-clean-stageautofeedback-gas
11056maybe-all-stageautofeedback-gas:
11057maybe-clean-stageautofeedback-gas:
11058@if gas-bootstrap
11059maybe-all-stageautofeedback-gas: all-stageautofeedback-gas
11060all-stageautofeedback: all-stageautofeedback-gas
11061TARGET-stageautofeedback-gas = $(TARGET-gas)
11062all-stageautofeedback-gas: configure-stageautofeedback-gas
11063 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
11064 @r=`${PWD_COMMAND}`; export r; \
11065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11066 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
11067 $(HOST_EXPORTS) \
11068 $(POSTSTAGE1_HOST_EXPORTS) \
11069 cd $(HOST_SUBDIR)/gas && \
11070 \
11071 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11072 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
11073 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
11074 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
11075 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
11076 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11077 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11078 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11079 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11080 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
11081 $(TARGET-stageautofeedback-gas)
11082
11083maybe-clean-stageautofeedback-gas: clean-stageautofeedback-gas
11084clean-stageautofeedback: clean-stageautofeedback-gas
11085clean-stageautofeedback-gas:
11086 @if [ $(current_stage) = stageautofeedback ]; then \
11087 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
11088 else \
11089 [ -f $(HOST_SUBDIR)/stageautofeedback-gas/Makefile ] || exit 0; \
11090 $(MAKE) stageautofeedback-start; \
11091 fi; \
11092 cd $(HOST_SUBDIR)/gas && \
11093 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
11094@endif gas-bootstrap
11095
11096
a7254363 11097
d545f33b
PB
11098
11099
a90ef4bf
JM
11100.PHONY: check-gas maybe-check-gas
11101maybe-check-gas:
11102@if gas
11103maybe-check-gas: check-gas
2a4cbe27 11104
a90ef4bf 11105check-gas:
0aed8855 11106 @: $(MAKE); $(unstage)
4fa63067 11107 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11109 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11110 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 11111 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11112
a90ef4bf 11113@endif gas
2a4cbe27 11114
a90ef4bf
JM
11115.PHONY: install-gas maybe-install-gas
11116maybe-install-gas:
11117@if gas
11118maybe-install-gas: install-gas
2a4cbe27 11119
a90ef4bf 11120install-gas: installdirs
0aed8855 11121 @: $(MAKE); $(unstage)
4fa63067 11122 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11124 $(HOST_EXPORTS) \
a90ef4bf 11125 (cd $(HOST_SUBDIR)/gas && \
2da12f12 11126 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 11127
a90ef4bf 11128@endif gas
2a4cbe27 11129
a90ef4bf
JM
11130.PHONY: install-strip-gas maybe-install-strip-gas
11131maybe-install-strip-gas:
11132@if gas
11133maybe-install-strip-gas: install-strip-gas
9b980aa1 11134
a90ef4bf 11135install-strip-gas: installdirs
9b980aa1
RW
11136 @: $(MAKE); $(unstage)
11137 @r=`${PWD_COMMAND}`; export r; \
11138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11139 $(HOST_EXPORTS) \
a90ef4bf 11140 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
11141 $(MAKE) $(FLAGS_TO_PASS) install-strip)
11142
a90ef4bf 11143@endif gas
9b980aa1 11144
56a8fe78 11145# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11146
a90ef4bf
JM
11147.PHONY: maybe-info-gas info-gas
11148maybe-info-gas:
11149@if gas
11150maybe-info-gas: info-gas
2a4cbe27 11151
a90ef4bf
JM
11152info-gas: \
11153 configure-gas
11154 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
11155 r=`${PWD_COMMAND}`; export r; \
11156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11157 $(HOST_EXPORTS) \
b813574b 11158 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11160 done; \
22121df0 11161 echo "Doing info in gas"; \
a90ef4bf 11162 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
11163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11165 "RANLIB=$${RANLIB}" \
0c24b341 11166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11167 info) \
2a4cbe27
NN
11168 || exit 1
11169
a90ef4bf 11170@endif gas
2a4cbe27 11171
a90ef4bf
JM
11172.PHONY: maybe-dvi-gas dvi-gas
11173maybe-dvi-gas:
11174@if gas
11175maybe-dvi-gas: dvi-gas
2a4cbe27 11176
a90ef4bf
JM
11177dvi-gas: \
11178 configure-gas
11179 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
11180 r=`${PWD_COMMAND}`; export r; \
11181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11182 $(HOST_EXPORTS) \
b813574b 11183 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11185 done; \
22121df0 11186 echo "Doing dvi in gas"; \
a90ef4bf 11187 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
11188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11190 "RANLIB=$${RANLIB}" \
0c24b341 11191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11192 dvi) \
2a4cbe27
NN
11193 || exit 1
11194
a90ef4bf 11195@endif gas
2a4cbe27 11196
a90ef4bf
JM
11197.PHONY: maybe-pdf-gas pdf-gas
11198maybe-pdf-gas:
11199@if gas
11200maybe-pdf-gas: pdf-gas
56a8fe78 11201
a90ef4bf
JM
11202pdf-gas: \
11203 configure-gas
11204 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
11205 r=`${PWD_COMMAND}`; export r; \
11206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11207 $(HOST_EXPORTS) \
11208 for flag in $(EXTRA_HOST_FLAGS) ; do \
11209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11210 done; \
22121df0 11211 echo "Doing pdf in gas"; \
a90ef4bf 11212 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
11213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11215 "RANLIB=$${RANLIB}" \
0c24b341 11216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11217 pdf) \
11218 || exit 1
11219
a90ef4bf 11220@endif gas
56a8fe78 11221
a90ef4bf
JM
11222.PHONY: maybe-html-gas html-gas
11223maybe-html-gas:
11224@if gas
11225maybe-html-gas: html-gas
6d389afc 11226
a90ef4bf
JM
11227html-gas: \
11228 configure-gas
11229 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
11230 r=`${PWD_COMMAND}`; export r; \
11231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
11232 $(HOST_EXPORTS) \
11233 for flag in $(EXTRA_HOST_FLAGS) ; do \
11234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11235 done; \
22121df0 11236 echo "Doing html in gas"; \
a90ef4bf 11237 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
11238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11240 "RANLIB=$${RANLIB}" \
0c24b341 11241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11242 html) \
11243 || exit 1
11244
a90ef4bf 11245@endif gas
6d389afc 11246
a90ef4bf
JM
11247.PHONY: maybe-TAGS-gas TAGS-gas
11248maybe-TAGS-gas:
11249@if gas
11250maybe-TAGS-gas: TAGS-gas
2a4cbe27 11251
a90ef4bf
JM
11252TAGS-gas: \
11253 configure-gas
11254 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
11255 r=`${PWD_COMMAND}`; export r; \
11256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11257 $(HOST_EXPORTS) \
b813574b 11258 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11260 done; \
22121df0 11261 echo "Doing TAGS in gas"; \
a90ef4bf 11262 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
11263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11265 "RANLIB=$${RANLIB}" \
0c24b341 11266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11267 TAGS) \
2a4cbe27
NN
11268 || exit 1
11269
a90ef4bf 11270@endif gas
2a4cbe27 11271
a90ef4bf
JM
11272.PHONY: maybe-install-info-gas install-info-gas
11273maybe-install-info-gas:
11274@if gas
11275maybe-install-info-gas: install-info-gas
2a4cbe27 11276
a90ef4bf
JM
11277install-info-gas: \
11278 configure-gas \
11279 info-gas
11280 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
11281 r=`${PWD_COMMAND}`; export r; \
11282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11283 $(HOST_EXPORTS) \
b813574b 11284 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11286 done; \
22121df0 11287 echo "Doing install-info in gas"; \
a90ef4bf 11288 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
11289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11291 "RANLIB=$${RANLIB}" \
0c24b341 11292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11293 install-info) \
2a4cbe27
NN
11294 || exit 1
11295
a90ef4bf 11296@endif gas
2a4cbe27 11297
a90ef4bf
JM
11298.PHONY: maybe-install-pdf-gas install-pdf-gas
11299maybe-install-pdf-gas:
11300@if gas
11301maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 11302
a90ef4bf
JM
11303install-pdf-gas: \
11304 configure-gas \
11305 pdf-gas
11306 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
11307 r=`${PWD_COMMAND}`; export r; \
11308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11309 $(HOST_EXPORTS) \
11310 for flag in $(EXTRA_HOST_FLAGS) ; do \
11311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11312 done; \
22121df0 11313 echo "Doing install-pdf in gas"; \
a90ef4bf 11314 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
11315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11317 "RANLIB=$${RANLIB}" \
0c24b341 11318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11319 install-pdf) \
11320 || exit 1
11321
a90ef4bf 11322@endif gas
a3ca38d2 11323
a90ef4bf
JM
11324.PHONY: maybe-install-html-gas install-html-gas
11325maybe-install-html-gas:
11326@if gas
11327maybe-install-html-gas: install-html-gas
108a6f8e 11328
a90ef4bf
JM
11329install-html-gas: \
11330 configure-gas \
11331 html-gas
11332 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
11333 r=`${PWD_COMMAND}`; export r; \
11334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11335 $(HOST_EXPORTS) \
11336 for flag in $(EXTRA_HOST_FLAGS) ; do \
11337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11338 done; \
22121df0 11339 echo "Doing install-html in gas"; \
a90ef4bf 11340 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
11341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11343 "RANLIB=$${RANLIB}" \
0c24b341 11344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11345 install-html) \
11346 || exit 1
11347
a90ef4bf 11348@endif gas
108a6f8e 11349
a90ef4bf
JM
11350.PHONY: maybe-installcheck-gas installcheck-gas
11351maybe-installcheck-gas:
11352@if gas
11353maybe-installcheck-gas: installcheck-gas
2a4cbe27 11354
a90ef4bf
JM
11355installcheck-gas: \
11356 configure-gas
11357 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
11358 r=`${PWD_COMMAND}`; export r; \
11359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11360 $(HOST_EXPORTS) \
b813574b 11361 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11363 done; \
22121df0 11364 echo "Doing installcheck in gas"; \
a90ef4bf 11365 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
11366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11368 "RANLIB=$${RANLIB}" \
0c24b341 11369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11370 installcheck) \
2a4cbe27
NN
11371 || exit 1
11372
a90ef4bf 11373@endif gas
2a4cbe27 11374
a90ef4bf
JM
11375.PHONY: maybe-mostlyclean-gas mostlyclean-gas
11376maybe-mostlyclean-gas:
11377@if gas
11378maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 11379
a90ef4bf
JM
11380mostlyclean-gas:
11381 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
11382 r=`${PWD_COMMAND}`; export r; \
11383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11384 $(HOST_EXPORTS) \
b813574b 11385 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11387 done; \
22121df0 11388 echo "Doing mostlyclean in gas"; \
a90ef4bf 11389 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
11390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11392 "RANLIB=$${RANLIB}" \
0c24b341 11393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11394 mostlyclean) \
2a4cbe27
NN
11395 || exit 1
11396
a90ef4bf 11397@endif gas
2a4cbe27 11398
a90ef4bf
JM
11399.PHONY: maybe-clean-gas clean-gas
11400maybe-clean-gas:
11401@if gas
11402maybe-clean-gas: clean-gas
2a4cbe27 11403
a90ef4bf
JM
11404clean-gas:
11405 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
11406 r=`${PWD_COMMAND}`; export r; \
11407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11408 $(HOST_EXPORTS) \
b813574b 11409 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11411 done; \
22121df0 11412 echo "Doing clean in gas"; \
a90ef4bf 11413 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
11414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11416 "RANLIB=$${RANLIB}" \
0c24b341 11417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11418 clean) \
2a4cbe27
NN
11419 || exit 1
11420
a90ef4bf 11421@endif gas
2a4cbe27 11422
a90ef4bf
JM
11423.PHONY: maybe-distclean-gas distclean-gas
11424maybe-distclean-gas:
11425@if gas
11426maybe-distclean-gas: distclean-gas
2a4cbe27 11427
a90ef4bf
JM
11428distclean-gas:
11429 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
11430 r=`${PWD_COMMAND}`; export r; \
11431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11432 $(HOST_EXPORTS) \
b813574b 11433 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11435 done; \
22121df0 11436 echo "Doing distclean in gas"; \
a90ef4bf 11437 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
11438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11440 "RANLIB=$${RANLIB}" \
0c24b341 11441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11442 distclean) \
2a4cbe27
NN
11443 || exit 1
11444
a90ef4bf 11445@endif gas
2a4cbe27 11446
a90ef4bf
JM
11447.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
11448maybe-maintainer-clean-gas:
11449@if gas
11450maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 11451
a90ef4bf
JM
11452maintainer-clean-gas:
11453 @[ -f ./gas/Makefile ] || exit 0; \
11454 r=`${PWD_COMMAND}`; export r; \
b40e3958 11455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11456 $(HOST_EXPORTS) \
b813574b 11457 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
11458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11459 done; \
22121df0 11460 echo "Doing maintainer-clean in gas"; \
a90ef4bf 11461 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
11462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11464 "RANLIB=$${RANLIB}" \
0c24b341 11465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11466 maintainer-clean) \
2a4cbe27
NN
11467 || exit 1
11468
a90ef4bf 11469@endif gas
2a4cbe27 11470
2a4cbe27 11471
a7254363 11472
a90ef4bf
JM
11473.PHONY: configure-gcc maybe-configure-gcc
11474maybe-configure-gcc:
4f0ef2d8 11475@if gcc-bootstrap
a90ef4bf 11476configure-gcc: stage_current
4f0ef2d8 11477@endif gcc-bootstrap
a90ef4bf
JM
11478@if gcc
11479maybe-configure-gcc: configure-gcc
11480configure-gcc:
c52c6897 11481 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11483 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 11484 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 11485 $(HOST_EXPORTS) \
a90ef4bf
JM
11486 echo Configuring in $(HOST_SUBDIR)/gcc; \
11487 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 11488 case $(srcdir) in \
b00612cc 11489 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11490 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 11491 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11492 esac; \
1b6c0831
L
11493 module_srcdir=gcc; \
11494 $(SHELL) \
11495 $$s/$$module_srcdir/configure \
11496 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11497 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11498 --target=${target_alias} \
4fa63067 11499 || exit 1
a90ef4bf 11500@endif gcc
a7254363 11501
d545f33b
PB
11502
11503
a90ef4bf
JM
11504.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
11505maybe-configure-stage1-gcc:
4f0ef2d8 11506@if gcc-bootstrap
a90ef4bf
JM
11507maybe-configure-stage1-gcc: configure-stage1-gcc
11508configure-stage1-gcc:
11509 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11510 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
11511 @r=`${PWD_COMMAND}`; export r; \
11512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11513 TFLAGS="$(STAGE1_TFLAGS)"; \
11514 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
11515 $(HOST_EXPORTS) \
11516 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11517 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11518 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11519 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
11520 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
11521 cd $(HOST_SUBDIR)/gcc || exit 1; \
11522 case $(srcdir) in \
11523 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11524 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11525 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11526 esac; \
1b6c0831
L
11527 module_srcdir=gcc; \
11528 $(SHELL) $$s/$$module_srcdir/configure \
11529 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11530 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
11531 --target=${target_alias} \
11532 \
a90ef4bf
JM
11533 $(STAGE1_CONFIGURE_FLAGS)
11534@endif gcc-bootstrap
4fa63067 11535
a90ef4bf
JM
11536.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
11537maybe-configure-stage2-gcc:
11538@if gcc-bootstrap
11539maybe-configure-stage2-gcc: configure-stage2-gcc
11540configure-stage2-gcc:
11541 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11542 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 11543 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11545 TFLAGS="$(STAGE2_TFLAGS)"; \
11546 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 11547 $(HOST_EXPORTS) \
a90ef4bf
JM
11548 $(POSTSTAGE1_HOST_EXPORTS) \
11549 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11550 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11551 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11552 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
11553 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
11554 cd $(HOST_SUBDIR)/gcc || exit 1; \
11555 case $(srcdir) in \
11556 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11557 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11558 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11559 esac; \
1b6c0831
L
11560 module_srcdir=gcc; \
11561 $(SHELL) $$s/$$module_srcdir/configure \
11562 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11563 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11564 --target=${target_alias} \
22121df0 11565 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
11566 $(STAGE2_CONFIGURE_FLAGS)
11567@endif gcc-bootstrap
9b980aa1 11568
a90ef4bf
JM
11569.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
11570maybe-configure-stage3-gcc:
11571@if gcc-bootstrap
11572maybe-configure-stage3-gcc: configure-stage3-gcc
11573configure-stage3-gcc:
11574 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11575 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
11576 @r=`${PWD_COMMAND}`; export r; \
11577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11578 TFLAGS="$(STAGE3_TFLAGS)"; \
11579 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 11580 $(HOST_EXPORTS) \
a90ef4bf
JM
11581 $(POSTSTAGE1_HOST_EXPORTS) \
11582 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11583 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11584 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11585 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
11586 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
11587 cd $(HOST_SUBDIR)/gcc || exit 1; \
11588 case $(srcdir) in \
11589 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11590 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11591 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11592 esac; \
1b6c0831
L
11593 module_srcdir=gcc; \
11594 $(SHELL) $$s/$$module_srcdir/configure \
11595 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11596 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11597 --target=${target_alias} \
22121df0 11598 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
11599 $(STAGE3_CONFIGURE_FLAGS)
11600@endif gcc-bootstrap
4fa63067 11601
a90ef4bf
JM
11602.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
11603maybe-configure-stage4-gcc:
11604@if gcc-bootstrap
11605maybe-configure-stage4-gcc: configure-stage4-gcc
11606configure-stage4-gcc:
11607 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11608 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
11609 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11611 TFLAGS="$(STAGE4_TFLAGS)"; \
11612 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 11613 $(HOST_EXPORTS) \
a90ef4bf
JM
11614 $(POSTSTAGE1_HOST_EXPORTS) \
11615 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11616 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11617 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11618 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
11619 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
11620 cd $(HOST_SUBDIR)/gcc || exit 1; \
11621 case $(srcdir) in \
11622 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11623 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11624 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11625 esac; \
1b6c0831
L
11626 module_srcdir=gcc; \
11627 $(SHELL) $$s/$$module_srcdir/configure \
11628 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11629 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11630 --target=${target_alias} \
22121df0 11631 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
11632 $(STAGE4_CONFIGURE_FLAGS)
11633@endif gcc-bootstrap
2a4cbe27 11634
a90ef4bf
JM
11635.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
11636maybe-configure-stageprofile-gcc:
11637@if gcc-bootstrap
11638maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
11639configure-stageprofile-gcc:
11640 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11641 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
11642 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11644 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11645 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 11646 $(HOST_EXPORTS) \
a90ef4bf
JM
11647 $(POSTSTAGE1_HOST_EXPORTS) \
11648 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11649 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11650 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11651 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
11652 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
11653 cd $(HOST_SUBDIR)/gcc || exit 1; \
11654 case $(srcdir) in \
11655 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11656 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11657 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11658 esac; \
1b6c0831
L
11659 module_srcdir=gcc; \
11660 $(SHELL) $$s/$$module_srcdir/configure \
11661 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11662 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11663 --target=${target_alias} \
22121df0 11664 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
11665 $(STAGEprofile_CONFIGURE_FLAGS)
11666@endif gcc-bootstrap
56a8fe78 11667
f948b2de
NC
11668.PHONY: configure-stagetrain-gcc maybe-configure-stagetrain-gcc
11669maybe-configure-stagetrain-gcc:
11670@if gcc-bootstrap
11671maybe-configure-stagetrain-gcc: configure-stagetrain-gcc
11672configure-stagetrain-gcc:
11673 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
11674 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
11675 @r=`${PWD_COMMAND}`; export r; \
11676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11677 TFLAGS="$(STAGEtrain_TFLAGS)"; \
11678 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
11679 $(HOST_EXPORTS) \
11680 $(POSTSTAGE1_HOST_EXPORTS) \
11681 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
11682 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
11683 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
11684 echo Configuring stage train in $(HOST_SUBDIR)/gcc; \
11685 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
11686 cd $(HOST_SUBDIR)/gcc || exit 1; \
11687 case $(srcdir) in \
11688 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11689 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11690 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11691 esac; \
11692 module_srcdir=gcc; \
11693 $(SHELL) $$s/$$module_srcdir/configure \
11694 --srcdir=$${topdir}/$$module_srcdir \
11695 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11696 --target=${target_alias} \
11697 --with-build-libsubdir=$(HOST_SUBDIR) \
11698 $(STAGEtrain_CONFIGURE_FLAGS)
11699@endif gcc-bootstrap
11700
a90ef4bf
JM
11701.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
11702maybe-configure-stagefeedback-gcc:
11703@if gcc-bootstrap
11704maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
11705configure-stagefeedback-gcc:
11706 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11707 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
11708 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11710 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11711 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 11712 $(HOST_EXPORTS) \
a90ef4bf
JM
11713 $(POSTSTAGE1_HOST_EXPORTS) \
11714 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11715 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11716 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11717 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
11718 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
11719 cd $(HOST_SUBDIR)/gcc || exit 1; \
11720 case $(srcdir) in \
11721 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11722 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11723 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11724 esac; \
1b6c0831
L
11725 module_srcdir=gcc; \
11726 $(SHELL) $$s/$$module_srcdir/configure \
11727 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11728 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11729 --target=${target_alias} \
22121df0 11730 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
11731 $(STAGEfeedback_CONFIGURE_FLAGS)
11732@endif gcc-bootstrap
56a8fe78 11733
f948b2de
NC
11734.PHONY: configure-stageautoprofile-gcc maybe-configure-stageautoprofile-gcc
11735maybe-configure-stageautoprofile-gcc:
11736@if gcc-bootstrap
11737maybe-configure-stageautoprofile-gcc: configure-stageautoprofile-gcc
11738configure-stageautoprofile-gcc:
11739 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
11740 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
11741 @r=`${PWD_COMMAND}`; export r; \
11742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11743 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
11744 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
11745 $(HOST_EXPORTS) \
11746 $(POSTSTAGE1_HOST_EXPORTS) \
11747 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
11748 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
11749 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
11750 echo Configuring stage autoprofile in $(HOST_SUBDIR)/gcc; \
11751 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
11752 cd $(HOST_SUBDIR)/gcc || exit 1; \
11753 case $(srcdir) in \
11754 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11755 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11756 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11757 esac; \
11758 module_srcdir=gcc; \
11759 $(SHELL) $$s/$$module_srcdir/configure \
11760 --srcdir=$${topdir}/$$module_srcdir \
11761 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11762 --target=${target_alias} \
11763 --with-build-libsubdir=$(HOST_SUBDIR) \
11764 $(STAGEautoprofile_CONFIGURE_FLAGS)
11765@endif gcc-bootstrap
11766
11767.PHONY: configure-stageautofeedback-gcc maybe-configure-stageautofeedback-gcc
11768maybe-configure-stageautofeedback-gcc:
11769@if gcc-bootstrap
11770maybe-configure-stageautofeedback-gcc: configure-stageautofeedback-gcc
11771configure-stageautofeedback-gcc:
11772 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
11773 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
11774 @r=`${PWD_COMMAND}`; export r; \
11775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11776 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
11777 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
11778 $(HOST_EXPORTS) \
11779 $(POSTSTAGE1_HOST_EXPORTS) \
11780 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
11781 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
11782 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
11783 echo Configuring stage autofeedback in $(HOST_SUBDIR)/gcc; \
11784 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
11785 cd $(HOST_SUBDIR)/gcc || exit 1; \
11786 case $(srcdir) in \
11787 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11788 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11789 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11790 esac; \
11791 module_srcdir=gcc; \
11792 $(SHELL) $$s/$$module_srcdir/configure \
11793 --srcdir=$${topdir}/$$module_srcdir \
11794 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
11795 --target=${target_alias} \
11796 --with-build-libsubdir=$(HOST_SUBDIR) \
11797 $(STAGEautofeedback_CONFIGURE_FLAGS)
11798@endif gcc-bootstrap
11799
2a4cbe27 11800
2a4cbe27
NN
11801
11802
2a4cbe27 11803
a90ef4bf
JM
11804.PHONY: all-gcc maybe-all-gcc
11805maybe-all-gcc:
11806@if gcc-bootstrap
11807all-gcc: stage_current
11808@endif gcc-bootstrap
11809@if gcc
11810TARGET-gcc=all
11811maybe-all-gcc: all-gcc
11812all-gcc: configure-gcc
11813 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11815 $(HOST_EXPORTS) \
11816 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 11817 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
11818 $(TARGET-gcc))
11819@endif gcc
6d389afc 11820
6d389afc 11821
6d389afc 11822
a90ef4bf
JM
11823.PHONY: all-stage1-gcc maybe-all-stage1-gcc
11824.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
11825maybe-all-stage1-gcc:
11826maybe-clean-stage1-gcc:
11827@if gcc-bootstrap
11828maybe-all-stage1-gcc: all-stage1-gcc
11829all-stage1: all-stage1-gcc
11830TARGET-stage1-gcc = $(TARGET-gcc)
11831all-stage1-gcc: configure-stage1-gcc
11832 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11833 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11835 TFLAGS="$(STAGE1_TFLAGS)"; \
11836 $(HOST_EXPORTS) \
11837 cd $(HOST_SUBDIR)/gcc && \
05a13254 11838 \
a90ef4bf
JM
11839 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11840 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 11841 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
11842 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11843 LIBCFLAGS="$(LIBCFLAGS)" \
11844 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11845 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11846 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
11847 $(EXTRA_HOST_FLAGS) \
11848 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 11849 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 11850 $(TARGET-stage1-gcc)
2a4cbe27 11851
a90ef4bf
JM
11852maybe-clean-stage1-gcc: clean-stage1-gcc
11853clean-stage1: clean-stage1-gcc
11854clean-stage1-gcc:
11855 @if [ $(current_stage) = stage1 ]; then \
11856 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
11857 else \
11858 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
11859 $(MAKE) stage1-start; \
11860 fi; \
11861 cd $(HOST_SUBDIR)/gcc && \
11862 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 11863 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 11864@endif gcc-bootstrap
2a4cbe27 11865
a3ca38d2 11866
a90ef4bf
JM
11867.PHONY: all-stage2-gcc maybe-all-stage2-gcc
11868.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
11869maybe-all-stage2-gcc:
11870maybe-clean-stage2-gcc:
11871@if gcc-bootstrap
11872maybe-all-stage2-gcc: all-stage2-gcc
11873all-stage2: all-stage2-gcc
11874TARGET-stage2-gcc = $(TARGET-gcc)
11875all-stage2-gcc: configure-stage2-gcc
11876 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11877 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 11878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11879 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 11880 $(HOST_EXPORTS) \
a90ef4bf
JM
11881 $(POSTSTAGE1_HOST_EXPORTS) \
11882 cd $(HOST_SUBDIR)/gcc && \
05a13254 11883 \
a90ef4bf
JM
11884 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11885 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 11886 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
11887 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11888 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11889 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11890 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11891 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11892 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 11893 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 11894 $(TARGET-stage2-gcc)
a3ca38d2 11895
a90ef4bf
JM
11896maybe-clean-stage2-gcc: clean-stage2-gcc
11897clean-stage2: clean-stage2-gcc
11898clean-stage2-gcc:
11899 @if [ $(current_stage) = stage2 ]; then \
11900 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
11901 else \
11902 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
11903 $(MAKE) stage2-start; \
11904 fi; \
11905 cd $(HOST_SUBDIR)/gcc && \
b3676d82 11906 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 11907@endif gcc-bootstrap
a3ca38d2 11908
108a6f8e 11909
a90ef4bf
JM
11910.PHONY: all-stage3-gcc maybe-all-stage3-gcc
11911.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
11912maybe-all-stage3-gcc:
11913maybe-clean-stage3-gcc:
11914@if gcc-bootstrap
11915maybe-all-stage3-gcc: all-stage3-gcc
11916all-stage3: all-stage3-gcc
11917TARGET-stage3-gcc = $(TARGET-gcc)
11918all-stage3-gcc: configure-stage3-gcc
11919 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11920 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 11921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11922 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 11923 $(HOST_EXPORTS) \
a90ef4bf
JM
11924 $(POSTSTAGE1_HOST_EXPORTS) \
11925 cd $(HOST_SUBDIR)/gcc && \
05a13254 11926 \
a90ef4bf
JM
11927 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11928 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 11929 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
11930 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11931 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11932 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11933 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11934 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11935 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 11936 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 11937 $(TARGET-stage3-gcc)
108a6f8e 11938
a90ef4bf
JM
11939maybe-clean-stage3-gcc: clean-stage3-gcc
11940clean-stage3: clean-stage3-gcc
11941clean-stage3-gcc:
11942 @if [ $(current_stage) = stage3 ]; then \
11943 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
11944 else \
11945 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
11946 $(MAKE) stage3-start; \
11947 fi; \
11948 cd $(HOST_SUBDIR)/gcc && \
b3676d82 11949 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 11950@endif gcc-bootstrap
108a6f8e 11951
2a4cbe27 11952
a90ef4bf
JM
11953.PHONY: all-stage4-gcc maybe-all-stage4-gcc
11954.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
11955maybe-all-stage4-gcc:
11956maybe-clean-stage4-gcc:
11957@if gcc-bootstrap
11958maybe-all-stage4-gcc: all-stage4-gcc
11959all-stage4: all-stage4-gcc
11960TARGET-stage4-gcc = $(TARGET-gcc)
11961all-stage4-gcc: configure-stage4-gcc
11962 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11963 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11965 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11966 $(HOST_EXPORTS) \
a90ef4bf
JM
11967 $(POSTSTAGE1_HOST_EXPORTS) \
11968 cd $(HOST_SUBDIR)/gcc && \
05a13254 11969 \
a90ef4bf
JM
11970 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11971 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 11972 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
11973 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11974 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11975 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11976 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11977 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
11978 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 11979 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 11980 $(TARGET-stage4-gcc)
2a4cbe27 11981
a90ef4bf
JM
11982maybe-clean-stage4-gcc: clean-stage4-gcc
11983clean-stage4: clean-stage4-gcc
11984clean-stage4-gcc:
11985 @if [ $(current_stage) = stage4 ]; then \
11986 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
11987 else \
11988 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
11989 $(MAKE) stage4-start; \
11990 fi; \
11991 cd $(HOST_SUBDIR)/gcc && \
b3676d82 11992 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 11993@endif gcc-bootstrap
2a4cbe27 11994
a2592b1b 11995
a90ef4bf
JM
11996.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
11997.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
11998maybe-all-stageprofile-gcc:
11999maybe-clean-stageprofile-gcc:
12000@if gcc-bootstrap
12001maybe-all-stageprofile-gcc: all-stageprofile-gcc
12002all-stageprofile: all-stageprofile-gcc
12003TARGET-stageprofile-gcc = $(TARGET-gcc)
12004all-stageprofile-gcc: configure-stageprofile-gcc
12005 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12006 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 12007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12008 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12009 $(HOST_EXPORTS) \
a90ef4bf
JM
12010 $(POSTSTAGE1_HOST_EXPORTS) \
12011 cd $(HOST_SUBDIR)/gcc && \
05a13254 12012 \
a90ef4bf
JM
12013 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12014 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 12015 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
12016 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12017 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12018 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12019 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12020 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12021 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 12022 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 12023 $(TARGET-stageprofile-gcc)
2a4cbe27 12024
a90ef4bf
JM
12025maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
12026clean-stageprofile: clean-stageprofile-gcc
12027clean-stageprofile-gcc:
12028 @if [ $(current_stage) = stageprofile ]; then \
12029 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12030 else \
12031 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
12032 $(MAKE) stageprofile-start; \
12033 fi; \
12034 cd $(HOST_SUBDIR)/gcc && \
b3676d82 12035 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 12036@endif gcc-bootstrap
2a4cbe27 12037
a7254363 12038
f948b2de
NC
12039.PHONY: all-stagetrain-gcc maybe-all-stagetrain-gcc
12040.PHONY: clean-stagetrain-gcc maybe-clean-stagetrain-gcc
12041maybe-all-stagetrain-gcc:
12042maybe-clean-stagetrain-gcc:
12043@if gcc-bootstrap
12044maybe-all-stagetrain-gcc: all-stagetrain-gcc
12045all-stagetrain: all-stagetrain-gcc
12046TARGET-stagetrain-gcc = $(TARGET-gcc)
12047all-stagetrain-gcc: configure-stagetrain-gcc
12048 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
12049 @r=`${PWD_COMMAND}`; export r; \
12050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12051 TFLAGS="$(STAGEtrain_TFLAGS)"; \
12052 $(HOST_EXPORTS) \
12053 $(POSTSTAGE1_HOST_EXPORTS) \
12054 cd $(HOST_SUBDIR)/gcc && \
12055 \
12056 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12057 CFLAGS="$(STAGEtrain_CFLAGS)" \
12058 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
12059 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
12060 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
12061 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12062 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12063 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12064 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12065 TFLAGS="$(STAGEtrain_TFLAGS)" \
12066 $(TARGET-stagetrain-gcc)
12067
12068maybe-clean-stagetrain-gcc: clean-stagetrain-gcc
12069clean-stagetrain: clean-stagetrain-gcc
12070clean-stagetrain-gcc:
12071 @if [ $(current_stage) = stagetrain ]; then \
12072 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12073 else \
12074 [ -f $(HOST_SUBDIR)/stagetrain-gcc/Makefile ] || exit 0; \
12075 $(MAKE) stagetrain-start; \
12076 fi; \
12077 cd $(HOST_SUBDIR)/gcc && \
12078 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
12079@endif gcc-bootstrap
12080
12081
a90ef4bf
JM
12082.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
12083.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
12084maybe-all-stagefeedback-gcc:
12085maybe-clean-stagefeedback-gcc:
4f0ef2d8 12086@if gcc-bootstrap
a90ef4bf
JM
12087maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
12088all-stagefeedback: all-stagefeedback-gcc
12089TARGET-stagefeedback-gcc = $(TARGET-gcc)
12090all-stagefeedback-gcc: configure-stagefeedback-gcc
12091 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12092 @r=`${PWD_COMMAND}`; export r; \
4fa63067 12093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12094 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12095 $(HOST_EXPORTS) \
12096 $(POSTSTAGE1_HOST_EXPORTS) \
12097 cd $(HOST_SUBDIR)/gcc && \
05a13254 12098 \
a90ef4bf
JM
12099 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12100 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 12101 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
12102 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12103 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12104 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12105 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12106 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12107 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 12108 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 12109 $(TARGET-stagefeedback-gcc)
d545f33b 12110
a90ef4bf
JM
12111maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
12112clean-stagefeedback: clean-stagefeedback-gcc
12113clean-stagefeedback-gcc:
12114 @if [ $(current_stage) = stagefeedback ]; then \
12115 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12116 else \
12117 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
12118 $(MAKE) stagefeedback-start; \
12119 fi; \
12120 cd $(HOST_SUBDIR)/gcc && \
b3676d82 12121 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 12122@endif gcc-bootstrap
4fa63067 12123
a7254363 12124
f948b2de
NC
12125.PHONY: all-stageautoprofile-gcc maybe-all-stageautoprofile-gcc
12126.PHONY: clean-stageautoprofile-gcc maybe-clean-stageautoprofile-gcc
12127maybe-all-stageautoprofile-gcc:
12128maybe-clean-stageautoprofile-gcc:
12129@if gcc-bootstrap
12130maybe-all-stageautoprofile-gcc: all-stageautoprofile-gcc
12131all-stageautoprofile: all-stageautoprofile-gcc
12132TARGET-stageautoprofile-gcc = $(TARGET-gcc)
12133all-stageautoprofile-gcc: configure-stageautoprofile-gcc
12134 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
12135 @r=`${PWD_COMMAND}`; export r; \
12136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12137 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
12138 $(HOST_EXPORTS) \
12139 $(POSTSTAGE1_HOST_EXPORTS) \
12140 cd $(HOST_SUBDIR)/gcc && \
12141 $$s/gcc/config/i386/$(AUTO_PROFILE) \
12142 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12143 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
12144 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
12145 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
12146 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
12147 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12148 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12149 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12150 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12151 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
12152 $(TARGET-stageautoprofile-gcc)
12153
12154maybe-clean-stageautoprofile-gcc: clean-stageautoprofile-gcc
12155clean-stageautoprofile: clean-stageautoprofile-gcc
12156clean-stageautoprofile-gcc:
12157 @if [ $(current_stage) = stageautoprofile ]; then \
12158 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12159 else \
12160 [ -f $(HOST_SUBDIR)/stageautoprofile-gcc/Makefile ] || exit 0; \
12161 $(MAKE) stageautoprofile-start; \
12162 fi; \
12163 cd $(HOST_SUBDIR)/gcc && \
12164 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
12165@endif gcc-bootstrap
12166
12167
12168.PHONY: all-stageautofeedback-gcc maybe-all-stageautofeedback-gcc
12169.PHONY: clean-stageautofeedback-gcc maybe-clean-stageautofeedback-gcc
12170maybe-all-stageautofeedback-gcc:
12171maybe-clean-stageautofeedback-gcc:
12172@if gcc-bootstrap
12173maybe-all-stageautofeedback-gcc: all-stageautofeedback-gcc
12174all-stageautofeedback: all-stageautofeedback-gcc
12175TARGET-stageautofeedback-gcc = $(TARGET-gcc)
12176all-stageautofeedback-gcc: configure-stageautofeedback-gcc
12177 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
12178 @r=`${PWD_COMMAND}`; export r; \
12179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12180 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
12181 $(HOST_EXPORTS) \
12182 $(POSTSTAGE1_HOST_EXPORTS) \
12183 cd $(HOST_SUBDIR)/gcc && \
12184 \
12185 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12186 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
12187 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
12188 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
12189 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
12190 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12191 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12192 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
12193 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12194 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
12195 $(TARGET-stageautofeedback-gcc)
12196
12197maybe-clean-stageautofeedback-gcc: clean-stageautofeedback-gcc
12198clean-stageautofeedback: clean-stageautofeedback-gcc
12199clean-stageautofeedback-gcc:
12200 @if [ $(current_stage) = stageautofeedback ]; then \
12201 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12202 else \
12203 [ -f $(HOST_SUBDIR)/stageautofeedback-gcc/Makefile ] || exit 0; \
12204 $(MAKE) stageautofeedback-start; \
12205 fi; \
12206 cd $(HOST_SUBDIR)/gcc && \
12207 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
12208@endif gcc-bootstrap
12209
12210
d545f33b
PB
12211
12212
4fa63067 12213
a90ef4bf
JM
12214.PHONY: check-gcc maybe-check-gcc
12215maybe-check-gcc:
12216@if gcc
12217maybe-check-gcc: check-gcc
12218
12219check-gcc:
0aed8855 12220 @: $(MAKE); $(unstage)
4fa63067
NN
12221 @r=`${PWD_COMMAND}`; export r; \
12222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12223 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12224 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 12225 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 12226
a90ef4bf 12227@endif gcc
4fa63067 12228
a90ef4bf
JM
12229.PHONY: install-gcc maybe-install-gcc
12230maybe-install-gcc:
12231@if gcc
12232maybe-install-gcc: install-gcc
4fa63067 12233
a90ef4bf 12234install-gcc: installdirs
0aed8855 12235 @: $(MAKE); $(unstage)
4fa63067
NN
12236 @r=`${PWD_COMMAND}`; export r; \
12237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12238 $(HOST_EXPORTS) \
a90ef4bf
JM
12239 (cd $(HOST_SUBDIR)/gcc && \
12240 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 12241
a90ef4bf 12242@endif gcc
4fa63067 12243
a90ef4bf
JM
12244.PHONY: install-strip-gcc maybe-install-strip-gcc
12245maybe-install-strip-gcc:
12246@if gcc
12247maybe-install-strip-gcc: install-strip-gcc
9b980aa1 12248
a90ef4bf 12249install-strip-gcc: installdirs
9b980aa1
RW
12250 @: $(MAKE); $(unstage)
12251 @r=`${PWD_COMMAND}`; export r; \
12252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12253 $(HOST_EXPORTS) \
a90ef4bf
JM
12254 (cd $(HOST_SUBDIR)/gcc && \
12255 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 12256
a90ef4bf 12257@endif gcc
9b980aa1 12258
56a8fe78 12259# Other targets (info, dvi, pdf, etc.)
4fa63067 12260
a90ef4bf
JM
12261.PHONY: maybe-info-gcc info-gcc
12262maybe-info-gcc:
12263@if gcc
12264maybe-info-gcc: info-gcc
4fa63067 12265
a90ef4bf
JM
12266info-gcc: \
12267 configure-gcc
12268 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
12269 r=`${PWD_COMMAND}`; export r; \
12270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12271 $(HOST_EXPORTS) \
a90ef4bf 12272 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
12273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12274 done; \
22121df0 12275 echo "Doing info in gcc"; \
a90ef4bf 12276 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
12277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12279 "RANLIB=$${RANLIB}" \
0c24b341 12280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12281 info) \
2a4cbe27
NN
12282 || exit 1
12283
a90ef4bf 12284@endif gcc
2a4cbe27 12285
a90ef4bf
JM
12286.PHONY: maybe-dvi-gcc dvi-gcc
12287maybe-dvi-gcc:
12288@if gcc
12289maybe-dvi-gcc: dvi-gcc
2a4cbe27 12290
a90ef4bf
JM
12291dvi-gcc: \
12292 configure-gcc
12293 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
12294 r=`${PWD_COMMAND}`; export r; \
12295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12296 $(HOST_EXPORTS) \
a90ef4bf 12297 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
12298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12299 done; \
22121df0 12300 echo "Doing dvi in gcc"; \
a90ef4bf 12301 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
12302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12304 "RANLIB=$${RANLIB}" \
0c24b341 12305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12306 dvi) \
2a4cbe27
NN
12307 || exit 1
12308
a90ef4bf 12309@endif gcc
2a4cbe27 12310
a90ef4bf
JM
12311.PHONY: maybe-pdf-gcc pdf-gcc
12312maybe-pdf-gcc:
12313@if gcc
12314maybe-pdf-gcc: pdf-gcc
56a8fe78 12315
a90ef4bf
JM
12316pdf-gcc: \
12317 configure-gcc
12318 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
12319 r=`${PWD_COMMAND}`; export r; \
12320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12321 $(HOST_EXPORTS) \
a90ef4bf 12322 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
12323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12324 done; \
22121df0 12325 echo "Doing pdf in gcc"; \
a90ef4bf 12326 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
12327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12329 "RANLIB=$${RANLIB}" \
0c24b341 12330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12331 pdf) \
12332 || exit 1
12333
a90ef4bf 12334@endif gcc
56a8fe78 12335
a90ef4bf
JM
12336.PHONY: maybe-html-gcc html-gcc
12337maybe-html-gcc:
12338@if gcc
12339maybe-html-gcc: html-gcc
6d389afc 12340
a90ef4bf
JM
12341html-gcc: \
12342 configure-gcc
12343 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
12344 r=`${PWD_COMMAND}`; export r; \
12345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 12346 $(HOST_EXPORTS) \
a90ef4bf 12347 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
12348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12349 done; \
22121df0 12350 echo "Doing html in gcc"; \
a90ef4bf 12351 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
12352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12354 "RANLIB=$${RANLIB}" \
0c24b341 12355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12356 html) \
12357 || exit 1
12358
a90ef4bf 12359@endif gcc
6d389afc 12360
a90ef4bf
JM
12361.PHONY: maybe-TAGS-gcc TAGS-gcc
12362maybe-TAGS-gcc:
12363@if gcc
12364maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 12365
a90ef4bf
JM
12366TAGS-gcc: \
12367 configure-gcc
12368 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
12369 r=`${PWD_COMMAND}`; export r; \
12370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12371 $(HOST_EXPORTS) \
a90ef4bf 12372 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
12373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12374 done; \
22121df0 12375 echo "Doing TAGS in gcc"; \
a90ef4bf 12376 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
12377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12379 "RANLIB=$${RANLIB}" \
0c24b341 12380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12381 TAGS) \
2a4cbe27
NN
12382 || exit 1
12383
a90ef4bf 12384@endif gcc
2a4cbe27 12385
a90ef4bf
JM
12386.PHONY: maybe-install-info-gcc install-info-gcc
12387maybe-install-info-gcc:
12388@if gcc
12389maybe-install-info-gcc: install-info-gcc
2a4cbe27 12390
a90ef4bf
JM
12391install-info-gcc: \
12392 configure-gcc \
12393 info-gcc
12394 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
12395 r=`${PWD_COMMAND}`; export r; \
12396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12397 $(HOST_EXPORTS) \
a90ef4bf 12398 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
12399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12400 done; \
22121df0 12401 echo "Doing install-info in gcc"; \
a90ef4bf 12402 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
12403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12405 "RANLIB=$${RANLIB}" \
0c24b341 12406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12407 install-info) \
2a4cbe27
NN
12408 || exit 1
12409
a90ef4bf 12410@endif gcc
2a4cbe27 12411
a90ef4bf
JM
12412.PHONY: maybe-install-pdf-gcc install-pdf-gcc
12413maybe-install-pdf-gcc:
12414@if gcc
12415maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 12416
a90ef4bf
JM
12417install-pdf-gcc: \
12418 configure-gcc \
12419 pdf-gcc
12420 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
12421 r=`${PWD_COMMAND}`; export r; \
12422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12423 $(HOST_EXPORTS) \
a90ef4bf 12424 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
12425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12426 done; \
22121df0 12427 echo "Doing install-pdf in gcc"; \
a90ef4bf 12428 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
12429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12431 "RANLIB=$${RANLIB}" \
0c24b341 12432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12433 install-pdf) \
12434 || exit 1
12435
a90ef4bf 12436@endif gcc
a3ca38d2 12437
a90ef4bf
JM
12438.PHONY: maybe-install-html-gcc install-html-gcc
12439maybe-install-html-gcc:
12440@if gcc
12441maybe-install-html-gcc: install-html-gcc
108a6f8e 12442
a90ef4bf
JM
12443install-html-gcc: \
12444 configure-gcc \
12445 html-gcc
12446 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
12447 r=`${PWD_COMMAND}`; export r; \
12448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12449 $(HOST_EXPORTS) \
a90ef4bf 12450 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
12451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12452 done; \
22121df0 12453 echo "Doing install-html in gcc"; \
a90ef4bf 12454 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
12455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12457 "RANLIB=$${RANLIB}" \
0c24b341 12458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12459 install-html) \
12460 || exit 1
12461
a90ef4bf 12462@endif gcc
108a6f8e 12463
a90ef4bf
JM
12464.PHONY: maybe-installcheck-gcc installcheck-gcc
12465maybe-installcheck-gcc:
12466@if gcc
12467maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 12468
a90ef4bf
JM
12469installcheck-gcc: \
12470 configure-gcc
12471 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
12472 r=`${PWD_COMMAND}`; export r; \
12473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12474 $(HOST_EXPORTS) \
a90ef4bf 12475 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
12476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12477 done; \
22121df0 12478 echo "Doing installcheck in gcc"; \
a90ef4bf 12479 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
12480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12482 "RANLIB=$${RANLIB}" \
0c24b341 12483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12484 installcheck) \
2a4cbe27
NN
12485 || exit 1
12486
a90ef4bf 12487@endif gcc
2a4cbe27 12488
a90ef4bf
JM
12489.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
12490maybe-mostlyclean-gcc:
12491@if gcc
12492maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 12493
a90ef4bf
JM
12494mostlyclean-gcc:
12495 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
12496 r=`${PWD_COMMAND}`; export r; \
12497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12498 $(HOST_EXPORTS) \
a90ef4bf 12499 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
12500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12501 done; \
22121df0 12502 echo "Doing mostlyclean in gcc"; \
a90ef4bf 12503 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
12504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12506 "RANLIB=$${RANLIB}" \
0c24b341 12507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12508 mostlyclean) \
2a4cbe27
NN
12509 || exit 1
12510
a90ef4bf 12511@endif gcc
2a4cbe27 12512
a90ef4bf
JM
12513.PHONY: maybe-clean-gcc clean-gcc
12514maybe-clean-gcc:
12515@if gcc
12516maybe-clean-gcc: clean-gcc
2a4cbe27 12517
a90ef4bf
JM
12518clean-gcc:
12519 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
12520 r=`${PWD_COMMAND}`; export r; \
12521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12522 $(HOST_EXPORTS) \
a90ef4bf 12523 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
12524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12525 done; \
22121df0 12526 echo "Doing clean in gcc"; \
a90ef4bf 12527 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
12528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12530 "RANLIB=$${RANLIB}" \
0c24b341 12531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12532 clean) \
2a4cbe27
NN
12533 || exit 1
12534
a90ef4bf 12535@endif gcc
2a4cbe27 12536
a90ef4bf
JM
12537.PHONY: maybe-distclean-gcc distclean-gcc
12538maybe-distclean-gcc:
12539@if gcc
12540maybe-distclean-gcc: distclean-gcc
2a4cbe27 12541
a90ef4bf
JM
12542distclean-gcc:
12543 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
12544 r=`${PWD_COMMAND}`; export r; \
12545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12546 $(HOST_EXPORTS) \
a90ef4bf 12547 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
12548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12549 done; \
22121df0 12550 echo "Doing distclean in gcc"; \
a90ef4bf 12551 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
12552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12554 "RANLIB=$${RANLIB}" \
0c24b341 12555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12556 distclean) \
2a4cbe27
NN
12557 || exit 1
12558
a90ef4bf 12559@endif gcc
2a4cbe27 12560
a90ef4bf
JM
12561.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
12562maybe-maintainer-clean-gcc:
12563@if gcc
12564maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 12565
a90ef4bf
JM
12566maintainer-clean-gcc:
12567 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
12568 r=`${PWD_COMMAND}`; export r; \
12569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12570 $(HOST_EXPORTS) \
a90ef4bf 12571 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
12572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12573 done; \
22121df0 12574 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 12575 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
12576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12578 "RANLIB=$${RANLIB}" \
0c24b341 12579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12580 maintainer-clean) \
2a4cbe27
NN
12581 || exit 1
12582
a90ef4bf 12583@endif gcc
2a4cbe27 12584
2a4cbe27 12585
a7254363 12586
a90ef4bf
JM
12587.PHONY: configure-gmp maybe-configure-gmp
12588maybe-configure-gmp:
4f0ef2d8 12589@if gcc-bootstrap
a90ef4bf 12590configure-gmp: stage_current
4f0ef2d8 12591@endif gcc-bootstrap
a90ef4bf
JM
12592@if gmp
12593maybe-configure-gmp: configure-gmp
12594configure-gmp:
c52c6897 12595 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12597 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 12598 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 12599 $(HOST_EXPORTS) \
a90ef4bf
JM
12600 echo Configuring in $(HOST_SUBDIR)/gmp; \
12601 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 12602 case $(srcdir) in \
b00612cc 12603 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12604 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 12605 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 12606 esac; \
1b6c0831
L
12607 module_srcdir=gmp; \
12608 $(SHELL) \
12609 $$s/$$module_srcdir/configure \
12610 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12611 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 12612 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 12613 || exit 1
a90ef4bf 12614@endif gmp
a7254363 12615
d545f33b
PB
12616
12617
a90ef4bf
JM
12618.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
12619maybe-configure-stage1-gmp:
12620@if gmp-bootstrap
12621maybe-configure-stage1-gmp: configure-stage1-gmp
12622configure-stage1-gmp:
12623 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12624 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
12625 @r=`${PWD_COMMAND}`; export r; \
12626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12627 TFLAGS="$(STAGE1_TFLAGS)"; \
12628 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
12629 $(HOST_EXPORTS) \
12630 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12631 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12632 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12633 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
12634 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
12635 cd $(HOST_SUBDIR)/gmp || exit 1; \
12636 case $(srcdir) in \
12637 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12638 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
12639 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12640 esac; \
1b6c0831
L
12641 module_srcdir=gmp; \
12642 $(SHELL) $$s/$$module_srcdir/configure \
12643 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12644 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
12645 --target=none-${host_vendor}-${host_os} \
12646 \
a90ef4bf 12647 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 12648 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 12649@endif gmp-bootstrap
4fa63067 12650
a90ef4bf
JM
12651.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
12652maybe-configure-stage2-gmp:
12653@if gmp-bootstrap
12654maybe-configure-stage2-gmp: configure-stage2-gmp
12655configure-stage2-gmp:
12656 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12657 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
12658 @r=`${PWD_COMMAND}`; export r; \
12659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12660 TFLAGS="$(STAGE2_TFLAGS)"; \
12661 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
12662 $(HOST_EXPORTS) \
12663 $(POSTSTAGE1_HOST_EXPORTS) \
12664 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12665 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12666 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12667 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
12668 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
12669 cd $(HOST_SUBDIR)/gmp || exit 1; \
12670 case $(srcdir) in \
12671 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12672 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
12673 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12674 esac; \
1b6c0831
L
12675 module_srcdir=gmp; \
12676 $(SHELL) $$s/$$module_srcdir/configure \
12677 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12678 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 12679 --target=none-${host_vendor}-${host_os} \
22121df0 12680 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12681 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 12682 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 12683@endif gmp-bootstrap
4fa63067 12684
a90ef4bf
JM
12685.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
12686maybe-configure-stage3-gmp:
12687@if gmp-bootstrap
12688maybe-configure-stage3-gmp: configure-stage3-gmp
12689configure-stage3-gmp:
12690 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12691 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 12692 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12694 TFLAGS="$(STAGE3_TFLAGS)"; \
12695 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 12696 $(HOST_EXPORTS) \
a90ef4bf
JM
12697 $(POSTSTAGE1_HOST_EXPORTS) \
12698 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12699 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12700 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12701 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
12702 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
12703 cd $(HOST_SUBDIR)/gmp || exit 1; \
12704 case $(srcdir) in \
12705 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12706 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
12707 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12708 esac; \
1b6c0831
L
12709 module_srcdir=gmp; \
12710 $(SHELL) $$s/$$module_srcdir/configure \
12711 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12712 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 12713 --target=none-${host_vendor}-${host_os} \
22121df0 12714 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12715 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 12716 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 12717@endif gmp-bootstrap
2a4cbe27 12718
a90ef4bf
JM
12719.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
12720maybe-configure-stage4-gmp:
12721@if gmp-bootstrap
12722maybe-configure-stage4-gmp: configure-stage4-gmp
12723configure-stage4-gmp:
12724 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12725 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
12726 @r=`${PWD_COMMAND}`; export r; \
12727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12728 TFLAGS="$(STAGE4_TFLAGS)"; \
12729 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
12730 $(HOST_EXPORTS) \
12731 $(POSTSTAGE1_HOST_EXPORTS) \
12732 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12733 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12734 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12735 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
12736 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
12737 cd $(HOST_SUBDIR)/gmp || exit 1; \
12738 case $(srcdir) in \
12739 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12740 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
12741 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12742 esac; \
1b6c0831
L
12743 module_srcdir=gmp; \
12744 $(SHELL) $$s/$$module_srcdir/configure \
12745 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12746 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 12747 --target=none-${host_vendor}-${host_os} \
22121df0 12748 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12749 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 12750 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 12751@endif gmp-bootstrap
2a4cbe27 12752
a90ef4bf
JM
12753.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
12754maybe-configure-stageprofile-gmp:
12755@if gmp-bootstrap
12756maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
12757configure-stageprofile-gmp:
12758 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12759 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
12760 @r=`${PWD_COMMAND}`; export r; \
12761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12762 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12763 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
12764 $(HOST_EXPORTS) \
12765 $(POSTSTAGE1_HOST_EXPORTS) \
12766 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12767 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12768 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12769 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
12770 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
12771 cd $(HOST_SUBDIR)/gmp || exit 1; \
12772 case $(srcdir) in \
12773 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12774 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
12775 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12776 esac; \
1b6c0831
L
12777 module_srcdir=gmp; \
12778 $(SHELL) $$s/$$module_srcdir/configure \
12779 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12780 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 12781 --target=none-${host_vendor}-${host_os} \
22121df0 12782 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12783 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 12784 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 12785@endif gmp-bootstrap
9b980aa1 12786
f948b2de
NC
12787.PHONY: configure-stagetrain-gmp maybe-configure-stagetrain-gmp
12788maybe-configure-stagetrain-gmp:
12789@if gmp-bootstrap
12790maybe-configure-stagetrain-gmp: configure-stagetrain-gmp
12791configure-stagetrain-gmp:
12792 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
12793 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
12794 @r=`${PWD_COMMAND}`; export r; \
12795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12796 TFLAGS="$(STAGEtrain_TFLAGS)"; \
12797 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
12798 $(HOST_EXPORTS) \
12799 $(POSTSTAGE1_HOST_EXPORTS) \
12800 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
12801 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
12802 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
12803 echo Configuring stage train in $(HOST_SUBDIR)/gmp; \
12804 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
12805 cd $(HOST_SUBDIR)/gmp || exit 1; \
12806 case $(srcdir) in \
12807 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12808 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
12809 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12810 esac; \
12811 module_srcdir=gmp; \
12812 $(SHELL) $$s/$$module_srcdir/configure \
12813 --srcdir=$${topdir}/$$module_srcdir \
12814 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
12815 --target=none-${host_vendor}-${host_os} \
12816 --with-build-libsubdir=$(HOST_SUBDIR) \
12817 $(STAGEtrain_CONFIGURE_FLAGS) \
12818 --disable-shared LEX="touch lex.yy.c"
12819@endif gmp-bootstrap
12820
a90ef4bf
JM
12821.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
12822maybe-configure-stagefeedback-gmp:
12823@if gmp-bootstrap
12824maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
12825configure-stagefeedback-gmp:
12826 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12827 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
12828 @r=`${PWD_COMMAND}`; export r; \
12829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12830 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12831 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 12832 $(HOST_EXPORTS) \
a90ef4bf
JM
12833 $(POSTSTAGE1_HOST_EXPORTS) \
12834 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12835 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12836 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12837 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
12838 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
12839 cd $(HOST_SUBDIR)/gmp || exit 1; \
12840 case $(srcdir) in \
12841 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12842 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
12843 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12844 esac; \
1b6c0831
L
12845 module_srcdir=gmp; \
12846 $(SHELL) $$s/$$module_srcdir/configure \
12847 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12848 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 12849 --target=none-${host_vendor}-${host_os} \
22121df0 12850 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12851 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 12852 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 12853@endif gmp-bootstrap
9b980aa1 12854
f948b2de
NC
12855.PHONY: configure-stageautoprofile-gmp maybe-configure-stageautoprofile-gmp
12856maybe-configure-stageautoprofile-gmp:
12857@if gmp-bootstrap
12858maybe-configure-stageautoprofile-gmp: configure-stageautoprofile-gmp
12859configure-stageautoprofile-gmp:
12860 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
12861 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
12862 @r=`${PWD_COMMAND}`; export r; \
12863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12864 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
12865 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
12866 $(HOST_EXPORTS) \
12867 $(POSTSTAGE1_HOST_EXPORTS) \
12868 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
12869 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
12870 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
12871 echo Configuring stage autoprofile in $(HOST_SUBDIR)/gmp; \
12872 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
12873 cd $(HOST_SUBDIR)/gmp || exit 1; \
12874 case $(srcdir) in \
12875 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12876 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
12877 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12878 esac; \
12879 module_srcdir=gmp; \
12880 $(SHELL) $$s/$$module_srcdir/configure \
12881 --srcdir=$${topdir}/$$module_srcdir \
12882 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
12883 --target=none-${host_vendor}-${host_os} \
12884 --with-build-libsubdir=$(HOST_SUBDIR) \
12885 $(STAGEautoprofile_CONFIGURE_FLAGS) \
12886 --disable-shared LEX="touch lex.yy.c"
12887@endif gmp-bootstrap
12888
12889.PHONY: configure-stageautofeedback-gmp maybe-configure-stageautofeedback-gmp
12890maybe-configure-stageautofeedback-gmp:
12891@if gmp-bootstrap
12892maybe-configure-stageautofeedback-gmp: configure-stageautofeedback-gmp
12893configure-stageautofeedback-gmp:
12894 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
12895 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
12896 @r=`${PWD_COMMAND}`; export r; \
12897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12898 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
12899 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
12900 $(HOST_EXPORTS) \
12901 $(POSTSTAGE1_HOST_EXPORTS) \
12902 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
12903 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
12904 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
12905 echo Configuring stage autofeedback in $(HOST_SUBDIR)/gmp; \
12906 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
12907 cd $(HOST_SUBDIR)/gmp || exit 1; \
12908 case $(srcdir) in \
12909 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12910 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
12911 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12912 esac; \
12913 module_srcdir=gmp; \
12914 $(SHELL) $$s/$$module_srcdir/configure \
12915 --srcdir=$${topdir}/$$module_srcdir \
12916 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
12917 --target=none-${host_vendor}-${host_os} \
12918 --with-build-libsubdir=$(HOST_SUBDIR) \
12919 $(STAGEautofeedback_CONFIGURE_FLAGS) \
12920 --disable-shared LEX="touch lex.yy.c"
12921@endif gmp-bootstrap
12922
9b980aa1 12923
2a4cbe27 12924
4fa63067 12925
a90ef4bf
JM
12926
12927.PHONY: all-gmp maybe-all-gmp
12928maybe-all-gmp:
12929@if gcc-bootstrap
12930all-gmp: stage_current
12931@endif gcc-bootstrap
12932@if gmp
12933TARGET-gmp=all
12934maybe-all-gmp: all-gmp
12935all-gmp: configure-gmp
12936 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12938 $(HOST_EXPORTS) \
12939 (cd $(HOST_SUBDIR)/gmp && \
05a13254 12940 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12941 $(TARGET-gmp))
12942@endif gmp
2a4cbe27
NN
12943
12944
2a4cbe27 12945
a90ef4bf
JM
12946.PHONY: all-stage1-gmp maybe-all-stage1-gmp
12947.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
12948maybe-all-stage1-gmp:
12949maybe-clean-stage1-gmp:
12950@if gmp-bootstrap
12951maybe-all-stage1-gmp: all-stage1-gmp
12952all-stage1: all-stage1-gmp
12953TARGET-stage1-gmp = $(TARGET-gmp)
12954all-stage1-gmp: configure-stage1-gmp
12955 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12956 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12958 TFLAGS="$(STAGE1_TFLAGS)"; \
12959 $(HOST_EXPORTS) \
12960 cd $(HOST_SUBDIR)/gmp && \
05a13254 12961 \
a90ef4bf
JM
12962 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12963 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 12964 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
12965 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12966 LIBCFLAGS="$(LIBCFLAGS)" \
12967 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12968 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12969 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 12970 $(EXTRA_HOST_FLAGS) \
05a13254
NC
12971 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
12972 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 12973 $(TARGET-stage1-gmp)
2a4cbe27 12974
a90ef4bf
JM
12975maybe-clean-stage1-gmp: clean-stage1-gmp
12976clean-stage1: clean-stage1-gmp
12977clean-stage1-gmp:
12978 @if [ $(current_stage) = stage1 ]; then \
12979 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
12980 else \
12981 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
12982 $(MAKE) stage1-start; \
12983 fi; \
12984 cd $(HOST_SUBDIR)/gmp && \
12985 $(MAKE) $(EXTRA_HOST_FLAGS) \
05a13254 12986 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12987@endif gmp-bootstrap
2a4cbe27 12988
56a8fe78 12989
a90ef4bf
JM
12990.PHONY: all-stage2-gmp maybe-all-stage2-gmp
12991.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
12992maybe-all-stage2-gmp:
12993maybe-clean-stage2-gmp:
12994@if gmp-bootstrap
12995maybe-all-stage2-gmp: all-stage2-gmp
12996all-stage2: all-stage2-gmp
12997TARGET-stage2-gmp = $(TARGET-gmp)
12998all-stage2-gmp: configure-stage2-gmp
12999 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13000 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 13001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13002 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 13003 $(HOST_EXPORTS) \
a90ef4bf
JM
13004 $(POSTSTAGE1_HOST_EXPORTS) \
13005 cd $(HOST_SUBDIR)/gmp && \
05a13254 13006 \
a90ef4bf
JM
13007 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13008 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 13009 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
13010 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13011 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13012 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13013 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13014 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
13015 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
13016 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 13017 $(TARGET-stage2-gmp)
56a8fe78 13018
a90ef4bf
JM
13019maybe-clean-stage2-gmp: clean-stage2-gmp
13020clean-stage2: clean-stage2-gmp
13021clean-stage2-gmp:
13022 @if [ $(current_stage) = stage2 ]; then \
13023 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
13024 else \
13025 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
13026 $(MAKE) stage2-start; \
13027 fi; \
13028 cd $(HOST_SUBDIR)/gmp && \
05a13254 13029 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 13030@endif gmp-bootstrap
56a8fe78 13031
6d389afc 13032
a90ef4bf
JM
13033.PHONY: all-stage3-gmp maybe-all-stage3-gmp
13034.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
13035maybe-all-stage3-gmp:
13036maybe-clean-stage3-gmp:
13037@if gmp-bootstrap
13038maybe-all-stage3-gmp: all-stage3-gmp
13039all-stage3: all-stage3-gmp
13040TARGET-stage3-gmp = $(TARGET-gmp)
13041all-stage3-gmp: configure-stage3-gmp
13042 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13043 @r=`${PWD_COMMAND}`; export r; \
6d389afc 13044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13045 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 13046 $(HOST_EXPORTS) \
a90ef4bf
JM
13047 $(POSTSTAGE1_HOST_EXPORTS) \
13048 cd $(HOST_SUBDIR)/gmp && \
05a13254 13049 \
a90ef4bf
JM
13050 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13051 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 13052 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
13053 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13054 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13055 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13056 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13057 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
13058 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
13059 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 13060 $(TARGET-stage3-gmp)
6d389afc 13061
a90ef4bf
JM
13062maybe-clean-stage3-gmp: clean-stage3-gmp
13063clean-stage3: clean-stage3-gmp
13064clean-stage3-gmp:
13065 @if [ $(current_stage) = stage3 ]; then \
13066 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
13067 else \
13068 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
13069 $(MAKE) stage3-start; \
13070 fi; \
13071 cd $(HOST_SUBDIR)/gmp && \
05a13254 13072 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 13073@endif gmp-bootstrap
6d389afc 13074
2a4cbe27 13075
a90ef4bf
JM
13076.PHONY: all-stage4-gmp maybe-all-stage4-gmp
13077.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
13078maybe-all-stage4-gmp:
13079maybe-clean-stage4-gmp:
13080@if gmp-bootstrap
13081maybe-all-stage4-gmp: all-stage4-gmp
13082all-stage4: all-stage4-gmp
13083TARGET-stage4-gmp = $(TARGET-gmp)
13084all-stage4-gmp: configure-stage4-gmp
13085 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13086 @r=`${PWD_COMMAND}`; export r; \
b40e3958 13087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13088 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 13089 $(HOST_EXPORTS) \
a90ef4bf
JM
13090 $(POSTSTAGE1_HOST_EXPORTS) \
13091 cd $(HOST_SUBDIR)/gmp && \
05a13254 13092 \
a90ef4bf
JM
13093 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13094 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 13095 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
13096 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13097 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13098 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13099 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13100 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
13101 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
13102 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 13103 $(TARGET-stage4-gmp)
2a4cbe27 13104
a90ef4bf
JM
13105maybe-clean-stage4-gmp: clean-stage4-gmp
13106clean-stage4: clean-stage4-gmp
13107clean-stage4-gmp:
13108 @if [ $(current_stage) = stage4 ]; then \
13109 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
13110 else \
13111 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
13112 $(MAKE) stage4-start; \
13113 fi; \
13114 cd $(HOST_SUBDIR)/gmp && \
05a13254 13115 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 13116@endif gmp-bootstrap
2a4cbe27 13117
2a4cbe27 13118
a90ef4bf
JM
13119.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
13120.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
13121maybe-all-stageprofile-gmp:
13122maybe-clean-stageprofile-gmp:
13123@if gmp-bootstrap
13124maybe-all-stageprofile-gmp: all-stageprofile-gmp
13125all-stageprofile: all-stageprofile-gmp
13126TARGET-stageprofile-gmp = $(TARGET-gmp)
13127all-stageprofile-gmp: configure-stageprofile-gmp
13128 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13129 @r=`${PWD_COMMAND}`; export r; \
b40e3958 13130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13131 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 13132 $(HOST_EXPORTS) \
a90ef4bf
JM
13133 $(POSTSTAGE1_HOST_EXPORTS) \
13134 cd $(HOST_SUBDIR)/gmp && \
05a13254 13135 \
a90ef4bf
JM
13136 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13137 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 13138 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
13139 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13140 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13141 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13142 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13143 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
13144 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
13145 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 13146 $(TARGET-stageprofile-gmp)
2a4cbe27 13147
a90ef4bf
JM
13148maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
13149clean-stageprofile: clean-stageprofile-gmp
13150clean-stageprofile-gmp:
13151 @if [ $(current_stage) = stageprofile ]; then \
13152 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
13153 else \
13154 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
13155 $(MAKE) stageprofile-start; \
13156 fi; \
13157 cd $(HOST_SUBDIR)/gmp && \
05a13254 13158 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 13159@endif gmp-bootstrap
2a4cbe27 13160
a7254363 13161
f948b2de
NC
13162.PHONY: all-stagetrain-gmp maybe-all-stagetrain-gmp
13163.PHONY: clean-stagetrain-gmp maybe-clean-stagetrain-gmp
13164maybe-all-stagetrain-gmp:
13165maybe-clean-stagetrain-gmp:
13166@if gmp-bootstrap
13167maybe-all-stagetrain-gmp: all-stagetrain-gmp
13168all-stagetrain: all-stagetrain-gmp
13169TARGET-stagetrain-gmp = $(TARGET-gmp)
13170all-stagetrain-gmp: configure-stagetrain-gmp
13171 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
13172 @r=`${PWD_COMMAND}`; export r; \
13173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13174 TFLAGS="$(STAGEtrain_TFLAGS)"; \
13175 $(HOST_EXPORTS) \
13176 $(POSTSTAGE1_HOST_EXPORTS) \
13177 cd $(HOST_SUBDIR)/gmp && \
13178 \
13179 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13180 CFLAGS="$(STAGEtrain_CFLAGS)" \
13181 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
13182 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
13183 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
13184 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13185 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13186 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13187 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
13188 TFLAGS="$(STAGEtrain_TFLAGS)" \
13189 $(TARGET-stagetrain-gmp)
13190
13191maybe-clean-stagetrain-gmp: clean-stagetrain-gmp
13192clean-stagetrain: clean-stagetrain-gmp
13193clean-stagetrain-gmp:
13194 @if [ $(current_stage) = stagetrain ]; then \
13195 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
13196 else \
13197 [ -f $(HOST_SUBDIR)/stagetrain-gmp/Makefile ] || exit 0; \
13198 $(MAKE) stagetrain-start; \
13199 fi; \
13200 cd $(HOST_SUBDIR)/gmp && \
13201 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
13202@endif gmp-bootstrap
13203
13204
a90ef4bf
JM
13205.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
13206.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
13207maybe-all-stagefeedback-gmp:
13208maybe-clean-stagefeedback-gmp:
13209@if gmp-bootstrap
13210maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
13211all-stagefeedback: all-stagefeedback-gmp
13212TARGET-stagefeedback-gmp = $(TARGET-gmp)
13213all-stagefeedback-gmp: configure-stagefeedback-gmp
13214 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 13215 @r=`${PWD_COMMAND}`; export r; \
b40e3958 13216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13217 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13218 $(HOST_EXPORTS) \
13219 $(POSTSTAGE1_HOST_EXPORTS) \
13220 cd $(HOST_SUBDIR)/gmp && \
05a13254 13221 \
a90ef4bf
JM
13222 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13223 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 13224 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
13225 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13226 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13227 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13228 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13229 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
13230 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
13231 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 13232 $(TARGET-stagefeedback-gmp)
d545f33b 13233
a90ef4bf
JM
13234maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
13235clean-stagefeedback: clean-stagefeedback-gmp
13236clean-stagefeedback-gmp:
13237 @if [ $(current_stage) = stagefeedback ]; then \
13238 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
13239 else \
13240 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
13241 $(MAKE) stagefeedback-start; \
13242 fi; \
13243 cd $(HOST_SUBDIR)/gmp && \
05a13254 13244 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 13245@endif gmp-bootstrap
d545f33b 13246
4fa63067 13247
f948b2de
NC
13248.PHONY: all-stageautoprofile-gmp maybe-all-stageautoprofile-gmp
13249.PHONY: clean-stageautoprofile-gmp maybe-clean-stageautoprofile-gmp
13250maybe-all-stageautoprofile-gmp:
13251maybe-clean-stageautoprofile-gmp:
13252@if gmp-bootstrap
13253maybe-all-stageautoprofile-gmp: all-stageautoprofile-gmp
13254all-stageautoprofile: all-stageautoprofile-gmp
13255TARGET-stageautoprofile-gmp = $(TARGET-gmp)
13256all-stageautoprofile-gmp: configure-stageautoprofile-gmp
13257 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
13258 @r=`${PWD_COMMAND}`; export r; \
13259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13260 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
13261 $(HOST_EXPORTS) \
13262 $(POSTSTAGE1_HOST_EXPORTS) \
13263 cd $(HOST_SUBDIR)/gmp && \
13264 $$s/gcc/config/i386/$(AUTO_PROFILE) \
13265 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13266 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
13267 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
13268 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
13269 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
13270 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13271 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13272 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13273 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
13274 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
13275 $(TARGET-stageautoprofile-gmp)
13276
13277maybe-clean-stageautoprofile-gmp: clean-stageautoprofile-gmp
13278clean-stageautoprofile: clean-stageautoprofile-gmp
13279clean-stageautoprofile-gmp:
13280 @if [ $(current_stage) = stageautoprofile ]; then \
13281 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
13282 else \
13283 [ -f $(HOST_SUBDIR)/stageautoprofile-gmp/Makefile ] || exit 0; \
13284 $(MAKE) stageautoprofile-start; \
13285 fi; \
13286 cd $(HOST_SUBDIR)/gmp && \
13287 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
13288@endif gmp-bootstrap
13289
13290
13291.PHONY: all-stageautofeedback-gmp maybe-all-stageautofeedback-gmp
13292.PHONY: clean-stageautofeedback-gmp maybe-clean-stageautofeedback-gmp
13293maybe-all-stageautofeedback-gmp:
13294maybe-clean-stageautofeedback-gmp:
13295@if gmp-bootstrap
13296maybe-all-stageautofeedback-gmp: all-stageautofeedback-gmp
13297all-stageautofeedback: all-stageautofeedback-gmp
13298TARGET-stageautofeedback-gmp = $(TARGET-gmp)
13299all-stageautofeedback-gmp: configure-stageautofeedback-gmp
13300 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
13301 @r=`${PWD_COMMAND}`; export r; \
13302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13303 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
13304 $(HOST_EXPORTS) \
13305 $(POSTSTAGE1_HOST_EXPORTS) \
13306 cd $(HOST_SUBDIR)/gmp && \
13307 \
13308 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13309 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
13310 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
13311 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
13312 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
13313 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13314 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13315 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13316 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
13317 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
13318 $(TARGET-stageautofeedback-gmp)
13319
13320maybe-clean-stageautofeedback-gmp: clean-stageautofeedback-gmp
13321clean-stageautofeedback: clean-stageautofeedback-gmp
13322clean-stageautofeedback-gmp:
13323 @if [ $(current_stage) = stageautofeedback ]; then \
13324 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
13325 else \
13326 [ -f $(HOST_SUBDIR)/stageautofeedback-gmp/Makefile ] || exit 0; \
13327 $(MAKE) stageautofeedback-start; \
13328 fi; \
13329 cd $(HOST_SUBDIR)/gmp && \
13330 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
13331@endif gmp-bootstrap
13332
13333
a7254363 13334
d545f33b
PB
13335
13336
a90ef4bf
JM
13337.PHONY: check-gmp maybe-check-gmp
13338maybe-check-gmp:
13339@if gmp
13340maybe-check-gmp: check-gmp
4fa63067 13341
a90ef4bf 13342check-gmp:
0aed8855 13343 @: $(MAKE); $(unstage)
4fa63067
NN
13344 @r=`${PWD_COMMAND}`; export r; \
13345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13346 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13347 (cd $(HOST_SUBDIR)/gmp && \
05a13254 13348 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 13349
a90ef4bf 13350@endif gmp
2a4cbe27 13351
a90ef4bf
JM
13352.PHONY: install-gmp maybe-install-gmp
13353maybe-install-gmp:
13354@if gmp
13355maybe-install-gmp: install-gmp
2a4cbe27 13356
a90ef4bf 13357install-gmp:
2a4cbe27 13358
a90ef4bf 13359@endif gmp
2a4cbe27 13360
a90ef4bf
JM
13361.PHONY: install-strip-gmp maybe-install-strip-gmp
13362maybe-install-strip-gmp:
13363@if gmp
13364maybe-install-strip-gmp: install-strip-gmp
9b980aa1 13365
a90ef4bf 13366install-strip-gmp:
9b980aa1 13367
a90ef4bf 13368@endif gmp
9b980aa1 13369
56a8fe78 13370# Other targets (info, dvi, pdf, etc.)
2a4cbe27 13371
a90ef4bf
JM
13372.PHONY: maybe-info-gmp info-gmp
13373maybe-info-gmp:
13374@if gmp
13375maybe-info-gmp: info-gmp
4fa63067 13376
a90ef4bf
JM
13377info-gmp: \
13378 configure-gmp
13379 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
13380 r=`${PWD_COMMAND}`; export r; \
13381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13382 $(HOST_EXPORTS) \
05a13254 13383 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
13384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13385 done; \
22121df0 13386 echo "Doing info in gmp"; \
a90ef4bf 13387 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
13388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13390 "RANLIB=$${RANLIB}" \
0c24b341 13391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13392 info) \
2a4cbe27
NN
13393 || exit 1
13394
a90ef4bf 13395@endif gmp
2a4cbe27 13396
a90ef4bf
JM
13397.PHONY: maybe-dvi-gmp dvi-gmp
13398maybe-dvi-gmp:
13399@if gmp
13400maybe-dvi-gmp: dvi-gmp
2a4cbe27 13401
a90ef4bf
JM
13402dvi-gmp: \
13403 configure-gmp
13404 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
13405 r=`${PWD_COMMAND}`; export r; \
13406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13407 $(HOST_EXPORTS) \
05a13254 13408 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
13409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13410 done; \
22121df0 13411 echo "Doing dvi in gmp"; \
a90ef4bf 13412 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
13413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13415 "RANLIB=$${RANLIB}" \
0c24b341 13416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13417 dvi) \
2a4cbe27
NN
13418 || exit 1
13419
a90ef4bf 13420@endif gmp
2a4cbe27 13421
a90ef4bf
JM
13422.PHONY: maybe-pdf-gmp pdf-gmp
13423maybe-pdf-gmp:
13424@if gmp
13425maybe-pdf-gmp: pdf-gmp
56a8fe78 13426
a90ef4bf
JM
13427pdf-gmp: \
13428 configure-gmp
13429 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
13430 r=`${PWD_COMMAND}`; export r; \
13431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13432 $(HOST_EXPORTS) \
05a13254 13433 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
13434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13435 done; \
22121df0 13436 echo "Doing pdf in gmp"; \
a90ef4bf 13437 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
13438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13440 "RANLIB=$${RANLIB}" \
0c24b341 13441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
13442 pdf) \
13443 || exit 1
13444
a90ef4bf 13445@endif gmp
56a8fe78 13446
a90ef4bf
JM
13447.PHONY: maybe-html-gmp html-gmp
13448maybe-html-gmp:
13449@if gmp
13450maybe-html-gmp: html-gmp
6d389afc 13451
a90ef4bf
JM
13452html-gmp: \
13453 configure-gmp
13454 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
13455 r=`${PWD_COMMAND}`; export r; \
13456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 13457 $(HOST_EXPORTS) \
05a13254 13458 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
13459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13460 done; \
22121df0 13461 echo "Doing html in gmp"; \
a90ef4bf 13462 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
13463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13465 "RANLIB=$${RANLIB}" \
0c24b341 13466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13467 html) \
13468 || exit 1
13469
a90ef4bf 13470@endif gmp
6d389afc 13471
a90ef4bf
JM
13472.PHONY: maybe-TAGS-gmp TAGS-gmp
13473maybe-TAGS-gmp:
13474@if gmp
13475maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 13476
a90ef4bf
JM
13477TAGS-gmp: \
13478 configure-gmp
13479 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
13480 r=`${PWD_COMMAND}`; export r; \
13481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13482 $(HOST_EXPORTS) \
05a13254 13483 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
13484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13485 done; \
22121df0 13486 echo "Doing TAGS in gmp"; \
a90ef4bf 13487 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
13488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13490 "RANLIB=$${RANLIB}" \
0c24b341 13491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13492 TAGS) \
2a4cbe27
NN
13493 || exit 1
13494
a90ef4bf 13495@endif gmp
2a4cbe27 13496
a90ef4bf
JM
13497.PHONY: maybe-install-info-gmp install-info-gmp
13498maybe-install-info-gmp:
13499@if gmp
13500maybe-install-info-gmp: install-info-gmp
2a4cbe27 13501
a90ef4bf
JM
13502install-info-gmp: \
13503 configure-gmp \
13504 info-gmp
13505 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
13506 r=`${PWD_COMMAND}`; export r; \
13507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13508 $(HOST_EXPORTS) \
05a13254 13509 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
13510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13511 done; \
22121df0 13512 echo "Doing install-info in gmp"; \
a90ef4bf 13513 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
13514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13516 "RANLIB=$${RANLIB}" \
0c24b341 13517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13518 install-info) \
2a4cbe27
NN
13519 || exit 1
13520
a90ef4bf 13521@endif gmp
2a4cbe27 13522
a90ef4bf
JM
13523.PHONY: maybe-install-pdf-gmp install-pdf-gmp
13524maybe-install-pdf-gmp:
13525@if gmp
13526maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 13527
a90ef4bf
JM
13528install-pdf-gmp: \
13529 configure-gmp \
13530 pdf-gmp
13531 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
13532 r=`${PWD_COMMAND}`; export r; \
13533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13534 $(HOST_EXPORTS) \
05a13254 13535 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
13536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13537 done; \
22121df0 13538 echo "Doing install-pdf in gmp"; \
a90ef4bf 13539 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
13540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13542 "RANLIB=$${RANLIB}" \
0c24b341 13543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
13544 install-pdf) \
13545 || exit 1
13546
a90ef4bf 13547@endif gmp
a3ca38d2 13548
a90ef4bf
JM
13549.PHONY: maybe-install-html-gmp install-html-gmp
13550maybe-install-html-gmp:
13551@if gmp
13552maybe-install-html-gmp: install-html-gmp
108a6f8e 13553
a90ef4bf
JM
13554install-html-gmp: \
13555 configure-gmp \
13556 html-gmp
13557 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
13558 r=`${PWD_COMMAND}`; export r; \
13559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13560 $(HOST_EXPORTS) \
05a13254 13561 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
13562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13563 done; \
22121df0 13564 echo "Doing install-html in gmp"; \
a90ef4bf 13565 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
13566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13568 "RANLIB=$${RANLIB}" \
0c24b341 13569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13570 install-html) \
13571 || exit 1
13572
a90ef4bf 13573@endif gmp
108a6f8e 13574
a90ef4bf
JM
13575.PHONY: maybe-installcheck-gmp installcheck-gmp
13576maybe-installcheck-gmp:
13577@if gmp
13578maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 13579
a90ef4bf
JM
13580installcheck-gmp: \
13581 configure-gmp
13582 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
13583 r=`${PWD_COMMAND}`; export r; \
13584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13585 $(HOST_EXPORTS) \
05a13254 13586 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
13587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13588 done; \
22121df0 13589 echo "Doing installcheck in gmp"; \
a90ef4bf 13590 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
13591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13593 "RANLIB=$${RANLIB}" \
0c24b341 13594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13595 installcheck) \
2a4cbe27
NN
13596 || exit 1
13597
a90ef4bf 13598@endif gmp
2a4cbe27 13599
a90ef4bf
JM
13600.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
13601maybe-mostlyclean-gmp:
13602@if gmp
13603maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 13604
a90ef4bf
JM
13605mostlyclean-gmp:
13606 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
13607 r=`${PWD_COMMAND}`; export r; \
13608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13609 $(HOST_EXPORTS) \
05a13254 13610 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
13611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13612 done; \
22121df0 13613 echo "Doing mostlyclean in gmp"; \
a90ef4bf 13614 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
13615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13617 "RANLIB=$${RANLIB}" \
0c24b341 13618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13619 mostlyclean) \
2a4cbe27
NN
13620 || exit 1
13621
a90ef4bf 13622@endif gmp
2a4cbe27 13623
a90ef4bf
JM
13624.PHONY: maybe-clean-gmp clean-gmp
13625maybe-clean-gmp:
13626@if gmp
13627maybe-clean-gmp: clean-gmp
2a4cbe27 13628
a90ef4bf
JM
13629clean-gmp:
13630 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
13631 r=`${PWD_COMMAND}`; export r; \
13632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13633 $(HOST_EXPORTS) \
05a13254 13634 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
13635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13636 done; \
22121df0 13637 echo "Doing clean in gmp"; \
a90ef4bf 13638 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
13639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13641 "RANLIB=$${RANLIB}" \
0c24b341 13642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13643 clean) \
2a4cbe27
NN
13644 || exit 1
13645
a90ef4bf 13646@endif gmp
2a4cbe27 13647
a90ef4bf
JM
13648.PHONY: maybe-distclean-gmp distclean-gmp
13649maybe-distclean-gmp:
13650@if gmp
13651maybe-distclean-gmp: distclean-gmp
2a4cbe27 13652
a90ef4bf
JM
13653distclean-gmp:
13654 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
13655 r=`${PWD_COMMAND}`; export r; \
13656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13657 $(HOST_EXPORTS) \
05a13254 13658 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
13659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13660 done; \
22121df0 13661 echo "Doing distclean in gmp"; \
a90ef4bf 13662 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
13663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13665 "RANLIB=$${RANLIB}" \
0c24b341 13666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13667 distclean) \
2a4cbe27
NN
13668 || exit 1
13669
a90ef4bf 13670@endif gmp
2a4cbe27 13671
a90ef4bf
JM
13672.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
13673maybe-maintainer-clean-gmp:
13674@if gmp
13675maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 13676
a90ef4bf
JM
13677maintainer-clean-gmp:
13678 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
13679 r=`${PWD_COMMAND}`; export r; \
13680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 13681 $(HOST_EXPORTS) \
05a13254 13682 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
13683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13684 done; \
22121df0 13685 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 13686 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
13687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13689 "RANLIB=$${RANLIB}" \
0c24b341 13690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 13691 maintainer-clean) \
2a4cbe27
NN
13692 || exit 1
13693
a90ef4bf 13694@endif gmp
2a4cbe27 13695
2a4cbe27 13696
a7254363 13697
a90ef4bf
JM
13698.PHONY: configure-mpfr maybe-configure-mpfr
13699maybe-configure-mpfr:
4f0ef2d8 13700@if gcc-bootstrap
a90ef4bf 13701configure-mpfr: stage_current
4f0ef2d8 13702@endif gcc-bootstrap
a90ef4bf
JM
13703@if mpfr
13704maybe-configure-mpfr: configure-mpfr
13705configure-mpfr:
13706 @r=`${PWD_COMMAND}`; export r; \
13707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13708 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 13709 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 13710 $(HOST_EXPORTS) \
a90ef4bf
JM
13711 echo Configuring in $(HOST_SUBDIR)/mpfr; \
13712 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 13713 case $(srcdir) in \
b00612cc 13714 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 13715 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 13716 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13717 esac; \
1b6c0831
L
13718 module_srcdir=mpfr; \
13719 $(SHELL) \
13720 $$s/$$module_srcdir/configure \
13721 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13722 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13723 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 13724 || exit 1
a90ef4bf 13725@endif mpfr
d545f33b
PB
13726
13727
2a4cbe27 13728
a90ef4bf
JM
13729.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
13730maybe-configure-stage1-mpfr:
13731@if mpfr-bootstrap
13732maybe-configure-stage1-mpfr: configure-stage1-mpfr
13733configure-stage1-mpfr:
13734 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13735 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 13736 @r=`${PWD_COMMAND}`; export r; \
b40e3958 13737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13738 TFLAGS="$(STAGE1_TFLAGS)"; \
13739 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 13740 $(HOST_EXPORTS) \
a90ef4bf
JM
13741 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13742 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13743 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13744 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
13745 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
13746 cd $(HOST_SUBDIR)/mpfr || exit 1; \
13747 case $(srcdir) in \
13748 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13749 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
13750 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13751 esac; \
1b6c0831
L
13752 module_srcdir=mpfr; \
13753 $(SHELL) $$s/$$module_srcdir/configure \
13754 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13755 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13756 --target=${target_alias} \
13757 \
a90ef4bf
JM
13758 $(STAGE1_CONFIGURE_FLAGS) \
13759 --disable-shared @extra_mpfr_configure_flags@
13760@endif mpfr-bootstrap
2a4cbe27 13761
a90ef4bf
JM
13762.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
13763maybe-configure-stage2-mpfr:
13764@if mpfr-bootstrap
13765maybe-configure-stage2-mpfr: configure-stage2-mpfr
13766configure-stage2-mpfr:
13767 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13768 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 13769 @r=`${PWD_COMMAND}`; export r; \
b40e3958 13770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13771 TFLAGS="$(STAGE2_TFLAGS)"; \
13772 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 13773 $(HOST_EXPORTS) \
a90ef4bf
JM
13774 $(POSTSTAGE1_HOST_EXPORTS) \
13775 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13776 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13777 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13778 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
13779 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
13780 cd $(HOST_SUBDIR)/mpfr || exit 1; \
13781 case $(srcdir) in \
13782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13783 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
13784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13785 esac; \
1b6c0831
L
13786 module_srcdir=mpfr; \
13787 $(SHELL) $$s/$$module_srcdir/configure \
13788 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13789 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13790 --target=${target_alias} \
22121df0 13791 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
13792 $(STAGE2_CONFIGURE_FLAGS) \
13793 --disable-shared @extra_mpfr_configure_flags@
13794@endif mpfr-bootstrap
9b980aa1 13795
a90ef4bf
JM
13796.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
13797maybe-configure-stage3-mpfr:
13798@if mpfr-bootstrap
13799maybe-configure-stage3-mpfr: configure-stage3-mpfr
13800configure-stage3-mpfr:
13801 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13802 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
13803 @r=`${PWD_COMMAND}`; export r; \
13804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13805 TFLAGS="$(STAGE3_TFLAGS)"; \
13806 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 13807 $(HOST_EXPORTS) \
a90ef4bf
JM
13808 $(POSTSTAGE1_HOST_EXPORTS) \
13809 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13810 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13811 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13812 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
13813 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
13814 cd $(HOST_SUBDIR)/mpfr || exit 1; \
13815 case $(srcdir) in \
13816 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13817 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
13818 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13819 esac; \
1b6c0831
L
13820 module_srcdir=mpfr; \
13821 $(SHELL) $$s/$$module_srcdir/configure \
13822 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13823 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13824 --target=${target_alias} \
22121df0 13825 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
13826 $(STAGE3_CONFIGURE_FLAGS) \
13827 --disable-shared @extra_mpfr_configure_flags@
13828@endif mpfr-bootstrap
2a4cbe27 13829
a90ef4bf
JM
13830.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
13831maybe-configure-stage4-mpfr:
13832@if mpfr-bootstrap
13833maybe-configure-stage4-mpfr: configure-stage4-mpfr
13834configure-stage4-mpfr:
13835 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13836 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
13837 @r=`${PWD_COMMAND}`; export r; \
b40e3958 13838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13839 TFLAGS="$(STAGE4_TFLAGS)"; \
13840 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 13841 $(HOST_EXPORTS) \
a90ef4bf
JM
13842 $(POSTSTAGE1_HOST_EXPORTS) \
13843 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13844 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13845 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13846 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
13847 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
13848 cd $(HOST_SUBDIR)/mpfr || exit 1; \
13849 case $(srcdir) in \
13850 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13851 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
13852 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13853 esac; \
1b6c0831
L
13854 module_srcdir=mpfr; \
13855 $(SHELL) $$s/$$module_srcdir/configure \
13856 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13857 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13858 --target=${target_alias} \
22121df0 13859 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
13860 $(STAGE4_CONFIGURE_FLAGS) \
13861 --disable-shared @extra_mpfr_configure_flags@
13862@endif mpfr-bootstrap
2a4cbe27 13863
a90ef4bf
JM
13864.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
13865maybe-configure-stageprofile-mpfr:
13866@if mpfr-bootstrap
13867maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
13868configure-stageprofile-mpfr:
13869 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13870 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
13871 @r=`${PWD_COMMAND}`; export r; \
b40e3958 13872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13873 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13874 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 13875 $(HOST_EXPORTS) \
a90ef4bf
JM
13876 $(POSTSTAGE1_HOST_EXPORTS) \
13877 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13878 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13879 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13880 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
13881 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
13882 cd $(HOST_SUBDIR)/mpfr || exit 1; \
13883 case $(srcdir) in \
13884 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13885 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
13886 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13887 esac; \
1b6c0831
L
13888 module_srcdir=mpfr; \
13889 $(SHELL) $$s/$$module_srcdir/configure \
13890 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13891 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13892 --target=${target_alias} \
22121df0 13893 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
13894 $(STAGEprofile_CONFIGURE_FLAGS) \
13895 --disable-shared @extra_mpfr_configure_flags@
13896@endif mpfr-bootstrap
56a8fe78 13897
f948b2de
NC
13898.PHONY: configure-stagetrain-mpfr maybe-configure-stagetrain-mpfr
13899maybe-configure-stagetrain-mpfr:
13900@if mpfr-bootstrap
13901maybe-configure-stagetrain-mpfr: configure-stagetrain-mpfr
13902configure-stagetrain-mpfr:
13903 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
13904 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
13905 @r=`${PWD_COMMAND}`; export r; \
13906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13907 TFLAGS="$(STAGEtrain_TFLAGS)"; \
13908 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
13909 $(HOST_EXPORTS) \
13910 $(POSTSTAGE1_HOST_EXPORTS) \
13911 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
13912 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
13913 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
13914 echo Configuring stage train in $(HOST_SUBDIR)/mpfr; \
13915 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
13916 cd $(HOST_SUBDIR)/mpfr || exit 1; \
13917 case $(srcdir) in \
13918 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13919 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
13920 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13921 esac; \
13922 module_srcdir=mpfr; \
13923 $(SHELL) $$s/$$module_srcdir/configure \
13924 --srcdir=$${topdir}/$$module_srcdir \
13925 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13926 --target=${target_alias} \
13927 --with-build-libsubdir=$(HOST_SUBDIR) \
13928 $(STAGEtrain_CONFIGURE_FLAGS) \
13929 --disable-shared @extra_mpfr_configure_flags@
13930@endif mpfr-bootstrap
13931
a90ef4bf
JM
13932.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
13933maybe-configure-stagefeedback-mpfr:
13934@if mpfr-bootstrap
13935maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
13936configure-stagefeedback-mpfr:
13937 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13938 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
13939 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 13940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13941 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13942 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 13943 $(HOST_EXPORTS) \
a90ef4bf
JM
13944 $(POSTSTAGE1_HOST_EXPORTS) \
13945 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13946 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13947 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13948 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
13949 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
13950 cd $(HOST_SUBDIR)/mpfr || exit 1; \
13951 case $(srcdir) in \
13952 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13953 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
13954 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13955 esac; \
1b6c0831
L
13956 module_srcdir=mpfr; \
13957 $(SHELL) $$s/$$module_srcdir/configure \
13958 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13959 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13960 --target=${target_alias} \
22121df0 13961 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
13962 $(STAGEfeedback_CONFIGURE_FLAGS) \
13963 --disable-shared @extra_mpfr_configure_flags@
13964@endif mpfr-bootstrap
56a8fe78 13965
f948b2de
NC
13966.PHONY: configure-stageautoprofile-mpfr maybe-configure-stageautoprofile-mpfr
13967maybe-configure-stageautoprofile-mpfr:
13968@if mpfr-bootstrap
13969maybe-configure-stageautoprofile-mpfr: configure-stageautoprofile-mpfr
13970configure-stageautoprofile-mpfr:
13971 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
13972 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
13973 @r=`${PWD_COMMAND}`; export r; \
13974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13975 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
13976 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
13977 $(HOST_EXPORTS) \
13978 $(POSTSTAGE1_HOST_EXPORTS) \
13979 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
13980 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
13981 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
13982 echo Configuring stage autoprofile in $(HOST_SUBDIR)/mpfr; \
13983 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
13984 cd $(HOST_SUBDIR)/mpfr || exit 1; \
13985 case $(srcdir) in \
13986 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13987 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
13988 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13989 esac; \
13990 module_srcdir=mpfr; \
13991 $(SHELL) $$s/$$module_srcdir/configure \
13992 --srcdir=$${topdir}/$$module_srcdir \
13993 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
13994 --target=${target_alias} \
13995 --with-build-libsubdir=$(HOST_SUBDIR) \
13996 $(STAGEautoprofile_CONFIGURE_FLAGS) \
13997 --disable-shared @extra_mpfr_configure_flags@
13998@endif mpfr-bootstrap
13999
14000.PHONY: configure-stageautofeedback-mpfr maybe-configure-stageautofeedback-mpfr
14001maybe-configure-stageautofeedback-mpfr:
14002@if mpfr-bootstrap
14003maybe-configure-stageautofeedback-mpfr: configure-stageautofeedback-mpfr
14004configure-stageautofeedback-mpfr:
14005 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
14006 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
14007 @r=`${PWD_COMMAND}`; export r; \
14008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14009 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
14010 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
14011 $(HOST_EXPORTS) \
14012 $(POSTSTAGE1_HOST_EXPORTS) \
14013 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
14014 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
14015 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
14016 echo Configuring stage autofeedback in $(HOST_SUBDIR)/mpfr; \
14017 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
14018 cd $(HOST_SUBDIR)/mpfr || exit 1; \
14019 case $(srcdir) in \
14020 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14021 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
14022 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14023 esac; \
14024 module_srcdir=mpfr; \
14025 $(SHELL) $$s/$$module_srcdir/configure \
14026 --srcdir=$${topdir}/$$module_srcdir \
14027 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
14028 --target=${target_alias} \
14029 --with-build-libsubdir=$(HOST_SUBDIR) \
14030 $(STAGEautofeedback_CONFIGURE_FLAGS) \
14031 --disable-shared @extra_mpfr_configure_flags@
14032@endif mpfr-bootstrap
14033
6d389afc 14034
6d389afc 14035
6d389afc 14036
2a4cbe27 14037
a90ef4bf
JM
14038.PHONY: all-mpfr maybe-all-mpfr
14039maybe-all-mpfr:
14040@if gcc-bootstrap
14041all-mpfr: stage_current
14042@endif gcc-bootstrap
14043@if mpfr
14044TARGET-mpfr=all
14045maybe-all-mpfr: all-mpfr
14046all-mpfr: configure-mpfr
14047 @r=`${PWD_COMMAND}`; export r; \
b40e3958 14048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14049 $(HOST_EXPORTS) \
14050 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 14051 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
14052 $(TARGET-mpfr))
14053@endif mpfr
2a4cbe27
NN
14054
14055
2a4cbe27 14056
a90ef4bf
JM
14057.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
14058.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
14059maybe-all-stage1-mpfr:
14060maybe-clean-stage1-mpfr:
14061@if mpfr-bootstrap
14062maybe-all-stage1-mpfr: all-stage1-mpfr
14063all-stage1: all-stage1-mpfr
14064TARGET-stage1-mpfr = $(TARGET-mpfr)
14065all-stage1-mpfr: configure-stage1-mpfr
14066 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
14067 @r=`${PWD_COMMAND}`; export r; \
b40e3958 14068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14069 TFLAGS="$(STAGE1_TFLAGS)"; \
14070 $(HOST_EXPORTS) \
14071 cd $(HOST_SUBDIR)/mpfr && \
05a13254 14072 \
a90ef4bf
JM
14073 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14074 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 14075 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
14076 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
14077 LIBCFLAGS="$(LIBCFLAGS)" \
14078 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14079 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14080 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 14081 $(EXTRA_HOST_FLAGS) \
ce5e165e 14082 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 14083 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14084 $(TARGET-stage1-mpfr)
2a4cbe27 14085
a90ef4bf
JM
14086maybe-clean-stage1-mpfr: clean-stage1-mpfr
14087clean-stage1: clean-stage1-mpfr
14088clean-stage1-mpfr:
14089 @if [ $(current_stage) = stage1 ]; then \
14090 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
14091 else \
14092 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
14093 $(MAKE) stage1-start; \
14094 fi; \
14095 cd $(HOST_SUBDIR)/mpfr && \
14096 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce5e165e 14097 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 14098@endif mpfr-bootstrap
2a4cbe27 14099
a3ca38d2 14100
a90ef4bf
JM
14101.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
14102.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
14103maybe-all-stage2-mpfr:
14104maybe-clean-stage2-mpfr:
14105@if mpfr-bootstrap
14106maybe-all-stage2-mpfr: all-stage2-mpfr
14107all-stage2: all-stage2-mpfr
14108TARGET-stage2-mpfr = $(TARGET-mpfr)
14109all-stage2-mpfr: configure-stage2-mpfr
14110 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
14111 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 14112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14113 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 14114 $(HOST_EXPORTS) \
a90ef4bf
JM
14115 $(POSTSTAGE1_HOST_EXPORTS) \
14116 cd $(HOST_SUBDIR)/mpfr && \
05a13254 14117 \
a90ef4bf
JM
14118 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14119 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 14120 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
14121 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
14122 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14123 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14124 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14125 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 14126 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 14127 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14128 $(TARGET-stage2-mpfr)
a3ca38d2 14129
a90ef4bf
JM
14130maybe-clean-stage2-mpfr: clean-stage2-mpfr
14131clean-stage2: clean-stage2-mpfr
14132clean-stage2-mpfr:
14133 @if [ $(current_stage) = stage2 ]; then \
14134 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
14135 else \
14136 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
14137 $(MAKE) stage2-start; \
14138 fi; \
14139 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 14140 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 14141@endif mpfr-bootstrap
a3ca38d2 14142
108a6f8e 14143
a90ef4bf
JM
14144.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
14145.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
14146maybe-all-stage3-mpfr:
14147maybe-clean-stage3-mpfr:
14148@if mpfr-bootstrap
14149maybe-all-stage3-mpfr: all-stage3-mpfr
14150all-stage3: all-stage3-mpfr
14151TARGET-stage3-mpfr = $(TARGET-mpfr)
14152all-stage3-mpfr: configure-stage3-mpfr
14153 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14154 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 14155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14156 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 14157 $(HOST_EXPORTS) \
a90ef4bf
JM
14158 $(POSTSTAGE1_HOST_EXPORTS) \
14159 cd $(HOST_SUBDIR)/mpfr && \
05a13254 14160 \
a90ef4bf
JM
14161 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14162 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 14163 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
14164 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14165 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14166 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14167 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14168 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 14169 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 14170 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14171 $(TARGET-stage3-mpfr)
108a6f8e 14172
a90ef4bf
JM
14173maybe-clean-stage3-mpfr: clean-stage3-mpfr
14174clean-stage3: clean-stage3-mpfr
14175clean-stage3-mpfr:
14176 @if [ $(current_stage) = stage3 ]; then \
14177 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
14178 else \
14179 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
14180 $(MAKE) stage3-start; \
14181 fi; \
14182 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 14183 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 14184@endif mpfr-bootstrap
108a6f8e 14185
2a4cbe27 14186
a90ef4bf
JM
14187.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
14188.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
14189maybe-all-stage4-mpfr:
14190maybe-clean-stage4-mpfr:
14191@if mpfr-bootstrap
14192maybe-all-stage4-mpfr: all-stage4-mpfr
14193all-stage4: all-stage4-mpfr
14194TARGET-stage4-mpfr = $(TARGET-mpfr)
14195all-stage4-mpfr: configure-stage4-mpfr
14196 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14197 @r=`${PWD_COMMAND}`; export r; \
b40e3958 14198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14199 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 14200 $(HOST_EXPORTS) \
a90ef4bf
JM
14201 $(POSTSTAGE1_HOST_EXPORTS) \
14202 cd $(HOST_SUBDIR)/mpfr && \
05a13254 14203 \
a90ef4bf
JM
14204 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14205 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 14206 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
14207 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14208 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14209 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14210 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14211 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 14212 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 14213 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 14214 $(TARGET-stage4-mpfr)
2a4cbe27 14215
a90ef4bf
JM
14216maybe-clean-stage4-mpfr: clean-stage4-mpfr
14217clean-stage4: clean-stage4-mpfr
14218clean-stage4-mpfr:
14219 @if [ $(current_stage) = stage4 ]; then \
14220 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
14221 else \
14222 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
14223 $(MAKE) stage4-start; \
14224 fi; \
14225 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 14226 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 14227@endif mpfr-bootstrap
2a4cbe27 14228
2a4cbe27 14229
a90ef4bf
JM
14230.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
14231.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
14232maybe-all-stageprofile-mpfr:
14233maybe-clean-stageprofile-mpfr:
14234@if mpfr-bootstrap
14235maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
14236all-stageprofile: all-stageprofile-mpfr
14237TARGET-stageprofile-mpfr = $(TARGET-mpfr)
14238all-stageprofile-mpfr: configure-stageprofile-mpfr
14239 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14240 @r=`${PWD_COMMAND}`; export r; \
b40e3958 14241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14242 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 14243 $(HOST_EXPORTS) \
a90ef4bf
JM
14244 $(POSTSTAGE1_HOST_EXPORTS) \
14245 cd $(HOST_SUBDIR)/mpfr && \
05a13254 14246 \
a90ef4bf
JM
14247 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14248 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 14249 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
14250 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14251 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14252 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14253 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14254 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 14255 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 14256 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 14257 $(TARGET-stageprofile-mpfr)
2a4cbe27 14258
a90ef4bf
JM
14259maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
14260clean-stageprofile: clean-stageprofile-mpfr
14261clean-stageprofile-mpfr:
14262 @if [ $(current_stage) = stageprofile ]; then \
14263 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
14264 else \
14265 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
14266 $(MAKE) stageprofile-start; \
14267 fi; \
14268 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 14269 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 14270@endif mpfr-bootstrap
2a4cbe27 14271
a7254363 14272
f948b2de
NC
14273.PHONY: all-stagetrain-mpfr maybe-all-stagetrain-mpfr
14274.PHONY: clean-stagetrain-mpfr maybe-clean-stagetrain-mpfr
14275maybe-all-stagetrain-mpfr:
14276maybe-clean-stagetrain-mpfr:
14277@if mpfr-bootstrap
14278maybe-all-stagetrain-mpfr: all-stagetrain-mpfr
14279all-stagetrain: all-stagetrain-mpfr
14280TARGET-stagetrain-mpfr = $(TARGET-mpfr)
14281all-stagetrain-mpfr: configure-stagetrain-mpfr
14282 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
14283 @r=`${PWD_COMMAND}`; export r; \
14284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14285 TFLAGS="$(STAGEtrain_TFLAGS)"; \
14286 $(HOST_EXPORTS) \
14287 $(POSTSTAGE1_HOST_EXPORTS) \
14288 cd $(HOST_SUBDIR)/mpfr && \
14289 \
14290 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14291 CFLAGS="$(STAGEtrain_CFLAGS)" \
14292 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
14293 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
14294 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
14295 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14296 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14297 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14298 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
14299 TFLAGS="$(STAGEtrain_TFLAGS)" \
14300 $(TARGET-stagetrain-mpfr)
14301
14302maybe-clean-stagetrain-mpfr: clean-stagetrain-mpfr
14303clean-stagetrain: clean-stagetrain-mpfr
14304clean-stagetrain-mpfr:
14305 @if [ $(current_stage) = stagetrain ]; then \
14306 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
14307 else \
14308 [ -f $(HOST_SUBDIR)/stagetrain-mpfr/Makefile ] || exit 0; \
14309 $(MAKE) stagetrain-start; \
14310 fi; \
14311 cd $(HOST_SUBDIR)/mpfr && \
14312 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
14313@endif mpfr-bootstrap
14314
14315
a90ef4bf
JM
14316.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
14317.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
14318maybe-all-stagefeedback-mpfr:
14319maybe-clean-stagefeedback-mpfr:
14320@if mpfr-bootstrap
14321maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
14322all-stagefeedback: all-stagefeedback-mpfr
14323TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
14324all-stagefeedback-mpfr: configure-stagefeedback-mpfr
14325 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 14326 @r=`${PWD_COMMAND}`; export r; \
b40e3958 14327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14328 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14329 $(HOST_EXPORTS) \
14330 $(POSTSTAGE1_HOST_EXPORTS) \
14331 cd $(HOST_SUBDIR)/mpfr && \
05a13254 14332 \
a90ef4bf
JM
14333 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14334 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 14335 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
14336 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14337 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14338 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14339 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14340 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 14341 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 14342 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 14343 $(TARGET-stagefeedback-mpfr)
d545f33b 14344
a90ef4bf
JM
14345maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
14346clean-stagefeedback: clean-stagefeedback-mpfr
14347clean-stagefeedback-mpfr:
14348 @if [ $(current_stage) = stagefeedback ]; then \
14349 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
14350 else \
14351 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
14352 $(MAKE) stagefeedback-start; \
14353 fi; \
14354 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 14355 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 14356@endif mpfr-bootstrap
d545f33b 14357
2a4cbe27 14358
f948b2de
NC
14359.PHONY: all-stageautoprofile-mpfr maybe-all-stageautoprofile-mpfr
14360.PHONY: clean-stageautoprofile-mpfr maybe-clean-stageautoprofile-mpfr
14361maybe-all-stageautoprofile-mpfr:
14362maybe-clean-stageautoprofile-mpfr:
14363@if mpfr-bootstrap
14364maybe-all-stageautoprofile-mpfr: all-stageautoprofile-mpfr
14365all-stageautoprofile: all-stageautoprofile-mpfr
14366TARGET-stageautoprofile-mpfr = $(TARGET-mpfr)
14367all-stageautoprofile-mpfr: configure-stageautoprofile-mpfr
14368 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
14369 @r=`${PWD_COMMAND}`; export r; \
14370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14371 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
14372 $(HOST_EXPORTS) \
14373 $(POSTSTAGE1_HOST_EXPORTS) \
14374 cd $(HOST_SUBDIR)/mpfr && \
14375 $$s/gcc/config/i386/$(AUTO_PROFILE) \
14376 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14377 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
14378 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
14379 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
14380 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
14381 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14382 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14383 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14384 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
14385 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
14386 $(TARGET-stageautoprofile-mpfr)
14387
14388maybe-clean-stageautoprofile-mpfr: clean-stageautoprofile-mpfr
14389clean-stageautoprofile: clean-stageautoprofile-mpfr
14390clean-stageautoprofile-mpfr:
14391 @if [ $(current_stage) = stageautoprofile ]; then \
14392 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
14393 else \
14394 [ -f $(HOST_SUBDIR)/stageautoprofile-mpfr/Makefile ] || exit 0; \
14395 $(MAKE) stageautoprofile-start; \
14396 fi; \
14397 cd $(HOST_SUBDIR)/mpfr && \
14398 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
14399@endif mpfr-bootstrap
14400
14401
14402.PHONY: all-stageautofeedback-mpfr maybe-all-stageautofeedback-mpfr
14403.PHONY: clean-stageautofeedback-mpfr maybe-clean-stageautofeedback-mpfr
14404maybe-all-stageautofeedback-mpfr:
14405maybe-clean-stageautofeedback-mpfr:
14406@if mpfr-bootstrap
14407maybe-all-stageautofeedback-mpfr: all-stageautofeedback-mpfr
14408all-stageautofeedback: all-stageautofeedback-mpfr
14409TARGET-stageautofeedback-mpfr = $(TARGET-mpfr)
14410all-stageautofeedback-mpfr: configure-stageautofeedback-mpfr
14411 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
14412 @r=`${PWD_COMMAND}`; export r; \
14413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14414 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
14415 $(HOST_EXPORTS) \
14416 $(POSTSTAGE1_HOST_EXPORTS) \
14417 cd $(HOST_SUBDIR)/mpfr && \
14418 \
14419 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14420 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
14421 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
14422 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
14423 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
14424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
14427 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
14428 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
14429 $(TARGET-stageautofeedback-mpfr)
14430
14431maybe-clean-stageautofeedback-mpfr: clean-stageautofeedback-mpfr
14432clean-stageautofeedback: clean-stageautofeedback-mpfr
14433clean-stageautofeedback-mpfr:
14434 @if [ $(current_stage) = stageautofeedback ]; then \
14435 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
14436 else \
14437 [ -f $(HOST_SUBDIR)/stageautofeedback-mpfr/Makefile ] || exit 0; \
14438 $(MAKE) stageautofeedback-start; \
14439 fi; \
14440 cd $(HOST_SUBDIR)/mpfr && \
14441 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
14442@endif mpfr-bootstrap
14443
14444
a7254363 14445
d545f33b
PB
14446
14447
a90ef4bf
JM
14448.PHONY: check-mpfr maybe-check-mpfr
14449maybe-check-mpfr:
14450@if mpfr
14451maybe-check-mpfr: check-mpfr
2a4cbe27 14452
a90ef4bf 14453check-mpfr:
0aed8855 14454 @: $(MAKE); $(unstage)
4fa63067 14455 @r=`${PWD_COMMAND}`; export r; \
b40e3958 14456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14457 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 14458 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 14459 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 14460
a90ef4bf 14461@endif mpfr
2a4cbe27 14462
a90ef4bf
JM
14463.PHONY: install-mpfr maybe-install-mpfr
14464maybe-install-mpfr:
14465@if mpfr
14466maybe-install-mpfr: install-mpfr
2a4cbe27 14467
a90ef4bf 14468install-mpfr:
4fa63067 14469
a90ef4bf 14470@endif mpfr
4fa63067 14471
a90ef4bf
JM
14472.PHONY: install-strip-mpfr maybe-install-strip-mpfr
14473maybe-install-strip-mpfr:
14474@if mpfr
14475maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 14476
a90ef4bf 14477install-strip-mpfr:
9b980aa1 14478
a90ef4bf 14479@endif mpfr
9b980aa1 14480
56a8fe78 14481# Other targets (info, dvi, pdf, etc.)
4fa63067 14482
a90ef4bf
JM
14483.PHONY: maybe-info-mpfr info-mpfr
14484maybe-info-mpfr:
14485@if mpfr
14486maybe-info-mpfr: info-mpfr
4fa63067 14487
a90ef4bf
JM
14488info-mpfr: \
14489 configure-mpfr
14490 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
14491 r=`${PWD_COMMAND}`; export r; \
14492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14493 $(HOST_EXPORTS) \
ce5e165e 14494 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
14495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14496 done; \
22121df0 14497 echo "Doing info in mpfr"; \
a90ef4bf 14498 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
14499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14501 "RANLIB=$${RANLIB}" \
0c24b341 14502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14503 info) \
2a4cbe27
NN
14504 || exit 1
14505
a90ef4bf 14506@endif mpfr
2a4cbe27 14507
a90ef4bf
JM
14508.PHONY: maybe-dvi-mpfr dvi-mpfr
14509maybe-dvi-mpfr:
14510@if mpfr
14511maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 14512
a90ef4bf
JM
14513dvi-mpfr: \
14514 configure-mpfr
14515 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
14516 r=`${PWD_COMMAND}`; export r; \
14517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14518 $(HOST_EXPORTS) \
ce5e165e 14519 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
14520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14521 done; \
22121df0 14522 echo "Doing dvi in mpfr"; \
a90ef4bf 14523 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
14524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14526 "RANLIB=$${RANLIB}" \
0c24b341 14527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14528 dvi) \
2a4cbe27
NN
14529 || exit 1
14530
a90ef4bf 14531@endif mpfr
2a4cbe27 14532
a90ef4bf
JM
14533.PHONY: maybe-pdf-mpfr pdf-mpfr
14534maybe-pdf-mpfr:
14535@if mpfr
14536maybe-pdf-mpfr: pdf-mpfr
56a8fe78 14537
a90ef4bf
JM
14538pdf-mpfr: \
14539 configure-mpfr
14540 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
14541 r=`${PWD_COMMAND}`; export r; \
14542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14543 $(HOST_EXPORTS) \
ce5e165e 14544 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
14545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14546 done; \
22121df0 14547 echo "Doing pdf in mpfr"; \
a90ef4bf 14548 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
14549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14551 "RANLIB=$${RANLIB}" \
0c24b341 14552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14553 pdf) \
14554 || exit 1
14555
a90ef4bf 14556@endif mpfr
56a8fe78 14557
a90ef4bf
JM
14558.PHONY: maybe-html-mpfr html-mpfr
14559maybe-html-mpfr:
14560@if mpfr
14561maybe-html-mpfr: html-mpfr
6d389afc 14562
a90ef4bf
JM
14563html-mpfr: \
14564 configure-mpfr
14565 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
14566 r=`${PWD_COMMAND}`; export r; \
14567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14568 $(HOST_EXPORTS) \
ce5e165e 14569 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
14570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14571 done; \
22121df0 14572 echo "Doing html in mpfr"; \
a90ef4bf 14573 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
14574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14576 "RANLIB=$${RANLIB}" \
0c24b341 14577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14578 html) \
14579 || exit 1
14580
a90ef4bf 14581@endif mpfr
6d389afc 14582
a90ef4bf
JM
14583.PHONY: maybe-TAGS-mpfr TAGS-mpfr
14584maybe-TAGS-mpfr:
14585@if mpfr
14586maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 14587
a90ef4bf
JM
14588TAGS-mpfr: \
14589 configure-mpfr
14590 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
14591 r=`${PWD_COMMAND}`; export r; \
14592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14593 $(HOST_EXPORTS) \
ce5e165e 14594 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
14595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14596 done; \
22121df0 14597 echo "Doing TAGS in mpfr"; \
a90ef4bf 14598 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
14599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14601 "RANLIB=$${RANLIB}" \
0c24b341 14602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14603 TAGS) \
2a4cbe27
NN
14604 || exit 1
14605
a90ef4bf 14606@endif mpfr
2a4cbe27 14607
a90ef4bf
JM
14608.PHONY: maybe-install-info-mpfr install-info-mpfr
14609maybe-install-info-mpfr:
14610@if mpfr
14611maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 14612
a90ef4bf
JM
14613install-info-mpfr: \
14614 configure-mpfr \
14615 info-mpfr
14616 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
14617 r=`${PWD_COMMAND}`; export r; \
14618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14619 $(HOST_EXPORTS) \
ce5e165e 14620 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
14621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14622 done; \
22121df0 14623 echo "Doing install-info in mpfr"; \
a90ef4bf 14624 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
14625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14627 "RANLIB=$${RANLIB}" \
0c24b341 14628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14629 install-info) \
2a4cbe27
NN
14630 || exit 1
14631
a90ef4bf 14632@endif mpfr
2a4cbe27 14633
a90ef4bf
JM
14634.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
14635maybe-install-pdf-mpfr:
14636@if mpfr
14637maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 14638
a90ef4bf
JM
14639install-pdf-mpfr: \
14640 configure-mpfr \
14641 pdf-mpfr
14642 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
14643 r=`${PWD_COMMAND}`; export r; \
14644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14645 $(HOST_EXPORTS) \
ce5e165e 14646 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
14647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14648 done; \
22121df0 14649 echo "Doing install-pdf in mpfr"; \
a90ef4bf 14650 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
14651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14653 "RANLIB=$${RANLIB}" \
0c24b341 14654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14655 install-pdf) \
14656 || exit 1
14657
a90ef4bf 14658@endif mpfr
a3ca38d2 14659
a90ef4bf
JM
14660.PHONY: maybe-install-html-mpfr install-html-mpfr
14661maybe-install-html-mpfr:
14662@if mpfr
14663maybe-install-html-mpfr: install-html-mpfr
108a6f8e 14664
a90ef4bf
JM
14665install-html-mpfr: \
14666 configure-mpfr \
14667 html-mpfr
14668 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
14669 r=`${PWD_COMMAND}`; export r; \
14670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14671 $(HOST_EXPORTS) \
ce5e165e 14672 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
14673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14674 done; \
22121df0 14675 echo "Doing install-html in mpfr"; \
a90ef4bf 14676 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
14677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14679 "RANLIB=$${RANLIB}" \
0c24b341 14680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14681 install-html) \
14682 || exit 1
14683
a90ef4bf 14684@endif mpfr
108a6f8e 14685
a90ef4bf
JM
14686.PHONY: maybe-installcheck-mpfr installcheck-mpfr
14687maybe-installcheck-mpfr:
14688@if mpfr
14689maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 14690
a90ef4bf
JM
14691installcheck-mpfr: \
14692 configure-mpfr
14693 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
14694 r=`${PWD_COMMAND}`; export r; \
14695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14696 $(HOST_EXPORTS) \
ce5e165e 14697 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
14698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14699 done; \
22121df0 14700 echo "Doing installcheck in mpfr"; \
a90ef4bf 14701 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
14702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14704 "RANLIB=$${RANLIB}" \
0c24b341 14705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14706 installcheck) \
2a4cbe27
NN
14707 || exit 1
14708
a90ef4bf 14709@endif mpfr
2a4cbe27 14710
a90ef4bf
JM
14711.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
14712maybe-mostlyclean-mpfr:
14713@if mpfr
14714maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 14715
a90ef4bf
JM
14716mostlyclean-mpfr:
14717 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
14718 r=`${PWD_COMMAND}`; export r; \
14719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14720 $(HOST_EXPORTS) \
ce5e165e 14721 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
14722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14723 done; \
22121df0 14724 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 14725 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
14726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14728 "RANLIB=$${RANLIB}" \
0c24b341 14729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14730 mostlyclean) \
2a4cbe27
NN
14731 || exit 1
14732
a90ef4bf 14733@endif mpfr
2a4cbe27 14734
a90ef4bf
JM
14735.PHONY: maybe-clean-mpfr clean-mpfr
14736maybe-clean-mpfr:
14737@if mpfr
14738maybe-clean-mpfr: clean-mpfr
2a4cbe27 14739
a90ef4bf
JM
14740clean-mpfr:
14741 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
14742 r=`${PWD_COMMAND}`; export r; \
14743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14744 $(HOST_EXPORTS) \
ce5e165e 14745 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
14746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14747 done; \
22121df0 14748 echo "Doing clean in mpfr"; \
a90ef4bf 14749 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
14750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14752 "RANLIB=$${RANLIB}" \
0c24b341 14753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14754 clean) \
2a4cbe27
NN
14755 || exit 1
14756
a90ef4bf 14757@endif mpfr
2a4cbe27 14758
a90ef4bf
JM
14759.PHONY: maybe-distclean-mpfr distclean-mpfr
14760maybe-distclean-mpfr:
14761@if mpfr
14762maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 14763
a90ef4bf
JM
14764distclean-mpfr:
14765 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
14766 r=`${PWD_COMMAND}`; export r; \
14767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14768 $(HOST_EXPORTS) \
ce5e165e 14769 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
14770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14771 done; \
22121df0 14772 echo "Doing distclean in mpfr"; \
a90ef4bf 14773 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
14774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14776 "RANLIB=$${RANLIB}" \
0c24b341 14777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14778 distclean) \
2a4cbe27
NN
14779 || exit 1
14780
a90ef4bf 14781@endif mpfr
2a4cbe27 14782
a90ef4bf
JM
14783.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
14784maybe-maintainer-clean-mpfr:
14785@if mpfr
14786maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 14787
a90ef4bf
JM
14788maintainer-clean-mpfr:
14789 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
14790 r=`${PWD_COMMAND}`; export r; \
14791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14792 $(HOST_EXPORTS) \
ce5e165e 14793 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
14794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14795 done; \
22121df0 14796 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 14797 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
14798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14800 "RANLIB=$${RANLIB}" \
0c24b341 14801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14802 maintainer-clean) \
2a4cbe27
NN
14803 || exit 1
14804
a90ef4bf 14805@endif mpfr
2a4cbe27 14806
2a4cbe27 14807
a7254363 14808
a90ef4bf
JM
14809.PHONY: configure-mpc maybe-configure-mpc
14810maybe-configure-mpc:
4f0ef2d8 14811@if gcc-bootstrap
a90ef4bf 14812configure-mpc: stage_current
4f0ef2d8 14813@endif gcc-bootstrap
a90ef4bf
JM
14814@if mpc
14815maybe-configure-mpc: configure-mpc
14816configure-mpc:
c52c6897 14817 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 14818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14819 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 14820 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 14821 $(HOST_EXPORTS) \
a90ef4bf
JM
14822 echo Configuring in $(HOST_SUBDIR)/mpc; \
14823 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 14824 case $(srcdir) in \
b00612cc 14825 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14826 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 14827 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 14828 esac; \
1b6c0831
L
14829 module_srcdir=mpc; \
14830 $(SHELL) \
14831 $$s/$$module_srcdir/configure \
14832 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14833 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
f948b2de 14834 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode \
d3ed111c 14835 || exit 1
a90ef4bf 14836@endif mpc
d545f33b
PB
14837
14838
d3ed111c 14839
a90ef4bf
JM
14840.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
14841maybe-configure-stage1-mpc:
14842@if mpc-bootstrap
14843maybe-configure-stage1-mpc: configure-stage1-mpc
14844configure-stage1-mpc:
14845 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
14846 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
14847 @r=`${PWD_COMMAND}`; export r; \
14848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14849 TFLAGS="$(STAGE1_TFLAGS)"; \
14850 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 14851 $(HOST_EXPORTS) \
a90ef4bf
JM
14852 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
14853 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14854 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14855 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
14856 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
14857 cd $(HOST_SUBDIR)/mpc || exit 1; \
14858 case $(srcdir) in \
14859 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14860 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
14861 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14862 esac; \
1b6c0831
L
14863 module_srcdir=mpc; \
14864 $(SHELL) $$s/$$module_srcdir/configure \
14865 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 14866 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14867 --target=${target_alias} \
14868 \
a90ef4bf 14869 $(STAGE1_CONFIGURE_FLAGS) \
f948b2de 14870 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode
a90ef4bf 14871@endif mpc-bootstrap
d3ed111c 14872
a90ef4bf
JM
14873.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
14874maybe-configure-stage2-mpc:
14875@if mpc-bootstrap
14876maybe-configure-stage2-mpc: configure-stage2-mpc
14877configure-stage2-mpc:
14878 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
14879 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
14880 @r=`${PWD_COMMAND}`; export r; \
14881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14882 TFLAGS="$(STAGE2_TFLAGS)"; \
14883 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 14884 $(HOST_EXPORTS) \
a90ef4bf
JM
14885 $(POSTSTAGE1_HOST_EXPORTS) \
14886 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
14887 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14888 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14889 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
14890 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
14891 cd $(HOST_SUBDIR)/mpc || exit 1; \
14892 case $(srcdir) in \
14893 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14894 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
14895 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14896 esac; \
1b6c0831
L
14897 module_srcdir=mpc; \
14898 $(SHELL) $$s/$$module_srcdir/configure \
14899 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 14900 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14901 --target=${target_alias} \
22121df0 14902 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 14903 $(STAGE2_CONFIGURE_FLAGS) \
f948b2de 14904 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode
a90ef4bf 14905@endif mpc-bootstrap
9b980aa1 14906
a90ef4bf
JM
14907.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
14908maybe-configure-stage3-mpc:
14909@if mpc-bootstrap
14910maybe-configure-stage3-mpc: configure-stage3-mpc
14911configure-stage3-mpc:
14912 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14913 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
14914 @r=`${PWD_COMMAND}`; export r; \
14915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14916 TFLAGS="$(STAGE3_TFLAGS)"; \
14917 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 14918 $(HOST_EXPORTS) \
a90ef4bf
JM
14919 $(POSTSTAGE1_HOST_EXPORTS) \
14920 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
14921 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14922 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14923 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
14924 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
14925 cd $(HOST_SUBDIR)/mpc || exit 1; \
14926 case $(srcdir) in \
14927 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14928 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
14929 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14930 esac; \
1b6c0831
L
14931 module_srcdir=mpc; \
14932 $(SHELL) $$s/$$module_srcdir/configure \
14933 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 14934 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14935 --target=${target_alias} \
22121df0 14936 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 14937 $(STAGE3_CONFIGURE_FLAGS) \
f948b2de 14938 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode
a90ef4bf 14939@endif mpc-bootstrap
d3ed111c 14940
a90ef4bf
JM
14941.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
14942maybe-configure-stage4-mpc:
14943@if mpc-bootstrap
14944maybe-configure-stage4-mpc: configure-stage4-mpc
14945configure-stage4-mpc:
14946 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14947 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
14948 @r=`${PWD_COMMAND}`; export r; \
14949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14950 TFLAGS="$(STAGE4_TFLAGS)"; \
14951 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
14952 $(HOST_EXPORTS) \
14953 $(POSTSTAGE1_HOST_EXPORTS) \
14954 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
14955 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14956 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14957 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
14958 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
14959 cd $(HOST_SUBDIR)/mpc || exit 1; \
14960 case $(srcdir) in \
14961 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14962 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
14963 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14964 esac; \
1b6c0831
L
14965 module_srcdir=mpc; \
14966 $(SHELL) $$s/$$module_srcdir/configure \
14967 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 14968 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14969 --target=${target_alias} \
22121df0 14970 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 14971 $(STAGE4_CONFIGURE_FLAGS) \
f948b2de 14972 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode
a90ef4bf
JM
14973@endif mpc-bootstrap
14974
14975.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
14976maybe-configure-stageprofile-mpc:
14977@if mpc-bootstrap
14978maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
14979configure-stageprofile-mpc:
14980 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14981 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
14982 @r=`${PWD_COMMAND}`; export r; \
14983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14984 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14985 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
14986 $(HOST_EXPORTS) \
14987 $(POSTSTAGE1_HOST_EXPORTS) \
14988 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
14989 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14990 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14991 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
14992 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
14993 cd $(HOST_SUBDIR)/mpc || exit 1; \
14994 case $(srcdir) in \
14995 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14996 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
14997 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14998 esac; \
1b6c0831
L
14999 module_srcdir=mpc; \
15000 $(SHELL) $$s/$$module_srcdir/configure \
15001 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15002 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15003 --target=${target_alias} \
22121df0 15004 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 15005 $(STAGEprofile_CONFIGURE_FLAGS) \
f948b2de
NC
15006 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode
15007@endif mpc-bootstrap
15008
15009.PHONY: configure-stagetrain-mpc maybe-configure-stagetrain-mpc
15010maybe-configure-stagetrain-mpc:
15011@if mpc-bootstrap
15012maybe-configure-stagetrain-mpc: configure-stagetrain-mpc
15013configure-stagetrain-mpc:
15014 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
15015 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
15016 @r=`${PWD_COMMAND}`; export r; \
15017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15018 TFLAGS="$(STAGEtrain_TFLAGS)"; \
15019 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
15020 $(HOST_EXPORTS) \
15021 $(POSTSTAGE1_HOST_EXPORTS) \
15022 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
15023 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
15024 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
15025 echo Configuring stage train in $(HOST_SUBDIR)/mpc; \
15026 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
15027 cd $(HOST_SUBDIR)/mpc || exit 1; \
15028 case $(srcdir) in \
15029 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15030 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
15031 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15032 esac; \
15033 module_srcdir=mpc; \
15034 $(SHELL) $$s/$$module_srcdir/configure \
15035 --srcdir=$${topdir}/$$module_srcdir \
15036 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15037 --target=${target_alias} \
15038 --with-build-libsubdir=$(HOST_SUBDIR) \
15039 $(STAGEtrain_CONFIGURE_FLAGS) \
15040 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode
a90ef4bf
JM
15041@endif mpc-bootstrap
15042
15043.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
15044maybe-configure-stagefeedback-mpc:
15045@if mpc-bootstrap
15046maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
15047configure-stagefeedback-mpc:
15048 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15049 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
15050 @r=`${PWD_COMMAND}`; export r; \
15051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15052 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15053 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
15054 $(HOST_EXPORTS) \
15055 $(POSTSTAGE1_HOST_EXPORTS) \
15056 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15057 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15058 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15059 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
15060 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
15061 cd $(HOST_SUBDIR)/mpc || exit 1; \
15062 case $(srcdir) in \
15063 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15064 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
15065 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15066 esac; \
1b6c0831
L
15067 module_srcdir=mpc; \
15068 $(SHELL) $$s/$$module_srcdir/configure \
15069 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15070 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15071 --target=${target_alias} \
22121df0 15072 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 15073 $(STAGEfeedback_CONFIGURE_FLAGS) \
f948b2de
NC
15074 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode
15075@endif mpc-bootstrap
15076
15077.PHONY: configure-stageautoprofile-mpc maybe-configure-stageautoprofile-mpc
15078maybe-configure-stageautoprofile-mpc:
15079@if mpc-bootstrap
15080maybe-configure-stageautoprofile-mpc: configure-stageautoprofile-mpc
15081configure-stageautoprofile-mpc:
15082 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
15083 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
15084 @r=`${PWD_COMMAND}`; export r; \
15085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15086 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
15087 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
15088 $(HOST_EXPORTS) \
15089 $(POSTSTAGE1_HOST_EXPORTS) \
15090 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
15091 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
15092 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
15093 echo Configuring stage autoprofile in $(HOST_SUBDIR)/mpc; \
15094 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
15095 cd $(HOST_SUBDIR)/mpc || exit 1; \
15096 case $(srcdir) in \
15097 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15098 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
15099 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15100 esac; \
15101 module_srcdir=mpc; \
15102 $(SHELL) $$s/$$module_srcdir/configure \
15103 --srcdir=$${topdir}/$$module_srcdir \
15104 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15105 --target=${target_alias} \
15106 --with-build-libsubdir=$(HOST_SUBDIR) \
15107 $(STAGEautoprofile_CONFIGURE_FLAGS) \
15108 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode
15109@endif mpc-bootstrap
15110
15111.PHONY: configure-stageautofeedback-mpc maybe-configure-stageautofeedback-mpc
15112maybe-configure-stageautofeedback-mpc:
15113@if mpc-bootstrap
15114maybe-configure-stageautofeedback-mpc: configure-stageautofeedback-mpc
15115configure-stageautofeedback-mpc:
15116 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
15117 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
15118 @r=`${PWD_COMMAND}`; export r; \
15119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15120 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
15121 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
15122 $(HOST_EXPORTS) \
15123 $(POSTSTAGE1_HOST_EXPORTS) \
15124 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
15125 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
15126 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
15127 echo Configuring stage autofeedback in $(HOST_SUBDIR)/mpc; \
15128 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
15129 cd $(HOST_SUBDIR)/mpc || exit 1; \
15130 case $(srcdir) in \
15131 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15132 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
15133 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15134 esac; \
15135 module_srcdir=mpc; \
15136 $(SHELL) $$s/$$module_srcdir/configure \
15137 --srcdir=$${topdir}/$$module_srcdir \
15138 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
15139 --target=${target_alias} \
15140 --with-build-libsubdir=$(HOST_SUBDIR) \
15141 $(STAGEautofeedback_CONFIGURE_FLAGS) \
15142 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ --disable-maintainer-mode
a90ef4bf
JM
15143@endif mpc-bootstrap
15144
15145
15146
15147
15148
15149.PHONY: all-mpc maybe-all-mpc
15150maybe-all-mpc:
15151@if gcc-bootstrap
15152all-mpc: stage_current
15153@endif gcc-bootstrap
15154@if mpc
15155TARGET-mpc=all
15156maybe-all-mpc: all-mpc
15157all-mpc: configure-mpc
15158 @r=`${PWD_COMMAND}`; export r; \
15159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15160 $(HOST_EXPORTS) \
15161 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 15162 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15163 $(TARGET-mpc))
15164@endif mpc
15165
15166
15167
15168.PHONY: all-stage1-mpc maybe-all-stage1-mpc
15169.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
15170maybe-all-stage1-mpc:
15171maybe-clean-stage1-mpc:
15172@if mpc-bootstrap
15173maybe-all-stage1-mpc: all-stage1-mpc
15174all-stage1: all-stage1-mpc
15175TARGET-stage1-mpc = $(TARGET-mpc)
15176all-stage1-mpc: configure-stage1-mpc
15177 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15178 @r=`${PWD_COMMAND}`; export r; \
15179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15180 TFLAGS="$(STAGE1_TFLAGS)"; \
15181 $(HOST_EXPORTS) \
15182 cd $(HOST_SUBDIR)/mpc && \
05a13254 15183 \
a90ef4bf
JM
15184 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15185 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 15186 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
15187 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15188 LIBCFLAGS="$(LIBCFLAGS)" \
15189 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15190 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15191 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15192 $(EXTRA_HOST_FLAGS) \
15193 $(STAGE1_FLAGS_TO_PASS) \
05a13254 15194 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
15195 $(TARGET-stage1-mpc)
15196
15197maybe-clean-stage1-mpc: clean-stage1-mpc
15198clean-stage1: clean-stage1-mpc
15199clean-stage1-mpc:
15200 @if [ $(current_stage) = stage1 ]; then \
15201 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
15202 else \
15203 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
15204 $(MAKE) stage1-start; \
15205 fi; \
15206 cd $(HOST_SUBDIR)/mpc && \
15207 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15208 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
15209@endif mpc-bootstrap
15210
15211
15212.PHONY: all-stage2-mpc maybe-all-stage2-mpc
15213.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
15214maybe-all-stage2-mpc:
15215maybe-clean-stage2-mpc:
15216@if mpc-bootstrap
15217maybe-all-stage2-mpc: all-stage2-mpc
15218all-stage2: all-stage2-mpc
15219TARGET-stage2-mpc = $(TARGET-mpc)
15220all-stage2-mpc: configure-stage2-mpc
15221 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15222 @r=`${PWD_COMMAND}`; export r; \
15223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15224 TFLAGS="$(STAGE2_TFLAGS)"; \
15225 $(HOST_EXPORTS) \
15226 $(POSTSTAGE1_HOST_EXPORTS) \
15227 cd $(HOST_SUBDIR)/mpc && \
05a13254 15228 \
a90ef4bf
JM
15229 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15230 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 15231 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
15232 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15233 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15234 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15235 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15236 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15237 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15238 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
15239 $(TARGET-stage2-mpc)
15240
15241maybe-clean-stage2-mpc: clean-stage2-mpc
15242clean-stage2: clean-stage2-mpc
15243clean-stage2-mpc:
15244 @if [ $(current_stage) = stage2 ]; then \
15245 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
15246 else \
15247 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
15248 $(MAKE) stage2-start; \
15249 fi; \
15250 cd $(HOST_SUBDIR)/mpc && \
b3676d82 15251 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
15252@endif mpc-bootstrap
15253
15254
15255.PHONY: all-stage3-mpc maybe-all-stage3-mpc
15256.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
15257maybe-all-stage3-mpc:
15258maybe-clean-stage3-mpc:
15259@if mpc-bootstrap
15260maybe-all-stage3-mpc: all-stage3-mpc
15261all-stage3: all-stage3-mpc
15262TARGET-stage3-mpc = $(TARGET-mpc)
15263all-stage3-mpc: configure-stage3-mpc
15264 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15265 @r=`${PWD_COMMAND}`; export r; \
15266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15267 TFLAGS="$(STAGE3_TFLAGS)"; \
15268 $(HOST_EXPORTS) \
15269 $(POSTSTAGE1_HOST_EXPORTS) \
15270 cd $(HOST_SUBDIR)/mpc && \
05a13254 15271 \
a90ef4bf
JM
15272 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15273 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 15274 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
15275 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15276 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15277 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15278 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15279 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15280 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15281 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
15282 $(TARGET-stage3-mpc)
15283
15284maybe-clean-stage3-mpc: clean-stage3-mpc
15285clean-stage3: clean-stage3-mpc
15286clean-stage3-mpc:
15287 @if [ $(current_stage) = stage3 ]; then \
15288 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
15289 else \
15290 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
15291 $(MAKE) stage3-start; \
15292 fi; \
15293 cd $(HOST_SUBDIR)/mpc && \
b3676d82 15294 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
15295@endif mpc-bootstrap
15296
15297
15298.PHONY: all-stage4-mpc maybe-all-stage4-mpc
15299.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
15300maybe-all-stage4-mpc:
15301maybe-clean-stage4-mpc:
15302@if mpc-bootstrap
15303maybe-all-stage4-mpc: all-stage4-mpc
15304all-stage4: all-stage4-mpc
15305TARGET-stage4-mpc = $(TARGET-mpc)
15306all-stage4-mpc: configure-stage4-mpc
15307 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15308 @r=`${PWD_COMMAND}`; export r; \
15309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15310 TFLAGS="$(STAGE4_TFLAGS)"; \
15311 $(HOST_EXPORTS) \
15312 $(POSTSTAGE1_HOST_EXPORTS) \
15313 cd $(HOST_SUBDIR)/mpc && \
05a13254 15314 \
a90ef4bf
JM
15315 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15316 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 15317 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
15318 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15319 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15320 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15321 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15322 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15323 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15324 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
15325 $(TARGET-stage4-mpc)
15326
15327maybe-clean-stage4-mpc: clean-stage4-mpc
15328clean-stage4: clean-stage4-mpc
15329clean-stage4-mpc:
15330 @if [ $(current_stage) = stage4 ]; then \
15331 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
15332 else \
15333 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
15334 $(MAKE) stage4-start; \
15335 fi; \
15336 cd $(HOST_SUBDIR)/mpc && \
b3676d82 15337 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
15338@endif mpc-bootstrap
15339
15340
15341.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
15342.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
15343maybe-all-stageprofile-mpc:
15344maybe-clean-stageprofile-mpc:
15345@if mpc-bootstrap
15346maybe-all-stageprofile-mpc: all-stageprofile-mpc
15347all-stageprofile: all-stageprofile-mpc
15348TARGET-stageprofile-mpc = $(TARGET-mpc)
15349all-stageprofile-mpc: configure-stageprofile-mpc
15350 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15351 @r=`${PWD_COMMAND}`; export r; \
15352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15353 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15354 $(HOST_EXPORTS) \
15355 $(POSTSTAGE1_HOST_EXPORTS) \
15356 cd $(HOST_SUBDIR)/mpc && \
05a13254 15357 \
a90ef4bf
JM
15358 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15359 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 15360 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
15361 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15362 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15363 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15364 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15365 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15366 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15367 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
15368 $(TARGET-stageprofile-mpc)
15369
15370maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
15371clean-stageprofile: clean-stageprofile-mpc
15372clean-stageprofile-mpc:
15373 @if [ $(current_stage) = stageprofile ]; then \
15374 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
15375 else \
15376 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
15377 $(MAKE) stageprofile-start; \
15378 fi; \
15379 cd $(HOST_SUBDIR)/mpc && \
b3676d82 15380 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
15381@endif mpc-bootstrap
15382
15383
f948b2de
NC
15384.PHONY: all-stagetrain-mpc maybe-all-stagetrain-mpc
15385.PHONY: clean-stagetrain-mpc maybe-clean-stagetrain-mpc
15386maybe-all-stagetrain-mpc:
15387maybe-clean-stagetrain-mpc:
15388@if mpc-bootstrap
15389maybe-all-stagetrain-mpc: all-stagetrain-mpc
15390all-stagetrain: all-stagetrain-mpc
15391TARGET-stagetrain-mpc = $(TARGET-mpc)
15392all-stagetrain-mpc: configure-stagetrain-mpc
15393 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
15394 @r=`${PWD_COMMAND}`; export r; \
15395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15396 TFLAGS="$(STAGEtrain_TFLAGS)"; \
15397 $(HOST_EXPORTS) \
15398 $(POSTSTAGE1_HOST_EXPORTS) \
15399 cd $(HOST_SUBDIR)/mpc && \
15400 \
15401 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15402 CFLAGS="$(STAGEtrain_CFLAGS)" \
15403 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
15404 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
15405 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
15406 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15407 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15408 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15409 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15410 TFLAGS="$(STAGEtrain_TFLAGS)" \
15411 $(TARGET-stagetrain-mpc)
15412
15413maybe-clean-stagetrain-mpc: clean-stagetrain-mpc
15414clean-stagetrain: clean-stagetrain-mpc
15415clean-stagetrain-mpc:
15416 @if [ $(current_stage) = stagetrain ]; then \
15417 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
15418 else \
15419 [ -f $(HOST_SUBDIR)/stagetrain-mpc/Makefile ] || exit 0; \
15420 $(MAKE) stagetrain-start; \
15421 fi; \
15422 cd $(HOST_SUBDIR)/mpc && \
15423 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
15424@endif mpc-bootstrap
15425
15426
a90ef4bf
JM
15427.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
15428.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
15429maybe-all-stagefeedback-mpc:
15430maybe-clean-stagefeedback-mpc:
15431@if mpc-bootstrap
15432maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
15433all-stagefeedback: all-stagefeedback-mpc
15434TARGET-stagefeedback-mpc = $(TARGET-mpc)
15435all-stagefeedback-mpc: configure-stagefeedback-mpc
15436 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15437 @r=`${PWD_COMMAND}`; export r; \
15438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15439 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15440 $(HOST_EXPORTS) \
15441 $(POSTSTAGE1_HOST_EXPORTS) \
15442 cd $(HOST_SUBDIR)/mpc && \
05a13254 15443 \
a90ef4bf
JM
15444 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15445 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 15446 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
15447 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15448 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15449 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15450 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15451 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15452 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15453 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
15454 $(TARGET-stagefeedback-mpc)
15455
15456maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
15457clean-stagefeedback: clean-stagefeedback-mpc
15458clean-stagefeedback-mpc:
15459 @if [ $(current_stage) = stagefeedback ]; then \
15460 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
15461 else \
15462 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
15463 $(MAKE) stagefeedback-start; \
15464 fi; \
15465 cd $(HOST_SUBDIR)/mpc && \
b3676d82 15466 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
15467@endif mpc-bootstrap
15468
15469
f948b2de
NC
15470.PHONY: all-stageautoprofile-mpc maybe-all-stageautoprofile-mpc
15471.PHONY: clean-stageautoprofile-mpc maybe-clean-stageautoprofile-mpc
15472maybe-all-stageautoprofile-mpc:
15473maybe-clean-stageautoprofile-mpc:
15474@if mpc-bootstrap
15475maybe-all-stageautoprofile-mpc: all-stageautoprofile-mpc
15476all-stageautoprofile: all-stageautoprofile-mpc
15477TARGET-stageautoprofile-mpc = $(TARGET-mpc)
15478all-stageautoprofile-mpc: configure-stageautoprofile-mpc
15479 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
15480 @r=`${PWD_COMMAND}`; export r; \
15481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15482 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
15483 $(HOST_EXPORTS) \
15484 $(POSTSTAGE1_HOST_EXPORTS) \
15485 cd $(HOST_SUBDIR)/mpc && \
15486 $$s/gcc/config/i386/$(AUTO_PROFILE) \
15487 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15488 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
15489 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
15490 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
15491 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
15492 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15493 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15494 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15495 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15496 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
15497 $(TARGET-stageautoprofile-mpc)
15498
15499maybe-clean-stageautoprofile-mpc: clean-stageautoprofile-mpc
15500clean-stageautoprofile: clean-stageautoprofile-mpc
15501clean-stageautoprofile-mpc:
15502 @if [ $(current_stage) = stageautoprofile ]; then \
15503 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
15504 else \
15505 [ -f $(HOST_SUBDIR)/stageautoprofile-mpc/Makefile ] || exit 0; \
15506 $(MAKE) stageautoprofile-start; \
15507 fi; \
15508 cd $(HOST_SUBDIR)/mpc && \
15509 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
15510@endif mpc-bootstrap
15511
15512
15513.PHONY: all-stageautofeedback-mpc maybe-all-stageautofeedback-mpc
15514.PHONY: clean-stageautofeedback-mpc maybe-clean-stageautofeedback-mpc
15515maybe-all-stageautofeedback-mpc:
15516maybe-clean-stageautofeedback-mpc:
15517@if mpc-bootstrap
15518maybe-all-stageautofeedback-mpc: all-stageautofeedback-mpc
15519all-stageautofeedback: all-stageautofeedback-mpc
15520TARGET-stageautofeedback-mpc = $(TARGET-mpc)
15521all-stageautofeedback-mpc: configure-stageautofeedback-mpc
15522 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
15523 @r=`${PWD_COMMAND}`; export r; \
15524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15525 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
15526 $(HOST_EXPORTS) \
15527 $(POSTSTAGE1_HOST_EXPORTS) \
15528 cd $(HOST_SUBDIR)/mpc && \
15529 \
15530 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15531 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
15532 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
15533 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
15534 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
15535 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15536 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15537 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15538 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15539 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
15540 $(TARGET-stageautofeedback-mpc)
15541
15542maybe-clean-stageautofeedback-mpc: clean-stageautofeedback-mpc
15543clean-stageautofeedback: clean-stageautofeedback-mpc
15544clean-stageautofeedback-mpc:
15545 @if [ $(current_stage) = stageautofeedback ]; then \
15546 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
15547 else \
15548 [ -f $(HOST_SUBDIR)/stageautofeedback-mpc/Makefile ] || exit 0; \
15549 $(MAKE) stageautofeedback-start; \
15550 fi; \
15551 cd $(HOST_SUBDIR)/mpc && \
15552 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
15553@endif mpc-bootstrap
15554
15555
a90ef4bf
JM
15556
15557
15558
15559.PHONY: check-mpc maybe-check-mpc
15560maybe-check-mpc:
15561@if mpc
15562maybe-check-mpc: check-mpc
15563
15564check-mpc:
15565 @: $(MAKE); $(unstage)
15566 @r=`${PWD_COMMAND}`; export r; \
15567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15568 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15569 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 15570 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
15571
15572@endif mpc
15573
15574.PHONY: install-mpc maybe-install-mpc
15575maybe-install-mpc:
15576@if mpc
15577maybe-install-mpc: install-mpc
15578
15579install-mpc:
15580
15581@endif mpc
15582
15583.PHONY: install-strip-mpc maybe-install-strip-mpc
15584maybe-install-strip-mpc:
15585@if mpc
15586maybe-install-strip-mpc: install-strip-mpc
15587
15588install-strip-mpc:
15589
15590@endif mpc
15591
15592# Other targets (info, dvi, pdf, etc.)
15593
15594.PHONY: maybe-info-mpc info-mpc
15595maybe-info-mpc:
15596@if mpc
15597maybe-info-mpc: info-mpc
15598
15599info-mpc: \
15600 configure-mpc
15601 @[ -f ./mpc/Makefile ] || exit 0; \
15602 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
15603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15604 $(HOST_EXPORTS) \
15605 for flag in $(EXTRA_HOST_FLAGS) ; do \
15606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15607 done; \
22121df0 15608 echo "Doing info in mpc"; \
a90ef4bf 15609 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
15610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15612 "RANLIB=$${RANLIB}" \
0c24b341 15613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
15614 info) \
15615 || exit 1
d3ed111c 15616
a90ef4bf 15617@endif mpc
d3ed111c 15618
a90ef4bf
JM
15619.PHONY: maybe-dvi-mpc dvi-mpc
15620maybe-dvi-mpc:
15621@if mpc
15622maybe-dvi-mpc: dvi-mpc
d3ed111c 15623
a90ef4bf
JM
15624dvi-mpc: \
15625 configure-mpc
15626 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
15627 r=`${PWD_COMMAND}`; export r; \
15628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15629 $(HOST_EXPORTS) \
15630 for flag in $(EXTRA_HOST_FLAGS) ; do \
15631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15632 done; \
22121df0 15633 echo "Doing dvi in mpc"; \
a90ef4bf 15634 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
15635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15637 "RANLIB=$${RANLIB}" \
0c24b341 15638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
15639 dvi) \
15640 || exit 1
d3ed111c 15641
a90ef4bf 15642@endif mpc
d3ed111c 15643
a90ef4bf
JM
15644.PHONY: maybe-pdf-mpc pdf-mpc
15645maybe-pdf-mpc:
15646@if mpc
15647maybe-pdf-mpc: pdf-mpc
56a8fe78 15648
a90ef4bf
JM
15649pdf-mpc: \
15650 configure-mpc
15651 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
15652 r=`${PWD_COMMAND}`; export r; \
15653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15654 $(HOST_EXPORTS) \
15655 for flag in $(EXTRA_HOST_FLAGS) ; do \
15656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15657 done; \
22121df0 15658 echo "Doing pdf in mpc"; \
a90ef4bf 15659 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
15660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15662 "RANLIB=$${RANLIB}" \
0c24b341 15663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
15664 pdf) \
15665 || exit 1
56a8fe78 15666
a90ef4bf 15667@endif mpc
56a8fe78 15668
a90ef4bf
JM
15669.PHONY: maybe-html-mpc html-mpc
15670maybe-html-mpc:
15671@if mpc
15672maybe-html-mpc: html-mpc
6d389afc 15673
a90ef4bf
JM
15674html-mpc: \
15675 configure-mpc
15676 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
15677 r=`${PWD_COMMAND}`; export r; \
15678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
15679 $(HOST_EXPORTS) \
15680 for flag in $(EXTRA_HOST_FLAGS) ; do \
15681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15682 done; \
22121df0 15683 echo "Doing html in mpc"; \
a90ef4bf 15684 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
15685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15687 "RANLIB=$${RANLIB}" \
0c24b341 15688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15689 html) \
15690 || exit 1
15691
a90ef4bf 15692@endif mpc
d3ed111c 15693
a90ef4bf
JM
15694.PHONY: maybe-TAGS-mpc TAGS-mpc
15695maybe-TAGS-mpc:
15696@if mpc
15697maybe-TAGS-mpc: TAGS-mpc
d3ed111c 15698
a90ef4bf
JM
15699TAGS-mpc: \
15700 configure-mpc
15701 @[ -f ./mpc/Makefile ] || exit 0; \
15702 r=`${PWD_COMMAND}`; export r; \
15703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
15704 $(HOST_EXPORTS) \
15705 for flag in $(EXTRA_HOST_FLAGS) ; do \
15706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15707 done; \
22121df0 15708 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
15709 (cd $(HOST_SUBDIR)/mpc && \
15710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15712 "RANLIB=$${RANLIB}" \
15713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
15714 TAGS) \
15715 || exit 1
15716
15717@endif mpc
15718
15719.PHONY: maybe-install-info-mpc install-info-mpc
15720maybe-install-info-mpc:
15721@if mpc
15722maybe-install-info-mpc: install-info-mpc
15723
15724install-info-mpc: \
15725 configure-mpc \
15726 info-mpc
15727 @[ -f ./mpc/Makefile ] || exit 0; \
15728 r=`${PWD_COMMAND}`; export r; \
15729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15730 $(HOST_EXPORTS) \
15731 for flag in $(EXTRA_HOST_FLAGS) ; do \
15732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15733 done; \
22121df0 15734 echo "Doing install-info in mpc"; \
a90ef4bf 15735 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
15736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15738 "RANLIB=$${RANLIB}" \
0c24b341 15739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
15740 install-info) \
15741 || exit 1
d3ed111c 15742
a90ef4bf 15743@endif mpc
d3ed111c 15744
a90ef4bf
JM
15745.PHONY: maybe-install-pdf-mpc install-pdf-mpc
15746maybe-install-pdf-mpc:
15747@if mpc
15748maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 15749
a90ef4bf
JM
15750install-pdf-mpc: \
15751 configure-mpc \
15752 pdf-mpc
15753 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
15754 r=`${PWD_COMMAND}`; export r; \
15755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15756 $(HOST_EXPORTS) \
15757 for flag in $(EXTRA_HOST_FLAGS) ; do \
15758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15759 done; \
22121df0 15760 echo "Doing install-pdf in mpc"; \
a90ef4bf 15761 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
15762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15764 "RANLIB=$${RANLIB}" \
0c24b341 15765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
15766 install-pdf) \
15767 || exit 1
a3ca38d2 15768
a90ef4bf 15769@endif mpc
a3ca38d2 15770
a90ef4bf
JM
15771.PHONY: maybe-install-html-mpc install-html-mpc
15772maybe-install-html-mpc:
15773@if mpc
15774maybe-install-html-mpc: install-html-mpc
108a6f8e 15775
a90ef4bf
JM
15776install-html-mpc: \
15777 configure-mpc \
15778 html-mpc
15779 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
15780 r=`${PWD_COMMAND}`; export r; \
15781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15782 $(HOST_EXPORTS) \
15783 for flag in $(EXTRA_HOST_FLAGS) ; do \
15784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15785 done; \
22121df0 15786 echo "Doing install-html in mpc"; \
a90ef4bf 15787 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
15788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15790 "RANLIB=$${RANLIB}" \
0c24b341 15791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15792 install-html) \
15793 || exit 1
15794
a90ef4bf 15795@endif mpc
108a6f8e 15796
a90ef4bf
JM
15797.PHONY: maybe-installcheck-mpc installcheck-mpc
15798maybe-installcheck-mpc:
15799@if mpc
15800maybe-installcheck-mpc: installcheck-mpc
d3ed111c 15801
a90ef4bf
JM
15802installcheck-mpc: \
15803 configure-mpc
15804 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
15805 r=`${PWD_COMMAND}`; export r; \
15806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15807 $(HOST_EXPORTS) \
15808 for flag in $(EXTRA_HOST_FLAGS) ; do \
15809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15810 done; \
22121df0 15811 echo "Doing installcheck in mpc"; \
a90ef4bf 15812 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
15813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15815 "RANLIB=$${RANLIB}" \
0c24b341 15816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
15817 installcheck) \
15818 || exit 1
d3ed111c 15819
a90ef4bf 15820@endif mpc
d3ed111c 15821
a90ef4bf
JM
15822.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
15823maybe-mostlyclean-mpc:
15824@if mpc
15825maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 15826
a90ef4bf
JM
15827mostlyclean-mpc:
15828 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
15829 r=`${PWD_COMMAND}`; export r; \
15830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
15831 $(HOST_EXPORTS) \
15832 for flag in $(EXTRA_HOST_FLAGS) ; do \
15833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15834 done; \
22121df0 15835 echo "Doing mostlyclean in mpc"; \
a90ef4bf 15836 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
15837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15839 "RANLIB=$${RANLIB}" \
0c24b341 15840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
15841 mostlyclean) \
15842 || exit 1
15843
a90ef4bf 15844@endif mpc
d3ed111c 15845
a90ef4bf
JM
15846.PHONY: maybe-clean-mpc clean-mpc
15847maybe-clean-mpc:
15848@if mpc
15849maybe-clean-mpc: clean-mpc
d3ed111c 15850
a90ef4bf
JM
15851clean-mpc:
15852 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
15853 r=`${PWD_COMMAND}`; export r; \
15854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
15855 $(HOST_EXPORTS) \
15856 for flag in $(EXTRA_HOST_FLAGS) ; do \
15857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15858 done; \
22121df0 15859 echo "Doing clean in mpc"; \
a90ef4bf 15860 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
15861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15863 "RANLIB=$${RANLIB}" \
0c24b341 15864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
15865 clean) \
15866 || exit 1
15867
a90ef4bf 15868@endif mpc
d3ed111c 15869
a90ef4bf
JM
15870.PHONY: maybe-distclean-mpc distclean-mpc
15871maybe-distclean-mpc:
15872@if mpc
15873maybe-distclean-mpc: distclean-mpc
d3ed111c 15874
a90ef4bf
JM
15875distclean-mpc:
15876 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
15877 r=`${PWD_COMMAND}`; export r; \
15878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
15879 $(HOST_EXPORTS) \
15880 for flag in $(EXTRA_HOST_FLAGS) ; do \
15881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15882 done; \
22121df0 15883 echo "Doing distclean in mpc"; \
a90ef4bf 15884 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
15885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15887 "RANLIB=$${RANLIB}" \
0c24b341 15888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
15889 distclean) \
15890 || exit 1
15891
a90ef4bf 15892@endif mpc
d3ed111c 15893
a90ef4bf
JM
15894.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
15895maybe-maintainer-clean-mpc:
15896@if mpc
15897maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 15898
a90ef4bf
JM
15899maintainer-clean-mpc:
15900 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
15901 r=`${PWD_COMMAND}`; export r; \
15902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
15903 $(HOST_EXPORTS) \
15904 for flag in $(EXTRA_HOST_FLAGS) ; do \
15905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15906 done; \
22121df0 15907 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 15908 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
15909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15911 "RANLIB=$${RANLIB}" \
0c24b341 15912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
15913 maintainer-clean) \
15914 || exit 1
15915
a90ef4bf 15916@endif mpc
d3ed111c
GK
15917
15918
a7254363 15919
7ec59b9e
L
15920.PHONY: configure-isl maybe-configure-isl
15921maybe-configure-isl:
4f0ef2d8 15922@if gcc-bootstrap
7ec59b9e 15923configure-isl: stage_current
4f0ef2d8 15924@endif gcc-bootstrap
7ec59b9e
L
15925@if isl
15926maybe-configure-isl: configure-isl
15927configure-isl:
c52c6897 15928 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 15930 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 15931 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 15932 $(HOST_EXPORTS) \
7ec59b9e
L
15933 echo Configuring in $(HOST_SUBDIR)/isl; \
15934 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 15935 case $(srcdir) in \
b00612cc 15936 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 15937 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 15938 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15939 esac; \
1b6c0831
L
15940 module_srcdir=isl; \
15941 $(SHELL) \
15942 $$s/$$module_srcdir/configure \
15943 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15944 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15945 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 15946 || exit 1
7ec59b9e 15947@endif isl
4fa63067 15948
a7254363
PB
15949
15950
7ec59b9e
L
15951.PHONY: configure-stage1-isl maybe-configure-stage1-isl
15952maybe-configure-stage1-isl:
15953@if isl-bootstrap
15954maybe-configure-stage1-isl: configure-stage1-isl
15955configure-stage1-isl:
a90ef4bf 15956 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 15957 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
15958 @r=`${PWD_COMMAND}`; export r; \
15959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15960 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 15961 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
15962 $(HOST_EXPORTS) \
15963 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15964 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15965 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15966 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
15967 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 15968 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
15969 case $(srcdir) in \
15970 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 15971 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
15972 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15973 esac; \
1b6c0831
L
15974 module_srcdir=isl; \
15975 $(SHELL) $$s/$$module_srcdir/configure \
15976 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15977 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15978 --target=${target_alias} \
15979 \
a90ef4bf 15980 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
15981 --disable-shared @extra_isl_gmp_configure_flags@
15982@endif isl-bootstrap
15983
15984.PHONY: configure-stage2-isl maybe-configure-stage2-isl
15985maybe-configure-stage2-isl:
15986@if isl-bootstrap
15987maybe-configure-stage2-isl: configure-stage2-isl
15988configure-stage2-isl:
a90ef4bf 15989 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 15990 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
15991 @r=`${PWD_COMMAND}`; export r; \
15992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15993 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 15994 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
15995 $(HOST_EXPORTS) \
15996 $(POSTSTAGE1_HOST_EXPORTS) \
15997 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15998 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15999 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16000 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
16001 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 16002 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
16003 case $(srcdir) in \
16004 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 16005 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
16006 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16007 esac; \
1b6c0831
L
16008 module_srcdir=isl; \
16009 $(SHELL) $$s/$$module_srcdir/configure \
16010 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16011 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16012 --target=${target_alias} \
22121df0 16013 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 16014 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
16015 --disable-shared @extra_isl_gmp_configure_flags@
16016@endif isl-bootstrap
16017
16018.PHONY: configure-stage3-isl maybe-configure-stage3-isl
16019maybe-configure-stage3-isl:
16020@if isl-bootstrap
16021maybe-configure-stage3-isl: configure-stage3-isl
16022configure-stage3-isl:
a90ef4bf 16023 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 16024 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
16025 @r=`${PWD_COMMAND}`; export r; \
16026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16027 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 16028 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
16029 $(HOST_EXPORTS) \
16030 $(POSTSTAGE1_HOST_EXPORTS) \
16031 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
16032 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16033 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16034 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
16035 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 16036 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
16037 case $(srcdir) in \
16038 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 16039 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
16040 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16041 esac; \
1b6c0831
L
16042 module_srcdir=isl; \
16043 $(SHELL) $$s/$$module_srcdir/configure \
16044 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16045 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16046 --target=${target_alias} \
22121df0 16047 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 16048 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
16049 --disable-shared @extra_isl_gmp_configure_flags@
16050@endif isl-bootstrap
16051
16052.PHONY: configure-stage4-isl maybe-configure-stage4-isl
16053maybe-configure-stage4-isl:
16054@if isl-bootstrap
16055maybe-configure-stage4-isl: configure-stage4-isl
16056configure-stage4-isl:
a90ef4bf 16057 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 16058 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
16059 @r=`${PWD_COMMAND}`; export r; \
16060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16061 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 16062 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
16063 $(HOST_EXPORTS) \
16064 $(POSTSTAGE1_HOST_EXPORTS) \
16065 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
16066 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16067 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16068 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
16069 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 16070 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
16071 case $(srcdir) in \
16072 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 16073 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
16074 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16075 esac; \
1b6c0831
L
16076 module_srcdir=isl; \
16077 $(SHELL) $$s/$$module_srcdir/configure \
16078 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16079 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16080 --target=${target_alias} \
22121df0 16081 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 16082 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
16083 --disable-shared @extra_isl_gmp_configure_flags@
16084@endif isl-bootstrap
16085
16086.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
16087maybe-configure-stageprofile-isl:
16088@if isl-bootstrap
16089maybe-configure-stageprofile-isl: configure-stageprofile-isl
16090configure-stageprofile-isl:
a90ef4bf 16091 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 16092 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
16093 @r=`${PWD_COMMAND}`; export r; \
16094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16095 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 16096 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
16097 $(HOST_EXPORTS) \
16098 $(POSTSTAGE1_HOST_EXPORTS) \
16099 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
16100 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16101 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16102 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
16103 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 16104 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
16105 case $(srcdir) in \
16106 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 16107 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
16108 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16109 esac; \
1b6c0831
L
16110 module_srcdir=isl; \
16111 $(SHELL) $$s/$$module_srcdir/configure \
16112 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16113 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16114 --target=${target_alias} \
22121df0 16115 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 16116 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
16117 --disable-shared @extra_isl_gmp_configure_flags@
16118@endif isl-bootstrap
16119
f948b2de
NC
16120.PHONY: configure-stagetrain-isl maybe-configure-stagetrain-isl
16121maybe-configure-stagetrain-isl:
16122@if isl-bootstrap
16123maybe-configure-stagetrain-isl: configure-stagetrain-isl
16124configure-stagetrain-isl:
16125 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
16126 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
16127 @r=`${PWD_COMMAND}`; export r; \
16128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16129 TFLAGS="$(STAGEtrain_TFLAGS)"; \
16130 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
16131 $(HOST_EXPORTS) \
16132 $(POSTSTAGE1_HOST_EXPORTS) \
16133 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
16134 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
16135 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
16136 echo Configuring stage train in $(HOST_SUBDIR)/isl; \
16137 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
16138 cd $(HOST_SUBDIR)/isl || exit 1; \
16139 case $(srcdir) in \
16140 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16141 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
16142 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16143 esac; \
16144 module_srcdir=isl; \
16145 $(SHELL) $$s/$$module_srcdir/configure \
16146 --srcdir=$${topdir}/$$module_srcdir \
16147 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
16148 --target=${target_alias} \
16149 --with-build-libsubdir=$(HOST_SUBDIR) \
16150 $(STAGEtrain_CONFIGURE_FLAGS) \
16151 --disable-shared @extra_isl_gmp_configure_flags@
16152@endif isl-bootstrap
16153
7ec59b9e
L
16154.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
16155maybe-configure-stagefeedback-isl:
16156@if isl-bootstrap
16157maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
16158configure-stagefeedback-isl:
a90ef4bf 16159 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 16160 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
16161 @r=`${PWD_COMMAND}`; export r; \
16162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16163 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 16164 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
16165 $(HOST_EXPORTS) \
16166 $(POSTSTAGE1_HOST_EXPORTS) \
16167 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
16168 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16169 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16170 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
16171 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 16172 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
16173 case $(srcdir) in \
16174 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 16175 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
16176 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16177 esac; \
1b6c0831
L
16178 module_srcdir=isl; \
16179 $(SHELL) $$s/$$module_srcdir/configure \
16180 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16181 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16182 --target=${target_alias} \
22121df0 16183 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 16184 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
16185 --disable-shared @extra_isl_gmp_configure_flags@
16186@endif isl-bootstrap
d545f33b 16187
f948b2de
NC
16188.PHONY: configure-stageautoprofile-isl maybe-configure-stageautoprofile-isl
16189maybe-configure-stageautoprofile-isl:
16190@if isl-bootstrap
16191maybe-configure-stageautoprofile-isl: configure-stageautoprofile-isl
16192configure-stageautoprofile-isl:
16193 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
16194 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
16195 @r=`${PWD_COMMAND}`; export r; \
16196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16197 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
16198 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
16199 $(HOST_EXPORTS) \
16200 $(POSTSTAGE1_HOST_EXPORTS) \
16201 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
16202 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
16203 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
16204 echo Configuring stage autoprofile in $(HOST_SUBDIR)/isl; \
16205 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
16206 cd $(HOST_SUBDIR)/isl || exit 1; \
16207 case $(srcdir) in \
16208 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16209 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
16210 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16211 esac; \
16212 module_srcdir=isl; \
16213 $(SHELL) $$s/$$module_srcdir/configure \
16214 --srcdir=$${topdir}/$$module_srcdir \
16215 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
16216 --target=${target_alias} \
16217 --with-build-libsubdir=$(HOST_SUBDIR) \
16218 $(STAGEautoprofile_CONFIGURE_FLAGS) \
16219 --disable-shared @extra_isl_gmp_configure_flags@
16220@endif isl-bootstrap
16221
16222.PHONY: configure-stageautofeedback-isl maybe-configure-stageautofeedback-isl
16223maybe-configure-stageautofeedback-isl:
16224@if isl-bootstrap
16225maybe-configure-stageautofeedback-isl: configure-stageautofeedback-isl
16226configure-stageautofeedback-isl:
16227 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
16228 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
16229 @r=`${PWD_COMMAND}`; export r; \
16230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16231 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
16232 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
16233 $(HOST_EXPORTS) \
16234 $(POSTSTAGE1_HOST_EXPORTS) \
16235 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
16236 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
16237 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
16238 echo Configuring stage autofeedback in $(HOST_SUBDIR)/isl; \
16239 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
16240 cd $(HOST_SUBDIR)/isl || exit 1; \
16241 case $(srcdir) in \
16242 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16243 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
16244 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16245 esac; \
16246 module_srcdir=isl; \
16247 $(SHELL) $$s/$$module_srcdir/configure \
16248 --srcdir=$${topdir}/$$module_srcdir \
16249 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
16250 --target=${target_alias} \
16251 --with-build-libsubdir=$(HOST_SUBDIR) \
16252 $(STAGEautofeedback_CONFIGURE_FLAGS) \
16253 --disable-shared @extra_isl_gmp_configure_flags@
16254@endif isl-bootstrap
16255
4fa63067 16256
4fa63067
NN
16257
16258
4fa63067 16259
7ec59b9e
L
16260.PHONY: all-isl maybe-all-isl
16261maybe-all-isl:
a90ef4bf 16262@if gcc-bootstrap
7ec59b9e 16263all-isl: stage_current
a90ef4bf 16264@endif gcc-bootstrap
7ec59b9e
L
16265@if isl
16266TARGET-isl=all
16267maybe-all-isl: all-isl
16268all-isl: configure-isl
4fa63067
NN
16269 @r=`${PWD_COMMAND}`; export r; \
16270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16271 $(HOST_EXPORTS) \
7ec59b9e 16272 (cd $(HOST_SUBDIR)/isl && \
b3676d82 16273 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
16274 $(TARGET-isl))
16275@endif isl
16276
16277
16278
16279.PHONY: all-stage1-isl maybe-all-stage1-isl
16280.PHONY: clean-stage1-isl maybe-clean-stage1-isl
16281maybe-all-stage1-isl:
16282maybe-clean-stage1-isl:
16283@if isl-bootstrap
16284maybe-all-stage1-isl: all-stage1-isl
16285all-stage1: all-stage1-isl
16286TARGET-stage1-isl = $(TARGET-isl)
16287all-stage1-isl: configure-stage1-isl
a90ef4bf 16288 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
16289 @r=`${PWD_COMMAND}`; export r; \
16290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
16291 TFLAGS="$(STAGE1_TFLAGS)"; \
16292 $(HOST_EXPORTS) \
7ec59b9e 16293 cd $(HOST_SUBDIR)/isl && \
05a13254 16294 \
a90ef4bf
JM
16295 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16296 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 16297 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
16298 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
16299 LIBCFLAGS="$(LIBCFLAGS)" \
16300 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16301 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16302 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
16303 $(EXTRA_HOST_FLAGS) \
16304 $(STAGE1_FLAGS_TO_PASS) V=1 \
05a13254 16305 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 16306 $(TARGET-stage1-isl)
9b980aa1 16307
7ec59b9e
L
16308maybe-clean-stage1-isl: clean-stage1-isl
16309clean-stage1: clean-stage1-isl
16310clean-stage1-isl:
a90ef4bf 16311 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 16312 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 16313 else \
7ec59b9e 16314 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
16315 $(MAKE) stage1-start; \
16316 fi; \
7ec59b9e 16317 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 16318 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 16319 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
16320@endif isl-bootstrap
16321
16322
16323.PHONY: all-stage2-isl maybe-all-stage2-isl
16324.PHONY: clean-stage2-isl maybe-clean-stage2-isl
16325maybe-all-stage2-isl:
16326maybe-clean-stage2-isl:
16327@if isl-bootstrap
16328maybe-all-stage2-isl: all-stage2-isl
16329all-stage2: all-stage2-isl
16330TARGET-stage2-isl = $(TARGET-isl)
16331all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
16332 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
16333 @r=`${PWD_COMMAND}`; export r; \
16334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16335 TFLAGS="$(STAGE2_TFLAGS)"; \
16336 $(HOST_EXPORTS) \
16337 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 16338 cd $(HOST_SUBDIR)/isl && \
05a13254 16339 \
a90ef4bf
JM
16340 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16341 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 16342 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
16343 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
16344 LIBCFLAGS="$(STAGE2_CFLAGS)" \
16345 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16346 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16347 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 16348 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 16349 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 16350 $(TARGET-stage2-isl)
a90ef4bf 16351
7ec59b9e
L
16352maybe-clean-stage2-isl: clean-stage2-isl
16353clean-stage2: clean-stage2-isl
16354clean-stage2-isl:
a90ef4bf 16355 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 16356 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 16357 else \
7ec59b9e 16358 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
16359 $(MAKE) stage2-start; \
16360 fi; \
7ec59b9e 16361 cd $(HOST_SUBDIR)/isl && \
b3676d82 16362 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
16363@endif isl-bootstrap
16364
16365
16366.PHONY: all-stage3-isl maybe-all-stage3-isl
16367.PHONY: clean-stage3-isl maybe-clean-stage3-isl
16368maybe-all-stage3-isl:
16369maybe-clean-stage3-isl:
16370@if isl-bootstrap
16371maybe-all-stage3-isl: all-stage3-isl
16372all-stage3: all-stage3-isl
16373TARGET-stage3-isl = $(TARGET-isl)
16374all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
16375 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
16376 @r=`${PWD_COMMAND}`; export r; \
16377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16378 TFLAGS="$(STAGE3_TFLAGS)"; \
16379 $(HOST_EXPORTS) \
16380 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 16381 cd $(HOST_SUBDIR)/isl && \
05a13254 16382 \
a90ef4bf
JM
16383 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16384 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 16385 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
16386 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
16387 LIBCFLAGS="$(STAGE3_CFLAGS)" \
16388 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16389 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16390 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 16391 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 16392 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 16393 $(TARGET-stage3-isl)
a90ef4bf 16394
7ec59b9e
L
16395maybe-clean-stage3-isl: clean-stage3-isl
16396clean-stage3: clean-stage3-isl
16397clean-stage3-isl:
a90ef4bf 16398 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 16399 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 16400 else \
7ec59b9e 16401 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
16402 $(MAKE) stage3-start; \
16403 fi; \
7ec59b9e 16404 cd $(HOST_SUBDIR)/isl && \
b3676d82 16405 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
16406@endif isl-bootstrap
16407
16408
16409.PHONY: all-stage4-isl maybe-all-stage4-isl
16410.PHONY: clean-stage4-isl maybe-clean-stage4-isl
16411maybe-all-stage4-isl:
16412maybe-clean-stage4-isl:
16413@if isl-bootstrap
16414maybe-all-stage4-isl: all-stage4-isl
16415all-stage4: all-stage4-isl
16416TARGET-stage4-isl = $(TARGET-isl)
16417all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
16418 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
16419 @r=`${PWD_COMMAND}`; export r; \
16420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16421 TFLAGS="$(STAGE4_TFLAGS)"; \
16422 $(HOST_EXPORTS) \
16423 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 16424 cd $(HOST_SUBDIR)/isl && \
05a13254 16425 \
a90ef4bf
JM
16426 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16427 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 16428 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
16429 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
16430 LIBCFLAGS="$(STAGE4_CFLAGS)" \
16431 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16432 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16433 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 16434 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 16435 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 16436 $(TARGET-stage4-isl)
a90ef4bf 16437
7ec59b9e
L
16438maybe-clean-stage4-isl: clean-stage4-isl
16439clean-stage4: clean-stage4-isl
16440clean-stage4-isl:
a90ef4bf 16441 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 16442 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 16443 else \
7ec59b9e 16444 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
16445 $(MAKE) stage4-start; \
16446 fi; \
7ec59b9e 16447 cd $(HOST_SUBDIR)/isl && \
b3676d82 16448 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
16449@endif isl-bootstrap
16450
16451
16452.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
16453.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
16454maybe-all-stageprofile-isl:
16455maybe-clean-stageprofile-isl:
16456@if isl-bootstrap
16457maybe-all-stageprofile-isl: all-stageprofile-isl
16458all-stageprofile: all-stageprofile-isl
16459TARGET-stageprofile-isl = $(TARGET-isl)
16460all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
16461 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
16462 @r=`${PWD_COMMAND}`; export r; \
16463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16464 TFLAGS="$(STAGEprofile_TFLAGS)"; \
16465 $(HOST_EXPORTS) \
16466 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 16467 cd $(HOST_SUBDIR)/isl && \
05a13254 16468 \
a90ef4bf
JM
16469 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16470 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 16471 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
16472 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
16473 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
16474 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16475 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16476 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 16477 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 16478 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 16479 $(TARGET-stageprofile-isl)
a90ef4bf 16480
7ec59b9e
L
16481maybe-clean-stageprofile-isl: clean-stageprofile-isl
16482clean-stageprofile: clean-stageprofile-isl
16483clean-stageprofile-isl:
a90ef4bf 16484 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 16485 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 16486 else \
7ec59b9e 16487 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
16488 $(MAKE) stageprofile-start; \
16489 fi; \
7ec59b9e 16490 cd $(HOST_SUBDIR)/isl && \
b3676d82 16491 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
16492@endif isl-bootstrap
16493
16494
f948b2de
NC
16495.PHONY: all-stagetrain-isl maybe-all-stagetrain-isl
16496.PHONY: clean-stagetrain-isl maybe-clean-stagetrain-isl
16497maybe-all-stagetrain-isl:
16498maybe-clean-stagetrain-isl:
16499@if isl-bootstrap
16500maybe-all-stagetrain-isl: all-stagetrain-isl
16501all-stagetrain: all-stagetrain-isl
16502TARGET-stagetrain-isl = $(TARGET-isl)
16503all-stagetrain-isl: configure-stagetrain-isl
16504 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
16505 @r=`${PWD_COMMAND}`; export r; \
16506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16507 TFLAGS="$(STAGEtrain_TFLAGS)"; \
16508 $(HOST_EXPORTS) \
16509 $(POSTSTAGE1_HOST_EXPORTS) \
16510 cd $(HOST_SUBDIR)/isl && \
16511 \
16512 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16513 CFLAGS="$(STAGEtrain_CFLAGS)" \
16514 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
16515 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
16516 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
16517 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16518 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16519 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16520 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
16521 TFLAGS="$(STAGEtrain_TFLAGS)" \
16522 $(TARGET-stagetrain-isl)
16523
16524maybe-clean-stagetrain-isl: clean-stagetrain-isl
16525clean-stagetrain: clean-stagetrain-isl
16526clean-stagetrain-isl:
16527 @if [ $(current_stage) = stagetrain ]; then \
16528 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
16529 else \
16530 [ -f $(HOST_SUBDIR)/stagetrain-isl/Makefile ] || exit 0; \
16531 $(MAKE) stagetrain-start; \
16532 fi; \
16533 cd $(HOST_SUBDIR)/isl && \
16534 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
16535@endif isl-bootstrap
16536
16537
7ec59b9e
L
16538.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
16539.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
16540maybe-all-stagefeedback-isl:
16541maybe-clean-stagefeedback-isl:
16542@if isl-bootstrap
16543maybe-all-stagefeedback-isl: all-stagefeedback-isl
16544all-stagefeedback: all-stagefeedback-isl
16545TARGET-stagefeedback-isl = $(TARGET-isl)
16546all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
16547 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
16548 @r=`${PWD_COMMAND}`; export r; \
16549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16550 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
16551 $(HOST_EXPORTS) \
16552 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 16553 cd $(HOST_SUBDIR)/isl && \
05a13254 16554 \
a90ef4bf
JM
16555 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16556 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 16557 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
16558 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
16559 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
16560 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16561 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16562 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 16563 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 16564 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 16565 $(TARGET-stagefeedback-isl)
a90ef4bf 16566
7ec59b9e
L
16567maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
16568clean-stagefeedback: clean-stagefeedback-isl
16569clean-stagefeedback-isl:
a90ef4bf 16570 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 16571 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 16572 else \
7ec59b9e 16573 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
16574 $(MAKE) stagefeedback-start; \
16575 fi; \
7ec59b9e 16576 cd $(HOST_SUBDIR)/isl && \
b3676d82 16577 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 16578@endif isl-bootstrap
a90ef4bf
JM
16579
16580
f948b2de
NC
16581.PHONY: all-stageautoprofile-isl maybe-all-stageautoprofile-isl
16582.PHONY: clean-stageautoprofile-isl maybe-clean-stageautoprofile-isl
16583maybe-all-stageautoprofile-isl:
16584maybe-clean-stageautoprofile-isl:
16585@if isl-bootstrap
16586maybe-all-stageautoprofile-isl: all-stageautoprofile-isl
16587all-stageautoprofile: all-stageautoprofile-isl
16588TARGET-stageautoprofile-isl = $(TARGET-isl)
16589all-stageautoprofile-isl: configure-stageautoprofile-isl
16590 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
16591 @r=`${PWD_COMMAND}`; export r; \
16592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16593 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
16594 $(HOST_EXPORTS) \
16595 $(POSTSTAGE1_HOST_EXPORTS) \
16596 cd $(HOST_SUBDIR)/isl && \
16597 $$s/gcc/config/i386/$(AUTO_PROFILE) \
16598 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16599 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
16600 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
16601 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
16602 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
16603 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16604 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16605 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16606 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
16607 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
16608 $(TARGET-stageautoprofile-isl)
16609
16610maybe-clean-stageautoprofile-isl: clean-stageautoprofile-isl
16611clean-stageautoprofile: clean-stageautoprofile-isl
16612clean-stageautoprofile-isl:
16613 @if [ $(current_stage) = stageautoprofile ]; then \
16614 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
16615 else \
16616 [ -f $(HOST_SUBDIR)/stageautoprofile-isl/Makefile ] || exit 0; \
16617 $(MAKE) stageautoprofile-start; \
16618 fi; \
16619 cd $(HOST_SUBDIR)/isl && \
16620 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
16621@endif isl-bootstrap
16622
16623
16624.PHONY: all-stageautofeedback-isl maybe-all-stageautofeedback-isl
16625.PHONY: clean-stageautofeedback-isl maybe-clean-stageautofeedback-isl
16626maybe-all-stageautofeedback-isl:
16627maybe-clean-stageautofeedback-isl:
16628@if isl-bootstrap
16629maybe-all-stageautofeedback-isl: all-stageautofeedback-isl
16630all-stageautofeedback: all-stageautofeedback-isl
16631TARGET-stageautofeedback-isl = $(TARGET-isl)
16632all-stageautofeedback-isl: configure-stageautofeedback-isl
16633 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
16634 @r=`${PWD_COMMAND}`; export r; \
16635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16636 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
16637 $(HOST_EXPORTS) \
16638 $(POSTSTAGE1_HOST_EXPORTS) \
16639 cd $(HOST_SUBDIR)/isl && \
16640 \
16641 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16642 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
16643 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
16644 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
16645 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
16646 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16647 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16648 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16649 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
16650 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
16651 $(TARGET-stageautofeedback-isl)
16652
16653maybe-clean-stageautofeedback-isl: clean-stageautofeedback-isl
16654clean-stageautofeedback: clean-stageautofeedback-isl
16655clean-stageautofeedback-isl:
16656 @if [ $(current_stage) = stageautofeedback ]; then \
16657 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
16658 else \
16659 [ -f $(HOST_SUBDIR)/stageautofeedback-isl/Makefile ] || exit 0; \
16660 $(MAKE) stageautofeedback-start; \
16661 fi; \
16662 cd $(HOST_SUBDIR)/isl && \
16663 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
16664@endif isl-bootstrap
16665
16666
a90ef4bf
JM
16667
16668
16669
7ec59b9e
L
16670.PHONY: check-isl maybe-check-isl
16671maybe-check-isl:
16672@if isl
16673maybe-check-isl: check-isl
a90ef4bf 16674
7ec59b9e 16675check-isl:
0aed8855 16676 @: $(MAKE); $(unstage)
a90ef4bf
JM
16677 @r=`${PWD_COMMAND}`; export r; \
16678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16679 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 16680 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 16681 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 16682
7ec59b9e 16683@endif isl
a90ef4bf 16684
7ec59b9e
L
16685.PHONY: install-isl maybe-install-isl
16686maybe-install-isl:
16687@if isl
16688maybe-install-isl: install-isl
a90ef4bf 16689
7ec59b9e 16690install-isl:
a90ef4bf 16691
7ec59b9e 16692@endif isl
a90ef4bf 16693
7ec59b9e
L
16694.PHONY: install-strip-isl maybe-install-strip-isl
16695maybe-install-strip-isl:
16696@if isl
16697maybe-install-strip-isl: install-strip-isl
a90ef4bf 16698
7ec59b9e 16699install-strip-isl:
a90ef4bf 16700
7ec59b9e 16701@endif isl
a90ef4bf
JM
16702
16703# Other targets (info, dvi, pdf, etc.)
16704
7ec59b9e
L
16705.PHONY: maybe-info-isl info-isl
16706maybe-info-isl:
16707@if isl
16708maybe-info-isl: info-isl
a90ef4bf 16709
7ec59b9e
L
16710info-isl: \
16711 configure-isl
16712 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
16713 r=`${PWD_COMMAND}`; export r; \
16714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16715 $(HOST_EXPORTS) \
7ec59b9e 16716 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
16717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16718 done; \
22121df0 16719 echo "Doing info in isl"; \
7ec59b9e 16720 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
16721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16723 "RANLIB=$${RANLIB}" \
0c24b341 16724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16725 info) \
2a4cbe27
NN
16726 || exit 1
16727
7ec59b9e 16728@endif isl
2a4cbe27 16729
7ec59b9e
L
16730.PHONY: maybe-dvi-isl dvi-isl
16731maybe-dvi-isl:
16732@if isl
16733maybe-dvi-isl: dvi-isl
2a4cbe27 16734
7ec59b9e
L
16735dvi-isl: \
16736 configure-isl
16737 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
16738 r=`${PWD_COMMAND}`; export r; \
16739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16740 $(HOST_EXPORTS) \
7ec59b9e 16741 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
16742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16743 done; \
22121df0 16744 echo "Doing dvi in isl"; \
7ec59b9e 16745 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
16746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16748 "RANLIB=$${RANLIB}" \
0c24b341 16749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16750 dvi) \
2a4cbe27
NN
16751 || exit 1
16752
7ec59b9e 16753@endif isl
2a4cbe27 16754
7ec59b9e
L
16755.PHONY: maybe-pdf-isl pdf-isl
16756maybe-pdf-isl:
16757@if isl
16758maybe-pdf-isl: pdf-isl
56a8fe78 16759
7ec59b9e
L
16760pdf-isl: \
16761 configure-isl
16762 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
16763 r=`${PWD_COMMAND}`; export r; \
16764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16765 $(HOST_EXPORTS) \
7ec59b9e 16766 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
16767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16768 done; \
22121df0 16769 echo "Doing pdf in isl"; \
7ec59b9e 16770 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
16771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16773 "RANLIB=$${RANLIB}" \
0c24b341 16774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16775 pdf) \
16776 || exit 1
16777
7ec59b9e 16778@endif isl
56a8fe78 16779
7ec59b9e
L
16780.PHONY: maybe-html-isl html-isl
16781maybe-html-isl:
16782@if isl
16783maybe-html-isl: html-isl
6d389afc 16784
7ec59b9e
L
16785html-isl: \
16786 configure-isl
16787 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
16788 r=`${PWD_COMMAND}`; export r; \
16789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 16790 $(HOST_EXPORTS) \
7ec59b9e 16791 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
16792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16793 done; \
22121df0 16794 echo "Doing html in isl"; \
7ec59b9e 16795 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
16796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16798 "RANLIB=$${RANLIB}" \
0c24b341 16799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16800 html) \
16801 || exit 1
16802
7ec59b9e 16803@endif isl
6d389afc 16804
7ec59b9e
L
16805.PHONY: maybe-TAGS-isl TAGS-isl
16806maybe-TAGS-isl:
16807@if isl
16808maybe-TAGS-isl: TAGS-isl
2a4cbe27 16809
7ec59b9e
L
16810TAGS-isl: \
16811 configure-isl
16812 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
16813 r=`${PWD_COMMAND}`; export r; \
16814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16815 $(HOST_EXPORTS) \
7ec59b9e 16816 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
16817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16818 done; \
22121df0 16819 echo "Doing TAGS in isl"; \
7ec59b9e 16820 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
16821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16823 "RANLIB=$${RANLIB}" \
0c24b341 16824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16825 TAGS) \
2a4cbe27
NN
16826 || exit 1
16827
7ec59b9e 16828@endif isl
2a4cbe27 16829
7ec59b9e
L
16830.PHONY: maybe-install-info-isl install-info-isl
16831maybe-install-info-isl:
16832@if isl
16833maybe-install-info-isl: install-info-isl
2a4cbe27 16834
7ec59b9e
L
16835install-info-isl: \
16836 configure-isl \
16837 info-isl
16838 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
16839 r=`${PWD_COMMAND}`; export r; \
16840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16841 $(HOST_EXPORTS) \
7ec59b9e 16842 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
16843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16844 done; \
22121df0 16845 echo "Doing install-info in isl"; \
7ec59b9e 16846 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
16847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16849 "RANLIB=$${RANLIB}" \
0c24b341 16850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16851 install-info) \
2a4cbe27
NN
16852 || exit 1
16853
7ec59b9e 16854@endif isl
2a4cbe27 16855
7ec59b9e
L
16856.PHONY: maybe-install-pdf-isl install-pdf-isl
16857maybe-install-pdf-isl:
16858@if isl
16859maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 16860
7ec59b9e
L
16861install-pdf-isl: \
16862 configure-isl \
16863 pdf-isl
16864 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
16865 r=`${PWD_COMMAND}`; export r; \
16866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16867 $(HOST_EXPORTS) \
7ec59b9e 16868 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
16869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16870 done; \
22121df0 16871 echo "Doing install-pdf in isl"; \
7ec59b9e 16872 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
16873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16875 "RANLIB=$${RANLIB}" \
0c24b341 16876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16877 install-pdf) \
16878 || exit 1
16879
7ec59b9e 16880@endif isl
a3ca38d2 16881
7ec59b9e
L
16882.PHONY: maybe-install-html-isl install-html-isl
16883maybe-install-html-isl:
16884@if isl
16885maybe-install-html-isl: install-html-isl
108a6f8e 16886
7ec59b9e
L
16887install-html-isl: \
16888 configure-isl \
16889 html-isl
16890 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
16891 r=`${PWD_COMMAND}`; export r; \
16892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16893 $(HOST_EXPORTS) \
7ec59b9e 16894 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
16895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16896 done; \
22121df0 16897 echo "Doing install-html in isl"; \
7ec59b9e 16898 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
16899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16901 "RANLIB=$${RANLIB}" \
0c24b341 16902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16903 install-html) \
16904 || exit 1
16905
7ec59b9e 16906@endif isl
108a6f8e 16907
7ec59b9e
L
16908.PHONY: maybe-installcheck-isl installcheck-isl
16909maybe-installcheck-isl:
16910@if isl
16911maybe-installcheck-isl: installcheck-isl
2a4cbe27 16912
7ec59b9e
L
16913installcheck-isl: \
16914 configure-isl
16915 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
16916 r=`${PWD_COMMAND}`; export r; \
16917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16918 $(HOST_EXPORTS) \
7ec59b9e 16919 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
16920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16921 done; \
22121df0 16922 echo "Doing installcheck in isl"; \
7ec59b9e 16923 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
16924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16926 "RANLIB=$${RANLIB}" \
0c24b341 16927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16928 installcheck) \
2a4cbe27
NN
16929 || exit 1
16930
7ec59b9e 16931@endif isl
2a4cbe27 16932
7ec59b9e
L
16933.PHONY: maybe-mostlyclean-isl mostlyclean-isl
16934maybe-mostlyclean-isl:
16935@if isl
16936maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 16937
7ec59b9e
L
16938mostlyclean-isl:
16939 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
16940 r=`${PWD_COMMAND}`; export r; \
16941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16942 $(HOST_EXPORTS) \
7ec59b9e 16943 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
16944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16945 done; \
22121df0 16946 echo "Doing mostlyclean in isl"; \
7ec59b9e 16947 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
16948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16950 "RANLIB=$${RANLIB}" \
0c24b341 16951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16952 mostlyclean) \
2a4cbe27
NN
16953 || exit 1
16954
7ec59b9e 16955@endif isl
2a4cbe27 16956
7ec59b9e
L
16957.PHONY: maybe-clean-isl clean-isl
16958maybe-clean-isl:
16959@if isl
16960maybe-clean-isl: clean-isl
2a4cbe27 16961
7ec59b9e
L
16962clean-isl:
16963 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
16964 r=`${PWD_COMMAND}`; export r; \
16965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16966 $(HOST_EXPORTS) \
7ec59b9e 16967 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
16968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16969 done; \
22121df0 16970 echo "Doing clean in isl"; \
7ec59b9e 16971 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
16972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16974 "RANLIB=$${RANLIB}" \
0c24b341 16975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16976 clean) \
2a4cbe27
NN
16977 || exit 1
16978
7ec59b9e 16979@endif isl
2a4cbe27 16980
7ec59b9e
L
16981.PHONY: maybe-distclean-isl distclean-isl
16982maybe-distclean-isl:
16983@if isl
16984maybe-distclean-isl: distclean-isl
2a4cbe27 16985
7ec59b9e
L
16986distclean-isl:
16987 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
16988 r=`${PWD_COMMAND}`; export r; \
16989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16990 $(HOST_EXPORTS) \
7ec59b9e 16991 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
16992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16993 done; \
22121df0 16994 echo "Doing distclean in isl"; \
7ec59b9e 16995 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
16996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16998 "RANLIB=$${RANLIB}" \
0c24b341 16999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 17000 distclean) \
2a4cbe27
NN
17001 || exit 1
17002
7ec59b9e 17003@endif isl
2a4cbe27 17004
7ec59b9e
L
17005.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
17006maybe-maintainer-clean-isl:
17007@if isl
17008maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 17009
7ec59b9e
L
17010maintainer-clean-isl:
17011 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
17012 r=`${PWD_COMMAND}`; export r; \
17013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 17014 $(HOST_EXPORTS) \
7ec59b9e 17015 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
17016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17017 done; \
22121df0 17018 echo "Doing maintainer-clean in isl"; \
7ec59b9e 17019 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
17020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17022 "RANLIB=$${RANLIB}" \
0c24b341 17023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 17024 maintainer-clean) \
2a4cbe27
NN
17025 || exit 1
17026
7ec59b9e 17027@endif isl
2a4cbe27 17028
2a4cbe27 17029
a7254363 17030
a90ef4bf
JM
17031.PHONY: configure-libelf maybe-configure-libelf
17032maybe-configure-libelf:
c52c6897 17033@if gcc-bootstrap
a90ef4bf 17034configure-libelf: stage_current
c52c6897 17035@endif gcc-bootstrap
a90ef4bf
JM
17036@if libelf
17037maybe-configure-libelf: configure-libelf
17038configure-libelf:
c52c6897
PB
17039 @r=`${PWD_COMMAND}`; export r; \
17040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17041 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 17042 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 17043 $(HOST_EXPORTS) \
a90ef4bf
JM
17044 echo Configuring in $(HOST_SUBDIR)/libelf; \
17045 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 17046 case $(srcdir) in \
b00612cc 17047 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17048 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 17049 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 17050 esac; \
1b6c0831
L
17051 module_srcdir=libelf; \
17052 $(SHELL) \
17053 $$s/$$module_srcdir/configure \
17054 --srcdir=$${topdir}/$$module_srcdir \
4b900473 17055 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17056 --target=${target_alias} --disable-shared \
4fa63067 17057 || exit 1
a90ef4bf 17058@endif libelf
4fa63067 17059
a7254363
PB
17060
17061
a90ef4bf
JM
17062.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
17063maybe-configure-stage1-libelf:
17064@if libelf-bootstrap
17065maybe-configure-stage1-libelf: configure-stage1-libelf
17066configure-stage1-libelf:
c52c6897 17067 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 17068 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
17069 @r=`${PWD_COMMAND}`; export r; \
17070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17071 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 17072 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 17073 $(HOST_EXPORTS) \
8ee82aff 17074 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17075 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
17076 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
17077 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
17078 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 17079 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
17080 case $(srcdir) in \
17081 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17082 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
17083 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17084 esac; \
1b6c0831
L
17085 module_srcdir=libelf; \
17086 $(SHELL) $$s/$$module_srcdir/configure \
17087 --srcdir=$${topdir}/$$module_srcdir \
4b900473 17088 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
17089 --target=${target_alias} \
17090 \
a90ef4bf
JM
17091 $(STAGE1_CONFIGURE_FLAGS) \
17092 --disable-shared
17093@endif libelf-bootstrap
d545f33b 17094
a90ef4bf
JM
17095.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
17096maybe-configure-stage2-libelf:
17097@if libelf-bootstrap
17098maybe-configure-stage2-libelf: configure-stage2-libelf
17099configure-stage2-libelf:
c52c6897 17100 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 17101 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
17102 @r=`${PWD_COMMAND}`; export r; \
17103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17104 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 17105 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 17106 $(HOST_EXPORTS) \
1b05fbbd 17107 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 17108 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17109 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
17110 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17111 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
17112 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 17113 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
17114 case $(srcdir) in \
17115 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17116 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
17117 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17118 esac; \
1b6c0831
L
17119 module_srcdir=libelf; \
17120 $(SHELL) $$s/$$module_srcdir/configure \
17121 --srcdir=$${topdir}/$$module_srcdir \
4b900473 17122 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17123 --target=${target_alias} \
22121df0 17124 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17125 $(STAGE2_CONFIGURE_FLAGS) \
17126 --disable-shared
17127@endif libelf-bootstrap
8520c408 17128
a90ef4bf
JM
17129.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
17130maybe-configure-stage3-libelf:
17131@if libelf-bootstrap
17132maybe-configure-stage3-libelf: configure-stage3-libelf
17133configure-stage3-libelf:
c52c6897 17134 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 17135 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
17136 @r=`${PWD_COMMAND}`; export r; \
17137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17138 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 17139 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 17140 $(HOST_EXPORTS) \
1b05fbbd 17141 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 17142 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17143 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
17144 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17145 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
17146 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 17147 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
17148 case $(srcdir) in \
17149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17150 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
17151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17152 esac; \
1b6c0831
L
17153 module_srcdir=libelf; \
17154 $(SHELL) $$s/$$module_srcdir/configure \
17155 --srcdir=$${topdir}/$$module_srcdir \
4b900473 17156 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17157 --target=${target_alias} \
22121df0 17158 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17159 $(STAGE3_CONFIGURE_FLAGS) \
17160 --disable-shared
17161@endif libelf-bootstrap
8520c408 17162
a90ef4bf
JM
17163.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
17164maybe-configure-stage4-libelf:
17165@if libelf-bootstrap
17166maybe-configure-stage4-libelf: configure-stage4-libelf
17167configure-stage4-libelf:
c52c6897 17168 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 17169 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
17170 @r=`${PWD_COMMAND}`; export r; \
17171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17172 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 17173 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 17174 $(HOST_EXPORTS) \
1b05fbbd 17175 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 17176 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17177 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
17178 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17179 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
17180 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 17181 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
17182 case $(srcdir) in \
17183 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17184 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
17185 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17186 esac; \
1b6c0831
L
17187 module_srcdir=libelf; \
17188 $(SHELL) $$s/$$module_srcdir/configure \
17189 --srcdir=$${topdir}/$$module_srcdir \
4b900473 17190 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17191 --target=${target_alias} \
22121df0 17192 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17193 $(STAGE4_CONFIGURE_FLAGS) \
17194 --disable-shared
17195@endif libelf-bootstrap
d545f33b 17196
a90ef4bf
JM
17197.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
17198maybe-configure-stageprofile-libelf:
17199@if libelf-bootstrap
17200maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
17201configure-stageprofile-libelf:
c52c6897 17202 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 17203 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
17204 @r=`${PWD_COMMAND}`; export r; \
17205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17206 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 17207 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 17208 $(HOST_EXPORTS) \
1b05fbbd
AO
17209 $(POSTSTAGE1_HOST_EXPORTS) \
17210 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17211 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
17212 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17213 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
17214 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 17215 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
17216 case $(srcdir) in \
17217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17218 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
17219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17220 esac; \
1b6c0831
L
17221 module_srcdir=libelf; \
17222 $(SHELL) $$s/$$module_srcdir/configure \
17223 --srcdir=$${topdir}/$$module_srcdir \
4b900473 17224 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17225 --target=${target_alias} \
22121df0 17226 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17227 $(STAGEprofile_CONFIGURE_FLAGS) \
17228 --disable-shared
17229@endif libelf-bootstrap
d545f33b 17230
f948b2de
NC
17231.PHONY: configure-stagetrain-libelf maybe-configure-stagetrain-libelf
17232maybe-configure-stagetrain-libelf:
17233@if libelf-bootstrap
17234maybe-configure-stagetrain-libelf: configure-stagetrain-libelf
17235configure-stagetrain-libelf:
17236 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
17237 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
17238 @r=`${PWD_COMMAND}`; export r; \
17239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17240 TFLAGS="$(STAGEtrain_TFLAGS)"; \
17241 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
17242 $(HOST_EXPORTS) \
17243 $(POSTSTAGE1_HOST_EXPORTS) \
17244 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
17245 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
17246 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
17247 echo Configuring stage train in $(HOST_SUBDIR)/libelf; \
17248 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
17249 cd $(HOST_SUBDIR)/libelf || exit 1; \
17250 case $(srcdir) in \
17251 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17252 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
17253 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17254 esac; \
17255 module_srcdir=libelf; \
17256 $(SHELL) $$s/$$module_srcdir/configure \
17257 --srcdir=$${topdir}/$$module_srcdir \
17258 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17259 --target=${target_alias} \
17260 --with-build-libsubdir=$(HOST_SUBDIR) \
17261 $(STAGEtrain_CONFIGURE_FLAGS) \
17262 --disable-shared
17263@endif libelf-bootstrap
17264
a90ef4bf
JM
17265.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
17266maybe-configure-stagefeedback-libelf:
17267@if libelf-bootstrap
17268maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
17269configure-stagefeedback-libelf:
c52c6897 17270 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 17271 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
17272 @r=`${PWD_COMMAND}`; export r; \
17273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17274 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 17275 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 17276 $(HOST_EXPORTS) \
1b05fbbd
AO
17277 $(POSTSTAGE1_HOST_EXPORTS) \
17278 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17279 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
17280 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17281 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
17282 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 17283 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
17284 case $(srcdir) in \
17285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17286 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
17287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17288 esac; \
1b6c0831
L
17289 module_srcdir=libelf; \
17290 $(SHELL) $$s/$$module_srcdir/configure \
17291 --srcdir=$${topdir}/$$module_srcdir \
4b900473 17292 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17293 --target=${target_alias} \
22121df0 17294 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17295 $(STAGEfeedback_CONFIGURE_FLAGS) \
17296 --disable-shared
17297@endif libelf-bootstrap
d545f33b 17298
f948b2de
NC
17299.PHONY: configure-stageautoprofile-libelf maybe-configure-stageautoprofile-libelf
17300maybe-configure-stageautoprofile-libelf:
17301@if libelf-bootstrap
17302maybe-configure-stageautoprofile-libelf: configure-stageautoprofile-libelf
17303configure-stageautoprofile-libelf:
17304 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
17305 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
17306 @r=`${PWD_COMMAND}`; export r; \
17307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17308 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
17309 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
17310 $(HOST_EXPORTS) \
17311 $(POSTSTAGE1_HOST_EXPORTS) \
17312 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
17313 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
17314 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
17315 echo Configuring stage autoprofile in $(HOST_SUBDIR)/libelf; \
17316 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
17317 cd $(HOST_SUBDIR)/libelf || exit 1; \
17318 case $(srcdir) in \
17319 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17320 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
17321 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17322 esac; \
17323 module_srcdir=libelf; \
17324 $(SHELL) $$s/$$module_srcdir/configure \
17325 --srcdir=$${topdir}/$$module_srcdir \
17326 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17327 --target=${target_alias} \
17328 --with-build-libsubdir=$(HOST_SUBDIR) \
17329 $(STAGEautoprofile_CONFIGURE_FLAGS) \
17330 --disable-shared
17331@endif libelf-bootstrap
17332
17333.PHONY: configure-stageautofeedback-libelf maybe-configure-stageautofeedback-libelf
17334maybe-configure-stageautofeedback-libelf:
17335@if libelf-bootstrap
17336maybe-configure-stageautofeedback-libelf: configure-stageautofeedback-libelf
17337configure-stageautofeedback-libelf:
17338 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
17339 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
17340 @r=`${PWD_COMMAND}`; export r; \
17341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17342 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
17343 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
17344 $(HOST_EXPORTS) \
17345 $(POSTSTAGE1_HOST_EXPORTS) \
17346 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
17347 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
17348 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
17349 echo Configuring stage autofeedback in $(HOST_SUBDIR)/libelf; \
17350 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
17351 cd $(HOST_SUBDIR)/libelf || exit 1; \
17352 case $(srcdir) in \
17353 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17354 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
17355 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17356 esac; \
17357 module_srcdir=libelf; \
17358 $(SHELL) $$s/$$module_srcdir/configure \
17359 --srcdir=$${topdir}/$$module_srcdir \
17360 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
17361 --target=${target_alias} \
17362 --with-build-libsubdir=$(HOST_SUBDIR) \
17363 $(STAGEautofeedback_CONFIGURE_FLAGS) \
17364 --disable-shared
17365@endif libelf-bootstrap
17366
d545f33b
PB
17367
17368
17369
17370
a90ef4bf
JM
17371.PHONY: all-libelf maybe-all-libelf
17372maybe-all-libelf:
4f0ef2d8 17373@if gcc-bootstrap
a90ef4bf 17374all-libelf: stage_current
4f0ef2d8 17375@endif gcc-bootstrap
a90ef4bf
JM
17376@if libelf
17377TARGET-libelf=all
17378maybe-all-libelf: all-libelf
17379all-libelf: configure-libelf
c52c6897 17380 @r=`${PWD_COMMAND}`; export r; \
4fa63067 17381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 17382 $(HOST_EXPORTS) \
a90ef4bf 17383 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 17384 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17385 $(TARGET-libelf))
17386@endif libelf
4fa63067 17387
a7254363 17388
d545f33b 17389
a90ef4bf
JM
17390.PHONY: all-stage1-libelf maybe-all-stage1-libelf
17391.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
17392maybe-all-stage1-libelf:
17393maybe-clean-stage1-libelf:
17394@if libelf-bootstrap
17395maybe-all-stage1-libelf: all-stage1-libelf
17396all-stage1: all-stage1-libelf
17397TARGET-stage1-libelf = $(TARGET-libelf)
17398all-stage1-libelf: configure-stage1-libelf
c52c6897 17399 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
17400 @r=`${PWD_COMMAND}`; export r; \
17401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17402 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 17403 $(HOST_EXPORTS) \
a90ef4bf 17404 cd $(HOST_SUBDIR)/libelf && \
05a13254 17405 \
7f6ef0c0 17406 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17407 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 17408 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
1f53ca9a 17409 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
17410 LIBCFLAGS="$(LIBCFLAGS)" \
17411 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17412 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17413 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
17414 $(EXTRA_HOST_FLAGS) \
17415 $(STAGE1_FLAGS_TO_PASS) \
05a13254 17416 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 17417 $(TARGET-stage1-libelf)
d545f33b 17418
a90ef4bf
JM
17419maybe-clean-stage1-libelf: clean-stage1-libelf
17420clean-stage1: clean-stage1-libelf
17421clean-stage1-libelf:
9dbaa842 17422 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 17423 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 17424 else \
a90ef4bf 17425 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
17426 $(MAKE) stage1-start; \
17427 fi; \
a90ef4bf 17428 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 17429 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 17430 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17431@endif libelf-bootstrap
d545f33b
PB
17432
17433
a90ef4bf
JM
17434.PHONY: all-stage2-libelf maybe-all-stage2-libelf
17435.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
17436maybe-all-stage2-libelf:
17437maybe-clean-stage2-libelf:
17438@if libelf-bootstrap
17439maybe-all-stage2-libelf: all-stage2-libelf
17440all-stage2: all-stage2-libelf
17441TARGET-stage2-libelf = $(TARGET-libelf)
17442all-stage2-libelf: configure-stage2-libelf
c52c6897 17443 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
17444 @r=`${PWD_COMMAND}`; export r; \
17445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17446 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 17447 $(HOST_EXPORTS) \
1f53ca9a 17448 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17449 cd $(HOST_SUBDIR)/libelf && \
05a13254 17450 \
7f6ef0c0 17451 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17452 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 17453 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
1f53ca9a 17454 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17455 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17456 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17457 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17458 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 17459 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17460 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17461 $(TARGET-stage2-libelf)
d545f33b 17462
a90ef4bf
JM
17463maybe-clean-stage2-libelf: clean-stage2-libelf
17464clean-stage2: clean-stage2-libelf
17465clean-stage2-libelf:
9dbaa842 17466 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17467 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 17468 else \
a90ef4bf 17469 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
17470 $(MAKE) stage2-start; \
17471 fi; \
a90ef4bf 17472 cd $(HOST_SUBDIR)/libelf && \
b3676d82 17473 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17474@endif libelf-bootstrap
d545f33b
PB
17475
17476
a90ef4bf
JM
17477.PHONY: all-stage3-libelf maybe-all-stage3-libelf
17478.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
17479maybe-all-stage3-libelf:
17480maybe-clean-stage3-libelf:
17481@if libelf-bootstrap
17482maybe-all-stage3-libelf: all-stage3-libelf
17483all-stage3: all-stage3-libelf
17484TARGET-stage3-libelf = $(TARGET-libelf)
17485all-stage3-libelf: configure-stage3-libelf
c52c6897 17486 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
17487 @r=`${PWD_COMMAND}`; export r; \
17488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17489 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 17490 $(HOST_EXPORTS) \
1f53ca9a 17491 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17492 cd $(HOST_SUBDIR)/libelf && \
05a13254 17493 \
7f6ef0c0 17494 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17495 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 17496 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
1f53ca9a 17497 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17498 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17499 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17500 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17501 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 17502 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17503 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17504 $(TARGET-stage3-libelf)
d545f33b 17505
a90ef4bf
JM
17506maybe-clean-stage3-libelf: clean-stage3-libelf
17507clean-stage3: clean-stage3-libelf
17508clean-stage3-libelf:
9dbaa842 17509 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17510 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 17511 else \
a90ef4bf 17512 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
17513 $(MAKE) stage3-start; \
17514 fi; \
a90ef4bf 17515 cd $(HOST_SUBDIR)/libelf && \
b3676d82 17516 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17517@endif libelf-bootstrap
d545f33b
PB
17518
17519
a90ef4bf
JM
17520.PHONY: all-stage4-libelf maybe-all-stage4-libelf
17521.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
17522maybe-all-stage4-libelf:
17523maybe-clean-stage4-libelf:
17524@if libelf-bootstrap
17525maybe-all-stage4-libelf: all-stage4-libelf
17526all-stage4: all-stage4-libelf
17527TARGET-stage4-libelf = $(TARGET-libelf)
17528all-stage4-libelf: configure-stage4-libelf
c52c6897 17529 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
17530 @r=`${PWD_COMMAND}`; export r; \
17531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17532 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 17533 $(HOST_EXPORTS) \
1f53ca9a 17534 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17535 cd $(HOST_SUBDIR)/libelf && \
05a13254 17536 \
7f6ef0c0 17537 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17538 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 17539 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
1f53ca9a 17540 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 17541 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17542 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17543 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17544 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 17545 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17546 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17547 $(TARGET-stage4-libelf)
d545f33b 17548
a90ef4bf
JM
17549maybe-clean-stage4-libelf: clean-stage4-libelf
17550clean-stage4: clean-stage4-libelf
17551clean-stage4-libelf:
9dbaa842 17552 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17553 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 17554 else \
a90ef4bf 17555 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
17556 $(MAKE) stage4-start; \
17557 fi; \
a90ef4bf 17558 cd $(HOST_SUBDIR)/libelf && \
b3676d82 17559 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17560@endif libelf-bootstrap
d545f33b
PB
17561
17562
a90ef4bf
JM
17563.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
17564.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
17565maybe-all-stageprofile-libelf:
17566maybe-clean-stageprofile-libelf:
17567@if libelf-bootstrap
17568maybe-all-stageprofile-libelf: all-stageprofile-libelf
17569all-stageprofile: all-stageprofile-libelf
17570TARGET-stageprofile-libelf = $(TARGET-libelf)
17571all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 17572 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
17573 @r=`${PWD_COMMAND}`; export r; \
17574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17575 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 17576 $(HOST_EXPORTS) \
1f53ca9a 17577 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17578 cd $(HOST_SUBDIR)/libelf && \
05a13254 17579 \
7f6ef0c0 17580 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17581 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 17582 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
1f53ca9a 17583 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17584 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17585 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17586 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17587 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 17588 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17589 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17590 $(TARGET-stageprofile-libelf)
d545f33b 17591
a90ef4bf
JM
17592maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
17593clean-stageprofile: clean-stageprofile-libelf
17594clean-stageprofile-libelf:
9dbaa842 17595 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17596 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 17597 else \
a90ef4bf 17598 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
17599 $(MAKE) stageprofile-start; \
17600 fi; \
a90ef4bf 17601 cd $(HOST_SUBDIR)/libelf && \
b3676d82 17602 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17603@endif libelf-bootstrap
d545f33b
PB
17604
17605
f948b2de
NC
17606.PHONY: all-stagetrain-libelf maybe-all-stagetrain-libelf
17607.PHONY: clean-stagetrain-libelf maybe-clean-stagetrain-libelf
17608maybe-all-stagetrain-libelf:
17609maybe-clean-stagetrain-libelf:
17610@if libelf-bootstrap
17611maybe-all-stagetrain-libelf: all-stagetrain-libelf
17612all-stagetrain: all-stagetrain-libelf
17613TARGET-stagetrain-libelf = $(TARGET-libelf)
17614all-stagetrain-libelf: configure-stagetrain-libelf
17615 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
17616 @r=`${PWD_COMMAND}`; export r; \
17617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17618 TFLAGS="$(STAGEtrain_TFLAGS)"; \
17619 $(HOST_EXPORTS) \
17620 $(POSTSTAGE1_HOST_EXPORTS) \
17621 cd $(HOST_SUBDIR)/libelf && \
17622 \
17623 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17624 CFLAGS="$(STAGEtrain_CFLAGS)" \
17625 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
17626 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
17627 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
17628 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17629 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17630 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17631 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17632 TFLAGS="$(STAGEtrain_TFLAGS)" \
17633 $(TARGET-stagetrain-libelf)
17634
17635maybe-clean-stagetrain-libelf: clean-stagetrain-libelf
17636clean-stagetrain: clean-stagetrain-libelf
17637clean-stagetrain-libelf:
17638 @if [ $(current_stage) = stagetrain ]; then \
17639 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
17640 else \
17641 [ -f $(HOST_SUBDIR)/stagetrain-libelf/Makefile ] || exit 0; \
17642 $(MAKE) stagetrain-start; \
17643 fi; \
17644 cd $(HOST_SUBDIR)/libelf && \
17645 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
17646@endif libelf-bootstrap
17647
17648
a90ef4bf
JM
17649.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
17650.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
17651maybe-all-stagefeedback-libelf:
17652maybe-clean-stagefeedback-libelf:
17653@if libelf-bootstrap
17654maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
17655all-stagefeedback: all-stagefeedback-libelf
17656TARGET-stagefeedback-libelf = $(TARGET-libelf)
17657all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 17658 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
17659 @r=`${PWD_COMMAND}`; export r; \
17660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17661 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 17662 $(HOST_EXPORTS) \
1f53ca9a 17663 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17664 cd $(HOST_SUBDIR)/libelf && \
05a13254 17665 \
7f6ef0c0 17666 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17667 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 17668 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
1f53ca9a 17669 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17670 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17671 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17672 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17673 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 17674 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17675 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17676 $(TARGET-stagefeedback-libelf)
d545f33b 17677
a90ef4bf
JM
17678maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
17679clean-stagefeedback: clean-stagefeedback-libelf
17680clean-stagefeedback-libelf:
9dbaa842 17681 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17682 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 17683 else \
a90ef4bf 17684 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
17685 $(MAKE) stagefeedback-start; \
17686 fi; \
a90ef4bf 17687 cd $(HOST_SUBDIR)/libelf && \
b3676d82 17688 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17689@endif libelf-bootstrap
d545f33b
PB
17690
17691
f948b2de
NC
17692.PHONY: all-stageautoprofile-libelf maybe-all-stageautoprofile-libelf
17693.PHONY: clean-stageautoprofile-libelf maybe-clean-stageautoprofile-libelf
17694maybe-all-stageautoprofile-libelf:
17695maybe-clean-stageautoprofile-libelf:
17696@if libelf-bootstrap
17697maybe-all-stageautoprofile-libelf: all-stageautoprofile-libelf
17698all-stageautoprofile: all-stageautoprofile-libelf
17699TARGET-stageautoprofile-libelf = $(TARGET-libelf)
17700all-stageautoprofile-libelf: configure-stageautoprofile-libelf
17701 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
17702 @r=`${PWD_COMMAND}`; export r; \
17703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17704 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
17705 $(HOST_EXPORTS) \
17706 $(POSTSTAGE1_HOST_EXPORTS) \
17707 cd $(HOST_SUBDIR)/libelf && \
17708 $$s/gcc/config/i386/$(AUTO_PROFILE) \
17709 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17710 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
17711 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
17712 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
17713 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
17714 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17715 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17716 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17717 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17718 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
17719 $(TARGET-stageautoprofile-libelf)
17720
17721maybe-clean-stageautoprofile-libelf: clean-stageautoprofile-libelf
17722clean-stageautoprofile: clean-stageautoprofile-libelf
17723clean-stageautoprofile-libelf:
17724 @if [ $(current_stage) = stageautoprofile ]; then \
17725 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
17726 else \
17727 [ -f $(HOST_SUBDIR)/stageautoprofile-libelf/Makefile ] || exit 0; \
17728 $(MAKE) stageautoprofile-start; \
17729 fi; \
17730 cd $(HOST_SUBDIR)/libelf && \
17731 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
17732@endif libelf-bootstrap
17733
17734
17735.PHONY: all-stageautofeedback-libelf maybe-all-stageautofeedback-libelf
17736.PHONY: clean-stageautofeedback-libelf maybe-clean-stageautofeedback-libelf
17737maybe-all-stageautofeedback-libelf:
17738maybe-clean-stageautofeedback-libelf:
17739@if libelf-bootstrap
17740maybe-all-stageautofeedback-libelf: all-stageautofeedback-libelf
17741all-stageautofeedback: all-stageautofeedback-libelf
17742TARGET-stageautofeedback-libelf = $(TARGET-libelf)
17743all-stageautofeedback-libelf: configure-stageautofeedback-libelf
17744 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
17745 @r=`${PWD_COMMAND}`; export r; \
17746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17747 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
17748 $(HOST_EXPORTS) \
17749 $(POSTSTAGE1_HOST_EXPORTS) \
17750 cd $(HOST_SUBDIR)/libelf && \
17751 \
17752 $(MAKE) $(BASE_FLAGS_TO_PASS) \
17753 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
17754 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
17755 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
17756 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
17757 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17758 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17759 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17760 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17761 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
17762 $(TARGET-stageautofeedback-libelf)
17763
17764maybe-clean-stageautofeedback-libelf: clean-stageautofeedback-libelf
17765clean-stageautofeedback: clean-stageautofeedback-libelf
17766clean-stageautofeedback-libelf:
17767 @if [ $(current_stage) = stageautofeedback ]; then \
17768 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
17769 else \
17770 [ -f $(HOST_SUBDIR)/stageautofeedback-libelf/Makefile ] || exit 0; \
17771 $(MAKE) stageautofeedback-start; \
17772 fi; \
17773 cd $(HOST_SUBDIR)/libelf && \
17774 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
17775@endif libelf-bootstrap
17776
17777
d545f33b
PB
17778
17779
17780
a90ef4bf
JM
17781.PHONY: check-libelf maybe-check-libelf
17782maybe-check-libelf:
17783@if libelf
17784maybe-check-libelf: check-libelf
4fa63067 17785
a90ef4bf 17786check-libelf:
0aed8855 17787 @: $(MAKE); $(unstage)
4fa63067
NN
17788 @r=`${PWD_COMMAND}`; export r; \
17789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17790 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17791 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 17792 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 17793
a90ef4bf 17794@endif libelf
4fa63067 17795
a90ef4bf
JM
17796.PHONY: install-libelf maybe-install-libelf
17797maybe-install-libelf:
17798@if libelf
17799maybe-install-libelf: install-libelf
4fa63067 17800
a90ef4bf 17801install-libelf:
4fa63067 17802
a90ef4bf 17803@endif libelf
4fa63067 17804
a90ef4bf
JM
17805.PHONY: install-strip-libelf maybe-install-strip-libelf
17806maybe-install-strip-libelf:
17807@if libelf
17808maybe-install-strip-libelf: install-strip-libelf
9b980aa1 17809
a90ef4bf 17810install-strip-libelf:
9b980aa1 17811
a90ef4bf 17812@endif libelf
9b980aa1 17813
56a8fe78 17814# Other targets (info, dvi, pdf, etc.)
4fa63067 17815
a90ef4bf
JM
17816.PHONY: maybe-info-libelf info-libelf
17817maybe-info-libelf:
17818@if libelf
17819maybe-info-libelf: info-libelf
4fa63067 17820
a90ef4bf
JM
17821info-libelf: \
17822 configure-libelf
17823 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
17824 r=`${PWD_COMMAND}`; export r; \
17825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 17826 $(HOST_EXPORTS) \
a90ef4bf 17827 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
17828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17829 done; \
22121df0 17830 echo "Doing info in libelf"; \
a90ef4bf 17831 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
17832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17834 "RANLIB=$${RANLIB}" \
0c24b341 17835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 17836 info) \
2a4cbe27
NN
17837 || exit 1
17838
a90ef4bf 17839@endif libelf
2a4cbe27 17840
a90ef4bf
JM
17841.PHONY: maybe-dvi-libelf dvi-libelf
17842maybe-dvi-libelf:
17843@if libelf
17844maybe-dvi-libelf: dvi-libelf
2a4cbe27 17845
a90ef4bf
JM
17846dvi-libelf: \
17847 configure-libelf
17848 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
17849 r=`${PWD_COMMAND}`; export r; \
17850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 17851 $(HOST_EXPORTS) \
a90ef4bf 17852 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
17853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17854 done; \
22121df0 17855 echo "Doing dvi in libelf"; \
a90ef4bf 17856 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
17857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17859 "RANLIB=$${RANLIB}" \
0c24b341 17860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 17861 dvi) \
2a4cbe27
NN
17862 || exit 1
17863
a90ef4bf 17864@endif libelf
2a4cbe27 17865
a90ef4bf
JM
17866.PHONY: maybe-pdf-libelf pdf-libelf
17867maybe-pdf-libelf:
17868@if libelf
17869maybe-pdf-libelf: pdf-libelf
56a8fe78 17870
a90ef4bf
JM
17871pdf-libelf: \
17872 configure-libelf
17873 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
17874 r=`${PWD_COMMAND}`; export r; \
17875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17876 $(HOST_EXPORTS) \
a90ef4bf 17877 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
17878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17879 done; \
22121df0 17880 echo "Doing pdf in libelf"; \
a90ef4bf 17881 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
17882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17884 "RANLIB=$${RANLIB}" \
0c24b341 17885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
17886 pdf) \
17887 || exit 1
17888
a90ef4bf 17889@endif libelf
56a8fe78 17890
a90ef4bf
JM
17891.PHONY: maybe-html-libelf html-libelf
17892maybe-html-libelf:
17893@if libelf
17894maybe-html-libelf: html-libelf
6d389afc 17895
a90ef4bf
JM
17896html-libelf: \
17897 configure-libelf
17898 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
17899 r=`${PWD_COMMAND}`; export r; \
17900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 17901 $(HOST_EXPORTS) \
a90ef4bf 17902 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
17903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17904 done; \
22121df0 17905 echo "Doing html in libelf"; \
a90ef4bf 17906 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
17907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17909 "RANLIB=$${RANLIB}" \
0c24b341 17910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
17911 html) \
17912 || exit 1
17913
a90ef4bf 17914@endif libelf
6d389afc 17915
a90ef4bf
JM
17916.PHONY: maybe-TAGS-libelf TAGS-libelf
17917maybe-TAGS-libelf:
17918@if libelf
17919maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 17920
a90ef4bf
JM
17921TAGS-libelf: \
17922 configure-libelf
17923 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
17924 r=`${PWD_COMMAND}`; export r; \
17925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 17926 $(HOST_EXPORTS) \
a90ef4bf 17927 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
17928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17929 done; \
22121df0 17930 echo "Doing TAGS in libelf"; \
a90ef4bf 17931 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
17932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17934 "RANLIB=$${RANLIB}" \
0c24b341 17935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 17936 TAGS) \
2a4cbe27
NN
17937 || exit 1
17938
a90ef4bf 17939@endif libelf
2a4cbe27 17940
a90ef4bf
JM
17941.PHONY: maybe-install-info-libelf install-info-libelf
17942maybe-install-info-libelf:
17943@if libelf
17944maybe-install-info-libelf: install-info-libelf
a2592b1b 17945
a90ef4bf
JM
17946install-info-libelf: \
17947 configure-libelf \
17948 info-libelf
17949 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
17950 r=`${PWD_COMMAND}`; export r; \
17951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 17952 $(HOST_EXPORTS) \
a90ef4bf 17953 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
17954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17955 done; \
22121df0 17956 echo "Doing install-info in libelf"; \
a90ef4bf 17957 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
17958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17960 "RANLIB=$${RANLIB}" \
0c24b341 17961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 17962 install-info) \
a2592b1b
DD
17963 || exit 1
17964
a90ef4bf 17965@endif libelf
a2592b1b 17966
a90ef4bf
JM
17967.PHONY: maybe-install-pdf-libelf install-pdf-libelf
17968maybe-install-pdf-libelf:
17969@if libelf
17970maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 17971
a90ef4bf
JM
17972install-pdf-libelf: \
17973 configure-libelf \
17974 pdf-libelf
17975 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
17976 r=`${PWD_COMMAND}`; export r; \
17977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17978 $(HOST_EXPORTS) \
a90ef4bf 17979 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
17980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17981 done; \
22121df0 17982 echo "Doing install-pdf in libelf"; \
a90ef4bf 17983 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
17984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17986 "RANLIB=$${RANLIB}" \
0c24b341 17987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
17988 install-pdf) \
17989 || exit 1
17990
a90ef4bf 17991@endif libelf
a3ca38d2 17992
a90ef4bf
JM
17993.PHONY: maybe-install-html-libelf install-html-libelf
17994maybe-install-html-libelf:
17995@if libelf
17996maybe-install-html-libelf: install-html-libelf
108a6f8e 17997
a90ef4bf
JM
17998install-html-libelf: \
17999 configure-libelf \
18000 html-libelf
18001 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
18002 r=`${PWD_COMMAND}`; export r; \
18003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18004 $(HOST_EXPORTS) \
a90ef4bf 18005 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
18006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18007 done; \
22121df0 18008 echo "Doing install-html in libelf"; \
a90ef4bf 18009 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
18010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18012 "RANLIB=$${RANLIB}" \
0c24b341 18013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
18014 install-html) \
18015 || exit 1
18016
a90ef4bf 18017@endif libelf
108a6f8e 18018
a90ef4bf
JM
18019.PHONY: maybe-installcheck-libelf installcheck-libelf
18020maybe-installcheck-libelf:
18021@if libelf
18022maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 18023
a90ef4bf
JM
18024installcheck-libelf: \
18025 configure-libelf
18026 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
18027 r=`${PWD_COMMAND}`; export r; \
18028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18029 $(HOST_EXPORTS) \
a90ef4bf 18030 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
18031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18032 done; \
22121df0 18033 echo "Doing installcheck in libelf"; \
a90ef4bf 18034 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
18035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18037 "RANLIB=$${RANLIB}" \
0c24b341 18038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 18039 installcheck) \
4fa63067 18040 || exit 1
2a4cbe27 18041
a90ef4bf 18042@endif libelf
4fa63067 18043
a90ef4bf
JM
18044.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
18045maybe-mostlyclean-libelf:
18046@if libelf
18047maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 18048
a90ef4bf
JM
18049mostlyclean-libelf:
18050 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
18051 r=`${PWD_COMMAND}`; export r; \
18052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18053 $(HOST_EXPORTS) \
a90ef4bf 18054 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
18055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18056 done; \
22121df0 18057 echo "Doing mostlyclean in libelf"; \
a90ef4bf 18058 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
18059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18061 "RANLIB=$${RANLIB}" \
0c24b341 18062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 18063 mostlyclean) \
2a4cbe27
NN
18064 || exit 1
18065
a90ef4bf 18066@endif libelf
2a4cbe27 18067
a90ef4bf
JM
18068.PHONY: maybe-clean-libelf clean-libelf
18069maybe-clean-libelf:
18070@if libelf
18071maybe-clean-libelf: clean-libelf
2a4cbe27 18072
a90ef4bf
JM
18073clean-libelf:
18074 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
18075 r=`${PWD_COMMAND}`; export r; \
18076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18077 $(HOST_EXPORTS) \
a90ef4bf 18078 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
18079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18080 done; \
22121df0 18081 echo "Doing clean in libelf"; \
a90ef4bf 18082 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
18083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18085 "RANLIB=$${RANLIB}" \
0c24b341 18086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 18087 clean) \
2a4cbe27
NN
18088 || exit 1
18089
a90ef4bf 18090@endif libelf
2a4cbe27 18091
a90ef4bf
JM
18092.PHONY: maybe-distclean-libelf distclean-libelf
18093maybe-distclean-libelf:
18094@if libelf
18095maybe-distclean-libelf: distclean-libelf
2a4cbe27 18096
a90ef4bf
JM
18097distclean-libelf:
18098 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
18099 r=`${PWD_COMMAND}`; export r; \
18100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18101 $(HOST_EXPORTS) \
a90ef4bf 18102 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
18103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18104 done; \
22121df0 18105 echo "Doing distclean in libelf"; \
a90ef4bf 18106 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
18107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18109 "RANLIB=$${RANLIB}" \
0c24b341 18110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 18111 distclean) \
2a4cbe27
NN
18112 || exit 1
18113
a90ef4bf 18114@endif libelf
2a4cbe27 18115
a90ef4bf
JM
18116.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
18117maybe-maintainer-clean-libelf:
18118@if libelf
18119maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 18120
a90ef4bf
JM
18121maintainer-clean-libelf:
18122 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
18123 r=`${PWD_COMMAND}`; export r; \
18124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18125 $(HOST_EXPORTS) \
a90ef4bf 18126 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
18127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18128 done; \
22121df0 18129 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 18130 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
18131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18133 "RANLIB=$${RANLIB}" \
0c24b341 18134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 18135 maintainer-clean) \
2a4cbe27
NN
18136 || exit 1
18137
a90ef4bf 18138@endif libelf
2a4cbe27 18139
2a4cbe27 18140
a7254363 18141
a90ef4bf
JM
18142.PHONY: configure-gold maybe-configure-gold
18143maybe-configure-gold:
4f0ef2d8 18144@if gcc-bootstrap
a90ef4bf 18145configure-gold: stage_current
4f0ef2d8 18146@endif gcc-bootstrap
a90ef4bf
JM
18147@if gold
18148maybe-configure-gold: configure-gold
18149configure-gold:
c52c6897 18150 @r=`${PWD_COMMAND}`; export r; \
4fa63067 18151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18152 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 18153 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 18154 $(HOST_EXPORTS) \
a90ef4bf
JM
18155 echo Configuring in $(HOST_SUBDIR)/gold; \
18156 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 18157 case $(srcdir) in \
b00612cc 18158 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18159 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 18160 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 18161 esac; \
1b6c0831
L
18162 module_srcdir=gold; \
18163 $(SHELL) \
18164 $$s/$$module_srcdir/configure \
18165 --srcdir=$${topdir}/$$module_srcdir \
4b900473 18166 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18167 --target=${target_alias} \
4fa63067 18168 || exit 1
a90ef4bf 18169@endif gold
a7254363 18170
d545f33b
PB
18171
18172
a90ef4bf
JM
18173.PHONY: configure-stage1-gold maybe-configure-stage1-gold
18174maybe-configure-stage1-gold:
18175@if gold-bootstrap
18176maybe-configure-stage1-gold: configure-stage1-gold
18177configure-stage1-gold:
18178 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18179 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
18180 @r=`${PWD_COMMAND}`; export r; \
18181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18182 TFLAGS="$(STAGE1_TFLAGS)"; \
18183 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
18184 $(HOST_EXPORTS) \
18185 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
18186 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18187 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18188 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
18189 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
18190 cd $(HOST_SUBDIR)/gold || exit 1; \
18191 case $(srcdir) in \
18192 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18193 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
18194 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18195 esac; \
1b6c0831
L
18196 module_srcdir=gold; \
18197 $(SHELL) $$s/$$module_srcdir/configure \
18198 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18199 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18200 --target=${target_alias} \
18201 \
a90ef4bf
JM
18202 $(STAGE1_CONFIGURE_FLAGS)
18203@endif gold-bootstrap
4fa63067 18204
a90ef4bf
JM
18205.PHONY: configure-stage2-gold maybe-configure-stage2-gold
18206maybe-configure-stage2-gold:
18207@if gold-bootstrap
18208maybe-configure-stage2-gold: configure-stage2-gold
18209configure-stage2-gold:
18210 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18211 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
18212 @r=`${PWD_COMMAND}`; export r; \
18213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18214 TFLAGS="$(STAGE2_TFLAGS)"; \
18215 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 18216 $(HOST_EXPORTS) \
a90ef4bf
JM
18217 $(POSTSTAGE1_HOST_EXPORTS) \
18218 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
18219 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18220 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18221 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
18222 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
18223 cd $(HOST_SUBDIR)/gold || exit 1; \
18224 case $(srcdir) in \
18225 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18226 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
18227 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18228 esac; \
1b6c0831
L
18229 module_srcdir=gold; \
18230 $(SHELL) $$s/$$module_srcdir/configure \
18231 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18232 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18233 --target=${target_alias} \
22121df0 18234 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18235 $(STAGE2_CONFIGURE_FLAGS)
18236@endif gold-bootstrap
4fa63067 18237
a90ef4bf
JM
18238.PHONY: configure-stage3-gold maybe-configure-stage3-gold
18239maybe-configure-stage3-gold:
18240@if gold-bootstrap
18241maybe-configure-stage3-gold: configure-stage3-gold
18242configure-stage3-gold:
18243 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18244 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
18245 @r=`${PWD_COMMAND}`; export r; \
18246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18247 TFLAGS="$(STAGE3_TFLAGS)"; \
18248 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 18249 $(HOST_EXPORTS) \
a90ef4bf
JM
18250 $(POSTSTAGE1_HOST_EXPORTS) \
18251 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
18252 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18253 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18254 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
18255 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
18256 cd $(HOST_SUBDIR)/gold || exit 1; \
18257 case $(srcdir) in \
18258 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18259 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
18260 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18261 esac; \
1b6c0831
L
18262 module_srcdir=gold; \
18263 $(SHELL) $$s/$$module_srcdir/configure \
18264 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18265 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18266 --target=${target_alias} \
22121df0 18267 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18268 $(STAGE3_CONFIGURE_FLAGS)
18269@endif gold-bootstrap
9b980aa1 18270
a90ef4bf
JM
18271.PHONY: configure-stage4-gold maybe-configure-stage4-gold
18272maybe-configure-stage4-gold:
18273@if gold-bootstrap
18274maybe-configure-stage4-gold: configure-stage4-gold
18275configure-stage4-gold:
18276 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18277 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
18278 @r=`${PWD_COMMAND}`; export r; \
18279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18280 TFLAGS="$(STAGE4_TFLAGS)"; \
18281 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 18282 $(HOST_EXPORTS) \
a90ef4bf
JM
18283 $(POSTSTAGE1_HOST_EXPORTS) \
18284 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
18285 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18286 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18287 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
18288 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
18289 cd $(HOST_SUBDIR)/gold || exit 1; \
18290 case $(srcdir) in \
18291 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18292 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
18293 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18294 esac; \
1b6c0831
L
18295 module_srcdir=gold; \
18296 $(SHELL) $$s/$$module_srcdir/configure \
18297 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18298 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18299 --target=${target_alias} \
22121df0 18300 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18301 $(STAGE4_CONFIGURE_FLAGS)
18302@endif gold-bootstrap
4fa63067 18303
a90ef4bf
JM
18304.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
18305maybe-configure-stageprofile-gold:
18306@if gold-bootstrap
18307maybe-configure-stageprofile-gold: configure-stageprofile-gold
18308configure-stageprofile-gold:
18309 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18310 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
18311 @r=`${PWD_COMMAND}`; export r; \
b40e3958 18312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18313 TFLAGS="$(STAGEprofile_TFLAGS)"; \
18314 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 18315 $(HOST_EXPORTS) \
a90ef4bf
JM
18316 $(POSTSTAGE1_HOST_EXPORTS) \
18317 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
18318 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18319 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18320 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
18321 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
18322 cd $(HOST_SUBDIR)/gold || exit 1; \
18323 case $(srcdir) in \
18324 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18325 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
18326 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18327 esac; \
1b6c0831
L
18328 module_srcdir=gold; \
18329 $(SHELL) $$s/$$module_srcdir/configure \
18330 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18331 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18332 --target=${target_alias} \
22121df0 18333 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18334 $(STAGEprofile_CONFIGURE_FLAGS)
18335@endif gold-bootstrap
2a4cbe27 18336
f948b2de
NC
18337.PHONY: configure-stagetrain-gold maybe-configure-stagetrain-gold
18338maybe-configure-stagetrain-gold:
18339@if gold-bootstrap
18340maybe-configure-stagetrain-gold: configure-stagetrain-gold
18341configure-stagetrain-gold:
18342 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
18343 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
18344 @r=`${PWD_COMMAND}`; export r; \
18345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18346 TFLAGS="$(STAGEtrain_TFLAGS)"; \
18347 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
18348 $(HOST_EXPORTS) \
18349 $(POSTSTAGE1_HOST_EXPORTS) \
18350 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
18351 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
18352 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
18353 echo Configuring stage train in $(HOST_SUBDIR)/gold; \
18354 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
18355 cd $(HOST_SUBDIR)/gold || exit 1; \
18356 case $(srcdir) in \
18357 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18358 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
18359 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18360 esac; \
18361 module_srcdir=gold; \
18362 $(SHELL) $$s/$$module_srcdir/configure \
18363 --srcdir=$${topdir}/$$module_srcdir \
18364 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18365 --target=${target_alias} \
18366 --with-build-libsubdir=$(HOST_SUBDIR) \
18367 $(STAGEtrain_CONFIGURE_FLAGS)
18368@endif gold-bootstrap
18369
a90ef4bf
JM
18370.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
18371maybe-configure-stagefeedback-gold:
18372@if gold-bootstrap
18373maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
18374configure-stagefeedback-gold:
18375 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
18376 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
18377 @r=`${PWD_COMMAND}`; export r; \
b40e3958 18378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18379 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
18380 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 18381 $(HOST_EXPORTS) \
a90ef4bf
JM
18382 $(POSTSTAGE1_HOST_EXPORTS) \
18383 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
18384 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18385 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18386 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
18387 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
18388 cd $(HOST_SUBDIR)/gold || exit 1; \
18389 case $(srcdir) in \
18390 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18391 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
18392 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18393 esac; \
1b6c0831
L
18394 module_srcdir=gold; \
18395 $(SHELL) $$s/$$module_srcdir/configure \
18396 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18397 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18398 --target=${target_alias} \
22121df0 18399 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18400 $(STAGEfeedback_CONFIGURE_FLAGS)
18401@endif gold-bootstrap
2a4cbe27 18402
f948b2de
NC
18403.PHONY: configure-stageautoprofile-gold maybe-configure-stageautoprofile-gold
18404maybe-configure-stageautoprofile-gold:
18405@if gold-bootstrap
18406maybe-configure-stageautoprofile-gold: configure-stageautoprofile-gold
18407configure-stageautoprofile-gold:
18408 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
18409 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
18410 @r=`${PWD_COMMAND}`; export r; \
18411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18412 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
18413 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
18414 $(HOST_EXPORTS) \
18415 $(POSTSTAGE1_HOST_EXPORTS) \
18416 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
18417 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
18418 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
18419 echo Configuring stage autoprofile in $(HOST_SUBDIR)/gold; \
18420 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
18421 cd $(HOST_SUBDIR)/gold || exit 1; \
18422 case $(srcdir) in \
18423 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18424 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
18425 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18426 esac; \
18427 module_srcdir=gold; \
18428 $(SHELL) $$s/$$module_srcdir/configure \
18429 --srcdir=$${topdir}/$$module_srcdir \
18430 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18431 --target=${target_alias} \
18432 --with-build-libsubdir=$(HOST_SUBDIR) \
18433 $(STAGEautoprofile_CONFIGURE_FLAGS)
18434@endif gold-bootstrap
18435
18436.PHONY: configure-stageautofeedback-gold maybe-configure-stageautofeedback-gold
18437maybe-configure-stageautofeedback-gold:
18438@if gold-bootstrap
18439maybe-configure-stageautofeedback-gold: configure-stageautofeedback-gold
18440configure-stageautofeedback-gold:
18441 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
18442 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
18443 @r=`${PWD_COMMAND}`; export r; \
18444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18445 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
18446 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
18447 $(HOST_EXPORTS) \
18448 $(POSTSTAGE1_HOST_EXPORTS) \
18449 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
18450 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
18451 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
18452 echo Configuring stage autofeedback in $(HOST_SUBDIR)/gold; \
18453 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
18454 cd $(HOST_SUBDIR)/gold || exit 1; \
18455 case $(srcdir) in \
18456 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18457 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
18458 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18459 esac; \
18460 module_srcdir=gold; \
18461 $(SHELL) $$s/$$module_srcdir/configure \
18462 --srcdir=$${topdir}/$$module_srcdir \
18463 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
18464 --target=${target_alias} \
18465 --with-build-libsubdir=$(HOST_SUBDIR) \
18466 $(STAGEautofeedback_CONFIGURE_FLAGS)
18467@endif gold-bootstrap
18468
56a8fe78 18469
56a8fe78 18470
56a8fe78 18471
6d389afc 18472
a90ef4bf
JM
18473.PHONY: all-gold maybe-all-gold
18474maybe-all-gold:
18475@if gcc-bootstrap
18476all-gold: stage_current
18477@endif gcc-bootstrap
18478@if gold
18479TARGET-gold=all
18480maybe-all-gold: all-gold
18481all-gold: configure-gold
18482 @r=`${PWD_COMMAND}`; export r; \
6d389afc 18483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18484 $(HOST_EXPORTS) \
18485 (cd $(HOST_SUBDIR)/gold && \
b3676d82 18486 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18487 $(TARGET-gold))
18488@endif gold
6d389afc 18489
6d389afc 18490
2a4cbe27 18491
a90ef4bf
JM
18492.PHONY: all-stage1-gold maybe-all-stage1-gold
18493.PHONY: clean-stage1-gold maybe-clean-stage1-gold
18494maybe-all-stage1-gold:
18495maybe-clean-stage1-gold:
18496@if gold-bootstrap
18497maybe-all-stage1-gold: all-stage1-gold
18498all-stage1: all-stage1-gold
18499TARGET-stage1-gold = $(TARGET-gold)
18500all-stage1-gold: configure-stage1-gold
18501 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18502 @r=`${PWD_COMMAND}`; export r; \
b40e3958 18503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18504 TFLAGS="$(STAGE1_TFLAGS)"; \
18505 $(HOST_EXPORTS) \
18506 cd $(HOST_SUBDIR)/gold && \
05a13254 18507 \
a90ef4bf
JM
18508 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18509 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 18510 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
18511 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
18512 LIBCFLAGS="$(LIBCFLAGS)" \
18513 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18514 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18515 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18516 $(EXTRA_HOST_FLAGS) \
18517 $(STAGE1_FLAGS_TO_PASS) \
05a13254 18518 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18519 $(TARGET-stage1-gold)
2a4cbe27 18520
a90ef4bf
JM
18521maybe-clean-stage1-gold: clean-stage1-gold
18522clean-stage1: clean-stage1-gold
18523clean-stage1-gold:
18524 @if [ $(current_stage) = stage1 ]; then \
18525 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
18526 else \
18527 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
18528 $(MAKE) stage1-start; \
18529 fi; \
18530 cd $(HOST_SUBDIR)/gold && \
18531 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18532 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18533@endif gold-bootstrap
2a4cbe27 18534
2a4cbe27 18535
a90ef4bf
JM
18536.PHONY: all-stage2-gold maybe-all-stage2-gold
18537.PHONY: clean-stage2-gold maybe-clean-stage2-gold
18538maybe-all-stage2-gold:
18539maybe-clean-stage2-gold:
18540@if gold-bootstrap
18541maybe-all-stage2-gold: all-stage2-gold
18542all-stage2: all-stage2-gold
18543TARGET-stage2-gold = $(TARGET-gold)
18544all-stage2-gold: configure-stage2-gold
18545 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18546 @r=`${PWD_COMMAND}`; export r; \
b40e3958 18547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18548 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 18549 $(HOST_EXPORTS) \
a90ef4bf
JM
18550 $(POSTSTAGE1_HOST_EXPORTS) \
18551 cd $(HOST_SUBDIR)/gold && \
05a13254 18552 \
a90ef4bf
JM
18553 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18554 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 18555 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
18556 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
18557 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18558 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18559 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18560 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18561 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18562 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18563 $(TARGET-stage2-gold)
2a4cbe27 18564
a90ef4bf
JM
18565maybe-clean-stage2-gold: clean-stage2-gold
18566clean-stage2: clean-stage2-gold
18567clean-stage2-gold:
18568 @if [ $(current_stage) = stage2 ]; then \
18569 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
18570 else \
18571 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
18572 $(MAKE) stage2-start; \
18573 fi; \
18574 cd $(HOST_SUBDIR)/gold && \
b3676d82 18575 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18576@endif gold-bootstrap
2a4cbe27 18577
a3ca38d2 18578
a90ef4bf
JM
18579.PHONY: all-stage3-gold maybe-all-stage3-gold
18580.PHONY: clean-stage3-gold maybe-clean-stage3-gold
18581maybe-all-stage3-gold:
18582maybe-clean-stage3-gold:
18583@if gold-bootstrap
18584maybe-all-stage3-gold: all-stage3-gold
18585all-stage3: all-stage3-gold
18586TARGET-stage3-gold = $(TARGET-gold)
18587all-stage3-gold: configure-stage3-gold
18588 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18589 @r=`${PWD_COMMAND}`; export r; \
b40e3958 18590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18591 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 18592 $(HOST_EXPORTS) \
a90ef4bf
JM
18593 $(POSTSTAGE1_HOST_EXPORTS) \
18594 cd $(HOST_SUBDIR)/gold && \
05a13254 18595 \
a90ef4bf
JM
18596 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18597 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 18598 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
18599 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
18600 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18601 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18602 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18603 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18604 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18605 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18606 $(TARGET-stage3-gold)
2a4cbe27 18607
a90ef4bf
JM
18608maybe-clean-stage3-gold: clean-stage3-gold
18609clean-stage3: clean-stage3-gold
18610clean-stage3-gold:
18611 @if [ $(current_stage) = stage3 ]; then \
18612 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
18613 else \
18614 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
18615 $(MAKE) stage3-start; \
18616 fi; \
18617 cd $(HOST_SUBDIR)/gold && \
b3676d82 18618 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18619@endif gold-bootstrap
2a4cbe27 18620
2a4cbe27 18621
a90ef4bf
JM
18622.PHONY: all-stage4-gold maybe-all-stage4-gold
18623.PHONY: clean-stage4-gold maybe-clean-stage4-gold
18624maybe-all-stage4-gold:
18625maybe-clean-stage4-gold:
18626@if gold-bootstrap
18627maybe-all-stage4-gold: all-stage4-gold
18628all-stage4: all-stage4-gold
18629TARGET-stage4-gold = $(TARGET-gold)
18630all-stage4-gold: configure-stage4-gold
18631 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18632 @r=`${PWD_COMMAND}`; export r; \
b40e3958 18633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18634 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 18635 $(HOST_EXPORTS) \
a90ef4bf
JM
18636 $(POSTSTAGE1_HOST_EXPORTS) \
18637 cd $(HOST_SUBDIR)/gold && \
05a13254 18638 \
a90ef4bf
JM
18639 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18640 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 18641 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
18642 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
18643 LIBCFLAGS="$(STAGE4_CFLAGS)" \
18644 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18645 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18646 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18647 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18648 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18649 $(TARGET-stage4-gold)
2a4cbe27 18650
a90ef4bf
JM
18651maybe-clean-stage4-gold: clean-stage4-gold
18652clean-stage4: clean-stage4-gold
18653clean-stage4-gold:
18654 @if [ $(current_stage) = stage4 ]; then \
18655 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
18656 else \
18657 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
18658 $(MAKE) stage4-start; \
18659 fi; \
18660 cd $(HOST_SUBDIR)/gold && \
b3676d82 18661 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18662@endif gold-bootstrap
2a4cbe27 18663
2a4cbe27 18664
a90ef4bf
JM
18665.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
18666.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
18667maybe-all-stageprofile-gold:
18668maybe-clean-stageprofile-gold:
18669@if gold-bootstrap
18670maybe-all-stageprofile-gold: all-stageprofile-gold
18671all-stageprofile: all-stageprofile-gold
18672TARGET-stageprofile-gold = $(TARGET-gold)
18673all-stageprofile-gold: configure-stageprofile-gold
18674 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18675 @r=`${PWD_COMMAND}`; export r; \
b40e3958 18676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18677 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 18678 $(HOST_EXPORTS) \
a90ef4bf
JM
18679 $(POSTSTAGE1_HOST_EXPORTS) \
18680 cd $(HOST_SUBDIR)/gold && \
05a13254 18681 \
a90ef4bf
JM
18682 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18683 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 18684 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
18685 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
18686 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18687 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18688 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18689 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18690 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18691 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18692 $(TARGET-stageprofile-gold)
2a4cbe27 18693
a90ef4bf
JM
18694maybe-clean-stageprofile-gold: clean-stageprofile-gold
18695clean-stageprofile: clean-stageprofile-gold
18696clean-stageprofile-gold:
18697 @if [ $(current_stage) = stageprofile ]; then \
18698 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
18699 else \
18700 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
18701 $(MAKE) stageprofile-start; \
18702 fi; \
18703 cd $(HOST_SUBDIR)/gold && \
b3676d82 18704 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18705@endif gold-bootstrap
2a4cbe27 18706
a7254363 18707
f948b2de
NC
18708.PHONY: all-stagetrain-gold maybe-all-stagetrain-gold
18709.PHONY: clean-stagetrain-gold maybe-clean-stagetrain-gold
18710maybe-all-stagetrain-gold:
18711maybe-clean-stagetrain-gold:
18712@if gold-bootstrap
18713maybe-all-stagetrain-gold: all-stagetrain-gold
18714all-stagetrain: all-stagetrain-gold
18715TARGET-stagetrain-gold = $(TARGET-gold)
18716all-stagetrain-gold: configure-stagetrain-gold
18717 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
18718 @r=`${PWD_COMMAND}`; export r; \
18719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18720 TFLAGS="$(STAGEtrain_TFLAGS)"; \
18721 $(HOST_EXPORTS) \
18722 $(POSTSTAGE1_HOST_EXPORTS) \
18723 cd $(HOST_SUBDIR)/gold && \
18724 \
18725 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18726 CFLAGS="$(STAGEtrain_CFLAGS)" \
18727 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
18728 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
18729 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
18730 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18731 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18732 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18733 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18734 TFLAGS="$(STAGEtrain_TFLAGS)" \
18735 $(TARGET-stagetrain-gold)
18736
18737maybe-clean-stagetrain-gold: clean-stagetrain-gold
18738clean-stagetrain: clean-stagetrain-gold
18739clean-stagetrain-gold:
18740 @if [ $(current_stage) = stagetrain ]; then \
18741 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
18742 else \
18743 [ -f $(HOST_SUBDIR)/stagetrain-gold/Makefile ] || exit 0; \
18744 $(MAKE) stagetrain-start; \
18745 fi; \
18746 cd $(HOST_SUBDIR)/gold && \
18747 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
18748@endif gold-bootstrap
18749
18750
a90ef4bf
JM
18751.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
18752.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
18753maybe-all-stagefeedback-gold:
18754maybe-clean-stagefeedback-gold:
18755@if gold-bootstrap
18756maybe-all-stagefeedback-gold: all-stagefeedback-gold
18757all-stagefeedback: all-stagefeedback-gold
18758TARGET-stagefeedback-gold = $(TARGET-gold)
18759all-stagefeedback-gold: configure-stagefeedback-gold
18760 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 18761 @r=`${PWD_COMMAND}`; export r; \
4fa63067 18762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
18763 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
18764 $(HOST_EXPORTS) \
18765 $(POSTSTAGE1_HOST_EXPORTS) \
18766 cd $(HOST_SUBDIR)/gold && \
05a13254 18767 \
a90ef4bf
JM
18768 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18769 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 18770 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
18771 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
18772 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
18773 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18774 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18775 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18776 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18777 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 18778 $(TARGET-stagefeedback-gold)
d545f33b 18779
a90ef4bf
JM
18780maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
18781clean-stagefeedback: clean-stagefeedback-gold
18782clean-stagefeedback-gold:
18783 @if [ $(current_stage) = stagefeedback ]; then \
18784 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
18785 else \
18786 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
18787 $(MAKE) stagefeedback-start; \
18788 fi; \
18789 cd $(HOST_SUBDIR)/gold && \
b3676d82 18790 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18791@endif gold-bootstrap
d545f33b 18792
4fa63067 18793
f948b2de
NC
18794.PHONY: all-stageautoprofile-gold maybe-all-stageautoprofile-gold
18795.PHONY: clean-stageautoprofile-gold maybe-clean-stageautoprofile-gold
18796maybe-all-stageautoprofile-gold:
18797maybe-clean-stageautoprofile-gold:
18798@if gold-bootstrap
18799maybe-all-stageautoprofile-gold: all-stageautoprofile-gold
18800all-stageautoprofile: all-stageautoprofile-gold
18801TARGET-stageautoprofile-gold = $(TARGET-gold)
18802all-stageautoprofile-gold: configure-stageautoprofile-gold
18803 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
18804 @r=`${PWD_COMMAND}`; export r; \
18805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18806 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
18807 $(HOST_EXPORTS) \
18808 $(POSTSTAGE1_HOST_EXPORTS) \
18809 cd $(HOST_SUBDIR)/gold && \
18810 $$s/gcc/config/i386/$(AUTO_PROFILE) \
18811 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18812 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
18813 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
18814 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
18815 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
18816 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18817 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18818 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18819 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18820 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
18821 $(TARGET-stageautoprofile-gold)
18822
18823maybe-clean-stageautoprofile-gold: clean-stageautoprofile-gold
18824clean-stageautoprofile: clean-stageautoprofile-gold
18825clean-stageautoprofile-gold:
18826 @if [ $(current_stage) = stageautoprofile ]; then \
18827 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
18828 else \
18829 [ -f $(HOST_SUBDIR)/stageautoprofile-gold/Makefile ] || exit 0; \
18830 $(MAKE) stageautoprofile-start; \
18831 fi; \
18832 cd $(HOST_SUBDIR)/gold && \
18833 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
18834@endif gold-bootstrap
18835
18836
18837.PHONY: all-stageautofeedback-gold maybe-all-stageautofeedback-gold
18838.PHONY: clean-stageautofeedback-gold maybe-clean-stageautofeedback-gold
18839maybe-all-stageautofeedback-gold:
18840maybe-clean-stageautofeedback-gold:
18841@if gold-bootstrap
18842maybe-all-stageautofeedback-gold: all-stageautofeedback-gold
18843all-stageautofeedback: all-stageautofeedback-gold
18844TARGET-stageautofeedback-gold = $(TARGET-gold)
18845all-stageautofeedback-gold: configure-stageautofeedback-gold
18846 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
18847 @r=`${PWD_COMMAND}`; export r; \
18848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18849 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
18850 $(HOST_EXPORTS) \
18851 $(POSTSTAGE1_HOST_EXPORTS) \
18852 cd $(HOST_SUBDIR)/gold && \
18853 \
18854 $(MAKE) $(BASE_FLAGS_TO_PASS) \
18855 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
18856 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
18857 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
18858 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
18859 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18860 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18861 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18862 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18863 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
18864 $(TARGET-stageautofeedback-gold)
18865
18866maybe-clean-stageautofeedback-gold: clean-stageautofeedback-gold
18867clean-stageautofeedback: clean-stageautofeedback-gold
18868clean-stageautofeedback-gold:
18869 @if [ $(current_stage) = stageautofeedback ]; then \
18870 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
18871 else \
18872 [ -f $(HOST_SUBDIR)/stageautofeedback-gold/Makefile ] || exit 0; \
18873 $(MAKE) stageautofeedback-start; \
18874 fi; \
18875 cd $(HOST_SUBDIR)/gold && \
18876 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
18877@endif gold-bootstrap
18878
18879
a7254363 18880
d545f33b
PB
18881
18882
a90ef4bf
JM
18883.PHONY: check-gold maybe-check-gold
18884maybe-check-gold:
18885@if gold
18886maybe-check-gold: check-gold
4fa63067 18887
a90ef4bf 18888check-gold:
0aed8855 18889 @: $(MAKE); $(unstage)
4fa63067
NN
18890 @r=`${PWD_COMMAND}`; export r; \
18891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18892 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 18893 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 18894 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 18895
a90ef4bf 18896@endif gold
4fa63067 18897
a90ef4bf
JM
18898.PHONY: install-gold maybe-install-gold
18899maybe-install-gold:
18900@if gold
18901maybe-install-gold: install-gold
4fa63067 18902
a90ef4bf 18903install-gold: installdirs
0aed8855 18904 @: $(MAKE); $(unstage)
4fa63067
NN
18905 @r=`${PWD_COMMAND}`; export r; \
18906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18907 $(HOST_EXPORTS) \
a90ef4bf 18908 (cd $(HOST_SUBDIR)/gold && \
2da12f12 18909 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 18910
a90ef4bf 18911@endif gold
4fa63067 18912
a90ef4bf
JM
18913.PHONY: install-strip-gold maybe-install-strip-gold
18914maybe-install-strip-gold:
18915@if gold
18916maybe-install-strip-gold: install-strip-gold
9b980aa1 18917
a90ef4bf 18918install-strip-gold: installdirs
9b980aa1
RW
18919 @: $(MAKE); $(unstage)
18920 @r=`${PWD_COMMAND}`; export r; \
18921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18922 $(HOST_EXPORTS) \
a90ef4bf 18923 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
18924 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18925
a90ef4bf 18926@endif gold
9b980aa1 18927
56a8fe78 18928# Other targets (info, dvi, pdf, etc.)
4fa63067 18929
a90ef4bf
JM
18930.PHONY: maybe-info-gold info-gold
18931maybe-info-gold:
18932@if gold
18933maybe-info-gold: info-gold
4fa63067 18934
a90ef4bf
JM
18935info-gold: \
18936 configure-gold
18937 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
18938 r=`${PWD_COMMAND}`; export r; \
18939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18940 $(HOST_EXPORTS) \
b813574b 18941 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
18942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18943 done; \
22121df0 18944 echo "Doing info in gold"; \
a90ef4bf 18945 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
18946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18948 "RANLIB=$${RANLIB}" \
0c24b341 18949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 18950 info) \
2a4cbe27
NN
18951 || exit 1
18952
a90ef4bf 18953@endif gold
2a4cbe27 18954
a90ef4bf
JM
18955.PHONY: maybe-dvi-gold dvi-gold
18956maybe-dvi-gold:
18957@if gold
18958maybe-dvi-gold: dvi-gold
2a4cbe27 18959
a90ef4bf
JM
18960dvi-gold: \
18961 configure-gold
18962 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
18963 r=`${PWD_COMMAND}`; export r; \
18964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 18965 $(HOST_EXPORTS) \
b813574b 18966 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
18967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18968 done; \
22121df0 18969 echo "Doing dvi in gold"; \
a90ef4bf 18970 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
18971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18973 "RANLIB=$${RANLIB}" \
0c24b341 18974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 18975 dvi) \
2a4cbe27
NN
18976 || exit 1
18977
a90ef4bf 18978@endif gold
2a4cbe27 18979
a90ef4bf
JM
18980.PHONY: maybe-pdf-gold pdf-gold
18981maybe-pdf-gold:
18982@if gold
18983maybe-pdf-gold: pdf-gold
56a8fe78 18984
a90ef4bf
JM
18985pdf-gold: \
18986 configure-gold
18987 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
18988 r=`${PWD_COMMAND}`; export r; \
18989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18990 $(HOST_EXPORTS) \
18991 for flag in $(EXTRA_HOST_FLAGS) ; do \
18992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18993 done; \
22121df0 18994 echo "Doing pdf in gold"; \
a90ef4bf 18995 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
18996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18998 "RANLIB=$${RANLIB}" \
0c24b341 18999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
19000 pdf) \
19001 || exit 1
19002
a90ef4bf 19003@endif gold
56a8fe78 19004
a90ef4bf
JM
19005.PHONY: maybe-html-gold html-gold
19006maybe-html-gold:
19007@if gold
19008maybe-html-gold: html-gold
6d389afc 19009
a90ef4bf
JM
19010html-gold: \
19011 configure-gold
19012 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
19013 r=`${PWD_COMMAND}`; export r; \
19014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
19015 $(HOST_EXPORTS) \
19016 for flag in $(EXTRA_HOST_FLAGS) ; do \
19017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19018 done; \
22121df0 19019 echo "Doing html in gold"; \
a90ef4bf 19020 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
19021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19023 "RANLIB=$${RANLIB}" \
0c24b341 19024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
19025 html) \
19026 || exit 1
19027
a90ef4bf 19028@endif gold
6d389afc 19029
a90ef4bf
JM
19030.PHONY: maybe-TAGS-gold TAGS-gold
19031maybe-TAGS-gold:
19032@if gold
19033maybe-TAGS-gold: TAGS-gold
2a4cbe27 19034
a90ef4bf
JM
19035TAGS-gold: \
19036 configure-gold
19037 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
19038 r=`${PWD_COMMAND}`; export r; \
19039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19040 $(HOST_EXPORTS) \
b813574b 19041 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
19042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19043 done; \
22121df0 19044 echo "Doing TAGS in gold"; \
a90ef4bf 19045 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
19046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19048 "RANLIB=$${RANLIB}" \
0c24b341 19049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 19050 TAGS) \
2a4cbe27
NN
19051 || exit 1
19052
a90ef4bf 19053@endif gold
2a4cbe27 19054
a90ef4bf
JM
19055.PHONY: maybe-install-info-gold install-info-gold
19056maybe-install-info-gold:
19057@if gold
19058maybe-install-info-gold: install-info-gold
b813574b 19059
a90ef4bf
JM
19060install-info-gold: \
19061 configure-gold \
19062 info-gold
19063 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
19064 r=`${PWD_COMMAND}`; export r; \
19065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19066 $(HOST_EXPORTS) \
b813574b 19067 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
19068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19069 done; \
22121df0 19070 echo "Doing install-info in gold"; \
a90ef4bf 19071 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
19072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19074 "RANLIB=$${RANLIB}" \
0c24b341 19075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 19076 install-info) \
2a4cbe27
NN
19077 || exit 1
19078
a90ef4bf 19079@endif gold
2a4cbe27 19080
a90ef4bf
JM
19081.PHONY: maybe-install-pdf-gold install-pdf-gold
19082maybe-install-pdf-gold:
19083@if gold
19084maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 19085
a90ef4bf
JM
19086install-pdf-gold: \
19087 configure-gold \
19088 pdf-gold
19089 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
19090 r=`${PWD_COMMAND}`; export r; \
19091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19092 $(HOST_EXPORTS) \
19093 for flag in $(EXTRA_HOST_FLAGS) ; do \
19094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19095 done; \
22121df0 19096 echo "Doing install-pdf in gold"; \
a90ef4bf 19097 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
19098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19100 "RANLIB=$${RANLIB}" \
0c24b341 19101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
19102 install-pdf) \
19103 || exit 1
19104
a90ef4bf 19105@endif gold
a3ca38d2 19106
a90ef4bf
JM
19107.PHONY: maybe-install-html-gold install-html-gold
19108maybe-install-html-gold:
19109@if gold
19110maybe-install-html-gold: install-html-gold
108a6f8e 19111
a90ef4bf
JM
19112install-html-gold: \
19113 configure-gold \
19114 html-gold
19115 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
19116 r=`${PWD_COMMAND}`; export r; \
19117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19118 $(HOST_EXPORTS) \
19119 for flag in $(EXTRA_HOST_FLAGS) ; do \
19120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19121 done; \
22121df0 19122 echo "Doing install-html in gold"; \
a90ef4bf 19123 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
19124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19126 "RANLIB=$${RANLIB}" \
0c24b341 19127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
19128 install-html) \
19129 || exit 1
19130
a90ef4bf 19131@endif gold
108a6f8e 19132
a90ef4bf
JM
19133.PHONY: maybe-installcheck-gold installcheck-gold
19134maybe-installcheck-gold:
19135@if gold
19136maybe-installcheck-gold: installcheck-gold
2a4cbe27 19137
a90ef4bf
JM
19138installcheck-gold: \
19139 configure-gold
19140 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
19141 r=`${PWD_COMMAND}`; export r; \
19142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19143 $(HOST_EXPORTS) \
b813574b 19144 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
19145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19146 done; \
22121df0 19147 echo "Doing installcheck in gold"; \
a90ef4bf 19148 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
19149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19151 "RANLIB=$${RANLIB}" \
0c24b341 19152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 19153 installcheck) \
2a4cbe27
NN
19154 || exit 1
19155
a90ef4bf 19156@endif gold
2a4cbe27 19157
a90ef4bf
JM
19158.PHONY: maybe-mostlyclean-gold mostlyclean-gold
19159maybe-mostlyclean-gold:
19160@if gold
19161maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 19162
a90ef4bf
JM
19163mostlyclean-gold:
19164 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
19165 r=`${PWD_COMMAND}`; export r; \
19166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19167 $(HOST_EXPORTS) \
b813574b 19168 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
19169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19170 done; \
22121df0 19171 echo "Doing mostlyclean in gold"; \
a90ef4bf 19172 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
19173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19175 "RANLIB=$${RANLIB}" \
0c24b341 19176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 19177 mostlyclean) \
2a4cbe27
NN
19178 || exit 1
19179
a90ef4bf 19180@endif gold
2a4cbe27 19181
a90ef4bf
JM
19182.PHONY: maybe-clean-gold clean-gold
19183maybe-clean-gold:
19184@if gold
19185maybe-clean-gold: clean-gold
2a4cbe27 19186
a90ef4bf
JM
19187clean-gold:
19188 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
19189 r=`${PWD_COMMAND}`; export r; \
19190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19191 $(HOST_EXPORTS) \
b813574b 19192 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
19193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19194 done; \
22121df0 19195 echo "Doing clean in gold"; \
a90ef4bf 19196 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
19197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19199 "RANLIB=$${RANLIB}" \
0c24b341 19200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 19201 clean) \
2a4cbe27
NN
19202 || exit 1
19203
a90ef4bf 19204@endif gold
2a4cbe27 19205
a90ef4bf
JM
19206.PHONY: maybe-distclean-gold distclean-gold
19207maybe-distclean-gold:
19208@if gold
19209maybe-distclean-gold: distclean-gold
2a4cbe27 19210
a90ef4bf
JM
19211distclean-gold:
19212 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
19213 r=`${PWD_COMMAND}`; export r; \
19214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19215 $(HOST_EXPORTS) \
b813574b 19216 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
19217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19218 done; \
22121df0 19219 echo "Doing distclean in gold"; \
a90ef4bf 19220 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
19221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19223 "RANLIB=$${RANLIB}" \
0c24b341 19224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 19225 distclean) \
2a4cbe27
NN
19226 || exit 1
19227
a90ef4bf 19228@endif gold
2a4cbe27 19229
a90ef4bf
JM
19230.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
19231maybe-maintainer-clean-gold:
19232@if gold
19233maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 19234
a90ef4bf
JM
19235maintainer-clean-gold:
19236 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
19237 r=`${PWD_COMMAND}`; export r; \
19238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 19239 $(HOST_EXPORTS) \
b813574b 19240 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
19241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19242 done; \
22121df0 19243 echo "Doing maintainer-clean in gold"; \
a90ef4bf 19244 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
19245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19247 "RANLIB=$${RANLIB}" \
0c24b341 19248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 19249 maintainer-clean) \
4fa63067
NN
19250 || exit 1
19251
a90ef4bf 19252@endif gold
4fa63067
NN
19253
19254
a7254363 19255
a90ef4bf
JM
19256.PHONY: configure-gprof maybe-configure-gprof
19257maybe-configure-gprof:
4b900473 19258@if gcc-bootstrap
a90ef4bf 19259configure-gprof: stage_current
4b900473 19260@endif gcc-bootstrap
a90ef4bf
JM
19261@if gprof
19262maybe-configure-gprof: configure-gprof
19263configure-gprof:
19264 @: $(MAKE); $(unstage)
4b900473
PB
19265 @r=`${PWD_COMMAND}`; export r; \
19266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 19267 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 19268 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 19269 $(HOST_EXPORTS) \
a90ef4bf
JM
19270 echo Configuring in $(HOST_SUBDIR)/gprof; \
19271 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
19272 case $(srcdir) in \
19273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 19274 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
19275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19276 esac; \
1b6c0831
L
19277 module_srcdir=gprof; \
19278 $(SHELL) \
19279 $$s/$$module_srcdir/configure \
19280 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 19281 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19282 --target=${target_alias} \
4b900473 19283 || exit 1
a90ef4bf 19284@endif gprof
4b900473
PB
19285
19286
19287
4b900473 19288
a90ef4bf
JM
19289
19290.PHONY: all-gprof maybe-all-gprof
19291maybe-all-gprof:
19292@if gcc-bootstrap
19293all-gprof: stage_current
19294@endif gcc-bootstrap
19295@if gprof
19296TARGET-gprof=all
19297maybe-all-gprof: all-gprof
19298all-gprof: configure-gprof
19299 @: $(MAKE); $(unstage)
4b900473
PB
19300 @r=`${PWD_COMMAND}`; export r; \
19301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 19302 $(HOST_EXPORTS) \
a90ef4bf 19303 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 19304 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
19305 $(TARGET-gprof))
19306@endif gprof
4b900473
PB
19307
19308
4b900473 19309
4b900473 19310
a90ef4bf
JM
19311.PHONY: check-gprof maybe-check-gprof
19312maybe-check-gprof:
19313@if gprof
19314maybe-check-gprof: check-gprof
4b900473 19315
a90ef4bf
JM
19316check-gprof:
19317 @: $(MAKE); $(unstage)
4b900473
PB
19318 @r=`${PWD_COMMAND}`; export r; \
19319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19320 $(HOST_EXPORTS) \
a90ef4bf
JM
19321 (cd $(HOST_SUBDIR)/gprof && \
19322 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 19323
a90ef4bf 19324@endif gprof
4b900473 19325
a90ef4bf
JM
19326.PHONY: install-gprof maybe-install-gprof
19327maybe-install-gprof:
19328@if gprof
19329maybe-install-gprof: install-gprof
4b900473 19330
a90ef4bf
JM
19331install-gprof: installdirs
19332 @: $(MAKE); $(unstage)
4b900473
PB
19333 @r=`${PWD_COMMAND}`; export r; \
19334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19335 $(HOST_EXPORTS) \
a90ef4bf
JM
19336 (cd $(HOST_SUBDIR)/gprof && \
19337 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 19338
a90ef4bf 19339@endif gprof
4b900473 19340
a90ef4bf
JM
19341.PHONY: install-strip-gprof maybe-install-strip-gprof
19342maybe-install-strip-gprof:
19343@if gprof
19344maybe-install-strip-gprof: install-strip-gprof
4b900473 19345
a90ef4bf 19346install-strip-gprof: installdirs
4b900473
PB
19347 @: $(MAKE); $(unstage)
19348 @r=`${PWD_COMMAND}`; export r; \
19349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19350 $(HOST_EXPORTS) \
a90ef4bf
JM
19351 (cd $(HOST_SUBDIR)/gprof && \
19352 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 19353
a90ef4bf 19354@endif gprof
9b980aa1 19355
4b900473
PB
19356# Other targets (info, dvi, pdf, etc.)
19357
a90ef4bf
JM
19358.PHONY: maybe-info-gprof info-gprof
19359maybe-info-gprof:
19360@if gprof
19361maybe-info-gprof: info-gprof
4b900473 19362
a90ef4bf
JM
19363info-gprof: \
19364 configure-gprof
19365 @: $(MAKE); $(unstage)
19366 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
19367 r=`${PWD_COMMAND}`; export r; \
19368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19369 $(HOST_EXPORTS) \
19370 for flag in $(EXTRA_HOST_FLAGS) ; do \
19371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19372 done; \
22121df0 19373 echo "Doing info in gprof"; \
a90ef4bf 19374 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
19375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19377 "RANLIB=$${RANLIB}" \
0c24b341 19378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19379 info) \
19380 || exit 1
19381
a90ef4bf 19382@endif gprof
4b900473 19383
a90ef4bf
JM
19384.PHONY: maybe-dvi-gprof dvi-gprof
19385maybe-dvi-gprof:
19386@if gprof
19387maybe-dvi-gprof: dvi-gprof
4b900473 19388
a90ef4bf
JM
19389dvi-gprof: \
19390 configure-gprof
19391 @: $(MAKE); $(unstage)
19392 @[ -f ./gprof/Makefile ] || exit 0; \
19393 r=`${PWD_COMMAND}`; export r; \
19394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19395 $(HOST_EXPORTS) \
4b900473
PB
19396 for flag in $(EXTRA_HOST_FLAGS) ; do \
19397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19398 done; \
22121df0 19399 echo "Doing dvi in gprof"; \
a90ef4bf 19400 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
19401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19403 "RANLIB=$${RANLIB}" \
0c24b341 19404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19405 dvi) \
19406 || exit 1
19407
a90ef4bf 19408@endif gprof
4b900473 19409
a90ef4bf
JM
19410.PHONY: maybe-pdf-gprof pdf-gprof
19411maybe-pdf-gprof:
19412@if gprof
19413maybe-pdf-gprof: pdf-gprof
4b900473 19414
a90ef4bf
JM
19415pdf-gprof: \
19416 configure-gprof
19417 @: $(MAKE); $(unstage)
19418 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
19419 r=`${PWD_COMMAND}`; export r; \
19420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19421 $(HOST_EXPORTS) \
19422 for flag in $(EXTRA_HOST_FLAGS) ; do \
19423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19424 done; \
22121df0 19425 echo "Doing pdf in gprof"; \
a90ef4bf 19426 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
19427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19429 "RANLIB=$${RANLIB}" \
0c24b341 19430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19431 pdf) \
19432 || exit 1
19433
a90ef4bf 19434@endif gprof
4b900473 19435
a90ef4bf
JM
19436.PHONY: maybe-html-gprof html-gprof
19437maybe-html-gprof:
19438@if gprof
19439maybe-html-gprof: html-gprof
4b900473 19440
a90ef4bf
JM
19441html-gprof: \
19442 configure-gprof
19443 @: $(MAKE); $(unstage)
19444 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
19445 r=`${PWD_COMMAND}`; export r; \
19446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19447 $(HOST_EXPORTS) \
19448 for flag in $(EXTRA_HOST_FLAGS) ; do \
19449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19450 done; \
22121df0 19451 echo "Doing html in gprof"; \
a90ef4bf 19452 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
19453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19455 "RANLIB=$${RANLIB}" \
0c24b341 19456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19457 html) \
19458 || exit 1
19459
a90ef4bf 19460@endif gprof
4b900473 19461
a90ef4bf
JM
19462.PHONY: maybe-TAGS-gprof TAGS-gprof
19463maybe-TAGS-gprof:
19464@if gprof
19465maybe-TAGS-gprof: TAGS-gprof
4b900473 19466
a90ef4bf
JM
19467TAGS-gprof: \
19468 configure-gprof
19469 @: $(MAKE); $(unstage)
19470 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
19471 r=`${PWD_COMMAND}`; export r; \
19472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19473 $(HOST_EXPORTS) \
19474 for flag in $(EXTRA_HOST_FLAGS) ; do \
19475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19476 done; \
22121df0 19477 echo "Doing TAGS in gprof"; \
a90ef4bf 19478 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
19479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19481 "RANLIB=$${RANLIB}" \
0c24b341 19482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19483 TAGS) \
19484 || exit 1
19485
a90ef4bf 19486@endif gprof
4b900473 19487
a90ef4bf
JM
19488.PHONY: maybe-install-info-gprof install-info-gprof
19489maybe-install-info-gprof:
19490@if gprof
19491maybe-install-info-gprof: install-info-gprof
4b900473 19492
a90ef4bf
JM
19493install-info-gprof: \
19494 configure-gprof \
19495 info-gprof
19496 @: $(MAKE); $(unstage)
19497 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
19498 r=`${PWD_COMMAND}`; export r; \
19499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19500 $(HOST_EXPORTS) \
19501 for flag in $(EXTRA_HOST_FLAGS) ; do \
19502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19503 done; \
22121df0 19504 echo "Doing install-info in gprof"; \
a90ef4bf 19505 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
19506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19508 "RANLIB=$${RANLIB}" \
0c24b341 19509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19510 install-info) \
19511 || exit 1
19512
a90ef4bf 19513@endif gprof
4b900473 19514
a90ef4bf
JM
19515.PHONY: maybe-install-pdf-gprof install-pdf-gprof
19516maybe-install-pdf-gprof:
19517@if gprof
19518maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 19519
a90ef4bf
JM
19520install-pdf-gprof: \
19521 configure-gprof \
19522 pdf-gprof
19523 @: $(MAKE); $(unstage)
19524 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
19525 r=`${PWD_COMMAND}`; export r; \
19526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19527 $(HOST_EXPORTS) \
19528 for flag in $(EXTRA_HOST_FLAGS) ; do \
19529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19530 done; \
22121df0 19531 echo "Doing install-pdf in gprof"; \
a90ef4bf 19532 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
19533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19535 "RANLIB=$${RANLIB}" \
0c24b341 19536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
19537 install-pdf) \
19538 || exit 1
19539
a90ef4bf 19540@endif gprof
a3ca38d2 19541
a90ef4bf
JM
19542.PHONY: maybe-install-html-gprof install-html-gprof
19543maybe-install-html-gprof:
19544@if gprof
19545maybe-install-html-gprof: install-html-gprof
4b900473 19546
a90ef4bf
JM
19547install-html-gprof: \
19548 configure-gprof \
19549 html-gprof
19550 @: $(MAKE); $(unstage)
19551 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
19552 r=`${PWD_COMMAND}`; export r; \
19553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19554 $(HOST_EXPORTS) \
19555 for flag in $(EXTRA_HOST_FLAGS) ; do \
19556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19557 done; \
22121df0 19558 echo "Doing install-html in gprof"; \
a90ef4bf 19559 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
19560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19562 "RANLIB=$${RANLIB}" \
0c24b341 19563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19564 install-html) \
19565 || exit 1
19566
a90ef4bf 19567@endif gprof
4b900473 19568
a90ef4bf
JM
19569.PHONY: maybe-installcheck-gprof installcheck-gprof
19570maybe-installcheck-gprof:
19571@if gprof
19572maybe-installcheck-gprof: installcheck-gprof
4b900473 19573
a90ef4bf
JM
19574installcheck-gprof: \
19575 configure-gprof
19576 @: $(MAKE); $(unstage)
19577 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
19578 r=`${PWD_COMMAND}`; export r; \
19579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19580 $(HOST_EXPORTS) \
19581 for flag in $(EXTRA_HOST_FLAGS) ; do \
19582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19583 done; \
22121df0 19584 echo "Doing installcheck in gprof"; \
a90ef4bf 19585 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
19586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19588 "RANLIB=$${RANLIB}" \
19589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19590 installcheck) \
19591 || exit 1
19592
a90ef4bf 19593@endif gprof
e28c595f 19594
a90ef4bf
JM
19595.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
19596maybe-mostlyclean-gprof:
19597@if gprof
19598maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 19599
a90ef4bf
JM
19600mostlyclean-gprof:
19601 @: $(MAKE); $(unstage)
19602 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
19603 r=`${PWD_COMMAND}`; export r; \
19604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19605 $(HOST_EXPORTS) \
19606 for flag in $(EXTRA_HOST_FLAGS) ; do \
19607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19608 done; \
22121df0 19609 echo "Doing mostlyclean in gprof"; \
a90ef4bf 19610 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
19611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19613 "RANLIB=$${RANLIB}" \
19614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19615 mostlyclean) \
19616 || exit 1
19617
a90ef4bf 19618@endif gprof
e28c595f 19619
a90ef4bf
JM
19620.PHONY: maybe-clean-gprof clean-gprof
19621maybe-clean-gprof:
19622@if gprof
19623maybe-clean-gprof: clean-gprof
e28c595f 19624
a90ef4bf
JM
19625clean-gprof:
19626 @: $(MAKE); $(unstage)
19627 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
19628 r=`${PWD_COMMAND}`; export r; \
19629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19630 $(HOST_EXPORTS) \
19631 for flag in $(EXTRA_HOST_FLAGS) ; do \
19632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19633 done; \
22121df0 19634 echo "Doing clean in gprof"; \
a90ef4bf 19635 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
19636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19638 "RANLIB=$${RANLIB}" \
19639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19640 clean) \
19641 || exit 1
19642
a90ef4bf 19643@endif gprof
e28c595f 19644
a90ef4bf
JM
19645.PHONY: maybe-distclean-gprof distclean-gprof
19646maybe-distclean-gprof:
19647@if gprof
19648maybe-distclean-gprof: distclean-gprof
e28c595f 19649
a90ef4bf
JM
19650distclean-gprof:
19651 @: $(MAKE); $(unstage)
19652 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
19653 r=`${PWD_COMMAND}`; export r; \
19654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19655 $(HOST_EXPORTS) \
19656 for flag in $(EXTRA_HOST_FLAGS) ; do \
19657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19658 done; \
22121df0 19659 echo "Doing distclean in gprof"; \
a90ef4bf 19660 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
19661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19663 "RANLIB=$${RANLIB}" \
19664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19665 distclean) \
19666 || exit 1
19667
a90ef4bf 19668@endif gprof
e28c595f 19669
a90ef4bf
JM
19670.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
19671maybe-maintainer-clean-gprof:
19672@if gprof
19673maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 19674
a90ef4bf
JM
19675maintainer-clean-gprof:
19676 @: $(MAKE); $(unstage)
19677 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
19678 r=`${PWD_COMMAND}`; export r; \
19679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19680 $(HOST_EXPORTS) \
19681 for flag in $(EXTRA_HOST_FLAGS) ; do \
19682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19683 done; \
22121df0 19684 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 19685 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
19686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19688 "RANLIB=$${RANLIB}" \
19689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19690 maintainer-clean) \
19691 || exit 1
19692
a90ef4bf 19693@endif gprof
e28c595f
JM
19694
19695
19696
a90ef4bf
JM
19697.PHONY: configure-intl maybe-configure-intl
19698maybe-configure-intl:
e28c595f 19699@if gcc-bootstrap
a90ef4bf 19700configure-intl: stage_current
e28c595f 19701@endif gcc-bootstrap
a90ef4bf
JM
19702@if intl
19703maybe-configure-intl: configure-intl
19704configure-intl:
e28c595f
JM
19705 @r=`${PWD_COMMAND}`; export r; \
19706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 19707 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 19708 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 19709 $(HOST_EXPORTS) \
a90ef4bf
JM
19710 echo Configuring in $(HOST_SUBDIR)/intl; \
19711 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
19712 case $(srcdir) in \
19713 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 19714 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
19715 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19716 esac; \
1b6c0831
L
19717 module_srcdir=intl; \
19718 $(SHELL) \
19719 $$s/$$module_srcdir/configure \
19720 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 19721 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19722 --target=${target_alias} \
e28c595f 19723 || exit 1
a90ef4bf 19724@endif intl
e28c595f
JM
19725
19726
19727
a90ef4bf
JM
19728.PHONY: configure-stage1-intl maybe-configure-stage1-intl
19729maybe-configure-stage1-intl:
19730@if intl-bootstrap
19731maybe-configure-stage1-intl: configure-stage1-intl
19732configure-stage1-intl:
e28c595f 19733 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 19734 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
19735 @r=`${PWD_COMMAND}`; export r; \
19736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19737 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 19738 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 19739 $(HOST_EXPORTS) \
e28c595f 19740 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
19741 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19742 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19743 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
19744 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 19745 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
19746 case $(srcdir) in \
19747 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 19748 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
19749 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19750 esac; \
1b6c0831
L
19751 module_srcdir=intl; \
19752 $(SHELL) $$s/$$module_srcdir/configure \
19753 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 19754 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19755 --target=${target_alias} \
19756 \
a90ef4bf
JM
19757 $(STAGE1_CONFIGURE_FLAGS)
19758@endif intl-bootstrap
e28c595f 19759
a90ef4bf
JM
19760.PHONY: configure-stage2-intl maybe-configure-stage2-intl
19761maybe-configure-stage2-intl:
19762@if intl-bootstrap
19763maybe-configure-stage2-intl: configure-stage2-intl
19764configure-stage2-intl:
e28c595f 19765 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 19766 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
19767 @r=`${PWD_COMMAND}`; export r; \
19768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19769 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 19770 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 19771 $(HOST_EXPORTS) \
1b05fbbd 19772 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 19773 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
19774 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19775 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19776 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
19777 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 19778 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
19779 case $(srcdir) in \
19780 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 19781 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
19782 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19783 esac; \
1b6c0831
L
19784 module_srcdir=intl; \
19785 $(SHELL) $$s/$$module_srcdir/configure \
19786 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 19787 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19788 --target=${target_alias} \
22121df0 19789 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
19790 $(STAGE2_CONFIGURE_FLAGS)
19791@endif intl-bootstrap
e28c595f 19792
a90ef4bf
JM
19793.PHONY: configure-stage3-intl maybe-configure-stage3-intl
19794maybe-configure-stage3-intl:
19795@if intl-bootstrap
19796maybe-configure-stage3-intl: configure-stage3-intl
19797configure-stage3-intl:
e28c595f 19798 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 19799 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
19800 @r=`${PWD_COMMAND}`; export r; \
19801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19802 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 19803 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 19804 $(HOST_EXPORTS) \
1b05fbbd 19805 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 19806 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
19807 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19808 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19809 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
19810 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 19811 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
19812 case $(srcdir) in \
19813 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 19814 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
19815 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19816 esac; \
1b6c0831
L
19817 module_srcdir=intl; \
19818 $(SHELL) $$s/$$module_srcdir/configure \
19819 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 19820 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19821 --target=${target_alias} \
22121df0 19822 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
19823 $(STAGE3_CONFIGURE_FLAGS)
19824@endif intl-bootstrap
e28c595f 19825
a90ef4bf
JM
19826.PHONY: configure-stage4-intl maybe-configure-stage4-intl
19827maybe-configure-stage4-intl:
19828@if intl-bootstrap
19829maybe-configure-stage4-intl: configure-stage4-intl
19830configure-stage4-intl:
e28c595f 19831 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 19832 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
19833 @r=`${PWD_COMMAND}`; export r; \
19834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19835 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 19836 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 19837 $(HOST_EXPORTS) \
1b05fbbd 19838 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 19839 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
19840 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19841 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19842 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
19843 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 19844 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
19845 case $(srcdir) in \
19846 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 19847 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
19848 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19849 esac; \
1b6c0831
L
19850 module_srcdir=intl; \
19851 $(SHELL) $$s/$$module_srcdir/configure \
19852 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 19853 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19854 --target=${target_alias} \
22121df0 19855 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
19856 $(STAGE4_CONFIGURE_FLAGS)
19857@endif intl-bootstrap
e28c595f 19858
a90ef4bf
JM
19859.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
19860maybe-configure-stageprofile-intl:
19861@if intl-bootstrap
19862maybe-configure-stageprofile-intl: configure-stageprofile-intl
19863configure-stageprofile-intl:
e28c595f 19864 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 19865 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
19866 @r=`${PWD_COMMAND}`; export r; \
19867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19868 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 19869 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 19870 $(HOST_EXPORTS) \
1b05fbbd
AO
19871 $(POSTSTAGE1_HOST_EXPORTS) \
19872 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
19873 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19874 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19875 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
19876 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 19877 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
19878 case $(srcdir) in \
19879 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 19880 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
19881 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19882 esac; \
1b6c0831
L
19883 module_srcdir=intl; \
19884 $(SHELL) $$s/$$module_srcdir/configure \
19885 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 19886 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19887 --target=${target_alias} \
22121df0 19888 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
19889 $(STAGEprofile_CONFIGURE_FLAGS)
19890@endif intl-bootstrap
e28c595f 19891
f948b2de
NC
19892.PHONY: configure-stagetrain-intl maybe-configure-stagetrain-intl
19893maybe-configure-stagetrain-intl:
19894@if intl-bootstrap
19895maybe-configure-stagetrain-intl: configure-stagetrain-intl
19896configure-stagetrain-intl:
19897 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
19898 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
19899 @r=`${PWD_COMMAND}`; export r; \
19900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19901 TFLAGS="$(STAGEtrain_TFLAGS)"; \
19902 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
19903 $(HOST_EXPORTS) \
19904 $(POSTSTAGE1_HOST_EXPORTS) \
19905 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
19906 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
19907 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
19908 echo Configuring stage train in $(HOST_SUBDIR)/intl; \
19909 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
19910 cd $(HOST_SUBDIR)/intl || exit 1; \
19911 case $(srcdir) in \
19912 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19913 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
19914 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19915 esac; \
19916 module_srcdir=intl; \
19917 $(SHELL) $$s/$$module_srcdir/configure \
19918 --srcdir=$${topdir}/$$module_srcdir \
19919 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19920 --target=${target_alias} \
19921 --with-build-libsubdir=$(HOST_SUBDIR) \
19922 $(STAGEtrain_CONFIGURE_FLAGS)
19923@endif intl-bootstrap
19924
a90ef4bf
JM
19925.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
19926maybe-configure-stagefeedback-intl:
19927@if intl-bootstrap
19928maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
19929configure-stagefeedback-intl:
e28c595f 19930 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 19931 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
19932 @r=`${PWD_COMMAND}`; export r; \
19933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19934 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 19935 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 19936 $(HOST_EXPORTS) \
1b05fbbd
AO
19937 $(POSTSTAGE1_HOST_EXPORTS) \
19938 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
19939 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19940 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19941 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
19942 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 19943 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
19944 case $(srcdir) in \
19945 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 19946 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
19947 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19948 esac; \
1b6c0831
L
19949 module_srcdir=intl; \
19950 $(SHELL) $$s/$$module_srcdir/configure \
19951 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 19952 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19953 --target=${target_alias} \
22121df0 19954 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
19955 $(STAGEfeedback_CONFIGURE_FLAGS)
19956@endif intl-bootstrap
e28c595f 19957
f948b2de
NC
19958.PHONY: configure-stageautoprofile-intl maybe-configure-stageautoprofile-intl
19959maybe-configure-stageautoprofile-intl:
19960@if intl-bootstrap
19961maybe-configure-stageautoprofile-intl: configure-stageautoprofile-intl
19962configure-stageautoprofile-intl:
19963 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
19964 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
19965 @r=`${PWD_COMMAND}`; export r; \
19966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19967 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
19968 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
19969 $(HOST_EXPORTS) \
19970 $(POSTSTAGE1_HOST_EXPORTS) \
19971 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
19972 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
19973 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
19974 echo Configuring stage autoprofile in $(HOST_SUBDIR)/intl; \
19975 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
19976 cd $(HOST_SUBDIR)/intl || exit 1; \
19977 case $(srcdir) in \
19978 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19979 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
19980 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19981 esac; \
19982 module_srcdir=intl; \
19983 $(SHELL) $$s/$$module_srcdir/configure \
19984 --srcdir=$${topdir}/$$module_srcdir \
19985 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
19986 --target=${target_alias} \
19987 --with-build-libsubdir=$(HOST_SUBDIR) \
19988 $(STAGEautoprofile_CONFIGURE_FLAGS)
19989@endif intl-bootstrap
19990
19991.PHONY: configure-stageautofeedback-intl maybe-configure-stageautofeedback-intl
19992maybe-configure-stageautofeedback-intl:
19993@if intl-bootstrap
19994maybe-configure-stageautofeedback-intl: configure-stageautofeedback-intl
19995configure-stageautofeedback-intl:
19996 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
19997 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
19998 @r=`${PWD_COMMAND}`; export r; \
19999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20000 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
20001 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
20002 $(HOST_EXPORTS) \
20003 $(POSTSTAGE1_HOST_EXPORTS) \
20004 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
20005 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
20006 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
20007 echo Configuring stage autofeedback in $(HOST_SUBDIR)/intl; \
20008 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
20009 cd $(HOST_SUBDIR)/intl || exit 1; \
20010 case $(srcdir) in \
20011 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20012 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
20013 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20014 esac; \
20015 module_srcdir=intl; \
20016 $(SHELL) $$s/$$module_srcdir/configure \
20017 --srcdir=$${topdir}/$$module_srcdir \
20018 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
20019 --target=${target_alias} \
20020 --with-build-libsubdir=$(HOST_SUBDIR) \
20021 $(STAGEautofeedback_CONFIGURE_FLAGS)
20022@endif intl-bootstrap
20023
e28c595f
JM
20024
20025
20026
20027
a90ef4bf
JM
20028.PHONY: all-intl maybe-all-intl
20029maybe-all-intl:
e28c595f 20030@if gcc-bootstrap
a90ef4bf 20031all-intl: stage_current
e28c595f 20032@endif gcc-bootstrap
a90ef4bf
JM
20033@if intl
20034TARGET-intl=all
20035maybe-all-intl: all-intl
20036all-intl: configure-intl
e28c595f
JM
20037 @r=`${PWD_COMMAND}`; export r; \
20038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 20039 $(HOST_EXPORTS) \
a90ef4bf 20040 (cd $(HOST_SUBDIR)/intl && \
b3676d82 20041 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20042 $(TARGET-intl))
20043@endif intl
e28c595f
JM
20044
20045
20046
a90ef4bf
JM
20047.PHONY: all-stage1-intl maybe-all-stage1-intl
20048.PHONY: clean-stage1-intl maybe-clean-stage1-intl
20049maybe-all-stage1-intl:
20050maybe-clean-stage1-intl:
20051@if intl-bootstrap
20052maybe-all-stage1-intl: all-stage1-intl
20053all-stage1: all-stage1-intl
20054TARGET-stage1-intl = $(TARGET-intl)
20055all-stage1-intl: configure-stage1-intl
e28c595f
JM
20056 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20057 @r=`${PWD_COMMAND}`; export r; \
20058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20059 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 20060 $(HOST_EXPORTS) \
a90ef4bf 20061 cd $(HOST_SUBDIR)/intl && \
05a13254 20062 \
e28c595f 20063 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20064 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 20065 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
1f53ca9a 20066 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20067 LIBCFLAGS="$(LIBCFLAGS)" \
20068 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20069 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20070 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20071 $(EXTRA_HOST_FLAGS) \
20072 $(STAGE1_FLAGS_TO_PASS) \
05a13254 20073 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20074 $(TARGET-stage1-intl)
e28c595f 20075
a90ef4bf
JM
20076maybe-clean-stage1-intl: clean-stage1-intl
20077clean-stage1: clean-stage1-intl
20078clean-stage1-intl:
e28c595f 20079 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20080 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 20081 else \
a90ef4bf 20082 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
20083 $(MAKE) stage1-start; \
20084 fi; \
a90ef4bf 20085 cd $(HOST_SUBDIR)/intl && \
e28c595f 20086 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20087 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20088@endif intl-bootstrap
e28c595f
JM
20089
20090
a90ef4bf
JM
20091.PHONY: all-stage2-intl maybe-all-stage2-intl
20092.PHONY: clean-stage2-intl maybe-clean-stage2-intl
20093maybe-all-stage2-intl:
20094maybe-clean-stage2-intl:
20095@if intl-bootstrap
20096maybe-all-stage2-intl: all-stage2-intl
20097all-stage2: all-stage2-intl
20098TARGET-stage2-intl = $(TARGET-intl)
20099all-stage2-intl: configure-stage2-intl
e28c595f
JM
20100 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20101 @r=`${PWD_COMMAND}`; export r; \
20102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20103 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 20104 $(HOST_EXPORTS) \
1f53ca9a 20105 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 20106 cd $(HOST_SUBDIR)/intl && \
05a13254 20107 \
e28c595f 20108 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20109 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 20110 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
1f53ca9a 20111 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20112 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20113 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20114 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20115 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20116 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20117 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20118 $(TARGET-stage2-intl)
e28c595f 20119
a90ef4bf
JM
20120maybe-clean-stage2-intl: clean-stage2-intl
20121clean-stage2: clean-stage2-intl
20122clean-stage2-intl:
e28c595f 20123 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20124 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 20125 else \
a90ef4bf 20126 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
20127 $(MAKE) stage2-start; \
20128 fi; \
a90ef4bf 20129 cd $(HOST_SUBDIR)/intl && \
b3676d82 20130 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20131@endif intl-bootstrap
e28c595f
JM
20132
20133
a90ef4bf
JM
20134.PHONY: all-stage3-intl maybe-all-stage3-intl
20135.PHONY: clean-stage3-intl maybe-clean-stage3-intl
20136maybe-all-stage3-intl:
20137maybe-clean-stage3-intl:
20138@if intl-bootstrap
20139maybe-all-stage3-intl: all-stage3-intl
20140all-stage3: all-stage3-intl
20141TARGET-stage3-intl = $(TARGET-intl)
20142all-stage3-intl: configure-stage3-intl
e28c595f
JM
20143 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20144 @r=`${PWD_COMMAND}`; export r; \
20145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20146 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 20147 $(HOST_EXPORTS) \
1f53ca9a 20148 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 20149 cd $(HOST_SUBDIR)/intl && \
05a13254 20150 \
e28c595f 20151 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20152 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 20153 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
1f53ca9a 20154 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20155 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20156 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20157 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20158 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20159 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20160 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20161 $(TARGET-stage3-intl)
e28c595f 20162
a90ef4bf
JM
20163maybe-clean-stage3-intl: clean-stage3-intl
20164clean-stage3: clean-stage3-intl
20165clean-stage3-intl:
e28c595f 20166 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20167 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 20168 else \
a90ef4bf 20169 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
20170 $(MAKE) stage3-start; \
20171 fi; \
a90ef4bf 20172 cd $(HOST_SUBDIR)/intl && \
b3676d82 20173 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20174@endif intl-bootstrap
e28c595f
JM
20175
20176
a90ef4bf
JM
20177.PHONY: all-stage4-intl maybe-all-stage4-intl
20178.PHONY: clean-stage4-intl maybe-clean-stage4-intl
20179maybe-all-stage4-intl:
20180maybe-clean-stage4-intl:
20181@if intl-bootstrap
20182maybe-all-stage4-intl: all-stage4-intl
20183all-stage4: all-stage4-intl
20184TARGET-stage4-intl = $(TARGET-intl)
20185all-stage4-intl: configure-stage4-intl
e28c595f
JM
20186 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20187 @r=`${PWD_COMMAND}`; export r; \
20188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20189 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 20190 $(HOST_EXPORTS) \
1f53ca9a 20191 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 20192 cd $(HOST_SUBDIR)/intl && \
05a13254 20193 \
e28c595f 20194 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20195 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 20196 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
1f53ca9a 20197 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 20198 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20199 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20200 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20201 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20202 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20203 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20204 $(TARGET-stage4-intl)
e28c595f 20205
a90ef4bf
JM
20206maybe-clean-stage4-intl: clean-stage4-intl
20207clean-stage4: clean-stage4-intl
20208clean-stage4-intl:
e28c595f 20209 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20210 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 20211 else \
a90ef4bf 20212 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
20213 $(MAKE) stage4-start; \
20214 fi; \
a90ef4bf 20215 cd $(HOST_SUBDIR)/intl && \
b3676d82 20216 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20217@endif intl-bootstrap
e28c595f
JM
20218
20219
a90ef4bf
JM
20220.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
20221.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
20222maybe-all-stageprofile-intl:
20223maybe-clean-stageprofile-intl:
20224@if intl-bootstrap
20225maybe-all-stageprofile-intl: all-stageprofile-intl
20226all-stageprofile: all-stageprofile-intl
20227TARGET-stageprofile-intl = $(TARGET-intl)
20228all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
20229 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20230 @r=`${PWD_COMMAND}`; export r; \
20231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20232 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 20233 $(HOST_EXPORTS) \
1f53ca9a 20234 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 20235 cd $(HOST_SUBDIR)/intl && \
05a13254 20236 \
e28c595f 20237 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20238 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 20239 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
1f53ca9a 20240 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20241 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20242 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20243 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20244 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20245 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20246 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20247 $(TARGET-stageprofile-intl)
e28c595f 20248
a90ef4bf
JM
20249maybe-clean-stageprofile-intl: clean-stageprofile-intl
20250clean-stageprofile: clean-stageprofile-intl
20251clean-stageprofile-intl:
e28c595f 20252 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20253 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 20254 else \
a90ef4bf 20255 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
20256 $(MAKE) stageprofile-start; \
20257 fi; \
a90ef4bf 20258 cd $(HOST_SUBDIR)/intl && \
b3676d82 20259 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20260@endif intl-bootstrap
e28c595f
JM
20261
20262
f948b2de
NC
20263.PHONY: all-stagetrain-intl maybe-all-stagetrain-intl
20264.PHONY: clean-stagetrain-intl maybe-clean-stagetrain-intl
20265maybe-all-stagetrain-intl:
20266maybe-clean-stagetrain-intl:
20267@if intl-bootstrap
20268maybe-all-stagetrain-intl: all-stagetrain-intl
20269all-stagetrain: all-stagetrain-intl
20270TARGET-stagetrain-intl = $(TARGET-intl)
20271all-stagetrain-intl: configure-stagetrain-intl
20272 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
20273 @r=`${PWD_COMMAND}`; export r; \
20274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20275 TFLAGS="$(STAGEtrain_TFLAGS)"; \
20276 $(HOST_EXPORTS) \
20277 $(POSTSTAGE1_HOST_EXPORTS) \
20278 cd $(HOST_SUBDIR)/intl && \
20279 \
20280 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20281 CFLAGS="$(STAGEtrain_CFLAGS)" \
20282 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
20283 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
20284 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
20285 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20286 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20287 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20288 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20289 TFLAGS="$(STAGEtrain_TFLAGS)" \
20290 $(TARGET-stagetrain-intl)
20291
20292maybe-clean-stagetrain-intl: clean-stagetrain-intl
20293clean-stagetrain: clean-stagetrain-intl
20294clean-stagetrain-intl:
20295 @if [ $(current_stage) = stagetrain ]; then \
20296 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
20297 else \
20298 [ -f $(HOST_SUBDIR)/stagetrain-intl/Makefile ] || exit 0; \
20299 $(MAKE) stagetrain-start; \
20300 fi; \
20301 cd $(HOST_SUBDIR)/intl && \
20302 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
20303@endif intl-bootstrap
20304
20305
a90ef4bf
JM
20306.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
20307.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
20308maybe-all-stagefeedback-intl:
20309maybe-clean-stagefeedback-intl:
20310@if intl-bootstrap
20311maybe-all-stagefeedback-intl: all-stagefeedback-intl
20312all-stagefeedback: all-stagefeedback-intl
20313TARGET-stagefeedback-intl = $(TARGET-intl)
20314all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
20315 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20316 @r=`${PWD_COMMAND}`; export r; \
20317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20318 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 20319 $(HOST_EXPORTS) \
1f53ca9a 20320 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 20321 cd $(HOST_SUBDIR)/intl && \
05a13254 20322 \
e28c595f 20323 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20324 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 20325 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
1f53ca9a 20326 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20327 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20328 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20329 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20330 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20331 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20332 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20333 $(TARGET-stagefeedback-intl)
e28c595f 20334
a90ef4bf
JM
20335maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
20336clean-stagefeedback: clean-stagefeedback-intl
20337clean-stagefeedback-intl:
e28c595f 20338 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20339 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 20340 else \
a90ef4bf 20341 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
20342 $(MAKE) stagefeedback-start; \
20343 fi; \
a90ef4bf 20344 cd $(HOST_SUBDIR)/intl && \
b3676d82 20345 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20346@endif intl-bootstrap
e28c595f
JM
20347
20348
f948b2de
NC
20349.PHONY: all-stageautoprofile-intl maybe-all-stageautoprofile-intl
20350.PHONY: clean-stageautoprofile-intl maybe-clean-stageautoprofile-intl
20351maybe-all-stageautoprofile-intl:
20352maybe-clean-stageautoprofile-intl:
20353@if intl-bootstrap
20354maybe-all-stageautoprofile-intl: all-stageautoprofile-intl
20355all-stageautoprofile: all-stageautoprofile-intl
20356TARGET-stageautoprofile-intl = $(TARGET-intl)
20357all-stageautoprofile-intl: configure-stageautoprofile-intl
20358 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
20359 @r=`${PWD_COMMAND}`; export r; \
20360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20361 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
20362 $(HOST_EXPORTS) \
20363 $(POSTSTAGE1_HOST_EXPORTS) \
20364 cd $(HOST_SUBDIR)/intl && \
20365 $$s/gcc/config/i386/$(AUTO_PROFILE) \
20366 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20367 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
20368 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
20369 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
20370 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
20371 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20372 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20373 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20374 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20375 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
20376 $(TARGET-stageautoprofile-intl)
20377
20378maybe-clean-stageautoprofile-intl: clean-stageautoprofile-intl
20379clean-stageautoprofile: clean-stageautoprofile-intl
20380clean-stageautoprofile-intl:
20381 @if [ $(current_stage) = stageautoprofile ]; then \
20382 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
20383 else \
20384 [ -f $(HOST_SUBDIR)/stageautoprofile-intl/Makefile ] || exit 0; \
20385 $(MAKE) stageautoprofile-start; \
20386 fi; \
20387 cd $(HOST_SUBDIR)/intl && \
20388 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
20389@endif intl-bootstrap
20390
20391
20392.PHONY: all-stageautofeedback-intl maybe-all-stageautofeedback-intl
20393.PHONY: clean-stageautofeedback-intl maybe-clean-stageautofeedback-intl
20394maybe-all-stageautofeedback-intl:
20395maybe-clean-stageautofeedback-intl:
20396@if intl-bootstrap
20397maybe-all-stageautofeedback-intl: all-stageautofeedback-intl
20398all-stageautofeedback: all-stageautofeedback-intl
20399TARGET-stageautofeedback-intl = $(TARGET-intl)
20400all-stageautofeedback-intl: configure-stageautofeedback-intl
20401 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
20402 @r=`${PWD_COMMAND}`; export r; \
20403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20404 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
20405 $(HOST_EXPORTS) \
20406 $(POSTSTAGE1_HOST_EXPORTS) \
20407 cd $(HOST_SUBDIR)/intl && \
20408 \
20409 $(MAKE) $(BASE_FLAGS_TO_PASS) \
20410 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
20411 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
20412 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
20413 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
20414 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20415 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20416 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
20417 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20418 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
20419 $(TARGET-stageautofeedback-intl)
20420
20421maybe-clean-stageautofeedback-intl: clean-stageautofeedback-intl
20422clean-stageautofeedback: clean-stageautofeedback-intl
20423clean-stageautofeedback-intl:
20424 @if [ $(current_stage) = stageautofeedback ]; then \
20425 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
20426 else \
20427 [ -f $(HOST_SUBDIR)/stageautofeedback-intl/Makefile ] || exit 0; \
20428 $(MAKE) stageautofeedback-start; \
20429 fi; \
20430 cd $(HOST_SUBDIR)/intl && \
20431 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
20432@endif intl-bootstrap
20433
20434
e28c595f
JM
20435
20436
20437
a90ef4bf
JM
20438.PHONY: check-intl maybe-check-intl
20439maybe-check-intl:
20440@if intl
20441maybe-check-intl: check-intl
e28c595f 20442
a90ef4bf 20443check-intl:
e28c595f
JM
20444 @: $(MAKE); $(unstage)
20445 @r=`${PWD_COMMAND}`; export r; \
20446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20447 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20448 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 20449 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 20450
a90ef4bf 20451@endif intl
e28c595f 20452
a90ef4bf
JM
20453.PHONY: install-intl maybe-install-intl
20454maybe-install-intl:
20455@if intl
20456maybe-install-intl: install-intl
e28c595f 20457
a90ef4bf
JM
20458install-intl: installdirs
20459 @: $(MAKE); $(unstage)
20460 @r=`${PWD_COMMAND}`; export r; \
20461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20462 $(HOST_EXPORTS) \
20463 (cd $(HOST_SUBDIR)/intl && \
20464 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 20465
a90ef4bf 20466@endif intl
e28c595f 20467
a90ef4bf
JM
20468.PHONY: install-strip-intl maybe-install-strip-intl
20469maybe-install-strip-intl:
20470@if intl
20471maybe-install-strip-intl: install-strip-intl
9b980aa1 20472
a90ef4bf
JM
20473install-strip-intl: installdirs
20474 @: $(MAKE); $(unstage)
20475 @r=`${PWD_COMMAND}`; export r; \
20476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20477 $(HOST_EXPORTS) \
20478 (cd $(HOST_SUBDIR)/intl && \
20479 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20480
a90ef4bf 20481@endif intl
9b980aa1 20482
e28c595f
JM
20483# Other targets (info, dvi, pdf, etc.)
20484
a90ef4bf
JM
20485.PHONY: maybe-info-intl info-intl
20486maybe-info-intl:
20487@if intl
20488maybe-info-intl: info-intl
e28c595f 20489
a90ef4bf
JM
20490info-intl: \
20491 configure-intl
20492 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20493 r=`${PWD_COMMAND}`; export r; \
20494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20495 $(HOST_EXPORTS) \
20496 for flag in $(EXTRA_HOST_FLAGS) ; do \
20497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20498 done; \
22121df0 20499 echo "Doing info in intl"; \
a90ef4bf 20500 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20503 "RANLIB=$${RANLIB}" \
20504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20505 info) \
20506 || exit 1
20507
a90ef4bf 20508@endif intl
e28c595f 20509
a90ef4bf
JM
20510.PHONY: maybe-dvi-intl dvi-intl
20511maybe-dvi-intl:
20512@if intl
20513maybe-dvi-intl: dvi-intl
e28c595f 20514
a90ef4bf
JM
20515dvi-intl: \
20516 configure-intl
20517 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20518 r=`${PWD_COMMAND}`; export r; \
20519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20520 $(HOST_EXPORTS) \
20521 for flag in $(EXTRA_HOST_FLAGS) ; do \
20522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20523 done; \
22121df0 20524 echo "Doing dvi in intl"; \
a90ef4bf 20525 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20528 "RANLIB=$${RANLIB}" \
20529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20530 dvi) \
20531 || exit 1
20532
a90ef4bf 20533@endif intl
e28c595f 20534
a90ef4bf
JM
20535.PHONY: maybe-pdf-intl pdf-intl
20536maybe-pdf-intl:
20537@if intl
20538maybe-pdf-intl: pdf-intl
e28c595f 20539
a90ef4bf
JM
20540pdf-intl: \
20541 configure-intl
20542 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20543 r=`${PWD_COMMAND}`; export r; \
20544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20545 $(HOST_EXPORTS) \
20546 for flag in $(EXTRA_HOST_FLAGS) ; do \
20547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20548 done; \
22121df0 20549 echo "Doing pdf in intl"; \
a90ef4bf 20550 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20553 "RANLIB=$${RANLIB}" \
20554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20555 pdf) \
20556 || exit 1
20557
a90ef4bf 20558@endif intl
e28c595f 20559
a90ef4bf
JM
20560.PHONY: maybe-html-intl html-intl
20561maybe-html-intl:
20562@if intl
20563maybe-html-intl: html-intl
e28c595f 20564
a90ef4bf
JM
20565html-intl: \
20566 configure-intl
20567 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20568 r=`${PWD_COMMAND}`; export r; \
20569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20570 $(HOST_EXPORTS) \
20571 for flag in $(EXTRA_HOST_FLAGS) ; do \
20572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20573 done; \
22121df0 20574 echo "Doing html in intl"; \
a90ef4bf 20575 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20578 "RANLIB=$${RANLIB}" \
20579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20580 html) \
20581 || exit 1
20582
a90ef4bf 20583@endif intl
e28c595f 20584
a90ef4bf
JM
20585.PHONY: maybe-TAGS-intl TAGS-intl
20586maybe-TAGS-intl:
20587@if intl
20588maybe-TAGS-intl: TAGS-intl
e28c595f 20589
a90ef4bf
JM
20590TAGS-intl: \
20591 configure-intl
20592 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20593 r=`${PWD_COMMAND}`; export r; \
20594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20595 $(HOST_EXPORTS) \
20596 for flag in $(EXTRA_HOST_FLAGS) ; do \
20597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20598 done; \
22121df0 20599 echo "Doing TAGS in intl"; \
a90ef4bf 20600 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20603 "RANLIB=$${RANLIB}" \
20604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20605 TAGS) \
20606 || exit 1
20607
a90ef4bf 20608@endif intl
e28c595f 20609
a90ef4bf
JM
20610.PHONY: maybe-install-info-intl install-info-intl
20611maybe-install-info-intl:
20612@if intl
20613maybe-install-info-intl: install-info-intl
e28c595f 20614
a90ef4bf
JM
20615install-info-intl: \
20616 configure-intl \
20617 info-intl
20618 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20619 r=`${PWD_COMMAND}`; export r; \
20620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20621 $(HOST_EXPORTS) \
20622 for flag in $(EXTRA_HOST_FLAGS) ; do \
20623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20624 done; \
22121df0 20625 echo "Doing install-info in intl"; \
a90ef4bf 20626 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20629 "RANLIB=$${RANLIB}" \
20630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20631 install-info) \
20632 || exit 1
20633
a90ef4bf 20634@endif intl
e28c595f 20635
a90ef4bf
JM
20636.PHONY: maybe-install-pdf-intl install-pdf-intl
20637maybe-install-pdf-intl:
20638@if intl
20639maybe-install-pdf-intl: install-pdf-intl
e28c595f 20640
a90ef4bf
JM
20641install-pdf-intl: \
20642 configure-intl \
20643 pdf-intl
20644 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20645 r=`${PWD_COMMAND}`; export r; \
20646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20647 $(HOST_EXPORTS) \
20648 for flag in $(EXTRA_HOST_FLAGS) ; do \
20649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20650 done; \
22121df0 20651 echo "Doing install-pdf in intl"; \
a90ef4bf 20652 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20655 "RANLIB=$${RANLIB}" \
20656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20657 install-pdf) \
20658 || exit 1
20659
a90ef4bf 20660@endif intl
e28c595f 20661
a90ef4bf
JM
20662.PHONY: maybe-install-html-intl install-html-intl
20663maybe-install-html-intl:
20664@if intl
20665maybe-install-html-intl: install-html-intl
e28c595f 20666
a90ef4bf
JM
20667install-html-intl: \
20668 configure-intl \
20669 html-intl
20670 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20671 r=`${PWD_COMMAND}`; export r; \
20672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20673 $(HOST_EXPORTS) \
20674 for flag in $(EXTRA_HOST_FLAGS) ; do \
20675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20676 done; \
22121df0 20677 echo "Doing install-html in intl"; \
a90ef4bf 20678 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20681 "RANLIB=$${RANLIB}" \
20682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20683 install-html) \
20684 || exit 1
20685
a90ef4bf 20686@endif intl
e28c595f 20687
a90ef4bf
JM
20688.PHONY: maybe-installcheck-intl installcheck-intl
20689maybe-installcheck-intl:
20690@if intl
20691maybe-installcheck-intl: installcheck-intl
e28c595f 20692
a90ef4bf
JM
20693installcheck-intl: \
20694 configure-intl
20695 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20696 r=`${PWD_COMMAND}`; export r; \
20697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20698 $(HOST_EXPORTS) \
20699 for flag in $(EXTRA_HOST_FLAGS) ; do \
20700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20701 done; \
22121df0 20702 echo "Doing installcheck in intl"; \
a90ef4bf 20703 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20706 "RANLIB=$${RANLIB}" \
20707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20708 installcheck) \
20709 || exit 1
20710
a90ef4bf 20711@endif intl
e28c595f 20712
a90ef4bf
JM
20713.PHONY: maybe-mostlyclean-intl mostlyclean-intl
20714maybe-mostlyclean-intl:
20715@if intl
20716maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 20717
a90ef4bf
JM
20718mostlyclean-intl:
20719 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20720 r=`${PWD_COMMAND}`; export r; \
20721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20722 $(HOST_EXPORTS) \
20723 for flag in $(EXTRA_HOST_FLAGS) ; do \
20724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20725 done; \
22121df0 20726 echo "Doing mostlyclean in intl"; \
a90ef4bf 20727 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20730 "RANLIB=$${RANLIB}" \
20731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20732 mostlyclean) \
20733 || exit 1
20734
a90ef4bf 20735@endif intl
e28c595f 20736
a90ef4bf
JM
20737.PHONY: maybe-clean-intl clean-intl
20738maybe-clean-intl:
20739@if intl
20740maybe-clean-intl: clean-intl
e28c595f 20741
a90ef4bf
JM
20742clean-intl:
20743 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20744 r=`${PWD_COMMAND}`; export r; \
20745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20746 $(HOST_EXPORTS) \
20747 for flag in $(EXTRA_HOST_FLAGS) ; do \
20748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20749 done; \
22121df0 20750 echo "Doing clean in intl"; \
a90ef4bf 20751 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20754 "RANLIB=$${RANLIB}" \
20755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20756 clean) \
20757 || exit 1
20758
a90ef4bf 20759@endif intl
e28c595f 20760
a90ef4bf
JM
20761.PHONY: maybe-distclean-intl distclean-intl
20762maybe-distclean-intl:
20763@if intl
20764maybe-distclean-intl: distclean-intl
e28c595f 20765
a90ef4bf
JM
20766distclean-intl:
20767 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20768 r=`${PWD_COMMAND}`; export r; \
20769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20770 $(HOST_EXPORTS) \
20771 for flag in $(EXTRA_HOST_FLAGS) ; do \
20772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20773 done; \
22121df0 20774 echo "Doing distclean in intl"; \
a90ef4bf 20775 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20778 "RANLIB=$${RANLIB}" \
20779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20780 distclean) \
20781 || exit 1
20782
a90ef4bf 20783@endif intl
e28c595f 20784
a90ef4bf
JM
20785.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
20786maybe-maintainer-clean-intl:
20787@if intl
20788maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 20789
a90ef4bf
JM
20790maintainer-clean-intl:
20791 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
20792 r=`${PWD_COMMAND}`; export r; \
20793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20794 $(HOST_EXPORTS) \
20795 for flag in $(EXTRA_HOST_FLAGS) ; do \
20796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20797 done; \
22121df0 20798 echo "Doing maintainer-clean in intl"; \
a90ef4bf 20799 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
20800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20802 "RANLIB=$${RANLIB}" \
20803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20804 maintainer-clean) \
20805 || exit 1
20806
a90ef4bf 20807@endif intl
e28c595f
JM
20808
20809
20810
a90ef4bf
JM
20811.PHONY: configure-tcl maybe-configure-tcl
20812maybe-configure-tcl:
e8a5fa9c 20813@if gcc-bootstrap
a90ef4bf 20814configure-tcl: stage_current
e8a5fa9c 20815@endif gcc-bootstrap
a90ef4bf
JM
20816@if tcl
20817maybe-configure-tcl: configure-tcl
20818configure-tcl:
20819 @: $(MAKE); $(unstage)
e8a5fa9c
RW
20820 @r=`${PWD_COMMAND}`; export r; \
20821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20822 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 20823 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 20824 $(HOST_EXPORTS) \
a90ef4bf
JM
20825 echo Configuring in $(HOST_SUBDIR)/tcl; \
20826 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
20827 case $(srcdir) in \
20828 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20829 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
20830 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20831 esac; \
1b6c0831
L
20832 module_srcdir=tcl; \
20833 $(SHELL) \
20834 $$s/$$module_srcdir/configure \
20835 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 20836 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20837 --target=${target_alias} \
e8a5fa9c 20838 || exit 1
a90ef4bf 20839@endif tcl
e8a5fa9c
RW
20840
20841
20842
e8a5fa9c 20843
e8a5fa9c 20844
a90ef4bf
JM
20845.PHONY: all-tcl maybe-all-tcl
20846maybe-all-tcl:
20847@if gcc-bootstrap
20848all-tcl: stage_current
20849@endif gcc-bootstrap
20850@if tcl
20851TARGET-tcl=all
20852maybe-all-tcl: all-tcl
20853all-tcl: configure-tcl
20854 @: $(MAKE); $(unstage)
e8a5fa9c
RW
20855 @r=`${PWD_COMMAND}`; export r; \
20856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20857 $(HOST_EXPORTS) \
20858 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 20859 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20860 $(TARGET-tcl))
20861@endif tcl
e8a5fa9c 20862
a90ef4bf
JM
20863
20864
20865
20866.PHONY: check-tcl maybe-check-tcl
20867maybe-check-tcl:
20868@if tcl
20869maybe-check-tcl: check-tcl
20870
20871check-tcl:
20872 @: $(MAKE); $(unstage)
e8a5fa9c
RW
20873 @r=`${PWD_COMMAND}`; export r; \
20874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20875 $(HOST_EXPORTS) \
a90ef4bf
JM
20876 (cd $(HOST_SUBDIR)/tcl && \
20877 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 20878
a90ef4bf
JM
20879@endif tcl
20880
20881.PHONY: install-tcl maybe-install-tcl
20882maybe-install-tcl:
20883@if tcl
20884maybe-install-tcl: install-tcl
20885
20886install-tcl: installdirs
20887 @: $(MAKE); $(unstage)
e8a5fa9c
RW
20888 @r=`${PWD_COMMAND}`; export r; \
20889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 20890 $(HOST_EXPORTS) \
a90ef4bf
JM
20891 (cd $(HOST_SUBDIR)/tcl && \
20892 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 20893
a90ef4bf
JM
20894@endif tcl
20895
20896.PHONY: install-strip-tcl maybe-install-strip-tcl
20897maybe-install-strip-tcl:
20898@if tcl
20899maybe-install-strip-tcl: install-strip-tcl
20900
20901install-strip-tcl: installdirs
20902 @: $(MAKE); $(unstage)
e8a5fa9c
RW
20903 @r=`${PWD_COMMAND}`; export r; \
20904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 20905 $(HOST_EXPORTS) \
a90ef4bf
JM
20906 (cd $(HOST_SUBDIR)/tcl && \
20907 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 20908
a90ef4bf 20909@endif tcl
e8a5fa9c 20910
a90ef4bf 20911# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 20912
a90ef4bf
JM
20913.PHONY: maybe-info-tcl info-tcl
20914maybe-info-tcl:
20915@if tcl
20916maybe-info-tcl: info-tcl
e8a5fa9c 20917
a90ef4bf
JM
20918info-tcl: \
20919 configure-tcl
20920 @: $(MAKE); $(unstage)
20921 @[ -f ./tcl/Makefile ] || exit 0; \
20922 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 20923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20924 $(HOST_EXPORTS) \
20925 for flag in $(EXTRA_HOST_FLAGS) ; do \
20926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20927 done; \
22121df0 20928 echo "Doing info in tcl"; \
a90ef4bf
JM
20929 (cd $(HOST_SUBDIR)/tcl && \
20930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20932 "RANLIB=$${RANLIB}" \
20933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20934 info) \
20935 || exit 1
e8a5fa9c 20936
a90ef4bf 20937@endif tcl
e8a5fa9c 20938
a90ef4bf
JM
20939.PHONY: maybe-dvi-tcl dvi-tcl
20940maybe-dvi-tcl:
20941@if tcl
20942maybe-dvi-tcl: dvi-tcl
e8a5fa9c 20943
a90ef4bf
JM
20944dvi-tcl: \
20945 configure-tcl
20946 @: $(MAKE); $(unstage)
20947 @[ -f ./tcl/Makefile ] || exit 0; \
20948 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 20949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20950 $(HOST_EXPORTS) \
20951 for flag in $(EXTRA_HOST_FLAGS) ; do \
20952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20953 done; \
22121df0 20954 echo "Doing dvi in tcl"; \
a90ef4bf
JM
20955 (cd $(HOST_SUBDIR)/tcl && \
20956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20958 "RANLIB=$${RANLIB}" \
20959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20960 dvi) \
20961 || exit 1
e8a5fa9c 20962
a90ef4bf 20963@endif tcl
e8a5fa9c 20964
a90ef4bf
JM
20965.PHONY: maybe-pdf-tcl pdf-tcl
20966maybe-pdf-tcl:
20967@if tcl
20968maybe-pdf-tcl: pdf-tcl
e8a5fa9c 20969
a90ef4bf
JM
20970pdf-tcl: \
20971 configure-tcl
20972 @: $(MAKE); $(unstage)
20973 @[ -f ./tcl/Makefile ] || exit 0; \
20974 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 20975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 20976 $(HOST_EXPORTS) \
a90ef4bf
JM
20977 for flag in $(EXTRA_HOST_FLAGS) ; do \
20978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20979 done; \
22121df0 20980 echo "Doing pdf in tcl"; \
a90ef4bf
JM
20981 (cd $(HOST_SUBDIR)/tcl && \
20982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20984 "RANLIB=$${RANLIB}" \
20985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20986 pdf) \
20987 || exit 1
e8a5fa9c 20988
a90ef4bf 20989@endif tcl
e8a5fa9c 20990
a90ef4bf
JM
20991.PHONY: maybe-html-tcl html-tcl
20992maybe-html-tcl:
20993@if tcl
20994maybe-html-tcl: html-tcl
e8a5fa9c 20995
a90ef4bf
JM
20996html-tcl: \
20997 configure-tcl
20998 @: $(MAKE); $(unstage)
20999 @[ -f ./tcl/Makefile ] || exit 0; \
21000 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 21001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 21002 $(HOST_EXPORTS) \
a90ef4bf
JM
21003 for flag in $(EXTRA_HOST_FLAGS) ; do \
21004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21005 done; \
22121df0 21006 echo "Doing html in tcl"; \
a90ef4bf
JM
21007 (cd $(HOST_SUBDIR)/tcl && \
21008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21010 "RANLIB=$${RANLIB}" \
21011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21012 html) \
21013 || exit 1
e8a5fa9c 21014
a90ef4bf 21015@endif tcl
e8a5fa9c 21016
a90ef4bf
JM
21017.PHONY: maybe-TAGS-tcl TAGS-tcl
21018maybe-TAGS-tcl:
21019@if tcl
21020maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 21021
a90ef4bf
JM
21022TAGS-tcl: \
21023 configure-tcl
21024 @: $(MAKE); $(unstage)
21025 @[ -f ./tcl/Makefile ] || exit 0; \
21026 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 21027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 21028 $(HOST_EXPORTS) \
a90ef4bf
JM
21029 for flag in $(EXTRA_HOST_FLAGS) ; do \
21030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21031 done; \
22121df0 21032 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
21033 (cd $(HOST_SUBDIR)/tcl && \
21034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21036 "RANLIB=$${RANLIB}" \
21037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21038 TAGS) \
21039 || exit 1
e8a5fa9c 21040
a90ef4bf 21041@endif tcl
e8a5fa9c 21042
a90ef4bf
JM
21043.PHONY: maybe-install-info-tcl install-info-tcl
21044maybe-install-info-tcl:
21045@if tcl
21046maybe-install-info-tcl: install-info-tcl
e8a5fa9c 21047
a90ef4bf
JM
21048install-info-tcl: \
21049 configure-tcl \
21050 info-tcl
e8a5fa9c 21051 @: $(MAKE); $(unstage)
a90ef4bf 21052 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21053 r=`${PWD_COMMAND}`; export r; \
21054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21055 $(HOST_EXPORTS) \
21056 for flag in $(EXTRA_HOST_FLAGS) ; do \
21057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21058 done; \
22121df0 21059 echo "Doing install-info in tcl"; \
a90ef4bf 21060 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
21061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21063 "RANLIB=$${RANLIB}" \
21064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21065 install-info) \
e8a5fa9c
RW
21066 || exit 1
21067
a90ef4bf 21068@endif tcl
e8a5fa9c 21069
a90ef4bf
JM
21070.PHONY: maybe-install-pdf-tcl install-pdf-tcl
21071maybe-install-pdf-tcl:
21072@if tcl
21073maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 21074
a90ef4bf
JM
21075install-pdf-tcl: \
21076 configure-tcl \
21077 pdf-tcl
21078 @: $(MAKE); $(unstage)
21079 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21080 r=`${PWD_COMMAND}`; export r; \
21081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21082 $(HOST_EXPORTS) \
21083 for flag in $(EXTRA_HOST_FLAGS) ; do \
21084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21085 done; \
22121df0 21086 echo "Doing install-pdf in tcl"; \
a90ef4bf 21087 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
21088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21090 "RANLIB=$${RANLIB}" \
21091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21092 install-pdf) \
e8a5fa9c
RW
21093 || exit 1
21094
a90ef4bf 21095@endif tcl
e8a5fa9c 21096
a90ef4bf
JM
21097.PHONY: maybe-install-html-tcl install-html-tcl
21098maybe-install-html-tcl:
21099@if tcl
21100maybe-install-html-tcl: install-html-tcl
e8a5fa9c 21101
a90ef4bf
JM
21102install-html-tcl: \
21103 configure-tcl \
21104 html-tcl
21105 @: $(MAKE); $(unstage)
21106 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21107 r=`${PWD_COMMAND}`; export r; \
21108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21109 $(HOST_EXPORTS) \
21110 for flag in $(EXTRA_HOST_FLAGS) ; do \
21111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21112 done; \
22121df0 21113 echo "Doing install-html in tcl"; \
a90ef4bf 21114 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
21115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21117 "RANLIB=$${RANLIB}" \
21118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21119 install-html) \
e8a5fa9c
RW
21120 || exit 1
21121
a90ef4bf 21122@endif tcl
e8a5fa9c 21123
a90ef4bf
JM
21124.PHONY: maybe-installcheck-tcl installcheck-tcl
21125maybe-installcheck-tcl:
21126@if tcl
21127maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 21128
a90ef4bf
JM
21129installcheck-tcl: \
21130 configure-tcl
21131 @: $(MAKE); $(unstage)
21132 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21133 r=`${PWD_COMMAND}`; export r; \
21134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21135 $(HOST_EXPORTS) \
21136 for flag in $(EXTRA_HOST_FLAGS) ; do \
21137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21138 done; \
22121df0 21139 echo "Doing installcheck in tcl"; \
a90ef4bf 21140 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
21141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21143 "RANLIB=$${RANLIB}" \
21144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21145 installcheck) \
e8a5fa9c
RW
21146 || exit 1
21147
a90ef4bf 21148@endif tcl
e8a5fa9c 21149
a90ef4bf
JM
21150.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
21151maybe-mostlyclean-tcl:
21152@if tcl
21153maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 21154
a90ef4bf
JM
21155# tcl doesn't support mostlyclean.
21156mostlyclean-tcl:
21157
21158@endif tcl
21159
21160.PHONY: maybe-clean-tcl clean-tcl
21161maybe-clean-tcl:
21162@if tcl
21163maybe-clean-tcl: clean-tcl
21164
21165clean-tcl:
21166 @: $(MAKE); $(unstage)
21167 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21168 r=`${PWD_COMMAND}`; export r; \
21169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21170 $(HOST_EXPORTS) \
21171 for flag in $(EXTRA_HOST_FLAGS) ; do \
21172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21173 done; \
22121df0 21174 echo "Doing clean in tcl"; \
a90ef4bf 21175 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
21176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21178 "RANLIB=$${RANLIB}" \
21179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21180 clean) \
e8a5fa9c
RW
21181 || exit 1
21182
a90ef4bf 21183@endif tcl
e8a5fa9c 21184
a90ef4bf
JM
21185.PHONY: maybe-distclean-tcl distclean-tcl
21186maybe-distclean-tcl:
21187@if tcl
21188maybe-distclean-tcl: distclean-tcl
e8a5fa9c 21189
a90ef4bf
JM
21190distclean-tcl:
21191 @: $(MAKE); $(unstage)
21192 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21193 r=`${PWD_COMMAND}`; export r; \
21194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21195 $(HOST_EXPORTS) \
21196 for flag in $(EXTRA_HOST_FLAGS) ; do \
21197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21198 done; \
22121df0 21199 echo "Doing distclean in tcl"; \
a90ef4bf 21200 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
21201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21203 "RANLIB=$${RANLIB}" \
21204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21205 distclean) \
e8a5fa9c
RW
21206 || exit 1
21207
a90ef4bf 21208@endif tcl
e8a5fa9c 21209
a90ef4bf
JM
21210.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
21211maybe-maintainer-clean-tcl:
21212@if tcl
21213maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 21214
a90ef4bf
JM
21215maintainer-clean-tcl:
21216 @: $(MAKE); $(unstage)
21217 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21218 r=`${PWD_COMMAND}`; export r; \
21219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21220 $(HOST_EXPORTS) \
21221 for flag in $(EXTRA_HOST_FLAGS) ; do \
21222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21223 done; \
22121df0 21224 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 21225 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
21226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21228 "RANLIB=$${RANLIB}" \
21229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21230 maintainer-clean) \
e8a5fa9c
RW
21231 || exit 1
21232
a90ef4bf 21233@endif tcl
e8a5fa9c 21234
e8a5fa9c 21235
a90ef4bf
JM
21236
21237.PHONY: configure-itcl maybe-configure-itcl
21238maybe-configure-itcl:
21239@if gcc-bootstrap
21240configure-itcl: stage_current
21241@endif gcc-bootstrap
21242@if itcl
21243maybe-configure-itcl: configure-itcl
21244configure-itcl:
21245 @: $(MAKE); $(unstage)
21246 @r=`${PWD_COMMAND}`; export r; \
21247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21248 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 21249 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
21250 $(HOST_EXPORTS) \
21251 echo Configuring in $(HOST_SUBDIR)/itcl; \
21252 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
21253 case $(srcdir) in \
21254 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21255 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
21256 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21257 esac; \
1b6c0831
L
21258 module_srcdir=itcl; \
21259 $(SHELL) \
21260 $$s/$$module_srcdir/configure \
21261 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 21262 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21263 --target=${target_alias} \
a90ef4bf
JM
21264 || exit 1
21265@endif itcl
21266
21267
21268
21269
21270
21271.PHONY: all-itcl maybe-all-itcl
21272maybe-all-itcl:
21273@if gcc-bootstrap
21274all-itcl: stage_current
21275@endif gcc-bootstrap
21276@if itcl
21277TARGET-itcl=all
21278maybe-all-itcl: all-itcl
21279all-itcl: configure-itcl
21280 @: $(MAKE); $(unstage)
21281 @r=`${PWD_COMMAND}`; export r; \
21282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21283 $(HOST_EXPORTS) \
21284 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 21285 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21286 $(TARGET-itcl))
21287@endif itcl
21288
21289
21290
21291
21292.PHONY: check-itcl maybe-check-itcl
21293maybe-check-itcl:
21294@if itcl
21295maybe-check-itcl: check-itcl
21296
21297check-itcl:
21298 @: $(MAKE); $(unstage)
21299 @r=`${PWD_COMMAND}`; export r; \
21300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21301 $(HOST_EXPORTS) \
a90ef4bf
JM
21302 (cd $(HOST_SUBDIR)/itcl && \
21303 $(MAKE) $(FLAGS_TO_PASS) check)
21304
21305@endif itcl
21306
21307.PHONY: install-itcl maybe-install-itcl
21308maybe-install-itcl:
21309@if itcl
21310maybe-install-itcl: install-itcl
21311
21312install-itcl: installdirs
21313 @: $(MAKE); $(unstage)
21314 @r=`${PWD_COMMAND}`; export r; \
21315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21316 $(HOST_EXPORTS) \
21317 (cd $(HOST_SUBDIR)/itcl && \
21318 $(MAKE) $(FLAGS_TO_PASS) install)
21319
21320@endif itcl
21321
21322.PHONY: install-strip-itcl maybe-install-strip-itcl
21323maybe-install-strip-itcl:
21324@if itcl
21325maybe-install-strip-itcl: install-strip-itcl
21326
21327install-strip-itcl: installdirs
21328 @: $(MAKE); $(unstage)
21329 @r=`${PWD_COMMAND}`; export r; \
21330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21331 $(HOST_EXPORTS) \
21332 (cd $(HOST_SUBDIR)/itcl && \
21333 $(MAKE) $(FLAGS_TO_PASS) install-strip)
21334
21335@endif itcl
21336
21337# Other targets (info, dvi, pdf, etc.)
21338
21339.PHONY: maybe-info-itcl info-itcl
21340maybe-info-itcl:
21341@if itcl
21342maybe-info-itcl: info-itcl
21343
21344info-itcl: \
21345 configure-itcl
21346 @: $(MAKE); $(unstage)
21347 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21348 r=`${PWD_COMMAND}`; export r; \
21349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21350 $(HOST_EXPORTS) \
21351 for flag in $(EXTRA_HOST_FLAGS) ; do \
21352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21353 done; \
22121df0 21354 echo "Doing info in itcl"; \
a90ef4bf 21355 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
21356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21358 "RANLIB=$${RANLIB}" \
21359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21360 info) \
e8a5fa9c
RW
21361 || exit 1
21362
a90ef4bf 21363@endif itcl
e8a5fa9c 21364
a90ef4bf
JM
21365.PHONY: maybe-dvi-itcl dvi-itcl
21366maybe-dvi-itcl:
21367@if itcl
21368maybe-dvi-itcl: dvi-itcl
e8a5fa9c 21369
a90ef4bf
JM
21370dvi-itcl: \
21371 configure-itcl
21372 @: $(MAKE); $(unstage)
21373 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21374 r=`${PWD_COMMAND}`; export r; \
21375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21376 $(HOST_EXPORTS) \
21377 for flag in $(EXTRA_HOST_FLAGS) ; do \
21378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21379 done; \
22121df0 21380 echo "Doing dvi in itcl"; \
a90ef4bf 21381 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
21382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21384 "RANLIB=$${RANLIB}" \
21385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21386 dvi) \
e8a5fa9c
RW
21387 || exit 1
21388
a90ef4bf 21389@endif itcl
e8a5fa9c 21390
a90ef4bf
JM
21391.PHONY: maybe-pdf-itcl pdf-itcl
21392maybe-pdf-itcl:
21393@if itcl
21394maybe-pdf-itcl: pdf-itcl
e8a5fa9c 21395
a90ef4bf
JM
21396pdf-itcl: \
21397 configure-itcl
21398 @: $(MAKE); $(unstage)
21399 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21400 r=`${PWD_COMMAND}`; export r; \
21401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21402 $(HOST_EXPORTS) \
21403 for flag in $(EXTRA_HOST_FLAGS) ; do \
21404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21405 done; \
22121df0 21406 echo "Doing pdf in itcl"; \
a90ef4bf 21407 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
21408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21410 "RANLIB=$${RANLIB}" \
21411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21412 pdf) \
e8a5fa9c
RW
21413 || exit 1
21414
a90ef4bf 21415@endif itcl
e8a5fa9c 21416
a90ef4bf
JM
21417.PHONY: maybe-html-itcl html-itcl
21418maybe-html-itcl:
21419@if itcl
21420maybe-html-itcl: html-itcl
e8a5fa9c 21421
a90ef4bf
JM
21422html-itcl: \
21423 configure-itcl
21424 @: $(MAKE); $(unstage)
21425 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21426 r=`${PWD_COMMAND}`; export r; \
21427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21428 $(HOST_EXPORTS) \
21429 for flag in $(EXTRA_HOST_FLAGS) ; do \
21430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21431 done; \
22121df0 21432 echo "Doing html in itcl"; \
a90ef4bf 21433 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
21434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21436 "RANLIB=$${RANLIB}" \
21437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 21438 html) \
e8a5fa9c
RW
21439 || exit 1
21440
a90ef4bf 21441@endif itcl
e8a5fa9c 21442
a90ef4bf
JM
21443.PHONY: maybe-TAGS-itcl TAGS-itcl
21444maybe-TAGS-itcl:
21445@if itcl
21446maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 21447
a90ef4bf
JM
21448TAGS-itcl: \
21449 configure-itcl
21450 @: $(MAKE); $(unstage)
21451 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21452 r=`${PWD_COMMAND}`; export r; \
21453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21454 $(HOST_EXPORTS) \
21455 for flag in $(EXTRA_HOST_FLAGS) ; do \
21456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21457 done; \
22121df0 21458 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
21459 (cd $(HOST_SUBDIR)/itcl && \
21460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21462 "RANLIB=$${RANLIB}" \
21463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21464 TAGS) \
21465 || exit 1
21466
21467@endif itcl
21468
21469.PHONY: maybe-install-info-itcl install-info-itcl
21470maybe-install-info-itcl:
21471@if itcl
21472maybe-install-info-itcl: install-info-itcl
21473
21474install-info-itcl: \
21475 configure-itcl \
21476 info-itcl
21477 @: $(MAKE); $(unstage)
21478 @[ -f ./itcl/Makefile ] || exit 0; \
21479 r=`${PWD_COMMAND}`; export r; \
21480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21481 $(HOST_EXPORTS) \
21482 for flag in $(EXTRA_HOST_FLAGS) ; do \
21483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21484 done; \
22121df0 21485 echo "Doing install-info in itcl"; \
a90ef4bf
JM
21486 (cd $(HOST_SUBDIR)/itcl && \
21487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21489 "RANLIB=$${RANLIB}" \
21490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21491 install-info) \
21492 || exit 1
21493
21494@endif itcl
21495
21496.PHONY: maybe-install-pdf-itcl install-pdf-itcl
21497maybe-install-pdf-itcl:
21498@if itcl
21499maybe-install-pdf-itcl: install-pdf-itcl
21500
21501install-pdf-itcl: \
21502 configure-itcl \
21503 pdf-itcl
21504 @: $(MAKE); $(unstage)
21505 @[ -f ./itcl/Makefile ] || exit 0; \
21506 r=`${PWD_COMMAND}`; export r; \
21507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21508 $(HOST_EXPORTS) \
21509 for flag in $(EXTRA_HOST_FLAGS) ; do \
21510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21511 done; \
22121df0 21512 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
21513 (cd $(HOST_SUBDIR)/itcl && \
21514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21516 "RANLIB=$${RANLIB}" \
21517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21518 install-pdf) \
21519 || exit 1
21520
21521@endif itcl
21522
21523.PHONY: maybe-install-html-itcl install-html-itcl
21524maybe-install-html-itcl:
21525@if itcl
21526maybe-install-html-itcl: install-html-itcl
21527
21528install-html-itcl: \
21529 configure-itcl \
21530 html-itcl
21531 @: $(MAKE); $(unstage)
21532 @[ -f ./itcl/Makefile ] || exit 0; \
21533 r=`${PWD_COMMAND}`; export r; \
21534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21535 $(HOST_EXPORTS) \
21536 for flag in $(EXTRA_HOST_FLAGS) ; do \
21537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21538 done; \
22121df0 21539 echo "Doing install-html in itcl"; \
a90ef4bf
JM
21540 (cd $(HOST_SUBDIR)/itcl && \
21541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21543 "RANLIB=$${RANLIB}" \
21544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21545 install-html) \
21546 || exit 1
21547
21548@endif itcl
21549
21550.PHONY: maybe-installcheck-itcl installcheck-itcl
21551maybe-installcheck-itcl:
21552@if itcl
21553maybe-installcheck-itcl: installcheck-itcl
21554
21555installcheck-itcl: \
21556 configure-itcl
21557 @: $(MAKE); $(unstage)
21558 @[ -f ./itcl/Makefile ] || exit 0; \
21559 r=`${PWD_COMMAND}`; export r; \
21560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21561 $(HOST_EXPORTS) \
21562 for flag in $(EXTRA_HOST_FLAGS) ; do \
21563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21564 done; \
22121df0 21565 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
21566 (cd $(HOST_SUBDIR)/itcl && \
21567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21569 "RANLIB=$${RANLIB}" \
21570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21571 installcheck) \
21572 || exit 1
21573
21574@endif itcl
21575
21576.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
21577maybe-mostlyclean-itcl:
21578@if itcl
21579maybe-mostlyclean-itcl: mostlyclean-itcl
21580
21581mostlyclean-itcl:
21582 @: $(MAKE); $(unstage)
21583 @[ -f ./itcl/Makefile ] || exit 0; \
21584 r=`${PWD_COMMAND}`; export r; \
21585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21586 $(HOST_EXPORTS) \
21587 for flag in $(EXTRA_HOST_FLAGS) ; do \
21588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21589 done; \
22121df0 21590 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
21591 (cd $(HOST_SUBDIR)/itcl && \
21592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21594 "RANLIB=$${RANLIB}" \
21595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21596 mostlyclean) \
21597 || exit 1
21598
21599@endif itcl
21600
21601.PHONY: maybe-clean-itcl clean-itcl
21602maybe-clean-itcl:
21603@if itcl
21604maybe-clean-itcl: clean-itcl
21605
21606clean-itcl:
21607 @: $(MAKE); $(unstage)
21608 @[ -f ./itcl/Makefile ] || exit 0; \
21609 r=`${PWD_COMMAND}`; export r; \
21610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21611 $(HOST_EXPORTS) \
21612 for flag in $(EXTRA_HOST_FLAGS) ; do \
21613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21614 done; \
22121df0 21615 echo "Doing clean in itcl"; \
a90ef4bf
JM
21616 (cd $(HOST_SUBDIR)/itcl && \
21617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21619 "RANLIB=$${RANLIB}" \
21620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21621 clean) \
21622 || exit 1
21623
21624@endif itcl
21625
21626.PHONY: maybe-distclean-itcl distclean-itcl
21627maybe-distclean-itcl:
21628@if itcl
21629maybe-distclean-itcl: distclean-itcl
21630
21631distclean-itcl:
21632 @: $(MAKE); $(unstage)
21633 @[ -f ./itcl/Makefile ] || exit 0; \
21634 r=`${PWD_COMMAND}`; export r; \
21635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21636 $(HOST_EXPORTS) \
21637 for flag in $(EXTRA_HOST_FLAGS) ; do \
21638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21639 done; \
22121df0 21640 echo "Doing distclean in itcl"; \
a90ef4bf 21641 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
21642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21644 "RANLIB=$${RANLIB}" \
21645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21646 distclean) \
21647 || exit 1
21648
a90ef4bf 21649@endif itcl
e8a5fa9c 21650
a90ef4bf
JM
21651.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
21652maybe-maintainer-clean-itcl:
21653@if itcl
21654maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 21655
a90ef4bf
JM
21656maintainer-clean-itcl:
21657 @: $(MAKE); $(unstage)
21658 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
21659 r=`${PWD_COMMAND}`; export r; \
21660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21661 $(HOST_EXPORTS) \
21662 for flag in $(EXTRA_HOST_FLAGS) ; do \
21663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21664 done; \
22121df0 21665 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 21666 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
21667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21669 "RANLIB=$${RANLIB}" \
21670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21671 maintainer-clean) \
21672 || exit 1
21673
a90ef4bf 21674@endif itcl
e8a5fa9c
RW
21675
21676
21677
a90ef4bf
JM
21678.PHONY: configure-ld maybe-configure-ld
21679maybe-configure-ld:
e28c595f 21680@if gcc-bootstrap
a90ef4bf 21681configure-ld: stage_current
e28c595f 21682@endif gcc-bootstrap
a90ef4bf
JM
21683@if ld
21684maybe-configure-ld: configure-ld
21685configure-ld:
e28c595f
JM
21686 @r=`${PWD_COMMAND}`; export r; \
21687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21688 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 21689 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 21690 $(HOST_EXPORTS) \
a90ef4bf
JM
21691 echo Configuring in $(HOST_SUBDIR)/ld; \
21692 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
21693 case $(srcdir) in \
21694 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21695 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
21696 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21697 esac; \
1b6c0831
L
21698 module_srcdir=ld; \
21699 $(SHELL) \
21700 $$s/$$module_srcdir/configure \
21701 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21702 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21703 --target=${target_alias} \
e28c595f 21704 || exit 1
a90ef4bf 21705@endif ld
e28c595f
JM
21706
21707
21708
a90ef4bf
JM
21709.PHONY: configure-stage1-ld maybe-configure-stage1-ld
21710maybe-configure-stage1-ld:
21711@if ld-bootstrap
21712maybe-configure-stage1-ld: configure-stage1-ld
21713configure-stage1-ld:
e28c595f 21714 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21715 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
21716 @r=`${PWD_COMMAND}`; export r; \
21717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 21718 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21719 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 21720 $(HOST_EXPORTS) \
e28c595f 21721 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
21722 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21723 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21724 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
21725 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 21726 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
21727 case $(srcdir) in \
21728 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21729 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
21730 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21731 esac; \
1b6c0831
L
21732 module_srcdir=ld; \
21733 $(SHELL) $$s/$$module_srcdir/configure \
21734 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21735 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21736 --target=${target_alias} \
21737 \
a90ef4bf
JM
21738 $(STAGE1_CONFIGURE_FLAGS)
21739@endif ld-bootstrap
e28c595f 21740
a90ef4bf
JM
21741.PHONY: configure-stage2-ld maybe-configure-stage2-ld
21742maybe-configure-stage2-ld:
21743@if ld-bootstrap
21744maybe-configure-stage2-ld: configure-stage2-ld
21745configure-stage2-ld:
e28c595f 21746 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21747 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
21748 @r=`${PWD_COMMAND}`; export r; \
21749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 21750 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21751 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 21752 $(HOST_EXPORTS) \
1b05fbbd 21753 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 21754 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
21755 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21756 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21757 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
21758 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 21759 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
21760 case $(srcdir) in \
21761 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21762 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
21763 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21764 esac; \
1b6c0831
L
21765 module_srcdir=ld; \
21766 $(SHELL) $$s/$$module_srcdir/configure \
21767 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21768 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21769 --target=${target_alias} \
22121df0 21770 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21771 $(STAGE2_CONFIGURE_FLAGS)
21772@endif ld-bootstrap
e28c595f 21773
a90ef4bf
JM
21774.PHONY: configure-stage3-ld maybe-configure-stage3-ld
21775maybe-configure-stage3-ld:
21776@if ld-bootstrap
21777maybe-configure-stage3-ld: configure-stage3-ld
21778configure-stage3-ld:
e28c595f 21779 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21780 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
21781 @r=`${PWD_COMMAND}`; export r; \
21782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 21783 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21784 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 21785 $(HOST_EXPORTS) \
1b05fbbd 21786 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 21787 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
21788 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21789 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21790 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
21791 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 21792 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
21793 case $(srcdir) in \
21794 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21795 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
21796 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21797 esac; \
1b6c0831
L
21798 module_srcdir=ld; \
21799 $(SHELL) $$s/$$module_srcdir/configure \
21800 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21801 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21802 --target=${target_alias} \
22121df0 21803 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21804 $(STAGE3_CONFIGURE_FLAGS)
21805@endif ld-bootstrap
e28c595f 21806
a90ef4bf
JM
21807.PHONY: configure-stage4-ld maybe-configure-stage4-ld
21808maybe-configure-stage4-ld:
21809@if ld-bootstrap
21810maybe-configure-stage4-ld: configure-stage4-ld
21811configure-stage4-ld:
e28c595f 21812 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21813 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
21814 @r=`${PWD_COMMAND}`; export r; \
21815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 21816 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21817 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 21818 $(HOST_EXPORTS) \
1b05fbbd 21819 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 21820 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
21821 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21822 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21823 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
21824 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 21825 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
21826 case $(srcdir) in \
21827 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21828 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
21829 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21830 esac; \
1b6c0831
L
21831 module_srcdir=ld; \
21832 $(SHELL) $$s/$$module_srcdir/configure \
21833 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21834 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21835 --target=${target_alias} \
22121df0 21836 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21837 $(STAGE4_CONFIGURE_FLAGS)
21838@endif ld-bootstrap
e28c595f 21839
a90ef4bf
JM
21840.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
21841maybe-configure-stageprofile-ld:
21842@if ld-bootstrap
21843maybe-configure-stageprofile-ld: configure-stageprofile-ld
21844configure-stageprofile-ld:
e28c595f 21845 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21846 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
21847 @r=`${PWD_COMMAND}`; export r; \
21848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 21849 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21850 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 21851 $(HOST_EXPORTS) \
1b05fbbd
AO
21852 $(POSTSTAGE1_HOST_EXPORTS) \
21853 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
21854 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21855 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21856 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
21857 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 21858 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
21859 case $(srcdir) in \
21860 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21861 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
21862 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21863 esac; \
1b6c0831
L
21864 module_srcdir=ld; \
21865 $(SHELL) $$s/$$module_srcdir/configure \
21866 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21867 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21868 --target=${target_alias} \
22121df0 21869 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21870 $(STAGEprofile_CONFIGURE_FLAGS)
21871@endif ld-bootstrap
e28c595f 21872
f948b2de
NC
21873.PHONY: configure-stagetrain-ld maybe-configure-stagetrain-ld
21874maybe-configure-stagetrain-ld:
21875@if ld-bootstrap
21876maybe-configure-stagetrain-ld: configure-stagetrain-ld
21877configure-stagetrain-ld:
21878 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
21879 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
21880 @r=`${PWD_COMMAND}`; export r; \
21881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21882 TFLAGS="$(STAGEtrain_TFLAGS)"; \
21883 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
21884 $(HOST_EXPORTS) \
21885 $(POSTSTAGE1_HOST_EXPORTS) \
21886 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
21887 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
21888 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
21889 echo Configuring stage train in $(HOST_SUBDIR)/ld; \
21890 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
21891 cd $(HOST_SUBDIR)/ld || exit 1; \
21892 case $(srcdir) in \
21893 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21894 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
21895 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21896 esac; \
21897 module_srcdir=ld; \
21898 $(SHELL) $$s/$$module_srcdir/configure \
21899 --srcdir=$${topdir}/$$module_srcdir \
21900 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21901 --target=${target_alias} \
21902 --with-build-libsubdir=$(HOST_SUBDIR) \
21903 $(STAGEtrain_CONFIGURE_FLAGS)
21904@endif ld-bootstrap
21905
a90ef4bf
JM
21906.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
21907maybe-configure-stagefeedback-ld:
21908@if ld-bootstrap
21909maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
21910configure-stagefeedback-ld:
e28c595f 21911 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21912 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
21913 @r=`${PWD_COMMAND}`; export r; \
21914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 21915 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21916 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 21917 $(HOST_EXPORTS) \
1b05fbbd
AO
21918 $(POSTSTAGE1_HOST_EXPORTS) \
21919 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
21920 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21921 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21922 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
21923 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 21924 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
21925 case $(srcdir) in \
21926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21927 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
21928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21929 esac; \
1b6c0831
L
21930 module_srcdir=ld; \
21931 $(SHELL) $$s/$$module_srcdir/configure \
21932 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21933 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21934 --target=${target_alias} \
22121df0 21935 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21936 $(STAGEfeedback_CONFIGURE_FLAGS)
21937@endif ld-bootstrap
e28c595f 21938
f948b2de
NC
21939.PHONY: configure-stageautoprofile-ld maybe-configure-stageautoprofile-ld
21940maybe-configure-stageautoprofile-ld:
21941@if ld-bootstrap
21942maybe-configure-stageautoprofile-ld: configure-stageautoprofile-ld
21943configure-stageautoprofile-ld:
21944 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
21945 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
21946 @r=`${PWD_COMMAND}`; export r; \
21947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21948 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
21949 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
21950 $(HOST_EXPORTS) \
21951 $(POSTSTAGE1_HOST_EXPORTS) \
21952 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
21953 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
21954 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
21955 echo Configuring stage autoprofile in $(HOST_SUBDIR)/ld; \
21956 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
21957 cd $(HOST_SUBDIR)/ld || exit 1; \
21958 case $(srcdir) in \
21959 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21960 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
21961 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21962 esac; \
21963 module_srcdir=ld; \
21964 $(SHELL) $$s/$$module_srcdir/configure \
21965 --srcdir=$${topdir}/$$module_srcdir \
21966 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
21967 --target=${target_alias} \
21968 --with-build-libsubdir=$(HOST_SUBDIR) \
21969 $(STAGEautoprofile_CONFIGURE_FLAGS)
21970@endif ld-bootstrap
21971
21972.PHONY: configure-stageautofeedback-ld maybe-configure-stageautofeedback-ld
21973maybe-configure-stageautofeedback-ld:
21974@if ld-bootstrap
21975maybe-configure-stageautofeedback-ld: configure-stageautofeedback-ld
21976configure-stageautofeedback-ld:
21977 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
21978 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
21979 @r=`${PWD_COMMAND}`; export r; \
21980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21981 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
21982 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
21983 $(HOST_EXPORTS) \
21984 $(POSTSTAGE1_HOST_EXPORTS) \
21985 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
21986 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
21987 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
21988 echo Configuring stage autofeedback in $(HOST_SUBDIR)/ld; \
21989 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
21990 cd $(HOST_SUBDIR)/ld || exit 1; \
21991 case $(srcdir) in \
21992 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21993 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
21994 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21995 esac; \
21996 module_srcdir=ld; \
21997 $(SHELL) $$s/$$module_srcdir/configure \
21998 --srcdir=$${topdir}/$$module_srcdir \
21999 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
22000 --target=${target_alias} \
22001 --with-build-libsubdir=$(HOST_SUBDIR) \
22002 $(STAGEautofeedback_CONFIGURE_FLAGS)
22003@endif ld-bootstrap
22004
e28c595f
JM
22005
22006
22007
22008
a90ef4bf
JM
22009.PHONY: all-ld maybe-all-ld
22010maybe-all-ld:
e28c595f 22011@if gcc-bootstrap
a90ef4bf 22012all-ld: stage_current
e28c595f 22013@endif gcc-bootstrap
a90ef4bf
JM
22014@if ld
22015TARGET-ld=all
22016maybe-all-ld: all-ld
22017all-ld: configure-ld
e28c595f
JM
22018 @r=`${PWD_COMMAND}`; export r; \
22019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22020 $(HOST_EXPORTS) \
a90ef4bf 22021 (cd $(HOST_SUBDIR)/ld && \
b3676d82 22022 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22023 $(TARGET-ld))
22024@endif ld
e28c595f
JM
22025
22026
22027
a90ef4bf
JM
22028.PHONY: all-stage1-ld maybe-all-stage1-ld
22029.PHONY: clean-stage1-ld maybe-clean-stage1-ld
22030maybe-all-stage1-ld:
22031maybe-clean-stage1-ld:
22032@if ld-bootstrap
22033maybe-all-stage1-ld: all-stage1-ld
22034all-stage1: all-stage1-ld
22035TARGET-stage1-ld = $(TARGET-ld)
22036all-stage1-ld: configure-stage1-ld
e28c595f
JM
22037 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22038 @r=`${PWD_COMMAND}`; export r; \
22039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22040 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22041 $(HOST_EXPORTS) \
a90ef4bf 22042 cd $(HOST_SUBDIR)/ld && \
05a13254 22043 \
e28c595f 22044 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22045 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 22046 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
1f53ca9a 22047 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22048 LIBCFLAGS="$(LIBCFLAGS)" \
22049 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22050 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22051 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22052 $(EXTRA_HOST_FLAGS) \
22053 $(STAGE1_FLAGS_TO_PASS) \
05a13254 22054 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22055 $(TARGET-stage1-ld)
e28c595f 22056
a90ef4bf
JM
22057maybe-clean-stage1-ld: clean-stage1-ld
22058clean-stage1: clean-stage1-ld
22059clean-stage1-ld:
e28c595f 22060 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22061 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 22062 else \
a90ef4bf 22063 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
22064 $(MAKE) stage1-start; \
22065 fi; \
a90ef4bf 22066 cd $(HOST_SUBDIR)/ld && \
e28c595f 22067 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22068 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22069@endif ld-bootstrap
e28c595f
JM
22070
22071
a90ef4bf
JM
22072.PHONY: all-stage2-ld maybe-all-stage2-ld
22073.PHONY: clean-stage2-ld maybe-clean-stage2-ld
22074maybe-all-stage2-ld:
22075maybe-clean-stage2-ld:
22076@if ld-bootstrap
22077maybe-all-stage2-ld: all-stage2-ld
22078all-stage2: all-stage2-ld
22079TARGET-stage2-ld = $(TARGET-ld)
22080all-stage2-ld: configure-stage2-ld
e28c595f
JM
22081 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22082 @r=`${PWD_COMMAND}`; export r; \
22083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22084 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 22085 $(HOST_EXPORTS) \
1f53ca9a 22086 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22087 cd $(HOST_SUBDIR)/ld && \
05a13254 22088 \
e28c595f 22089 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22090 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 22091 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
1f53ca9a 22092 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22093 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22094 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22095 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22096 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22097 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22098 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22099 $(TARGET-stage2-ld)
e28c595f 22100
a90ef4bf
JM
22101maybe-clean-stage2-ld: clean-stage2-ld
22102clean-stage2: clean-stage2-ld
22103clean-stage2-ld:
e28c595f 22104 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22105 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 22106 else \
a90ef4bf 22107 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
22108 $(MAKE) stage2-start; \
22109 fi; \
a90ef4bf 22110 cd $(HOST_SUBDIR)/ld && \
b3676d82 22111 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22112@endif ld-bootstrap
e28c595f
JM
22113
22114
a90ef4bf
JM
22115.PHONY: all-stage3-ld maybe-all-stage3-ld
22116.PHONY: clean-stage3-ld maybe-clean-stage3-ld
22117maybe-all-stage3-ld:
22118maybe-clean-stage3-ld:
22119@if ld-bootstrap
22120maybe-all-stage3-ld: all-stage3-ld
22121all-stage3: all-stage3-ld
22122TARGET-stage3-ld = $(TARGET-ld)
22123all-stage3-ld: configure-stage3-ld
e28c595f
JM
22124 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22125 @r=`${PWD_COMMAND}`; export r; \
22126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22127 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 22128 $(HOST_EXPORTS) \
1f53ca9a 22129 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22130 cd $(HOST_SUBDIR)/ld && \
05a13254 22131 \
e28c595f 22132 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22133 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 22134 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
1f53ca9a 22135 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22136 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22137 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22138 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22139 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22140 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22141 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22142 $(TARGET-stage3-ld)
e28c595f 22143
a90ef4bf
JM
22144maybe-clean-stage3-ld: clean-stage3-ld
22145clean-stage3: clean-stage3-ld
22146clean-stage3-ld:
e28c595f 22147 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22148 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 22149 else \
a90ef4bf 22150 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
22151 $(MAKE) stage3-start; \
22152 fi; \
a90ef4bf 22153 cd $(HOST_SUBDIR)/ld && \
b3676d82 22154 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22155@endif ld-bootstrap
e28c595f
JM
22156
22157
a90ef4bf
JM
22158.PHONY: all-stage4-ld maybe-all-stage4-ld
22159.PHONY: clean-stage4-ld maybe-clean-stage4-ld
22160maybe-all-stage4-ld:
22161maybe-clean-stage4-ld:
22162@if ld-bootstrap
22163maybe-all-stage4-ld: all-stage4-ld
22164all-stage4: all-stage4-ld
22165TARGET-stage4-ld = $(TARGET-ld)
22166all-stage4-ld: configure-stage4-ld
e28c595f
JM
22167 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22168 @r=`${PWD_COMMAND}`; export r; \
22169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22170 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 22171 $(HOST_EXPORTS) \
1f53ca9a 22172 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22173 cd $(HOST_SUBDIR)/ld && \
05a13254 22174 \
e28c595f 22175 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22176 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 22177 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
1f53ca9a 22178 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 22179 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22180 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22181 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22182 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22183 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22184 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22185 $(TARGET-stage4-ld)
e28c595f 22186
a90ef4bf
JM
22187maybe-clean-stage4-ld: clean-stage4-ld
22188clean-stage4: clean-stage4-ld
22189clean-stage4-ld:
e28c595f 22190 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22191 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 22192 else \
a90ef4bf 22193 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
22194 $(MAKE) stage4-start; \
22195 fi; \
a90ef4bf 22196 cd $(HOST_SUBDIR)/ld && \
b3676d82 22197 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22198@endif ld-bootstrap
e28c595f
JM
22199
22200
a90ef4bf
JM
22201.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
22202.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
22203maybe-all-stageprofile-ld:
22204maybe-clean-stageprofile-ld:
22205@if ld-bootstrap
22206maybe-all-stageprofile-ld: all-stageprofile-ld
22207all-stageprofile: all-stageprofile-ld
22208TARGET-stageprofile-ld = $(TARGET-ld)
22209all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
22210 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22211 @r=`${PWD_COMMAND}`; export r; \
22212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22213 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 22214 $(HOST_EXPORTS) \
1f53ca9a 22215 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22216 cd $(HOST_SUBDIR)/ld && \
05a13254 22217 \
e28c595f 22218 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22219 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 22220 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
1f53ca9a 22221 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22222 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22223 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22224 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22225 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22226 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22227 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22228 $(TARGET-stageprofile-ld)
e28c595f 22229
a90ef4bf
JM
22230maybe-clean-stageprofile-ld: clean-stageprofile-ld
22231clean-stageprofile: clean-stageprofile-ld
22232clean-stageprofile-ld:
e28c595f 22233 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22234 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 22235 else \
a90ef4bf 22236 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
22237 $(MAKE) stageprofile-start; \
22238 fi; \
a90ef4bf 22239 cd $(HOST_SUBDIR)/ld && \
b3676d82 22240 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22241@endif ld-bootstrap
e28c595f
JM
22242
22243
f948b2de
NC
22244.PHONY: all-stagetrain-ld maybe-all-stagetrain-ld
22245.PHONY: clean-stagetrain-ld maybe-clean-stagetrain-ld
22246maybe-all-stagetrain-ld:
22247maybe-clean-stagetrain-ld:
22248@if ld-bootstrap
22249maybe-all-stagetrain-ld: all-stagetrain-ld
22250all-stagetrain: all-stagetrain-ld
22251TARGET-stagetrain-ld = $(TARGET-ld)
22252all-stagetrain-ld: configure-stagetrain-ld
22253 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
22254 @r=`${PWD_COMMAND}`; export r; \
22255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22256 TFLAGS="$(STAGEtrain_TFLAGS)"; \
22257 $(HOST_EXPORTS) \
22258 $(POSTSTAGE1_HOST_EXPORTS) \
22259 cd $(HOST_SUBDIR)/ld && \
22260 \
22261 $(MAKE) $(BASE_FLAGS_TO_PASS) \
22262 CFLAGS="$(STAGEtrain_CFLAGS)" \
22263 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
22264 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
22265 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
22266 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22267 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22268 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22269 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22270 TFLAGS="$(STAGEtrain_TFLAGS)" \
22271 $(TARGET-stagetrain-ld)
22272
22273maybe-clean-stagetrain-ld: clean-stagetrain-ld
22274clean-stagetrain: clean-stagetrain-ld
22275clean-stagetrain-ld:
22276 @if [ $(current_stage) = stagetrain ]; then \
22277 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
22278 else \
22279 [ -f $(HOST_SUBDIR)/stagetrain-ld/Makefile ] || exit 0; \
22280 $(MAKE) stagetrain-start; \
22281 fi; \
22282 cd $(HOST_SUBDIR)/ld && \
22283 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
22284@endif ld-bootstrap
22285
22286
a90ef4bf
JM
22287.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
22288.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
22289maybe-all-stagefeedback-ld:
22290maybe-clean-stagefeedback-ld:
22291@if ld-bootstrap
22292maybe-all-stagefeedback-ld: all-stagefeedback-ld
22293all-stagefeedback: all-stagefeedback-ld
22294TARGET-stagefeedback-ld = $(TARGET-ld)
22295all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
22296 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22297 @r=`${PWD_COMMAND}`; export r; \
22298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22299 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 22300 $(HOST_EXPORTS) \
1f53ca9a 22301 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22302 cd $(HOST_SUBDIR)/ld && \
05a13254 22303 \
e28c595f 22304 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22305 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 22306 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
1f53ca9a 22307 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22308 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22309 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22310 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22311 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22312 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22313 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22314 $(TARGET-stagefeedback-ld)
e28c595f 22315
a90ef4bf
JM
22316maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
22317clean-stagefeedback: clean-stagefeedback-ld
22318clean-stagefeedback-ld:
e28c595f 22319 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22320 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 22321 else \
a90ef4bf 22322 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
22323 $(MAKE) stagefeedback-start; \
22324 fi; \
a90ef4bf 22325 cd $(HOST_SUBDIR)/ld && \
b3676d82 22326 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22327@endif ld-bootstrap
e28c595f
JM
22328
22329
f948b2de
NC
22330.PHONY: all-stageautoprofile-ld maybe-all-stageautoprofile-ld
22331.PHONY: clean-stageautoprofile-ld maybe-clean-stageautoprofile-ld
22332maybe-all-stageautoprofile-ld:
22333maybe-clean-stageautoprofile-ld:
22334@if ld-bootstrap
22335maybe-all-stageautoprofile-ld: all-stageautoprofile-ld
22336all-stageautoprofile: all-stageautoprofile-ld
22337TARGET-stageautoprofile-ld = $(TARGET-ld)
22338all-stageautoprofile-ld: configure-stageautoprofile-ld
22339 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
22340 @r=`${PWD_COMMAND}`; export r; \
22341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22342 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
22343 $(HOST_EXPORTS) \
22344 $(POSTSTAGE1_HOST_EXPORTS) \
22345 cd $(HOST_SUBDIR)/ld && \
22346 $$s/gcc/config/i386/$(AUTO_PROFILE) \
22347 $(MAKE) $(BASE_FLAGS_TO_PASS) \
22348 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
22349 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
22350 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
22351 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
22352 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22353 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22354 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22355 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22356 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
22357 $(TARGET-stageautoprofile-ld)
22358
22359maybe-clean-stageautoprofile-ld: clean-stageautoprofile-ld
22360clean-stageautoprofile: clean-stageautoprofile-ld
22361clean-stageautoprofile-ld:
22362 @if [ $(current_stage) = stageautoprofile ]; then \
22363 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
22364 else \
22365 [ -f $(HOST_SUBDIR)/stageautoprofile-ld/Makefile ] || exit 0; \
22366 $(MAKE) stageautoprofile-start; \
22367 fi; \
22368 cd $(HOST_SUBDIR)/ld && \
22369 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
22370@endif ld-bootstrap
22371
22372
22373.PHONY: all-stageautofeedback-ld maybe-all-stageautofeedback-ld
22374.PHONY: clean-stageautofeedback-ld maybe-clean-stageautofeedback-ld
22375maybe-all-stageautofeedback-ld:
22376maybe-clean-stageautofeedback-ld:
22377@if ld-bootstrap
22378maybe-all-stageautofeedback-ld: all-stageautofeedback-ld
22379all-stageautofeedback: all-stageautofeedback-ld
22380TARGET-stageautofeedback-ld = $(TARGET-ld)
22381all-stageautofeedback-ld: configure-stageautofeedback-ld
22382 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
22383 @r=`${PWD_COMMAND}`; export r; \
22384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22385 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
22386 $(HOST_EXPORTS) \
22387 $(POSTSTAGE1_HOST_EXPORTS) \
22388 cd $(HOST_SUBDIR)/ld && \
22389 \
22390 $(MAKE) $(BASE_FLAGS_TO_PASS) \
22391 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
22392 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
22393 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
22394 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
22395 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22396 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22397 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22398 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
22399 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
22400 $(TARGET-stageautofeedback-ld)
22401
22402maybe-clean-stageautofeedback-ld: clean-stageautofeedback-ld
22403clean-stageautofeedback: clean-stageautofeedback-ld
22404clean-stageautofeedback-ld:
22405 @if [ $(current_stage) = stageautofeedback ]; then \
22406 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
22407 else \
22408 [ -f $(HOST_SUBDIR)/stageautofeedback-ld/Makefile ] || exit 0; \
22409 $(MAKE) stageautofeedback-start; \
22410 fi; \
22411 cd $(HOST_SUBDIR)/ld && \
22412 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
22413@endif ld-bootstrap
22414
22415
e28c595f
JM
22416
22417
22418
a90ef4bf
JM
22419.PHONY: check-ld maybe-check-ld
22420maybe-check-ld:
22421@if ld
22422maybe-check-ld: check-ld
e28c595f 22423
a90ef4bf 22424check-ld:
e28c595f
JM
22425 @: $(MAKE); $(unstage)
22426 @r=`${PWD_COMMAND}`; export r; \
22427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22428 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 22429 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 22430 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 22431
a90ef4bf 22432@endif ld
e28c595f 22433
a90ef4bf
JM
22434.PHONY: install-ld maybe-install-ld
22435maybe-install-ld:
22436@if ld
22437maybe-install-ld: install-ld
e28c595f 22438
a90ef4bf
JM
22439install-ld: installdirs
22440 @: $(MAKE); $(unstage)
22441 @r=`${PWD_COMMAND}`; export r; \
22442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22443 $(HOST_EXPORTS) \
22444 (cd $(HOST_SUBDIR)/ld && \
22445 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 22446
a90ef4bf 22447@endif ld
e28c595f 22448
a90ef4bf
JM
22449.PHONY: install-strip-ld maybe-install-strip-ld
22450maybe-install-strip-ld:
22451@if ld
22452maybe-install-strip-ld: install-strip-ld
9b980aa1 22453
a90ef4bf
JM
22454install-strip-ld: installdirs
22455 @: $(MAKE); $(unstage)
22456 @r=`${PWD_COMMAND}`; export r; \
22457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22458 $(HOST_EXPORTS) \
22459 (cd $(HOST_SUBDIR)/ld && \
22460 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 22461
a90ef4bf 22462@endif ld
9b980aa1 22463
e28c595f
JM
22464# Other targets (info, dvi, pdf, etc.)
22465
a90ef4bf
JM
22466.PHONY: maybe-info-ld info-ld
22467maybe-info-ld:
22468@if ld
22469maybe-info-ld: info-ld
e28c595f 22470
a90ef4bf
JM
22471info-ld: \
22472 configure-ld
22473 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
22474 r=`${PWD_COMMAND}`; export r; \
22475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22476 $(HOST_EXPORTS) \
22477 for flag in $(EXTRA_HOST_FLAGS) ; do \
22478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22479 done; \
22121df0 22480 echo "Doing info in ld"; \
a90ef4bf 22481 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
22482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22484 "RANLIB=$${RANLIB}" \
22485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22486 info) \
22487 || exit 1
22488
a90ef4bf 22489@endif ld
e28c595f 22490
a90ef4bf
JM
22491.PHONY: maybe-dvi-ld dvi-ld
22492maybe-dvi-ld:
22493@if ld
22494maybe-dvi-ld: dvi-ld
e28c595f 22495
a90ef4bf
JM
22496dvi-ld: \
22497 configure-ld
22498 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
22499 r=`${PWD_COMMAND}`; export r; \
22500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22501 $(HOST_EXPORTS) \
22502 for flag in $(EXTRA_HOST_FLAGS) ; do \
22503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22504 done; \
22121df0 22505 echo "Doing dvi in ld"; \
a90ef4bf 22506 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
22507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22509 "RANLIB=$${RANLIB}" \
22510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22511 dvi) \
22512 || exit 1
22513
a90ef4bf 22514@endif ld
e28c595f 22515
a90ef4bf
JM
22516.PHONY: maybe-pdf-ld pdf-ld
22517maybe-pdf-ld:
22518@if ld
22519maybe-pdf-ld: pdf-ld
e28c595f 22520
a90ef4bf
JM
22521pdf-ld: \
22522 configure-ld
22523 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
22524 r=`${PWD_COMMAND}`; export r; \
22525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22526 $(HOST_EXPORTS) \
22527 for flag in $(EXTRA_HOST_FLAGS) ; do \
22528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22529 done; \
22121df0 22530 echo "Doing pdf in ld"; \
a90ef4bf 22531 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
22532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22534 "RANLIB=$${RANLIB}" \
22535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22536 pdf) \
22537 || exit 1
22538
a90ef4bf 22539@endif ld
e28c595f 22540
a90ef4bf
JM
22541.PHONY: maybe-html-ld html-ld
22542maybe-html-ld:
22543@if ld
22544maybe-html-ld: html-ld
e28c595f 22545
a90ef4bf
JM
22546html-ld: \
22547 configure-ld
22548 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
22549 r=`${PWD_COMMAND}`; export r; \
22550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22551 $(HOST_EXPORTS) \
22552 for flag in $(EXTRA_HOST_FLAGS) ; do \
22553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22554 done; \
22121df0 22555 echo "Doing html in ld"; \
a90ef4bf 22556 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
22557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22559 "RANLIB=$${RANLIB}" \
22560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22561 html) \
22562 || exit 1
22563
a90ef4bf 22564@endif ld
e28c595f 22565
a90ef4bf
JM
22566.PHONY: maybe-TAGS-ld TAGS-ld
22567maybe-TAGS-ld:
22568@if ld
22569maybe-TAGS-ld: TAGS-ld
e28c595f 22570
a90ef4bf
JM
22571TAGS-ld: \
22572 configure-ld
22573 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
22574 r=`${PWD_COMMAND}`; export r; \
22575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22576 $(HOST_EXPORTS) \
22577 for flag in $(EXTRA_HOST_FLAGS) ; do \
22578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22579 done; \
22121df0 22580 echo "Doing TAGS in ld"; \
a90ef4bf 22581 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
22582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22584 "RANLIB=$${RANLIB}" \
22585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22586 TAGS) \
22587 || exit 1
22588
a90ef4bf 22589@endif ld
e28c595f 22590
a90ef4bf
JM
22591.PHONY: maybe-install-info-ld install-info-ld
22592maybe-install-info-ld:
22593@if ld
22594maybe-install-info-ld: install-info-ld
e28c595f 22595
a90ef4bf
JM
22596install-info-ld: \
22597 configure-ld \
22598 info-ld
22599 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
22600 r=`${PWD_COMMAND}`; export r; \
22601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22602 $(HOST_EXPORTS) \
22603 for flag in $(EXTRA_HOST_FLAGS) ; do \
22604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22605 done; \
22121df0 22606 echo "Doing install-info in ld"; \
a90ef4bf 22607 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
22608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22610 "RANLIB=$${RANLIB}" \
22611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22612 install-info) \
22613 || exit 1
22614
a90ef4bf 22615@endif ld
e28c595f 22616
a90ef4bf
JM
22617.PHONY: maybe-install-pdf-ld install-pdf-ld
22618maybe-install-pdf-ld:
22619@if ld
22620maybe-install-pdf-ld: install-pdf-ld
e28c595f 22621
a90ef4bf
JM
22622install-pdf-ld: \
22623 configure-ld \
22624 pdf-ld
22625 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
22626 r=`${PWD_COMMAND}`; export r; \
22627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22628 $(HOST_EXPORTS) \
22629 for flag in $(EXTRA_HOST_FLAGS) ; do \
22630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22631 done; \
22121df0 22632 echo "Doing install-pdf in ld"; \
a90ef4bf 22633 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
22634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22636 "RANLIB=$${RANLIB}" \
22637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22638 install-pdf) \
22639 || exit 1
22640
a90ef4bf 22641@endif ld
e28c595f 22642
a90ef4bf
JM
22643.PHONY: maybe-install-html-ld install-html-ld
22644maybe-install-html-ld:
22645@if ld
22646maybe-install-html-ld: install-html-ld
e28c595f 22647
a90ef4bf
JM
22648install-html-ld: \
22649 configure-ld \
22650 html-ld
22651 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
22652 r=`${PWD_COMMAND}`; export r; \
22653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22654 $(HOST_EXPORTS) \
22655 for flag in $(EXTRA_HOST_FLAGS) ; do \
22656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22657 done; \
22121df0 22658 echo "Doing install-html in ld"; \
a90ef4bf 22659 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
22660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22662 "RANLIB=$${RANLIB}" \
22663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22664 install-html) \
22665 || exit 1
22666
a90ef4bf 22667@endif ld
e28c595f 22668
a90ef4bf
JM
22669.PHONY: maybe-installcheck-ld installcheck-ld
22670maybe-installcheck-ld:
22671@if ld
22672maybe-installcheck-ld: installcheck-ld
e28c595f 22673
a90ef4bf
JM
22674installcheck-ld: \
22675 configure-ld
22676 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
22677 r=`${PWD_COMMAND}`; export r; \
22678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22679 $(HOST_EXPORTS) \
22680 for flag in $(EXTRA_HOST_FLAGS) ; do \
22681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22682 done; \
22121df0 22683 echo "Doing installcheck in ld"; \
a90ef4bf 22684 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
22685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22687 "RANLIB=$${RANLIB}" \
0c24b341 22688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
22689 installcheck) \
22690 || exit 1
22691
a90ef4bf 22692@endif ld
4b900473 22693
a90ef4bf
JM
22694.PHONY: maybe-mostlyclean-ld mostlyclean-ld
22695maybe-mostlyclean-ld:
22696@if ld
22697maybe-mostlyclean-ld: mostlyclean-ld
4b900473 22698
a90ef4bf
JM
22699mostlyclean-ld:
22700 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
22701 r=`${PWD_COMMAND}`; export r; \
22702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22703 $(HOST_EXPORTS) \
22704 for flag in $(EXTRA_HOST_FLAGS) ; do \
22705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22706 done; \
22121df0 22707 echo "Doing mostlyclean in ld"; \
a90ef4bf 22708 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
22709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22711 "RANLIB=$${RANLIB}" \
0c24b341 22712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
22713 mostlyclean) \
22714 || exit 1
22715
a90ef4bf 22716@endif ld
4b900473 22717
a90ef4bf
JM
22718.PHONY: maybe-clean-ld clean-ld
22719maybe-clean-ld:
22720@if ld
22721maybe-clean-ld: clean-ld
4b900473 22722
a90ef4bf
JM
22723clean-ld:
22724 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
22725 r=`${PWD_COMMAND}`; export r; \
22726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22727 $(HOST_EXPORTS) \
22728 for flag in $(EXTRA_HOST_FLAGS) ; do \
22729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22730 done; \
22121df0 22731 echo "Doing clean in ld"; \
a90ef4bf 22732 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
22733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22735 "RANLIB=$${RANLIB}" \
0c24b341 22736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
22737 clean) \
22738 || exit 1
22739
a90ef4bf 22740@endif ld
4b900473 22741
a90ef4bf
JM
22742.PHONY: maybe-distclean-ld distclean-ld
22743maybe-distclean-ld:
22744@if ld
22745maybe-distclean-ld: distclean-ld
4b900473 22746
a90ef4bf
JM
22747distclean-ld:
22748 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
22749 r=`${PWD_COMMAND}`; export r; \
22750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22751 $(HOST_EXPORTS) \
22752 for flag in $(EXTRA_HOST_FLAGS) ; do \
22753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22754 done; \
22121df0 22755 echo "Doing distclean in ld"; \
a90ef4bf 22756 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
22757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22759 "RANLIB=$${RANLIB}" \
0c24b341 22760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
22761 distclean) \
22762 || exit 1
22763
a90ef4bf 22764@endif ld
4b900473 22765
a90ef4bf
JM
22766.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
22767maybe-maintainer-clean-ld:
22768@if ld
22769maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 22770
a90ef4bf
JM
22771maintainer-clean-ld:
22772 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
22773 r=`${PWD_COMMAND}`; export r; \
22774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22775 $(HOST_EXPORTS) \
22776 for flag in $(EXTRA_HOST_FLAGS) ; do \
22777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22778 done; \
22121df0 22779 echo "Doing maintainer-clean in ld"; \
a90ef4bf 22780 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
22781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22783 "RANLIB=$${RANLIB}" \
0c24b341 22784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
22785 maintainer-clean) \
22786 || exit 1
22787
a90ef4bf 22788@endif ld
4b900473
PB
22789
22790
22791
2bf680c4
ILT
22792.PHONY: configure-libbacktrace maybe-configure-libbacktrace
22793maybe-configure-libbacktrace:
22794@if gcc-bootstrap
22795configure-libbacktrace: stage_current
22796@endif gcc-bootstrap
22797@if libbacktrace
22798maybe-configure-libbacktrace: configure-libbacktrace
22799configure-libbacktrace:
22800 @r=`${PWD_COMMAND}`; export r; \
22801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22802 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 22803 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
22804 $(HOST_EXPORTS) \
22805 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
22806 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
22807 case $(srcdir) in \
22808 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22809 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
22810 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22811 esac; \
1b6c0831
L
22812 module_srcdir=libbacktrace; \
22813 $(SHELL) \
22814 $$s/$$module_srcdir/configure \
22815 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 22816 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22817 --target=${target_alias} \
2bf680c4
ILT
22818 || exit 1
22819@endif libbacktrace
22820
22821
22822
22823.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
22824maybe-configure-stage1-libbacktrace:
22825@if libbacktrace-bootstrap
22826maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
22827configure-stage1-libbacktrace:
22828 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22829 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
22830 @r=`${PWD_COMMAND}`; export r; \
22831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22832 TFLAGS="$(STAGE1_TFLAGS)"; \
22833 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22834 $(HOST_EXPORTS) \
22835 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
22836 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22837 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22838 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
22839 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
22840 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
22841 case $(srcdir) in \
22842 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22843 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
22844 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22845 esac; \
1b6c0831
L
22846 module_srcdir=libbacktrace; \
22847 $(SHELL) $$s/$$module_srcdir/configure \
22848 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 22849 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22850 --target=${target_alias} \
22851 \
2bf680c4
ILT
22852 $(STAGE1_CONFIGURE_FLAGS)
22853@endif libbacktrace-bootstrap
22854
22855.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
22856maybe-configure-stage2-libbacktrace:
22857@if libbacktrace-bootstrap
22858maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
22859configure-stage2-libbacktrace:
22860 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22861 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
22862 @r=`${PWD_COMMAND}`; export r; \
22863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22864 TFLAGS="$(STAGE2_TFLAGS)"; \
22865 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22866 $(HOST_EXPORTS) \
22867 $(POSTSTAGE1_HOST_EXPORTS) \
22868 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
22869 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22870 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22871 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
22872 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
22873 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
22874 case $(srcdir) in \
22875 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22876 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
22877 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22878 esac; \
1b6c0831
L
22879 module_srcdir=libbacktrace; \
22880 $(SHELL) $$s/$$module_srcdir/configure \
22881 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 22882 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22883 --target=${target_alias} \
22121df0 22884 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
22885 $(STAGE2_CONFIGURE_FLAGS)
22886@endif libbacktrace-bootstrap
22887
22888.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
22889maybe-configure-stage3-libbacktrace:
22890@if libbacktrace-bootstrap
22891maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
22892configure-stage3-libbacktrace:
22893 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22894 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
22895 @r=`${PWD_COMMAND}`; export r; \
22896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22897 TFLAGS="$(STAGE3_TFLAGS)"; \
22898 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22899 $(HOST_EXPORTS) \
22900 $(POSTSTAGE1_HOST_EXPORTS) \
22901 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
22902 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22903 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22904 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
22905 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
22906 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
22907 case $(srcdir) in \
22908 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22909 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
22910 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22911 esac; \
1b6c0831
L
22912 module_srcdir=libbacktrace; \
22913 $(SHELL) $$s/$$module_srcdir/configure \
22914 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 22915 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22916 --target=${target_alias} \
22121df0 22917 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
22918 $(STAGE3_CONFIGURE_FLAGS)
22919@endif libbacktrace-bootstrap
22920
22921.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
22922maybe-configure-stage4-libbacktrace:
22923@if libbacktrace-bootstrap
22924maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
22925configure-stage4-libbacktrace:
22926 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22927 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
22928 @r=`${PWD_COMMAND}`; export r; \
22929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22930 TFLAGS="$(STAGE4_TFLAGS)"; \
22931 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22932 $(HOST_EXPORTS) \
22933 $(POSTSTAGE1_HOST_EXPORTS) \
22934 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
22935 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22936 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22937 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
22938 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
22939 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
22940 case $(srcdir) in \
22941 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22942 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
22943 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22944 esac; \
1b6c0831
L
22945 module_srcdir=libbacktrace; \
22946 $(SHELL) $$s/$$module_srcdir/configure \
22947 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 22948 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22949 --target=${target_alias} \
22121df0 22950 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
22951 $(STAGE4_CONFIGURE_FLAGS)
22952@endif libbacktrace-bootstrap
22953
22954.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
22955maybe-configure-stageprofile-libbacktrace:
22956@if libbacktrace-bootstrap
22957maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
22958configure-stageprofile-libbacktrace:
22959 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22960 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
22961 @r=`${PWD_COMMAND}`; export r; \
22962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22963 TFLAGS="$(STAGEprofile_TFLAGS)"; \
22964 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22965 $(HOST_EXPORTS) \
22966 $(POSTSTAGE1_HOST_EXPORTS) \
22967 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
22968 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22969 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22970 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
22971 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
22972 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
22973 case $(srcdir) in \
22974 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22975 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
22976 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22977 esac; \
1b6c0831
L
22978 module_srcdir=libbacktrace; \
22979 $(SHELL) $$s/$$module_srcdir/configure \
22980 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 22981 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22982 --target=${target_alias} \
22121df0 22983 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
22984 $(STAGEprofile_CONFIGURE_FLAGS)
22985@endif libbacktrace-bootstrap
22986
f948b2de
NC
22987.PHONY: configure-stagetrain-libbacktrace maybe-configure-stagetrain-libbacktrace
22988maybe-configure-stagetrain-libbacktrace:
22989@if libbacktrace-bootstrap
22990maybe-configure-stagetrain-libbacktrace: configure-stagetrain-libbacktrace
22991configure-stagetrain-libbacktrace:
22992 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
22993 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
22994 @r=`${PWD_COMMAND}`; export r; \
22995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22996 TFLAGS="$(STAGEtrain_TFLAGS)"; \
22997 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22998 $(HOST_EXPORTS) \
22999 $(POSTSTAGE1_HOST_EXPORTS) \
23000 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
23001 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
23002 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
23003 echo Configuring stage train in $(HOST_SUBDIR)/libbacktrace; \
23004 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
23005 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
23006 case $(srcdir) in \
23007 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23008 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
23009 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23010 esac; \
23011 module_srcdir=libbacktrace; \
23012 $(SHELL) $$s/$$module_srcdir/configure \
23013 --srcdir=$${topdir}/$$module_srcdir \
23014 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23015 --target=${target_alias} \
23016 --with-build-libsubdir=$(HOST_SUBDIR) \
23017 $(STAGEtrain_CONFIGURE_FLAGS)
23018@endif libbacktrace-bootstrap
23019
2bf680c4
ILT
23020.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
23021maybe-configure-stagefeedback-libbacktrace:
23022@if libbacktrace-bootstrap
23023maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
23024configure-stagefeedback-libbacktrace:
23025 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23026 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
23027 @r=`${PWD_COMMAND}`; export r; \
23028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23029 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23030 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
23031 $(HOST_EXPORTS) \
23032 $(POSTSTAGE1_HOST_EXPORTS) \
23033 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23034 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23035 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23036 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
23037 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
23038 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
23039 case $(srcdir) in \
23040 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23041 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
23042 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23043 esac; \
1b6c0831
L
23044 module_srcdir=libbacktrace; \
23045 $(SHELL) $$s/$$module_srcdir/configure \
23046 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 23047 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 23048 --target=${target_alias} \
22121df0 23049 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
23050 $(STAGEfeedback_CONFIGURE_FLAGS)
23051@endif libbacktrace-bootstrap
23052
f948b2de
NC
23053.PHONY: configure-stageautoprofile-libbacktrace maybe-configure-stageautoprofile-libbacktrace
23054maybe-configure-stageautoprofile-libbacktrace:
23055@if libbacktrace-bootstrap
23056maybe-configure-stageautoprofile-libbacktrace: configure-stageautoprofile-libbacktrace
23057configure-stageautoprofile-libbacktrace:
23058 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
23059 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
23060 @r=`${PWD_COMMAND}`; export r; \
23061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23062 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
23063 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
23064 $(HOST_EXPORTS) \
23065 $(POSTSTAGE1_HOST_EXPORTS) \
23066 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
23067 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
23068 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
23069 echo Configuring stage autoprofile in $(HOST_SUBDIR)/libbacktrace; \
23070 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
23071 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
23072 case $(srcdir) in \
23073 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23074 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
23075 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23076 esac; \
23077 module_srcdir=libbacktrace; \
23078 $(SHELL) $$s/$$module_srcdir/configure \
23079 --srcdir=$${topdir}/$$module_srcdir \
23080 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23081 --target=${target_alias} \
23082 --with-build-libsubdir=$(HOST_SUBDIR) \
23083 $(STAGEautoprofile_CONFIGURE_FLAGS)
23084@endif libbacktrace-bootstrap
23085
23086.PHONY: configure-stageautofeedback-libbacktrace maybe-configure-stageautofeedback-libbacktrace
23087maybe-configure-stageautofeedback-libbacktrace:
23088@if libbacktrace-bootstrap
23089maybe-configure-stageautofeedback-libbacktrace: configure-stageautofeedback-libbacktrace
23090configure-stageautofeedback-libbacktrace:
23091 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
23092 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
23093 @r=`${PWD_COMMAND}`; export r; \
23094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23095 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
23096 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
23097 $(HOST_EXPORTS) \
23098 $(POSTSTAGE1_HOST_EXPORTS) \
23099 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
23100 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
23101 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
23102 echo Configuring stage autofeedback in $(HOST_SUBDIR)/libbacktrace; \
23103 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
23104 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
23105 case $(srcdir) in \
23106 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23107 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
23108 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23109 esac; \
23110 module_srcdir=libbacktrace; \
23111 $(SHELL) $$s/$$module_srcdir/configure \
23112 --srcdir=$${topdir}/$$module_srcdir \
23113 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23114 --target=${target_alias} \
23115 --with-build-libsubdir=$(HOST_SUBDIR) \
23116 $(STAGEautofeedback_CONFIGURE_FLAGS)
23117@endif libbacktrace-bootstrap
23118
2bf680c4
ILT
23119
23120
23121
23122
23123.PHONY: all-libbacktrace maybe-all-libbacktrace
23124maybe-all-libbacktrace:
23125@if gcc-bootstrap
23126all-libbacktrace: stage_current
23127@endif gcc-bootstrap
23128@if libbacktrace
23129TARGET-libbacktrace=all
23130maybe-all-libbacktrace: all-libbacktrace
23131all-libbacktrace: configure-libbacktrace
23132 @r=`${PWD_COMMAND}`; export r; \
23133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23134 $(HOST_EXPORTS) \
23135 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 23136 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
23137 $(TARGET-libbacktrace))
23138@endif libbacktrace
23139
23140
23141
23142.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
23143.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
23144maybe-all-stage1-libbacktrace:
23145maybe-clean-stage1-libbacktrace:
23146@if libbacktrace-bootstrap
23147maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
23148all-stage1: all-stage1-libbacktrace
23149TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
23150all-stage1-libbacktrace: configure-stage1-libbacktrace
23151 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23152 @r=`${PWD_COMMAND}`; export r; \
23153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23154 TFLAGS="$(STAGE1_TFLAGS)"; \
23155 $(HOST_EXPORTS) \
23156 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 23157 \
2bf680c4
ILT
23158 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23159 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 23160 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
2bf680c4
ILT
23161 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23162 LIBCFLAGS="$(LIBCFLAGS)" \
23163 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23164 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23165 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
23166 $(EXTRA_HOST_FLAGS) \
23167 $(STAGE1_FLAGS_TO_PASS) \
05a13254 23168 TFLAGS="$(STAGE1_TFLAGS)" \
2bf680c4
ILT
23169 $(TARGET-stage1-libbacktrace)
23170
23171maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
23172clean-stage1: clean-stage1-libbacktrace
23173clean-stage1-libbacktrace:
23174 @if [ $(current_stage) = stage1 ]; then \
23175 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
23176 else \
23177 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
23178 $(MAKE) stage1-start; \
23179 fi; \
23180 cd $(HOST_SUBDIR)/libbacktrace && \
23181 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 23182 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
23183@endif libbacktrace-bootstrap
23184
23185
23186.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
23187.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
23188maybe-all-stage2-libbacktrace:
23189maybe-clean-stage2-libbacktrace:
23190@if libbacktrace-bootstrap
23191maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
23192all-stage2: all-stage2-libbacktrace
23193TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
23194all-stage2-libbacktrace: configure-stage2-libbacktrace
23195 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23196 @r=`${PWD_COMMAND}`; export r; \
23197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23198 TFLAGS="$(STAGE2_TFLAGS)"; \
23199 $(HOST_EXPORTS) \
23200 $(POSTSTAGE1_HOST_EXPORTS) \
23201 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 23202 \
2bf680c4
ILT
23203 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23204 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 23205 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
2bf680c4
ILT
23206 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23207 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23208 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23209 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23210 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23211 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 23212 TFLAGS="$(STAGE2_TFLAGS)" \
2bf680c4
ILT
23213 $(TARGET-stage2-libbacktrace)
23214
23215maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
23216clean-stage2: clean-stage2-libbacktrace
23217clean-stage2-libbacktrace:
23218 @if [ $(current_stage) = stage2 ]; then \
23219 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
23220 else \
23221 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
23222 $(MAKE) stage2-start; \
23223 fi; \
23224 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 23225 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
23226@endif libbacktrace-bootstrap
23227
23228
23229.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
23230.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
23231maybe-all-stage3-libbacktrace:
23232maybe-clean-stage3-libbacktrace:
23233@if libbacktrace-bootstrap
23234maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
23235all-stage3: all-stage3-libbacktrace
23236TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
23237all-stage3-libbacktrace: configure-stage3-libbacktrace
23238 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23239 @r=`${PWD_COMMAND}`; export r; \
23240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23241 TFLAGS="$(STAGE3_TFLAGS)"; \
23242 $(HOST_EXPORTS) \
23243 $(POSTSTAGE1_HOST_EXPORTS) \
23244 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 23245 \
2bf680c4
ILT
23246 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23247 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 23248 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
2bf680c4
ILT
23249 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23250 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23251 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23252 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23253 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23254 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 23255 TFLAGS="$(STAGE3_TFLAGS)" \
2bf680c4
ILT
23256 $(TARGET-stage3-libbacktrace)
23257
23258maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
23259clean-stage3: clean-stage3-libbacktrace
23260clean-stage3-libbacktrace:
23261 @if [ $(current_stage) = stage3 ]; then \
23262 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
23263 else \
23264 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
23265 $(MAKE) stage3-start; \
23266 fi; \
23267 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 23268 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
23269@endif libbacktrace-bootstrap
23270
23271
23272.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
23273.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
23274maybe-all-stage4-libbacktrace:
23275maybe-clean-stage4-libbacktrace:
23276@if libbacktrace-bootstrap
23277maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
23278all-stage4: all-stage4-libbacktrace
23279TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
23280all-stage4-libbacktrace: configure-stage4-libbacktrace
23281 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23282 @r=`${PWD_COMMAND}`; export r; \
23283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23284 TFLAGS="$(STAGE4_TFLAGS)"; \
23285 $(HOST_EXPORTS) \
23286 $(POSTSTAGE1_HOST_EXPORTS) \
23287 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 23288 \
2bf680c4
ILT
23289 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23290 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 23291 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
2bf680c4
ILT
23292 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23293 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23294 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23295 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23296 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23297 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 23298 TFLAGS="$(STAGE4_TFLAGS)" \
2bf680c4
ILT
23299 $(TARGET-stage4-libbacktrace)
23300
23301maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
23302clean-stage4: clean-stage4-libbacktrace
23303clean-stage4-libbacktrace:
23304 @if [ $(current_stage) = stage4 ]; then \
23305 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
23306 else \
23307 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
23308 $(MAKE) stage4-start; \
23309 fi; \
23310 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 23311 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
23312@endif libbacktrace-bootstrap
23313
23314
23315.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
23316.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
23317maybe-all-stageprofile-libbacktrace:
23318maybe-clean-stageprofile-libbacktrace:
23319@if libbacktrace-bootstrap
23320maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
23321all-stageprofile: all-stageprofile-libbacktrace
23322TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
23323all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
23324 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23325 @r=`${PWD_COMMAND}`; export r; \
23326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23327 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23328 $(HOST_EXPORTS) \
23329 $(POSTSTAGE1_HOST_EXPORTS) \
23330 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 23331 \
2bf680c4
ILT
23332 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23333 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 23334 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
2bf680c4
ILT
23335 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23336 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23337 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23338 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23339 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23340 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 23341 TFLAGS="$(STAGEprofile_TFLAGS)" \
2bf680c4
ILT
23342 $(TARGET-stageprofile-libbacktrace)
23343
23344maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
23345clean-stageprofile: clean-stageprofile-libbacktrace
23346clean-stageprofile-libbacktrace:
23347 @if [ $(current_stage) = stageprofile ]; then \
23348 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
23349 else \
23350 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
23351 $(MAKE) stageprofile-start; \
23352 fi; \
23353 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 23354 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
23355@endif libbacktrace-bootstrap
23356
23357
f948b2de
NC
23358.PHONY: all-stagetrain-libbacktrace maybe-all-stagetrain-libbacktrace
23359.PHONY: clean-stagetrain-libbacktrace maybe-clean-stagetrain-libbacktrace
23360maybe-all-stagetrain-libbacktrace:
23361maybe-clean-stagetrain-libbacktrace:
23362@if libbacktrace-bootstrap
23363maybe-all-stagetrain-libbacktrace: all-stagetrain-libbacktrace
23364all-stagetrain: all-stagetrain-libbacktrace
23365TARGET-stagetrain-libbacktrace = $(TARGET-libbacktrace)
23366all-stagetrain-libbacktrace: configure-stagetrain-libbacktrace
23367 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
23368 @r=`${PWD_COMMAND}`; export r; \
23369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23370 TFLAGS="$(STAGEtrain_TFLAGS)"; \
23371 $(HOST_EXPORTS) \
23372 $(POSTSTAGE1_HOST_EXPORTS) \
23373 cd $(HOST_SUBDIR)/libbacktrace && \
23374 \
23375 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23376 CFLAGS="$(STAGEtrain_CFLAGS)" \
23377 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
23378 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
23379 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
23380 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23381 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23382 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23383 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
23384 TFLAGS="$(STAGEtrain_TFLAGS)" \
23385 $(TARGET-stagetrain-libbacktrace)
23386
23387maybe-clean-stagetrain-libbacktrace: clean-stagetrain-libbacktrace
23388clean-stagetrain: clean-stagetrain-libbacktrace
23389clean-stagetrain-libbacktrace:
23390 @if [ $(current_stage) = stagetrain ]; then \
23391 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
23392 else \
23393 [ -f $(HOST_SUBDIR)/stagetrain-libbacktrace/Makefile ] || exit 0; \
23394 $(MAKE) stagetrain-start; \
23395 fi; \
23396 cd $(HOST_SUBDIR)/libbacktrace && \
23397 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
23398@endif libbacktrace-bootstrap
23399
23400
2bf680c4
ILT
23401.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
23402.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
23403maybe-all-stagefeedback-libbacktrace:
23404maybe-clean-stagefeedback-libbacktrace:
23405@if libbacktrace-bootstrap
23406maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
23407all-stagefeedback: all-stagefeedback-libbacktrace
23408TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
23409all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
23410 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23411 @r=`${PWD_COMMAND}`; export r; \
23412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23413 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23414 $(HOST_EXPORTS) \
23415 $(POSTSTAGE1_HOST_EXPORTS) \
23416 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 23417 \
2bf680c4
ILT
23418 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23419 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 23420 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
2bf680c4
ILT
23421 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23422 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23423 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23424 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23425 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23426 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 23427 TFLAGS="$(STAGEfeedback_TFLAGS)" \
2bf680c4
ILT
23428 $(TARGET-stagefeedback-libbacktrace)
23429
23430maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
23431clean-stagefeedback: clean-stagefeedback-libbacktrace
23432clean-stagefeedback-libbacktrace:
23433 @if [ $(current_stage) = stagefeedback ]; then \
23434 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
23435 else \
23436 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
23437 $(MAKE) stagefeedback-start; \
23438 fi; \
23439 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 23440 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
23441@endif libbacktrace-bootstrap
23442
23443
f948b2de
NC
23444.PHONY: all-stageautoprofile-libbacktrace maybe-all-stageautoprofile-libbacktrace
23445.PHONY: clean-stageautoprofile-libbacktrace maybe-clean-stageautoprofile-libbacktrace
23446maybe-all-stageautoprofile-libbacktrace:
23447maybe-clean-stageautoprofile-libbacktrace:
23448@if libbacktrace-bootstrap
23449maybe-all-stageautoprofile-libbacktrace: all-stageautoprofile-libbacktrace
23450all-stageautoprofile: all-stageautoprofile-libbacktrace
23451TARGET-stageautoprofile-libbacktrace = $(TARGET-libbacktrace)
23452all-stageautoprofile-libbacktrace: configure-stageautoprofile-libbacktrace
23453 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
23454 @r=`${PWD_COMMAND}`; export r; \
23455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23456 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
23457 $(HOST_EXPORTS) \
23458 $(POSTSTAGE1_HOST_EXPORTS) \
23459 cd $(HOST_SUBDIR)/libbacktrace && \
23460 $$s/gcc/config/i386/$(AUTO_PROFILE) \
23461 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23462 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
23463 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
23464 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
23465 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
23466 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23467 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23468 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23469 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
23470 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
23471 $(TARGET-stageautoprofile-libbacktrace)
23472
23473maybe-clean-stageautoprofile-libbacktrace: clean-stageautoprofile-libbacktrace
23474clean-stageautoprofile: clean-stageautoprofile-libbacktrace
23475clean-stageautoprofile-libbacktrace:
23476 @if [ $(current_stage) = stageautoprofile ]; then \
23477 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
23478 else \
23479 [ -f $(HOST_SUBDIR)/stageautoprofile-libbacktrace/Makefile ] || exit 0; \
23480 $(MAKE) stageautoprofile-start; \
23481 fi; \
23482 cd $(HOST_SUBDIR)/libbacktrace && \
23483 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
23484@endif libbacktrace-bootstrap
23485
23486
23487.PHONY: all-stageautofeedback-libbacktrace maybe-all-stageautofeedback-libbacktrace
23488.PHONY: clean-stageautofeedback-libbacktrace maybe-clean-stageautofeedback-libbacktrace
23489maybe-all-stageautofeedback-libbacktrace:
23490maybe-clean-stageautofeedback-libbacktrace:
23491@if libbacktrace-bootstrap
23492maybe-all-stageautofeedback-libbacktrace: all-stageautofeedback-libbacktrace
23493all-stageautofeedback: all-stageautofeedback-libbacktrace
23494TARGET-stageautofeedback-libbacktrace = $(TARGET-libbacktrace)
23495all-stageautofeedback-libbacktrace: configure-stageautofeedback-libbacktrace
23496 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
23497 @r=`${PWD_COMMAND}`; export r; \
23498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23499 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
23500 $(HOST_EXPORTS) \
23501 $(POSTSTAGE1_HOST_EXPORTS) \
23502 cd $(HOST_SUBDIR)/libbacktrace && \
23503 \
23504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23505 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
23506 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
23507 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
23508 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
23509 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23510 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23511 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23512 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
23513 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
23514 $(TARGET-stageautofeedback-libbacktrace)
23515
23516maybe-clean-stageautofeedback-libbacktrace: clean-stageautofeedback-libbacktrace
23517clean-stageautofeedback: clean-stageautofeedback-libbacktrace
23518clean-stageautofeedback-libbacktrace:
23519 @if [ $(current_stage) = stageautofeedback ]; then \
23520 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
23521 else \
23522 [ -f $(HOST_SUBDIR)/stageautofeedback-libbacktrace/Makefile ] || exit 0; \
23523 $(MAKE) stageautofeedback-start; \
23524 fi; \
23525 cd $(HOST_SUBDIR)/libbacktrace && \
23526 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
23527@endif libbacktrace-bootstrap
23528
23529
2bf680c4
ILT
23530
23531
23532
23533.PHONY: check-libbacktrace maybe-check-libbacktrace
23534maybe-check-libbacktrace:
23535@if libbacktrace
23536maybe-check-libbacktrace: check-libbacktrace
23537
23538check-libbacktrace:
23539 @: $(MAKE); $(unstage)
23540 @r=`${PWD_COMMAND}`; export r; \
23541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23542 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 23543 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 23544 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
23545
23546@endif libbacktrace
23547
23548.PHONY: install-libbacktrace maybe-install-libbacktrace
23549maybe-install-libbacktrace:
23550@if libbacktrace
23551maybe-install-libbacktrace: install-libbacktrace
23552
23553install-libbacktrace: installdirs
23554 @: $(MAKE); $(unstage)
23555 @r=`${PWD_COMMAND}`; export r; \
23556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23557 $(HOST_EXPORTS) \
23558 (cd $(HOST_SUBDIR)/libbacktrace && \
23559 $(MAKE) $(FLAGS_TO_PASS) install)
23560
23561@endif libbacktrace
23562
23563.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
23564maybe-install-strip-libbacktrace:
23565@if libbacktrace
23566maybe-install-strip-libbacktrace: install-strip-libbacktrace
23567
23568install-strip-libbacktrace: installdirs
23569 @: $(MAKE); $(unstage)
23570 @r=`${PWD_COMMAND}`; export r; \
23571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23572 $(HOST_EXPORTS) \
23573 (cd $(HOST_SUBDIR)/libbacktrace && \
23574 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23575
23576@endif libbacktrace
23577
23578# Other targets (info, dvi, pdf, etc.)
23579
23580.PHONY: maybe-info-libbacktrace info-libbacktrace
23581maybe-info-libbacktrace:
23582@if libbacktrace
23583maybe-info-libbacktrace: info-libbacktrace
23584
23585info-libbacktrace: \
23586 configure-libbacktrace
23587 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23588 r=`${PWD_COMMAND}`; export r; \
23589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23590 $(HOST_EXPORTS) \
23591 for flag in $(EXTRA_HOST_FLAGS) ; do \
23592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23593 done; \
22121df0 23594 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
23595 (cd $(HOST_SUBDIR)/libbacktrace && \
23596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23598 "RANLIB=$${RANLIB}" \
23599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23600 info) \
23601 || exit 1
23602
23603@endif libbacktrace
23604
23605.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
23606maybe-dvi-libbacktrace:
23607@if libbacktrace
23608maybe-dvi-libbacktrace: dvi-libbacktrace
23609
23610dvi-libbacktrace: \
23611 configure-libbacktrace
23612 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23613 r=`${PWD_COMMAND}`; export r; \
23614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23615 $(HOST_EXPORTS) \
23616 for flag in $(EXTRA_HOST_FLAGS) ; do \
23617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23618 done; \
22121df0 23619 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
23620 (cd $(HOST_SUBDIR)/libbacktrace && \
23621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23623 "RANLIB=$${RANLIB}" \
23624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23625 dvi) \
23626 || exit 1
23627
23628@endif libbacktrace
23629
23630.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
23631maybe-pdf-libbacktrace:
23632@if libbacktrace
23633maybe-pdf-libbacktrace: pdf-libbacktrace
23634
23635pdf-libbacktrace: \
23636 configure-libbacktrace
23637 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23638 r=`${PWD_COMMAND}`; export r; \
23639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23640 $(HOST_EXPORTS) \
23641 for flag in $(EXTRA_HOST_FLAGS) ; do \
23642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23643 done; \
22121df0 23644 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
23645 (cd $(HOST_SUBDIR)/libbacktrace && \
23646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23648 "RANLIB=$${RANLIB}" \
23649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23650 pdf) \
23651 || exit 1
23652
23653@endif libbacktrace
23654
23655.PHONY: maybe-html-libbacktrace html-libbacktrace
23656maybe-html-libbacktrace:
23657@if libbacktrace
23658maybe-html-libbacktrace: html-libbacktrace
23659
23660html-libbacktrace: \
23661 configure-libbacktrace
23662 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23663 r=`${PWD_COMMAND}`; export r; \
23664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23665 $(HOST_EXPORTS) \
23666 for flag in $(EXTRA_HOST_FLAGS) ; do \
23667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23668 done; \
22121df0 23669 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
23670 (cd $(HOST_SUBDIR)/libbacktrace && \
23671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23673 "RANLIB=$${RANLIB}" \
23674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23675 html) \
23676 || exit 1
23677
23678@endif libbacktrace
23679
23680.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
23681maybe-TAGS-libbacktrace:
23682@if libbacktrace
23683maybe-TAGS-libbacktrace: TAGS-libbacktrace
23684
23685TAGS-libbacktrace: \
23686 configure-libbacktrace
23687 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23688 r=`${PWD_COMMAND}`; export r; \
23689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23690 $(HOST_EXPORTS) \
23691 for flag in $(EXTRA_HOST_FLAGS) ; do \
23692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23693 done; \
22121df0 23694 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
23695 (cd $(HOST_SUBDIR)/libbacktrace && \
23696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23698 "RANLIB=$${RANLIB}" \
23699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23700 TAGS) \
23701 || exit 1
23702
23703@endif libbacktrace
23704
23705.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
23706maybe-install-info-libbacktrace:
23707@if libbacktrace
23708maybe-install-info-libbacktrace: install-info-libbacktrace
23709
23710install-info-libbacktrace: \
23711 configure-libbacktrace \
23712 info-libbacktrace
23713 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23714 r=`${PWD_COMMAND}`; export r; \
23715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23716 $(HOST_EXPORTS) \
23717 for flag in $(EXTRA_HOST_FLAGS) ; do \
23718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23719 done; \
22121df0 23720 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
23721 (cd $(HOST_SUBDIR)/libbacktrace && \
23722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23724 "RANLIB=$${RANLIB}" \
23725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23726 install-info) \
23727 || exit 1
23728
23729@endif libbacktrace
23730
23731.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
23732maybe-install-pdf-libbacktrace:
23733@if libbacktrace
23734maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
23735
23736install-pdf-libbacktrace: \
23737 configure-libbacktrace \
23738 pdf-libbacktrace
23739 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23740 r=`${PWD_COMMAND}`; export r; \
23741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23742 $(HOST_EXPORTS) \
23743 for flag in $(EXTRA_HOST_FLAGS) ; do \
23744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23745 done; \
22121df0 23746 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
23747 (cd $(HOST_SUBDIR)/libbacktrace && \
23748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23750 "RANLIB=$${RANLIB}" \
23751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23752 install-pdf) \
23753 || exit 1
23754
23755@endif libbacktrace
23756
23757.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
23758maybe-install-html-libbacktrace:
23759@if libbacktrace
23760maybe-install-html-libbacktrace: install-html-libbacktrace
23761
23762install-html-libbacktrace: \
23763 configure-libbacktrace \
23764 html-libbacktrace
23765 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23766 r=`${PWD_COMMAND}`; export r; \
23767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23768 $(HOST_EXPORTS) \
23769 for flag in $(EXTRA_HOST_FLAGS) ; do \
23770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23771 done; \
22121df0 23772 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
23773 (cd $(HOST_SUBDIR)/libbacktrace && \
23774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23776 "RANLIB=$${RANLIB}" \
23777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23778 install-html) \
23779 || exit 1
23780
23781@endif libbacktrace
23782
23783.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
23784maybe-installcheck-libbacktrace:
23785@if libbacktrace
23786maybe-installcheck-libbacktrace: installcheck-libbacktrace
23787
23788installcheck-libbacktrace: \
23789 configure-libbacktrace
23790 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23791 r=`${PWD_COMMAND}`; export r; \
23792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23793 $(HOST_EXPORTS) \
23794 for flag in $(EXTRA_HOST_FLAGS) ; do \
23795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23796 done; \
22121df0 23797 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
23798 (cd $(HOST_SUBDIR)/libbacktrace && \
23799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23801 "RANLIB=$${RANLIB}" \
23802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23803 installcheck) \
23804 || exit 1
23805
23806@endif libbacktrace
23807
23808.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
23809maybe-mostlyclean-libbacktrace:
23810@if libbacktrace
23811maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
23812
23813mostlyclean-libbacktrace:
23814 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23815 r=`${PWD_COMMAND}`; export r; \
23816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23817 $(HOST_EXPORTS) \
23818 for flag in $(EXTRA_HOST_FLAGS) ; do \
23819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23820 done; \
22121df0 23821 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
23822 (cd $(HOST_SUBDIR)/libbacktrace && \
23823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23825 "RANLIB=$${RANLIB}" \
23826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23827 mostlyclean) \
23828 || exit 1
23829
23830@endif libbacktrace
23831
23832.PHONY: maybe-clean-libbacktrace clean-libbacktrace
23833maybe-clean-libbacktrace:
23834@if libbacktrace
23835maybe-clean-libbacktrace: clean-libbacktrace
23836
23837clean-libbacktrace:
23838 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23839 r=`${PWD_COMMAND}`; export r; \
23840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23841 $(HOST_EXPORTS) \
23842 for flag in $(EXTRA_HOST_FLAGS) ; do \
23843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23844 done; \
22121df0 23845 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
23846 (cd $(HOST_SUBDIR)/libbacktrace && \
23847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23849 "RANLIB=$${RANLIB}" \
23850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23851 clean) \
23852 || exit 1
23853
23854@endif libbacktrace
23855
23856.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
23857maybe-distclean-libbacktrace:
23858@if libbacktrace
23859maybe-distclean-libbacktrace: distclean-libbacktrace
23860
23861distclean-libbacktrace:
23862 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23863 r=`${PWD_COMMAND}`; export r; \
23864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23865 $(HOST_EXPORTS) \
23866 for flag in $(EXTRA_HOST_FLAGS) ; do \
23867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23868 done; \
22121df0 23869 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
23870 (cd $(HOST_SUBDIR)/libbacktrace && \
23871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23873 "RANLIB=$${RANLIB}" \
23874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23875 distclean) \
23876 || exit 1
23877
23878@endif libbacktrace
23879
23880.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
23881maybe-maintainer-clean-libbacktrace:
23882@if libbacktrace
23883maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
23884
23885maintainer-clean-libbacktrace:
23886 @[ -f ./libbacktrace/Makefile ] || exit 0; \
23887 r=`${PWD_COMMAND}`; export r; \
23888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23889 $(HOST_EXPORTS) \
23890 for flag in $(EXTRA_HOST_FLAGS) ; do \
23891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23892 done; \
22121df0 23893 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
23894 (cd $(HOST_SUBDIR)/libbacktrace && \
23895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23897 "RANLIB=$${RANLIB}" \
23898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23899 maintainer-clean) \
23900 || exit 1
23901
23902@endif libbacktrace
23903
23904
23905
a90ef4bf
JM
23906.PHONY: configure-libcpp maybe-configure-libcpp
23907maybe-configure-libcpp:
4b900473 23908@if gcc-bootstrap
a90ef4bf 23909configure-libcpp: stage_current
4b900473 23910@endif gcc-bootstrap
a90ef4bf
JM
23911@if libcpp
23912maybe-configure-libcpp: configure-libcpp
23913configure-libcpp:
4b900473
PB
23914 @r=`${PWD_COMMAND}`; export r; \
23915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 23916 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 23917 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
23918 $(HOST_EXPORTS) \
23919 echo Configuring in $(HOST_SUBDIR)/libcpp; \
23920 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
23921 case $(srcdir) in \
23922 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 23923 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
23924 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23925 esac; \
1b6c0831
L
23926 module_srcdir=libcpp; \
23927 $(SHELL) \
23928 $$s/$$module_srcdir/configure \
23929 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 23930 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 23931 --target=${target_alias} \
4b900473 23932 || exit 1
a90ef4bf 23933@endif libcpp
4b900473
PB
23934
23935
23936
a90ef4bf
JM
23937.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
23938maybe-configure-stage1-libcpp:
23939@if libcpp-bootstrap
23940maybe-configure-stage1-libcpp: configure-stage1-libcpp
23941configure-stage1-libcpp:
4b900473 23942 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 23943 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
23944 @r=`${PWD_COMMAND}`; export r; \
23945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 23946 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 23947 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 23948 $(HOST_EXPORTS) \
8ee82aff 23949 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 23950 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 23951 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23952 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
23953 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 23954 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
23955 case $(srcdir) in \
23956 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 23957 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
23958 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23959 esac; \
1b6c0831
L
23960 module_srcdir=libcpp; \
23961 $(SHELL) $$s/$$module_srcdir/configure \
23962 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 23963 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
23964 --target=${target_alias} \
23965 \
a90ef4bf
JM
23966 $(STAGE1_CONFIGURE_FLAGS)
23967@endif libcpp-bootstrap
e28c595f 23968
a90ef4bf
JM
23969.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
23970maybe-configure-stage2-libcpp:
23971@if libcpp-bootstrap
23972maybe-configure-stage2-libcpp: configure-stage2-libcpp
23973configure-stage2-libcpp:
4b900473 23974 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 23975 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
23976 @r=`${PWD_COMMAND}`; export r; \
23977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 23978 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 23979 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 23980 $(HOST_EXPORTS) \
1b05fbbd 23981 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 23982 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 23983 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 23984 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23985 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
23986 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 23987 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
23988 case $(srcdir) in \
23989 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 23990 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
23991 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23992 esac; \
1b6c0831
L
23993 module_srcdir=libcpp; \
23994 $(SHELL) $$s/$$module_srcdir/configure \
23995 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 23996 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 23997 --target=${target_alias} \
22121df0 23998 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
23999 $(STAGE2_CONFIGURE_FLAGS)
24000@endif libcpp-bootstrap
e28c595f 24001
a90ef4bf
JM
24002.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
24003maybe-configure-stage3-libcpp:
24004@if libcpp-bootstrap
24005maybe-configure-stage3-libcpp: configure-stage3-libcpp
24006configure-stage3-libcpp:
4b900473 24007 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 24008 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
24009 @r=`${PWD_COMMAND}`; export r; \
24010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24011 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 24012 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 24013 $(HOST_EXPORTS) \
1b05fbbd 24014 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 24015 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 24016 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 24017 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
24018 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
24019 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 24020 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
24021 case $(srcdir) in \
24022 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24023 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
24024 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24025 esac; \
1b6c0831
L
24026 module_srcdir=libcpp; \
24027 $(SHELL) $$s/$$module_srcdir/configure \
24028 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 24029 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24030 --target=${target_alias} \
22121df0 24031 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
24032 $(STAGE3_CONFIGURE_FLAGS)
24033@endif libcpp-bootstrap
e28c595f 24034
a90ef4bf
JM
24035.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
24036maybe-configure-stage4-libcpp:
24037@if libcpp-bootstrap
24038maybe-configure-stage4-libcpp: configure-stage4-libcpp
24039configure-stage4-libcpp:
4b900473 24040 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 24041 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
24042 @r=`${PWD_COMMAND}`; export r; \
24043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24044 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 24045 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 24046 $(HOST_EXPORTS) \
1b05fbbd 24047 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 24048 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 24049 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 24050 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
24051 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
24052 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 24053 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
24054 case $(srcdir) in \
24055 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24056 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
24057 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24058 esac; \
1b6c0831
L
24059 module_srcdir=libcpp; \
24060 $(SHELL) $$s/$$module_srcdir/configure \
24061 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 24062 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24063 --target=${target_alias} \
22121df0 24064 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
24065 $(STAGE4_CONFIGURE_FLAGS)
24066@endif libcpp-bootstrap
e28c595f 24067
a90ef4bf
JM
24068.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
24069maybe-configure-stageprofile-libcpp:
24070@if libcpp-bootstrap
24071maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
24072configure-stageprofile-libcpp:
4b900473 24073 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 24074 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
24075 @r=`${PWD_COMMAND}`; export r; \
24076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24077 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 24078 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 24079 $(HOST_EXPORTS) \
1b05fbbd
AO
24080 $(POSTSTAGE1_HOST_EXPORTS) \
24081 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 24082 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 24083 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
24084 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
24085 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 24086 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
24087 case $(srcdir) in \
24088 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24089 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
24090 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24091 esac; \
1b6c0831
L
24092 module_srcdir=libcpp; \
24093 $(SHELL) $$s/$$module_srcdir/configure \
24094 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 24095 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24096 --target=${target_alias} \
22121df0 24097 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
24098 $(STAGEprofile_CONFIGURE_FLAGS)
24099@endif libcpp-bootstrap
e28c595f 24100
f948b2de
NC
24101.PHONY: configure-stagetrain-libcpp maybe-configure-stagetrain-libcpp
24102maybe-configure-stagetrain-libcpp:
24103@if libcpp-bootstrap
24104maybe-configure-stagetrain-libcpp: configure-stagetrain-libcpp
24105configure-stagetrain-libcpp:
24106 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
24107 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
24108 @r=`${PWD_COMMAND}`; export r; \
24109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24110 TFLAGS="$(STAGEtrain_TFLAGS)"; \
24111 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
24112 $(HOST_EXPORTS) \
24113 $(POSTSTAGE1_HOST_EXPORTS) \
24114 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
24115 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
24116 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
24117 echo Configuring stage train in $(HOST_SUBDIR)/libcpp; \
24118 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
24119 cd $(HOST_SUBDIR)/libcpp || exit 1; \
24120 case $(srcdir) in \
24121 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24122 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
24123 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24124 esac; \
24125 module_srcdir=libcpp; \
24126 $(SHELL) $$s/$$module_srcdir/configure \
24127 --srcdir=$${topdir}/$$module_srcdir \
24128 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24129 --target=${target_alias} \
24130 --with-build-libsubdir=$(HOST_SUBDIR) \
24131 $(STAGEtrain_CONFIGURE_FLAGS)
24132@endif libcpp-bootstrap
24133
a90ef4bf
JM
24134.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
24135maybe-configure-stagefeedback-libcpp:
24136@if libcpp-bootstrap
24137maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
24138configure-stagefeedback-libcpp:
4b900473 24139 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 24140 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
24141 @r=`${PWD_COMMAND}`; export r; \
24142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24143 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 24144 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 24145 $(HOST_EXPORTS) \
1b05fbbd
AO
24146 $(POSTSTAGE1_HOST_EXPORTS) \
24147 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 24148 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 24149 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
24150 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
24151 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 24152 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
24153 case $(srcdir) in \
24154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24155 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
24156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24157 esac; \
1b6c0831
L
24158 module_srcdir=libcpp; \
24159 $(SHELL) $$s/$$module_srcdir/configure \
24160 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 24161 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24162 --target=${target_alias} \
22121df0 24163 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
24164 $(STAGEfeedback_CONFIGURE_FLAGS)
24165@endif libcpp-bootstrap
4b900473 24166
f948b2de
NC
24167.PHONY: configure-stageautoprofile-libcpp maybe-configure-stageautoprofile-libcpp
24168maybe-configure-stageautoprofile-libcpp:
24169@if libcpp-bootstrap
24170maybe-configure-stageautoprofile-libcpp: configure-stageautoprofile-libcpp
24171configure-stageautoprofile-libcpp:
24172 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
24173 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
24174 @r=`${PWD_COMMAND}`; export r; \
24175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24176 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
24177 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
24178 $(HOST_EXPORTS) \
24179 $(POSTSTAGE1_HOST_EXPORTS) \
24180 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
24181 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
24182 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
24183 echo Configuring stage autoprofile in $(HOST_SUBDIR)/libcpp; \
24184 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
24185 cd $(HOST_SUBDIR)/libcpp || exit 1; \
24186 case $(srcdir) in \
24187 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24188 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
24189 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24190 esac; \
24191 module_srcdir=libcpp; \
24192 $(SHELL) $$s/$$module_srcdir/configure \
24193 --srcdir=$${topdir}/$$module_srcdir \
24194 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24195 --target=${target_alias} \
24196 --with-build-libsubdir=$(HOST_SUBDIR) \
24197 $(STAGEautoprofile_CONFIGURE_FLAGS)
24198@endif libcpp-bootstrap
24199
24200.PHONY: configure-stageautofeedback-libcpp maybe-configure-stageautofeedback-libcpp
24201maybe-configure-stageautofeedback-libcpp:
24202@if libcpp-bootstrap
24203maybe-configure-stageautofeedback-libcpp: configure-stageautofeedback-libcpp
24204configure-stageautofeedback-libcpp:
24205 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
24206 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
24207 @r=`${PWD_COMMAND}`; export r; \
24208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24209 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
24210 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
24211 $(HOST_EXPORTS) \
24212 $(POSTSTAGE1_HOST_EXPORTS) \
24213 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
24214 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
24215 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
24216 echo Configuring stage autofeedback in $(HOST_SUBDIR)/libcpp; \
24217 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
24218 cd $(HOST_SUBDIR)/libcpp || exit 1; \
24219 case $(srcdir) in \
24220 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24221 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
24222 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24223 esac; \
24224 module_srcdir=libcpp; \
24225 $(SHELL) $$s/$$module_srcdir/configure \
24226 --srcdir=$${topdir}/$$module_srcdir \
24227 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24228 --target=${target_alias} \
24229 --with-build-libsubdir=$(HOST_SUBDIR) \
24230 $(STAGEautofeedback_CONFIGURE_FLAGS)
24231@endif libcpp-bootstrap
24232
4b900473
PB
24233
24234
24235
24236
a90ef4bf
JM
24237.PHONY: all-libcpp maybe-all-libcpp
24238maybe-all-libcpp:
4b900473 24239@if gcc-bootstrap
a90ef4bf 24240all-libcpp: stage_current
4b900473 24241@endif gcc-bootstrap
a90ef4bf
JM
24242@if libcpp
24243TARGET-libcpp=all
24244maybe-all-libcpp: all-libcpp
24245all-libcpp: configure-libcpp
4b900473
PB
24246 @r=`${PWD_COMMAND}`; export r; \
24247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
24248 $(HOST_EXPORTS) \
24249 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 24250 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24251 $(TARGET-libcpp))
24252@endif libcpp
4b900473
PB
24253
24254
24255
a90ef4bf
JM
24256.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
24257.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
24258maybe-all-stage1-libcpp:
24259maybe-clean-stage1-libcpp:
24260@if libcpp-bootstrap
24261maybe-all-stage1-libcpp: all-stage1-libcpp
24262all-stage1: all-stage1-libcpp
24263TARGET-stage1-libcpp = $(TARGET-libcpp)
24264all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
24265 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24266 @r=`${PWD_COMMAND}`; export r; \
24267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24268 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
24269 $(HOST_EXPORTS) \
24270 cd $(HOST_SUBDIR)/libcpp && \
05a13254 24271 \
7f6ef0c0 24272 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 24273 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 24274 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
1f53ca9a 24275 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
24276 LIBCFLAGS="$(LIBCFLAGS)" \
24277 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24278 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24279 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
24280 $(EXTRA_HOST_FLAGS) \
24281 $(STAGE1_FLAGS_TO_PASS) \
05a13254 24282 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 24283 $(TARGET-stage1-libcpp)
4b900473 24284
a90ef4bf
JM
24285maybe-clean-stage1-libcpp: clean-stage1-libcpp
24286clean-stage1: clean-stage1-libcpp
24287clean-stage1-libcpp:
4b900473 24288 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 24289 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 24290 else \
a90ef4bf 24291 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
24292 $(MAKE) stage1-start; \
24293 fi; \
a90ef4bf 24294 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 24295 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 24296 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 24297@endif libcpp-bootstrap
e28c595f
JM
24298
24299
a90ef4bf
JM
24300.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
24301.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
24302maybe-all-stage2-libcpp:
24303maybe-clean-stage2-libcpp:
24304@if libcpp-bootstrap
24305maybe-all-stage2-libcpp: all-stage2-libcpp
24306all-stage2: all-stage2-libcpp
24307TARGET-stage2-libcpp = $(TARGET-libcpp)
24308all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
24309 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24310 @r=`${PWD_COMMAND}`; export r; \
24311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24312 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 24313 $(HOST_EXPORTS) \
a90ef4bf
JM
24314 $(POSTSTAGE1_HOST_EXPORTS) \
24315 cd $(HOST_SUBDIR)/libcpp && \
05a13254 24316 \
7f6ef0c0 24317 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 24318 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 24319 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
1f53ca9a 24320 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
24321 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24322 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24323 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24324 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 24325 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24326 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 24327 $(TARGET-stage2-libcpp)
4b900473 24328
a90ef4bf
JM
24329maybe-clean-stage2-libcpp: clean-stage2-libcpp
24330clean-stage2: clean-stage2-libcpp
24331clean-stage2-libcpp:
4b900473 24332 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 24333 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 24334 else \
a90ef4bf 24335 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
24336 $(MAKE) stage2-start; \
24337 fi; \
a90ef4bf 24338 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 24339 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 24340@endif libcpp-bootstrap
e28c595f
JM
24341
24342
a90ef4bf
JM
24343.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
24344.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
24345maybe-all-stage3-libcpp:
24346maybe-clean-stage3-libcpp:
24347@if libcpp-bootstrap
24348maybe-all-stage3-libcpp: all-stage3-libcpp
24349all-stage3: all-stage3-libcpp
24350TARGET-stage3-libcpp = $(TARGET-libcpp)
24351all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
24352 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24353 @r=`${PWD_COMMAND}`; export r; \
24354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24355 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 24356 $(HOST_EXPORTS) \
a90ef4bf
JM
24357 $(POSTSTAGE1_HOST_EXPORTS) \
24358 cd $(HOST_SUBDIR)/libcpp && \
05a13254 24359 \
7f6ef0c0 24360 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 24361 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 24362 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
1f53ca9a 24363 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
24364 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24365 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24366 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24367 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 24368 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24369 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 24370 $(TARGET-stage3-libcpp)
4b900473 24371
a90ef4bf
JM
24372maybe-clean-stage3-libcpp: clean-stage3-libcpp
24373clean-stage3: clean-stage3-libcpp
24374clean-stage3-libcpp:
4b900473 24375 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 24376 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 24377 else \
a90ef4bf 24378 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
24379 $(MAKE) stage3-start; \
24380 fi; \
a90ef4bf 24381 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 24382 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 24383@endif libcpp-bootstrap
e28c595f
JM
24384
24385
a90ef4bf
JM
24386.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
24387.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
24388maybe-all-stage4-libcpp:
24389maybe-clean-stage4-libcpp:
24390@if libcpp-bootstrap
24391maybe-all-stage4-libcpp: all-stage4-libcpp
24392all-stage4: all-stage4-libcpp
24393TARGET-stage4-libcpp = $(TARGET-libcpp)
24394all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
24395 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24396 @r=`${PWD_COMMAND}`; export r; \
24397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24398 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 24399 $(HOST_EXPORTS) \
a90ef4bf
JM
24400 $(POSTSTAGE1_HOST_EXPORTS) \
24401 cd $(HOST_SUBDIR)/libcpp && \
05a13254 24402 \
7f6ef0c0 24403 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 24404 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 24405 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
1f53ca9a 24406 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 24407 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
24408 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24409 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24410 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 24411 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24412 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 24413 $(TARGET-stage4-libcpp)
4b900473 24414
a90ef4bf
JM
24415maybe-clean-stage4-libcpp: clean-stage4-libcpp
24416clean-stage4: clean-stage4-libcpp
24417clean-stage4-libcpp:
4b900473 24418 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 24419 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 24420 else \
a90ef4bf 24421 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
24422 $(MAKE) stage4-start; \
24423 fi; \
a90ef4bf 24424 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 24425 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 24426@endif libcpp-bootstrap
e28c595f
JM
24427
24428
a90ef4bf
JM
24429.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
24430.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
24431maybe-all-stageprofile-libcpp:
24432maybe-clean-stageprofile-libcpp:
24433@if libcpp-bootstrap
24434maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
24435all-stageprofile: all-stageprofile-libcpp
24436TARGET-stageprofile-libcpp = $(TARGET-libcpp)
24437all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
24438 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24439 @r=`${PWD_COMMAND}`; export r; \
24440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24441 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 24442 $(HOST_EXPORTS) \
a90ef4bf
JM
24443 $(POSTSTAGE1_HOST_EXPORTS) \
24444 cd $(HOST_SUBDIR)/libcpp && \
05a13254 24445 \
7f6ef0c0 24446 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 24447 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 24448 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
1f53ca9a 24449 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
24450 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24451 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24452 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24453 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 24454 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24455 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 24456 $(TARGET-stageprofile-libcpp)
4b900473 24457
a90ef4bf
JM
24458maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
24459clean-stageprofile: clean-stageprofile-libcpp
24460clean-stageprofile-libcpp:
4b900473 24461 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 24462 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 24463 else \
a90ef4bf 24464 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
24465 $(MAKE) stageprofile-start; \
24466 fi; \
a90ef4bf 24467 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 24468 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 24469@endif libcpp-bootstrap
e28c595f
JM
24470
24471
f948b2de
NC
24472.PHONY: all-stagetrain-libcpp maybe-all-stagetrain-libcpp
24473.PHONY: clean-stagetrain-libcpp maybe-clean-stagetrain-libcpp
24474maybe-all-stagetrain-libcpp:
24475maybe-clean-stagetrain-libcpp:
24476@if libcpp-bootstrap
24477maybe-all-stagetrain-libcpp: all-stagetrain-libcpp
24478all-stagetrain: all-stagetrain-libcpp
24479TARGET-stagetrain-libcpp = $(TARGET-libcpp)
24480all-stagetrain-libcpp: configure-stagetrain-libcpp
24481 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
24482 @r=`${PWD_COMMAND}`; export r; \
24483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24484 TFLAGS="$(STAGEtrain_TFLAGS)"; \
24485 $(HOST_EXPORTS) \
24486 $(POSTSTAGE1_HOST_EXPORTS) \
24487 cd $(HOST_SUBDIR)/libcpp && \
24488 \
24489 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24490 CFLAGS="$(STAGEtrain_CFLAGS)" \
24491 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
24492 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
24493 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
24494 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24495 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24496 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24497 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24498 TFLAGS="$(STAGEtrain_TFLAGS)" \
24499 $(TARGET-stagetrain-libcpp)
24500
24501maybe-clean-stagetrain-libcpp: clean-stagetrain-libcpp
24502clean-stagetrain: clean-stagetrain-libcpp
24503clean-stagetrain-libcpp:
24504 @if [ $(current_stage) = stagetrain ]; then \
24505 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
24506 else \
24507 [ -f $(HOST_SUBDIR)/stagetrain-libcpp/Makefile ] || exit 0; \
24508 $(MAKE) stagetrain-start; \
24509 fi; \
24510 cd $(HOST_SUBDIR)/libcpp && \
24511 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24512@endif libcpp-bootstrap
24513
24514
a90ef4bf
JM
24515.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
24516.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
24517maybe-all-stagefeedback-libcpp:
24518maybe-clean-stagefeedback-libcpp:
24519@if libcpp-bootstrap
24520maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
24521all-stagefeedback: all-stagefeedback-libcpp
24522TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
24523all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
24524 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24525 @r=`${PWD_COMMAND}`; export r; \
24526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 24527 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 24528 $(HOST_EXPORTS) \
a90ef4bf
JM
24529 $(POSTSTAGE1_HOST_EXPORTS) \
24530 cd $(HOST_SUBDIR)/libcpp && \
05a13254 24531 \
7f6ef0c0 24532 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 24533 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 24534 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
1f53ca9a 24535 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
24536 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24537 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24538 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24539 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 24540 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24541 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 24542 $(TARGET-stagefeedback-libcpp)
4b900473 24543
a90ef4bf
JM
24544maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
24545clean-stagefeedback: clean-stagefeedback-libcpp
24546clean-stagefeedback-libcpp:
4b900473 24547 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 24548 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 24549 else \
a90ef4bf 24550 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
24551 $(MAKE) stagefeedback-start; \
24552 fi; \
a90ef4bf 24553 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 24554 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 24555@endif libcpp-bootstrap
4b900473
PB
24556
24557
f948b2de
NC
24558.PHONY: all-stageautoprofile-libcpp maybe-all-stageautoprofile-libcpp
24559.PHONY: clean-stageautoprofile-libcpp maybe-clean-stageautoprofile-libcpp
24560maybe-all-stageautoprofile-libcpp:
24561maybe-clean-stageautoprofile-libcpp:
24562@if libcpp-bootstrap
24563maybe-all-stageautoprofile-libcpp: all-stageautoprofile-libcpp
24564all-stageautoprofile: all-stageautoprofile-libcpp
24565TARGET-stageautoprofile-libcpp = $(TARGET-libcpp)
24566all-stageautoprofile-libcpp: configure-stageautoprofile-libcpp
24567 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
24568 @r=`${PWD_COMMAND}`; export r; \
24569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24570 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
24571 $(HOST_EXPORTS) \
24572 $(POSTSTAGE1_HOST_EXPORTS) \
24573 cd $(HOST_SUBDIR)/libcpp && \
24574 $$s/gcc/config/i386/$(AUTO_PROFILE) \
24575 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24576 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
24577 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
24578 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
24579 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
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) $(POSTSTAGE1_FLAGS_TO_PASS) \
24584 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
24585 $(TARGET-stageautoprofile-libcpp)
24586
24587maybe-clean-stageautoprofile-libcpp: clean-stageautoprofile-libcpp
24588clean-stageautoprofile: clean-stageautoprofile-libcpp
24589clean-stageautoprofile-libcpp:
24590 @if [ $(current_stage) = stageautoprofile ]; then \
24591 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
24592 else \
24593 [ -f $(HOST_SUBDIR)/stageautoprofile-libcpp/Makefile ] || exit 0; \
24594 $(MAKE) stageautoprofile-start; \
24595 fi; \
24596 cd $(HOST_SUBDIR)/libcpp && \
24597 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24598@endif libcpp-bootstrap
24599
24600
24601.PHONY: all-stageautofeedback-libcpp maybe-all-stageautofeedback-libcpp
24602.PHONY: clean-stageautofeedback-libcpp maybe-clean-stageautofeedback-libcpp
24603maybe-all-stageautofeedback-libcpp:
24604maybe-clean-stageautofeedback-libcpp:
24605@if libcpp-bootstrap
24606maybe-all-stageautofeedback-libcpp: all-stageautofeedback-libcpp
24607all-stageautofeedback: all-stageautofeedback-libcpp
24608TARGET-stageautofeedback-libcpp = $(TARGET-libcpp)
24609all-stageautofeedback-libcpp: configure-stageautofeedback-libcpp
24610 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
24611 @r=`${PWD_COMMAND}`; export r; \
24612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24613 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
24614 $(HOST_EXPORTS) \
24615 $(POSTSTAGE1_HOST_EXPORTS) \
24616 cd $(HOST_SUBDIR)/libcpp && \
24617 \
24618 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24619 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
24620 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
24621 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
24622 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
24623 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24624 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24625 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24626 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
24627 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
24628 $(TARGET-stageautofeedback-libcpp)
24629
24630maybe-clean-stageautofeedback-libcpp: clean-stageautofeedback-libcpp
24631clean-stageautofeedback: clean-stageautofeedback-libcpp
24632clean-stageautofeedback-libcpp:
24633 @if [ $(current_stage) = stageautofeedback ]; then \
24634 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
24635 else \
24636 [ -f $(HOST_SUBDIR)/stageautofeedback-libcpp/Makefile ] || exit 0; \
24637 $(MAKE) stageautofeedback-start; \
24638 fi; \
24639 cd $(HOST_SUBDIR)/libcpp && \
24640 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24641@endif libcpp-bootstrap
24642
24643
4b900473
PB
24644
24645
24646
a90ef4bf
JM
24647.PHONY: check-libcpp maybe-check-libcpp
24648maybe-check-libcpp:
24649@if libcpp
24650maybe-check-libcpp: check-libcpp
4b900473 24651
a90ef4bf 24652check-libcpp:
4b900473
PB
24653 @: $(MAKE); $(unstage)
24654 @r=`${PWD_COMMAND}`; export r; \
24655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 24656 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24657 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 24658 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 24659
a90ef4bf 24660@endif libcpp
4b900473 24661
a90ef4bf
JM
24662.PHONY: install-libcpp maybe-install-libcpp
24663maybe-install-libcpp:
24664@if libcpp
24665maybe-install-libcpp: install-libcpp
4b900473 24666
a90ef4bf
JM
24667install-libcpp: installdirs
24668 @: $(MAKE); $(unstage)
24669 @r=`${PWD_COMMAND}`; export r; \
24670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24671 $(HOST_EXPORTS) \
24672 (cd $(HOST_SUBDIR)/libcpp && \
24673 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 24674
a90ef4bf 24675@endif libcpp
4b900473 24676
a90ef4bf
JM
24677.PHONY: install-strip-libcpp maybe-install-strip-libcpp
24678maybe-install-strip-libcpp:
24679@if libcpp
24680maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 24681
a90ef4bf
JM
24682install-strip-libcpp: installdirs
24683 @: $(MAKE); $(unstage)
24684 @r=`${PWD_COMMAND}`; export r; \
24685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24686 $(HOST_EXPORTS) \
24687 (cd $(HOST_SUBDIR)/libcpp && \
24688 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 24689
a90ef4bf 24690@endif libcpp
9b980aa1 24691
4b900473
PB
24692# Other targets (info, dvi, pdf, etc.)
24693
a90ef4bf
JM
24694.PHONY: maybe-info-libcpp info-libcpp
24695maybe-info-libcpp:
24696@if libcpp
24697maybe-info-libcpp: info-libcpp
4b900473 24698
a90ef4bf
JM
24699info-libcpp: \
24700 configure-libcpp
24701 @[ -f ./libcpp/Makefile ] || exit 0; \
24702 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
24703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24704 $(HOST_EXPORTS) \
a90ef4bf 24705 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24707 done; \
22121df0 24708 echo "Doing info in libcpp"; \
a90ef4bf 24709 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24712 "RANLIB=$${RANLIB}" \
0c24b341 24713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24714 info) \
24715 || exit 1
24716
a90ef4bf 24717@endif libcpp
4b900473 24718
a90ef4bf
JM
24719.PHONY: maybe-dvi-libcpp dvi-libcpp
24720maybe-dvi-libcpp:
24721@if libcpp
24722maybe-dvi-libcpp: dvi-libcpp
4b900473 24723
a90ef4bf
JM
24724dvi-libcpp: \
24725 configure-libcpp
24726 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24727 r=`${PWD_COMMAND}`; export r; \
24728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24729 $(HOST_EXPORTS) \
a90ef4bf 24730 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24732 done; \
22121df0 24733 echo "Doing dvi in libcpp"; \
a90ef4bf 24734 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24737 "RANLIB=$${RANLIB}" \
0c24b341 24738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24739 dvi) \
24740 || exit 1
24741
a90ef4bf 24742@endif libcpp
4b900473 24743
a90ef4bf
JM
24744.PHONY: maybe-pdf-libcpp pdf-libcpp
24745maybe-pdf-libcpp:
24746@if libcpp
24747maybe-pdf-libcpp: pdf-libcpp
4b900473 24748
a90ef4bf
JM
24749pdf-libcpp: \
24750 configure-libcpp
24751 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24752 r=`${PWD_COMMAND}`; export r; \
24753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24754 $(HOST_EXPORTS) \
a90ef4bf 24755 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24757 done; \
22121df0 24758 echo "Doing pdf in libcpp"; \
a90ef4bf 24759 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24762 "RANLIB=$${RANLIB}" \
0c24b341 24763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24764 pdf) \
24765 || exit 1
24766
a90ef4bf 24767@endif libcpp
4b900473 24768
a90ef4bf
JM
24769.PHONY: maybe-html-libcpp html-libcpp
24770maybe-html-libcpp:
24771@if libcpp
24772maybe-html-libcpp: html-libcpp
4b900473 24773
a90ef4bf
JM
24774html-libcpp: \
24775 configure-libcpp
24776 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24777 r=`${PWD_COMMAND}`; export r; \
24778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24779 $(HOST_EXPORTS) \
a90ef4bf 24780 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24782 done; \
22121df0 24783 echo "Doing html in libcpp"; \
a90ef4bf 24784 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24787 "RANLIB=$${RANLIB}" \
0c24b341 24788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24789 html) \
24790 || exit 1
24791
a90ef4bf 24792@endif libcpp
4b900473 24793
a90ef4bf
JM
24794.PHONY: maybe-TAGS-libcpp TAGS-libcpp
24795maybe-TAGS-libcpp:
24796@if libcpp
24797maybe-TAGS-libcpp: TAGS-libcpp
4b900473 24798
a90ef4bf
JM
24799TAGS-libcpp: \
24800 configure-libcpp
24801 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24802 r=`${PWD_COMMAND}`; export r; \
24803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24804 $(HOST_EXPORTS) \
a90ef4bf 24805 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24807 done; \
22121df0 24808 echo "Doing TAGS in libcpp"; \
a90ef4bf 24809 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24812 "RANLIB=$${RANLIB}" \
0c24b341 24813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24814 TAGS) \
24815 || exit 1
24816
a90ef4bf 24817@endif libcpp
4b900473 24818
a90ef4bf
JM
24819.PHONY: maybe-install-info-libcpp install-info-libcpp
24820maybe-install-info-libcpp:
24821@if libcpp
24822maybe-install-info-libcpp: install-info-libcpp
4b900473 24823
a90ef4bf
JM
24824install-info-libcpp: \
24825 configure-libcpp \
24826 info-libcpp
24827 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24828 r=`${PWD_COMMAND}`; export r; \
24829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24830 $(HOST_EXPORTS) \
a90ef4bf 24831 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24833 done; \
22121df0 24834 echo "Doing install-info in libcpp"; \
a90ef4bf 24835 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24838 "RANLIB=$${RANLIB}" \
0c24b341 24839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24840 install-info) \
24841 || exit 1
24842
a90ef4bf 24843@endif libcpp
4b900473 24844
a90ef4bf
JM
24845.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
24846maybe-install-pdf-libcpp:
24847@if libcpp
24848maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 24849
a90ef4bf
JM
24850install-pdf-libcpp: \
24851 configure-libcpp \
24852 pdf-libcpp
24853 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
24854 r=`${PWD_COMMAND}`; export r; \
24855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24856 $(HOST_EXPORTS) \
a90ef4bf 24857 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
24858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24859 done; \
22121df0 24860 echo "Doing install-pdf in libcpp"; \
a90ef4bf 24861 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
24862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24864 "RANLIB=$${RANLIB}" \
0c24b341 24865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
24866 install-pdf) \
24867 || exit 1
24868
a90ef4bf 24869@endif libcpp
a3ca38d2 24870
a90ef4bf
JM
24871.PHONY: maybe-install-html-libcpp install-html-libcpp
24872maybe-install-html-libcpp:
24873@if libcpp
24874maybe-install-html-libcpp: install-html-libcpp
4b900473 24875
a90ef4bf
JM
24876install-html-libcpp: \
24877 configure-libcpp \
24878 html-libcpp
24879 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24880 r=`${PWD_COMMAND}`; export r; \
24881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24882 $(HOST_EXPORTS) \
a90ef4bf 24883 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24885 done; \
22121df0 24886 echo "Doing install-html in libcpp"; \
a90ef4bf 24887 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24890 "RANLIB=$${RANLIB}" \
0c24b341 24891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24892 install-html) \
24893 || exit 1
24894
a90ef4bf 24895@endif libcpp
4b900473 24896
a90ef4bf
JM
24897.PHONY: maybe-installcheck-libcpp installcheck-libcpp
24898maybe-installcheck-libcpp:
24899@if libcpp
24900maybe-installcheck-libcpp: installcheck-libcpp
4b900473 24901
a90ef4bf
JM
24902installcheck-libcpp: \
24903 configure-libcpp
24904 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24905 r=`${PWD_COMMAND}`; export r; \
24906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24907 $(HOST_EXPORTS) \
a90ef4bf 24908 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24910 done; \
22121df0 24911 echo "Doing installcheck in libcpp"; \
a90ef4bf 24912 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24915 "RANLIB=$${RANLIB}" \
0c24b341 24916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24917 installcheck) \
24918 || exit 1
24919
a90ef4bf 24920@endif libcpp
4b900473 24921
a90ef4bf
JM
24922.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
24923maybe-mostlyclean-libcpp:
24924@if libcpp
24925maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 24926
a90ef4bf
JM
24927mostlyclean-libcpp:
24928 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24929 r=`${PWD_COMMAND}`; export r; \
24930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24931 $(HOST_EXPORTS) \
a90ef4bf 24932 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24934 done; \
22121df0 24935 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 24936 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24939 "RANLIB=$${RANLIB}" \
0c24b341 24940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24941 mostlyclean) \
24942 || exit 1
24943
a90ef4bf 24944@endif libcpp
4b900473 24945
a90ef4bf
JM
24946.PHONY: maybe-clean-libcpp clean-libcpp
24947maybe-clean-libcpp:
24948@if libcpp
24949maybe-clean-libcpp: clean-libcpp
4b900473 24950
a90ef4bf
JM
24951clean-libcpp:
24952 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24953 r=`${PWD_COMMAND}`; export r; \
24954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24955 $(HOST_EXPORTS) \
a90ef4bf 24956 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24958 done; \
22121df0 24959 echo "Doing clean in libcpp"; \
a90ef4bf 24960 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24963 "RANLIB=$${RANLIB}" \
0c24b341 24964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24965 clean) \
24966 || exit 1
24967
a90ef4bf 24968@endif libcpp
4b900473 24969
a90ef4bf
JM
24970.PHONY: maybe-distclean-libcpp distclean-libcpp
24971maybe-distclean-libcpp:
24972@if libcpp
24973maybe-distclean-libcpp: distclean-libcpp
4b900473 24974
a90ef4bf
JM
24975distclean-libcpp:
24976 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
24977 r=`${PWD_COMMAND}`; export r; \
24978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24979 $(HOST_EXPORTS) \
a90ef4bf 24980 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
24981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24982 done; \
22121df0 24983 echo "Doing distclean in libcpp"; \
a90ef4bf 24984 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
24985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24987 "RANLIB=$${RANLIB}" \
0c24b341 24988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
24989 distclean) \
24990 || exit 1
24991
a90ef4bf 24992@endif libcpp
4b900473 24993
a90ef4bf
JM
24994.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
24995maybe-maintainer-clean-libcpp:
24996@if libcpp
24997maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 24998
a90ef4bf
JM
24999maintainer-clean-libcpp:
25000 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
25001 r=`${PWD_COMMAND}`; export r; \
25002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25003 $(HOST_EXPORTS) \
a90ef4bf 25004 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
25005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25006 done; \
22121df0 25007 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 25008 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
25009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25011 "RANLIB=$${RANLIB}" \
0c24b341 25012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
25013 maintainer-clean) \
25014 || exit 1
25015
a90ef4bf 25016@endif libcpp
4b900473
PB
25017
25018
25019
a90ef4bf
JM
25020.PHONY: configure-libdecnumber maybe-configure-libdecnumber
25021maybe-configure-libdecnumber:
1f53ca9a 25022@if gcc-bootstrap
a90ef4bf 25023configure-libdecnumber: stage_current
1f53ca9a 25024@endif gcc-bootstrap
a90ef4bf
JM
25025@if libdecnumber
25026maybe-configure-libdecnumber: configure-libdecnumber
25027configure-libdecnumber:
1f53ca9a
AO
25028 @r=`${PWD_COMMAND}`; export r; \
25029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25030 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 25031 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 25032 $(HOST_EXPORTS) \
a90ef4bf
JM
25033 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
25034 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
25035 case $(srcdir) in \
25036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25037 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
25038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25039 esac; \
1b6c0831
L
25040 module_srcdir=libdecnumber; \
25041 $(SHELL) \
25042 $$s/$$module_srcdir/configure \
25043 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 25044 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25045 --target=${target_alias} \
1f53ca9a 25046 || exit 1
a90ef4bf 25047@endif libdecnumber
1f53ca9a
AO
25048
25049
25050
a90ef4bf
JM
25051.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
25052maybe-configure-stage1-libdecnumber:
25053@if libdecnumber-bootstrap
25054maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
25055configure-stage1-libdecnumber:
1f53ca9a 25056 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 25057 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
25058 @r=`${PWD_COMMAND}`; export r; \
25059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25060 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 25061 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
25062 $(HOST_EXPORTS) \
25063 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
25064 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
25065 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
25066 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
25067 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 25068 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
25069 case $(srcdir) in \
25070 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25071 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
25072 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25073 esac; \
1b6c0831
L
25074 module_srcdir=libdecnumber; \
25075 $(SHELL) $$s/$$module_srcdir/configure \
25076 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 25077 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
25078 --target=${target_alias} \
25079 \
a90ef4bf
JM
25080 $(STAGE1_CONFIGURE_FLAGS)
25081@endif libdecnumber-bootstrap
1f53ca9a 25082
a90ef4bf
JM
25083.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
25084maybe-configure-stage2-libdecnumber:
25085@if libdecnumber-bootstrap
25086maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
25087configure-stage2-libdecnumber:
1f53ca9a 25088 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 25089 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
25090 @r=`${PWD_COMMAND}`; export r; \
25091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25092 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 25093 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
25094 $(HOST_EXPORTS) \
25095 $(POSTSTAGE1_HOST_EXPORTS) \
25096 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
25097 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
25098 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
25099 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
25100 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 25101 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
25102 case $(srcdir) in \
25103 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25104 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
25105 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25106 esac; \
1b6c0831
L
25107 module_srcdir=libdecnumber; \
25108 $(SHELL) $$s/$$module_srcdir/configure \
25109 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 25110 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25111 --target=${target_alias} \
22121df0 25112 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
25113 $(STAGE2_CONFIGURE_FLAGS)
25114@endif libdecnumber-bootstrap
1f53ca9a 25115
a90ef4bf
JM
25116.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
25117maybe-configure-stage3-libdecnumber:
25118@if libdecnumber-bootstrap
25119maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
25120configure-stage3-libdecnumber:
1f53ca9a 25121 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 25122 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
25123 @r=`${PWD_COMMAND}`; export r; \
25124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25125 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 25126 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
25127 $(HOST_EXPORTS) \
25128 $(POSTSTAGE1_HOST_EXPORTS) \
25129 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
25130 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
25131 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
25132 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
25133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 25134 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
25135 case $(srcdir) in \
25136 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25137 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
25138 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25139 esac; \
1b6c0831
L
25140 module_srcdir=libdecnumber; \
25141 $(SHELL) $$s/$$module_srcdir/configure \
25142 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 25143 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25144 --target=${target_alias} \
22121df0 25145 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
25146 $(STAGE3_CONFIGURE_FLAGS)
25147@endif libdecnumber-bootstrap
1f53ca9a 25148
a90ef4bf
JM
25149.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
25150maybe-configure-stage4-libdecnumber:
25151@if libdecnumber-bootstrap
25152maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
25153configure-stage4-libdecnumber:
1f53ca9a 25154 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 25155 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
25156 @r=`${PWD_COMMAND}`; export r; \
25157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25158 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 25159 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
25160 $(HOST_EXPORTS) \
25161 $(POSTSTAGE1_HOST_EXPORTS) \
25162 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
25163 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
25164 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
25165 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
25166 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 25167 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
25168 case $(srcdir) in \
25169 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25170 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
25171 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25172 esac; \
1b6c0831
L
25173 module_srcdir=libdecnumber; \
25174 $(SHELL) $$s/$$module_srcdir/configure \
25175 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 25176 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25177 --target=${target_alias} \
22121df0 25178 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
25179 $(STAGE4_CONFIGURE_FLAGS)
25180@endif libdecnumber-bootstrap
1f53ca9a 25181
a90ef4bf
JM
25182.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
25183maybe-configure-stageprofile-libdecnumber:
25184@if libdecnumber-bootstrap
25185maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
25186configure-stageprofile-libdecnumber:
1f53ca9a 25187 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 25188 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
25189 @r=`${PWD_COMMAND}`; export r; \
25190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25191 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 25192 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
25193 $(HOST_EXPORTS) \
25194 $(POSTSTAGE1_HOST_EXPORTS) \
25195 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
25196 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
25197 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
25198 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
25199 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 25200 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
25201 case $(srcdir) in \
25202 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25203 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
25204 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25205 esac; \
1b6c0831
L
25206 module_srcdir=libdecnumber; \
25207 $(SHELL) $$s/$$module_srcdir/configure \
25208 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 25209 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25210 --target=${target_alias} \
22121df0 25211 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
25212 $(STAGEprofile_CONFIGURE_FLAGS)
25213@endif libdecnumber-bootstrap
1f53ca9a 25214
f948b2de
NC
25215.PHONY: configure-stagetrain-libdecnumber maybe-configure-stagetrain-libdecnumber
25216maybe-configure-stagetrain-libdecnumber:
25217@if libdecnumber-bootstrap
25218maybe-configure-stagetrain-libdecnumber: configure-stagetrain-libdecnumber
25219configure-stagetrain-libdecnumber:
25220 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
25221 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
25222 @r=`${PWD_COMMAND}`; export r; \
25223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25224 TFLAGS="$(STAGEtrain_TFLAGS)"; \
25225 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
25226 $(HOST_EXPORTS) \
25227 $(POSTSTAGE1_HOST_EXPORTS) \
25228 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
25229 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
25230 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
25231 echo Configuring stage train in $(HOST_SUBDIR)/libdecnumber; \
25232 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
25233 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
25234 case $(srcdir) in \
25235 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25236 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
25237 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25238 esac; \
25239 module_srcdir=libdecnumber; \
25240 $(SHELL) $$s/$$module_srcdir/configure \
25241 --srcdir=$${topdir}/$$module_srcdir \
25242 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25243 --target=${target_alias} \
25244 --with-build-libsubdir=$(HOST_SUBDIR) \
25245 $(STAGEtrain_CONFIGURE_FLAGS)
25246@endif libdecnumber-bootstrap
25247
a90ef4bf
JM
25248.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
25249maybe-configure-stagefeedback-libdecnumber:
25250@if libdecnumber-bootstrap
25251maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
25252configure-stagefeedback-libdecnumber:
1f53ca9a 25253 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 25254 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
25255 @r=`${PWD_COMMAND}`; export r; \
25256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25257 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 25258 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
25259 $(HOST_EXPORTS) \
25260 $(POSTSTAGE1_HOST_EXPORTS) \
25261 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
25262 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
25263 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
25264 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
25265 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 25266 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
25267 case $(srcdir) in \
25268 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25269 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
25270 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25271 esac; \
1b6c0831
L
25272 module_srcdir=libdecnumber; \
25273 $(SHELL) $$s/$$module_srcdir/configure \
25274 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 25275 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25276 --target=${target_alias} \
22121df0 25277 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
25278 $(STAGEfeedback_CONFIGURE_FLAGS)
25279@endif libdecnumber-bootstrap
1f53ca9a 25280
f948b2de
NC
25281.PHONY: configure-stageautoprofile-libdecnumber maybe-configure-stageautoprofile-libdecnumber
25282maybe-configure-stageautoprofile-libdecnumber:
25283@if libdecnumber-bootstrap
25284maybe-configure-stageautoprofile-libdecnumber: configure-stageautoprofile-libdecnumber
25285configure-stageautoprofile-libdecnumber:
25286 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
25287 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
25288 @r=`${PWD_COMMAND}`; export r; \
25289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25290 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
25291 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
25292 $(HOST_EXPORTS) \
25293 $(POSTSTAGE1_HOST_EXPORTS) \
25294 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
25295 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
25296 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
25297 echo Configuring stage autoprofile in $(HOST_SUBDIR)/libdecnumber; \
25298 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
25299 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
25300 case $(srcdir) in \
25301 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25302 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
25303 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25304 esac; \
25305 module_srcdir=libdecnumber; \
25306 $(SHELL) $$s/$$module_srcdir/configure \
25307 --srcdir=$${topdir}/$$module_srcdir \
25308 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25309 --target=${target_alias} \
25310 --with-build-libsubdir=$(HOST_SUBDIR) \
25311 $(STAGEautoprofile_CONFIGURE_FLAGS)
25312@endif libdecnumber-bootstrap
25313
25314.PHONY: configure-stageautofeedback-libdecnumber maybe-configure-stageautofeedback-libdecnumber
25315maybe-configure-stageautofeedback-libdecnumber:
25316@if libdecnumber-bootstrap
25317maybe-configure-stageautofeedback-libdecnumber: configure-stageautofeedback-libdecnumber
25318configure-stageautofeedback-libdecnumber:
25319 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
25320 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
25321 @r=`${PWD_COMMAND}`; export r; \
25322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25323 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
25324 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
25325 $(HOST_EXPORTS) \
25326 $(POSTSTAGE1_HOST_EXPORTS) \
25327 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
25328 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
25329 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
25330 echo Configuring stage autofeedback in $(HOST_SUBDIR)/libdecnumber; \
25331 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
25332 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
25333 case $(srcdir) in \
25334 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25335 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
25336 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
25337 esac; \
25338 module_srcdir=libdecnumber; \
25339 $(SHELL) $$s/$$module_srcdir/configure \
25340 --srcdir=$${topdir}/$$module_srcdir \
25341 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
25342 --target=${target_alias} \
25343 --with-build-libsubdir=$(HOST_SUBDIR) \
25344 $(STAGEautofeedback_CONFIGURE_FLAGS)
25345@endif libdecnumber-bootstrap
25346
1f53ca9a
AO
25347
25348
25349
25350
a90ef4bf
JM
25351.PHONY: all-libdecnumber maybe-all-libdecnumber
25352maybe-all-libdecnumber:
1f53ca9a 25353@if gcc-bootstrap
a90ef4bf 25354all-libdecnumber: stage_current
1f53ca9a 25355@endif gcc-bootstrap
a90ef4bf
JM
25356@if libdecnumber
25357TARGET-libdecnumber=all
25358maybe-all-libdecnumber: all-libdecnumber
25359all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
25360 @r=`${PWD_COMMAND}`; export r; \
25361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25362 $(HOST_EXPORTS) \
a90ef4bf 25363 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 25364 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25365 $(TARGET-libdecnumber))
25366@endif libdecnumber
1f53ca9a
AO
25367
25368
25369
a90ef4bf
JM
25370.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
25371.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
25372maybe-all-stage1-libdecnumber:
25373maybe-clean-stage1-libdecnumber:
25374@if libdecnumber-bootstrap
25375maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
25376all-stage1: all-stage1-libdecnumber
25377TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
25378all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
25379 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
25380 @r=`${PWD_COMMAND}`; export r; \
25381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25382 TFLAGS="$(STAGE1_TFLAGS)"; \
25383 $(HOST_EXPORTS) \
a90ef4bf 25384 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 25385 \
1f53ca9a
AO
25386 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25387 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 25388 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
1f53ca9a
AO
25389 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
25390 LIBCFLAGS="$(LIBCFLAGS)" \
25391 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25392 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25393 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
25394 $(EXTRA_HOST_FLAGS) \
25395 $(STAGE1_FLAGS_TO_PASS) \
05a13254 25396 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 25397 $(TARGET-stage1-libdecnumber)
1f53ca9a 25398
a90ef4bf
JM
25399maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
25400clean-stage1: clean-stage1-libdecnumber
25401clean-stage1-libdecnumber:
1f53ca9a 25402 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 25403 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 25404 else \
a90ef4bf 25405 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25406 $(MAKE) stage1-start; \
25407 fi; \
a90ef4bf 25408 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 25409 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 25410 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 25411@endif libdecnumber-bootstrap
1f53ca9a
AO
25412
25413
a90ef4bf
JM
25414.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
25415.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
25416maybe-all-stage2-libdecnumber:
25417maybe-clean-stage2-libdecnumber:
25418@if libdecnumber-bootstrap
25419maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
25420all-stage2: all-stage2-libdecnumber
25421TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
25422all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
25423 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
25424 @r=`${PWD_COMMAND}`; export r; \
25425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25426 TFLAGS="$(STAGE2_TFLAGS)"; \
25427 $(HOST_EXPORTS) \
25428 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 25429 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 25430 \
1f53ca9a
AO
25431 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25432 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 25433 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
1f53ca9a
AO
25434 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
25435 LIBCFLAGS="$(STAGE2_CFLAGS)" \
25436 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25437 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25438 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25439 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 25440 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 25441 $(TARGET-stage2-libdecnumber)
1f53ca9a 25442
a90ef4bf
JM
25443maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
25444clean-stage2: clean-stage2-libdecnumber
25445clean-stage2-libdecnumber:
1f53ca9a 25446 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 25447 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 25448 else \
a90ef4bf 25449 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25450 $(MAKE) stage2-start; \
25451 fi; \
a90ef4bf 25452 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 25453 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 25454@endif libdecnumber-bootstrap
1f53ca9a
AO
25455
25456
a90ef4bf
JM
25457.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
25458.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
25459maybe-all-stage3-libdecnumber:
25460maybe-clean-stage3-libdecnumber:
25461@if libdecnumber-bootstrap
25462maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
25463all-stage3: all-stage3-libdecnumber
25464TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
25465all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
25466 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
25467 @r=`${PWD_COMMAND}`; export r; \
25468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25469 TFLAGS="$(STAGE3_TFLAGS)"; \
25470 $(HOST_EXPORTS) \
25471 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 25472 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 25473 \
1f53ca9a
AO
25474 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25475 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 25476 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
1f53ca9a
AO
25477 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
25478 LIBCFLAGS="$(STAGE3_CFLAGS)" \
25479 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25480 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25481 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25482 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 25483 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 25484 $(TARGET-stage3-libdecnumber)
1f53ca9a 25485
a90ef4bf
JM
25486maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
25487clean-stage3: clean-stage3-libdecnumber
25488clean-stage3-libdecnumber:
1f53ca9a 25489 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 25490 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 25491 else \
a90ef4bf 25492 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25493 $(MAKE) stage3-start; \
25494 fi; \
a90ef4bf 25495 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 25496 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 25497@endif libdecnumber-bootstrap
1f53ca9a
AO
25498
25499
a90ef4bf
JM
25500.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
25501.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
25502maybe-all-stage4-libdecnumber:
25503maybe-clean-stage4-libdecnumber:
25504@if libdecnumber-bootstrap
25505maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
25506all-stage4: all-stage4-libdecnumber
25507TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
25508all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
25509 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
25510 @r=`${PWD_COMMAND}`; export r; \
25511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25512 TFLAGS="$(STAGE4_TFLAGS)"; \
25513 $(HOST_EXPORTS) \
25514 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 25515 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 25516 \
1f53ca9a
AO
25517 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25518 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 25519 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
1f53ca9a
AO
25520 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
25521 LIBCFLAGS="$(STAGE4_CFLAGS)" \
25522 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25523 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25524 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25525 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 25526 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 25527 $(TARGET-stage4-libdecnumber)
1f53ca9a 25528
a90ef4bf
JM
25529maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
25530clean-stage4: clean-stage4-libdecnumber
25531clean-stage4-libdecnumber:
1f53ca9a 25532 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 25533 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 25534 else \
a90ef4bf 25535 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25536 $(MAKE) stage4-start; \
25537 fi; \
a90ef4bf 25538 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 25539 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 25540@endif libdecnumber-bootstrap
1f53ca9a
AO
25541
25542
a90ef4bf
JM
25543.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
25544.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
25545maybe-all-stageprofile-libdecnumber:
25546maybe-clean-stageprofile-libdecnumber:
25547@if libdecnumber-bootstrap
25548maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
25549all-stageprofile: all-stageprofile-libdecnumber
25550TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
25551all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
25552 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
25553 @r=`${PWD_COMMAND}`; export r; \
25554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25555 TFLAGS="$(STAGEprofile_TFLAGS)"; \
25556 $(HOST_EXPORTS) \
25557 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 25558 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 25559 \
1f53ca9a
AO
25560 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25561 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 25562 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
1f53ca9a
AO
25563 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
25564 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
25565 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25566 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25567 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25568 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 25569 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 25570 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 25571
a90ef4bf
JM
25572maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
25573clean-stageprofile: clean-stageprofile-libdecnumber
25574clean-stageprofile-libdecnumber:
1f53ca9a 25575 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 25576 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 25577 else \
a90ef4bf 25578 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25579 $(MAKE) stageprofile-start; \
25580 fi; \
a90ef4bf 25581 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 25582 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 25583@endif libdecnumber-bootstrap
1f53ca9a
AO
25584
25585
f948b2de
NC
25586.PHONY: all-stagetrain-libdecnumber maybe-all-stagetrain-libdecnumber
25587.PHONY: clean-stagetrain-libdecnumber maybe-clean-stagetrain-libdecnumber
25588maybe-all-stagetrain-libdecnumber:
25589maybe-clean-stagetrain-libdecnumber:
25590@if libdecnumber-bootstrap
25591maybe-all-stagetrain-libdecnumber: all-stagetrain-libdecnumber
25592all-stagetrain: all-stagetrain-libdecnumber
25593TARGET-stagetrain-libdecnumber = $(TARGET-libdecnumber)
25594all-stagetrain-libdecnumber: configure-stagetrain-libdecnumber
25595 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
25596 @r=`${PWD_COMMAND}`; export r; \
25597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25598 TFLAGS="$(STAGEtrain_TFLAGS)"; \
25599 $(HOST_EXPORTS) \
25600 $(POSTSTAGE1_HOST_EXPORTS) \
25601 cd $(HOST_SUBDIR)/libdecnumber && \
25602 \
25603 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25604 CFLAGS="$(STAGEtrain_CFLAGS)" \
25605 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
25606 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
25607 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
25608 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25609 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25610 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25611 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
25612 TFLAGS="$(STAGEtrain_TFLAGS)" \
25613 $(TARGET-stagetrain-libdecnumber)
25614
25615maybe-clean-stagetrain-libdecnumber: clean-stagetrain-libdecnumber
25616clean-stagetrain: clean-stagetrain-libdecnumber
25617clean-stagetrain-libdecnumber:
25618 @if [ $(current_stage) = stagetrain ]; then \
25619 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
25620 else \
25621 [ -f $(HOST_SUBDIR)/stagetrain-libdecnumber/Makefile ] || exit 0; \
25622 $(MAKE) stagetrain-start; \
25623 fi; \
25624 cd $(HOST_SUBDIR)/libdecnumber && \
25625 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
25626@endif libdecnumber-bootstrap
25627
25628
a90ef4bf
JM
25629.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
25630.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
25631maybe-all-stagefeedback-libdecnumber:
25632maybe-clean-stagefeedback-libdecnumber:
25633@if libdecnumber-bootstrap
25634maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
25635all-stagefeedback: all-stagefeedback-libdecnumber
25636TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
25637all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
25638 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
25639 @r=`${PWD_COMMAND}`; export r; \
25640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25641 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
25642 $(HOST_EXPORTS) \
25643 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 25644 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 25645 \
1f53ca9a
AO
25646 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25647 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 25648 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
1f53ca9a
AO
25649 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
25650 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
25651 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25652 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25653 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25654 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 25655 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 25656 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 25657
a90ef4bf
JM
25658maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
25659clean-stagefeedback: clean-stagefeedback-libdecnumber
25660clean-stagefeedback-libdecnumber:
1f53ca9a 25661 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 25662 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 25663 else \
a90ef4bf 25664 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25665 $(MAKE) stagefeedback-start; \
25666 fi; \
a90ef4bf 25667 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 25668 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 25669@endif libdecnumber-bootstrap
1f53ca9a
AO
25670
25671
f948b2de
NC
25672.PHONY: all-stageautoprofile-libdecnumber maybe-all-stageautoprofile-libdecnumber
25673.PHONY: clean-stageautoprofile-libdecnumber maybe-clean-stageautoprofile-libdecnumber
25674maybe-all-stageautoprofile-libdecnumber:
25675maybe-clean-stageautoprofile-libdecnumber:
25676@if libdecnumber-bootstrap
25677maybe-all-stageautoprofile-libdecnumber: all-stageautoprofile-libdecnumber
25678all-stageautoprofile: all-stageautoprofile-libdecnumber
25679TARGET-stageautoprofile-libdecnumber = $(TARGET-libdecnumber)
25680all-stageautoprofile-libdecnumber: configure-stageautoprofile-libdecnumber
25681 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
25682 @r=`${PWD_COMMAND}`; export r; \
25683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25684 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
25685 $(HOST_EXPORTS) \
25686 $(POSTSTAGE1_HOST_EXPORTS) \
25687 cd $(HOST_SUBDIR)/libdecnumber && \
25688 $$s/gcc/config/i386/$(AUTO_PROFILE) \
25689 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25690 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
25691 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
25692 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
25693 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
25694 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25695 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25696 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25697 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
25698 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
25699 $(TARGET-stageautoprofile-libdecnumber)
25700
25701maybe-clean-stageautoprofile-libdecnumber: clean-stageautoprofile-libdecnumber
25702clean-stageautoprofile: clean-stageautoprofile-libdecnumber
25703clean-stageautoprofile-libdecnumber:
25704 @if [ $(current_stage) = stageautoprofile ]; then \
25705 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
25706 else \
25707 [ -f $(HOST_SUBDIR)/stageautoprofile-libdecnumber/Makefile ] || exit 0; \
25708 $(MAKE) stageautoprofile-start; \
25709 fi; \
25710 cd $(HOST_SUBDIR)/libdecnumber && \
25711 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
25712@endif libdecnumber-bootstrap
25713
25714
25715.PHONY: all-stageautofeedback-libdecnumber maybe-all-stageautofeedback-libdecnumber
25716.PHONY: clean-stageautofeedback-libdecnumber maybe-clean-stageautofeedback-libdecnumber
25717maybe-all-stageautofeedback-libdecnumber:
25718maybe-clean-stageautofeedback-libdecnumber:
25719@if libdecnumber-bootstrap
25720maybe-all-stageautofeedback-libdecnumber: all-stageautofeedback-libdecnumber
25721all-stageautofeedback: all-stageautofeedback-libdecnumber
25722TARGET-stageautofeedback-libdecnumber = $(TARGET-libdecnumber)
25723all-stageautofeedback-libdecnumber: configure-stageautofeedback-libdecnumber
25724 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
25725 @r=`${PWD_COMMAND}`; export r; \
25726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25727 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
25728 $(HOST_EXPORTS) \
25729 $(POSTSTAGE1_HOST_EXPORTS) \
25730 cd $(HOST_SUBDIR)/libdecnumber && \
25731 \
25732 $(MAKE) $(BASE_FLAGS_TO_PASS) \
25733 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
25734 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
25735 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
25736 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
25737 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
25738 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
25739 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
25740 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
25741 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
25742 $(TARGET-stageautofeedback-libdecnumber)
25743
25744maybe-clean-stageautofeedback-libdecnumber: clean-stageautofeedback-libdecnumber
25745clean-stageautofeedback: clean-stageautofeedback-libdecnumber
25746clean-stageautofeedback-libdecnumber:
25747 @if [ $(current_stage) = stageautofeedback ]; then \
25748 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
25749 else \
25750 [ -f $(HOST_SUBDIR)/stageautofeedback-libdecnumber/Makefile ] || exit 0; \
25751 $(MAKE) stageautofeedback-start; \
25752 fi; \
25753 cd $(HOST_SUBDIR)/libdecnumber && \
25754 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
25755@endif libdecnumber-bootstrap
25756
25757
1f53ca9a
AO
25758
25759
25760
a90ef4bf
JM
25761.PHONY: check-libdecnumber maybe-check-libdecnumber
25762maybe-check-libdecnumber:
25763@if libdecnumber
25764maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 25765
a90ef4bf 25766check-libdecnumber:
1f53ca9a
AO
25767 @: $(MAKE); $(unstage)
25768 @r=`${PWD_COMMAND}`; export r; \
25769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25770 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 25771 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 25772 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 25773
a90ef4bf 25774@endif libdecnumber
1f53ca9a 25775
a90ef4bf
JM
25776.PHONY: install-libdecnumber maybe-install-libdecnumber
25777maybe-install-libdecnumber:
25778@if libdecnumber
25779maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 25780
a90ef4bf
JM
25781install-libdecnumber: installdirs
25782 @: $(MAKE); $(unstage)
25783 @r=`${PWD_COMMAND}`; export r; \
25784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25785 $(HOST_EXPORTS) \
25786 (cd $(HOST_SUBDIR)/libdecnumber && \
25787 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 25788
a90ef4bf 25789@endif libdecnumber
1f53ca9a 25790
a90ef4bf
JM
25791.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
25792maybe-install-strip-libdecnumber:
25793@if libdecnumber
25794maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 25795
a90ef4bf
JM
25796install-strip-libdecnumber: installdirs
25797 @: $(MAKE); $(unstage)
25798 @r=`${PWD_COMMAND}`; export r; \
25799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25800 $(HOST_EXPORTS) \
25801 (cd $(HOST_SUBDIR)/libdecnumber && \
25802 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 25803
a90ef4bf 25804@endif libdecnumber
9b980aa1 25805
1f53ca9a
AO
25806# Other targets (info, dvi, pdf, etc.)
25807
a90ef4bf
JM
25808.PHONY: maybe-info-libdecnumber info-libdecnumber
25809maybe-info-libdecnumber:
25810@if libdecnumber
25811maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 25812
a90ef4bf
JM
25813info-libdecnumber: \
25814 configure-libdecnumber
25815 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25816 r=`${PWD_COMMAND}`; export r; \
25817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25818 $(HOST_EXPORTS) \
25819 for flag in $(EXTRA_HOST_FLAGS) ; do \
25820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25821 done; \
22121df0 25822 echo "Doing info in libdecnumber"; \
a90ef4bf 25823 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
25824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25826 "RANLIB=$${RANLIB}" \
25827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
25828 info) \
25829 || exit 1
25830
a90ef4bf 25831@endif libdecnumber
1f53ca9a 25832
a90ef4bf
JM
25833.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
25834maybe-dvi-libdecnumber:
25835@if libdecnumber
25836maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 25837
a90ef4bf
JM
25838dvi-libdecnumber: \
25839 configure-libdecnumber
25840 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25841 r=`${PWD_COMMAND}`; export r; \
25842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25843 $(HOST_EXPORTS) \
25844 for flag in $(EXTRA_HOST_FLAGS) ; do \
25845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25846 done; \
22121df0 25847 echo "Doing dvi in libdecnumber"; \
a90ef4bf 25848 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
25849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25851 "RANLIB=$${RANLIB}" \
25852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
25853 dvi) \
25854 || exit 1
25855
a90ef4bf 25856@endif libdecnumber
1f53ca9a 25857
a90ef4bf
JM
25858.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
25859maybe-pdf-libdecnumber:
25860@if libdecnumber
25861maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 25862
a90ef4bf
JM
25863pdf-libdecnumber: \
25864 configure-libdecnumber
25865 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25866 r=`${PWD_COMMAND}`; export r; \
25867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25868 $(HOST_EXPORTS) \
25869 for flag in $(EXTRA_HOST_FLAGS) ; do \
25870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25871 done; \
22121df0 25872 echo "Doing pdf in libdecnumber"; \
a90ef4bf 25873 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
25874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25876 "RANLIB=$${RANLIB}" \
25877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
25878 pdf) \
25879 || exit 1
25880
a90ef4bf 25881@endif libdecnumber
1f53ca9a 25882
a90ef4bf
JM
25883.PHONY: maybe-html-libdecnumber html-libdecnumber
25884maybe-html-libdecnumber:
25885@if libdecnumber
25886maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 25887
a90ef4bf
JM
25888html-libdecnumber: \
25889 configure-libdecnumber
25890 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25891 r=`${PWD_COMMAND}`; export r; \
25892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25893 $(HOST_EXPORTS) \
25894 for flag in $(EXTRA_HOST_FLAGS) ; do \
25895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25896 done; \
22121df0 25897 echo "Doing html in libdecnumber"; \
a90ef4bf 25898 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
25899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25901 "RANLIB=$${RANLIB}" \
25902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
25903 html) \
25904 || exit 1
25905
a90ef4bf 25906@endif libdecnumber
1f53ca9a 25907
a90ef4bf
JM
25908.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
25909maybe-TAGS-libdecnumber:
25910@if libdecnumber
25911maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 25912
a90ef4bf
JM
25913TAGS-libdecnumber: \
25914 configure-libdecnumber
25915 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25916 r=`${PWD_COMMAND}`; export r; \
25917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25918 $(HOST_EXPORTS) \
25919 for flag in $(EXTRA_HOST_FLAGS) ; do \
25920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25921 done; \
22121df0 25922 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 25923 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
25924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25926 "RANLIB=$${RANLIB}" \
25927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
25928 TAGS) \
25929 || exit 1
25930
a90ef4bf 25931@endif libdecnumber
1f53ca9a 25932
a90ef4bf
JM
25933.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
25934maybe-install-info-libdecnumber:
25935@if libdecnumber
25936maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 25937
a90ef4bf
JM
25938install-info-libdecnumber: \
25939 configure-libdecnumber \
25940 info-libdecnumber
25941 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25942 r=`${PWD_COMMAND}`; export r; \
25943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25944 $(HOST_EXPORTS) \
25945 for flag in $(EXTRA_HOST_FLAGS) ; do \
25946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25947 done; \
22121df0 25948 echo "Doing install-info in libdecnumber"; \
a90ef4bf 25949 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
25950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25952 "RANLIB=$${RANLIB}" \
25953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
25954 install-info) \
25955 || exit 1
25956
a90ef4bf 25957@endif libdecnumber
1f53ca9a 25958
a90ef4bf
JM
25959.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
25960maybe-install-pdf-libdecnumber:
25961@if libdecnumber
25962maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 25963
a90ef4bf
JM
25964install-pdf-libdecnumber: \
25965 configure-libdecnumber \
25966 pdf-libdecnumber
25967 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25968 r=`${PWD_COMMAND}`; export r; \
25969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25970 $(HOST_EXPORTS) \
25971 for flag in $(EXTRA_HOST_FLAGS) ; do \
25972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25973 done; \
22121df0 25974 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 25975 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
25976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25978 "RANLIB=$${RANLIB}" \
25979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
25980 install-pdf) \
25981 || exit 1
25982
a90ef4bf 25983@endif libdecnumber
1f53ca9a 25984
a90ef4bf
JM
25985.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
25986maybe-install-html-libdecnumber:
25987@if libdecnumber
25988maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 25989
a90ef4bf
JM
25990install-html-libdecnumber: \
25991 configure-libdecnumber \
25992 html-libdecnumber
25993 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
25994 r=`${PWD_COMMAND}`; export r; \
25995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25996 $(HOST_EXPORTS) \
25997 for flag in $(EXTRA_HOST_FLAGS) ; do \
25998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25999 done; \
22121df0 26000 echo "Doing install-html in libdecnumber"; \
a90ef4bf 26001 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
26002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26004 "RANLIB=$${RANLIB}" \
26005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26006 install-html) \
26007 || exit 1
26008
a90ef4bf 26009@endif libdecnumber
1f53ca9a 26010
a90ef4bf
JM
26011.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
26012maybe-installcheck-libdecnumber:
26013@if libdecnumber
26014maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 26015
a90ef4bf
JM
26016installcheck-libdecnumber: \
26017 configure-libdecnumber
26018 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
26019 r=`${PWD_COMMAND}`; export r; \
26020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26021 $(HOST_EXPORTS) \
26022 for flag in $(EXTRA_HOST_FLAGS) ; do \
26023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26024 done; \
22121df0 26025 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 26026 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
26027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26029 "RANLIB=$${RANLIB}" \
26030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26031 installcheck) \
26032 || exit 1
26033
a90ef4bf 26034@endif libdecnumber
1f53ca9a 26035
a90ef4bf
JM
26036.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
26037maybe-mostlyclean-libdecnumber:
26038@if libdecnumber
26039maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 26040
a90ef4bf
JM
26041mostlyclean-libdecnumber:
26042 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
26043 r=`${PWD_COMMAND}`; export r; \
26044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26045 $(HOST_EXPORTS) \
26046 for flag in $(EXTRA_HOST_FLAGS) ; do \
26047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26048 done; \
22121df0 26049 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 26050 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
26051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26053 "RANLIB=$${RANLIB}" \
26054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26055 mostlyclean) \
26056 || exit 1
26057
a90ef4bf 26058@endif libdecnumber
1f53ca9a 26059
a90ef4bf
JM
26060.PHONY: maybe-clean-libdecnumber clean-libdecnumber
26061maybe-clean-libdecnumber:
26062@if libdecnumber
26063maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 26064
a90ef4bf
JM
26065clean-libdecnumber:
26066 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
26067 r=`${PWD_COMMAND}`; export r; \
26068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26069 $(HOST_EXPORTS) \
26070 for flag in $(EXTRA_HOST_FLAGS) ; do \
26071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26072 done; \
22121df0 26073 echo "Doing clean in libdecnumber"; \
a90ef4bf 26074 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
26075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26077 "RANLIB=$${RANLIB}" \
26078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26079 clean) \
26080 || exit 1
26081
a90ef4bf 26082@endif libdecnumber
1f53ca9a 26083
a90ef4bf
JM
26084.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
26085maybe-distclean-libdecnumber:
26086@if libdecnumber
26087maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 26088
a90ef4bf
JM
26089distclean-libdecnumber:
26090 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
26091 r=`${PWD_COMMAND}`; export r; \
26092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26093 $(HOST_EXPORTS) \
26094 for flag in $(EXTRA_HOST_FLAGS) ; do \
26095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26096 done; \
22121df0 26097 echo "Doing distclean in libdecnumber"; \
a90ef4bf 26098 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
26099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26101 "RANLIB=$${RANLIB}" \
26102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26103 distclean) \
26104 || exit 1
26105
a90ef4bf 26106@endif libdecnumber
1f53ca9a 26107
a90ef4bf
JM
26108.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
26109maybe-maintainer-clean-libdecnumber:
26110@if libdecnumber
26111maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 26112
a90ef4bf
JM
26113maintainer-clean-libdecnumber:
26114 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
26115 r=`${PWD_COMMAND}`; export r; \
26116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26117 $(HOST_EXPORTS) \
26118 for flag in $(EXTRA_HOST_FLAGS) ; do \
26119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26120 done; \
22121df0 26121 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 26122 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
26123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26125 "RANLIB=$${RANLIB}" \
26126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
26127 maintainer-clean) \
26128 || exit 1
26129
a90ef4bf 26130@endif libdecnumber
1f53ca9a
AO
26131
26132
26133
a90ef4bf
JM
26134.PHONY: configure-libgui maybe-configure-libgui
26135maybe-configure-libgui:
4f0ef2d8 26136@if gcc-bootstrap
a90ef4bf 26137configure-libgui: stage_current
4f0ef2d8 26138@endif gcc-bootstrap
a90ef4bf
JM
26139@if libgui
26140maybe-configure-libgui: configure-libgui
26141configure-libgui:
0aed8855 26142 @: $(MAKE); $(unstage)
c52c6897 26143 @r=`${PWD_COMMAND}`; export r; \
4fa63067 26144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26145 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 26146 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 26147 $(HOST_EXPORTS) \
a90ef4bf
JM
26148 echo Configuring in $(HOST_SUBDIR)/libgui; \
26149 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 26150 case $(srcdir) in \
b00612cc 26151 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26152 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 26153 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26154 esac; \
1b6c0831
L
26155 module_srcdir=libgui; \
26156 $(SHELL) \
26157 $$s/$$module_srcdir/configure \
26158 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26159 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26160 --target=${target_alias} \
2a4cbe27 26161 || exit 1
a90ef4bf 26162@endif libgui
2a4cbe27 26163
a7254363
PB
26164
26165
d545f33b
PB
26166
26167
a90ef4bf
JM
26168.PHONY: all-libgui maybe-all-libgui
26169maybe-all-libgui:
4f0ef2d8 26170@if gcc-bootstrap
a90ef4bf 26171all-libgui: stage_current
4f0ef2d8 26172@endif gcc-bootstrap
a90ef4bf
JM
26173@if libgui
26174TARGET-libgui=all
26175maybe-all-libgui: all-libgui
26176all-libgui: configure-libgui
0aed8855 26177 @: $(MAKE); $(unstage)
4fa63067
NN
26178 @r=`${PWD_COMMAND}`; export r; \
26179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26180 $(HOST_EXPORTS) \
a90ef4bf 26181 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 26182 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26183 $(TARGET-libgui))
26184@endif libgui
2a4cbe27 26185
a7254363 26186
d545f33b
PB
26187
26188
a90ef4bf
JM
26189.PHONY: check-libgui maybe-check-libgui
26190maybe-check-libgui:
26191@if libgui
26192maybe-check-libgui: check-libgui
2a4cbe27 26193
a90ef4bf 26194check-libgui:
0aed8855 26195 @: $(MAKE); $(unstage)
4fa63067 26196 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26198 $(HOST_EXPORTS) \
a90ef4bf 26199 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 26200 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26201
a90ef4bf 26202@endif libgui
2a4cbe27 26203
a90ef4bf
JM
26204.PHONY: install-libgui maybe-install-libgui
26205maybe-install-libgui:
26206@if libgui
26207maybe-install-libgui: install-libgui
2a4cbe27 26208
a90ef4bf 26209install-libgui: installdirs
0aed8855 26210 @: $(MAKE); $(unstage)
4fa63067 26211 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26213 $(HOST_EXPORTS) \
a90ef4bf 26214 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 26215 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 26216
a90ef4bf 26217@endif libgui
2a4cbe27 26218
a90ef4bf
JM
26219.PHONY: install-strip-libgui maybe-install-strip-libgui
26220maybe-install-strip-libgui:
26221@if libgui
26222maybe-install-strip-libgui: install-strip-libgui
9b980aa1 26223
a90ef4bf 26224install-strip-libgui: installdirs
9b980aa1
RW
26225 @: $(MAKE); $(unstage)
26226 @r=`${PWD_COMMAND}`; export r; \
26227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26228 $(HOST_EXPORTS) \
a90ef4bf 26229 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
26230 $(MAKE) $(FLAGS_TO_PASS) install-strip)
26231
a90ef4bf 26232@endif libgui
9b980aa1 26233
56a8fe78 26234# Other targets (info, dvi, pdf, etc.)
2a4cbe27 26235
a90ef4bf
JM
26236.PHONY: maybe-info-libgui info-libgui
26237maybe-info-libgui:
26238@if libgui
26239maybe-info-libgui: info-libgui
4fa63067 26240
a90ef4bf
JM
26241info-libgui: \
26242 configure-libgui
0aed8855 26243 @: $(MAKE); $(unstage)
a90ef4bf 26244 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
26245 r=`${PWD_COMMAND}`; export r; \
26246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26247 $(HOST_EXPORTS) \
b813574b 26248 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26250 done; \
22121df0 26251 echo "Doing info in libgui"; \
a90ef4bf 26252 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
26253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26255 "RANLIB=$${RANLIB}" \
0c24b341 26256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26257 info) \
2a4cbe27
NN
26258 || exit 1
26259
a90ef4bf 26260@endif libgui
2a4cbe27 26261
a90ef4bf
JM
26262.PHONY: maybe-dvi-libgui dvi-libgui
26263maybe-dvi-libgui:
26264@if libgui
26265maybe-dvi-libgui: dvi-libgui
2a4cbe27 26266
a90ef4bf
JM
26267dvi-libgui: \
26268 configure-libgui
0aed8855 26269 @: $(MAKE); $(unstage)
a90ef4bf 26270 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
26271 r=`${PWD_COMMAND}`; export r; \
26272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26273 $(HOST_EXPORTS) \
b813574b 26274 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26276 done; \
22121df0 26277 echo "Doing dvi in libgui"; \
a90ef4bf 26278 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
26279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26281 "RANLIB=$${RANLIB}" \
0c24b341 26282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26283 dvi) \
2a4cbe27
NN
26284 || exit 1
26285
a90ef4bf 26286@endif libgui
2a4cbe27 26287
a90ef4bf
JM
26288.PHONY: maybe-pdf-libgui pdf-libgui
26289maybe-pdf-libgui:
26290@if libgui
26291maybe-pdf-libgui: pdf-libgui
56a8fe78 26292
a90ef4bf
JM
26293pdf-libgui: \
26294 configure-libgui
56a8fe78 26295 @: $(MAKE); $(unstage)
a90ef4bf 26296 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
26297 r=`${PWD_COMMAND}`; export r; \
26298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26299 $(HOST_EXPORTS) \
26300 for flag in $(EXTRA_HOST_FLAGS) ; do \
26301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26302 done; \
22121df0 26303 echo "Doing pdf in libgui"; \
a90ef4bf 26304 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
26305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26307 "RANLIB=$${RANLIB}" \
0c24b341 26308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26309 pdf) \
26310 || exit 1
26311
a90ef4bf 26312@endif libgui
56a8fe78 26313
a90ef4bf
JM
26314.PHONY: maybe-html-libgui html-libgui
26315maybe-html-libgui:
26316@if libgui
26317maybe-html-libgui: html-libgui
6d389afc 26318
a90ef4bf
JM
26319html-libgui: \
26320 configure-libgui
0aed8855 26321 @: $(MAKE); $(unstage)
a90ef4bf 26322 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
26323 r=`${PWD_COMMAND}`; export r; \
26324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26325 $(HOST_EXPORTS) \
26326 for flag in $(EXTRA_HOST_FLAGS) ; do \
26327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26328 done; \
22121df0 26329 echo "Doing html in libgui"; \
a90ef4bf 26330 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
26331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26333 "RANLIB=$${RANLIB}" \
0c24b341 26334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26335 html) \
26336 || exit 1
26337
a90ef4bf 26338@endif libgui
6d389afc 26339
a90ef4bf
JM
26340.PHONY: maybe-TAGS-libgui TAGS-libgui
26341maybe-TAGS-libgui:
26342@if libgui
26343maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 26344
a90ef4bf
JM
26345TAGS-libgui: \
26346 configure-libgui
0aed8855 26347 @: $(MAKE); $(unstage)
a90ef4bf 26348 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
26349 r=`${PWD_COMMAND}`; export r; \
26350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26351 $(HOST_EXPORTS) \
b813574b 26352 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26354 done; \
22121df0 26355 echo "Doing TAGS in libgui"; \
a90ef4bf 26356 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
26357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26359 "RANLIB=$${RANLIB}" \
0c24b341 26360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26361 TAGS) \
2a4cbe27
NN
26362 || exit 1
26363
a90ef4bf 26364@endif libgui
2a4cbe27 26365
a90ef4bf
JM
26366.PHONY: maybe-install-info-libgui install-info-libgui
26367maybe-install-info-libgui:
26368@if libgui
26369maybe-install-info-libgui: install-info-libgui
2a4cbe27 26370
a90ef4bf
JM
26371install-info-libgui: \
26372 configure-libgui \
26373 info-libgui
0aed8855 26374 @: $(MAKE); $(unstage)
a90ef4bf 26375 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
26376 r=`${PWD_COMMAND}`; export r; \
26377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26378 $(HOST_EXPORTS) \
b813574b 26379 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26381 done; \
22121df0 26382 echo "Doing install-info in libgui"; \
a90ef4bf 26383 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
26384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26386 "RANLIB=$${RANLIB}" \
0c24b341 26387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26388 install-info) \
2a4cbe27
NN
26389 || exit 1
26390
a90ef4bf 26391@endif libgui
2a4cbe27 26392
a90ef4bf
JM
26393.PHONY: maybe-install-pdf-libgui install-pdf-libgui
26394maybe-install-pdf-libgui:
26395@if libgui
26396maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 26397
a90ef4bf
JM
26398install-pdf-libgui: \
26399 configure-libgui \
26400 pdf-libgui
a3ca38d2 26401 @: $(MAKE); $(unstage)
a90ef4bf 26402 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
26403 r=`${PWD_COMMAND}`; export r; \
26404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26405 $(HOST_EXPORTS) \
26406 for flag in $(EXTRA_HOST_FLAGS) ; do \
26407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26408 done; \
22121df0 26409 echo "Doing install-pdf in libgui"; \
a90ef4bf 26410 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
26411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26413 "RANLIB=$${RANLIB}" \
0c24b341 26414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26415 install-pdf) \
26416 || exit 1
26417
a90ef4bf 26418@endif libgui
a3ca38d2 26419
a90ef4bf
JM
26420.PHONY: maybe-install-html-libgui install-html-libgui
26421maybe-install-html-libgui:
26422@if libgui
26423maybe-install-html-libgui: install-html-libgui
108a6f8e 26424
a90ef4bf
JM
26425install-html-libgui: \
26426 configure-libgui \
26427 html-libgui
108a6f8e 26428 @: $(MAKE); $(unstage)
a90ef4bf 26429 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
26430 r=`${PWD_COMMAND}`; export r; \
26431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26432 $(HOST_EXPORTS) \
26433 for flag in $(EXTRA_HOST_FLAGS) ; do \
26434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26435 done; \
22121df0 26436 echo "Doing install-html in libgui"; \
a90ef4bf 26437 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
26438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26440 "RANLIB=$${RANLIB}" \
0c24b341 26441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26442 install-html) \
26443 || exit 1
26444
a90ef4bf 26445@endif libgui
108a6f8e 26446
a90ef4bf
JM
26447.PHONY: maybe-installcheck-libgui installcheck-libgui
26448maybe-installcheck-libgui:
26449@if libgui
26450maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 26451
a90ef4bf
JM
26452installcheck-libgui: \
26453 configure-libgui
0aed8855 26454 @: $(MAKE); $(unstage)
a90ef4bf 26455 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
26456 r=`${PWD_COMMAND}`; export r; \
26457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26458 $(HOST_EXPORTS) \
b813574b 26459 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26461 done; \
22121df0 26462 echo "Doing installcheck in libgui"; \
a90ef4bf 26463 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
26464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26466 "RANLIB=$${RANLIB}" \
0c24b341 26467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26468 installcheck) \
2a4cbe27
NN
26469 || exit 1
26470
a90ef4bf 26471@endif libgui
2a4cbe27 26472
a90ef4bf
JM
26473.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
26474maybe-mostlyclean-libgui:
26475@if libgui
26476maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 26477
a90ef4bf 26478mostlyclean-libgui:
0aed8855 26479 @: $(MAKE); $(unstage)
a90ef4bf 26480 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
26481 r=`${PWD_COMMAND}`; export r; \
26482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26483 $(HOST_EXPORTS) \
b813574b 26484 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26486 done; \
22121df0 26487 echo "Doing mostlyclean in libgui"; \
a90ef4bf 26488 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
26489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26491 "RANLIB=$${RANLIB}" \
0c24b341 26492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26493 mostlyclean) \
2a4cbe27
NN
26494 || exit 1
26495
a90ef4bf 26496@endif libgui
2a4cbe27 26497
a90ef4bf
JM
26498.PHONY: maybe-clean-libgui clean-libgui
26499maybe-clean-libgui:
26500@if libgui
26501maybe-clean-libgui: clean-libgui
2a4cbe27 26502
a90ef4bf 26503clean-libgui:
0aed8855 26504 @: $(MAKE); $(unstage)
a90ef4bf 26505 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
26506 r=`${PWD_COMMAND}`; export r; \
26507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26508 $(HOST_EXPORTS) \
b813574b 26509 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26511 done; \
22121df0 26512 echo "Doing clean in libgui"; \
a90ef4bf 26513 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
26514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26516 "RANLIB=$${RANLIB}" \
0c24b341 26517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26518 clean) \
2a4cbe27
NN
26519 || exit 1
26520
a90ef4bf 26521@endif libgui
2a4cbe27 26522
a90ef4bf
JM
26523.PHONY: maybe-distclean-libgui distclean-libgui
26524maybe-distclean-libgui:
26525@if libgui
26526maybe-distclean-libgui: distclean-libgui
2a4cbe27 26527
a90ef4bf 26528distclean-libgui:
0aed8855 26529 @: $(MAKE); $(unstage)
a90ef4bf 26530 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
26531 r=`${PWD_COMMAND}`; export r; \
26532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26533 $(HOST_EXPORTS) \
b813574b 26534 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26536 done; \
22121df0 26537 echo "Doing distclean in libgui"; \
a90ef4bf 26538 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
26539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26541 "RANLIB=$${RANLIB}" \
0c24b341 26542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26543 distclean) \
2a4cbe27
NN
26544 || exit 1
26545
a90ef4bf 26546@endif libgui
2a4cbe27 26547
a90ef4bf
JM
26548.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
26549maybe-maintainer-clean-libgui:
26550@if libgui
26551maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 26552
a90ef4bf 26553maintainer-clean-libgui:
0aed8855 26554 @: $(MAKE); $(unstage)
a90ef4bf 26555 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
26556 r=`${PWD_COMMAND}`; export r; \
26557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26558 $(HOST_EXPORTS) \
b813574b 26559 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26561 done; \
22121df0 26562 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 26563 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
26564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26566 "RANLIB=$${RANLIB}" \
0c24b341 26567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26568 maintainer-clean) \
2a4cbe27
NN
26569 || exit 1
26570
a90ef4bf 26571@endif libgui
2a4cbe27 26572
2a4cbe27 26573
a7254363 26574
a90ef4bf
JM
26575.PHONY: configure-libiberty maybe-configure-libiberty
26576maybe-configure-libiberty:
93f9b408 26577@if gcc-bootstrap
a90ef4bf 26578configure-libiberty: stage_current
93f9b408 26579@endif gcc-bootstrap
a90ef4bf
JM
26580@if libiberty
26581maybe-configure-libiberty: configure-libiberty
26582configure-libiberty:
93f9b408
ILT
26583 @r=`${PWD_COMMAND}`; export r; \
26584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26585 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 26586 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 26587 $(HOST_EXPORTS) \
a90ef4bf
JM
26588 echo Configuring in $(HOST_SUBDIR)/libiberty; \
26589 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
26590 case $(srcdir) in \
26591 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26592 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
26593 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26594 esac; \
1b6c0831
L
26595 module_srcdir=libiberty; \
26596 $(SHELL) \
26597 $$s/$$module_srcdir/configure \
26598 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 26599 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26600 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 26601 || exit 1
a90ef4bf 26602@endif libiberty
93f9b408
ILT
26603
26604
26605
a90ef4bf
JM
26606.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
26607maybe-configure-stage1-libiberty:
26608@if libiberty-bootstrap
26609maybe-configure-stage1-libiberty: configure-stage1-libiberty
26610configure-stage1-libiberty:
93f9b408 26611 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 26612 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
26613 @r=`${PWD_COMMAND}`; export r; \
26614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26615 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 26616 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 26617 $(HOST_EXPORTS) \
93f9b408 26618 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26619 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
26620 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
26621 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
26622 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 26623 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
26624 case $(srcdir) in \
26625 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26626 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
26627 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26628 esac; \
1b6c0831
L
26629 module_srcdir=libiberty; \
26630 $(SHELL) $$s/$$module_srcdir/configure \
26631 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 26632 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
26633 --target=${target_alias} \
26634 \
a90ef4bf
JM
26635 $(STAGE1_CONFIGURE_FLAGS) \
26636 @extra_host_libiberty_configure_flags@
26637@endif libiberty-bootstrap
93f9b408 26638
a90ef4bf
JM
26639.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
26640maybe-configure-stage2-libiberty:
26641@if libiberty-bootstrap
26642maybe-configure-stage2-libiberty: configure-stage2-libiberty
26643configure-stage2-libiberty:
93f9b408 26644 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 26645 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
26646 @r=`${PWD_COMMAND}`; export r; \
26647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26648 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 26649 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 26650 $(HOST_EXPORTS) \
1b05fbbd 26651 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 26652 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26653 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
26654 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
26655 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
26656 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 26657 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
26658 case $(srcdir) in \
26659 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26660 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
26661 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26662 esac; \
1b6c0831
L
26663 module_srcdir=libiberty; \
26664 $(SHELL) $$s/$$module_srcdir/configure \
26665 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 26666 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26667 --target=${target_alias} \
22121df0 26668 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
26669 $(STAGE2_CONFIGURE_FLAGS) \
26670 @extra_host_libiberty_configure_flags@
26671@endif libiberty-bootstrap
93f9b408 26672
a90ef4bf
JM
26673.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
26674maybe-configure-stage3-libiberty:
26675@if libiberty-bootstrap
26676maybe-configure-stage3-libiberty: configure-stage3-libiberty
26677configure-stage3-libiberty:
93f9b408 26678 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 26679 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
26680 @r=`${PWD_COMMAND}`; export r; \
26681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26682 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 26683 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 26684 $(HOST_EXPORTS) \
1b05fbbd 26685 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 26686 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26687 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
26688 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
26689 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
26690 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 26691 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
26692 case $(srcdir) in \
26693 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26694 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
26695 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26696 esac; \
1b6c0831
L
26697 module_srcdir=libiberty; \
26698 $(SHELL) $$s/$$module_srcdir/configure \
26699 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 26700 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26701 --target=${target_alias} \
22121df0 26702 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
26703 $(STAGE3_CONFIGURE_FLAGS) \
26704 @extra_host_libiberty_configure_flags@
26705@endif libiberty-bootstrap
93f9b408 26706
a90ef4bf
JM
26707.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
26708maybe-configure-stage4-libiberty:
26709@if libiberty-bootstrap
26710maybe-configure-stage4-libiberty: configure-stage4-libiberty
26711configure-stage4-libiberty:
93f9b408 26712 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 26713 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
26714 @r=`${PWD_COMMAND}`; export r; \
26715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26716 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 26717 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 26718 $(HOST_EXPORTS) \
1b05fbbd 26719 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 26720 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26721 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
26722 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
26723 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
26724 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 26725 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
26726 case $(srcdir) in \
26727 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26728 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
26729 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26730 esac; \
1b6c0831
L
26731 module_srcdir=libiberty; \
26732 $(SHELL) $$s/$$module_srcdir/configure \
26733 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 26734 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26735 --target=${target_alias} \
22121df0 26736 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
26737 $(STAGE4_CONFIGURE_FLAGS) \
26738 @extra_host_libiberty_configure_flags@
26739@endif libiberty-bootstrap
93f9b408 26740
a90ef4bf
JM
26741.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
26742maybe-configure-stageprofile-libiberty:
26743@if libiberty-bootstrap
26744maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
26745configure-stageprofile-libiberty:
93f9b408 26746 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 26747 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
26748 @r=`${PWD_COMMAND}`; export r; \
26749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26750 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 26751 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 26752 $(HOST_EXPORTS) \
1b05fbbd
AO
26753 $(POSTSTAGE1_HOST_EXPORTS) \
26754 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26755 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
26756 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
26757 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
26758 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 26759 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
26760 case $(srcdir) in \
26761 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26762 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
26763 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26764 esac; \
1b6c0831
L
26765 module_srcdir=libiberty; \
26766 $(SHELL) $$s/$$module_srcdir/configure \
26767 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 26768 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26769 --target=${target_alias} \
22121df0 26770 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
26771 $(STAGEprofile_CONFIGURE_FLAGS) \
26772 @extra_host_libiberty_configure_flags@
26773@endif libiberty-bootstrap
93f9b408 26774
f948b2de
NC
26775.PHONY: configure-stagetrain-libiberty maybe-configure-stagetrain-libiberty
26776maybe-configure-stagetrain-libiberty:
26777@if libiberty-bootstrap
26778maybe-configure-stagetrain-libiberty: configure-stagetrain-libiberty
26779configure-stagetrain-libiberty:
26780 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
26781 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
26782 @r=`${PWD_COMMAND}`; export r; \
26783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26784 TFLAGS="$(STAGEtrain_TFLAGS)"; \
26785 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
26786 $(HOST_EXPORTS) \
26787 $(POSTSTAGE1_HOST_EXPORTS) \
26788 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
26789 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
26790 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
26791 echo Configuring stage train in $(HOST_SUBDIR)/libiberty; \
26792 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
26793 cd $(HOST_SUBDIR)/libiberty || exit 1; \
26794 case $(srcdir) in \
26795 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26796 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
26797 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26798 esac; \
26799 module_srcdir=libiberty; \
26800 $(SHELL) $$s/$$module_srcdir/configure \
26801 --srcdir=$${topdir}/$$module_srcdir \
26802 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26803 --target=${target_alias} \
26804 --with-build-libsubdir=$(HOST_SUBDIR) \
26805 $(STAGEtrain_CONFIGURE_FLAGS) \
26806 @extra_host_libiberty_configure_flags@
26807@endif libiberty-bootstrap
26808
a90ef4bf
JM
26809.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
26810maybe-configure-stagefeedback-libiberty:
26811@if libiberty-bootstrap
26812maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
26813configure-stagefeedback-libiberty:
93f9b408 26814 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 26815 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
26816 @r=`${PWD_COMMAND}`; export r; \
26817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26818 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 26819 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 26820 $(HOST_EXPORTS) \
1b05fbbd
AO
26821 $(POSTSTAGE1_HOST_EXPORTS) \
26822 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
26823 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
26824 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
26825 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
26826 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 26827 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
26828 case $(srcdir) in \
26829 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26830 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
26831 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26832 esac; \
1b6c0831
L
26833 module_srcdir=libiberty; \
26834 $(SHELL) $$s/$$module_srcdir/configure \
26835 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 26836 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26837 --target=${target_alias} \
22121df0 26838 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
26839 $(STAGEfeedback_CONFIGURE_FLAGS) \
26840 @extra_host_libiberty_configure_flags@
26841@endif libiberty-bootstrap
93f9b408 26842
f948b2de
NC
26843.PHONY: configure-stageautoprofile-libiberty maybe-configure-stageautoprofile-libiberty
26844maybe-configure-stageautoprofile-libiberty:
26845@if libiberty-bootstrap
26846maybe-configure-stageautoprofile-libiberty: configure-stageautoprofile-libiberty
26847configure-stageautoprofile-libiberty:
26848 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
26849 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
26850 @r=`${PWD_COMMAND}`; export r; \
26851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26852 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
26853 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
26854 $(HOST_EXPORTS) \
26855 $(POSTSTAGE1_HOST_EXPORTS) \
26856 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
26857 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
26858 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
26859 echo Configuring stage autoprofile in $(HOST_SUBDIR)/libiberty; \
26860 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
26861 cd $(HOST_SUBDIR)/libiberty || exit 1; \
26862 case $(srcdir) in \
26863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26864 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
26865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26866 esac; \
26867 module_srcdir=libiberty; \
26868 $(SHELL) $$s/$$module_srcdir/configure \
26869 --srcdir=$${topdir}/$$module_srcdir \
26870 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26871 --target=${target_alias} \
26872 --with-build-libsubdir=$(HOST_SUBDIR) \
26873 $(STAGEautoprofile_CONFIGURE_FLAGS) \
26874 @extra_host_libiberty_configure_flags@
26875@endif libiberty-bootstrap
26876
26877.PHONY: configure-stageautofeedback-libiberty maybe-configure-stageautofeedback-libiberty
26878maybe-configure-stageautofeedback-libiberty:
26879@if libiberty-bootstrap
26880maybe-configure-stageautofeedback-libiberty: configure-stageautofeedback-libiberty
26881configure-stageautofeedback-libiberty:
26882 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
26883 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
26884 @r=`${PWD_COMMAND}`; export r; \
26885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26886 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
26887 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
26888 $(HOST_EXPORTS) \
26889 $(POSTSTAGE1_HOST_EXPORTS) \
26890 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
26891 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
26892 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
26893 echo Configuring stage autofeedback in $(HOST_SUBDIR)/libiberty; \
26894 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
26895 cd $(HOST_SUBDIR)/libiberty || exit 1; \
26896 case $(srcdir) in \
26897 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26898 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
26899 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
26900 esac; \
26901 module_srcdir=libiberty; \
26902 $(SHELL) $$s/$$module_srcdir/configure \
26903 --srcdir=$${topdir}/$$module_srcdir \
26904 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
26905 --target=${target_alias} \
26906 --with-build-libsubdir=$(HOST_SUBDIR) \
26907 $(STAGEautofeedback_CONFIGURE_FLAGS) \
26908 @extra_host_libiberty_configure_flags@
26909@endif libiberty-bootstrap
26910
93f9b408
ILT
26911
26912
26913
26914
a90ef4bf
JM
26915.PHONY: all-libiberty maybe-all-libiberty
26916maybe-all-libiberty:
93f9b408 26917@if gcc-bootstrap
a90ef4bf 26918all-libiberty: stage_current
93f9b408 26919@endif gcc-bootstrap
a90ef4bf
JM
26920@if libiberty
26921TARGET-libiberty=all
26922maybe-all-libiberty: all-libiberty
26923all-libiberty: configure-libiberty
93f9b408
ILT
26924 @r=`${PWD_COMMAND}`; export r; \
26925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26926 $(HOST_EXPORTS) \
a90ef4bf 26927 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 26928 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26929 $(TARGET-libiberty))
26930@endif libiberty
93f9b408
ILT
26931
26932
26933
a90ef4bf
JM
26934.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
26935.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
26936maybe-all-stage1-libiberty:
26937maybe-clean-stage1-libiberty:
26938@if libiberty-bootstrap
26939maybe-all-stage1-libiberty: all-stage1-libiberty
26940all-stage1: all-stage1-libiberty
26941TARGET-stage1-libiberty = $(TARGET-libiberty)
26942all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
26943 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
26944 @r=`${PWD_COMMAND}`; export r; \
26945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26946 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 26947 $(HOST_EXPORTS) \
a90ef4bf 26948 cd $(HOST_SUBDIR)/libiberty && \
05a13254 26949 \
93f9b408 26950 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26951 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 26952 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
1f53ca9a 26953 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
26954 LIBCFLAGS="$(LIBCFLAGS)" \
26955 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
26956 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
26957 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
26958 $(EXTRA_HOST_FLAGS) \
26959 $(STAGE1_FLAGS_TO_PASS) \
05a13254 26960 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 26961 $(TARGET-stage1-libiberty)
93f9b408 26962
a90ef4bf
JM
26963maybe-clean-stage1-libiberty: clean-stage1-libiberty
26964clean-stage1: clean-stage1-libiberty
26965clean-stage1-libiberty:
93f9b408 26966 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 26967 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 26968 else \
a90ef4bf 26969 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
26970 $(MAKE) stage1-start; \
26971 fi; \
a90ef4bf 26972 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 26973 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 26974 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 26975@endif libiberty-bootstrap
93f9b408
ILT
26976
26977
a90ef4bf
JM
26978.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
26979.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
26980maybe-all-stage2-libiberty:
26981maybe-clean-stage2-libiberty:
26982@if libiberty-bootstrap
26983maybe-all-stage2-libiberty: all-stage2-libiberty
26984all-stage2: all-stage2-libiberty
26985TARGET-stage2-libiberty = $(TARGET-libiberty)
26986all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
26987 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
26988 @r=`${PWD_COMMAND}`; export r; \
26989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 26990 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 26991 $(HOST_EXPORTS) \
1f53ca9a 26992 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 26993 cd $(HOST_SUBDIR)/libiberty && \
05a13254 26994 \
93f9b408 26995 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 26996 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 26997 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
1f53ca9a 26998 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
26999 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27000 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27001 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27002 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27003 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27004 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27005 $(TARGET-stage2-libiberty)
93f9b408 27006
a90ef4bf
JM
27007maybe-clean-stage2-libiberty: clean-stage2-libiberty
27008clean-stage2: clean-stage2-libiberty
27009clean-stage2-libiberty:
93f9b408 27010 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27011 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 27012 else \
a90ef4bf 27013 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27014 $(MAKE) stage2-start; \
27015 fi; \
a90ef4bf 27016 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 27017 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27018@endif libiberty-bootstrap
93f9b408
ILT
27019
27020
a90ef4bf
JM
27021.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
27022.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
27023maybe-all-stage3-libiberty:
27024maybe-clean-stage3-libiberty:
27025@if libiberty-bootstrap
27026maybe-all-stage3-libiberty: all-stage3-libiberty
27027all-stage3: all-stage3-libiberty
27028TARGET-stage3-libiberty = $(TARGET-libiberty)
27029all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
27030 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
27031 @r=`${PWD_COMMAND}`; export r; \
27032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27033 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 27034 $(HOST_EXPORTS) \
1f53ca9a 27035 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27036 cd $(HOST_SUBDIR)/libiberty && \
05a13254 27037 \
93f9b408 27038 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27039 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 27040 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
1f53ca9a 27041 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27042 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27043 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27044 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27045 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27046 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27047 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27048 $(TARGET-stage3-libiberty)
93f9b408 27049
a90ef4bf
JM
27050maybe-clean-stage3-libiberty: clean-stage3-libiberty
27051clean-stage3: clean-stage3-libiberty
27052clean-stage3-libiberty:
93f9b408 27053 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27054 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 27055 else \
a90ef4bf 27056 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27057 $(MAKE) stage3-start; \
27058 fi; \
a90ef4bf 27059 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 27060 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27061@endif libiberty-bootstrap
93f9b408
ILT
27062
27063
a90ef4bf
JM
27064.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
27065.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
27066maybe-all-stage4-libiberty:
27067maybe-clean-stage4-libiberty:
27068@if libiberty-bootstrap
27069maybe-all-stage4-libiberty: all-stage4-libiberty
27070all-stage4: all-stage4-libiberty
27071TARGET-stage4-libiberty = $(TARGET-libiberty)
27072all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
27073 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
27074 @r=`${PWD_COMMAND}`; export r; \
27075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27076 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 27077 $(HOST_EXPORTS) \
1f53ca9a 27078 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27079 cd $(HOST_SUBDIR)/libiberty && \
05a13254 27080 \
93f9b408 27081 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27082 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 27083 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
1f53ca9a 27084 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 27085 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27086 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27087 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27088 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27089 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27090 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27091 $(TARGET-stage4-libiberty)
93f9b408 27092
a90ef4bf
JM
27093maybe-clean-stage4-libiberty: clean-stage4-libiberty
27094clean-stage4: clean-stage4-libiberty
27095clean-stage4-libiberty:
93f9b408 27096 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27097 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 27098 else \
a90ef4bf 27099 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27100 $(MAKE) stage4-start; \
27101 fi; \
a90ef4bf 27102 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 27103 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27104@endif libiberty-bootstrap
93f9b408
ILT
27105
27106
a90ef4bf
JM
27107.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
27108.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
27109maybe-all-stageprofile-libiberty:
27110maybe-clean-stageprofile-libiberty:
27111@if libiberty-bootstrap
27112maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
27113all-stageprofile: all-stageprofile-libiberty
27114TARGET-stageprofile-libiberty = $(TARGET-libiberty)
27115all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
27116 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
27117 @r=`${PWD_COMMAND}`; export r; \
27118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27119 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 27120 $(HOST_EXPORTS) \
1f53ca9a 27121 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27122 cd $(HOST_SUBDIR)/libiberty && \
05a13254 27123 \
93f9b408 27124 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27125 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 27126 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
1f53ca9a 27127 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27128 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27129 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27130 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27131 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27132 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27133 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27134 $(TARGET-stageprofile-libiberty)
93f9b408 27135
a90ef4bf
JM
27136maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
27137clean-stageprofile: clean-stageprofile-libiberty
27138clean-stageprofile-libiberty:
93f9b408 27139 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27140 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 27141 else \
a90ef4bf 27142 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27143 $(MAKE) stageprofile-start; \
27144 fi; \
a90ef4bf 27145 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 27146 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27147@endif libiberty-bootstrap
93f9b408
ILT
27148
27149
f948b2de
NC
27150.PHONY: all-stagetrain-libiberty maybe-all-stagetrain-libiberty
27151.PHONY: clean-stagetrain-libiberty maybe-clean-stagetrain-libiberty
27152maybe-all-stagetrain-libiberty:
27153maybe-clean-stagetrain-libiberty:
27154@if libiberty-bootstrap
27155maybe-all-stagetrain-libiberty: all-stagetrain-libiberty
27156all-stagetrain: all-stagetrain-libiberty
27157TARGET-stagetrain-libiberty = $(TARGET-libiberty)
27158all-stagetrain-libiberty: configure-stagetrain-libiberty
27159 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
27160 @r=`${PWD_COMMAND}`; export r; \
27161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27162 TFLAGS="$(STAGEtrain_TFLAGS)"; \
27163 $(HOST_EXPORTS) \
27164 $(POSTSTAGE1_HOST_EXPORTS) \
27165 cd $(HOST_SUBDIR)/libiberty && \
27166 \
27167 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27168 CFLAGS="$(STAGEtrain_CFLAGS)" \
27169 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
27170 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
27171 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
27172 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27173 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27174 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27175 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27176 TFLAGS="$(STAGEtrain_TFLAGS)" \
27177 $(TARGET-stagetrain-libiberty)
27178
27179maybe-clean-stagetrain-libiberty: clean-stagetrain-libiberty
27180clean-stagetrain: clean-stagetrain-libiberty
27181clean-stagetrain-libiberty:
27182 @if [ $(current_stage) = stagetrain ]; then \
27183 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
27184 else \
27185 [ -f $(HOST_SUBDIR)/stagetrain-libiberty/Makefile ] || exit 0; \
27186 $(MAKE) stagetrain-start; \
27187 fi; \
27188 cd $(HOST_SUBDIR)/libiberty && \
27189 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
27190@endif libiberty-bootstrap
27191
27192
a90ef4bf
JM
27193.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
27194.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
27195maybe-all-stagefeedback-libiberty:
27196maybe-clean-stagefeedback-libiberty:
27197@if libiberty-bootstrap
27198maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
27199all-stagefeedback: all-stagefeedback-libiberty
27200TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
27201all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
27202 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
27203 @r=`${PWD_COMMAND}`; export r; \
27204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27205 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 27206 $(HOST_EXPORTS) \
1f53ca9a 27207 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27208 cd $(HOST_SUBDIR)/libiberty && \
05a13254 27209 \
93f9b408 27210 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27211 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 27212 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
1f53ca9a 27213 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27214 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27215 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27216 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27217 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27218 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27219 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27220 $(TARGET-stagefeedback-libiberty)
93f9b408 27221
a90ef4bf
JM
27222maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
27223clean-stagefeedback: clean-stagefeedback-libiberty
27224clean-stagefeedback-libiberty:
93f9b408 27225 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27226 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 27227 else \
a90ef4bf 27228 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27229 $(MAKE) stagefeedback-start; \
27230 fi; \
a90ef4bf 27231 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 27232 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27233@endif libiberty-bootstrap
93f9b408
ILT
27234
27235
f948b2de
NC
27236.PHONY: all-stageautoprofile-libiberty maybe-all-stageautoprofile-libiberty
27237.PHONY: clean-stageautoprofile-libiberty maybe-clean-stageautoprofile-libiberty
27238maybe-all-stageautoprofile-libiberty:
27239maybe-clean-stageautoprofile-libiberty:
27240@if libiberty-bootstrap
27241maybe-all-stageautoprofile-libiberty: all-stageautoprofile-libiberty
27242all-stageautoprofile: all-stageautoprofile-libiberty
27243TARGET-stageautoprofile-libiberty = $(TARGET-libiberty)
27244all-stageautoprofile-libiberty: configure-stageautoprofile-libiberty
27245 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
27246 @r=`${PWD_COMMAND}`; export r; \
27247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27248 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
27249 $(HOST_EXPORTS) \
27250 $(POSTSTAGE1_HOST_EXPORTS) \
27251 cd $(HOST_SUBDIR)/libiberty && \
27252 $$s/gcc/config/i386/$(AUTO_PROFILE) \
27253 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27254 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
27255 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
27256 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
27257 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
27258 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27259 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27260 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27261 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27262 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
27263 $(TARGET-stageautoprofile-libiberty)
27264
27265maybe-clean-stageautoprofile-libiberty: clean-stageautoprofile-libiberty
27266clean-stageautoprofile: clean-stageautoprofile-libiberty
27267clean-stageautoprofile-libiberty:
27268 @if [ $(current_stage) = stageautoprofile ]; then \
27269 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
27270 else \
27271 [ -f $(HOST_SUBDIR)/stageautoprofile-libiberty/Makefile ] || exit 0; \
27272 $(MAKE) stageautoprofile-start; \
27273 fi; \
27274 cd $(HOST_SUBDIR)/libiberty && \
27275 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
27276@endif libiberty-bootstrap
27277
27278
27279.PHONY: all-stageautofeedback-libiberty maybe-all-stageautofeedback-libiberty
27280.PHONY: clean-stageautofeedback-libiberty maybe-clean-stageautofeedback-libiberty
27281maybe-all-stageautofeedback-libiberty:
27282maybe-clean-stageautofeedback-libiberty:
27283@if libiberty-bootstrap
27284maybe-all-stageautofeedback-libiberty: all-stageautofeedback-libiberty
27285all-stageautofeedback: all-stageautofeedback-libiberty
27286TARGET-stageautofeedback-libiberty = $(TARGET-libiberty)
27287all-stageautofeedback-libiberty: configure-stageautofeedback-libiberty
27288 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
27289 @r=`${PWD_COMMAND}`; export r; \
27290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27291 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
27292 $(HOST_EXPORTS) \
27293 $(POSTSTAGE1_HOST_EXPORTS) \
27294 cd $(HOST_SUBDIR)/libiberty && \
27295 \
27296 $(MAKE) $(BASE_FLAGS_TO_PASS) \
27297 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
27298 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
27299 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
27300 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
27301 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27302 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27303 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27304 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
27305 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
27306 $(TARGET-stageautofeedback-libiberty)
27307
27308maybe-clean-stageautofeedback-libiberty: clean-stageautofeedback-libiberty
27309clean-stageautofeedback: clean-stageautofeedback-libiberty
27310clean-stageautofeedback-libiberty:
27311 @if [ $(current_stage) = stageautofeedback ]; then \
27312 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
27313 else \
27314 [ -f $(HOST_SUBDIR)/stageautofeedback-libiberty/Makefile ] || exit 0; \
27315 $(MAKE) stageautofeedback-start; \
27316 fi; \
27317 cd $(HOST_SUBDIR)/libiberty && \
27318 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
27319@endif libiberty-bootstrap
27320
27321
93f9b408
ILT
27322
27323
27324
a90ef4bf
JM
27325.PHONY: check-libiberty maybe-check-libiberty
27326maybe-check-libiberty:
27327@if libiberty
27328maybe-check-libiberty: check-libiberty
93f9b408 27329
a90ef4bf 27330check-libiberty:
93f9b408
ILT
27331 @: $(MAKE); $(unstage)
27332 @r=`${PWD_COMMAND}`; export r; \
27333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 27334 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 27335 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 27336 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 27337
a90ef4bf 27338@endif libiberty
93f9b408 27339
a90ef4bf
JM
27340.PHONY: install-libiberty maybe-install-libiberty
27341maybe-install-libiberty:
27342@if libiberty
27343maybe-install-libiberty: install-libiberty
93f9b408 27344
a90ef4bf 27345install-libiberty: installdirs
93f9b408
ILT
27346 @: $(MAKE); $(unstage)
27347 @r=`${PWD_COMMAND}`; export r; \
27348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27349 $(HOST_EXPORTS) \
a90ef4bf 27350 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27351 $(MAKE) $(FLAGS_TO_PASS) install)
27352
a90ef4bf 27353@endif libiberty
93f9b408 27354
a90ef4bf
JM
27355.PHONY: install-strip-libiberty maybe-install-strip-libiberty
27356maybe-install-strip-libiberty:
27357@if libiberty
27358maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 27359
a90ef4bf 27360install-strip-libiberty: installdirs
9b980aa1
RW
27361 @: $(MAKE); $(unstage)
27362 @r=`${PWD_COMMAND}`; export r; \
27363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27364 $(HOST_EXPORTS) \
a90ef4bf 27365 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
27366 $(MAKE) $(FLAGS_TO_PASS) install-strip)
27367
a90ef4bf 27368@endif libiberty
9b980aa1 27369
93f9b408
ILT
27370# Other targets (info, dvi, pdf, etc.)
27371
a90ef4bf
JM
27372.PHONY: maybe-info-libiberty info-libiberty
27373maybe-info-libiberty:
27374@if libiberty
27375maybe-info-libiberty: info-libiberty
93f9b408 27376
a90ef4bf
JM
27377info-libiberty: \
27378 configure-libiberty
27379 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27380 r=`${PWD_COMMAND}`; export r; \
27381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27382 $(HOST_EXPORTS) \
27383 for flag in $(EXTRA_HOST_FLAGS) ; do \
27384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27385 done; \
22121df0 27386 echo "Doing info in libiberty"; \
a90ef4bf 27387 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27390 "RANLIB=$${RANLIB}" \
27391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27392 info) \
27393 || exit 1
27394
a90ef4bf 27395@endif libiberty
93f9b408 27396
a90ef4bf
JM
27397.PHONY: maybe-dvi-libiberty dvi-libiberty
27398maybe-dvi-libiberty:
27399@if libiberty
27400maybe-dvi-libiberty: dvi-libiberty
93f9b408 27401
a90ef4bf
JM
27402dvi-libiberty: \
27403 configure-libiberty
27404 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27405 r=`${PWD_COMMAND}`; export r; \
27406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27407 $(HOST_EXPORTS) \
27408 for flag in $(EXTRA_HOST_FLAGS) ; do \
27409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27410 done; \
22121df0 27411 echo "Doing dvi in libiberty"; \
a90ef4bf 27412 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27415 "RANLIB=$${RANLIB}" \
27416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27417 dvi) \
27418 || exit 1
27419
a90ef4bf 27420@endif libiberty
93f9b408 27421
a90ef4bf
JM
27422.PHONY: maybe-pdf-libiberty pdf-libiberty
27423maybe-pdf-libiberty:
27424@if libiberty
27425maybe-pdf-libiberty: pdf-libiberty
93f9b408 27426
a90ef4bf
JM
27427pdf-libiberty: \
27428 configure-libiberty
27429 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27430 r=`${PWD_COMMAND}`; export r; \
27431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27432 $(HOST_EXPORTS) \
27433 for flag in $(EXTRA_HOST_FLAGS) ; do \
27434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27435 done; \
22121df0 27436 echo "Doing pdf in libiberty"; \
a90ef4bf 27437 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27440 "RANLIB=$${RANLIB}" \
27441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27442 pdf) \
27443 || exit 1
27444
a90ef4bf 27445@endif libiberty
93f9b408 27446
a90ef4bf
JM
27447.PHONY: maybe-html-libiberty html-libiberty
27448maybe-html-libiberty:
27449@if libiberty
27450maybe-html-libiberty: html-libiberty
93f9b408 27451
a90ef4bf
JM
27452html-libiberty: \
27453 configure-libiberty
27454 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27455 r=`${PWD_COMMAND}`; export r; \
27456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27457 $(HOST_EXPORTS) \
27458 for flag in $(EXTRA_HOST_FLAGS) ; do \
27459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27460 done; \
22121df0 27461 echo "Doing html in libiberty"; \
a90ef4bf 27462 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27465 "RANLIB=$${RANLIB}" \
27466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27467 html) \
27468 || exit 1
27469
a90ef4bf 27470@endif libiberty
93f9b408 27471
a90ef4bf
JM
27472.PHONY: maybe-TAGS-libiberty TAGS-libiberty
27473maybe-TAGS-libiberty:
27474@if libiberty
27475maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 27476
a90ef4bf
JM
27477TAGS-libiberty: \
27478 configure-libiberty
27479 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27480 r=`${PWD_COMMAND}`; export r; \
27481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27482 $(HOST_EXPORTS) \
27483 for flag in $(EXTRA_HOST_FLAGS) ; do \
27484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27485 done; \
22121df0 27486 echo "Doing TAGS in libiberty"; \
a90ef4bf 27487 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27490 "RANLIB=$${RANLIB}" \
27491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27492 TAGS) \
27493 || exit 1
27494
a90ef4bf 27495@endif libiberty
93f9b408 27496
a90ef4bf
JM
27497.PHONY: maybe-install-info-libiberty install-info-libiberty
27498maybe-install-info-libiberty:
27499@if libiberty
27500maybe-install-info-libiberty: install-info-libiberty
93f9b408 27501
a90ef4bf
JM
27502install-info-libiberty: \
27503 configure-libiberty \
27504 info-libiberty
27505 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27506 r=`${PWD_COMMAND}`; export r; \
27507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27508 $(HOST_EXPORTS) \
27509 for flag in $(EXTRA_HOST_FLAGS) ; do \
27510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27511 done; \
22121df0 27512 echo "Doing install-info in libiberty"; \
a90ef4bf 27513 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27516 "RANLIB=$${RANLIB}" \
27517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27518 install-info) \
27519 || exit 1
27520
a90ef4bf 27521@endif libiberty
93f9b408 27522
a90ef4bf
JM
27523.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
27524maybe-install-pdf-libiberty:
27525@if libiberty
27526maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 27527
a90ef4bf
JM
27528install-pdf-libiberty: \
27529 configure-libiberty \
27530 pdf-libiberty
27531 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27532 r=`${PWD_COMMAND}`; export r; \
27533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27534 $(HOST_EXPORTS) \
27535 for flag in $(EXTRA_HOST_FLAGS) ; do \
27536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27537 done; \
22121df0 27538 echo "Doing install-pdf in libiberty"; \
a90ef4bf 27539 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27542 "RANLIB=$${RANLIB}" \
27543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27544 install-pdf) \
27545 || exit 1
27546
a90ef4bf 27547@endif libiberty
93f9b408 27548
a90ef4bf
JM
27549.PHONY: maybe-install-html-libiberty install-html-libiberty
27550maybe-install-html-libiberty:
27551@if libiberty
27552maybe-install-html-libiberty: install-html-libiberty
93f9b408 27553
a90ef4bf
JM
27554install-html-libiberty: \
27555 configure-libiberty \
27556 html-libiberty
27557 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27558 r=`${PWD_COMMAND}`; export r; \
27559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27560 $(HOST_EXPORTS) \
27561 for flag in $(EXTRA_HOST_FLAGS) ; do \
27562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27563 done; \
22121df0 27564 echo "Doing install-html in libiberty"; \
a90ef4bf 27565 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27568 "RANLIB=$${RANLIB}" \
27569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27570 install-html) \
27571 || exit 1
27572
a90ef4bf 27573@endif libiberty
93f9b408 27574
a90ef4bf
JM
27575.PHONY: maybe-installcheck-libiberty installcheck-libiberty
27576maybe-installcheck-libiberty:
27577@if libiberty
27578maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 27579
a90ef4bf
JM
27580installcheck-libiberty: \
27581 configure-libiberty
27582 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27583 r=`${PWD_COMMAND}`; export r; \
27584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27585 $(HOST_EXPORTS) \
27586 for flag in $(EXTRA_HOST_FLAGS) ; do \
27587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27588 done; \
22121df0 27589 echo "Doing installcheck in libiberty"; \
a90ef4bf 27590 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27593 "RANLIB=$${RANLIB}" \
27594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27595 installcheck) \
27596 || exit 1
27597
a90ef4bf 27598@endif libiberty
93f9b408 27599
a90ef4bf
JM
27600.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
27601maybe-mostlyclean-libiberty:
27602@if libiberty
27603maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 27604
a90ef4bf
JM
27605mostlyclean-libiberty:
27606 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27607 r=`${PWD_COMMAND}`; export r; \
27608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27609 $(HOST_EXPORTS) \
27610 for flag in $(EXTRA_HOST_FLAGS) ; do \
27611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27612 done; \
22121df0 27613 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 27614 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27617 "RANLIB=$${RANLIB}" \
27618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27619 mostlyclean) \
27620 || exit 1
27621
a90ef4bf 27622@endif libiberty
93f9b408 27623
a90ef4bf
JM
27624.PHONY: maybe-clean-libiberty clean-libiberty
27625maybe-clean-libiberty:
27626@if libiberty
27627maybe-clean-libiberty: clean-libiberty
93f9b408 27628
a90ef4bf
JM
27629clean-libiberty:
27630 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27631 r=`${PWD_COMMAND}`; export r; \
27632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27633 $(HOST_EXPORTS) \
27634 for flag in $(EXTRA_HOST_FLAGS) ; do \
27635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27636 done; \
22121df0 27637 echo "Doing clean in libiberty"; \
a90ef4bf 27638 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27641 "RANLIB=$${RANLIB}" \
27642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27643 clean) \
27644 || exit 1
27645
a90ef4bf 27646@endif libiberty
93f9b408 27647
a90ef4bf
JM
27648.PHONY: maybe-distclean-libiberty distclean-libiberty
27649maybe-distclean-libiberty:
27650@if libiberty
27651maybe-distclean-libiberty: distclean-libiberty
93f9b408 27652
a90ef4bf
JM
27653distclean-libiberty:
27654 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27655 r=`${PWD_COMMAND}`; export r; \
27656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27657 $(HOST_EXPORTS) \
27658 for flag in $(EXTRA_HOST_FLAGS) ; do \
27659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27660 done; \
22121df0 27661 echo "Doing distclean in libiberty"; \
a90ef4bf 27662 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27665 "RANLIB=$${RANLIB}" \
27666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27667 distclean) \
27668 || exit 1
27669
a90ef4bf 27670@endif libiberty
93f9b408 27671
a90ef4bf
JM
27672.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
27673maybe-maintainer-clean-libiberty:
27674@if libiberty
27675maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 27676
a90ef4bf
JM
27677maintainer-clean-libiberty:
27678 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
27679 r=`${PWD_COMMAND}`; export r; \
27680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27681 $(HOST_EXPORTS) \
27682 for flag in $(EXTRA_HOST_FLAGS) ; do \
27683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27684 done; \
22121df0 27685 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 27686 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
27687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27689 "RANLIB=$${RANLIB}" \
27690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
27691 maintainer-clean) \
27692 || exit 1
27693
a90ef4bf 27694@endif libiberty
93f9b408
ILT
27695
27696
27697
1b6c0831
L
27698.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
27699maybe-configure-libiberty-linker-plugin:
27700@if gcc-bootstrap
27701configure-libiberty-linker-plugin: stage_current
27702@endif gcc-bootstrap
27703@if libiberty-linker-plugin
27704maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
27705configure-libiberty-linker-plugin:
27706 @r=`${PWD_COMMAND}`; export r; \
27707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27708 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 27709 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
27710 $(HOST_EXPORTS) \
27711 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
27712 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
27713 case $(srcdir) in \
27714 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27715 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
27716 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27717 esac; \
27718 module_srcdir=libiberty; \
27719 $(SHELL) \
27720 $$s/$$module_srcdir/configure \
27721 --srcdir=$${topdir}/$$module_srcdir \
27722 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27723 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
27724 || exit 1
27725@endif libiberty-linker-plugin
27726
27727
27728
27729.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
27730maybe-configure-stage1-libiberty-linker-plugin:
27731@if libiberty-linker-plugin-bootstrap
27732maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
27733configure-stage1-libiberty-linker-plugin:
27734 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
27735 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
27736 @r=`${PWD_COMMAND}`; export r; \
27737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27738 TFLAGS="$(STAGE1_TFLAGS)"; \
27739 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
27740 $(HOST_EXPORTS) \
27741 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
27742 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27743 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27744 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
27745 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
27746 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
27747 case $(srcdir) in \
27748 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27749 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
27750 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27751 esac; \
27752 module_srcdir=libiberty; \
27753 $(SHELL) $$s/$$module_srcdir/configure \
27754 --srcdir=$${topdir}/$$module_srcdir \
27755 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27756 --target=${target_alias} \
27757 \
27758 $(STAGE1_CONFIGURE_FLAGS) \
27759 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
27760@endif libiberty-linker-plugin-bootstrap
27761
27762.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
27763maybe-configure-stage2-libiberty-linker-plugin:
27764@if libiberty-linker-plugin-bootstrap
27765maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
27766configure-stage2-libiberty-linker-plugin:
27767 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
27768 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
27769 @r=`${PWD_COMMAND}`; export r; \
27770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27771 TFLAGS="$(STAGE2_TFLAGS)"; \
27772 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
27773 $(HOST_EXPORTS) \
27774 $(POSTSTAGE1_HOST_EXPORTS) \
27775 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
27776 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27777 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27778 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
27779 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
27780 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
27781 case $(srcdir) in \
27782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27783 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
27784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27785 esac; \
27786 module_srcdir=libiberty; \
27787 $(SHELL) $$s/$$module_srcdir/configure \
27788 --srcdir=$${topdir}/$$module_srcdir \
27789 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27790 --target=${target_alias} \
22121df0 27791 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
27792 $(STAGE2_CONFIGURE_FLAGS) \
27793 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
27794@endif libiberty-linker-plugin-bootstrap
27795
27796.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
27797maybe-configure-stage3-libiberty-linker-plugin:
27798@if libiberty-linker-plugin-bootstrap
27799maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
27800configure-stage3-libiberty-linker-plugin:
27801 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
27802 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
27803 @r=`${PWD_COMMAND}`; export r; \
27804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27805 TFLAGS="$(STAGE3_TFLAGS)"; \
27806 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
27807 $(HOST_EXPORTS) \
27808 $(POSTSTAGE1_HOST_EXPORTS) \
27809 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
27810 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27811 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27812 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
27813 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
27814 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
27815 case $(srcdir) in \
27816 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27817 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
27818 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27819 esac; \
27820 module_srcdir=libiberty; \
27821 $(SHELL) $$s/$$module_srcdir/configure \
27822 --srcdir=$${topdir}/$$module_srcdir \
27823 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27824 --target=${target_alias} \
22121df0 27825 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
27826 $(STAGE3_CONFIGURE_FLAGS) \
27827 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
27828@endif libiberty-linker-plugin-bootstrap
27829
27830.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
27831maybe-configure-stage4-libiberty-linker-plugin:
27832@if libiberty-linker-plugin-bootstrap
27833maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
27834configure-stage4-libiberty-linker-plugin:
27835 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
27836 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
27837 @r=`${PWD_COMMAND}`; export r; \
27838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27839 TFLAGS="$(STAGE4_TFLAGS)"; \
27840 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
27841 $(HOST_EXPORTS) \
27842 $(POSTSTAGE1_HOST_EXPORTS) \
27843 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
27844 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27845 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27846 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
27847 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
27848 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
27849 case $(srcdir) in \
27850 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27851 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
27852 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27853 esac; \
27854 module_srcdir=libiberty; \
27855 $(SHELL) $$s/$$module_srcdir/configure \
27856 --srcdir=$${topdir}/$$module_srcdir \
27857 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27858 --target=${target_alias} \
22121df0 27859 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
27860 $(STAGE4_CONFIGURE_FLAGS) \
27861 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
27862@endif libiberty-linker-plugin-bootstrap
27863
27864.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
27865maybe-configure-stageprofile-libiberty-linker-plugin:
27866@if libiberty-linker-plugin-bootstrap
27867maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
27868configure-stageprofile-libiberty-linker-plugin:
27869 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
27870 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
27871 @r=`${PWD_COMMAND}`; export r; \
27872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27873 TFLAGS="$(STAGEprofile_TFLAGS)"; \
27874 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
27875 $(HOST_EXPORTS) \
27876 $(POSTSTAGE1_HOST_EXPORTS) \
27877 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
27878 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27879 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27880 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
27881 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
27882 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
27883 case $(srcdir) in \
27884 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27885 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
27886 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27887 esac; \
27888 module_srcdir=libiberty; \
27889 $(SHELL) $$s/$$module_srcdir/configure \
27890 --srcdir=$${topdir}/$$module_srcdir \
27891 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27892 --target=${target_alias} \
22121df0 27893 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
27894 $(STAGEprofile_CONFIGURE_FLAGS) \
27895 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
27896@endif libiberty-linker-plugin-bootstrap
27897
f948b2de
NC
27898.PHONY: configure-stagetrain-libiberty-linker-plugin maybe-configure-stagetrain-libiberty-linker-plugin
27899maybe-configure-stagetrain-libiberty-linker-plugin:
27900@if libiberty-linker-plugin-bootstrap
27901maybe-configure-stagetrain-libiberty-linker-plugin: configure-stagetrain-libiberty-linker-plugin
27902configure-stagetrain-libiberty-linker-plugin:
27903 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
27904 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
27905 @r=`${PWD_COMMAND}`; export r; \
27906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27907 TFLAGS="$(STAGEtrain_TFLAGS)"; \
27908 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
27909 $(HOST_EXPORTS) \
27910 $(POSTSTAGE1_HOST_EXPORTS) \
27911 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
27912 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
27913 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
27914 echo Configuring stage train in $(HOST_SUBDIR)/libiberty-linker-plugin; \
27915 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
27916 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
27917 case $(srcdir) in \
27918 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27919 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
27920 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27921 esac; \
27922 module_srcdir=libiberty; \
27923 $(SHELL) $$s/$$module_srcdir/configure \
27924 --srcdir=$${topdir}/$$module_srcdir \
27925 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27926 --target=${target_alias} \
27927 --with-build-libsubdir=$(HOST_SUBDIR) \
27928 $(STAGEtrain_CONFIGURE_FLAGS) \
27929 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
27930@endif libiberty-linker-plugin-bootstrap
27931
1b6c0831
L
27932.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
27933maybe-configure-stagefeedback-libiberty-linker-plugin:
27934@if libiberty-linker-plugin-bootstrap
27935maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
27936configure-stagefeedback-libiberty-linker-plugin:
27937 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
27938 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
27939 @r=`${PWD_COMMAND}`; export r; \
27940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27941 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
27942 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
27943 $(HOST_EXPORTS) \
27944 $(POSTSTAGE1_HOST_EXPORTS) \
27945 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
27946 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27947 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27948 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
27949 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
27950 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
27951 case $(srcdir) in \
27952 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27953 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
27954 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27955 esac; \
27956 module_srcdir=libiberty; \
27957 $(SHELL) $$s/$$module_srcdir/configure \
27958 --srcdir=$${topdir}/$$module_srcdir \
27959 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27960 --target=${target_alias} \
22121df0 27961 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
27962 $(STAGEfeedback_CONFIGURE_FLAGS) \
27963 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
27964@endif libiberty-linker-plugin-bootstrap
27965
f948b2de
NC
27966.PHONY: configure-stageautoprofile-libiberty-linker-plugin maybe-configure-stageautoprofile-libiberty-linker-plugin
27967maybe-configure-stageautoprofile-libiberty-linker-plugin:
27968@if libiberty-linker-plugin-bootstrap
27969maybe-configure-stageautoprofile-libiberty-linker-plugin: configure-stageautoprofile-libiberty-linker-plugin
27970configure-stageautoprofile-libiberty-linker-plugin:
27971 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
27972 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
27973 @r=`${PWD_COMMAND}`; export r; \
27974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27975 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
27976 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
27977 $(HOST_EXPORTS) \
27978 $(POSTSTAGE1_HOST_EXPORTS) \
27979 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
27980 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
27981 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
27982 echo Configuring stage autoprofile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
27983 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
27984 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
27985 case $(srcdir) in \
27986 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27987 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
27988 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27989 esac; \
27990 module_srcdir=libiberty; \
27991 $(SHELL) $$s/$$module_srcdir/configure \
27992 --srcdir=$${topdir}/$$module_srcdir \
27993 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
27994 --target=${target_alias} \
27995 --with-build-libsubdir=$(HOST_SUBDIR) \
27996 $(STAGEautoprofile_CONFIGURE_FLAGS) \
27997 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
27998@endif libiberty-linker-plugin-bootstrap
27999
28000.PHONY: configure-stageautofeedback-libiberty-linker-plugin maybe-configure-stageautofeedback-libiberty-linker-plugin
28001maybe-configure-stageautofeedback-libiberty-linker-plugin:
28002@if libiberty-linker-plugin-bootstrap
28003maybe-configure-stageautofeedback-libiberty-linker-plugin: configure-stageautofeedback-libiberty-linker-plugin
28004configure-stageautofeedback-libiberty-linker-plugin:
28005 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
28006 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
28007 @r=`${PWD_COMMAND}`; export r; \
28008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28009 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
28010 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
28011 $(HOST_EXPORTS) \
28012 $(POSTSTAGE1_HOST_EXPORTS) \
28013 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
28014 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
28015 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
28016 echo Configuring stage autofeedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
28017 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
28018 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
28019 case $(srcdir) in \
28020 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28021 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
28022 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28023 esac; \
28024 module_srcdir=libiberty; \
28025 $(SHELL) $$s/$$module_srcdir/configure \
28026 --srcdir=$${topdir}/$$module_srcdir \
28027 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28028 --target=${target_alias} \
28029 --with-build-libsubdir=$(HOST_SUBDIR) \
28030 $(STAGEautofeedback_CONFIGURE_FLAGS) \
28031 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
28032@endif libiberty-linker-plugin-bootstrap
28033
1b6c0831
L
28034
28035
28036
28037
28038.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
28039maybe-all-libiberty-linker-plugin:
28040@if gcc-bootstrap
28041all-libiberty-linker-plugin: stage_current
28042@endif gcc-bootstrap
28043@if libiberty-linker-plugin
28044TARGET-libiberty-linker-plugin=all
28045maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
28046all-libiberty-linker-plugin: configure-libiberty-linker-plugin
28047 @r=`${PWD_COMMAND}`; export r; \
28048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28049 $(HOST_EXPORTS) \
28050 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28051 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
28052 $(TARGET-libiberty-linker-plugin))
28053@endif libiberty-linker-plugin
28054
28055
28056
28057.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
28058.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
28059maybe-all-stage1-libiberty-linker-plugin:
28060maybe-clean-stage1-libiberty-linker-plugin:
28061@if libiberty-linker-plugin-bootstrap
28062maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
28063all-stage1: all-stage1-libiberty-linker-plugin
28064TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
28065all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
28066 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
28067 @r=`${PWD_COMMAND}`; export r; \
28068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28069 TFLAGS="$(STAGE1_TFLAGS)"; \
28070 $(HOST_EXPORTS) \
28071 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 28072 \
1b6c0831
L
28073 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28074 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 28075 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
1b6c0831
L
28076 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
28077 LIBCFLAGS="$(LIBCFLAGS)" \
28078 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28079 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28080 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28081 $(EXTRA_HOST_FLAGS) \
28082 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 28083 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
28084 $(TARGET-stage1-libiberty-linker-plugin)
28085
28086maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
28087clean-stage1: clean-stage1-libiberty-linker-plugin
28088clean-stage1-libiberty-linker-plugin:
28089 @if [ $(current_stage) = stage1 ]; then \
28090 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
28091 else \
28092 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
28093 $(MAKE) stage1-start; \
28094 fi; \
28095 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28096 $(MAKE) $(EXTRA_HOST_FLAGS) \
28097 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
28098@endif libiberty-linker-plugin-bootstrap
28099
28100
28101.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
28102.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
28103maybe-all-stage2-libiberty-linker-plugin:
28104maybe-clean-stage2-libiberty-linker-plugin:
28105@if libiberty-linker-plugin-bootstrap
28106maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
28107all-stage2: all-stage2-libiberty-linker-plugin
28108TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
28109all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
28110 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
28111 @r=`${PWD_COMMAND}`; export r; \
28112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28113 TFLAGS="$(STAGE2_TFLAGS)"; \
28114 $(HOST_EXPORTS) \
28115 $(POSTSTAGE1_HOST_EXPORTS) \
28116 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 28117 \
1b6c0831
L
28118 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28119 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 28120 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
1b6c0831
L
28121 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
28122 LIBCFLAGS="$(STAGE2_CFLAGS)" \
28123 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28124 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28125 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28126 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 28127 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
28128 $(TARGET-stage2-libiberty-linker-plugin)
28129
28130maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
28131clean-stage2: clean-stage2-libiberty-linker-plugin
28132clean-stage2-libiberty-linker-plugin:
28133 @if [ $(current_stage) = stage2 ]; then \
28134 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
28135 else \
28136 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
28137 $(MAKE) stage2-start; \
28138 fi; \
28139 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28140 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
28141@endif libiberty-linker-plugin-bootstrap
28142
28143
28144.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
28145.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
28146maybe-all-stage3-libiberty-linker-plugin:
28147maybe-clean-stage3-libiberty-linker-plugin:
28148@if libiberty-linker-plugin-bootstrap
28149maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
28150all-stage3: all-stage3-libiberty-linker-plugin
28151TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
28152all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
28153 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
28154 @r=`${PWD_COMMAND}`; export r; \
28155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28156 TFLAGS="$(STAGE3_TFLAGS)"; \
28157 $(HOST_EXPORTS) \
28158 $(POSTSTAGE1_HOST_EXPORTS) \
28159 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 28160 \
1b6c0831
L
28161 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28162 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 28163 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
1b6c0831
L
28164 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
28165 LIBCFLAGS="$(STAGE3_CFLAGS)" \
28166 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28167 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28168 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28169 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 28170 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
28171 $(TARGET-stage3-libiberty-linker-plugin)
28172
28173maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
28174clean-stage3: clean-stage3-libiberty-linker-plugin
28175clean-stage3-libiberty-linker-plugin:
28176 @if [ $(current_stage) = stage3 ]; then \
28177 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
28178 else \
28179 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
28180 $(MAKE) stage3-start; \
28181 fi; \
28182 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28183 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
28184@endif libiberty-linker-plugin-bootstrap
28185
28186
28187.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
28188.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
28189maybe-all-stage4-libiberty-linker-plugin:
28190maybe-clean-stage4-libiberty-linker-plugin:
28191@if libiberty-linker-plugin-bootstrap
28192maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
28193all-stage4: all-stage4-libiberty-linker-plugin
28194TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
28195all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
28196 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
28197 @r=`${PWD_COMMAND}`; export r; \
28198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28199 TFLAGS="$(STAGE4_TFLAGS)"; \
28200 $(HOST_EXPORTS) \
28201 $(POSTSTAGE1_HOST_EXPORTS) \
28202 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 28203 \
1b6c0831
L
28204 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28205 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 28206 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
1b6c0831
L
28207 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
28208 LIBCFLAGS="$(STAGE4_CFLAGS)" \
28209 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28210 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28211 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28212 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 28213 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
28214 $(TARGET-stage4-libiberty-linker-plugin)
28215
28216maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
28217clean-stage4: clean-stage4-libiberty-linker-plugin
28218clean-stage4-libiberty-linker-plugin:
28219 @if [ $(current_stage) = stage4 ]; then \
28220 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
28221 else \
28222 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
28223 $(MAKE) stage4-start; \
28224 fi; \
28225 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28226 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
28227@endif libiberty-linker-plugin-bootstrap
28228
28229
28230.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
28231.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
28232maybe-all-stageprofile-libiberty-linker-plugin:
28233maybe-clean-stageprofile-libiberty-linker-plugin:
28234@if libiberty-linker-plugin-bootstrap
28235maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
28236all-stageprofile: all-stageprofile-libiberty-linker-plugin
28237TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
28238all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
28239 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
28240 @r=`${PWD_COMMAND}`; export r; \
28241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28242 TFLAGS="$(STAGEprofile_TFLAGS)"; \
28243 $(HOST_EXPORTS) \
28244 $(POSTSTAGE1_HOST_EXPORTS) \
28245 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 28246 \
1b6c0831
L
28247 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28248 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 28249 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
1b6c0831
L
28250 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
28251 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
28252 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28253 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28254 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28255 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 28256 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
28257 $(TARGET-stageprofile-libiberty-linker-plugin)
28258
28259maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
28260clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
28261clean-stageprofile-libiberty-linker-plugin:
28262 @if [ $(current_stage) = stageprofile ]; then \
28263 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
28264 else \
28265 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
28266 $(MAKE) stageprofile-start; \
28267 fi; \
28268 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28269 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
28270@endif libiberty-linker-plugin-bootstrap
28271
28272
f948b2de
NC
28273.PHONY: all-stagetrain-libiberty-linker-plugin maybe-all-stagetrain-libiberty-linker-plugin
28274.PHONY: clean-stagetrain-libiberty-linker-plugin maybe-clean-stagetrain-libiberty-linker-plugin
28275maybe-all-stagetrain-libiberty-linker-plugin:
28276maybe-clean-stagetrain-libiberty-linker-plugin:
28277@if libiberty-linker-plugin-bootstrap
28278maybe-all-stagetrain-libiberty-linker-plugin: all-stagetrain-libiberty-linker-plugin
28279all-stagetrain: all-stagetrain-libiberty-linker-plugin
28280TARGET-stagetrain-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
28281all-stagetrain-libiberty-linker-plugin: configure-stagetrain-libiberty-linker-plugin
28282 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
28283 @r=`${PWD_COMMAND}`; export r; \
28284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28285 TFLAGS="$(STAGEtrain_TFLAGS)"; \
28286 $(HOST_EXPORTS) \
28287 $(POSTSTAGE1_HOST_EXPORTS) \
28288 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28289 \
28290 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28291 CFLAGS="$(STAGEtrain_CFLAGS)" \
28292 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
28293 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
28294 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
28295 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28296 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28297 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28298 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
28299 TFLAGS="$(STAGEtrain_TFLAGS)" \
28300 $(TARGET-stagetrain-libiberty-linker-plugin)
28301
28302maybe-clean-stagetrain-libiberty-linker-plugin: clean-stagetrain-libiberty-linker-plugin
28303clean-stagetrain: clean-stagetrain-libiberty-linker-plugin
28304clean-stagetrain-libiberty-linker-plugin:
28305 @if [ $(current_stage) = stagetrain ]; then \
28306 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
28307 else \
28308 [ -f $(HOST_SUBDIR)/stagetrain-libiberty-linker-plugin/Makefile ] || exit 0; \
28309 $(MAKE) stagetrain-start; \
28310 fi; \
28311 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28312 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
28313@endif libiberty-linker-plugin-bootstrap
28314
28315
1b6c0831
L
28316.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
28317.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
28318maybe-all-stagefeedback-libiberty-linker-plugin:
28319maybe-clean-stagefeedback-libiberty-linker-plugin:
28320@if libiberty-linker-plugin-bootstrap
28321maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
28322all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
28323TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
28324all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
28325 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
28326 @r=`${PWD_COMMAND}`; export r; \
28327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28328 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
28329 $(HOST_EXPORTS) \
28330 $(POSTSTAGE1_HOST_EXPORTS) \
28331 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 28332 \
1b6c0831
L
28333 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28334 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 28335 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
1b6c0831
L
28336 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
28337 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
28338 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28339 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28340 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28341 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 28342 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
28343 $(TARGET-stagefeedback-libiberty-linker-plugin)
28344
28345maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
28346clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
28347clean-stagefeedback-libiberty-linker-plugin:
28348 @if [ $(current_stage) = stagefeedback ]; then \
28349 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
28350 else \
28351 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
28352 $(MAKE) stagefeedback-start; \
28353 fi; \
28354 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28355 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
28356@endif libiberty-linker-plugin-bootstrap
28357
28358
f948b2de
NC
28359.PHONY: all-stageautoprofile-libiberty-linker-plugin maybe-all-stageautoprofile-libiberty-linker-plugin
28360.PHONY: clean-stageautoprofile-libiberty-linker-plugin maybe-clean-stageautoprofile-libiberty-linker-plugin
28361maybe-all-stageautoprofile-libiberty-linker-plugin:
28362maybe-clean-stageautoprofile-libiberty-linker-plugin:
28363@if libiberty-linker-plugin-bootstrap
28364maybe-all-stageautoprofile-libiberty-linker-plugin: all-stageautoprofile-libiberty-linker-plugin
28365all-stageautoprofile: all-stageautoprofile-libiberty-linker-plugin
28366TARGET-stageautoprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
28367all-stageautoprofile-libiberty-linker-plugin: configure-stageautoprofile-libiberty-linker-plugin
28368 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
28369 @r=`${PWD_COMMAND}`; export r; \
28370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28371 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
28372 $(HOST_EXPORTS) \
28373 $(POSTSTAGE1_HOST_EXPORTS) \
28374 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28375 $$s/gcc/config/i386/$(AUTO_PROFILE) \
28376 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28377 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
28378 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
28379 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
28380 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
28381 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28382 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28383 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28384 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
28385 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
28386 $(TARGET-stageautoprofile-libiberty-linker-plugin)
28387
28388maybe-clean-stageautoprofile-libiberty-linker-plugin: clean-stageautoprofile-libiberty-linker-plugin
28389clean-stageautoprofile: clean-stageautoprofile-libiberty-linker-plugin
28390clean-stageautoprofile-libiberty-linker-plugin:
28391 @if [ $(current_stage) = stageautoprofile ]; then \
28392 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
28393 else \
28394 [ -f $(HOST_SUBDIR)/stageautoprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
28395 $(MAKE) stageautoprofile-start; \
28396 fi; \
28397 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28398 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
28399@endif libiberty-linker-plugin-bootstrap
28400
28401
28402.PHONY: all-stageautofeedback-libiberty-linker-plugin maybe-all-stageautofeedback-libiberty-linker-plugin
28403.PHONY: clean-stageautofeedback-libiberty-linker-plugin maybe-clean-stageautofeedback-libiberty-linker-plugin
28404maybe-all-stageautofeedback-libiberty-linker-plugin:
28405maybe-clean-stageautofeedback-libiberty-linker-plugin:
28406@if libiberty-linker-plugin-bootstrap
28407maybe-all-stageautofeedback-libiberty-linker-plugin: all-stageautofeedback-libiberty-linker-plugin
28408all-stageautofeedback: all-stageautofeedback-libiberty-linker-plugin
28409TARGET-stageautofeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
28410all-stageautofeedback-libiberty-linker-plugin: configure-stageautofeedback-libiberty-linker-plugin
28411 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
28412 @r=`${PWD_COMMAND}`; export r; \
28413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28414 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
28415 $(HOST_EXPORTS) \
28416 $(POSTSTAGE1_HOST_EXPORTS) \
28417 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28418 \
28419 $(MAKE) $(BASE_FLAGS_TO_PASS) \
28420 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
28421 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
28422 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
28423 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
28424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
28425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
28426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
28427 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
28428 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
28429 $(TARGET-stageautofeedback-libiberty-linker-plugin)
28430
28431maybe-clean-stageautofeedback-libiberty-linker-plugin: clean-stageautofeedback-libiberty-linker-plugin
28432clean-stageautofeedback: clean-stageautofeedback-libiberty-linker-plugin
28433clean-stageautofeedback-libiberty-linker-plugin:
28434 @if [ $(current_stage) = stageautofeedback ]; then \
28435 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
28436 else \
28437 [ -f $(HOST_SUBDIR)/stageautofeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
28438 $(MAKE) stageautofeedback-start; \
28439 fi; \
28440 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28441 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
28442@endif libiberty-linker-plugin-bootstrap
28443
28444
1b6c0831
L
28445
28446
28447
28448.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
28449maybe-check-libiberty-linker-plugin:
28450@if libiberty-linker-plugin
28451maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
28452
28453check-libiberty-linker-plugin:
28454 @: $(MAKE); $(unstage)
28455 @r=`${PWD_COMMAND}`; export r; \
28456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28457 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 28458 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 28459 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
28460
28461@endif libiberty-linker-plugin
28462
28463.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
28464maybe-install-libiberty-linker-plugin:
28465@if libiberty-linker-plugin
28466maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
28467
28468install-libiberty-linker-plugin: installdirs
28469 @: $(MAKE); $(unstage)
28470 @r=`${PWD_COMMAND}`; export r; \
28471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28472 $(HOST_EXPORTS) \
28473 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28474 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
28475
28476@endif libiberty-linker-plugin
28477
28478.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
28479maybe-install-strip-libiberty-linker-plugin:
28480@if libiberty-linker-plugin
28481maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
28482
28483install-strip-libiberty-linker-plugin: installdirs
28484 @: $(MAKE); $(unstage)
28485 @r=`${PWD_COMMAND}`; export r; \
28486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28487 $(HOST_EXPORTS) \
28488 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28489 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
28490
28491@endif libiberty-linker-plugin
28492
28493# Other targets (info, dvi, pdf, etc.)
28494
28495.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
28496maybe-info-libiberty-linker-plugin:
28497@if libiberty-linker-plugin
28498maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
28499
28500info-libiberty-linker-plugin: \
28501 configure-libiberty-linker-plugin
28502 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28503 r=`${PWD_COMMAND}`; export r; \
28504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28505 $(HOST_EXPORTS) \
28506 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28508 done; \
22121df0 28509 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
28510 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28513 "RANLIB=$${RANLIB}" \
28514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28515 info) \
28516 || exit 1
28517
28518@endif libiberty-linker-plugin
28519
28520.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
28521maybe-dvi-libiberty-linker-plugin:
28522@if libiberty-linker-plugin
28523maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
28524
28525dvi-libiberty-linker-plugin: \
28526 configure-libiberty-linker-plugin
28527 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28528 r=`${PWD_COMMAND}`; export r; \
28529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28530 $(HOST_EXPORTS) \
28531 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28533 done; \
22121df0 28534 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
28535 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28538 "RANLIB=$${RANLIB}" \
28539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28540 dvi) \
28541 || exit 1
28542
28543@endif libiberty-linker-plugin
28544
28545.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
28546maybe-pdf-libiberty-linker-plugin:
28547@if libiberty-linker-plugin
28548maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
28549
28550pdf-libiberty-linker-plugin: \
28551 configure-libiberty-linker-plugin
28552 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28553 r=`${PWD_COMMAND}`; export r; \
28554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28555 $(HOST_EXPORTS) \
28556 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28558 done; \
22121df0 28559 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
28560 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28563 "RANLIB=$${RANLIB}" \
28564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28565 pdf) \
28566 || exit 1
28567
28568@endif libiberty-linker-plugin
28569
28570.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
28571maybe-html-libiberty-linker-plugin:
28572@if libiberty-linker-plugin
28573maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
28574
28575html-libiberty-linker-plugin: \
28576 configure-libiberty-linker-plugin
28577 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28578 r=`${PWD_COMMAND}`; export r; \
28579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28580 $(HOST_EXPORTS) \
28581 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28583 done; \
22121df0 28584 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
28585 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28588 "RANLIB=$${RANLIB}" \
28589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28590 html) \
28591 || exit 1
28592
28593@endif libiberty-linker-plugin
28594
28595.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
28596maybe-TAGS-libiberty-linker-plugin:
28597@if libiberty-linker-plugin
28598maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
28599
28600TAGS-libiberty-linker-plugin: \
28601 configure-libiberty-linker-plugin
28602 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28603 r=`${PWD_COMMAND}`; export r; \
28604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28605 $(HOST_EXPORTS) \
28606 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28608 done; \
22121df0 28609 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
28610 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28613 "RANLIB=$${RANLIB}" \
28614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28615 TAGS) \
28616 || exit 1
28617
28618@endif libiberty-linker-plugin
28619
28620.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
28621maybe-install-info-libiberty-linker-plugin:
28622@if libiberty-linker-plugin
28623maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
28624
28625install-info-libiberty-linker-plugin: \
28626 configure-libiberty-linker-plugin \
28627 info-libiberty-linker-plugin
28628 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28629 r=`${PWD_COMMAND}`; export r; \
28630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28631 $(HOST_EXPORTS) \
28632 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28634 done; \
22121df0 28635 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
28636 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28639 "RANLIB=$${RANLIB}" \
28640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28641 install-info) \
28642 || exit 1
28643
28644@endif libiberty-linker-plugin
28645
28646.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
28647maybe-install-pdf-libiberty-linker-plugin:
28648@if libiberty-linker-plugin
28649maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
28650
28651install-pdf-libiberty-linker-plugin: \
28652 configure-libiberty-linker-plugin \
28653 pdf-libiberty-linker-plugin
28654 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28655 r=`${PWD_COMMAND}`; export r; \
28656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28657 $(HOST_EXPORTS) \
28658 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28660 done; \
22121df0 28661 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
28662 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28665 "RANLIB=$${RANLIB}" \
28666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28667 install-pdf) \
28668 || exit 1
28669
28670@endif libiberty-linker-plugin
28671
28672.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
28673maybe-install-html-libiberty-linker-plugin:
28674@if libiberty-linker-plugin
28675maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
28676
28677install-html-libiberty-linker-plugin: \
28678 configure-libiberty-linker-plugin \
28679 html-libiberty-linker-plugin
28680 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28681 r=`${PWD_COMMAND}`; export r; \
28682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28683 $(HOST_EXPORTS) \
28684 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28686 done; \
22121df0 28687 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
28688 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28691 "RANLIB=$${RANLIB}" \
28692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28693 install-html) \
28694 || exit 1
28695
28696@endif libiberty-linker-plugin
28697
28698.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
28699maybe-installcheck-libiberty-linker-plugin:
28700@if libiberty-linker-plugin
28701maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
28702
28703installcheck-libiberty-linker-plugin: \
28704 configure-libiberty-linker-plugin
28705 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28706 r=`${PWD_COMMAND}`; export r; \
28707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28708 $(HOST_EXPORTS) \
28709 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28711 done; \
22121df0 28712 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
28713 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28716 "RANLIB=$${RANLIB}" \
28717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28718 installcheck) \
28719 || exit 1
28720
28721@endif libiberty-linker-plugin
28722
28723.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
28724maybe-mostlyclean-libiberty-linker-plugin:
28725@if libiberty-linker-plugin
28726maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
28727
28728mostlyclean-libiberty-linker-plugin:
28729 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28730 r=`${PWD_COMMAND}`; export r; \
28731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28732 $(HOST_EXPORTS) \
28733 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28735 done; \
22121df0 28736 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
28737 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28740 "RANLIB=$${RANLIB}" \
28741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28742 mostlyclean) \
28743 || exit 1
28744
28745@endif libiberty-linker-plugin
28746
28747.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
28748maybe-clean-libiberty-linker-plugin:
28749@if libiberty-linker-plugin
28750maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
28751
28752clean-libiberty-linker-plugin:
28753 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28754 r=`${PWD_COMMAND}`; export r; \
28755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28756 $(HOST_EXPORTS) \
28757 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28759 done; \
22121df0 28760 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
28761 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28764 "RANLIB=$${RANLIB}" \
28765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28766 clean) \
28767 || exit 1
28768
28769@endif libiberty-linker-plugin
28770
28771.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
28772maybe-distclean-libiberty-linker-plugin:
28773@if libiberty-linker-plugin
28774maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
28775
28776distclean-libiberty-linker-plugin:
28777 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28778 r=`${PWD_COMMAND}`; export r; \
28779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28780 $(HOST_EXPORTS) \
28781 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28783 done; \
22121df0 28784 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
28785 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28788 "RANLIB=$${RANLIB}" \
28789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28790 distclean) \
28791 || exit 1
28792
28793@endif libiberty-linker-plugin
28794
28795.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
28796maybe-maintainer-clean-libiberty-linker-plugin:
28797@if libiberty-linker-plugin
28798maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
28799
28800maintainer-clean-libiberty-linker-plugin:
28801 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
28802 r=`${PWD_COMMAND}`; export r; \
28803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28804 $(HOST_EXPORTS) \
28805 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
28806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28807 done; \
22121df0 28808 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
28809 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
28810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28812 "RANLIB=$${RANLIB}" \
28813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28814 maintainer-clean) \
28815 || exit 1
28816
28817@endif libiberty-linker-plugin
28818
28819
28820
a90ef4bf
JM
28821.PHONY: configure-libiconv maybe-configure-libiconv
28822maybe-configure-libiconv:
4f0ef2d8 28823@if gcc-bootstrap
a90ef4bf 28824configure-libiconv: stage_current
4f0ef2d8 28825@endif gcc-bootstrap
a90ef4bf
JM
28826@if libiconv
28827maybe-configure-libiconv: configure-libiconv
28828configure-libiconv:
c52c6897 28829 @r=`${PWD_COMMAND}`; export r; \
b40e3958 28830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28831 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 28832 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 28833 $(HOST_EXPORTS) \
a90ef4bf
JM
28834 echo Configuring in $(HOST_SUBDIR)/libiconv; \
28835 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 28836 case $(srcdir) in \
b00612cc 28837 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28838 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 28839 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 28840 esac; \
1b6c0831
L
28841 module_srcdir=libiconv; \
28842 $(SHELL) \
28843 $$s/$$module_srcdir/configure \
28844 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28845 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28846 --target=${target_alias} --disable-shared \
2a4cbe27 28847 || exit 1
a90ef4bf 28848@endif libiconv
2a4cbe27 28849
a7254363
PB
28850
28851
016a3251
DD
28852.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
28853maybe-configure-stage1-libiconv:
28854@if libiconv-bootstrap
28855maybe-configure-stage1-libiconv: configure-stage1-libiconv
28856configure-stage1-libiconv:
28857 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
28858 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
28859 @r=`${PWD_COMMAND}`; export r; \
28860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28861 TFLAGS="$(STAGE1_TFLAGS)"; \
28862 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
28863 $(HOST_EXPORTS) \
28864 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
28865 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
28866 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
28867 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
28868 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
28869 cd $(HOST_SUBDIR)/libiconv || exit 1; \
28870 case $(srcdir) in \
28871 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28872 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
28873 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28874 esac; \
28875 module_srcdir=libiconv; \
28876 $(SHELL) $$s/$$module_srcdir/configure \
28877 --srcdir=$${topdir}/$$module_srcdir \
28878 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28879 --target=${target_alias} \
28880 \
28881 $(STAGE1_CONFIGURE_FLAGS) \
28882 --disable-shared
28883@endif libiconv-bootstrap
28884
28885.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
28886maybe-configure-stage2-libiconv:
28887@if libiconv-bootstrap
28888maybe-configure-stage2-libiconv: configure-stage2-libiconv
28889configure-stage2-libiconv:
28890 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
28891 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
28892 @r=`${PWD_COMMAND}`; export r; \
28893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28894 TFLAGS="$(STAGE2_TFLAGS)"; \
28895 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
28896 $(HOST_EXPORTS) \
28897 $(POSTSTAGE1_HOST_EXPORTS) \
28898 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
28899 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
28900 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
28901 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
28902 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
28903 cd $(HOST_SUBDIR)/libiconv || exit 1; \
28904 case $(srcdir) in \
28905 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28906 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
28907 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28908 esac; \
28909 module_srcdir=libiconv; \
28910 $(SHELL) $$s/$$module_srcdir/configure \
28911 --srcdir=$${topdir}/$$module_srcdir \
28912 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28913 --target=${target_alias} \
28914 --with-build-libsubdir=$(HOST_SUBDIR) \
28915 $(STAGE2_CONFIGURE_FLAGS) \
28916 --disable-shared
28917@endif libiconv-bootstrap
28918
28919.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
28920maybe-configure-stage3-libiconv:
28921@if libiconv-bootstrap
28922maybe-configure-stage3-libiconv: configure-stage3-libiconv
28923configure-stage3-libiconv:
28924 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
28925 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
28926 @r=`${PWD_COMMAND}`; export r; \
28927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28928 TFLAGS="$(STAGE3_TFLAGS)"; \
28929 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
28930 $(HOST_EXPORTS) \
28931 $(POSTSTAGE1_HOST_EXPORTS) \
28932 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
28933 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
28934 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
28935 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
28936 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
28937 cd $(HOST_SUBDIR)/libiconv || exit 1; \
28938 case $(srcdir) in \
28939 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28940 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
28941 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28942 esac; \
28943 module_srcdir=libiconv; \
28944 $(SHELL) $$s/$$module_srcdir/configure \
28945 --srcdir=$${topdir}/$$module_srcdir \
28946 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28947 --target=${target_alias} \
28948 --with-build-libsubdir=$(HOST_SUBDIR) \
28949 $(STAGE3_CONFIGURE_FLAGS) \
28950 --disable-shared
28951@endif libiconv-bootstrap
28952
28953.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
28954maybe-configure-stage4-libiconv:
28955@if libiconv-bootstrap
28956maybe-configure-stage4-libiconv: configure-stage4-libiconv
28957configure-stage4-libiconv:
28958 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
28959 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
28960 @r=`${PWD_COMMAND}`; export r; \
28961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28962 TFLAGS="$(STAGE4_TFLAGS)"; \
28963 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
28964 $(HOST_EXPORTS) \
28965 $(POSTSTAGE1_HOST_EXPORTS) \
28966 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
28967 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
28968 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
28969 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
28970 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
28971 cd $(HOST_SUBDIR)/libiconv || exit 1; \
28972 case $(srcdir) in \
28973 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28974 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
28975 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28976 esac; \
28977 module_srcdir=libiconv; \
28978 $(SHELL) $$s/$$module_srcdir/configure \
28979 --srcdir=$${topdir}/$$module_srcdir \
28980 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28981 --target=${target_alias} \
28982 --with-build-libsubdir=$(HOST_SUBDIR) \
28983 $(STAGE4_CONFIGURE_FLAGS) \
28984 --disable-shared
28985@endif libiconv-bootstrap
28986
28987.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
28988maybe-configure-stageprofile-libiconv:
28989@if libiconv-bootstrap
28990maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
28991configure-stageprofile-libiconv:
28992 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
28993 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
28994 @r=`${PWD_COMMAND}`; export r; \
28995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28996 TFLAGS="$(STAGEprofile_TFLAGS)"; \
28997 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
28998 $(HOST_EXPORTS) \
28999 $(POSTSTAGE1_HOST_EXPORTS) \
29000 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
29001 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
29002 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
29003 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
29004 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
29005 cd $(HOST_SUBDIR)/libiconv || exit 1; \
29006 case $(srcdir) in \
29007 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29008 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
29009 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29010 esac; \
29011 module_srcdir=libiconv; \
29012 $(SHELL) $$s/$$module_srcdir/configure \
29013 --srcdir=$${topdir}/$$module_srcdir \
29014 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29015 --target=${target_alias} \
29016 --with-build-libsubdir=$(HOST_SUBDIR) \
29017 $(STAGEprofile_CONFIGURE_FLAGS) \
29018 --disable-shared
29019@endif libiconv-bootstrap
29020
f948b2de
NC
29021.PHONY: configure-stagetrain-libiconv maybe-configure-stagetrain-libiconv
29022maybe-configure-stagetrain-libiconv:
29023@if libiconv-bootstrap
29024maybe-configure-stagetrain-libiconv: configure-stagetrain-libiconv
29025configure-stagetrain-libiconv:
29026 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
29027 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
29028 @r=`${PWD_COMMAND}`; export r; \
29029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29030 TFLAGS="$(STAGEtrain_TFLAGS)"; \
29031 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
29032 $(HOST_EXPORTS) \
29033 $(POSTSTAGE1_HOST_EXPORTS) \
29034 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
29035 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
29036 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
29037 echo Configuring stage train in $(HOST_SUBDIR)/libiconv; \
29038 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
29039 cd $(HOST_SUBDIR)/libiconv || exit 1; \
29040 case $(srcdir) in \
29041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29042 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
29043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29044 esac; \
29045 module_srcdir=libiconv; \
29046 $(SHELL) $$s/$$module_srcdir/configure \
29047 --srcdir=$${topdir}/$$module_srcdir \
29048 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29049 --target=${target_alias} \
29050 --with-build-libsubdir=$(HOST_SUBDIR) \
29051 $(STAGEtrain_CONFIGURE_FLAGS) \
29052 --disable-shared
29053@endif libiconv-bootstrap
29054
016a3251
DD
29055.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
29056maybe-configure-stagefeedback-libiconv:
29057@if libiconv-bootstrap
29058maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
29059configure-stagefeedback-libiconv:
29060 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
29061 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
29062 @r=`${PWD_COMMAND}`; export r; \
29063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29064 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
29065 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
29066 $(HOST_EXPORTS) \
29067 $(POSTSTAGE1_HOST_EXPORTS) \
29068 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
29069 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
29070 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
29071 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
29072 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
29073 cd $(HOST_SUBDIR)/libiconv || exit 1; \
29074 case $(srcdir) in \
29075 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29076 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
29077 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29078 esac; \
29079 module_srcdir=libiconv; \
29080 $(SHELL) $$s/$$module_srcdir/configure \
29081 --srcdir=$${topdir}/$$module_srcdir \
29082 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29083 --target=${target_alias} \
29084 --with-build-libsubdir=$(HOST_SUBDIR) \
29085 $(STAGEfeedback_CONFIGURE_FLAGS) \
29086 --disable-shared
29087@endif libiconv-bootstrap
29088
f948b2de
NC
29089.PHONY: configure-stageautoprofile-libiconv maybe-configure-stageautoprofile-libiconv
29090maybe-configure-stageautoprofile-libiconv:
29091@if libiconv-bootstrap
29092maybe-configure-stageautoprofile-libiconv: configure-stageautoprofile-libiconv
29093configure-stageautoprofile-libiconv:
29094 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
29095 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
29096 @r=`${PWD_COMMAND}`; export r; \
29097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29098 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
29099 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
29100 $(HOST_EXPORTS) \
29101 $(POSTSTAGE1_HOST_EXPORTS) \
29102 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
29103 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
29104 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
29105 echo Configuring stage autoprofile in $(HOST_SUBDIR)/libiconv; \
29106 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
29107 cd $(HOST_SUBDIR)/libiconv || exit 1; \
29108 case $(srcdir) in \
29109 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29110 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
29111 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29112 esac; \
29113 module_srcdir=libiconv; \
29114 $(SHELL) $$s/$$module_srcdir/configure \
29115 --srcdir=$${topdir}/$$module_srcdir \
29116 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29117 --target=${target_alias} \
29118 --with-build-libsubdir=$(HOST_SUBDIR) \
29119 $(STAGEautoprofile_CONFIGURE_FLAGS) \
29120 --disable-shared
29121@endif libiconv-bootstrap
29122
29123.PHONY: configure-stageautofeedback-libiconv maybe-configure-stageautofeedback-libiconv
29124maybe-configure-stageautofeedback-libiconv:
29125@if libiconv-bootstrap
29126maybe-configure-stageautofeedback-libiconv: configure-stageautofeedback-libiconv
29127configure-stageautofeedback-libiconv:
29128 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
29129 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
29130 @r=`${PWD_COMMAND}`; export r; \
29131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29132 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
29133 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
29134 $(HOST_EXPORTS) \
29135 $(POSTSTAGE1_HOST_EXPORTS) \
29136 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
29137 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
29138 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
29139 echo Configuring stage autofeedback in $(HOST_SUBDIR)/libiconv; \
29140 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
29141 cd $(HOST_SUBDIR)/libiconv || exit 1; \
29142 case $(srcdir) in \
29143 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29144 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
29145 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29146 esac; \
29147 module_srcdir=libiconv; \
29148 $(SHELL) $$s/$$module_srcdir/configure \
29149 --srcdir=$${topdir}/$$module_srcdir \
29150 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29151 --target=${target_alias} \
29152 --with-build-libsubdir=$(HOST_SUBDIR) \
29153 $(STAGEautofeedback_CONFIGURE_FLAGS) \
29154 --disable-shared
29155@endif libiconv-bootstrap
29156
016a3251
DD
29157
29158
d545f33b
PB
29159
29160
a90ef4bf
JM
29161.PHONY: all-libiconv maybe-all-libiconv
29162maybe-all-libiconv:
4f0ef2d8 29163@if gcc-bootstrap
a90ef4bf 29164all-libiconv: stage_current
4f0ef2d8 29165@endif gcc-bootstrap
a90ef4bf
JM
29166@if libiconv
29167TARGET-libiconv=all
29168maybe-all-libiconv: all-libiconv
29169all-libiconv: configure-libiconv
4fa63067
NN
29170 @r=`${PWD_COMMAND}`; export r; \
29171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29172 $(HOST_EXPORTS) \
a90ef4bf 29173 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 29174 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29175 $(TARGET-libiconv))
29176@endif libiconv
2a4cbe27 29177
a7254363 29178
d545f33b 29179
016a3251
DD
29180.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
29181.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
29182maybe-all-stage1-libiconv:
29183maybe-clean-stage1-libiconv:
29184@if libiconv-bootstrap
29185maybe-all-stage1-libiconv: all-stage1-libiconv
29186all-stage1: all-stage1-libiconv
29187TARGET-stage1-libiconv = $(TARGET-libiconv)
29188all-stage1-libiconv: configure-stage1-libiconv
29189 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
29190 @r=`${PWD_COMMAND}`; export r; \
29191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29192 TFLAGS="$(STAGE1_TFLAGS)"; \
29193 $(HOST_EXPORTS) \
29194 cd $(HOST_SUBDIR)/libiconv && \
05a13254 29195 \
016a3251
DD
29196 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29197 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 29198 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
016a3251
DD
29199 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
29200 LIBCFLAGS="$(LIBCFLAGS)" \
29201 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29202 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29203 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29204 $(EXTRA_HOST_FLAGS) \
29205 $(STAGE1_FLAGS_TO_PASS) \
05a13254 29206 TFLAGS="$(STAGE1_TFLAGS)" \
016a3251
DD
29207 $(TARGET-stage1-libiconv)
29208
29209maybe-clean-stage1-libiconv: clean-stage1-libiconv
29210clean-stage1: clean-stage1-libiconv
29211clean-stage1-libiconv:
29212 @if [ $(current_stage) = stage1 ]; then \
29213 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
29214 else \
29215 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
29216 $(MAKE) stage1-start; \
29217 fi; \
29218 cd $(HOST_SUBDIR)/libiconv && \
29219 $(MAKE) $(EXTRA_HOST_FLAGS) \
29220 $(STAGE1_FLAGS_TO_PASS) clean
29221@endif libiconv-bootstrap
29222
29223
29224.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
29225.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
29226maybe-all-stage2-libiconv:
29227maybe-clean-stage2-libiconv:
29228@if libiconv-bootstrap
29229maybe-all-stage2-libiconv: all-stage2-libiconv
29230all-stage2: all-stage2-libiconv
29231TARGET-stage2-libiconv = $(TARGET-libiconv)
29232all-stage2-libiconv: configure-stage2-libiconv
29233 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
29234 @r=`${PWD_COMMAND}`; export r; \
29235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29236 TFLAGS="$(STAGE2_TFLAGS)"; \
29237 $(HOST_EXPORTS) \
29238 $(POSTSTAGE1_HOST_EXPORTS) \
29239 cd $(HOST_SUBDIR)/libiconv && \
05a13254 29240 \
016a3251
DD
29241 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29242 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 29243 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
016a3251
DD
29244 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
29245 LIBCFLAGS="$(STAGE2_CFLAGS)" \
29246 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29247 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29248 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29249 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 29250 TFLAGS="$(STAGE2_TFLAGS)" \
016a3251
DD
29251 $(TARGET-stage2-libiconv)
29252
29253maybe-clean-stage2-libiconv: clean-stage2-libiconv
29254clean-stage2: clean-stage2-libiconv
29255clean-stage2-libiconv:
29256 @if [ $(current_stage) = stage2 ]; then \
29257 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
29258 else \
29259 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
29260 $(MAKE) stage2-start; \
29261 fi; \
29262 cd $(HOST_SUBDIR)/libiconv && \
29263 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
29264@endif libiconv-bootstrap
29265
29266
29267.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
29268.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
29269maybe-all-stage3-libiconv:
29270maybe-clean-stage3-libiconv:
29271@if libiconv-bootstrap
29272maybe-all-stage3-libiconv: all-stage3-libiconv
29273all-stage3: all-stage3-libiconv
29274TARGET-stage3-libiconv = $(TARGET-libiconv)
29275all-stage3-libiconv: configure-stage3-libiconv
29276 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
29277 @r=`${PWD_COMMAND}`; export r; \
29278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29279 TFLAGS="$(STAGE3_TFLAGS)"; \
29280 $(HOST_EXPORTS) \
29281 $(POSTSTAGE1_HOST_EXPORTS) \
29282 cd $(HOST_SUBDIR)/libiconv && \
05a13254 29283 \
016a3251
DD
29284 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29285 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 29286 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
016a3251
DD
29287 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
29288 LIBCFLAGS="$(STAGE3_CFLAGS)" \
29289 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29290 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29291 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29292 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 29293 TFLAGS="$(STAGE3_TFLAGS)" \
016a3251
DD
29294 $(TARGET-stage3-libiconv)
29295
29296maybe-clean-stage3-libiconv: clean-stage3-libiconv
29297clean-stage3: clean-stage3-libiconv
29298clean-stage3-libiconv:
29299 @if [ $(current_stage) = stage3 ]; then \
29300 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
29301 else \
29302 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
29303 $(MAKE) stage3-start; \
29304 fi; \
29305 cd $(HOST_SUBDIR)/libiconv && \
29306 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
29307@endif libiconv-bootstrap
29308
29309
29310.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
29311.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
29312maybe-all-stage4-libiconv:
29313maybe-clean-stage4-libiconv:
29314@if libiconv-bootstrap
29315maybe-all-stage4-libiconv: all-stage4-libiconv
29316all-stage4: all-stage4-libiconv
29317TARGET-stage4-libiconv = $(TARGET-libiconv)
29318all-stage4-libiconv: configure-stage4-libiconv
29319 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
29320 @r=`${PWD_COMMAND}`; export r; \
29321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29322 TFLAGS="$(STAGE4_TFLAGS)"; \
29323 $(HOST_EXPORTS) \
29324 $(POSTSTAGE1_HOST_EXPORTS) \
29325 cd $(HOST_SUBDIR)/libiconv && \
05a13254 29326 \
016a3251
DD
29327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29328 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 29329 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
016a3251
DD
29330 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
29331 LIBCFLAGS="$(STAGE4_CFLAGS)" \
29332 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29333 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29334 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29335 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 29336 TFLAGS="$(STAGE4_TFLAGS)" \
016a3251
DD
29337 $(TARGET-stage4-libiconv)
29338
29339maybe-clean-stage4-libiconv: clean-stage4-libiconv
29340clean-stage4: clean-stage4-libiconv
29341clean-stage4-libiconv:
29342 @if [ $(current_stage) = stage4 ]; then \
29343 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
29344 else \
29345 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
29346 $(MAKE) stage4-start; \
29347 fi; \
29348 cd $(HOST_SUBDIR)/libiconv && \
29349 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
29350@endif libiconv-bootstrap
29351
29352
29353.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
29354.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
29355maybe-all-stageprofile-libiconv:
29356maybe-clean-stageprofile-libiconv:
29357@if libiconv-bootstrap
29358maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
29359all-stageprofile: all-stageprofile-libiconv
29360TARGET-stageprofile-libiconv = $(TARGET-libiconv)
29361all-stageprofile-libiconv: configure-stageprofile-libiconv
29362 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
29363 @r=`${PWD_COMMAND}`; export r; \
29364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29365 TFLAGS="$(STAGEprofile_TFLAGS)"; \
29366 $(HOST_EXPORTS) \
29367 $(POSTSTAGE1_HOST_EXPORTS) \
29368 cd $(HOST_SUBDIR)/libiconv && \
05a13254 29369 \
016a3251
DD
29370 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29371 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 29372 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
016a3251
DD
29373 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
29374 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
29375 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29376 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29377 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29378 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 29379 TFLAGS="$(STAGEprofile_TFLAGS)" \
016a3251
DD
29380 $(TARGET-stageprofile-libiconv)
29381
29382maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
29383clean-stageprofile: clean-stageprofile-libiconv
29384clean-stageprofile-libiconv:
29385 @if [ $(current_stage) = stageprofile ]; then \
29386 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
29387 else \
29388 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
29389 $(MAKE) stageprofile-start; \
29390 fi; \
29391 cd $(HOST_SUBDIR)/libiconv && \
29392 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
29393@endif libiconv-bootstrap
29394
29395
f948b2de
NC
29396.PHONY: all-stagetrain-libiconv maybe-all-stagetrain-libiconv
29397.PHONY: clean-stagetrain-libiconv maybe-clean-stagetrain-libiconv
29398maybe-all-stagetrain-libiconv:
29399maybe-clean-stagetrain-libiconv:
29400@if libiconv-bootstrap
29401maybe-all-stagetrain-libiconv: all-stagetrain-libiconv
29402all-stagetrain: all-stagetrain-libiconv
29403TARGET-stagetrain-libiconv = $(TARGET-libiconv)
29404all-stagetrain-libiconv: configure-stagetrain-libiconv
29405 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
29406 @r=`${PWD_COMMAND}`; export r; \
29407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29408 TFLAGS="$(STAGEtrain_TFLAGS)"; \
29409 $(HOST_EXPORTS) \
29410 $(POSTSTAGE1_HOST_EXPORTS) \
29411 cd $(HOST_SUBDIR)/libiconv && \
29412 \
29413 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29414 CFLAGS="$(STAGEtrain_CFLAGS)" \
29415 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
29416 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
29417 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
29418 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29419 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29420 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29421 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29422 TFLAGS="$(STAGEtrain_TFLAGS)" \
29423 $(TARGET-stagetrain-libiconv)
29424
29425maybe-clean-stagetrain-libiconv: clean-stagetrain-libiconv
29426clean-stagetrain: clean-stagetrain-libiconv
29427clean-stagetrain-libiconv:
29428 @if [ $(current_stage) = stagetrain ]; then \
29429 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
29430 else \
29431 [ -f $(HOST_SUBDIR)/stagetrain-libiconv/Makefile ] || exit 0; \
29432 $(MAKE) stagetrain-start; \
29433 fi; \
29434 cd $(HOST_SUBDIR)/libiconv && \
29435 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
29436@endif libiconv-bootstrap
29437
29438
016a3251
DD
29439.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
29440.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
29441maybe-all-stagefeedback-libiconv:
29442maybe-clean-stagefeedback-libiconv:
29443@if libiconv-bootstrap
29444maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
29445all-stagefeedback: all-stagefeedback-libiconv
29446TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
29447all-stagefeedback-libiconv: configure-stagefeedback-libiconv
29448 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
29449 @r=`${PWD_COMMAND}`; export r; \
29450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29451 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
29452 $(HOST_EXPORTS) \
29453 $(POSTSTAGE1_HOST_EXPORTS) \
29454 cd $(HOST_SUBDIR)/libiconv && \
05a13254 29455 \
016a3251
DD
29456 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29457 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 29458 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
016a3251
DD
29459 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
29460 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
29461 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29462 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29463 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29464 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 29465 TFLAGS="$(STAGEfeedback_TFLAGS)" \
016a3251
DD
29466 $(TARGET-stagefeedback-libiconv)
29467
29468maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
29469clean-stagefeedback: clean-stagefeedback-libiconv
29470clean-stagefeedback-libiconv:
29471 @if [ $(current_stage) = stagefeedback ]; then \
29472 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
29473 else \
29474 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
29475 $(MAKE) stagefeedback-start; \
29476 fi; \
29477 cd $(HOST_SUBDIR)/libiconv && \
29478 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
29479@endif libiconv-bootstrap
29480
29481
f948b2de
NC
29482.PHONY: all-stageautoprofile-libiconv maybe-all-stageautoprofile-libiconv
29483.PHONY: clean-stageautoprofile-libiconv maybe-clean-stageautoprofile-libiconv
29484maybe-all-stageautoprofile-libiconv:
29485maybe-clean-stageautoprofile-libiconv:
29486@if libiconv-bootstrap
29487maybe-all-stageautoprofile-libiconv: all-stageautoprofile-libiconv
29488all-stageautoprofile: all-stageautoprofile-libiconv
29489TARGET-stageautoprofile-libiconv = $(TARGET-libiconv)
29490all-stageautoprofile-libiconv: configure-stageautoprofile-libiconv
29491 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
29492 @r=`${PWD_COMMAND}`; export r; \
29493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29494 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
29495 $(HOST_EXPORTS) \
29496 $(POSTSTAGE1_HOST_EXPORTS) \
29497 cd $(HOST_SUBDIR)/libiconv && \
29498 $$s/gcc/config/i386/$(AUTO_PROFILE) \
29499 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29500 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
29501 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
29502 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
29503 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
29504 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29505 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29506 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29507 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29508 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
29509 $(TARGET-stageautoprofile-libiconv)
29510
29511maybe-clean-stageautoprofile-libiconv: clean-stageautoprofile-libiconv
29512clean-stageautoprofile: clean-stageautoprofile-libiconv
29513clean-stageautoprofile-libiconv:
29514 @if [ $(current_stage) = stageautoprofile ]; then \
29515 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
29516 else \
29517 [ -f $(HOST_SUBDIR)/stageautoprofile-libiconv/Makefile ] || exit 0; \
29518 $(MAKE) stageautoprofile-start; \
29519 fi; \
29520 cd $(HOST_SUBDIR)/libiconv && \
29521 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
29522@endif libiconv-bootstrap
29523
29524
29525.PHONY: all-stageautofeedback-libiconv maybe-all-stageautofeedback-libiconv
29526.PHONY: clean-stageautofeedback-libiconv maybe-clean-stageautofeedback-libiconv
29527maybe-all-stageautofeedback-libiconv:
29528maybe-clean-stageautofeedback-libiconv:
29529@if libiconv-bootstrap
29530maybe-all-stageautofeedback-libiconv: all-stageautofeedback-libiconv
29531all-stageautofeedback: all-stageautofeedback-libiconv
29532TARGET-stageautofeedback-libiconv = $(TARGET-libiconv)
29533all-stageautofeedback-libiconv: configure-stageautofeedback-libiconv
29534 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
29535 @r=`${PWD_COMMAND}`; export r; \
29536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29537 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
29538 $(HOST_EXPORTS) \
29539 $(POSTSTAGE1_HOST_EXPORTS) \
29540 cd $(HOST_SUBDIR)/libiconv && \
29541 \
29542 $(MAKE) $(BASE_FLAGS_TO_PASS) \
29543 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
29544 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
29545 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
29546 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
29547 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
29548 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
29549 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
29550 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
29551 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
29552 $(TARGET-stageautofeedback-libiconv)
29553
29554maybe-clean-stageautofeedback-libiconv: clean-stageautofeedback-libiconv
29555clean-stageautofeedback: clean-stageautofeedback-libiconv
29556clean-stageautofeedback-libiconv:
29557 @if [ $(current_stage) = stageautofeedback ]; then \
29558 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
29559 else \
29560 [ -f $(HOST_SUBDIR)/stageautofeedback-libiconv/Makefile ] || exit 0; \
29561 $(MAKE) stageautofeedback-start; \
29562 fi; \
29563 cd $(HOST_SUBDIR)/libiconv && \
29564 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
29565@endif libiconv-bootstrap
29566
29567
016a3251
DD
29568
29569
d545f33b 29570
a90ef4bf
JM
29571.PHONY: check-libiconv maybe-check-libiconv
29572maybe-check-libiconv:
29573@if libiconv
29574maybe-check-libiconv: check-libiconv
2a4cbe27 29575
a90ef4bf 29576check-libiconv:
0aed8855 29577 @: $(MAKE); $(unstage)
4fa63067 29578 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 29580 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 29581 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 29582 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 29583
a90ef4bf 29584@endif libiconv
4fa63067 29585
a90ef4bf
JM
29586.PHONY: install-libiconv maybe-install-libiconv
29587maybe-install-libiconv:
29588@if libiconv
29589maybe-install-libiconv: install-libiconv
2a4cbe27 29590
a90ef4bf 29591install-libiconv:
2a4cbe27 29592
a90ef4bf 29593@endif libiconv
9b980aa1 29594
a90ef4bf
JM
29595.PHONY: install-strip-libiconv maybe-install-strip-libiconv
29596maybe-install-strip-libiconv:
29597@if libiconv
29598maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 29599
a90ef4bf
JM
29600install-strip-libiconv:
29601
29602@endif libiconv
9b980aa1 29603
56a8fe78 29604# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29605
a90ef4bf
JM
29606.PHONY: maybe-info-libiconv info-libiconv
29607maybe-info-libiconv:
29608@if libiconv
29609maybe-info-libiconv: info-libiconv
4fa63067 29610
016a3251
DD
29611# libiconv doesn't support info.
29612info-libiconv:
2a4cbe27 29613
a90ef4bf 29614@endif libiconv
2a4cbe27 29615
a90ef4bf
JM
29616.PHONY: maybe-dvi-libiconv dvi-libiconv
29617maybe-dvi-libiconv:
29618@if libiconv
29619maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 29620
a90ef4bf
JM
29621dvi-libiconv: \
29622 configure-libiconv
a90ef4bf 29623 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
29624 r=`${PWD_COMMAND}`; export r; \
29625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29626 $(HOST_EXPORTS) \
b813574b 29627 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29629 done; \
22121df0 29630 echo "Doing dvi in libiconv"; \
a90ef4bf 29631 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
29632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29634 "RANLIB=$${RANLIB}" \
0c24b341 29635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29636 dvi) \
2a4cbe27
NN
29637 || exit 1
29638
a90ef4bf 29639@endif libiconv
2a4cbe27 29640
a90ef4bf
JM
29641.PHONY: maybe-pdf-libiconv pdf-libiconv
29642maybe-pdf-libiconv:
29643@if libiconv
29644maybe-pdf-libiconv: pdf-libiconv
56a8fe78 29645
016a3251
DD
29646# libiconv doesn't support pdf.
29647pdf-libiconv:
56a8fe78 29648
a90ef4bf 29649@endif libiconv
56a8fe78 29650
a90ef4bf
JM
29651.PHONY: maybe-html-libiconv html-libiconv
29652maybe-html-libiconv:
29653@if libiconv
29654maybe-html-libiconv: html-libiconv
6d389afc 29655
016a3251
DD
29656# libiconv doesn't support html.
29657html-libiconv:
6d389afc 29658
a90ef4bf 29659@endif libiconv
6d389afc 29660
a90ef4bf
JM
29661.PHONY: maybe-TAGS-libiconv TAGS-libiconv
29662maybe-TAGS-libiconv:
29663@if libiconv
29664maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 29665
a90ef4bf
JM
29666TAGS-libiconv: \
29667 configure-libiconv
a90ef4bf 29668 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
29669 r=`${PWD_COMMAND}`; export r; \
29670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29671 $(HOST_EXPORTS) \
b813574b 29672 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29674 done; \
22121df0 29675 echo "Doing TAGS in libiconv"; \
a90ef4bf 29676 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
29677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29679 "RANLIB=$${RANLIB}" \
0c24b341 29680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29681 TAGS) \
2a4cbe27
NN
29682 || exit 1
29683
a90ef4bf 29684@endif libiconv
2a4cbe27 29685
a90ef4bf
JM
29686.PHONY: maybe-install-info-libiconv install-info-libiconv
29687maybe-install-info-libiconv:
29688@if libiconv
29689maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 29690
a90ef4bf
JM
29691# libiconv doesn't support install-info.
29692install-info-libiconv:
2a4cbe27 29693
a90ef4bf 29694@endif libiconv
2a4cbe27 29695
a90ef4bf
JM
29696.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
29697maybe-install-pdf-libiconv:
29698@if libiconv
29699maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 29700
a90ef4bf
JM
29701# libiconv doesn't support install-pdf.
29702install-pdf-libiconv:
a3ca38d2 29703
a90ef4bf 29704@endif libiconv
a3ca38d2 29705
a90ef4bf
JM
29706.PHONY: maybe-install-html-libiconv install-html-libiconv
29707maybe-install-html-libiconv:
29708@if libiconv
29709maybe-install-html-libiconv: install-html-libiconv
108a6f8e 29710
a90ef4bf
JM
29711# libiconv doesn't support install-html.
29712install-html-libiconv:
108a6f8e 29713
a90ef4bf 29714@endif libiconv
108a6f8e 29715
a90ef4bf
JM
29716.PHONY: maybe-installcheck-libiconv installcheck-libiconv
29717maybe-installcheck-libiconv:
29718@if libiconv
29719maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 29720
a90ef4bf
JM
29721installcheck-libiconv: \
29722 configure-libiconv
a90ef4bf 29723 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
29724 r=`${PWD_COMMAND}`; export r; \
29725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29726 $(HOST_EXPORTS) \
b813574b 29727 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29729 done; \
22121df0 29730 echo "Doing installcheck in libiconv"; \
a90ef4bf 29731 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
29732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29734 "RANLIB=$${RANLIB}" \
0c24b341 29735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29736 installcheck) \
2a4cbe27
NN
29737 || exit 1
29738
a90ef4bf 29739@endif libiconv
2a4cbe27 29740
a90ef4bf
JM
29741.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
29742maybe-mostlyclean-libiconv:
29743@if libiconv
29744maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 29745
a90ef4bf 29746mostlyclean-libiconv:
a90ef4bf 29747 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
29748 r=`${PWD_COMMAND}`; export r; \
29749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29750 $(HOST_EXPORTS) \
b813574b 29751 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29753 done; \
22121df0 29754 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 29755 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
29756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29758 "RANLIB=$${RANLIB}" \
0c24b341 29759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29760 mostlyclean) \
2a4cbe27
NN
29761 || exit 1
29762
a90ef4bf 29763@endif libiconv
2a4cbe27 29764
a90ef4bf
JM
29765.PHONY: maybe-clean-libiconv clean-libiconv
29766maybe-clean-libiconv:
29767@if libiconv
29768maybe-clean-libiconv: clean-libiconv
2a4cbe27 29769
a90ef4bf 29770clean-libiconv:
a90ef4bf 29771 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
29772 r=`${PWD_COMMAND}`; export r; \
29773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29774 $(HOST_EXPORTS) \
b813574b 29775 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29777 done; \
22121df0 29778 echo "Doing clean in libiconv"; \
a90ef4bf 29779 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
29780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29782 "RANLIB=$${RANLIB}" \
0c24b341 29783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29784 clean) \
2a4cbe27
NN
29785 || exit 1
29786
a90ef4bf 29787@endif libiconv
2a4cbe27 29788
a90ef4bf
JM
29789.PHONY: maybe-distclean-libiconv distclean-libiconv
29790maybe-distclean-libiconv:
29791@if libiconv
29792maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 29793
a90ef4bf 29794distclean-libiconv:
a90ef4bf 29795 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
29796 r=`${PWD_COMMAND}`; export r; \
29797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29798 $(HOST_EXPORTS) \
b813574b 29799 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29801 done; \
22121df0 29802 echo "Doing distclean in libiconv"; \
a90ef4bf 29803 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
29804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29806 "RANLIB=$${RANLIB}" \
0c24b341 29807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29808 distclean) \
2a4cbe27
NN
29809 || exit 1
29810
a90ef4bf 29811@endif libiconv
2a4cbe27 29812
a90ef4bf
JM
29813.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
29814maybe-maintainer-clean-libiconv:
29815@if libiconv
29816maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 29817
a90ef4bf 29818maintainer-clean-libiconv:
a90ef4bf 29819 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
29820 r=`${PWD_COMMAND}`; export r; \
29821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29822 $(HOST_EXPORTS) \
b813574b 29823 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29825 done; \
22121df0 29826 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 29827 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
29828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29830 "RANLIB=$${RANLIB}" \
0c24b341 29831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29832 maintainer-clean) \
2a4cbe27
NN
29833 || exit 1
29834
a90ef4bf 29835@endif libiconv
2a4cbe27 29836
2a4cbe27 29837
a7254363 29838
a90ef4bf
JM
29839.PHONY: configure-m4 maybe-configure-m4
29840maybe-configure-m4:
4f0ef2d8 29841@if gcc-bootstrap
a90ef4bf 29842configure-m4: stage_current
4f0ef2d8 29843@endif gcc-bootstrap
a90ef4bf
JM
29844@if m4
29845maybe-configure-m4: configure-m4
29846configure-m4:
0aed8855 29847 @: $(MAKE); $(unstage)
c52c6897 29848 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29850 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 29851 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 29852 $(HOST_EXPORTS) \
a90ef4bf
JM
29853 echo Configuring in $(HOST_SUBDIR)/m4; \
29854 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 29855 case $(srcdir) in \
b00612cc 29856 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29857 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 29858 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29859 esac; \
1b6c0831
L
29860 module_srcdir=m4; \
29861 $(SHELL) \
29862 $$s/$$module_srcdir/configure \
29863 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29864 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29865 --target=${target_alias} \
2a4cbe27 29866 || exit 1
a90ef4bf 29867@endif m4
2a4cbe27 29868
a7254363
PB
29869
29870
d545f33b
PB
29871
29872
a90ef4bf
JM
29873.PHONY: all-m4 maybe-all-m4
29874maybe-all-m4:
4f0ef2d8 29875@if gcc-bootstrap
a90ef4bf 29876all-m4: stage_current
4f0ef2d8 29877@endif gcc-bootstrap
a90ef4bf
JM
29878@if m4
29879TARGET-m4=all
29880maybe-all-m4: all-m4
29881all-m4: configure-m4
0aed8855 29882 @: $(MAKE); $(unstage)
4fa63067
NN
29883 @r=`${PWD_COMMAND}`; export r; \
29884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29885 $(HOST_EXPORTS) \
a90ef4bf 29886 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 29887 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29888 $(TARGET-m4))
29889@endif m4
2a4cbe27 29890
a7254363 29891
d545f33b
PB
29892
29893
a90ef4bf
JM
29894.PHONY: check-m4 maybe-check-m4
29895maybe-check-m4:
29896@if m4
29897maybe-check-m4: check-m4
2a4cbe27 29898
a90ef4bf 29899check-m4:
0aed8855 29900 @: $(MAKE); $(unstage)
4fa63067 29901 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29903 $(HOST_EXPORTS) \
a90ef4bf 29904 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 29905 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 29906
a90ef4bf 29907@endif m4
2a4cbe27 29908
a90ef4bf
JM
29909.PHONY: install-m4 maybe-install-m4
29910maybe-install-m4:
29911@if m4
29912maybe-install-m4: install-m4
2a4cbe27 29913
a90ef4bf 29914install-m4: installdirs
0aed8855 29915 @: $(MAKE); $(unstage)
4fa63067 29916 @r=`${PWD_COMMAND}`; export r; \
b40e3958 29917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29918 $(HOST_EXPORTS) \
a90ef4bf 29919 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 29920 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 29921
a90ef4bf 29922@endif m4
2a4cbe27 29923
a90ef4bf
JM
29924.PHONY: install-strip-m4 maybe-install-strip-m4
29925maybe-install-strip-m4:
29926@if m4
29927maybe-install-strip-m4: install-strip-m4
9b980aa1 29928
a90ef4bf 29929install-strip-m4: installdirs
9b980aa1
RW
29930 @: $(MAKE); $(unstage)
29931 @r=`${PWD_COMMAND}`; export r; \
29932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29933 $(HOST_EXPORTS) \
a90ef4bf 29934 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
29935 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29936
a90ef4bf 29937@endif m4
9b980aa1 29938
56a8fe78 29939# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29940
a90ef4bf
JM
29941.PHONY: maybe-info-m4 info-m4
29942maybe-info-m4:
29943@if m4
29944maybe-info-m4: info-m4
4fa63067 29945
a90ef4bf
JM
29946info-m4: \
29947 configure-m4
0aed8855 29948 @: $(MAKE); $(unstage)
a90ef4bf 29949 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
29950 r=`${PWD_COMMAND}`; export r; \
29951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29952 $(HOST_EXPORTS) \
b813574b 29953 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29955 done; \
22121df0 29956 echo "Doing info in m4"; \
a90ef4bf 29957 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
29958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29960 "RANLIB=$${RANLIB}" \
0c24b341 29961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29962 info) \
2a4cbe27
NN
29963 || exit 1
29964
a90ef4bf 29965@endif m4
2a4cbe27 29966
a90ef4bf
JM
29967.PHONY: maybe-dvi-m4 dvi-m4
29968maybe-dvi-m4:
29969@if m4
29970maybe-dvi-m4: dvi-m4
2a4cbe27 29971
a90ef4bf
JM
29972dvi-m4: \
29973 configure-m4
0aed8855 29974 @: $(MAKE); $(unstage)
a90ef4bf 29975 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
29976 r=`${PWD_COMMAND}`; export r; \
29977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29978 $(HOST_EXPORTS) \
b813574b 29979 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29981 done; \
22121df0 29982 echo "Doing dvi in m4"; \
a90ef4bf 29983 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
29984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29986 "RANLIB=$${RANLIB}" \
0c24b341 29987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29988 dvi) \
2a4cbe27
NN
29989 || exit 1
29990
a90ef4bf 29991@endif m4
2a4cbe27 29992
a90ef4bf
JM
29993.PHONY: maybe-pdf-m4 pdf-m4
29994maybe-pdf-m4:
29995@if m4
29996maybe-pdf-m4: pdf-m4
56a8fe78 29997
a90ef4bf
JM
29998pdf-m4: \
29999 configure-m4
56a8fe78 30000 @: $(MAKE); $(unstage)
a90ef4bf 30001 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
30002 r=`${PWD_COMMAND}`; export r; \
30003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30004 $(HOST_EXPORTS) \
30005 for flag in $(EXTRA_HOST_FLAGS) ; do \
30006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30007 done; \
22121df0 30008 echo "Doing pdf in m4"; \
a90ef4bf 30009 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
30010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30012 "RANLIB=$${RANLIB}" \
0c24b341 30013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30014 pdf) \
30015 || exit 1
30016
a90ef4bf 30017@endif m4
56a8fe78 30018
a90ef4bf
JM
30019.PHONY: maybe-html-m4 html-m4
30020maybe-html-m4:
30021@if m4
30022maybe-html-m4: html-m4
6d389afc 30023
a90ef4bf
JM
30024html-m4: \
30025 configure-m4
0aed8855 30026 @: $(MAKE); $(unstage)
a90ef4bf 30027 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
30028 r=`${PWD_COMMAND}`; export r; \
30029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30030 $(HOST_EXPORTS) \
30031 for flag in $(EXTRA_HOST_FLAGS) ; do \
30032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30033 done; \
22121df0 30034 echo "Doing html in m4"; \
a90ef4bf 30035 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
30036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30038 "RANLIB=$${RANLIB}" \
0c24b341 30039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30040 html) \
30041 || exit 1
30042
a90ef4bf 30043@endif m4
6d389afc 30044
a90ef4bf
JM
30045.PHONY: maybe-TAGS-m4 TAGS-m4
30046maybe-TAGS-m4:
30047@if m4
30048maybe-TAGS-m4: TAGS-m4
2a4cbe27 30049
a90ef4bf
JM
30050TAGS-m4: \
30051 configure-m4
0aed8855 30052 @: $(MAKE); $(unstage)
a90ef4bf 30053 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
30054 r=`${PWD_COMMAND}`; export r; \
30055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30056 $(HOST_EXPORTS) \
b813574b 30057 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30059 done; \
22121df0 30060 echo "Doing TAGS in m4"; \
a90ef4bf 30061 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
30062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30064 "RANLIB=$${RANLIB}" \
0c24b341 30065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30066 TAGS) \
2a4cbe27
NN
30067 || exit 1
30068
a90ef4bf 30069@endif m4
2a4cbe27 30070
a90ef4bf
JM
30071.PHONY: maybe-install-info-m4 install-info-m4
30072maybe-install-info-m4:
30073@if m4
30074maybe-install-info-m4: install-info-m4
2a4cbe27 30075
a90ef4bf
JM
30076install-info-m4: \
30077 configure-m4 \
30078 info-m4
0aed8855 30079 @: $(MAKE); $(unstage)
a90ef4bf 30080 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
30081 r=`${PWD_COMMAND}`; export r; \
30082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30083 $(HOST_EXPORTS) \
b813574b 30084 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30086 done; \
22121df0 30087 echo "Doing install-info in m4"; \
a90ef4bf 30088 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
30089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30091 "RANLIB=$${RANLIB}" \
0c24b341 30092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30093 install-info) \
2a4cbe27
NN
30094 || exit 1
30095
a90ef4bf 30096@endif m4
2a4cbe27 30097
a90ef4bf
JM
30098.PHONY: maybe-install-pdf-m4 install-pdf-m4
30099maybe-install-pdf-m4:
30100@if m4
30101maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 30102
a90ef4bf
JM
30103install-pdf-m4: \
30104 configure-m4 \
30105 pdf-m4
a3ca38d2 30106 @: $(MAKE); $(unstage)
a90ef4bf 30107 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
30108 r=`${PWD_COMMAND}`; export r; \
30109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30110 $(HOST_EXPORTS) \
30111 for flag in $(EXTRA_HOST_FLAGS) ; do \
30112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30113 done; \
22121df0 30114 echo "Doing install-pdf in m4"; \
a90ef4bf 30115 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
30116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30118 "RANLIB=$${RANLIB}" \
0c24b341 30119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30120 install-pdf) \
30121 || exit 1
30122
a90ef4bf 30123@endif m4
a3ca38d2 30124
a90ef4bf
JM
30125.PHONY: maybe-install-html-m4 install-html-m4
30126maybe-install-html-m4:
30127@if m4
30128maybe-install-html-m4: install-html-m4
108a6f8e 30129
a90ef4bf
JM
30130install-html-m4: \
30131 configure-m4 \
30132 html-m4
108a6f8e 30133 @: $(MAKE); $(unstage)
a90ef4bf 30134 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
30135 r=`${PWD_COMMAND}`; export r; \
30136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30137 $(HOST_EXPORTS) \
30138 for flag in $(EXTRA_HOST_FLAGS) ; do \
30139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30140 done; \
22121df0 30141 echo "Doing install-html in m4"; \
a90ef4bf 30142 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
30143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30145 "RANLIB=$${RANLIB}" \
0c24b341 30146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30147 install-html) \
30148 || exit 1
30149
a90ef4bf 30150@endif m4
108a6f8e 30151
a90ef4bf
JM
30152.PHONY: maybe-installcheck-m4 installcheck-m4
30153maybe-installcheck-m4:
30154@if m4
30155maybe-installcheck-m4: installcheck-m4
2a4cbe27 30156
a90ef4bf
JM
30157installcheck-m4: \
30158 configure-m4
0aed8855 30159 @: $(MAKE); $(unstage)
a90ef4bf 30160 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
30161 r=`${PWD_COMMAND}`; export r; \
30162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30163 $(HOST_EXPORTS) \
b813574b 30164 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30166 done; \
22121df0 30167 echo "Doing installcheck in m4"; \
a90ef4bf 30168 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
30169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30171 "RANLIB=$${RANLIB}" \
0c24b341 30172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30173 installcheck) \
2a4cbe27
NN
30174 || exit 1
30175
a90ef4bf 30176@endif m4
2a4cbe27 30177
a90ef4bf
JM
30178.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
30179maybe-mostlyclean-m4:
30180@if m4
30181maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 30182
a90ef4bf 30183mostlyclean-m4:
0aed8855 30184 @: $(MAKE); $(unstage)
a90ef4bf 30185 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
30186 r=`${PWD_COMMAND}`; export r; \
30187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30188 $(HOST_EXPORTS) \
b813574b 30189 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30191 done; \
22121df0 30192 echo "Doing mostlyclean in m4"; \
a90ef4bf 30193 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
30194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30196 "RANLIB=$${RANLIB}" \
0c24b341 30197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30198 mostlyclean) \
2a4cbe27
NN
30199 || exit 1
30200
a90ef4bf 30201@endif m4
2a4cbe27 30202
a90ef4bf
JM
30203.PHONY: maybe-clean-m4 clean-m4
30204maybe-clean-m4:
30205@if m4
30206maybe-clean-m4: clean-m4
2a4cbe27 30207
a90ef4bf 30208clean-m4:
0aed8855 30209 @: $(MAKE); $(unstage)
a90ef4bf 30210 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
30211 r=`${PWD_COMMAND}`; export r; \
30212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30213 $(HOST_EXPORTS) \
b813574b 30214 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30216 done; \
22121df0 30217 echo "Doing clean in m4"; \
a90ef4bf 30218 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
30219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30221 "RANLIB=$${RANLIB}" \
0c24b341 30222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30223 clean) \
2a4cbe27
NN
30224 || exit 1
30225
a90ef4bf 30226@endif m4
2a4cbe27 30227
a90ef4bf
JM
30228.PHONY: maybe-distclean-m4 distclean-m4
30229maybe-distclean-m4:
30230@if m4
30231maybe-distclean-m4: distclean-m4
2a4cbe27 30232
a90ef4bf 30233distclean-m4:
0aed8855 30234 @: $(MAKE); $(unstage)
a90ef4bf 30235 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
30236 r=`${PWD_COMMAND}`; export r; \
30237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30238 $(HOST_EXPORTS) \
b813574b 30239 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30241 done; \
22121df0 30242 echo "Doing distclean in m4"; \
a90ef4bf 30243 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
30244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30246 "RANLIB=$${RANLIB}" \
0c24b341 30247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30248 distclean) \
2a4cbe27
NN
30249 || exit 1
30250
a90ef4bf 30251@endif m4
2a4cbe27 30252
a90ef4bf
JM
30253.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
30254maybe-maintainer-clean-m4:
30255@if m4
30256maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 30257
a90ef4bf 30258maintainer-clean-m4:
0aed8855 30259 @: $(MAKE); $(unstage)
a90ef4bf 30260 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
30261 r=`${PWD_COMMAND}`; export r; \
30262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30263 $(HOST_EXPORTS) \
b813574b 30264 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30266 done; \
22121df0 30267 echo "Doing maintainer-clean in m4"; \
a90ef4bf 30268 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
30269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30271 "RANLIB=$${RANLIB}" \
0c24b341 30272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30273 maintainer-clean) \
2a4cbe27
NN
30274 || exit 1
30275
a90ef4bf 30276@endif m4
2a4cbe27 30277
2a4cbe27 30278
a7254363 30279
a90ef4bf
JM
30280.PHONY: configure-readline maybe-configure-readline
30281maybe-configure-readline:
4f0ef2d8 30282@if gcc-bootstrap
a90ef4bf 30283configure-readline: stage_current
4f0ef2d8 30284@endif gcc-bootstrap
a90ef4bf
JM
30285@if readline
30286maybe-configure-readline: configure-readline
30287configure-readline:
0aed8855 30288 @: $(MAKE); $(unstage)
c52c6897 30289 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30291 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 30292 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 30293 $(HOST_EXPORTS) \
a90ef4bf
JM
30294 echo Configuring in $(HOST_SUBDIR)/readline; \
30295 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 30296 case $(srcdir) in \
b00612cc 30297 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30298 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 30299 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30300 esac; \
1b6c0831
L
30301 module_srcdir=readline; \
30302 $(SHELL) \
30303 $$s/$$module_srcdir/configure \
30304 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30305 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30306 --target=${target_alias} \
2a4cbe27 30307 || exit 1
a90ef4bf 30308@endif readline
2a4cbe27 30309
a7254363
PB
30310
30311
d545f33b
PB
30312
30313
a90ef4bf
JM
30314.PHONY: all-readline maybe-all-readline
30315maybe-all-readline:
4f0ef2d8 30316@if gcc-bootstrap
a90ef4bf 30317all-readline: stage_current
4f0ef2d8 30318@endif gcc-bootstrap
a90ef4bf
JM
30319@if readline
30320TARGET-readline=all
30321maybe-all-readline: all-readline
30322all-readline: configure-readline
0aed8855 30323 @: $(MAKE); $(unstage)
4fa63067
NN
30324 @r=`${PWD_COMMAND}`; export r; \
30325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30326 $(HOST_EXPORTS) \
a90ef4bf 30327 (cd $(HOST_SUBDIR)/readline && \
b3676d82 30328 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30329 $(TARGET-readline))
30330@endif readline
2a4cbe27 30331
a7254363 30332
d545f33b
PB
30333
30334
a90ef4bf
JM
30335.PHONY: check-readline maybe-check-readline
30336maybe-check-readline:
30337@if readline
30338maybe-check-readline: check-readline
2a4cbe27 30339
a90ef4bf 30340check-readline:
0aed8855 30341 @: $(MAKE); $(unstage)
4fa63067 30342 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30344 $(HOST_EXPORTS) \
a90ef4bf 30345 (cd $(HOST_SUBDIR)/readline && \
b00612cc 30346 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30347
a90ef4bf 30348@endif readline
2a4cbe27 30349
a90ef4bf
JM
30350.PHONY: install-readline maybe-install-readline
30351maybe-install-readline:
30352@if readline
30353maybe-install-readline: install-readline
2a4cbe27 30354
a90ef4bf 30355install-readline: installdirs
0aed8855 30356 @: $(MAKE); $(unstage)
4fa63067
NN
30357 @r=`${PWD_COMMAND}`; export r; \
30358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30359 $(HOST_EXPORTS) \
a90ef4bf 30360 (cd $(HOST_SUBDIR)/readline && \
2da12f12 30361 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 30362
a90ef4bf 30363@endif readline
9b980aa1 30364
a90ef4bf
JM
30365.PHONY: install-strip-readline maybe-install-strip-readline
30366maybe-install-strip-readline:
30367@if readline
30368maybe-install-strip-readline: install-strip-readline
30369
30370install-strip-readline: installdirs
9b980aa1
RW
30371 @: $(MAKE); $(unstage)
30372 @r=`${PWD_COMMAND}`; export r; \
30373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30374 $(HOST_EXPORTS) \
a90ef4bf 30375 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
30376 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30377
a90ef4bf 30378@endif readline
9b980aa1 30379
56a8fe78 30380# Other targets (info, dvi, pdf, etc.)
4fa63067 30381
a90ef4bf
JM
30382.PHONY: maybe-info-readline info-readline
30383maybe-info-readline:
30384@if readline
30385maybe-info-readline: info-readline
4fa63067 30386
a90ef4bf
JM
30387info-readline: \
30388 configure-readline
0aed8855 30389 @: $(MAKE); $(unstage)
a90ef4bf 30390 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
30391 r=`${PWD_COMMAND}`; export r; \
30392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30393 $(HOST_EXPORTS) \
b813574b 30394 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30396 done; \
22121df0 30397 echo "Doing info in readline"; \
a90ef4bf 30398 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
30399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30401 "RANLIB=$${RANLIB}" \
0c24b341 30402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30403 info) \
2a4cbe27
NN
30404 || exit 1
30405
a90ef4bf 30406@endif readline
2a4cbe27 30407
a90ef4bf
JM
30408.PHONY: maybe-dvi-readline dvi-readline
30409maybe-dvi-readline:
30410@if readline
30411maybe-dvi-readline: dvi-readline
2a4cbe27 30412
a90ef4bf
JM
30413dvi-readline: \
30414 configure-readline
0aed8855 30415 @: $(MAKE); $(unstage)
a90ef4bf 30416 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
30417 r=`${PWD_COMMAND}`; export r; \
30418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30419 $(HOST_EXPORTS) \
b813574b 30420 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30422 done; \
22121df0 30423 echo "Doing dvi in readline"; \
a90ef4bf 30424 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
30425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30427 "RANLIB=$${RANLIB}" \
0c24b341 30428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30429 dvi) \
2a4cbe27
NN
30430 || exit 1
30431
a90ef4bf 30432@endif readline
2a4cbe27 30433
a90ef4bf
JM
30434.PHONY: maybe-pdf-readline pdf-readline
30435maybe-pdf-readline:
30436@if readline
30437maybe-pdf-readline: pdf-readline
56a8fe78 30438
a90ef4bf
JM
30439pdf-readline: \
30440 configure-readline
56a8fe78 30441 @: $(MAKE); $(unstage)
a90ef4bf 30442 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
30443 r=`${PWD_COMMAND}`; export r; \
30444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30445 $(HOST_EXPORTS) \
30446 for flag in $(EXTRA_HOST_FLAGS) ; do \
30447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30448 done; \
22121df0 30449 echo "Doing pdf in readline"; \
a90ef4bf 30450 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
30451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30453 "RANLIB=$${RANLIB}" \
0c24b341 30454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30455 pdf) \
30456 || exit 1
30457
a90ef4bf 30458@endif readline
56a8fe78 30459
a90ef4bf
JM
30460.PHONY: maybe-html-readline html-readline
30461maybe-html-readline:
30462@if readline
30463maybe-html-readline: html-readline
6d389afc 30464
a90ef4bf
JM
30465html-readline: \
30466 configure-readline
0aed8855 30467 @: $(MAKE); $(unstage)
a90ef4bf 30468 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
30469 r=`${PWD_COMMAND}`; export r; \
30470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30471 $(HOST_EXPORTS) \
30472 for flag in $(EXTRA_HOST_FLAGS) ; do \
30473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30474 done; \
22121df0 30475 echo "Doing html in readline"; \
a90ef4bf 30476 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
30477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30479 "RANLIB=$${RANLIB}" \
0c24b341 30480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30481 html) \
30482 || exit 1
30483
a90ef4bf 30484@endif readline
6d389afc 30485
a90ef4bf
JM
30486.PHONY: maybe-TAGS-readline TAGS-readline
30487maybe-TAGS-readline:
30488@if readline
30489maybe-TAGS-readline: TAGS-readline
2a4cbe27 30490
a90ef4bf
JM
30491TAGS-readline: \
30492 configure-readline
0aed8855 30493 @: $(MAKE); $(unstage)
a90ef4bf 30494 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
30495 r=`${PWD_COMMAND}`; export r; \
30496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30497 $(HOST_EXPORTS) \
b813574b 30498 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30500 done; \
22121df0 30501 echo "Doing TAGS in readline"; \
a90ef4bf 30502 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
30503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30505 "RANLIB=$${RANLIB}" \
0c24b341 30506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30507 TAGS) \
2a4cbe27
NN
30508 || exit 1
30509
a90ef4bf 30510@endif readline
2a4cbe27 30511
a90ef4bf
JM
30512.PHONY: maybe-install-info-readline install-info-readline
30513maybe-install-info-readline:
30514@if readline
30515maybe-install-info-readline: install-info-readline
2a4cbe27 30516
a90ef4bf
JM
30517install-info-readline: \
30518 configure-readline \
30519 info-readline
0aed8855 30520 @: $(MAKE); $(unstage)
a90ef4bf 30521 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
30522 r=`${PWD_COMMAND}`; export r; \
30523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30524 $(HOST_EXPORTS) \
b813574b 30525 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30527 done; \
22121df0 30528 echo "Doing install-info in readline"; \
a90ef4bf 30529 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
30530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30532 "RANLIB=$${RANLIB}" \
0c24b341 30533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30534 install-info) \
2a4cbe27
NN
30535 || exit 1
30536
a90ef4bf 30537@endif readline
2a4cbe27 30538
a90ef4bf
JM
30539.PHONY: maybe-install-pdf-readline install-pdf-readline
30540maybe-install-pdf-readline:
30541@if readline
30542maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 30543
a90ef4bf
JM
30544install-pdf-readline: \
30545 configure-readline \
30546 pdf-readline
a3ca38d2 30547 @: $(MAKE); $(unstage)
a90ef4bf 30548 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
30549 r=`${PWD_COMMAND}`; export r; \
30550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30551 $(HOST_EXPORTS) \
30552 for flag in $(EXTRA_HOST_FLAGS) ; do \
30553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30554 done; \
22121df0 30555 echo "Doing install-pdf in readline"; \
a90ef4bf 30556 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
30557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30559 "RANLIB=$${RANLIB}" \
0c24b341 30560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30561 install-pdf) \
30562 || exit 1
30563
a90ef4bf 30564@endif readline
a3ca38d2 30565
a90ef4bf
JM
30566.PHONY: maybe-install-html-readline install-html-readline
30567maybe-install-html-readline:
30568@if readline
30569maybe-install-html-readline: install-html-readline
108a6f8e 30570
a90ef4bf
JM
30571install-html-readline: \
30572 configure-readline \
30573 html-readline
108a6f8e 30574 @: $(MAKE); $(unstage)
a90ef4bf 30575 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
30576 r=`${PWD_COMMAND}`; export r; \
30577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30578 $(HOST_EXPORTS) \
30579 for flag in $(EXTRA_HOST_FLAGS) ; do \
30580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30581 done; \
22121df0 30582 echo "Doing install-html in readline"; \
a90ef4bf 30583 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
30584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30586 "RANLIB=$${RANLIB}" \
0c24b341 30587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30588 install-html) \
30589 || exit 1
30590
a90ef4bf 30591@endif readline
108a6f8e 30592
a90ef4bf
JM
30593.PHONY: maybe-installcheck-readline installcheck-readline
30594maybe-installcheck-readline:
30595@if readline
30596maybe-installcheck-readline: installcheck-readline
2a4cbe27 30597
a90ef4bf
JM
30598installcheck-readline: \
30599 configure-readline
0aed8855 30600 @: $(MAKE); $(unstage)
a90ef4bf 30601 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
30602 r=`${PWD_COMMAND}`; export r; \
30603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30604 $(HOST_EXPORTS) \
b813574b 30605 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30607 done; \
22121df0 30608 echo "Doing installcheck in readline"; \
a90ef4bf 30609 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
30610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30612 "RANLIB=$${RANLIB}" \
0c24b341 30613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30614 installcheck) \
2a4cbe27
NN
30615 || exit 1
30616
a90ef4bf 30617@endif readline
2a4cbe27 30618
a90ef4bf
JM
30619.PHONY: maybe-mostlyclean-readline mostlyclean-readline
30620maybe-mostlyclean-readline:
30621@if readline
30622maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 30623
a90ef4bf 30624mostlyclean-readline:
0aed8855 30625 @: $(MAKE); $(unstage)
a90ef4bf 30626 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
30627 r=`${PWD_COMMAND}`; export r; \
30628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30629 $(HOST_EXPORTS) \
b813574b 30630 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30632 done; \
22121df0 30633 echo "Doing mostlyclean in readline"; \
a90ef4bf 30634 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
30635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30637 "RANLIB=$${RANLIB}" \
0c24b341 30638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30639 mostlyclean) \
2a4cbe27
NN
30640 || exit 1
30641
a90ef4bf 30642@endif readline
2a4cbe27 30643
a90ef4bf
JM
30644.PHONY: maybe-clean-readline clean-readline
30645maybe-clean-readline:
30646@if readline
30647maybe-clean-readline: clean-readline
2a4cbe27 30648
a90ef4bf 30649clean-readline:
0aed8855 30650 @: $(MAKE); $(unstage)
a90ef4bf 30651 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
30652 r=`${PWD_COMMAND}`; export r; \
30653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30654 $(HOST_EXPORTS) \
b813574b 30655 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30657 done; \
22121df0 30658 echo "Doing clean in readline"; \
a90ef4bf 30659 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
30660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30662 "RANLIB=$${RANLIB}" \
0c24b341 30663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30664 clean) \
2a4cbe27
NN
30665 || exit 1
30666
a90ef4bf 30667@endif readline
2a4cbe27 30668
a90ef4bf
JM
30669.PHONY: maybe-distclean-readline distclean-readline
30670maybe-distclean-readline:
30671@if readline
30672maybe-distclean-readline: distclean-readline
2a4cbe27 30673
a90ef4bf 30674distclean-readline:
0aed8855 30675 @: $(MAKE); $(unstage)
a90ef4bf 30676 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
30677 r=`${PWD_COMMAND}`; export r; \
30678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30679 $(HOST_EXPORTS) \
b813574b 30680 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30682 done; \
22121df0 30683 echo "Doing distclean in readline"; \
a90ef4bf 30684 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
30685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30687 "RANLIB=$${RANLIB}" \
0c24b341 30688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30689 distclean) \
2a4cbe27
NN
30690 || exit 1
30691
a90ef4bf 30692@endif readline
2a4cbe27 30693
a90ef4bf
JM
30694.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
30695maybe-maintainer-clean-readline:
30696@if readline
30697maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 30698
a90ef4bf 30699maintainer-clean-readline:
0aed8855 30700 @: $(MAKE); $(unstage)
a90ef4bf 30701 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
30702 r=`${PWD_COMMAND}`; export r; \
30703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30704 $(HOST_EXPORTS) \
b813574b 30705 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30707 done; \
22121df0 30708 echo "Doing maintainer-clean in readline"; \
a90ef4bf 30709 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
30710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30712 "RANLIB=$${RANLIB}" \
0c24b341 30713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30714 maintainer-clean) \
2a4cbe27
NN
30715 || exit 1
30716
a90ef4bf 30717@endif readline
2a4cbe27 30718
2a4cbe27 30719
a7254363 30720
a90ef4bf
JM
30721.PHONY: configure-sid maybe-configure-sid
30722maybe-configure-sid:
4f0ef2d8 30723@if gcc-bootstrap
a90ef4bf 30724configure-sid: stage_current
4f0ef2d8 30725@endif gcc-bootstrap
a90ef4bf
JM
30726@if sid
30727maybe-configure-sid: configure-sid
30728configure-sid:
0aed8855 30729 @: $(MAKE); $(unstage)
c52c6897 30730 @r=`${PWD_COMMAND}`; export r; \
4fa63067 30731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30732 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 30733 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 30734 $(HOST_EXPORTS) \
a90ef4bf
JM
30735 echo Configuring in $(HOST_SUBDIR)/sid; \
30736 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 30737 case $(srcdir) in \
b00612cc 30738 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30739 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 30740 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30741 esac; \
1b6c0831
L
30742 module_srcdir=sid; \
30743 $(SHELL) \
30744 $$s/$$module_srcdir/configure \
30745 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30746 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30747 --target=${target_alias} \
4fa63067 30748 || exit 1
a90ef4bf 30749@endif sid
2a4cbe27 30750
a7254363
PB
30751
30752
d545f33b
PB
30753
30754
a90ef4bf
JM
30755.PHONY: all-sid maybe-all-sid
30756maybe-all-sid:
4f0ef2d8 30757@if gcc-bootstrap
a90ef4bf 30758all-sid: stage_current
4f0ef2d8 30759@endif gcc-bootstrap
a90ef4bf
JM
30760@if sid
30761TARGET-sid=all
30762maybe-all-sid: all-sid
30763all-sid: configure-sid
0aed8855 30764 @: $(MAKE); $(unstage)
4fa63067
NN
30765 @r=`${PWD_COMMAND}`; export r; \
30766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30767 $(HOST_EXPORTS) \
a90ef4bf 30768 (cd $(HOST_SUBDIR)/sid && \
b3676d82 30769 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30770 $(TARGET-sid))
30771@endif sid
2a4cbe27 30772
a7254363 30773
d545f33b
PB
30774
30775
a90ef4bf
JM
30776.PHONY: check-sid maybe-check-sid
30777maybe-check-sid:
30778@if sid
30779maybe-check-sid: check-sid
2a4cbe27 30780
a90ef4bf 30781check-sid:
0aed8855 30782 @: $(MAKE); $(unstage)
4fa63067 30783 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30785 $(HOST_EXPORTS) \
a90ef4bf 30786 (cd $(HOST_SUBDIR)/sid && \
b00612cc 30787 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 30788
a90ef4bf 30789@endif sid
2a4cbe27 30790
a90ef4bf
JM
30791.PHONY: install-sid maybe-install-sid
30792maybe-install-sid:
30793@if sid
30794maybe-install-sid: install-sid
2a4cbe27 30795
a90ef4bf 30796install-sid: installdirs
0aed8855 30797 @: $(MAKE); $(unstage)
4fa63067 30798 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30800 $(HOST_EXPORTS) \
a90ef4bf 30801 (cd $(HOST_SUBDIR)/sid && \
2da12f12 30802 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 30803
a90ef4bf 30804@endif sid
2a4cbe27 30805
a90ef4bf
JM
30806.PHONY: install-strip-sid maybe-install-strip-sid
30807maybe-install-strip-sid:
30808@if sid
30809maybe-install-strip-sid: install-strip-sid
9b980aa1 30810
a90ef4bf 30811install-strip-sid: installdirs
9b980aa1
RW
30812 @: $(MAKE); $(unstage)
30813 @r=`${PWD_COMMAND}`; export r; \
30814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30815 $(HOST_EXPORTS) \
a90ef4bf 30816 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
30817 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30818
a90ef4bf 30819@endif sid
9b980aa1 30820
56a8fe78 30821# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30822
a90ef4bf
JM
30823.PHONY: maybe-info-sid info-sid
30824maybe-info-sid:
30825@if sid
30826maybe-info-sid: info-sid
4fa63067 30827
a90ef4bf
JM
30828info-sid: \
30829 configure-sid
0aed8855 30830 @: $(MAKE); $(unstage)
a90ef4bf 30831 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
30832 r=`${PWD_COMMAND}`; export r; \
30833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30834 $(HOST_EXPORTS) \
b813574b 30835 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30837 done; \
22121df0 30838 echo "Doing info in sid"; \
a90ef4bf 30839 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
30840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30842 "RANLIB=$${RANLIB}" \
0c24b341 30843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30844 info) \
2a4cbe27
NN
30845 || exit 1
30846
a90ef4bf 30847@endif sid
2a4cbe27 30848
a90ef4bf
JM
30849.PHONY: maybe-dvi-sid dvi-sid
30850maybe-dvi-sid:
30851@if sid
30852maybe-dvi-sid: dvi-sid
2a4cbe27 30853
a90ef4bf
JM
30854dvi-sid: \
30855 configure-sid
0aed8855 30856 @: $(MAKE); $(unstage)
a90ef4bf 30857 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
30858 r=`${PWD_COMMAND}`; export r; \
30859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30860 $(HOST_EXPORTS) \
b813574b 30861 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30863 done; \
22121df0 30864 echo "Doing dvi in sid"; \
a90ef4bf 30865 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
30866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30868 "RANLIB=$${RANLIB}" \
0c24b341 30869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30870 dvi) \
2a4cbe27
NN
30871 || exit 1
30872
a90ef4bf 30873@endif sid
2a4cbe27 30874
a90ef4bf
JM
30875.PHONY: maybe-pdf-sid pdf-sid
30876maybe-pdf-sid:
30877@if sid
30878maybe-pdf-sid: pdf-sid
56a8fe78 30879
a90ef4bf
JM
30880pdf-sid: \
30881 configure-sid
56a8fe78 30882 @: $(MAKE); $(unstage)
a90ef4bf 30883 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
30884 r=`${PWD_COMMAND}`; export r; \
30885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30886 $(HOST_EXPORTS) \
30887 for flag in $(EXTRA_HOST_FLAGS) ; do \
30888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30889 done; \
22121df0 30890 echo "Doing pdf in sid"; \
a90ef4bf 30891 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
30892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30894 "RANLIB=$${RANLIB}" \
0c24b341 30895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30896 pdf) \
30897 || exit 1
30898
a90ef4bf 30899@endif sid
56a8fe78 30900
a90ef4bf
JM
30901.PHONY: maybe-html-sid html-sid
30902maybe-html-sid:
30903@if sid
30904maybe-html-sid: html-sid
6d389afc 30905
a90ef4bf
JM
30906html-sid: \
30907 configure-sid
0aed8855 30908 @: $(MAKE); $(unstage)
a90ef4bf 30909 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
30910 r=`${PWD_COMMAND}`; export r; \
30911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30912 $(HOST_EXPORTS) \
30913 for flag in $(EXTRA_HOST_FLAGS) ; do \
30914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30915 done; \
22121df0 30916 echo "Doing html in sid"; \
a90ef4bf 30917 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
30918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30920 "RANLIB=$${RANLIB}" \
0c24b341 30921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30922 html) \
30923 || exit 1
30924
a90ef4bf 30925@endif sid
6d389afc 30926
a90ef4bf
JM
30927.PHONY: maybe-TAGS-sid TAGS-sid
30928maybe-TAGS-sid:
30929@if sid
30930maybe-TAGS-sid: TAGS-sid
2a4cbe27 30931
a90ef4bf
JM
30932TAGS-sid: \
30933 configure-sid
0aed8855 30934 @: $(MAKE); $(unstage)
a90ef4bf 30935 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
30936 r=`${PWD_COMMAND}`; export r; \
30937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30938 $(HOST_EXPORTS) \
b813574b 30939 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30941 done; \
22121df0 30942 echo "Doing TAGS in sid"; \
a90ef4bf 30943 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
30944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30946 "RANLIB=$${RANLIB}" \
0c24b341 30947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30948 TAGS) \
2a4cbe27
NN
30949 || exit 1
30950
a90ef4bf 30951@endif sid
2a4cbe27 30952
a90ef4bf
JM
30953.PHONY: maybe-install-info-sid install-info-sid
30954maybe-install-info-sid:
30955@if sid
30956maybe-install-info-sid: install-info-sid
2a4cbe27 30957
a90ef4bf
JM
30958install-info-sid: \
30959 configure-sid \
30960 info-sid
0aed8855 30961 @: $(MAKE); $(unstage)
a90ef4bf 30962 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
30963 r=`${PWD_COMMAND}`; export r; \
30964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30965 $(HOST_EXPORTS) \
b813574b 30966 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30968 done; \
22121df0 30969 echo "Doing install-info in sid"; \
a90ef4bf 30970 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
30971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30973 "RANLIB=$${RANLIB}" \
0c24b341 30974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30975 install-info) \
2a4cbe27
NN
30976 || exit 1
30977
a90ef4bf 30978@endif sid
2a4cbe27 30979
a90ef4bf
JM
30980.PHONY: maybe-install-pdf-sid install-pdf-sid
30981maybe-install-pdf-sid:
30982@if sid
30983maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 30984
a90ef4bf
JM
30985install-pdf-sid: \
30986 configure-sid \
30987 pdf-sid
a3ca38d2 30988 @: $(MAKE); $(unstage)
a90ef4bf 30989 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
30990 r=`${PWD_COMMAND}`; export r; \
30991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30992 $(HOST_EXPORTS) \
30993 for flag in $(EXTRA_HOST_FLAGS) ; do \
30994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30995 done; \
22121df0 30996 echo "Doing install-pdf in sid"; \
a90ef4bf 30997 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
30998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31000 "RANLIB=$${RANLIB}" \
0c24b341 31001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31002 install-pdf) \
31003 || exit 1
31004
a90ef4bf 31005@endif sid
a3ca38d2 31006
a90ef4bf
JM
31007.PHONY: maybe-install-html-sid install-html-sid
31008maybe-install-html-sid:
31009@if sid
31010maybe-install-html-sid: install-html-sid
108a6f8e 31011
a90ef4bf
JM
31012install-html-sid: \
31013 configure-sid \
31014 html-sid
108a6f8e 31015 @: $(MAKE); $(unstage)
a90ef4bf 31016 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
31017 r=`${PWD_COMMAND}`; export r; \
31018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31019 $(HOST_EXPORTS) \
31020 for flag in $(EXTRA_HOST_FLAGS) ; do \
31021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31022 done; \
22121df0 31023 echo "Doing install-html in sid"; \
a90ef4bf 31024 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
31025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31027 "RANLIB=$${RANLIB}" \
0c24b341 31028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31029 install-html) \
31030 || exit 1
31031
a90ef4bf 31032@endif sid
108a6f8e 31033
a90ef4bf
JM
31034.PHONY: maybe-installcheck-sid installcheck-sid
31035maybe-installcheck-sid:
31036@if sid
31037maybe-installcheck-sid: installcheck-sid
2a4cbe27 31038
a90ef4bf
JM
31039installcheck-sid: \
31040 configure-sid
0aed8855 31041 @: $(MAKE); $(unstage)
a90ef4bf 31042 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
31043 r=`${PWD_COMMAND}`; export r; \
31044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31045 $(HOST_EXPORTS) \
b813574b 31046 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31048 done; \
22121df0 31049 echo "Doing installcheck in sid"; \
a90ef4bf 31050 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
31051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31053 "RANLIB=$${RANLIB}" \
0c24b341 31054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31055 installcheck) \
2a4cbe27
NN
31056 || exit 1
31057
a90ef4bf 31058@endif sid
2a4cbe27 31059
a90ef4bf
JM
31060.PHONY: maybe-mostlyclean-sid mostlyclean-sid
31061maybe-mostlyclean-sid:
31062@if sid
31063maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 31064
a90ef4bf 31065mostlyclean-sid:
0aed8855 31066 @: $(MAKE); $(unstage)
a90ef4bf 31067 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
31068 r=`${PWD_COMMAND}`; export r; \
31069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31070 $(HOST_EXPORTS) \
b813574b 31071 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31073 done; \
22121df0 31074 echo "Doing mostlyclean in sid"; \
a90ef4bf 31075 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
31076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31078 "RANLIB=$${RANLIB}" \
0c24b341 31079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31080 mostlyclean) \
2a4cbe27
NN
31081 || exit 1
31082
a90ef4bf 31083@endif sid
2a4cbe27 31084
a90ef4bf
JM
31085.PHONY: maybe-clean-sid clean-sid
31086maybe-clean-sid:
31087@if sid
31088maybe-clean-sid: clean-sid
2a4cbe27 31089
a90ef4bf 31090clean-sid:
0aed8855 31091 @: $(MAKE); $(unstage)
a90ef4bf 31092 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
31093 r=`${PWD_COMMAND}`; export r; \
31094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31095 $(HOST_EXPORTS) \
b813574b 31096 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31098 done; \
22121df0 31099 echo "Doing clean in sid"; \
a90ef4bf 31100 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
31101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31103 "RANLIB=$${RANLIB}" \
0c24b341 31104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31105 clean) \
2a4cbe27
NN
31106 || exit 1
31107
a90ef4bf 31108@endif sid
2a4cbe27 31109
a90ef4bf
JM
31110.PHONY: maybe-distclean-sid distclean-sid
31111maybe-distclean-sid:
31112@if sid
31113maybe-distclean-sid: distclean-sid
2a4cbe27 31114
a90ef4bf 31115distclean-sid:
0aed8855 31116 @: $(MAKE); $(unstage)
a90ef4bf 31117 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
31118 r=`${PWD_COMMAND}`; export r; \
31119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31120 $(HOST_EXPORTS) \
b813574b 31121 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31123 done; \
22121df0 31124 echo "Doing distclean in sid"; \
a90ef4bf 31125 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
31126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31128 "RANLIB=$${RANLIB}" \
0c24b341 31129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31130 distclean) \
2a4cbe27
NN
31131 || exit 1
31132
a90ef4bf 31133@endif sid
2a4cbe27 31134
a90ef4bf
JM
31135.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
31136maybe-maintainer-clean-sid:
31137@if sid
31138maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 31139
a90ef4bf 31140maintainer-clean-sid:
0aed8855 31141 @: $(MAKE); $(unstage)
a90ef4bf 31142 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
31143 r=`${PWD_COMMAND}`; export r; \
31144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31145 $(HOST_EXPORTS) \
b813574b 31146 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31148 done; \
22121df0 31149 echo "Doing maintainer-clean in sid"; \
a90ef4bf 31150 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
31151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31153 "RANLIB=$${RANLIB}" \
0c24b341 31154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31155 maintainer-clean) \
2a4cbe27
NN
31156 || exit 1
31157
a90ef4bf 31158@endif sid
2a4cbe27 31159
a2592b1b 31160
a7254363 31161
a90ef4bf
JM
31162.PHONY: configure-sim maybe-configure-sim
31163maybe-configure-sim:
4f0ef2d8 31164@if gcc-bootstrap
a90ef4bf 31165configure-sim: stage_current
4f0ef2d8 31166@endif gcc-bootstrap
a90ef4bf
JM
31167@if sim
31168maybe-configure-sim: configure-sim
31169configure-sim:
31170 @: $(MAKE); $(unstage)
c52c6897
PB
31171 @r=`${PWD_COMMAND}`; export r; \
31172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31173 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 31174 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 31175 $(HOST_EXPORTS) \
a90ef4bf
JM
31176 echo Configuring in $(HOST_SUBDIR)/sim; \
31177 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 31178 case $(srcdir) in \
b00612cc 31179 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31180 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 31181 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31182 esac; \
1b6c0831
L
31183 module_srcdir=sim; \
31184 $(SHELL) \
31185 $$s/$$module_srcdir/configure \
31186 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31187 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31188 --target=${target_alias} \
a2592b1b 31189 || exit 1
a90ef4bf 31190@endif sim
a2592b1b 31191
a7254363
PB
31192
31193
a90ef4bf
JM
31194
31195
31196.PHONY: all-sim maybe-all-sim
31197maybe-all-sim:
31198@if gcc-bootstrap
31199all-sim: stage_current
31200@endif gcc-bootstrap
31201@if sim
31202TARGET-sim=all
31203maybe-all-sim: all-sim
31204all-sim: configure-sim
31205 @: $(MAKE); $(unstage)
c52c6897
PB
31206 @r=`${PWD_COMMAND}`; export r; \
31207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31208 $(HOST_EXPORTS) \
31209 (cd $(HOST_SUBDIR)/sim && \
b3676d82 31210 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31211 $(TARGET-sim))
31212@endif sim
d545f33b 31213
a90ef4bf
JM
31214
31215
31216
31217.PHONY: check-sim maybe-check-sim
31218maybe-check-sim:
31219@if sim
31220maybe-check-sim: check-sim
31221
31222check-sim:
31223 @: $(MAKE); $(unstage)
c52c6897
PB
31224 @r=`${PWD_COMMAND}`; export r; \
31225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31226 $(HOST_EXPORTS) \
a90ef4bf
JM
31227 (cd $(HOST_SUBDIR)/sim && \
31228 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 31229
a90ef4bf
JM
31230@endif sim
31231
31232.PHONY: install-sim maybe-install-sim
31233maybe-install-sim:
31234@if sim
31235maybe-install-sim: install-sim
31236
31237install-sim: installdirs
31238 @: $(MAKE); $(unstage)
c52c6897
PB
31239 @r=`${PWD_COMMAND}`; export r; \
31240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 31241 $(HOST_EXPORTS) \
a90ef4bf
JM
31242 (cd $(HOST_SUBDIR)/sim && \
31243 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 31244
a90ef4bf
JM
31245@endif sim
31246
31247.PHONY: install-strip-sim maybe-install-strip-sim
31248maybe-install-strip-sim:
31249@if sim
31250maybe-install-strip-sim: install-strip-sim
31251
31252install-strip-sim: installdirs
31253 @: $(MAKE); $(unstage)
c52c6897
PB
31254 @r=`${PWD_COMMAND}`; export r; \
31255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 31256 $(HOST_EXPORTS) \
a90ef4bf
JM
31257 (cd $(HOST_SUBDIR)/sim && \
31258 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 31259
a90ef4bf 31260@endif sim
9b980aa1 31261
56a8fe78 31262# Other targets (info, dvi, pdf, etc.)
4fa63067 31263
a90ef4bf
JM
31264.PHONY: maybe-info-sim info-sim
31265maybe-info-sim:
31266@if sim
31267maybe-info-sim: info-sim
4fa63067 31268
a90ef4bf
JM
31269info-sim: \
31270 configure-sim
31271 @: $(MAKE); $(unstage)
31272 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
31273 r=`${PWD_COMMAND}`; export r; \
31274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31275 $(HOST_EXPORTS) \
b813574b 31276 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31278 done; \
22121df0 31279 echo "Doing info in sim"; \
a90ef4bf 31280 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
31281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31283 "RANLIB=$${RANLIB}" \
0c24b341 31284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31285 info) \
2a4cbe27
NN
31286 || exit 1
31287
a90ef4bf 31288@endif sim
2a4cbe27 31289
a90ef4bf
JM
31290.PHONY: maybe-dvi-sim dvi-sim
31291maybe-dvi-sim:
31292@if sim
31293maybe-dvi-sim: dvi-sim
2a4cbe27 31294
a90ef4bf
JM
31295dvi-sim: \
31296 configure-sim
31297 @: $(MAKE); $(unstage)
31298 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 31299 r=`${PWD_COMMAND}`; export r; \
b40e3958 31300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31301 $(HOST_EXPORTS) \
b813574b 31302 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31304 done; \
22121df0 31305 echo "Doing dvi in sim"; \
a90ef4bf 31306 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
31307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31309 "RANLIB=$${RANLIB}" \
0c24b341 31310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31311 dvi) \
2a4cbe27
NN
31312 || exit 1
31313
a90ef4bf 31314@endif sim
2a4cbe27 31315
a90ef4bf
JM
31316.PHONY: maybe-pdf-sim pdf-sim
31317maybe-pdf-sim:
31318@if sim
31319maybe-pdf-sim: pdf-sim
56a8fe78 31320
a90ef4bf
JM
31321pdf-sim: \
31322 configure-sim
31323 @: $(MAKE); $(unstage)
31324 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
31325 r=`${PWD_COMMAND}`; export r; \
31326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31327 $(HOST_EXPORTS) \
31328 for flag in $(EXTRA_HOST_FLAGS) ; do \
31329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31330 done; \
22121df0 31331 echo "Doing pdf in sim"; \
a90ef4bf 31332 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
31333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31335 "RANLIB=$${RANLIB}" \
0c24b341 31336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31337 pdf) \
31338 || exit 1
31339
a90ef4bf 31340@endif sim
56a8fe78 31341
a90ef4bf
JM
31342.PHONY: maybe-html-sim html-sim
31343maybe-html-sim:
31344@if sim
31345maybe-html-sim: html-sim
6d389afc 31346
a90ef4bf
JM
31347html-sim: \
31348 configure-sim
31349 @: $(MAKE); $(unstage)
31350 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
31351 r=`${PWD_COMMAND}`; export r; \
31352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
31353 $(HOST_EXPORTS) \
31354 for flag in $(EXTRA_HOST_FLAGS) ; do \
31355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31356 done; \
22121df0 31357 echo "Doing html in sim"; \
a90ef4bf 31358 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
31359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31361 "RANLIB=$${RANLIB}" \
0c24b341 31362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31363 html) \
31364 || exit 1
31365
a90ef4bf 31366@endif sim
6d389afc 31367
a90ef4bf
JM
31368.PHONY: maybe-TAGS-sim TAGS-sim
31369maybe-TAGS-sim:
31370@if sim
31371maybe-TAGS-sim: TAGS-sim
2a4cbe27 31372
a90ef4bf
JM
31373TAGS-sim: \
31374 configure-sim
31375 @: $(MAKE); $(unstage)
31376 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
31377 r=`${PWD_COMMAND}`; export r; \
31378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31379 $(HOST_EXPORTS) \
b813574b 31380 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31382 done; \
22121df0 31383 echo "Doing TAGS in sim"; \
a90ef4bf 31384 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
31385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31387 "RANLIB=$${RANLIB}" \
0c24b341 31388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31389 TAGS) \
2a4cbe27
NN
31390 || exit 1
31391
a90ef4bf 31392@endif sim
2a4cbe27 31393
a90ef4bf
JM
31394.PHONY: maybe-install-info-sim install-info-sim
31395maybe-install-info-sim:
31396@if sim
31397maybe-install-info-sim: install-info-sim
2a4cbe27 31398
a90ef4bf
JM
31399install-info-sim: \
31400 configure-sim \
31401 info-sim
31402 @: $(MAKE); $(unstage)
31403 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
31404 r=`${PWD_COMMAND}`; export r; \
31405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31406 $(HOST_EXPORTS) \
b813574b 31407 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31409 done; \
22121df0 31410 echo "Doing install-info in sim"; \
a90ef4bf
JM
31411 (cd $(HOST_SUBDIR)/sim && \
31412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
31413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31414 "RANLIB=$${RANLIB}" \
0c24b341 31415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31416 install-info) \
2a4cbe27
NN
31417 || exit 1
31418
a90ef4bf 31419@endif sim
2a4cbe27 31420
a90ef4bf
JM
31421.PHONY: maybe-install-pdf-sim install-pdf-sim
31422maybe-install-pdf-sim:
31423@if sim
31424maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 31425
a90ef4bf
JM
31426install-pdf-sim: \
31427 configure-sim \
31428 pdf-sim
31429 @: $(MAKE); $(unstage)
31430 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
31431 r=`${PWD_COMMAND}`; export r; \
31432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31433 $(HOST_EXPORTS) \
31434 for flag in $(EXTRA_HOST_FLAGS) ; do \
31435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31436 done; \
22121df0 31437 echo "Doing install-pdf in sim"; \
a90ef4bf 31438 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
31439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31441 "RANLIB=$${RANLIB}" \
0c24b341 31442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31443 install-pdf) \
31444 || exit 1
31445
a90ef4bf 31446@endif sim
a3ca38d2 31447
a90ef4bf
JM
31448.PHONY: maybe-install-html-sim install-html-sim
31449maybe-install-html-sim:
31450@if sim
31451maybe-install-html-sim: install-html-sim
108a6f8e 31452
a90ef4bf
JM
31453install-html-sim: \
31454 configure-sim \
31455 html-sim
31456 @: $(MAKE); $(unstage)
31457 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
31458 r=`${PWD_COMMAND}`; export r; \
31459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31460 $(HOST_EXPORTS) \
31461 for flag in $(EXTRA_HOST_FLAGS) ; do \
31462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31463 done; \
22121df0 31464 echo "Doing install-html in sim"; \
a90ef4bf 31465 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
31466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31468 "RANLIB=$${RANLIB}" \
0c24b341 31469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31470 install-html) \
31471 || exit 1
31472
a90ef4bf 31473@endif sim
108a6f8e 31474
a90ef4bf
JM
31475.PHONY: maybe-installcheck-sim installcheck-sim
31476maybe-installcheck-sim:
31477@if sim
31478maybe-installcheck-sim: installcheck-sim
2a4cbe27 31479
a90ef4bf
JM
31480installcheck-sim: \
31481 configure-sim
31482 @: $(MAKE); $(unstage)
31483 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
31484 r=`${PWD_COMMAND}`; export r; \
31485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31486 $(HOST_EXPORTS) \
b813574b 31487 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31489 done; \
22121df0 31490 echo "Doing installcheck in sim"; \
a90ef4bf 31491 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
31492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31494 "RANLIB=$${RANLIB}" \
0c24b341 31495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31496 installcheck) \
2a4cbe27
NN
31497 || exit 1
31498
a90ef4bf 31499@endif sim
2a4cbe27 31500
a90ef4bf
JM
31501.PHONY: maybe-mostlyclean-sim mostlyclean-sim
31502maybe-mostlyclean-sim:
31503@if sim
31504maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 31505
a90ef4bf
JM
31506mostlyclean-sim:
31507 @: $(MAKE); $(unstage)
31508 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
31509 r=`${PWD_COMMAND}`; export r; \
31510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
31511 $(HOST_EXPORTS) \
31512 for flag in $(EXTRA_HOST_FLAGS) ; do \
31513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31514 done; \
22121df0 31515 echo "Doing mostlyclean in sim"; \
a90ef4bf 31516 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
31517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31519 "RANLIB=$${RANLIB}" \
0c24b341 31520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
31521 mostlyclean) \
31522 || exit 1
4fa63067 31523
a90ef4bf 31524@endif sim
4fa63067 31525
a90ef4bf
JM
31526.PHONY: maybe-clean-sim clean-sim
31527maybe-clean-sim:
31528@if sim
31529maybe-clean-sim: clean-sim
4fa63067 31530
a90ef4bf
JM
31531clean-sim:
31532 @: $(MAKE); $(unstage)
31533 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
31534 r=`${PWD_COMMAND}`; export r; \
31535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31536 $(HOST_EXPORTS) \
b813574b 31537 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31539 done; \
22121df0 31540 echo "Doing clean in sim"; \
a90ef4bf 31541 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
31542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31544 "RANLIB=$${RANLIB}" \
0c24b341 31545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31546 clean) \
2a4cbe27
NN
31547 || exit 1
31548
a90ef4bf 31549@endif sim
2a4cbe27 31550
a90ef4bf
JM
31551.PHONY: maybe-distclean-sim distclean-sim
31552maybe-distclean-sim:
31553@if sim
31554maybe-distclean-sim: distclean-sim
2a4cbe27 31555
a90ef4bf
JM
31556distclean-sim:
31557 @: $(MAKE); $(unstage)
31558 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
31559 r=`${PWD_COMMAND}`; export r; \
31560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31561 $(HOST_EXPORTS) \
b813574b 31562 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31564 done; \
22121df0 31565 echo "Doing distclean in sim"; \
a90ef4bf 31566 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
31567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31569 "RANLIB=$${RANLIB}" \
0c24b341 31570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31571 distclean) \
2a4cbe27
NN
31572 || exit 1
31573
a90ef4bf 31574@endif sim
2a4cbe27 31575
a90ef4bf
JM
31576.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
31577maybe-maintainer-clean-sim:
31578@if sim
31579maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 31580
a90ef4bf
JM
31581maintainer-clean-sim:
31582 @: $(MAKE); $(unstage)
31583 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
31584 r=`${PWD_COMMAND}`; export r; \
31585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31586 $(HOST_EXPORTS) \
b813574b 31587 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31589 done; \
22121df0 31590 echo "Doing maintainer-clean in sim"; \
a90ef4bf 31591 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
31592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31594 "RANLIB=$${RANLIB}" \
0c24b341 31595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31596 maintainer-clean) \
2a4cbe27
NN
31597 || exit 1
31598
a90ef4bf 31599@endif sim
2a4cbe27 31600
2a4cbe27 31601
a7254363 31602
a90ef4bf
JM
31603.PHONY: configure-texinfo maybe-configure-texinfo
31604maybe-configure-texinfo:
4f0ef2d8 31605@if gcc-bootstrap
a90ef4bf 31606configure-texinfo: stage_current
4f0ef2d8 31607@endif gcc-bootstrap
a90ef4bf
JM
31608@if texinfo
31609maybe-configure-texinfo: configure-texinfo
31610configure-texinfo:
0aed8855 31611 @: $(MAKE); $(unstage)
c52c6897 31612 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31614 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 31615 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 31616 $(HOST_EXPORTS) \
a90ef4bf
JM
31617 echo Configuring in $(HOST_SUBDIR)/texinfo; \
31618 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 31619 case $(srcdir) in \
b00612cc 31620 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31621 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 31622 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31623 esac; \
1b6c0831
L
31624 module_srcdir=texinfo; \
31625 $(SHELL) \
31626 $$s/$$module_srcdir/configure \
31627 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31628 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31629 --target=${target_alias} \
2a4cbe27 31630 || exit 1
a90ef4bf 31631@endif texinfo
2a4cbe27 31632
a7254363
PB
31633
31634
d545f33b
PB
31635
31636
a90ef4bf
JM
31637.PHONY: all-texinfo maybe-all-texinfo
31638maybe-all-texinfo:
4f0ef2d8 31639@if gcc-bootstrap
a90ef4bf 31640all-texinfo: stage_current
4f0ef2d8 31641@endif gcc-bootstrap
a90ef4bf
JM
31642@if texinfo
31643TARGET-texinfo=all
31644maybe-all-texinfo: all-texinfo
31645all-texinfo: configure-texinfo
0aed8855 31646 @: $(MAKE); $(unstage)
4fa63067
NN
31647 @r=`${PWD_COMMAND}`; export r; \
31648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31649 $(HOST_EXPORTS) \
a90ef4bf 31650 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 31651 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31652 $(TARGET-texinfo))
31653@endif texinfo
4fa63067 31654
a7254363 31655
d545f33b
PB
31656
31657
a90ef4bf
JM
31658.PHONY: check-texinfo maybe-check-texinfo
31659maybe-check-texinfo:
31660@if texinfo
31661maybe-check-texinfo: check-texinfo
2a4cbe27 31662
a90ef4bf 31663check-texinfo:
0aed8855 31664 @: $(MAKE); $(unstage)
4fa63067
NN
31665 @r=`${PWD_COMMAND}`; export r; \
31666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31667 $(HOST_EXPORTS) \
a90ef4bf 31668 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 31669 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 31670
a90ef4bf 31671@endif texinfo
4fa63067 31672
a90ef4bf
JM
31673.PHONY: install-texinfo maybe-install-texinfo
31674maybe-install-texinfo:
31675@if texinfo
31676maybe-install-texinfo: install-texinfo
4fa63067 31677
a90ef4bf 31678install-texinfo:
4fa63067 31679
a90ef4bf 31680@endif texinfo
4fa63067 31681
a90ef4bf
JM
31682.PHONY: install-strip-texinfo maybe-install-strip-texinfo
31683maybe-install-strip-texinfo:
31684@if texinfo
31685maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 31686
a90ef4bf 31687install-strip-texinfo:
9b980aa1 31688
a90ef4bf 31689@endif texinfo
9b980aa1 31690
56a8fe78 31691# Other targets (info, dvi, pdf, etc.)
4fa63067 31692
a90ef4bf
JM
31693.PHONY: maybe-info-texinfo info-texinfo
31694maybe-info-texinfo:
31695@if texinfo
31696maybe-info-texinfo: info-texinfo
4fa63067 31697
a90ef4bf
JM
31698info-texinfo: \
31699 configure-texinfo
0aed8855 31700 @: $(MAKE); $(unstage)
a90ef4bf 31701 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
31702 r=`${PWD_COMMAND}`; export r; \
31703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31704 $(HOST_EXPORTS) \
b813574b 31705 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31707 done; \
22121df0 31708 echo "Doing info in texinfo"; \
a90ef4bf 31709 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
31710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31712 "RANLIB=$${RANLIB}" \
0c24b341 31713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31714 info) \
2a4cbe27
NN
31715 || exit 1
31716
a90ef4bf 31717@endif texinfo
2a4cbe27 31718
a90ef4bf
JM
31719.PHONY: maybe-dvi-texinfo dvi-texinfo
31720maybe-dvi-texinfo:
31721@if texinfo
31722maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 31723
a90ef4bf
JM
31724dvi-texinfo: \
31725 configure-texinfo
0aed8855 31726 @: $(MAKE); $(unstage)
a90ef4bf 31727 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
31728 r=`${PWD_COMMAND}`; export r; \
31729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31730 $(HOST_EXPORTS) \
b813574b 31731 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31733 done; \
22121df0 31734 echo "Doing dvi in texinfo"; \
a90ef4bf 31735 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
31736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31738 "RANLIB=$${RANLIB}" \
0c24b341 31739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31740 dvi) \
2a4cbe27
NN
31741 || exit 1
31742
a90ef4bf 31743@endif texinfo
2a4cbe27 31744
a90ef4bf
JM
31745.PHONY: maybe-pdf-texinfo pdf-texinfo
31746maybe-pdf-texinfo:
31747@if texinfo
31748maybe-pdf-texinfo: pdf-texinfo
56a8fe78 31749
a90ef4bf
JM
31750pdf-texinfo: \
31751 configure-texinfo
56a8fe78 31752 @: $(MAKE); $(unstage)
a90ef4bf 31753 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
31754 r=`${PWD_COMMAND}`; export r; \
31755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31756 $(HOST_EXPORTS) \
31757 for flag in $(EXTRA_HOST_FLAGS) ; do \
31758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31759 done; \
22121df0 31760 echo "Doing pdf in texinfo"; \
a90ef4bf 31761 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
31762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31764 "RANLIB=$${RANLIB}" \
0c24b341 31765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31766 pdf) \
31767 || exit 1
31768
a90ef4bf 31769@endif texinfo
56a8fe78 31770
a90ef4bf
JM
31771.PHONY: maybe-html-texinfo html-texinfo
31772maybe-html-texinfo:
31773@if texinfo
31774maybe-html-texinfo: html-texinfo
6d389afc 31775
a90ef4bf
JM
31776html-texinfo: \
31777 configure-texinfo
0aed8855 31778 @: $(MAKE); $(unstage)
a90ef4bf 31779 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
31780 r=`${PWD_COMMAND}`; export r; \
31781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
31782 $(HOST_EXPORTS) \
31783 for flag in $(EXTRA_HOST_FLAGS) ; do \
31784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31785 done; \
22121df0 31786 echo "Doing html in texinfo"; \
a90ef4bf 31787 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
31788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31790 "RANLIB=$${RANLIB}" \
0c24b341 31791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31792 html) \
31793 || exit 1
31794
a90ef4bf 31795@endif texinfo
6d389afc 31796
a90ef4bf
JM
31797.PHONY: maybe-TAGS-texinfo TAGS-texinfo
31798maybe-TAGS-texinfo:
31799@if texinfo
31800maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 31801
a90ef4bf
JM
31802TAGS-texinfo: \
31803 configure-texinfo
0aed8855 31804 @: $(MAKE); $(unstage)
a90ef4bf 31805 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
31806 r=`${PWD_COMMAND}`; export r; \
31807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31808 $(HOST_EXPORTS) \
b813574b 31809 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31811 done; \
22121df0 31812 echo "Doing TAGS in texinfo"; \
a90ef4bf 31813 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
31814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31816 "RANLIB=$${RANLIB}" \
0c24b341 31817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31818 TAGS) \
2a4cbe27
NN
31819 || exit 1
31820
a90ef4bf 31821@endif texinfo
2a4cbe27 31822
a90ef4bf
JM
31823.PHONY: maybe-install-info-texinfo install-info-texinfo
31824maybe-install-info-texinfo:
31825@if texinfo
31826maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 31827
a90ef4bf
JM
31828install-info-texinfo: \
31829 configure-texinfo \
31830 info-texinfo
0aed8855 31831 @: $(MAKE); $(unstage)
a90ef4bf 31832 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
31833 r=`${PWD_COMMAND}`; export r; \
31834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31835 $(HOST_EXPORTS) \
b813574b 31836 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31838 done; \
22121df0 31839 echo "Doing install-info in texinfo"; \
a90ef4bf 31840 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
31841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31843 "RANLIB=$${RANLIB}" \
0c24b341 31844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31845 install-info) \
2a4cbe27
NN
31846 || exit 1
31847
a90ef4bf 31848@endif texinfo
2a4cbe27 31849
a90ef4bf
JM
31850.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
31851maybe-install-pdf-texinfo:
31852@if texinfo
31853maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 31854
a90ef4bf
JM
31855install-pdf-texinfo: \
31856 configure-texinfo \
31857 pdf-texinfo
a3ca38d2 31858 @: $(MAKE); $(unstage)
a90ef4bf 31859 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
31860 r=`${PWD_COMMAND}`; export r; \
31861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31862 $(HOST_EXPORTS) \
31863 for flag in $(EXTRA_HOST_FLAGS) ; do \
31864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31865 done; \
22121df0 31866 echo "Doing install-pdf in texinfo"; \
a90ef4bf 31867 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
31868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31870 "RANLIB=$${RANLIB}" \
0c24b341 31871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31872 install-pdf) \
31873 || exit 1
31874
a90ef4bf 31875@endif texinfo
a3ca38d2 31876
a90ef4bf
JM
31877.PHONY: maybe-install-html-texinfo install-html-texinfo
31878maybe-install-html-texinfo:
31879@if texinfo
31880maybe-install-html-texinfo: install-html-texinfo
108a6f8e 31881
a90ef4bf
JM
31882install-html-texinfo: \
31883 configure-texinfo \
31884 html-texinfo
108a6f8e 31885 @: $(MAKE); $(unstage)
a90ef4bf 31886 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
31887 r=`${PWD_COMMAND}`; export r; \
31888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31889 $(HOST_EXPORTS) \
31890 for flag in $(EXTRA_HOST_FLAGS) ; do \
31891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31892 done; \
22121df0 31893 echo "Doing install-html in texinfo"; \
a90ef4bf 31894 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
31895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31897 "RANLIB=$${RANLIB}" \
0c24b341 31898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31899 install-html) \
31900 || exit 1
31901
a90ef4bf 31902@endif texinfo
108a6f8e 31903
a90ef4bf
JM
31904.PHONY: maybe-installcheck-texinfo installcheck-texinfo
31905maybe-installcheck-texinfo:
31906@if texinfo
31907maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 31908
a90ef4bf
JM
31909installcheck-texinfo: \
31910 configure-texinfo
0aed8855 31911 @: $(MAKE); $(unstage)
a90ef4bf 31912 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
31913 r=`${PWD_COMMAND}`; export r; \
31914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31915 $(HOST_EXPORTS) \
b813574b 31916 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31918 done; \
22121df0 31919 echo "Doing installcheck in texinfo"; \
a90ef4bf 31920 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
31921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31923 "RANLIB=$${RANLIB}" \
0c24b341 31924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31925 installcheck) \
2a4cbe27
NN
31926 || exit 1
31927
a90ef4bf 31928@endif texinfo
2a4cbe27 31929
a90ef4bf
JM
31930.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
31931maybe-mostlyclean-texinfo:
31932@if texinfo
31933maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 31934
a90ef4bf 31935mostlyclean-texinfo:
0aed8855 31936 @: $(MAKE); $(unstage)
a90ef4bf 31937 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
31938 r=`${PWD_COMMAND}`; export r; \
31939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31940 $(HOST_EXPORTS) \
b813574b 31941 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31943 done; \
22121df0 31944 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 31945 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
31946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31948 "RANLIB=$${RANLIB}" \
0c24b341 31949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31950 mostlyclean) \
2a4cbe27
NN
31951 || exit 1
31952
a90ef4bf 31953@endif texinfo
2a4cbe27 31954
a90ef4bf
JM
31955.PHONY: maybe-clean-texinfo clean-texinfo
31956maybe-clean-texinfo:
31957@if texinfo
31958maybe-clean-texinfo: clean-texinfo
2a4cbe27 31959
a90ef4bf 31960clean-texinfo:
0aed8855 31961 @: $(MAKE); $(unstage)
a90ef4bf 31962 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
31963 r=`${PWD_COMMAND}`; export r; \
31964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31965 $(HOST_EXPORTS) \
b813574b 31966 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31968 done; \
22121df0 31969 echo "Doing clean in texinfo"; \
a90ef4bf 31970 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
31971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31973 "RANLIB=$${RANLIB}" \
0c24b341 31974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31975 clean) \
2a4cbe27
NN
31976 || exit 1
31977
a90ef4bf 31978@endif texinfo
2a4cbe27 31979
a90ef4bf
JM
31980.PHONY: maybe-distclean-texinfo distclean-texinfo
31981maybe-distclean-texinfo:
31982@if texinfo
31983maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 31984
a90ef4bf 31985distclean-texinfo:
0aed8855 31986 @: $(MAKE); $(unstage)
a90ef4bf 31987 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
31988 r=`${PWD_COMMAND}`; export r; \
31989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31990 $(HOST_EXPORTS) \
b813574b 31991 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31993 done; \
22121df0 31994 echo "Doing distclean in texinfo"; \
a90ef4bf 31995 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
31996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31998 "RANLIB=$${RANLIB}" \
0c24b341 31999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 32000 distclean) \
2a4cbe27
NN
32001 || exit 1
32002
a90ef4bf 32003@endif texinfo
2a4cbe27 32004
a90ef4bf
JM
32005.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
32006maybe-maintainer-clean-texinfo:
32007@if texinfo
32008maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 32009
a90ef4bf 32010maintainer-clean-texinfo:
0aed8855 32011 @: $(MAKE); $(unstage)
a90ef4bf 32012 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
32013 r=`${PWD_COMMAND}`; export r; \
32014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32015 $(HOST_EXPORTS) \
b813574b 32016 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32018 done; \
22121df0 32019 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 32020 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
32021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32023 "RANLIB=$${RANLIB}" \
0c24b341 32024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32025 maintainer-clean) \
2a4cbe27
NN
32026 || exit 1
32027
a90ef4bf 32028@endif texinfo
2a4cbe27 32029
2a4cbe27 32030
a7254363 32031
a90ef4bf
JM
32032.PHONY: configure-zlib maybe-configure-zlib
32033maybe-configure-zlib:
4f0ef2d8 32034@if gcc-bootstrap
a90ef4bf 32035configure-zlib: stage_current
4f0ef2d8 32036@endif gcc-bootstrap
a90ef4bf
JM
32037@if zlib
32038maybe-configure-zlib: configure-zlib
32039configure-zlib:
c52c6897
PB
32040 @r=`${PWD_COMMAND}`; export r; \
32041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32042 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 32043 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 32044 $(HOST_EXPORTS) \
a90ef4bf
JM
32045 echo Configuring in $(HOST_SUBDIR)/zlib; \
32046 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 32047 case $(srcdir) in \
b00612cc 32048 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32049 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 32050 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 32051 esac; \
1b6c0831
L
32052 module_srcdir=zlib; \
32053 $(SHELL) \
32054 $$s/$$module_srcdir/configure \
32055 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32056 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 32057 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 32058 || exit 1
a90ef4bf 32059@endif zlib
04cf1b77 32060
a7254363
PB
32061
32062
a90ef4bf
JM
32063.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
32064maybe-configure-stage1-zlib:
32065@if zlib-bootstrap
32066maybe-configure-stage1-zlib: configure-stage1-zlib
32067configure-stage1-zlib:
c52c6897 32068 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 32069 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
32070 @r=`${PWD_COMMAND}`; export r; \
32071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32072 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 32073 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 32074 $(HOST_EXPORTS) \
8ee82aff 32075 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
32076 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
32077 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
32078 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
32079 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 32080 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
32081 case $(srcdir) in \
32082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32083 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
32084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32085 esac; \
1b6c0831
L
32086 module_srcdir=zlib; \
32087 $(SHELL) $$s/$$module_srcdir/configure \
32088 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32089 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
32090 --target=${target_alias} \
32091 \
e81d5d05
L
32092 $(STAGE1_CONFIGURE_FLAGS) \
32093 @extra_host_zlib_configure_flags@
a90ef4bf 32094@endif zlib-bootstrap
d545f33b 32095
a90ef4bf
JM
32096.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
32097maybe-configure-stage2-zlib:
32098@if zlib-bootstrap
32099maybe-configure-stage2-zlib: configure-stage2-zlib
32100configure-stage2-zlib:
c52c6897 32101 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 32102 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
32103 @r=`${PWD_COMMAND}`; export r; \
32104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32105 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 32106 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 32107 $(HOST_EXPORTS) \
1b05fbbd 32108 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 32109 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
32110 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
32111 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32112 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
32113 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 32114 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
32115 case $(srcdir) in \
32116 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32117 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
32118 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32119 esac; \
1b6c0831
L
32120 module_srcdir=zlib; \
32121 $(SHELL) $$s/$$module_srcdir/configure \
32122 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32123 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32124 --target=${target_alias} \
22121df0 32125 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
32126 $(STAGE2_CONFIGURE_FLAGS) \
32127 @extra_host_zlib_configure_flags@
a90ef4bf 32128@endif zlib-bootstrap
8520c408 32129
a90ef4bf
JM
32130.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
32131maybe-configure-stage3-zlib:
32132@if zlib-bootstrap
32133maybe-configure-stage3-zlib: configure-stage3-zlib
32134configure-stage3-zlib:
c52c6897 32135 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 32136 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
32137 @r=`${PWD_COMMAND}`; export r; \
32138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32139 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 32140 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 32141 $(HOST_EXPORTS) \
1b05fbbd 32142 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 32143 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
32144 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
32145 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32146 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
32147 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 32148 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
32149 case $(srcdir) in \
32150 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32151 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
32152 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32153 esac; \
1b6c0831
L
32154 module_srcdir=zlib; \
32155 $(SHELL) $$s/$$module_srcdir/configure \
32156 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32157 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32158 --target=${target_alias} \
22121df0 32159 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
32160 $(STAGE3_CONFIGURE_FLAGS) \
32161 @extra_host_zlib_configure_flags@
a90ef4bf 32162@endif zlib-bootstrap
8520c408 32163
a90ef4bf
JM
32164.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
32165maybe-configure-stage4-zlib:
32166@if zlib-bootstrap
32167maybe-configure-stage4-zlib: configure-stage4-zlib
32168configure-stage4-zlib:
c52c6897 32169 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 32170 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
32171 @r=`${PWD_COMMAND}`; export r; \
32172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32173 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 32174 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 32175 $(HOST_EXPORTS) \
1b05fbbd 32176 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 32177 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
32178 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
32179 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32180 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
32181 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 32182 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
32183 case $(srcdir) in \
32184 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32185 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
32186 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32187 esac; \
1b6c0831
L
32188 module_srcdir=zlib; \
32189 $(SHELL) $$s/$$module_srcdir/configure \
32190 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32191 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32192 --target=${target_alias} \
22121df0 32193 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
32194 $(STAGE4_CONFIGURE_FLAGS) \
32195 @extra_host_zlib_configure_flags@
a90ef4bf 32196@endif zlib-bootstrap
d545f33b 32197
a90ef4bf
JM
32198.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
32199maybe-configure-stageprofile-zlib:
32200@if zlib-bootstrap
32201maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
32202configure-stageprofile-zlib:
c52c6897 32203 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 32204 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
32205 @r=`${PWD_COMMAND}`; export r; \
32206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32207 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 32208 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 32209 $(HOST_EXPORTS) \
1b05fbbd
AO
32210 $(POSTSTAGE1_HOST_EXPORTS) \
32211 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
32212 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
32213 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32214 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
32215 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 32216 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
32217 case $(srcdir) in \
32218 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32219 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
32220 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32221 esac; \
1b6c0831
L
32222 module_srcdir=zlib; \
32223 $(SHELL) $$s/$$module_srcdir/configure \
32224 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32225 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32226 --target=${target_alias} \
22121df0 32227 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
32228 $(STAGEprofile_CONFIGURE_FLAGS) \
32229 @extra_host_zlib_configure_flags@
a90ef4bf 32230@endif zlib-bootstrap
d545f33b 32231
f948b2de
NC
32232.PHONY: configure-stagetrain-zlib maybe-configure-stagetrain-zlib
32233maybe-configure-stagetrain-zlib:
32234@if zlib-bootstrap
32235maybe-configure-stagetrain-zlib: configure-stagetrain-zlib
32236configure-stagetrain-zlib:
32237 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
32238 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
32239 @r=`${PWD_COMMAND}`; export r; \
32240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32241 TFLAGS="$(STAGEtrain_TFLAGS)"; \
32242 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
32243 $(HOST_EXPORTS) \
32244 $(POSTSTAGE1_HOST_EXPORTS) \
32245 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
32246 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
32247 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
32248 echo Configuring stage train in $(HOST_SUBDIR)/zlib; \
32249 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
32250 cd $(HOST_SUBDIR)/zlib || exit 1; \
32251 case $(srcdir) in \
32252 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32253 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
32254 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32255 esac; \
32256 module_srcdir=zlib; \
32257 $(SHELL) $$s/$$module_srcdir/configure \
32258 --srcdir=$${topdir}/$$module_srcdir \
32259 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32260 --target=${target_alias} \
32261 --with-build-libsubdir=$(HOST_SUBDIR) \
32262 $(STAGEtrain_CONFIGURE_FLAGS) \
32263 @extra_host_zlib_configure_flags@
32264@endif zlib-bootstrap
32265
a90ef4bf
JM
32266.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
32267maybe-configure-stagefeedback-zlib:
32268@if zlib-bootstrap
32269maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
32270configure-stagefeedback-zlib:
c52c6897 32271 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 32272 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
32273 @r=`${PWD_COMMAND}`; export r; \
32274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32275 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 32276 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 32277 $(HOST_EXPORTS) \
1b05fbbd
AO
32278 $(POSTSTAGE1_HOST_EXPORTS) \
32279 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
32280 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
32281 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32282 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
32283 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 32284 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
32285 case $(srcdir) in \
32286 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32287 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
32288 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32289 esac; \
1b6c0831
L
32290 module_srcdir=zlib; \
32291 $(SHELL) $$s/$$module_srcdir/configure \
32292 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32293 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32294 --target=${target_alias} \
22121df0 32295 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
32296 $(STAGEfeedback_CONFIGURE_FLAGS) \
32297 @extra_host_zlib_configure_flags@
a90ef4bf 32298@endif zlib-bootstrap
d545f33b 32299
f948b2de
NC
32300.PHONY: configure-stageautoprofile-zlib maybe-configure-stageautoprofile-zlib
32301maybe-configure-stageautoprofile-zlib:
32302@if zlib-bootstrap
32303maybe-configure-stageautoprofile-zlib: configure-stageautoprofile-zlib
32304configure-stageautoprofile-zlib:
32305 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
32306 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
32307 @r=`${PWD_COMMAND}`; export r; \
32308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32309 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
32310 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
32311 $(HOST_EXPORTS) \
32312 $(POSTSTAGE1_HOST_EXPORTS) \
32313 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
32314 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
32315 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
32316 echo Configuring stage autoprofile in $(HOST_SUBDIR)/zlib; \
32317 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
32318 cd $(HOST_SUBDIR)/zlib || exit 1; \
32319 case $(srcdir) in \
32320 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32321 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
32322 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32323 esac; \
32324 module_srcdir=zlib; \
32325 $(SHELL) $$s/$$module_srcdir/configure \
32326 --srcdir=$${topdir}/$$module_srcdir \
32327 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32328 --target=${target_alias} \
32329 --with-build-libsubdir=$(HOST_SUBDIR) \
32330 $(STAGEautoprofile_CONFIGURE_FLAGS) \
32331 @extra_host_zlib_configure_flags@
32332@endif zlib-bootstrap
32333
32334.PHONY: configure-stageautofeedback-zlib maybe-configure-stageautofeedback-zlib
32335maybe-configure-stageautofeedback-zlib:
32336@if zlib-bootstrap
32337maybe-configure-stageautofeedback-zlib: configure-stageautofeedback-zlib
32338configure-stageautofeedback-zlib:
32339 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
32340 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
32341 @r=`${PWD_COMMAND}`; export r; \
32342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32343 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
32344 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
32345 $(HOST_EXPORTS) \
32346 $(POSTSTAGE1_HOST_EXPORTS) \
32347 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
32348 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
32349 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
32350 echo Configuring stage autofeedback in $(HOST_SUBDIR)/zlib; \
32351 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
32352 cd $(HOST_SUBDIR)/zlib || exit 1; \
32353 case $(srcdir) in \
32354 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32355 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
32356 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32357 esac; \
32358 module_srcdir=zlib; \
32359 $(SHELL) $$s/$$module_srcdir/configure \
32360 --srcdir=$${topdir}/$$module_srcdir \
32361 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32362 --target=${target_alias} \
32363 --with-build-libsubdir=$(HOST_SUBDIR) \
32364 $(STAGEautofeedback_CONFIGURE_FLAGS) \
32365 @extra_host_zlib_configure_flags@
32366@endif zlib-bootstrap
32367
d545f33b
PB
32368
32369
32370
32371
a90ef4bf
JM
32372.PHONY: all-zlib maybe-all-zlib
32373maybe-all-zlib:
4f0ef2d8 32374@if gcc-bootstrap
a90ef4bf 32375all-zlib: stage_current
4f0ef2d8 32376@endif gcc-bootstrap
a90ef4bf
JM
32377@if zlib
32378TARGET-zlib=all
32379maybe-all-zlib: all-zlib
32380all-zlib: configure-zlib
c52c6897 32381 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 32382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 32383 $(HOST_EXPORTS) \
a90ef4bf 32384 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 32385 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
32386 $(TARGET-zlib))
32387@endif zlib
04cf1b77 32388
a7254363 32389
d545f33b 32390
a90ef4bf
JM
32391.PHONY: all-stage1-zlib maybe-all-stage1-zlib
32392.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
32393maybe-all-stage1-zlib:
32394maybe-clean-stage1-zlib:
32395@if zlib-bootstrap
32396maybe-all-stage1-zlib: all-stage1-zlib
32397all-stage1: all-stage1-zlib
32398TARGET-stage1-zlib = $(TARGET-zlib)
32399all-stage1-zlib: configure-stage1-zlib
c52c6897 32400 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
32401 @r=`${PWD_COMMAND}`; export r; \
32402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32403 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 32404 $(HOST_EXPORTS) \
a90ef4bf 32405 cd $(HOST_SUBDIR)/zlib && \
05a13254 32406 \
7f6ef0c0 32407 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 32408 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 32409 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
1f53ca9a 32410 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
32411 LIBCFLAGS="$(LIBCFLAGS)" \
32412 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32413 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32414 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
32415 $(EXTRA_HOST_FLAGS) \
32416 $(STAGE1_FLAGS_TO_PASS) \
05a13254 32417 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 32418 $(TARGET-stage1-zlib)
d545f33b 32419
a90ef4bf
JM
32420maybe-clean-stage1-zlib: clean-stage1-zlib
32421clean-stage1: clean-stage1-zlib
32422clean-stage1-zlib:
9dbaa842 32423 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 32424 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 32425 else \
a90ef4bf 32426 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
32427 $(MAKE) stage1-start; \
32428 fi; \
a90ef4bf 32429 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 32430 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 32431 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 32432@endif zlib-bootstrap
d545f33b
PB
32433
32434
a90ef4bf
JM
32435.PHONY: all-stage2-zlib maybe-all-stage2-zlib
32436.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
32437maybe-all-stage2-zlib:
32438maybe-clean-stage2-zlib:
32439@if zlib-bootstrap
32440maybe-all-stage2-zlib: all-stage2-zlib
32441all-stage2: all-stage2-zlib
32442TARGET-stage2-zlib = $(TARGET-zlib)
32443all-stage2-zlib: configure-stage2-zlib
c52c6897 32444 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
32445 @r=`${PWD_COMMAND}`; export r; \
32446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32447 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 32448 $(HOST_EXPORTS) \
1f53ca9a 32449 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 32450 cd $(HOST_SUBDIR)/zlib && \
05a13254 32451 \
7f6ef0c0 32452 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 32453 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 32454 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
1f53ca9a 32455 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
32456 LIBCFLAGS="$(STAGE2_CFLAGS)" \
32457 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32458 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32459 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32460 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 32461 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 32462 $(TARGET-stage2-zlib)
d545f33b 32463
a90ef4bf
JM
32464maybe-clean-stage2-zlib: clean-stage2-zlib
32465clean-stage2: clean-stage2-zlib
32466clean-stage2-zlib:
9dbaa842 32467 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 32468 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 32469 else \
a90ef4bf 32470 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
32471 $(MAKE) stage2-start; \
32472 fi; \
a90ef4bf 32473 cd $(HOST_SUBDIR)/zlib && \
b3676d82 32474 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 32475@endif zlib-bootstrap
d545f33b
PB
32476
32477
a90ef4bf
JM
32478.PHONY: all-stage3-zlib maybe-all-stage3-zlib
32479.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
32480maybe-all-stage3-zlib:
32481maybe-clean-stage3-zlib:
32482@if zlib-bootstrap
32483maybe-all-stage3-zlib: all-stage3-zlib
32484all-stage3: all-stage3-zlib
32485TARGET-stage3-zlib = $(TARGET-zlib)
32486all-stage3-zlib: configure-stage3-zlib
c52c6897 32487 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
32488 @r=`${PWD_COMMAND}`; export r; \
32489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32490 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 32491 $(HOST_EXPORTS) \
1f53ca9a 32492 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 32493 cd $(HOST_SUBDIR)/zlib && \
05a13254 32494 \
7f6ef0c0 32495 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 32496 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 32497 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
1f53ca9a 32498 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
32499 LIBCFLAGS="$(STAGE3_CFLAGS)" \
32500 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32501 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32502 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32503 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 32504 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 32505 $(TARGET-stage3-zlib)
d545f33b 32506
a90ef4bf
JM
32507maybe-clean-stage3-zlib: clean-stage3-zlib
32508clean-stage3: clean-stage3-zlib
32509clean-stage3-zlib:
9dbaa842 32510 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 32511 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 32512 else \
a90ef4bf 32513 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
32514 $(MAKE) stage3-start; \
32515 fi; \
a90ef4bf 32516 cd $(HOST_SUBDIR)/zlib && \
b3676d82 32517 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 32518@endif zlib-bootstrap
d545f33b
PB
32519
32520
a90ef4bf
JM
32521.PHONY: all-stage4-zlib maybe-all-stage4-zlib
32522.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
32523maybe-all-stage4-zlib:
32524maybe-clean-stage4-zlib:
32525@if zlib-bootstrap
32526maybe-all-stage4-zlib: all-stage4-zlib
32527all-stage4: all-stage4-zlib
32528TARGET-stage4-zlib = $(TARGET-zlib)
32529all-stage4-zlib: configure-stage4-zlib
c52c6897 32530 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
32531 @r=`${PWD_COMMAND}`; export r; \
32532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32533 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 32534 $(HOST_EXPORTS) \
1f53ca9a 32535 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 32536 cd $(HOST_SUBDIR)/zlib && \
05a13254 32537 \
7f6ef0c0 32538 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 32539 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 32540 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
1f53ca9a 32541 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 32542 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
32543 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32544 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32545 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32546 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 32547 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 32548 $(TARGET-stage4-zlib)
d545f33b 32549
a90ef4bf
JM
32550maybe-clean-stage4-zlib: clean-stage4-zlib
32551clean-stage4: clean-stage4-zlib
32552clean-stage4-zlib:
9dbaa842 32553 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 32554 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 32555 else \
a90ef4bf 32556 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
32557 $(MAKE) stage4-start; \
32558 fi; \
a90ef4bf 32559 cd $(HOST_SUBDIR)/zlib && \
b3676d82 32560 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 32561@endif zlib-bootstrap
d545f33b
PB
32562
32563
a90ef4bf
JM
32564.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
32565.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
32566maybe-all-stageprofile-zlib:
32567maybe-clean-stageprofile-zlib:
32568@if zlib-bootstrap
32569maybe-all-stageprofile-zlib: all-stageprofile-zlib
32570all-stageprofile: all-stageprofile-zlib
32571TARGET-stageprofile-zlib = $(TARGET-zlib)
32572all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 32573 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
32574 @r=`${PWD_COMMAND}`; export r; \
32575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32576 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 32577 $(HOST_EXPORTS) \
1f53ca9a 32578 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 32579 cd $(HOST_SUBDIR)/zlib && \
05a13254 32580 \
7f6ef0c0 32581 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 32582 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 32583 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
1f53ca9a 32584 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
32585 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
32586 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32587 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32588 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32589 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 32590 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 32591 $(TARGET-stageprofile-zlib)
d545f33b 32592
a90ef4bf
JM
32593maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
32594clean-stageprofile: clean-stageprofile-zlib
32595clean-stageprofile-zlib:
9dbaa842 32596 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 32597 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 32598 else \
a90ef4bf 32599 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
32600 $(MAKE) stageprofile-start; \
32601 fi; \
a90ef4bf 32602 cd $(HOST_SUBDIR)/zlib && \
b3676d82 32603 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 32604@endif zlib-bootstrap
d545f33b
PB
32605
32606
f948b2de
NC
32607.PHONY: all-stagetrain-zlib maybe-all-stagetrain-zlib
32608.PHONY: clean-stagetrain-zlib maybe-clean-stagetrain-zlib
32609maybe-all-stagetrain-zlib:
32610maybe-clean-stagetrain-zlib:
32611@if zlib-bootstrap
32612maybe-all-stagetrain-zlib: all-stagetrain-zlib
32613all-stagetrain: all-stagetrain-zlib
32614TARGET-stagetrain-zlib = $(TARGET-zlib)
32615all-stagetrain-zlib: configure-stagetrain-zlib
32616 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
32617 @r=`${PWD_COMMAND}`; export r; \
32618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32619 TFLAGS="$(STAGEtrain_TFLAGS)"; \
32620 $(HOST_EXPORTS) \
32621 $(POSTSTAGE1_HOST_EXPORTS) \
32622 cd $(HOST_SUBDIR)/zlib && \
32623 \
32624 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32625 CFLAGS="$(STAGEtrain_CFLAGS)" \
32626 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
32627 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
32628 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
32629 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32630 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32631 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32632 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
32633 TFLAGS="$(STAGEtrain_TFLAGS)" \
32634 $(TARGET-stagetrain-zlib)
32635
32636maybe-clean-stagetrain-zlib: clean-stagetrain-zlib
32637clean-stagetrain: clean-stagetrain-zlib
32638clean-stagetrain-zlib:
32639 @if [ $(current_stage) = stagetrain ]; then \
32640 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
32641 else \
32642 [ -f $(HOST_SUBDIR)/stagetrain-zlib/Makefile ] || exit 0; \
32643 $(MAKE) stagetrain-start; \
32644 fi; \
32645 cd $(HOST_SUBDIR)/zlib && \
32646 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
32647@endif zlib-bootstrap
32648
32649
a90ef4bf
JM
32650.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
32651.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
32652maybe-all-stagefeedback-zlib:
32653maybe-clean-stagefeedback-zlib:
32654@if zlib-bootstrap
32655maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
32656all-stagefeedback: all-stagefeedback-zlib
32657TARGET-stagefeedback-zlib = $(TARGET-zlib)
32658all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 32659 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
32660 @r=`${PWD_COMMAND}`; export r; \
32661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 32662 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 32663 $(HOST_EXPORTS) \
1f53ca9a 32664 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 32665 cd $(HOST_SUBDIR)/zlib && \
05a13254 32666 \
7f6ef0c0 32667 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 32668 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 32669 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
1f53ca9a 32670 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
32671 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
32672 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32673 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32674 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32675 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 32676 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 32677 $(TARGET-stagefeedback-zlib)
d545f33b 32678
a90ef4bf
JM
32679maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
32680clean-stagefeedback: clean-stagefeedback-zlib
32681clean-stagefeedback-zlib:
9dbaa842 32682 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 32683 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 32684 else \
a90ef4bf 32685 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
32686 $(MAKE) stagefeedback-start; \
32687 fi; \
a90ef4bf 32688 cd $(HOST_SUBDIR)/zlib && \
b3676d82 32689 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 32690@endif zlib-bootstrap
d545f33b
PB
32691
32692
f948b2de
NC
32693.PHONY: all-stageautoprofile-zlib maybe-all-stageautoprofile-zlib
32694.PHONY: clean-stageautoprofile-zlib maybe-clean-stageautoprofile-zlib
32695maybe-all-stageautoprofile-zlib:
32696maybe-clean-stageautoprofile-zlib:
32697@if zlib-bootstrap
32698maybe-all-stageautoprofile-zlib: all-stageautoprofile-zlib
32699all-stageautoprofile: all-stageautoprofile-zlib
32700TARGET-stageautoprofile-zlib = $(TARGET-zlib)
32701all-stageautoprofile-zlib: configure-stageautoprofile-zlib
32702 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
32703 @r=`${PWD_COMMAND}`; export r; \
32704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32705 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
32706 $(HOST_EXPORTS) \
32707 $(POSTSTAGE1_HOST_EXPORTS) \
32708 cd $(HOST_SUBDIR)/zlib && \
32709 $$s/gcc/config/i386/$(AUTO_PROFILE) \
32710 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32711 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
32712 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
32713 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
32714 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
32715 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32716 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32717 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32718 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
32719 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
32720 $(TARGET-stageautoprofile-zlib)
32721
32722maybe-clean-stageautoprofile-zlib: clean-stageautoprofile-zlib
32723clean-stageautoprofile: clean-stageautoprofile-zlib
32724clean-stageautoprofile-zlib:
32725 @if [ $(current_stage) = stageautoprofile ]; then \
32726 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
32727 else \
32728 [ -f $(HOST_SUBDIR)/stageautoprofile-zlib/Makefile ] || exit 0; \
32729 $(MAKE) stageautoprofile-start; \
32730 fi; \
32731 cd $(HOST_SUBDIR)/zlib && \
32732 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
32733@endif zlib-bootstrap
32734
32735
32736.PHONY: all-stageautofeedback-zlib maybe-all-stageautofeedback-zlib
32737.PHONY: clean-stageautofeedback-zlib maybe-clean-stageautofeedback-zlib
32738maybe-all-stageautofeedback-zlib:
32739maybe-clean-stageautofeedback-zlib:
32740@if zlib-bootstrap
32741maybe-all-stageautofeedback-zlib: all-stageautofeedback-zlib
32742all-stageautofeedback: all-stageautofeedback-zlib
32743TARGET-stageautofeedback-zlib = $(TARGET-zlib)
32744all-stageautofeedback-zlib: configure-stageautofeedback-zlib
32745 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
32746 @r=`${PWD_COMMAND}`; export r; \
32747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32748 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
32749 $(HOST_EXPORTS) \
32750 $(POSTSTAGE1_HOST_EXPORTS) \
32751 cd $(HOST_SUBDIR)/zlib && \
32752 \
32753 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32754 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
32755 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
32756 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
32757 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
32758 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32759 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32760 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
32761 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
32762 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
32763 $(TARGET-stageautofeedback-zlib)
32764
32765maybe-clean-stageautofeedback-zlib: clean-stageautofeedback-zlib
32766clean-stageautofeedback: clean-stageautofeedback-zlib
32767clean-stageautofeedback-zlib:
32768 @if [ $(current_stage) = stageautofeedback ]; then \
32769 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
32770 else \
32771 [ -f $(HOST_SUBDIR)/stageautofeedback-zlib/Makefile ] || exit 0; \
32772 $(MAKE) stageautofeedback-start; \
32773 fi; \
32774 cd $(HOST_SUBDIR)/zlib && \
32775 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
32776@endif zlib-bootstrap
32777
32778
d545f33b
PB
32779
32780
32781
a90ef4bf
JM
32782.PHONY: check-zlib maybe-check-zlib
32783maybe-check-zlib:
32784@if zlib
32785maybe-check-zlib: check-zlib
04cf1b77 32786
a90ef4bf 32787check-zlib:
04cf1b77 32788
a90ef4bf 32789@endif zlib
04cf1b77 32790
a90ef4bf
JM
32791.PHONY: install-zlib maybe-install-zlib
32792maybe-install-zlib:
32793@if zlib
32794maybe-install-zlib: install-zlib
04cf1b77 32795
a90ef4bf 32796install-zlib:
04cf1b77 32797
a90ef4bf 32798@endif zlib
04cf1b77 32799
a90ef4bf
JM
32800.PHONY: install-strip-zlib maybe-install-strip-zlib
32801maybe-install-strip-zlib:
32802@if zlib
32803maybe-install-strip-zlib: install-strip-zlib
9b980aa1 32804
a90ef4bf 32805install-strip-zlib:
9b980aa1 32806
a90ef4bf 32807@endif zlib
9b980aa1 32808
56a8fe78 32809# Other targets (info, dvi, pdf, etc.)
04cf1b77 32810
a90ef4bf
JM
32811.PHONY: maybe-info-zlib info-zlib
32812maybe-info-zlib:
32813@if zlib
32814maybe-info-zlib: info-zlib
04cf1b77 32815
a90ef4bf
JM
32816info-zlib: \
32817 configure-zlib
32818 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
32819 r=`${PWD_COMMAND}`; export r; \
32820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32821 $(HOST_EXPORTS) \
b813574b 32822 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
32823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32824 done; \
22121df0 32825 echo "Doing info in zlib"; \
a90ef4bf 32826 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
32827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32829 "RANLIB=$${RANLIB}" \
0c24b341 32830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32831 info) \
04cf1b77
PB
32832 || exit 1
32833
a90ef4bf 32834@endif zlib
04cf1b77 32835
a90ef4bf
JM
32836.PHONY: maybe-dvi-zlib dvi-zlib
32837maybe-dvi-zlib:
32838@if zlib
32839maybe-dvi-zlib: dvi-zlib
04cf1b77 32840
a90ef4bf
JM
32841dvi-zlib: \
32842 configure-zlib
32843 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
32844 r=`${PWD_COMMAND}`; export r; \
32845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32846 $(HOST_EXPORTS) \
b813574b 32847 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
32848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32849 done; \
22121df0 32850 echo "Doing dvi in zlib"; \
a90ef4bf 32851 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
32852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32854 "RANLIB=$${RANLIB}" \
0c24b341 32855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32856 dvi) \
04cf1b77
PB
32857 || exit 1
32858
a90ef4bf 32859@endif zlib
04cf1b77 32860
a90ef4bf
JM
32861.PHONY: maybe-pdf-zlib pdf-zlib
32862maybe-pdf-zlib:
32863@if zlib
32864maybe-pdf-zlib: pdf-zlib
56a8fe78 32865
a90ef4bf
JM
32866pdf-zlib: \
32867 configure-zlib
32868 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
32869 r=`${PWD_COMMAND}`; export r; \
32870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32871 $(HOST_EXPORTS) \
32872 for flag in $(EXTRA_HOST_FLAGS) ; do \
32873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32874 done; \
22121df0 32875 echo "Doing pdf in zlib"; \
a90ef4bf 32876 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
32877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32879 "RANLIB=$${RANLIB}" \
0c24b341 32880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
32881 pdf) \
32882 || exit 1
32883
a90ef4bf 32884@endif zlib
56a8fe78 32885
a90ef4bf
JM
32886.PHONY: maybe-html-zlib html-zlib
32887maybe-html-zlib:
32888@if zlib
32889maybe-html-zlib: html-zlib
6d389afc 32890
a90ef4bf
JM
32891html-zlib: \
32892 configure-zlib
32893 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
32894 r=`${PWD_COMMAND}`; export r; \
32895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
32896 $(HOST_EXPORTS) \
32897 for flag in $(EXTRA_HOST_FLAGS) ; do \
32898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32899 done; \
22121df0 32900 echo "Doing html in zlib"; \
a90ef4bf 32901 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
32902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32904 "RANLIB=$${RANLIB}" \
0c24b341 32905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
32906 html) \
32907 || exit 1
32908
a90ef4bf 32909@endif zlib
6d389afc 32910
a90ef4bf
JM
32911.PHONY: maybe-TAGS-zlib TAGS-zlib
32912maybe-TAGS-zlib:
32913@if zlib
32914maybe-TAGS-zlib: TAGS-zlib
04cf1b77 32915
a90ef4bf
JM
32916TAGS-zlib: \
32917 configure-zlib
32918 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
32919 r=`${PWD_COMMAND}`; export r; \
32920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32921 $(HOST_EXPORTS) \
b813574b 32922 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
32923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32924 done; \
22121df0 32925 echo "Doing TAGS in zlib"; \
a90ef4bf 32926 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
32927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32929 "RANLIB=$${RANLIB}" \
0c24b341 32930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32931 TAGS) \
04cf1b77
PB
32932 || exit 1
32933
a90ef4bf 32934@endif zlib
04cf1b77 32935
a90ef4bf
JM
32936.PHONY: maybe-install-info-zlib install-info-zlib
32937maybe-install-info-zlib:
32938@if zlib
32939maybe-install-info-zlib: install-info-zlib
04cf1b77 32940
a90ef4bf
JM
32941install-info-zlib: \
32942 configure-zlib \
32943 info-zlib
32944 @[ -f ./zlib/Makefile ] || exit 0; \
32945 r=`${PWD_COMMAND}`; export r; \
32946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32947 $(HOST_EXPORTS) \
b813574b 32948 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
32949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32950 done; \
22121df0 32951 echo "Doing install-info in zlib"; \
a90ef4bf 32952 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
32953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32955 "RANLIB=$${RANLIB}" \
0c24b341 32956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32957 install-info) \
04cf1b77
PB
32958 || exit 1
32959
a90ef4bf 32960@endif zlib
04cf1b77 32961
a90ef4bf
JM
32962.PHONY: maybe-install-pdf-zlib install-pdf-zlib
32963maybe-install-pdf-zlib:
32964@if zlib
32965maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 32966
a90ef4bf
JM
32967install-pdf-zlib: \
32968 configure-zlib \
32969 pdf-zlib
32970 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
32971 r=`${PWD_COMMAND}`; export r; \
32972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32973 $(HOST_EXPORTS) \
32974 for flag in $(EXTRA_HOST_FLAGS) ; do \
32975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32976 done; \
22121df0 32977 echo "Doing install-pdf in zlib"; \
a90ef4bf 32978 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
32979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32981 "RANLIB=$${RANLIB}" \
0c24b341 32982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
32983 install-pdf) \
32984 || exit 1
32985
a90ef4bf 32986@endif zlib
a3ca38d2 32987
a90ef4bf
JM
32988.PHONY: maybe-install-html-zlib install-html-zlib
32989maybe-install-html-zlib:
32990@if zlib
32991maybe-install-html-zlib: install-html-zlib
108a6f8e 32992
a90ef4bf
JM
32993install-html-zlib: \
32994 configure-zlib \
32995 html-zlib
32996 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
32997 r=`${PWD_COMMAND}`; export r; \
32998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32999 $(HOST_EXPORTS) \
33000 for flag in $(EXTRA_HOST_FLAGS) ; do \
33001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33002 done; \
22121df0 33003 echo "Doing install-html in zlib"; \
a90ef4bf 33004 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
33005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33007 "RANLIB=$${RANLIB}" \
0c24b341 33008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
33009 install-html) \
33010 || exit 1
33011
a90ef4bf 33012@endif zlib
108a6f8e 33013
a90ef4bf
JM
33014.PHONY: maybe-installcheck-zlib installcheck-zlib
33015maybe-installcheck-zlib:
33016@if zlib
33017maybe-installcheck-zlib: installcheck-zlib
04cf1b77 33018
a90ef4bf
JM
33019installcheck-zlib: \
33020 configure-zlib
33021 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
33022 r=`${PWD_COMMAND}`; export r; \
33023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33024 $(HOST_EXPORTS) \
b813574b 33025 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
33026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33027 done; \
22121df0 33028 echo "Doing installcheck in zlib"; \
a90ef4bf 33029 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
33030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33032 "RANLIB=$${RANLIB}" \
0c24b341 33033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33034 installcheck) \
04cf1b77
PB
33035 || exit 1
33036
a90ef4bf 33037@endif zlib
04cf1b77 33038
a90ef4bf
JM
33039.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
33040maybe-mostlyclean-zlib:
33041@if zlib
33042maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 33043
a90ef4bf
JM
33044mostlyclean-zlib:
33045 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
33046 r=`${PWD_COMMAND}`; export r; \
33047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33048 $(HOST_EXPORTS) \
b813574b 33049 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
33050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33051 done; \
22121df0 33052 echo "Doing mostlyclean in zlib"; \
a90ef4bf 33053 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
33054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33056 "RANLIB=$${RANLIB}" \
0c24b341 33057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33058 mostlyclean) \
04cf1b77
PB
33059 || exit 1
33060
a90ef4bf 33061@endif zlib
04cf1b77 33062
a90ef4bf
JM
33063.PHONY: maybe-clean-zlib clean-zlib
33064maybe-clean-zlib:
33065@if zlib
33066maybe-clean-zlib: clean-zlib
04cf1b77 33067
a90ef4bf
JM
33068clean-zlib:
33069 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
33070 r=`${PWD_COMMAND}`; export r; \
33071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33072 $(HOST_EXPORTS) \
b813574b 33073 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
33074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33075 done; \
22121df0 33076 echo "Doing clean in zlib"; \
a90ef4bf 33077 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
33078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33080 "RANLIB=$${RANLIB}" \
0c24b341 33081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33082 clean) \
04cf1b77
PB
33083 || exit 1
33084
a90ef4bf 33085@endif zlib
04cf1b77 33086
a90ef4bf
JM
33087.PHONY: maybe-distclean-zlib distclean-zlib
33088maybe-distclean-zlib:
33089@if zlib
33090maybe-distclean-zlib: distclean-zlib
04cf1b77 33091
a90ef4bf
JM
33092distclean-zlib:
33093 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
33094 r=`${PWD_COMMAND}`; export r; \
33095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33096 $(HOST_EXPORTS) \
b813574b 33097 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
33098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33099 done; \
22121df0 33100 echo "Doing distclean in zlib"; \
a90ef4bf 33101 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
33102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33104 "RANLIB=$${RANLIB}" \
0c24b341 33105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33106 distclean) \
04cf1b77
PB
33107 || exit 1
33108
a90ef4bf 33109@endif zlib
04cf1b77 33110
a90ef4bf
JM
33111.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
33112maybe-maintainer-clean-zlib:
33113@if zlib
33114maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 33115
a90ef4bf
JM
33116maintainer-clean-zlib:
33117 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
33118 r=`${PWD_COMMAND}`; export r; \
33119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33120 $(HOST_EXPORTS) \
b813574b 33121 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
33122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33123 done; \
22121df0 33124 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 33125 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
33126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33128 "RANLIB=$${RANLIB}" \
0c24b341 33129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33130 maintainer-clean) \
04cf1b77
PB
33131 || exit 1
33132
a90ef4bf 33133@endif zlib
04cf1b77
PB
33134
33135
a7254363 33136
a90ef4bf
JM
33137.PHONY: configure-gdb maybe-configure-gdb
33138maybe-configure-gdb:
4f0ef2d8 33139@if gcc-bootstrap
a90ef4bf 33140configure-gdb: stage_current
4f0ef2d8 33141@endif gcc-bootstrap
a90ef4bf
JM
33142@if gdb
33143maybe-configure-gdb: configure-gdb
33144configure-gdb:
33145 @: $(MAKE); $(unstage)
c52c6897
PB
33146 @r=`${PWD_COMMAND}`; export r; \
33147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 33148 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 33149 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 33150 $(HOST_EXPORTS) \
a90ef4bf
JM
33151 echo Configuring in $(HOST_SUBDIR)/gdb; \
33152 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 33153 case $(srcdir) in \
b00612cc 33154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 33155 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 33156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 33157 esac; \
1b6c0831
L
33158 module_srcdir=gdb; \
33159 $(SHELL) \
33160 $$s/$$module_srcdir/configure \
33161 --srcdir=$${topdir}/$$module_srcdir \
4b900473 33162 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 33163 --target=${target_alias} \
4fa63067 33164 || exit 1
a90ef4bf 33165@endif gdb
4fa63067 33166
a7254363
PB
33167
33168
d545f33b 33169
8520c408 33170
a90ef4bf
JM
33171.PHONY: all-gdb maybe-all-gdb
33172maybe-all-gdb:
33173@if gcc-bootstrap
33174all-gdb: stage_current
33175@endif gcc-bootstrap
33176@if gdb
33177TARGET-gdb=all
33178maybe-all-gdb: all-gdb
33179all-gdb: configure-gdb
33180 @: $(MAKE); $(unstage)
c52c6897
PB
33181 @r=`${PWD_COMMAND}`; export r; \
33182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
33183 $(HOST_EXPORTS) \
33184 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 33185 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
33186 $(TARGET-gdb))
33187@endif gdb
8520c408 33188
a90ef4bf
JM
33189
33190
33191
33192.PHONY: check-gdb maybe-check-gdb
33193maybe-check-gdb:
33194@if gdb
33195maybe-check-gdb: check-gdb
33196
33197check-gdb:
33198 @: $(MAKE); $(unstage)
c52c6897
PB
33199 @r=`${PWD_COMMAND}`; export r; \
33200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 33201 $(HOST_EXPORTS) \
a90ef4bf
JM
33202 (cd $(HOST_SUBDIR)/gdb && \
33203 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 33204
a90ef4bf
JM
33205@endif gdb
33206
33207.PHONY: install-gdb maybe-install-gdb
33208maybe-install-gdb:
33209@if gdb
33210maybe-install-gdb: install-gdb
33211
33212install-gdb: installdirs
33213 @: $(MAKE); $(unstage)
c52c6897
PB
33214 @r=`${PWD_COMMAND}`; export r; \
33215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 33216 $(HOST_EXPORTS) \
a90ef4bf
JM
33217 (cd $(HOST_SUBDIR)/gdb && \
33218 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 33219
a90ef4bf
JM
33220@endif gdb
33221
33222.PHONY: install-strip-gdb maybe-install-strip-gdb
33223maybe-install-strip-gdb:
33224@if gdb
33225maybe-install-strip-gdb: install-strip-gdb
33226
33227install-strip-gdb: installdirs
33228 @: $(MAKE); $(unstage)
c52c6897
PB
33229 @r=`${PWD_COMMAND}`; export r; \
33230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 33231 $(HOST_EXPORTS) \
a90ef4bf
JM
33232 (cd $(HOST_SUBDIR)/gdb && \
33233 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 33234
a90ef4bf 33235@endif gdb
d545f33b 33236
a90ef4bf 33237# Other targets (info, dvi, pdf, etc.)
d545f33b 33238
a90ef4bf
JM
33239.PHONY: maybe-info-gdb info-gdb
33240maybe-info-gdb:
33241@if gdb
33242maybe-info-gdb: info-gdb
d545f33b 33243
a90ef4bf
JM
33244info-gdb: \
33245 configure-gdb
33246 @: $(MAKE); $(unstage)
33247 @[ -f ./gdb/Makefile ] || exit 0; \
33248 r=`${PWD_COMMAND}`; export r; \
4fa63067 33249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
33250 $(HOST_EXPORTS) \
33251 for flag in $(EXTRA_HOST_FLAGS) ; do \
33252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33253 done; \
22121df0 33254 echo "Doing info in gdb"; \
a90ef4bf
JM
33255 (cd $(HOST_SUBDIR)/gdb && \
33256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33258 "RANLIB=$${RANLIB}" \
33259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33260 info) \
33261 || exit 1
4fa63067 33262
a90ef4bf 33263@endif gdb
a7254363 33264
a90ef4bf
JM
33265.PHONY: maybe-dvi-gdb dvi-gdb
33266maybe-dvi-gdb:
33267@if gdb
33268maybe-dvi-gdb: dvi-gdb
d545f33b 33269
a90ef4bf
JM
33270dvi-gdb: \
33271 configure-gdb
33272 @: $(MAKE); $(unstage)
33273 @[ -f ./gdb/Makefile ] || exit 0; \
33274 r=`${PWD_COMMAND}`; export r; \
d545f33b 33275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
33276 $(HOST_EXPORTS) \
33277 for flag in $(EXTRA_HOST_FLAGS) ; do \
33278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33279 done; \
22121df0 33280 echo "Doing dvi in gdb"; \
a90ef4bf
JM
33281 (cd $(HOST_SUBDIR)/gdb && \
33282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33284 "RANLIB=$${RANLIB}" \
33285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33286 dvi) \
33287 || exit 1
d545f33b 33288
a90ef4bf 33289@endif gdb
d545f33b 33290
a90ef4bf
JM
33291.PHONY: maybe-pdf-gdb pdf-gdb
33292maybe-pdf-gdb:
33293@if gdb
33294maybe-pdf-gdb: pdf-gdb
d545f33b 33295
a90ef4bf
JM
33296pdf-gdb: \
33297 configure-gdb
9b980aa1 33298 @: $(MAKE); $(unstage)
a90ef4bf 33299 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
33300 r=`${PWD_COMMAND}`; export r; \
33301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33302 $(HOST_EXPORTS) \
b813574b 33303 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
33304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33305 done; \
22121df0 33306 echo "Doing pdf in gdb"; \
a90ef4bf 33307 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
33308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33310 "RANLIB=$${RANLIB}" \
0c24b341 33311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33312 pdf) \
2a4cbe27
NN
33313 || exit 1
33314
a90ef4bf 33315@endif gdb
2a4cbe27 33316
a90ef4bf
JM
33317.PHONY: maybe-html-gdb html-gdb
33318maybe-html-gdb:
33319@if gdb
33320maybe-html-gdb: html-gdb
2a4cbe27 33321
a90ef4bf
JM
33322html-gdb: \
33323 configure-gdb
33324 @: $(MAKE); $(unstage)
33325 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
33326 r=`${PWD_COMMAND}`; export r; \
33327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33328 $(HOST_EXPORTS) \
b813574b 33329 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
33330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33331 done; \
22121df0 33332 echo "Doing html in gdb"; \
a90ef4bf 33333 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
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}" \
a90ef4bf 33338 html) \
2a4cbe27
NN
33339 || exit 1
33340
a90ef4bf 33341@endif gdb
2a4cbe27 33342
a90ef4bf
JM
33343.PHONY: maybe-TAGS-gdb TAGS-gdb
33344maybe-TAGS-gdb:
33345@if gdb
33346maybe-TAGS-gdb: TAGS-gdb
56a8fe78 33347
a90ef4bf
JM
33348TAGS-gdb: \
33349 configure-gdb
33350 @: $(MAKE); $(unstage)
33351 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
33352 r=`${PWD_COMMAND}`; export r; \
33353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33354 $(HOST_EXPORTS) \
33355 for flag in $(EXTRA_HOST_FLAGS) ; do \
33356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33357 done; \
22121df0 33358 echo "Doing TAGS in gdb"; \
a90ef4bf 33359 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
33360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33362 "RANLIB=$${RANLIB}" \
0c24b341 33363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33364 TAGS) \
56a8fe78
DD
33365 || exit 1
33366
a90ef4bf 33367@endif gdb
56a8fe78 33368
a90ef4bf
JM
33369.PHONY: maybe-install-info-gdb install-info-gdb
33370maybe-install-info-gdb:
33371@if gdb
33372maybe-install-info-gdb: install-info-gdb
6d389afc 33373
a90ef4bf
JM
33374install-info-gdb: \
33375 configure-gdb \
33376 info-gdb
33377 @: $(MAKE); $(unstage)
33378 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
33379 r=`${PWD_COMMAND}`; export r; \
33380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
33381 $(HOST_EXPORTS) \
33382 for flag in $(EXTRA_HOST_FLAGS) ; do \
33383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33384 done; \
22121df0 33385 echo "Doing install-info in gdb"; \
a90ef4bf 33386 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
33387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33389 "RANLIB=$${RANLIB}" \
0c24b341 33390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33391 install-info) \
6d389afc
MS
33392 || exit 1
33393
a90ef4bf 33394@endif gdb
6d389afc 33395
a90ef4bf
JM
33396.PHONY: maybe-install-pdf-gdb install-pdf-gdb
33397maybe-install-pdf-gdb:
33398@if gdb
33399maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 33400
a90ef4bf
JM
33401install-pdf-gdb: \
33402 configure-gdb \
33403 pdf-gdb
33404 @: $(MAKE); $(unstage)
33405 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
33406 r=`${PWD_COMMAND}`; export r; \
33407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33408 $(HOST_EXPORTS) \
b813574b 33409 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
33410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33411 done; \
22121df0 33412 echo "Doing install-pdf in gdb"; \
a90ef4bf 33413 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
33414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33416 "RANLIB=$${RANLIB}" \
0c24b341 33417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33418 install-pdf) \
2a4cbe27
NN
33419 || exit 1
33420
a90ef4bf 33421@endif gdb
2a4cbe27 33422
a90ef4bf
JM
33423.PHONY: maybe-install-html-gdb install-html-gdb
33424maybe-install-html-gdb:
33425@if gdb
33426maybe-install-html-gdb: install-html-gdb
2a4cbe27 33427
a90ef4bf
JM
33428install-html-gdb: \
33429 configure-gdb \
33430 html-gdb
33431 @: $(MAKE); $(unstage)
33432 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
33433 r=`${PWD_COMMAND}`; export r; \
33434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33435 $(HOST_EXPORTS) \
b813574b 33436 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
33437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33438 done; \
22121df0 33439 echo "Doing install-html in gdb"; \
a90ef4bf 33440 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
33441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33443 "RANLIB=$${RANLIB}" \
0c24b341 33444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33445 install-html) \
2a4cbe27
NN
33446 || exit 1
33447
a90ef4bf 33448@endif gdb
2a4cbe27 33449
a90ef4bf
JM
33450.PHONY: maybe-installcheck-gdb installcheck-gdb
33451maybe-installcheck-gdb:
33452@if gdb
33453maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 33454
a90ef4bf
JM
33455installcheck-gdb: \
33456 configure-gdb
33457 @: $(MAKE); $(unstage)
33458 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
33459 r=`${PWD_COMMAND}`; export r; \
33460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33461 $(HOST_EXPORTS) \
33462 for flag in $(EXTRA_HOST_FLAGS) ; do \
33463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33464 done; \
22121df0 33465 echo "Doing installcheck in gdb"; \
a90ef4bf 33466 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
33467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33469 "RANLIB=$${RANLIB}" \
0c24b341 33470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33471 installcheck) \
a3ca38d2
DD
33472 || exit 1
33473
a90ef4bf 33474@endif gdb
a3ca38d2 33475
a90ef4bf
JM
33476.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
33477maybe-mostlyclean-gdb:
33478@if gdb
33479maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 33480
a90ef4bf
JM
33481mostlyclean-gdb:
33482 @: $(MAKE); $(unstage)
33483 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
33484 r=`${PWD_COMMAND}`; export r; \
33485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33486 $(HOST_EXPORTS) \
33487 for flag in $(EXTRA_HOST_FLAGS) ; do \
33488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33489 done; \
22121df0 33490 echo "Doing mostlyclean in gdb"; \
a90ef4bf 33491 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
33492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33494 "RANLIB=$${RANLIB}" \
0c24b341 33495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33496 mostlyclean) \
108a6f8e
CD
33497 || exit 1
33498
a90ef4bf 33499@endif gdb
108a6f8e 33500
a90ef4bf
JM
33501.PHONY: maybe-clean-gdb clean-gdb
33502maybe-clean-gdb:
33503@if gdb
33504maybe-clean-gdb: clean-gdb
2a4cbe27 33505
a90ef4bf
JM
33506clean-gdb:
33507 @: $(MAKE); $(unstage)
33508 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
33509 r=`${PWD_COMMAND}`; export r; \
33510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33511 $(HOST_EXPORTS) \
b813574b 33512 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
33513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33514 done; \
22121df0 33515 echo "Doing clean in gdb"; \
a90ef4bf 33516 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
33517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33519 "RANLIB=$${RANLIB}" \
0c24b341 33520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33521 clean) \
2a4cbe27
NN
33522 || exit 1
33523
a90ef4bf 33524@endif gdb
2a4cbe27 33525
a90ef4bf
JM
33526.PHONY: maybe-distclean-gdb distclean-gdb
33527maybe-distclean-gdb:
33528@if gdb
33529maybe-distclean-gdb: distclean-gdb
2a4cbe27 33530
a90ef4bf
JM
33531distclean-gdb:
33532 @: $(MAKE); $(unstage)
33533 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
33534 r=`${PWD_COMMAND}`; export r; \
33535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33536 $(HOST_EXPORTS) \
b813574b 33537 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
33538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33539 done; \
22121df0 33540 echo "Doing distclean in gdb"; \
a90ef4bf 33541 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
33542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33544 "RANLIB=$${RANLIB}" \
0c24b341 33545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33546 distclean) \
2a4cbe27
NN
33547 || exit 1
33548
a90ef4bf 33549@endif gdb
2a4cbe27 33550
a90ef4bf
JM
33551.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
33552maybe-maintainer-clean-gdb:
33553@if gdb
33554maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 33555
a90ef4bf
JM
33556maintainer-clean-gdb:
33557 @: $(MAKE); $(unstage)
33558 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
33559 r=`${PWD_COMMAND}`; export r; \
33560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33561 $(HOST_EXPORTS) \
b813574b 33562 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
33563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33564 done; \
22121df0 33565 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 33566 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
33567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33569 "RANLIB=$${RANLIB}" \
0c24b341 33570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 33571 maintainer-clean) \
2a4cbe27
NN
33572 || exit 1
33573
a90ef4bf 33574@endif gdb
2a4cbe27 33575
2a4cbe27 33576
a7254363 33577
a90ef4bf
JM
33578.PHONY: configure-expect maybe-configure-expect
33579maybe-configure-expect:
4f0ef2d8 33580@if gcc-bootstrap
a90ef4bf 33581configure-expect: stage_current
4f0ef2d8 33582@endif gcc-bootstrap
a90ef4bf
JM
33583@if expect
33584maybe-configure-expect: configure-expect
33585configure-expect:
33586 @: $(MAKE); $(unstage)
c52c6897
PB
33587 @r=`${PWD_COMMAND}`; export r; \
33588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 33589 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 33590 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 33591 $(HOST_EXPORTS) \
a90ef4bf
JM
33592 echo Configuring in $(HOST_SUBDIR)/expect; \
33593 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
33594 case $(srcdir) in \
33595 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 33596 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
33597 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33598 esac; \
1b6c0831
L
33599 module_srcdir=expect; \
33600 $(SHELL) \
33601 $$s/$$module_srcdir/configure \
33602 --srcdir=$${topdir}/$$module_srcdir \
4b900473 33603 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 33604 --target=${target_alias} \
be01d343 33605 || exit 1
a90ef4bf 33606@endif expect
be01d343
PB
33607
33608
33609
be01d343 33610
8520c408 33611
a90ef4bf
JM
33612.PHONY: all-expect maybe-all-expect
33613maybe-all-expect:
33614@if gcc-bootstrap
33615all-expect: stage_current
33616@endif gcc-bootstrap
33617@if expect
33618TARGET-expect=all
33619maybe-all-expect: all-expect
33620all-expect: configure-expect
33621 @: $(MAKE); $(unstage)
c52c6897
PB
33622 @r=`${PWD_COMMAND}`; export r; \
33623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
33624 $(HOST_EXPORTS) \
33625 (cd $(HOST_SUBDIR)/expect && \
b3676d82 33626 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
33627 $(TARGET-expect))
33628@endif expect
8520c408 33629
a90ef4bf
JM
33630
33631
33632
33633.PHONY: check-expect maybe-check-expect
33634maybe-check-expect:
33635@if expect
33636maybe-check-expect: check-expect
33637
33638check-expect:
33639 @: $(MAKE); $(unstage)
c52c6897
PB
33640 @r=`${PWD_COMMAND}`; export r; \
33641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 33642 $(HOST_EXPORTS) \
a90ef4bf
JM
33643 (cd $(HOST_SUBDIR)/expect && \
33644 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 33645
a90ef4bf
JM
33646@endif expect
33647
33648.PHONY: install-expect maybe-install-expect
33649maybe-install-expect:
33650@if expect
33651maybe-install-expect: install-expect
33652
33653install-expect: installdirs
33654 @: $(MAKE); $(unstage)
c52c6897
PB
33655 @r=`${PWD_COMMAND}`; export r; \
33656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 33657 $(HOST_EXPORTS) \
a90ef4bf
JM
33658 (cd $(HOST_SUBDIR)/expect && \
33659 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 33660
a90ef4bf
JM
33661@endif expect
33662
33663.PHONY: install-strip-expect maybe-install-strip-expect
33664maybe-install-strip-expect:
33665@if expect
33666maybe-install-strip-expect: install-strip-expect
33667
33668install-strip-expect: installdirs
33669 @: $(MAKE); $(unstage)
c52c6897
PB
33670 @r=`${PWD_COMMAND}`; export r; \
33671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 33672 $(HOST_EXPORTS) \
a90ef4bf
JM
33673 (cd $(HOST_SUBDIR)/expect && \
33674 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 33675
a90ef4bf 33676@endif expect
be01d343 33677
a90ef4bf 33678# Other targets (info, dvi, pdf, etc.)
be01d343 33679
a90ef4bf
JM
33680.PHONY: maybe-info-expect info-expect
33681maybe-info-expect:
33682@if expect
33683maybe-info-expect: info-expect
be01d343 33684
a90ef4bf
JM
33685info-expect: \
33686 configure-expect
33687 @: $(MAKE); $(unstage)
33688 @[ -f ./expect/Makefile ] || exit 0; \
33689 r=`${PWD_COMMAND}`; export r; \
be01d343 33690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
33691 $(HOST_EXPORTS) \
33692 for flag in $(EXTRA_HOST_FLAGS) ; do \
33693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33694 done; \
22121df0 33695 echo "Doing info in expect"; \
a90ef4bf
JM
33696 (cd $(HOST_SUBDIR)/expect && \
33697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33699 "RANLIB=$${RANLIB}" \
33700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33701 info) \
33702 || exit 1
be01d343 33703
a90ef4bf 33704@endif expect
be01d343 33705
a90ef4bf
JM
33706.PHONY: maybe-dvi-expect dvi-expect
33707maybe-dvi-expect:
33708@if expect
33709maybe-dvi-expect: dvi-expect
be01d343 33710
a90ef4bf
JM
33711dvi-expect: \
33712 configure-expect
33713 @: $(MAKE); $(unstage)
33714 @[ -f ./expect/Makefile ] || exit 0; \
33715 r=`${PWD_COMMAND}`; export r; \
be01d343 33716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
33717 $(HOST_EXPORTS) \
33718 for flag in $(EXTRA_HOST_FLAGS) ; do \
33719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33720 done; \
22121df0 33721 echo "Doing dvi in expect"; \
a90ef4bf
JM
33722 (cd $(HOST_SUBDIR)/expect && \
33723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33725 "RANLIB=$${RANLIB}" \
33726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33727 dvi) \
33728 || exit 1
be01d343 33729
a90ef4bf 33730@endif expect
be01d343 33731
a90ef4bf
JM
33732.PHONY: maybe-pdf-expect pdf-expect
33733maybe-pdf-expect:
33734@if expect
33735maybe-pdf-expect: pdf-expect
be01d343 33736
a90ef4bf
JM
33737pdf-expect: \
33738 configure-expect
33739 @: $(MAKE); $(unstage)
33740 @[ -f ./expect/Makefile ] || exit 0; \
33741 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
33742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33743 $(HOST_EXPORTS) \
a90ef4bf
JM
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 pdf in expect"; \
a90ef4bf
JM
33748 (cd $(HOST_SUBDIR)/expect && \
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 pdf) \
33754 || exit 1
be01d343 33755
a90ef4bf 33756@endif expect
be01d343 33757
a90ef4bf
JM
33758.PHONY: maybe-html-expect html-expect
33759maybe-html-expect:
33760@if expect
33761maybe-html-expect: html-expect
be01d343 33762
a90ef4bf
JM
33763html-expect: \
33764 configure-expect
33765 @: $(MAKE); $(unstage)
33766 @[ -f ./expect/Makefile ] || exit 0; \
33767 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
33768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33769 $(HOST_EXPORTS) \
a90ef4bf
JM
33770 for flag in $(EXTRA_HOST_FLAGS) ; do \
33771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33772 done; \
22121df0 33773 echo "Doing html in expect"; \
a90ef4bf
JM
33774 (cd $(HOST_SUBDIR)/expect && \
33775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33777 "RANLIB=$${RANLIB}" \
33778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33779 html) \
33780 || exit 1
be01d343 33781
a90ef4bf 33782@endif expect
be01d343 33783
a90ef4bf
JM
33784.PHONY: maybe-TAGS-expect TAGS-expect
33785maybe-TAGS-expect:
33786@if expect
33787maybe-TAGS-expect: TAGS-expect
9b980aa1 33788
a90ef4bf
JM
33789TAGS-expect: \
33790 configure-expect
9b980aa1 33791 @: $(MAKE); $(unstage)
a90ef4bf 33792 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
33793 r=`${PWD_COMMAND}`; export r; \
33794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33795 $(HOST_EXPORTS) \
33796 for flag in $(EXTRA_HOST_FLAGS) ; do \
33797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33798 done; \
22121df0 33799 echo "Doing TAGS in expect"; \
a90ef4bf 33800 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
33801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33803 "RANLIB=$${RANLIB}" \
0c24b341 33804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
33805 TAGS) \
33806 || exit 1
33807
a90ef4bf 33808@endif expect
be01d343 33809
a90ef4bf
JM
33810.PHONY: maybe-install-info-expect install-info-expect
33811maybe-install-info-expect:
33812@if expect
33813maybe-install-info-expect: install-info-expect
be01d343 33814
a90ef4bf
JM
33815install-info-expect: \
33816 configure-expect \
33817 info-expect
33818 @: $(MAKE); $(unstage)
33819 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
33820 r=`${PWD_COMMAND}`; export r; \
33821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33822 $(HOST_EXPORTS) \
33823 for flag in $(EXTRA_HOST_FLAGS) ; do \
33824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33825 done; \
22121df0 33826 echo "Doing install-info in expect"; \
a90ef4bf 33827 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
33828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33830 "RANLIB=$${RANLIB}" \
0c24b341 33831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
33832 install-info) \
33833 || exit 1
33834
a90ef4bf 33835@endif expect
be01d343 33836
a90ef4bf
JM
33837.PHONY: maybe-install-pdf-expect install-pdf-expect
33838maybe-install-pdf-expect:
33839@if expect
33840maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 33841
a90ef4bf
JM
33842install-pdf-expect: \
33843 configure-expect \
33844 pdf-expect
33845 @: $(MAKE); $(unstage)
33846 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
33847 r=`${PWD_COMMAND}`; export r; \
33848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33849 $(HOST_EXPORTS) \
33850 for flag in $(EXTRA_HOST_FLAGS) ; do \
33851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33852 done; \
22121df0 33853 echo "Doing install-pdf in expect"; \
a90ef4bf 33854 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
33855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33857 "RANLIB=$${RANLIB}" \
0c24b341 33858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
33859 install-pdf) \
33860 || exit 1
33861
a90ef4bf 33862@endif expect
a3ca38d2 33863
a90ef4bf
JM
33864.PHONY: maybe-install-html-expect install-html-expect
33865maybe-install-html-expect:
33866@if expect
33867maybe-install-html-expect: install-html-expect
108a6f8e 33868
a90ef4bf
JM
33869install-html-expect: \
33870 configure-expect \
33871 html-expect
33872 @: $(MAKE); $(unstage)
33873 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
33874 r=`${PWD_COMMAND}`; export r; \
33875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33876 $(HOST_EXPORTS) \
33877 for flag in $(EXTRA_HOST_FLAGS) ; do \
33878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33879 done; \
22121df0 33880 echo "Doing install-html in expect"; \
a90ef4bf 33881 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
33882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33884 "RANLIB=$${RANLIB}" \
0c24b341 33885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
33886 install-html) \
33887 || exit 1
33888
a90ef4bf 33889@endif expect
108a6f8e 33890
a90ef4bf
JM
33891.PHONY: maybe-installcheck-expect installcheck-expect
33892maybe-installcheck-expect:
33893@if expect
33894maybe-installcheck-expect: installcheck-expect
be01d343 33895
a90ef4bf
JM
33896installcheck-expect: \
33897 configure-expect
33898 @: $(MAKE); $(unstage)
33899 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
33900 r=`${PWD_COMMAND}`; export r; \
33901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33902 $(HOST_EXPORTS) \
33903 for flag in $(EXTRA_HOST_FLAGS) ; do \
33904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33905 done; \
22121df0 33906 echo "Doing installcheck in expect"; \
a90ef4bf 33907 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
33908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33910 "RANLIB=$${RANLIB}" \
0c24b341 33911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
33912 installcheck) \
33913 || exit 1
33914
a90ef4bf 33915@endif expect
be01d343 33916
a90ef4bf
JM
33917.PHONY: maybe-mostlyclean-expect mostlyclean-expect
33918maybe-mostlyclean-expect:
33919@if expect
33920maybe-mostlyclean-expect: mostlyclean-expect
be01d343 33921
a90ef4bf
JM
33922mostlyclean-expect:
33923 @: $(MAKE); $(unstage)
33924 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
33925 r=`${PWD_COMMAND}`; export r; \
33926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33927 $(HOST_EXPORTS) \
33928 for flag in $(EXTRA_HOST_FLAGS) ; do \
33929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33930 done; \
22121df0 33931 echo "Doing mostlyclean in expect"; \
a90ef4bf 33932 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
33933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33935 "RANLIB=$${RANLIB}" \
0c24b341 33936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
33937 mostlyclean) \
33938 || exit 1
33939
a90ef4bf 33940@endif expect
be01d343 33941
a90ef4bf
JM
33942.PHONY: maybe-clean-expect clean-expect
33943maybe-clean-expect:
33944@if expect
33945maybe-clean-expect: clean-expect
be01d343 33946
a90ef4bf
JM
33947clean-expect:
33948 @: $(MAKE); $(unstage)
33949 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
33950 r=`${PWD_COMMAND}`; export r; \
33951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33952 $(HOST_EXPORTS) \
33953 for flag in $(EXTRA_HOST_FLAGS) ; do \
33954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33955 done; \
22121df0 33956 echo "Doing clean in expect"; \
a90ef4bf 33957 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
33958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33960 "RANLIB=$${RANLIB}" \
0c24b341 33961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
33962 clean) \
33963 || exit 1
33964
a90ef4bf 33965@endif expect
be01d343 33966
a90ef4bf
JM
33967.PHONY: maybe-distclean-expect distclean-expect
33968maybe-distclean-expect:
33969@if expect
33970maybe-distclean-expect: distclean-expect
be01d343 33971
a90ef4bf
JM
33972distclean-expect:
33973 @: $(MAKE); $(unstage)
33974 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
33975 r=`${PWD_COMMAND}`; export r; \
33976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33977 $(HOST_EXPORTS) \
33978 for flag in $(EXTRA_HOST_FLAGS) ; do \
33979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33980 done; \
22121df0 33981 echo "Doing distclean in expect"; \
a90ef4bf 33982 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
33983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33985 "RANLIB=$${RANLIB}" \
0c24b341 33986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
33987 distclean) \
33988 || exit 1
33989
a90ef4bf 33990@endif expect
be01d343 33991
a90ef4bf
JM
33992.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
33993maybe-maintainer-clean-expect:
33994@if expect
33995maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 33996
a90ef4bf
JM
33997maintainer-clean-expect:
33998 @: $(MAKE); $(unstage)
33999 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
34000 r=`${PWD_COMMAND}`; export r; \
34001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34002 $(HOST_EXPORTS) \
34003 for flag in $(EXTRA_HOST_FLAGS) ; do \
34004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34005 done; \
22121df0 34006 echo "Doing maintainer-clean in expect"; \
a90ef4bf 34007 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
34008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34010 "RANLIB=$${RANLIB}" \
0c24b341 34011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
34012 maintainer-clean) \
34013 || exit 1
34014
a90ef4bf 34015@endif expect
be01d343
PB
34016
34017
34018
a90ef4bf
JM
34019.PHONY: configure-guile maybe-configure-guile
34020maybe-configure-guile:
4f0ef2d8 34021@if gcc-bootstrap
a90ef4bf 34022configure-guile: stage_current
4f0ef2d8 34023@endif gcc-bootstrap
a90ef4bf
JM
34024@if guile
34025maybe-configure-guile: configure-guile
34026configure-guile:
0aed8855 34027 @: $(MAKE); $(unstage)
c52c6897 34028 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 34029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 34030 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 34031 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 34032 $(HOST_EXPORTS) \
a90ef4bf
JM
34033 echo Configuring in $(HOST_SUBDIR)/guile; \
34034 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 34035 case $(srcdir) in \
b00612cc 34036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 34037 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 34038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 34039 esac; \
1b6c0831
L
34040 module_srcdir=guile; \
34041 $(SHELL) \
34042 $$s/$$module_srcdir/configure \
34043 --srcdir=$${topdir}/$$module_srcdir \
4b900473 34044 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 34045 --target=${target_alias} \
4b1cb4fe 34046 || exit 1
a90ef4bf 34047@endif guile
4b1cb4fe 34048
a7254363
PB
34049
34050
d545f33b
PB
34051
34052
a90ef4bf
JM
34053.PHONY: all-guile maybe-all-guile
34054maybe-all-guile:
4f0ef2d8 34055@if gcc-bootstrap
a90ef4bf 34056all-guile: stage_current
4f0ef2d8 34057@endif gcc-bootstrap
a90ef4bf
JM
34058@if guile
34059TARGET-guile=all
34060maybe-all-guile: all-guile
34061all-guile: configure-guile
34062 @: $(MAKE); $(unstage)
4b1cb4fe
DD
34063 @r=`${PWD_COMMAND}`; export r; \
34064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 34065 $(HOST_EXPORTS) \
a90ef4bf 34066 (cd $(HOST_SUBDIR)/guile && \
b3676d82 34067 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
34068 $(TARGET-guile))
34069@endif guile
4b1cb4fe 34070
a7254363 34071
d545f33b
PB
34072
34073
a90ef4bf
JM
34074.PHONY: check-guile maybe-check-guile
34075maybe-check-guile:
34076@if guile
34077maybe-check-guile: check-guile
4b1cb4fe 34078
a90ef4bf 34079check-guile:
0aed8855 34080 @: $(MAKE); $(unstage)
4b1cb4fe
DD
34081 @r=`${PWD_COMMAND}`; export r; \
34082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 34083 $(HOST_EXPORTS) \
a90ef4bf 34084 (cd $(HOST_SUBDIR)/guile && \
b00612cc 34085 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 34086
a90ef4bf 34087@endif guile
4b1cb4fe 34088
a90ef4bf
JM
34089.PHONY: install-guile maybe-install-guile
34090maybe-install-guile:
34091@if guile
34092maybe-install-guile: install-guile
4b1cb4fe 34093
a90ef4bf 34094install-guile: installdirs
0aed8855 34095 @: $(MAKE); $(unstage)
b813574b
PB
34096 @r=`${PWD_COMMAND}`; export r; \
34097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 34098 $(HOST_EXPORTS) \
a90ef4bf 34099 (cd $(HOST_SUBDIR)/guile && \
2da12f12 34100 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 34101
a90ef4bf 34102@endif guile
4b1cb4fe 34103
a90ef4bf
JM
34104.PHONY: install-strip-guile maybe-install-strip-guile
34105maybe-install-strip-guile:
34106@if guile
34107maybe-install-strip-guile: install-strip-guile
9b980aa1 34108
a90ef4bf 34109install-strip-guile: installdirs
9b980aa1
RW
34110 @: $(MAKE); $(unstage)
34111 @r=`${PWD_COMMAND}`; export r; \
34112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34113 $(HOST_EXPORTS) \
a90ef4bf 34114 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
34115 $(MAKE) $(FLAGS_TO_PASS) install-strip)
34116
a90ef4bf 34117@endif guile
9b980aa1 34118
56a8fe78 34119# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 34120
a90ef4bf
JM
34121.PHONY: maybe-info-guile info-guile
34122maybe-info-guile:
34123@if guile
34124maybe-info-guile: info-guile
4b1cb4fe 34125
a90ef4bf
JM
34126info-guile: \
34127 configure-guile
0aed8855 34128 @: $(MAKE); $(unstage)
a90ef4bf 34129 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
34130 r=`${PWD_COMMAND}`; export r; \
34131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34132 $(HOST_EXPORTS) \
b813574b 34133 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
34134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34135 done; \
22121df0 34136 echo "Doing info in guile"; \
a90ef4bf 34137 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
34138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34140 "RANLIB=$${RANLIB}" \
0c24b341 34141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34142 info) \
4b1cb4fe
DD
34143 || exit 1
34144
a90ef4bf 34145@endif guile
4b1cb4fe 34146
a90ef4bf
JM
34147.PHONY: maybe-dvi-guile dvi-guile
34148maybe-dvi-guile:
34149@if guile
34150maybe-dvi-guile: dvi-guile
4b1cb4fe 34151
a90ef4bf
JM
34152dvi-guile: \
34153 configure-guile
0aed8855 34154 @: $(MAKE); $(unstage)
a90ef4bf 34155 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
34156 r=`${PWD_COMMAND}`; export r; \
34157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34158 $(HOST_EXPORTS) \
b813574b 34159 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
34160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34161 done; \
22121df0 34162 echo "Doing dvi in guile"; \
a90ef4bf 34163 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
34164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34166 "RANLIB=$${RANLIB}" \
0c24b341 34167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34168 dvi) \
4b1cb4fe
DD
34169 || exit 1
34170
a90ef4bf 34171@endif guile
4b1cb4fe 34172
a90ef4bf
JM
34173.PHONY: maybe-pdf-guile pdf-guile
34174maybe-pdf-guile:
34175@if guile
34176maybe-pdf-guile: pdf-guile
56a8fe78 34177
a90ef4bf
JM
34178pdf-guile: \
34179 configure-guile
56a8fe78 34180 @: $(MAKE); $(unstage)
a90ef4bf 34181 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
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 pdf in guile"; \
a90ef4bf 34189 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
34190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34192 "RANLIB=$${RANLIB}" \
0c24b341 34193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
34194 pdf) \
34195 || exit 1
34196
a90ef4bf 34197@endif guile
56a8fe78 34198
a90ef4bf
JM
34199.PHONY: maybe-html-guile html-guile
34200maybe-html-guile:
34201@if guile
34202maybe-html-guile: html-guile
6d389afc 34203
a90ef4bf
JM
34204html-guile: \
34205 configure-guile
0aed8855 34206 @: $(MAKE); $(unstage)
a90ef4bf 34207 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
34208 r=`${PWD_COMMAND}`; export r; \
34209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
34210 $(HOST_EXPORTS) \
34211 for flag in $(EXTRA_HOST_FLAGS) ; do \
34212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34213 done; \
22121df0 34214 echo "Doing html in guile"; \
a90ef4bf 34215 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
34216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34218 "RANLIB=$${RANLIB}" \
0c24b341 34219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
34220 html) \
34221 || exit 1
34222
a90ef4bf 34223@endif guile
6d389afc 34224
a90ef4bf
JM
34225.PHONY: maybe-TAGS-guile TAGS-guile
34226maybe-TAGS-guile:
34227@if guile
34228maybe-TAGS-guile: TAGS-guile
4b1cb4fe 34229
a90ef4bf
JM
34230TAGS-guile: \
34231 configure-guile
0aed8855 34232 @: $(MAKE); $(unstage)
a90ef4bf 34233 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
34234 r=`${PWD_COMMAND}`; export r; \
34235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34236 $(HOST_EXPORTS) \
b813574b 34237 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
34238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34239 done; \
22121df0 34240 echo "Doing TAGS in guile"; \
a90ef4bf 34241 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
34242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34244 "RANLIB=$${RANLIB}" \
0c24b341 34245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34246 TAGS) \
4b1cb4fe
DD
34247 || exit 1
34248
a90ef4bf 34249@endif guile
4b1cb4fe 34250
a90ef4bf
JM
34251.PHONY: maybe-install-info-guile install-info-guile
34252maybe-install-info-guile:
34253@if guile
34254maybe-install-info-guile: install-info-guile
4b1cb4fe 34255
a90ef4bf
JM
34256install-info-guile: \
34257 configure-guile \
34258 info-guile
0aed8855 34259 @: $(MAKE); $(unstage)
a90ef4bf 34260 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
34261 r=`${PWD_COMMAND}`; export r; \
34262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34263 $(HOST_EXPORTS) \
b813574b 34264 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
34265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34266 done; \
22121df0 34267 echo "Doing install-info in guile"; \
a90ef4bf 34268 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
34269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34271 "RANLIB=$${RANLIB}" \
0c24b341 34272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34273 install-info) \
4b1cb4fe
DD
34274 || exit 1
34275
a90ef4bf 34276@endif guile
4b1cb4fe 34277
a90ef4bf
JM
34278.PHONY: maybe-install-pdf-guile install-pdf-guile
34279maybe-install-pdf-guile:
34280@if guile
34281maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 34282
a90ef4bf
JM
34283install-pdf-guile: \
34284 configure-guile \
34285 pdf-guile
a3ca38d2 34286 @: $(MAKE); $(unstage)
a90ef4bf 34287 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
34288 r=`${PWD_COMMAND}`; export r; \
34289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34290 $(HOST_EXPORTS) \
34291 for flag in $(EXTRA_HOST_FLAGS) ; do \
34292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34293 done; \
22121df0 34294 echo "Doing install-pdf in guile"; \
a90ef4bf 34295 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
34296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34298 "RANLIB=$${RANLIB}" \
0c24b341 34299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34300 install-pdf) \
34301 || exit 1
34302
a90ef4bf 34303@endif guile
a3ca38d2 34304
a90ef4bf
JM
34305.PHONY: maybe-install-html-guile install-html-guile
34306maybe-install-html-guile:
34307@if guile
34308maybe-install-html-guile: install-html-guile
108a6f8e 34309
a90ef4bf
JM
34310install-html-guile: \
34311 configure-guile \
34312 html-guile
108a6f8e 34313 @: $(MAKE); $(unstage)
a90ef4bf 34314 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
34315 r=`${PWD_COMMAND}`; export r; \
34316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34317 $(HOST_EXPORTS) \
34318 for flag in $(EXTRA_HOST_FLAGS) ; do \
34319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34320 done; \
22121df0 34321 echo "Doing install-html in guile"; \
a90ef4bf 34322 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
34323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34325 "RANLIB=$${RANLIB}" \
0c24b341 34326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
34327 install-html) \
34328 || exit 1
34329
a90ef4bf 34330@endif guile
108a6f8e 34331
a90ef4bf
JM
34332.PHONY: maybe-installcheck-guile installcheck-guile
34333maybe-installcheck-guile:
34334@if guile
34335maybe-installcheck-guile: installcheck-guile
4b1cb4fe 34336
a90ef4bf
JM
34337installcheck-guile: \
34338 configure-guile
0aed8855 34339 @: $(MAKE); $(unstage)
a90ef4bf 34340 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
34341 r=`${PWD_COMMAND}`; export r; \
34342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34343 $(HOST_EXPORTS) \
b813574b 34344 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
34345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34346 done; \
22121df0 34347 echo "Doing installcheck in guile"; \
a90ef4bf 34348 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
34349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34351 "RANLIB=$${RANLIB}" \
0c24b341 34352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34353 installcheck) \
4b1cb4fe
DD
34354 || exit 1
34355
a90ef4bf 34356@endif guile
4b1cb4fe 34357
a90ef4bf
JM
34358.PHONY: maybe-mostlyclean-guile mostlyclean-guile
34359maybe-mostlyclean-guile:
34360@if guile
34361maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 34362
a90ef4bf 34363mostlyclean-guile:
0aed8855 34364 @: $(MAKE); $(unstage)
a90ef4bf 34365 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
34366 r=`${PWD_COMMAND}`; export r; \
34367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34368 $(HOST_EXPORTS) \
b813574b 34369 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
34370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34371 done; \
22121df0 34372 echo "Doing mostlyclean in guile"; \
a90ef4bf 34373 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
34374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34376 "RANLIB=$${RANLIB}" \
0c24b341 34377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34378 mostlyclean) \
4b1cb4fe
DD
34379 || exit 1
34380
a90ef4bf 34381@endif guile
4b1cb4fe 34382
a90ef4bf
JM
34383.PHONY: maybe-clean-guile clean-guile
34384maybe-clean-guile:
34385@if guile
34386maybe-clean-guile: clean-guile
4b1cb4fe 34387
a90ef4bf 34388clean-guile:
0aed8855 34389 @: $(MAKE); $(unstage)
a90ef4bf 34390 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
34391 r=`${PWD_COMMAND}`; export r; \
34392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34393 $(HOST_EXPORTS) \
b813574b 34394 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
34395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34396 done; \
22121df0 34397 echo "Doing clean in guile"; \
a90ef4bf 34398 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
34399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34401 "RANLIB=$${RANLIB}" \
0c24b341 34402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34403 clean) \
4b1cb4fe
DD
34404 || exit 1
34405
a90ef4bf 34406@endif guile
4b1cb4fe 34407
a90ef4bf
JM
34408.PHONY: maybe-distclean-guile distclean-guile
34409maybe-distclean-guile:
34410@if guile
34411maybe-distclean-guile: distclean-guile
4b1cb4fe 34412
a90ef4bf 34413distclean-guile:
0aed8855 34414 @: $(MAKE); $(unstage)
a90ef4bf 34415 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
34416 r=`${PWD_COMMAND}`; export r; \
34417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34418 $(HOST_EXPORTS) \
b813574b 34419 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
34420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34421 done; \
22121df0 34422 echo "Doing distclean in guile"; \
a90ef4bf 34423 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
34424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34426 "RANLIB=$${RANLIB}" \
0c24b341 34427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34428 distclean) \
4b1cb4fe
DD
34429 || exit 1
34430
a90ef4bf 34431@endif guile
4b1cb4fe 34432
a90ef4bf
JM
34433.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
34434maybe-maintainer-clean-guile:
34435@if guile
34436maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 34437
a90ef4bf 34438maintainer-clean-guile:
0aed8855 34439 @: $(MAKE); $(unstage)
a90ef4bf 34440 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
34441 r=`${PWD_COMMAND}`; export r; \
34442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34443 $(HOST_EXPORTS) \
b813574b 34444 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
34445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34446 done; \
22121df0 34447 echo "Doing maintainer-clean in guile"; \
a90ef4bf 34448 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
34449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34451 "RANLIB=$${RANLIB}" \
0c24b341 34452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34453 maintainer-clean) \
4b1cb4fe
DD
34454 || exit 1
34455
a90ef4bf 34456@endif guile
4b1cb4fe
DD
34457
34458
a7254363 34459
a90ef4bf
JM
34460.PHONY: configure-tk maybe-configure-tk
34461maybe-configure-tk:
4f0ef2d8 34462@if gcc-bootstrap
a90ef4bf 34463configure-tk: stage_current
4f0ef2d8 34464@endif gcc-bootstrap
a90ef4bf
JM
34465@if tk
34466maybe-configure-tk: configure-tk
34467configure-tk:
34468 @: $(MAKE); $(unstage)
c52c6897
PB
34469 @r=`${PWD_COMMAND}`; export r; \
34470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 34471 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 34472 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 34473 $(HOST_EXPORTS) \
a90ef4bf
JM
34474 echo Configuring in $(HOST_SUBDIR)/tk; \
34475 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 34476 case $(srcdir) in \
b00612cc 34477 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 34478 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 34479 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 34480 esac; \
1b6c0831
L
34481 module_srcdir=tk; \
34482 $(SHELL) \
34483 $$s/$$module_srcdir/configure \
34484 --srcdir=$${topdir}/$$module_srcdir \
4b900473 34485 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 34486 --target=${target_alias} \
2a4cbe27 34487 || exit 1
a90ef4bf 34488@endif tk
2a4cbe27 34489
a7254363
PB
34490
34491
a90ef4bf
JM
34492
34493
34494.PHONY: all-tk maybe-all-tk
34495maybe-all-tk:
34496@if gcc-bootstrap
34497all-tk: stage_current
34498@endif gcc-bootstrap
34499@if tk
34500TARGET-tk=all
34501maybe-all-tk: all-tk
34502all-tk: configure-tk
34503 @: $(MAKE); $(unstage)
c52c6897
PB
34504 @r=`${PWD_COMMAND}`; export r; \
34505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
34506 $(HOST_EXPORTS) \
34507 (cd $(HOST_SUBDIR)/tk && \
b3676d82 34508 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
34509 $(TARGET-tk))
34510@endif tk
d545f33b 34511
a90ef4bf
JM
34512
34513
34514
34515.PHONY: check-tk maybe-check-tk
34516maybe-check-tk:
34517@if tk
34518maybe-check-tk: check-tk
34519
34520check-tk:
34521 @: $(MAKE); $(unstage)
c52c6897
PB
34522 @r=`${PWD_COMMAND}`; export r; \
34523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 34524 $(HOST_EXPORTS) \
a90ef4bf
JM
34525 (cd $(HOST_SUBDIR)/tk && \
34526 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 34527
a90ef4bf
JM
34528@endif tk
34529
34530.PHONY: install-tk maybe-install-tk
34531maybe-install-tk:
34532@if tk
34533maybe-install-tk: install-tk
34534
34535install-tk: installdirs
34536 @: $(MAKE); $(unstage)
c52c6897
PB
34537 @r=`${PWD_COMMAND}`; export r; \
34538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 34539 $(HOST_EXPORTS) \
a90ef4bf
JM
34540 (cd $(HOST_SUBDIR)/tk && \
34541 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 34542
a90ef4bf
JM
34543@endif tk
34544
34545.PHONY: install-strip-tk maybe-install-strip-tk
34546maybe-install-strip-tk:
34547@if tk
34548maybe-install-strip-tk: install-strip-tk
34549
34550install-strip-tk: installdirs
34551 @: $(MAKE); $(unstage)
c52c6897
PB
34552 @r=`${PWD_COMMAND}`; export r; \
34553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 34554 $(HOST_EXPORTS) \
a90ef4bf
JM
34555 (cd $(HOST_SUBDIR)/tk && \
34556 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 34557
a90ef4bf 34558@endif tk
9b980aa1 34559
56a8fe78 34560# Other targets (info, dvi, pdf, etc.)
2a4cbe27 34561
a90ef4bf
JM
34562.PHONY: maybe-info-tk info-tk
34563maybe-info-tk:
34564@if tk
34565maybe-info-tk: info-tk
4fa63067 34566
a90ef4bf
JM
34567info-tk: \
34568 configure-tk
34569 @: $(MAKE); $(unstage)
34570 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
34571 r=`${PWD_COMMAND}`; export r; \
34572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34573 $(HOST_EXPORTS) \
b813574b 34574 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
34575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34576 done; \
22121df0 34577 echo "Doing info in tk"; \
a90ef4bf 34578 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
34579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34581 "RANLIB=$${RANLIB}" \
0c24b341 34582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
34583 info) \
34584 || exit 1
34585
a90ef4bf 34586@endif tk
6d389afc 34587
a90ef4bf
JM
34588.PHONY: maybe-dvi-tk dvi-tk
34589maybe-dvi-tk:
34590@if tk
34591maybe-dvi-tk: dvi-tk
6d389afc 34592
a90ef4bf
JM
34593dvi-tk: \
34594 configure-tk
34595 @: $(MAKE); $(unstage)
34596 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
34597 r=`${PWD_COMMAND}`; export r; \
34598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
34599 $(HOST_EXPORTS) \
34600 for flag in $(EXTRA_HOST_FLAGS) ; do \
34601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34602 done; \
22121df0 34603 echo "Doing dvi in tk"; \
a90ef4bf 34604 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
34605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34607 "RANLIB=$${RANLIB}" \
0c24b341 34608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 34609 dvi) \
2a4cbe27
NN
34610 || exit 1
34611
a90ef4bf 34612@endif tk
2a4cbe27 34613
a90ef4bf
JM
34614.PHONY: maybe-pdf-tk pdf-tk
34615maybe-pdf-tk:
34616@if tk
34617maybe-pdf-tk: pdf-tk
56a8fe78 34618
a90ef4bf
JM
34619pdf-tk: \
34620 configure-tk
34621 @: $(MAKE); $(unstage)
34622 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
34623 r=`${PWD_COMMAND}`; export r; \
34624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34625 $(HOST_EXPORTS) \
34626 for flag in $(EXTRA_HOST_FLAGS) ; do \
34627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34628 done; \
22121df0 34629 echo "Doing pdf in tk"; \
a90ef4bf 34630 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
34631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34633 "RANLIB=$${RANLIB}" \
0c24b341 34634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
34635 pdf) \
34636 || exit 1
34637
a90ef4bf 34638@endif tk
56a8fe78 34639
a90ef4bf
JM
34640.PHONY: maybe-html-tk html-tk
34641maybe-html-tk:
34642@if tk
34643maybe-html-tk: html-tk
2a4cbe27 34644
a90ef4bf
JM
34645html-tk: \
34646 configure-tk
34647 @: $(MAKE); $(unstage)
34648 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
34649 r=`${PWD_COMMAND}`; export r; \
34650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34651 $(HOST_EXPORTS) \
b813574b 34652 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
34653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34654 done; \
22121df0 34655 echo "Doing html in tk"; \
a90ef4bf 34656 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
34657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34659 "RANLIB=$${RANLIB}" \
0c24b341 34660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 34661 html) \
2a4cbe27
NN
34662 || exit 1
34663
a90ef4bf 34664@endif tk
2a4cbe27 34665
a90ef4bf
JM
34666.PHONY: maybe-TAGS-tk TAGS-tk
34667maybe-TAGS-tk:
34668@if tk
34669maybe-TAGS-tk: TAGS-tk
2a4cbe27 34670
a90ef4bf
JM
34671TAGS-tk: \
34672 configure-tk
34673 @: $(MAKE); $(unstage)
34674 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
34675 r=`${PWD_COMMAND}`; export r; \
34676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34677 $(HOST_EXPORTS) \
b813574b 34678 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
34679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34680 done; \
22121df0 34681 echo "Doing TAGS in tk"; \
a90ef4bf 34682 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
34683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34685 "RANLIB=$${RANLIB}" \
0c24b341 34686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34687 TAGS) \
2a4cbe27
NN
34688 || exit 1
34689
a90ef4bf 34690@endif tk
2a4cbe27 34691
a90ef4bf
JM
34692.PHONY: maybe-install-info-tk install-info-tk
34693maybe-install-info-tk:
34694@if tk
34695maybe-install-info-tk: install-info-tk
2a4cbe27 34696
a90ef4bf
JM
34697install-info-tk: \
34698 configure-tk \
34699 info-tk
34700 @: $(MAKE); $(unstage)
34701 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
34702 r=`${PWD_COMMAND}`; export r; \
34703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34704 $(HOST_EXPORTS) \
b813574b 34705 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
34706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34707 done; \
22121df0 34708 echo "Doing install-info in tk"; \
a90ef4bf 34709 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
34710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34712 "RANLIB=$${RANLIB}" \
0c24b341 34713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34714 install-info) \
2a4cbe27
NN
34715 || exit 1
34716
a90ef4bf 34717@endif tk
2a4cbe27 34718
a90ef4bf
JM
34719.PHONY: maybe-install-pdf-tk install-pdf-tk
34720maybe-install-pdf-tk:
34721@if tk
34722maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 34723
a90ef4bf
JM
34724install-pdf-tk: \
34725 configure-tk \
34726 pdf-tk
34727 @: $(MAKE); $(unstage)
34728 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
34729 r=`${PWD_COMMAND}`; export r; \
34730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34731 $(HOST_EXPORTS) \
34732 for flag in $(EXTRA_HOST_FLAGS) ; do \
34733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34734 done; \
22121df0 34735 echo "Doing install-pdf in tk"; \
a90ef4bf 34736 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
34737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34739 "RANLIB=$${RANLIB}" \
0c24b341 34740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
34741 install-pdf) \
34742 || exit 1
34743
a90ef4bf 34744@endif tk
a3ca38d2 34745
a90ef4bf
JM
34746.PHONY: maybe-install-html-tk install-html-tk
34747maybe-install-html-tk:
34748@if tk
34749maybe-install-html-tk: install-html-tk
108a6f8e 34750
a90ef4bf
JM
34751install-html-tk: \
34752 configure-tk \
34753 html-tk
34754 @: $(MAKE); $(unstage)
34755 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
34756 r=`${PWD_COMMAND}`; export r; \
34757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34758 $(HOST_EXPORTS) \
34759 for flag in $(EXTRA_HOST_FLAGS) ; do \
34760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34761 done; \
22121df0 34762 echo "Doing install-html in tk"; \
a90ef4bf 34763 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
34764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34766 "RANLIB=$${RANLIB}" \
0c24b341 34767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
34768 install-html) \
34769 || exit 1
34770
a90ef4bf 34771@endif tk
108a6f8e 34772
a90ef4bf
JM
34773.PHONY: maybe-installcheck-tk installcheck-tk
34774maybe-installcheck-tk:
34775@if tk
34776maybe-installcheck-tk: installcheck-tk
2a4cbe27 34777
a90ef4bf
JM
34778installcheck-tk: \
34779 configure-tk
34780 @: $(MAKE); $(unstage)
34781 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
34782 r=`${PWD_COMMAND}`; export r; \
34783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34784 $(HOST_EXPORTS) \
b813574b 34785 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
34786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34787 done; \
22121df0 34788 echo "Doing installcheck in tk"; \
a90ef4bf 34789 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
34790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34792 "RANLIB=$${RANLIB}" \
0c24b341 34793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34794 installcheck) \
2a4cbe27
NN
34795 || exit 1
34796
a90ef4bf 34797@endif tk
2a4cbe27 34798
a90ef4bf
JM
34799.PHONY: maybe-mostlyclean-tk mostlyclean-tk
34800maybe-mostlyclean-tk:
34801@if tk
34802maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 34803
a90ef4bf
JM
34804mostlyclean-tk:
34805 @: $(MAKE); $(unstage)
34806 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
34807 r=`${PWD_COMMAND}`; export r; \
34808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34809 $(HOST_EXPORTS) \
b813574b 34810 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
34811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34812 done; \
22121df0 34813 echo "Doing mostlyclean in tk"; \
a90ef4bf 34814 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
34815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34817 "RANLIB=$${RANLIB}" \
0c24b341 34818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34819 mostlyclean) \
2a4cbe27
NN
34820 || exit 1
34821
a90ef4bf 34822@endif tk
2a4cbe27 34823
a90ef4bf
JM
34824.PHONY: maybe-clean-tk clean-tk
34825maybe-clean-tk:
34826@if tk
34827maybe-clean-tk: clean-tk
2a4cbe27 34828
a90ef4bf
JM
34829clean-tk:
34830 @: $(MAKE); $(unstage)
34831 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
34832 r=`${PWD_COMMAND}`; export r; \
34833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34834 $(HOST_EXPORTS) \
b813574b 34835 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
34836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34837 done; \
22121df0 34838 echo "Doing clean in tk"; \
a90ef4bf 34839 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
34840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34842 "RANLIB=$${RANLIB}" \
0c24b341 34843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34844 clean) \
2a4cbe27
NN
34845 || exit 1
34846
a90ef4bf 34847@endif tk
2a4cbe27 34848
a90ef4bf
JM
34849.PHONY: maybe-distclean-tk distclean-tk
34850maybe-distclean-tk:
34851@if tk
34852maybe-distclean-tk: distclean-tk
2a4cbe27 34853
a90ef4bf
JM
34854distclean-tk:
34855 @: $(MAKE); $(unstage)
34856 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
34857 r=`${PWD_COMMAND}`; export r; \
34858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34859 $(HOST_EXPORTS) \
b813574b 34860 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
34861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34862 done; \
22121df0 34863 echo "Doing distclean in tk"; \
a90ef4bf 34864 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
34865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34867 "RANLIB=$${RANLIB}" \
0c24b341 34868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34869 distclean) \
2a4cbe27
NN
34870 || exit 1
34871
a90ef4bf 34872@endif tk
2a4cbe27 34873
a90ef4bf
JM
34874.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
34875maybe-maintainer-clean-tk:
34876@if tk
34877maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 34878
a90ef4bf
JM
34879maintainer-clean-tk:
34880 @: $(MAKE); $(unstage)
34881 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
34882 r=`${PWD_COMMAND}`; export r; \
34883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 34884 $(HOST_EXPORTS) \
b813574b 34885 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
34886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34887 done; \
22121df0 34888 echo "Doing maintainer-clean in tk"; \
a90ef4bf 34889 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
34890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34892 "RANLIB=$${RANLIB}" \
0c24b341 34893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 34894 maintainer-clean) \
2a4cbe27
NN
34895 || exit 1
34896
a90ef4bf 34897@endif tk
2a4cbe27 34898
2a4cbe27 34899
a7254363 34900
a90ef4bf
JM
34901.PHONY: configure-libtermcap maybe-configure-libtermcap
34902maybe-configure-libtermcap:
dc448a7b 34903@if gcc-bootstrap
a90ef4bf 34904configure-libtermcap: stage_current
dc448a7b 34905@endif gcc-bootstrap
a90ef4bf
JM
34906@if libtermcap
34907maybe-configure-libtermcap: configure-libtermcap
34908configure-libtermcap:
dc448a7b
TT
34909 @: $(MAKE); $(unstage)
34910 @r=`${PWD_COMMAND}`; export r; \
34911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 34912 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 34913 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 34914 $(HOST_EXPORTS) \
a90ef4bf
JM
34915 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
34916 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
34917 case $(srcdir) in \
34918 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 34919 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
34920 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34921 esac; \
1b6c0831
L
34922 module_srcdir=libtermcap; \
34923 $(SHELL) \
34924 $$s/$$module_srcdir/configure \
34925 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 34926 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 34927 --target=${target_alias} \
dc448a7b 34928 || exit 1
a90ef4bf 34929@endif libtermcap
dc448a7b
TT
34930
34931
34932
34933
34934
a90ef4bf
JM
34935.PHONY: all-libtermcap maybe-all-libtermcap
34936maybe-all-libtermcap:
dc448a7b 34937@if gcc-bootstrap
a90ef4bf 34938all-libtermcap: stage_current
dc448a7b 34939@endif gcc-bootstrap
a90ef4bf
JM
34940@if libtermcap
34941TARGET-libtermcap=all
34942maybe-all-libtermcap: all-libtermcap
34943all-libtermcap: configure-libtermcap
dc448a7b
TT
34944 @: $(MAKE); $(unstage)
34945 @r=`${PWD_COMMAND}`; export r; \
34946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 34947 $(HOST_EXPORTS) \
a90ef4bf 34948 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 34949 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
34950 $(TARGET-libtermcap))
34951@endif libtermcap
dc448a7b
TT
34952
34953
34954
34955
a90ef4bf
JM
34956.PHONY: check-libtermcap maybe-check-libtermcap
34957maybe-check-libtermcap:
34958@if libtermcap
34959maybe-check-libtermcap: check-libtermcap
dc448a7b 34960
a90ef4bf
JM
34961check-libtermcap:
34962
34963@endif libtermcap
34964
34965.PHONY: install-libtermcap maybe-install-libtermcap
34966maybe-install-libtermcap:
34967@if libtermcap
34968maybe-install-libtermcap: install-libtermcap
34969
34970install-libtermcap: installdirs
dc448a7b
TT
34971 @: $(MAKE); $(unstage)
34972 @r=`${PWD_COMMAND}`; export r; \
34973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34974 $(HOST_EXPORTS) \
a90ef4bf
JM
34975 (cd $(HOST_SUBDIR)/libtermcap && \
34976 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 34977
a90ef4bf 34978@endif libtermcap
dc448a7b 34979
a90ef4bf
JM
34980.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
34981maybe-install-strip-libtermcap:
34982@if libtermcap
34983maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 34984
a90ef4bf
JM
34985install-strip-libtermcap: installdirs
34986 @: $(MAKE); $(unstage)
34987 @r=`${PWD_COMMAND}`; export r; \
34988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34989 $(HOST_EXPORTS) \
34990 (cd $(HOST_SUBDIR)/libtermcap && \
34991 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 34992
a90ef4bf 34993@endif libtermcap
9b980aa1 34994
dc448a7b
TT
34995# Other targets (info, dvi, pdf, etc.)
34996
a90ef4bf
JM
34997.PHONY: maybe-info-libtermcap info-libtermcap
34998maybe-info-libtermcap:
34999@if libtermcap
35000maybe-info-libtermcap: info-libtermcap
dc448a7b 35001
a90ef4bf
JM
35002info-libtermcap: \
35003 configure-libtermcap
dc448a7b 35004 @: $(MAKE); $(unstage)
a90ef4bf 35005 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
35006 r=`${PWD_COMMAND}`; export r; \
35007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35008 $(HOST_EXPORTS) \
35009 for flag in $(EXTRA_HOST_FLAGS) ; do \
35010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35011 done; \
22121df0 35012 echo "Doing info in libtermcap"; \
a90ef4bf 35013 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
35014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35016 "RANLIB=$${RANLIB}" \
35017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35018 info) \
35019 || exit 1
35020
a90ef4bf 35021@endif libtermcap
dc448a7b 35022
a90ef4bf
JM
35023.PHONY: maybe-dvi-libtermcap dvi-libtermcap
35024maybe-dvi-libtermcap:
35025@if libtermcap
35026maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 35027
a90ef4bf
JM
35028dvi-libtermcap: \
35029 configure-libtermcap
dc448a7b 35030 @: $(MAKE); $(unstage)
a90ef4bf 35031 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
35032 r=`${PWD_COMMAND}`; export r; \
35033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35034 $(HOST_EXPORTS) \
35035 for flag in $(EXTRA_HOST_FLAGS) ; do \
35036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35037 done; \
22121df0 35038 echo "Doing dvi in libtermcap"; \
a90ef4bf 35039 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
35040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35042 "RANLIB=$${RANLIB}" \
35043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35044 dvi) \
35045 || exit 1
35046
a90ef4bf 35047@endif libtermcap
dc448a7b 35048
a90ef4bf
JM
35049.PHONY: maybe-pdf-libtermcap pdf-libtermcap
35050maybe-pdf-libtermcap:
35051@if libtermcap
35052maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 35053
a90ef4bf
JM
35054pdf-libtermcap: \
35055 configure-libtermcap
dc448a7b 35056 @: $(MAKE); $(unstage)
a90ef4bf 35057 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
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; \
22121df0 35064 echo "Doing pdf in libtermcap"; \
a90ef4bf 35065 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
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 pdf) \
35071 || exit 1
35072
a90ef4bf 35073@endif libtermcap
dc448a7b 35074
a90ef4bf
JM
35075.PHONY: maybe-html-libtermcap html-libtermcap
35076maybe-html-libtermcap:
35077@if libtermcap
35078maybe-html-libtermcap: html-libtermcap
dc448a7b 35079
a90ef4bf
JM
35080html-libtermcap: \
35081 configure-libtermcap
dc448a7b 35082 @: $(MAKE); $(unstage)
a90ef4bf 35083 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
35084 r=`${PWD_COMMAND}`; export r; \
35085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35086 $(HOST_EXPORTS) \
35087 for flag in $(EXTRA_HOST_FLAGS) ; do \
35088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35089 done; \
22121df0 35090 echo "Doing html in libtermcap"; \
a90ef4bf 35091 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
35092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35094 "RANLIB=$${RANLIB}" \
35095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35096 html) \
35097 || exit 1
35098
a90ef4bf 35099@endif libtermcap
dc448a7b 35100
a90ef4bf
JM
35101.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
35102maybe-TAGS-libtermcap:
35103@if libtermcap
35104maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 35105
a90ef4bf
JM
35106TAGS-libtermcap: \
35107 configure-libtermcap
dc448a7b 35108 @: $(MAKE); $(unstage)
a90ef4bf 35109 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
35110 r=`${PWD_COMMAND}`; export r; \
35111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35112 $(HOST_EXPORTS) \
35113 for flag in $(EXTRA_HOST_FLAGS) ; do \
35114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35115 done; \
22121df0 35116 echo "Doing TAGS in libtermcap"; \
a90ef4bf 35117 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
35118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35120 "RANLIB=$${RANLIB}" \
35121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35122 TAGS) \
35123 || exit 1
35124
a90ef4bf 35125@endif libtermcap
dc448a7b 35126
a90ef4bf
JM
35127.PHONY: maybe-install-info-libtermcap install-info-libtermcap
35128maybe-install-info-libtermcap:
35129@if libtermcap
35130maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 35131
a90ef4bf
JM
35132install-info-libtermcap: \
35133 configure-libtermcap \
35134 info-libtermcap
dc448a7b 35135 @: $(MAKE); $(unstage)
a90ef4bf 35136 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
35137 r=`${PWD_COMMAND}`; export r; \
35138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35139 $(HOST_EXPORTS) \
35140 for flag in $(EXTRA_HOST_FLAGS) ; do \
35141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35142 done; \
22121df0 35143 echo "Doing install-info in libtermcap"; \
a90ef4bf 35144 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
35145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35147 "RANLIB=$${RANLIB}" \
35148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 35149 install-info) \
dc448a7b
TT
35150 || exit 1
35151
a90ef4bf 35152@endif libtermcap
dc448a7b 35153
a90ef4bf
JM
35154.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
35155maybe-install-pdf-libtermcap:
35156@if libtermcap
35157maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 35158
a90ef4bf
JM
35159install-pdf-libtermcap: \
35160 configure-libtermcap \
35161 pdf-libtermcap
dc448a7b 35162 @: $(MAKE); $(unstage)
a90ef4bf 35163 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
35164 r=`${PWD_COMMAND}`; export r; \
35165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35166 $(HOST_EXPORTS) \
35167 for flag in $(EXTRA_HOST_FLAGS) ; do \
35168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35169 done; \
22121df0 35170 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 35171 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
35172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35174 "RANLIB=$${RANLIB}" \
35175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 35176 install-pdf) \
dc448a7b
TT
35177 || exit 1
35178
a90ef4bf 35179@endif libtermcap
dc448a7b 35180
a90ef4bf
JM
35181.PHONY: maybe-install-html-libtermcap install-html-libtermcap
35182maybe-install-html-libtermcap:
35183@if libtermcap
35184maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 35185
a90ef4bf
JM
35186install-html-libtermcap: \
35187 configure-libtermcap \
35188 html-libtermcap
dc448a7b 35189 @: $(MAKE); $(unstage)
a90ef4bf 35190 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
35191 r=`${PWD_COMMAND}`; export r; \
35192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35193 $(HOST_EXPORTS) \
35194 for flag in $(EXTRA_HOST_FLAGS) ; do \
35195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35196 done; \
22121df0 35197 echo "Doing install-html in libtermcap"; \
a90ef4bf 35198 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
35199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35201 "RANLIB=$${RANLIB}" \
35202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 35203 install-html) \
dc448a7b
TT
35204 || exit 1
35205
a90ef4bf 35206@endif libtermcap
dc448a7b 35207
a90ef4bf
JM
35208.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
35209maybe-installcheck-libtermcap:
35210@if libtermcap
35211maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 35212
a90ef4bf
JM
35213installcheck-libtermcap: \
35214 configure-libtermcap
dc448a7b 35215 @: $(MAKE); $(unstage)
a90ef4bf 35216 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
35217 r=`${PWD_COMMAND}`; export r; \
35218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35219 $(HOST_EXPORTS) \
35220 for flag in $(EXTRA_HOST_FLAGS) ; do \
35221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35222 done; \
22121df0 35223 echo "Doing installcheck in libtermcap"; \
a90ef4bf 35224 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
35225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35227 "RANLIB=$${RANLIB}" \
35228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 35229 installcheck) \
dc448a7b
TT
35230 || exit 1
35231
a90ef4bf 35232@endif libtermcap
dc448a7b 35233
a90ef4bf
JM
35234.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
35235maybe-mostlyclean-libtermcap:
35236@if libtermcap
35237maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 35238
a90ef4bf
JM
35239# libtermcap doesn't support mostlyclean.
35240mostlyclean-libtermcap:
dc448a7b 35241
a90ef4bf 35242@endif libtermcap
dc448a7b 35243
a90ef4bf
JM
35244.PHONY: maybe-clean-libtermcap clean-libtermcap
35245maybe-clean-libtermcap:
35246@if libtermcap
35247maybe-clean-libtermcap: clean-libtermcap
dc448a7b 35248
a90ef4bf
JM
35249# libtermcap doesn't support clean.
35250clean-libtermcap:
dc448a7b 35251
a90ef4bf
JM
35252@endif libtermcap
35253
35254.PHONY: maybe-distclean-libtermcap distclean-libtermcap
35255maybe-distclean-libtermcap:
35256@if libtermcap
35257maybe-distclean-libtermcap: distclean-libtermcap
35258
35259# libtermcap doesn't support distclean.
35260distclean-libtermcap:
35261
35262@endif libtermcap
35263
35264.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
35265maybe-maintainer-clean-libtermcap:
35266@if libtermcap
35267maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
35268
35269# libtermcap doesn't support maintainer-clean.
35270maintainer-clean-libtermcap:
35271
35272@endif libtermcap
35273
35274
35275
35276.PHONY: configure-utils maybe-configure-utils
35277maybe-configure-utils:
35278@if gcc-bootstrap
35279configure-utils: stage_current
35280@endif gcc-bootstrap
35281@if utils
35282maybe-configure-utils: configure-utils
35283configure-utils:
35284 @: $(MAKE); $(unstage)
c52c6897 35285 @r=`${PWD_COMMAND}`; export r; \
b40e3958 35286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 35287 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 35288 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 35289 $(HOST_EXPORTS) \
a90ef4bf
JM
35290 echo Configuring in $(HOST_SUBDIR)/utils; \
35291 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 35292 case $(srcdir) in \
b00612cc 35293 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 35294 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 35295 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 35296 esac; \
1b6c0831
L
35297 module_srcdir=utils; \
35298 $(SHELL) \
35299 $$s/$$module_srcdir/configure \
35300 --srcdir=$${topdir}/$$module_srcdir \
4b900473 35301 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 35302 --target=${target_alias} \
2a4cbe27 35303 || exit 1
a90ef4bf 35304@endif utils
2a4cbe27 35305
a7254363
PB
35306
35307
d545f33b
PB
35308
35309
a90ef4bf
JM
35310.PHONY: all-utils maybe-all-utils
35311maybe-all-utils:
4f0ef2d8 35312@if gcc-bootstrap
a90ef4bf 35313all-utils: stage_current
4f0ef2d8 35314@endif gcc-bootstrap
a90ef4bf
JM
35315@if utils
35316TARGET-utils=all
35317maybe-all-utils: all-utils
35318all-utils: configure-utils
0aed8855 35319 @: $(MAKE); $(unstage)
4fa63067
NN
35320 @r=`${PWD_COMMAND}`; export r; \
35321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 35322 $(HOST_EXPORTS) \
a90ef4bf 35323 (cd $(HOST_SUBDIR)/utils && \
b3676d82 35324 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
35325 $(TARGET-utils))
35326@endif utils
2a4cbe27 35327
a7254363 35328
d545f33b
PB
35329
35330
a90ef4bf
JM
35331.PHONY: check-utils maybe-check-utils
35332maybe-check-utils:
35333@if utils
35334maybe-check-utils: check-utils
2a4cbe27 35335
a90ef4bf 35336check-utils:
2a4cbe27 35337
a90ef4bf 35338@endif utils
2a4cbe27 35339
a90ef4bf
JM
35340.PHONY: install-utils maybe-install-utils
35341maybe-install-utils:
35342@if utils
35343maybe-install-utils: install-utils
2a4cbe27 35344
a90ef4bf 35345install-utils: installdirs
0aed8855 35346 @: $(MAKE); $(unstage)
4fa63067 35347 @r=`${PWD_COMMAND}`; export r; \
b40e3958 35348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35349 $(HOST_EXPORTS) \
a90ef4bf 35350 (cd $(HOST_SUBDIR)/utils && \
2da12f12 35351 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 35352
a90ef4bf 35353@endif utils
2a4cbe27 35354
a90ef4bf
JM
35355.PHONY: install-strip-utils maybe-install-strip-utils
35356maybe-install-strip-utils:
35357@if utils
35358maybe-install-strip-utils: install-strip-utils
9b980aa1 35359
a90ef4bf 35360install-strip-utils: installdirs
9b980aa1
RW
35361 @: $(MAKE); $(unstage)
35362 @r=`${PWD_COMMAND}`; export r; \
35363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35364 $(HOST_EXPORTS) \
a90ef4bf 35365 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
35366 $(MAKE) $(FLAGS_TO_PASS) install-strip)
35367
a90ef4bf 35368@endif utils
9b980aa1 35369
56a8fe78 35370# Other targets (info, dvi, pdf, etc.)
2a4cbe27 35371
a90ef4bf
JM
35372.PHONY: maybe-info-utils info-utils
35373maybe-info-utils:
35374@if utils
35375maybe-info-utils: info-utils
4fa63067 35376
a90ef4bf
JM
35377info-utils: \
35378 configure-utils
0aed8855 35379 @: $(MAKE); $(unstage)
a90ef4bf 35380 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
35381 r=`${PWD_COMMAND}`; export r; \
35382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35383 $(HOST_EXPORTS) \
b813574b 35384 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35386 done; \
22121df0 35387 echo "Doing info in utils"; \
a90ef4bf 35388 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
35389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35391 "RANLIB=$${RANLIB}" \
0c24b341 35392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35393 info) \
2a4cbe27
NN
35394 || exit 1
35395
a90ef4bf 35396@endif utils
2a4cbe27 35397
a90ef4bf
JM
35398.PHONY: maybe-dvi-utils dvi-utils
35399maybe-dvi-utils:
35400@if utils
35401maybe-dvi-utils: dvi-utils
2a4cbe27 35402
a90ef4bf
JM
35403dvi-utils: \
35404 configure-utils
0aed8855 35405 @: $(MAKE); $(unstage)
a90ef4bf 35406 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
35407 r=`${PWD_COMMAND}`; export r; \
35408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35409 $(HOST_EXPORTS) \
b813574b 35410 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35412 done; \
22121df0 35413 echo "Doing dvi in utils"; \
a90ef4bf 35414 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
35415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35417 "RANLIB=$${RANLIB}" \
0c24b341 35418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35419 dvi) \
2a4cbe27
NN
35420 || exit 1
35421
a90ef4bf 35422@endif utils
2a4cbe27 35423
a90ef4bf
JM
35424.PHONY: maybe-pdf-utils pdf-utils
35425maybe-pdf-utils:
35426@if utils
35427maybe-pdf-utils: pdf-utils
56a8fe78 35428
a90ef4bf
JM
35429pdf-utils: \
35430 configure-utils
56a8fe78 35431 @: $(MAKE); $(unstage)
a90ef4bf 35432 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
35433 r=`${PWD_COMMAND}`; export r; \
35434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35435 $(HOST_EXPORTS) \
35436 for flag in $(EXTRA_HOST_FLAGS) ; do \
35437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35438 done; \
22121df0 35439 echo "Doing pdf in utils"; \
a90ef4bf 35440 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
35441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35443 "RANLIB=$${RANLIB}" \
0c24b341 35444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
35445 pdf) \
35446 || exit 1
35447
a90ef4bf 35448@endif utils
56a8fe78 35449
a90ef4bf
JM
35450.PHONY: maybe-html-utils html-utils
35451maybe-html-utils:
35452@if utils
35453maybe-html-utils: html-utils
6d389afc 35454
a90ef4bf
JM
35455html-utils: \
35456 configure-utils
0aed8855 35457 @: $(MAKE); $(unstage)
a90ef4bf 35458 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
35459 r=`${PWD_COMMAND}`; export r; \
35460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
35461 $(HOST_EXPORTS) \
35462 for flag in $(EXTRA_HOST_FLAGS) ; do \
35463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35464 done; \
22121df0 35465 echo "Doing html in utils"; \
a90ef4bf 35466 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
35467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35469 "RANLIB=$${RANLIB}" \
0c24b341 35470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
35471 html) \
35472 || exit 1
35473
a90ef4bf 35474@endif utils
6d389afc 35475
a90ef4bf
JM
35476.PHONY: maybe-TAGS-utils TAGS-utils
35477maybe-TAGS-utils:
35478@if utils
35479maybe-TAGS-utils: TAGS-utils
2a4cbe27 35480
a90ef4bf
JM
35481TAGS-utils: \
35482 configure-utils
0aed8855 35483 @: $(MAKE); $(unstage)
a90ef4bf 35484 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
35485 r=`${PWD_COMMAND}`; export r; \
35486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35487 $(HOST_EXPORTS) \
b813574b 35488 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35490 done; \
22121df0 35491 echo "Doing TAGS in utils"; \
a90ef4bf 35492 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
35493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35495 "RANLIB=$${RANLIB}" \
0c24b341 35496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35497 TAGS) \
2a4cbe27
NN
35498 || exit 1
35499
a90ef4bf 35500@endif utils
2a4cbe27 35501
a90ef4bf
JM
35502.PHONY: maybe-install-info-utils install-info-utils
35503maybe-install-info-utils:
35504@if utils
35505maybe-install-info-utils: install-info-utils
2a4cbe27 35506
a90ef4bf
JM
35507install-info-utils: \
35508 configure-utils \
35509 info-utils
0aed8855 35510 @: $(MAKE); $(unstage)
a90ef4bf 35511 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
35512 r=`${PWD_COMMAND}`; export r; \
35513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35514 $(HOST_EXPORTS) \
b813574b 35515 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35517 done; \
22121df0 35518 echo "Doing install-info in utils"; \
a90ef4bf 35519 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
35520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35522 "RANLIB=$${RANLIB}" \
0c24b341 35523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35524 install-info) \
2a4cbe27
NN
35525 || exit 1
35526
a90ef4bf 35527@endif utils
2a4cbe27 35528
a90ef4bf
JM
35529.PHONY: maybe-install-pdf-utils install-pdf-utils
35530maybe-install-pdf-utils:
35531@if utils
35532maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 35533
a90ef4bf
JM
35534install-pdf-utils: \
35535 configure-utils \
35536 pdf-utils
a3ca38d2 35537 @: $(MAKE); $(unstage)
a90ef4bf 35538 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
35539 r=`${PWD_COMMAND}`; export r; \
35540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35541 $(HOST_EXPORTS) \
35542 for flag in $(EXTRA_HOST_FLAGS) ; do \
35543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35544 done; \
22121df0 35545 echo "Doing install-pdf in utils"; \
a90ef4bf 35546 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
35547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35549 "RANLIB=$${RANLIB}" \
0c24b341 35550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
35551 install-pdf) \
35552 || exit 1
35553
a90ef4bf 35554@endif utils
a3ca38d2 35555
a90ef4bf
JM
35556.PHONY: maybe-install-html-utils install-html-utils
35557maybe-install-html-utils:
35558@if utils
35559maybe-install-html-utils: install-html-utils
108a6f8e 35560
a90ef4bf
JM
35561install-html-utils: \
35562 configure-utils \
35563 html-utils
108a6f8e 35564 @: $(MAKE); $(unstage)
a90ef4bf 35565 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
35566 r=`${PWD_COMMAND}`; export r; \
35567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35568 $(HOST_EXPORTS) \
35569 for flag in $(EXTRA_HOST_FLAGS) ; do \
35570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35571 done; \
22121df0 35572 echo "Doing install-html in utils"; \
a90ef4bf 35573 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
35574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35576 "RANLIB=$${RANLIB}" \
0c24b341 35577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
35578 install-html) \
35579 || exit 1
35580
a90ef4bf 35581@endif utils
108a6f8e 35582
a90ef4bf
JM
35583.PHONY: maybe-installcheck-utils installcheck-utils
35584maybe-installcheck-utils:
35585@if utils
35586maybe-installcheck-utils: installcheck-utils
2a4cbe27 35587
a90ef4bf
JM
35588installcheck-utils: \
35589 configure-utils
0aed8855 35590 @: $(MAKE); $(unstage)
a90ef4bf 35591 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
35592 r=`${PWD_COMMAND}`; export r; \
35593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35594 $(HOST_EXPORTS) \
b813574b 35595 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35597 done; \
22121df0 35598 echo "Doing installcheck in utils"; \
a90ef4bf 35599 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
35600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35602 "RANLIB=$${RANLIB}" \
0c24b341 35603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35604 installcheck) \
2a4cbe27
NN
35605 || exit 1
35606
a90ef4bf 35607@endif utils
2a4cbe27 35608
a90ef4bf
JM
35609.PHONY: maybe-mostlyclean-utils mostlyclean-utils
35610maybe-mostlyclean-utils:
35611@if utils
35612maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 35613
a90ef4bf 35614mostlyclean-utils:
0aed8855 35615 @: $(MAKE); $(unstage)
a90ef4bf 35616 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
35617 r=`${PWD_COMMAND}`; export r; \
35618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35619 $(HOST_EXPORTS) \
b813574b 35620 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35622 done; \
22121df0 35623 echo "Doing mostlyclean in utils"; \
a90ef4bf 35624 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
35625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35627 "RANLIB=$${RANLIB}" \
0c24b341 35628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35629 mostlyclean) \
2a4cbe27
NN
35630 || exit 1
35631
a90ef4bf 35632@endif utils
2a4cbe27 35633
a90ef4bf
JM
35634.PHONY: maybe-clean-utils clean-utils
35635maybe-clean-utils:
35636@if utils
35637maybe-clean-utils: clean-utils
2a4cbe27 35638
a90ef4bf 35639clean-utils:
0aed8855 35640 @: $(MAKE); $(unstage)
a90ef4bf 35641 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
35642 r=`${PWD_COMMAND}`; export r; \
35643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35644 $(HOST_EXPORTS) \
b813574b 35645 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35647 done; \
22121df0 35648 echo "Doing clean in utils"; \
a90ef4bf 35649 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
35650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35652 "RANLIB=$${RANLIB}" \
0c24b341 35653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35654 clean) \
2a4cbe27
NN
35655 || exit 1
35656
a90ef4bf 35657@endif utils
2a4cbe27 35658
a90ef4bf
JM
35659.PHONY: maybe-distclean-utils distclean-utils
35660maybe-distclean-utils:
35661@if utils
35662maybe-distclean-utils: distclean-utils
2a4cbe27 35663
a90ef4bf 35664distclean-utils:
0aed8855 35665 @: $(MAKE); $(unstage)
a90ef4bf 35666 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
35667 r=`${PWD_COMMAND}`; export r; \
35668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35669 $(HOST_EXPORTS) \
b813574b 35670 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35672 done; \
22121df0 35673 echo "Doing distclean in utils"; \
a90ef4bf 35674 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
35675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35677 "RANLIB=$${RANLIB}" \
0c24b341 35678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35679 distclean) \
2a4cbe27
NN
35680 || exit 1
35681
a90ef4bf 35682@endif utils
2a4cbe27 35683
a90ef4bf
JM
35684.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
35685maybe-maintainer-clean-utils:
35686@if utils
35687maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 35688
a90ef4bf 35689maintainer-clean-utils:
0aed8855 35690 @: $(MAKE); $(unstage)
a90ef4bf 35691 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
35692 r=`${PWD_COMMAND}`; export r; \
35693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35694 $(HOST_EXPORTS) \
b813574b 35695 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35697 done; \
22121df0 35698 echo "Doing maintainer-clean in utils"; \
a90ef4bf 35699 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
35700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35702 "RANLIB=$${RANLIB}" \
0c24b341 35703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35704 maintainer-clean) \
2a4cbe27
NN
35705 || exit 1
35706
a90ef4bf 35707@endif utils
2a4cbe27 35708
2a4cbe27 35709
a7254363 35710
a90ef4bf
JM
35711.PHONY: configure-gnattools maybe-configure-gnattools
35712maybe-configure-gnattools:
4f0ef2d8 35713@if gcc-bootstrap
a90ef4bf 35714configure-gnattools: stage_current
4f0ef2d8 35715@endif gcc-bootstrap
a90ef4bf
JM
35716@if gnattools
35717maybe-configure-gnattools: configure-gnattools
35718configure-gnattools:
0aed8855 35719 @: $(MAKE); $(unstage)
c52c6897 35720 @r=`${PWD_COMMAND}`; export r; \
b40e3958 35721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 35722 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 35723 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 35724 $(HOST_EXPORTS) \
a90ef4bf
JM
35725 echo Configuring in $(HOST_SUBDIR)/gnattools; \
35726 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 35727 case $(srcdir) in \
b00612cc 35728 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 35729 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 35730 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 35731 esac; \
1b6c0831
L
35732 module_srcdir=gnattools; \
35733 $(SHELL) \
35734 $$s/$$module_srcdir/configure \
35735 --srcdir=$${topdir}/$$module_srcdir \
4b900473 35736 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 35737 --target=${target_alias} \
2a4cbe27 35738 || exit 1
a90ef4bf 35739@endif gnattools
2a4cbe27 35740
a7254363
PB
35741
35742
d545f33b
PB
35743
35744
a90ef4bf
JM
35745.PHONY: all-gnattools maybe-all-gnattools
35746maybe-all-gnattools:
4f0ef2d8 35747@if gcc-bootstrap
a90ef4bf 35748all-gnattools: stage_current
4f0ef2d8 35749@endif gcc-bootstrap
a90ef4bf
JM
35750@if gnattools
35751TARGET-gnattools=all
35752maybe-all-gnattools: all-gnattools
35753all-gnattools: configure-gnattools
0aed8855 35754 @: $(MAKE); $(unstage)
4fa63067
NN
35755 @r=`${PWD_COMMAND}`; export r; \
35756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 35757 $(HOST_EXPORTS) \
a90ef4bf 35758 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 35759 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
35760 $(TARGET-gnattools))
35761@endif gnattools
4fa63067 35762
a7254363 35763
d545f33b
PB
35764
35765
a90ef4bf
JM
35766.PHONY: check-gnattools maybe-check-gnattools
35767maybe-check-gnattools:
35768@if gnattools
35769maybe-check-gnattools: check-gnattools
2a4cbe27 35770
a90ef4bf 35771check-gnattools:
0aed8855 35772 @: $(MAKE); $(unstage)
4fa63067
NN
35773 @r=`${PWD_COMMAND}`; export r; \
35774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 35775 $(HOST_EXPORTS) \
a90ef4bf 35776 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 35777 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 35778
a90ef4bf 35779@endif gnattools
4fa63067 35780
a90ef4bf
JM
35781.PHONY: install-gnattools maybe-install-gnattools
35782maybe-install-gnattools:
35783@if gnattools
35784maybe-install-gnattools: install-gnattools
4fa63067 35785
a90ef4bf 35786install-gnattools: installdirs
0aed8855 35787 @: $(MAKE); $(unstage)
4fa63067
NN
35788 @r=`${PWD_COMMAND}`; export r; \
35789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35790 $(HOST_EXPORTS) \
a90ef4bf 35791 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 35792 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 35793
a90ef4bf 35794@endif gnattools
4fa63067 35795
a90ef4bf
JM
35796.PHONY: install-strip-gnattools maybe-install-strip-gnattools
35797maybe-install-strip-gnattools:
35798@if gnattools
35799maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 35800
a90ef4bf 35801install-strip-gnattools: installdirs
9b980aa1
RW
35802 @: $(MAKE); $(unstage)
35803 @r=`${PWD_COMMAND}`; export r; \
35804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35805 $(HOST_EXPORTS) \
a90ef4bf 35806 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
35807 $(MAKE) $(FLAGS_TO_PASS) install-strip)
35808
a90ef4bf 35809@endif gnattools
9b980aa1 35810
56a8fe78 35811# Other targets (info, dvi, pdf, etc.)
4fa63067 35812
a90ef4bf
JM
35813.PHONY: maybe-info-gnattools info-gnattools
35814maybe-info-gnattools:
35815@if gnattools
35816maybe-info-gnattools: info-gnattools
4fa63067 35817
a90ef4bf
JM
35818info-gnattools: \
35819 configure-gnattools
0aed8855 35820 @: $(MAKE); $(unstage)
a90ef4bf 35821 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
35822 r=`${PWD_COMMAND}`; export r; \
35823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35824 $(HOST_EXPORTS) \
b813574b 35825 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35827 done; \
22121df0 35828 echo "Doing info in gnattools"; \
a90ef4bf 35829 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
35830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35832 "RANLIB=$${RANLIB}" \
0c24b341 35833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35834 info) \
2a4cbe27
NN
35835 || exit 1
35836
a90ef4bf 35837@endif gnattools
2a4cbe27 35838
a90ef4bf
JM
35839.PHONY: maybe-dvi-gnattools dvi-gnattools
35840maybe-dvi-gnattools:
35841@if gnattools
35842maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 35843
a90ef4bf
JM
35844dvi-gnattools: \
35845 configure-gnattools
0aed8855 35846 @: $(MAKE); $(unstage)
a90ef4bf 35847 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
35848 r=`${PWD_COMMAND}`; export r; \
35849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35850 $(HOST_EXPORTS) \
b813574b 35851 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35853 done; \
22121df0 35854 echo "Doing dvi in gnattools"; \
a90ef4bf 35855 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
35856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35858 "RANLIB=$${RANLIB}" \
0c24b341 35859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35860 dvi) \
2a4cbe27
NN
35861 || exit 1
35862
a90ef4bf 35863@endif gnattools
2a4cbe27 35864
a90ef4bf
JM
35865.PHONY: maybe-pdf-gnattools pdf-gnattools
35866maybe-pdf-gnattools:
35867@if gnattools
35868maybe-pdf-gnattools: pdf-gnattools
56a8fe78 35869
a90ef4bf
JM
35870pdf-gnattools: \
35871 configure-gnattools
56a8fe78 35872 @: $(MAKE); $(unstage)
a90ef4bf 35873 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
35874 r=`${PWD_COMMAND}`; export r; \
35875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35876 $(HOST_EXPORTS) \
35877 for flag in $(EXTRA_HOST_FLAGS) ; do \
35878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35879 done; \
22121df0 35880 echo "Doing pdf in gnattools"; \
a90ef4bf 35881 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
35882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35884 "RANLIB=$${RANLIB}" \
0c24b341 35885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
35886 pdf) \
35887 || exit 1
35888
a90ef4bf 35889@endif gnattools
56a8fe78 35890
a90ef4bf
JM
35891.PHONY: maybe-html-gnattools html-gnattools
35892maybe-html-gnattools:
35893@if gnattools
35894maybe-html-gnattools: html-gnattools
6d389afc 35895
a90ef4bf
JM
35896html-gnattools: \
35897 configure-gnattools
0aed8855 35898 @: $(MAKE); $(unstage)
a90ef4bf 35899 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
35900 r=`${PWD_COMMAND}`; export r; \
35901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
35902 $(HOST_EXPORTS) \
35903 for flag in $(EXTRA_HOST_FLAGS) ; do \
35904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35905 done; \
22121df0 35906 echo "Doing html in gnattools"; \
a90ef4bf 35907 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
35908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35910 "RANLIB=$${RANLIB}" \
0c24b341 35911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
35912 html) \
35913 || exit 1
35914
a90ef4bf 35915@endif gnattools
6d389afc 35916
a90ef4bf
JM
35917.PHONY: maybe-TAGS-gnattools TAGS-gnattools
35918maybe-TAGS-gnattools:
35919@if gnattools
35920maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 35921
a90ef4bf
JM
35922TAGS-gnattools: \
35923 configure-gnattools
0aed8855 35924 @: $(MAKE); $(unstage)
a90ef4bf 35925 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
35926 r=`${PWD_COMMAND}`; export r; \
35927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35928 $(HOST_EXPORTS) \
b813574b 35929 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35931 done; \
22121df0 35932 echo "Doing TAGS in gnattools"; \
a90ef4bf 35933 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
35934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35936 "RANLIB=$${RANLIB}" \
0c24b341 35937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35938 TAGS) \
2a4cbe27
NN
35939 || exit 1
35940
a90ef4bf 35941@endif gnattools
2a4cbe27 35942
a90ef4bf
JM
35943.PHONY: maybe-install-info-gnattools install-info-gnattools
35944maybe-install-info-gnattools:
35945@if gnattools
35946maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 35947
a90ef4bf
JM
35948install-info-gnattools: \
35949 configure-gnattools \
35950 info-gnattools
0aed8855 35951 @: $(MAKE); $(unstage)
a90ef4bf 35952 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
35953 r=`${PWD_COMMAND}`; export r; \
35954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35955 $(HOST_EXPORTS) \
b813574b 35956 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
35957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35958 done; \
22121df0 35959 echo "Doing install-info in gnattools"; \
a90ef4bf 35960 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
35961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35963 "RANLIB=$${RANLIB}" \
0c24b341 35964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 35965 install-info) \
2a4cbe27
NN
35966 || exit 1
35967
a90ef4bf 35968@endif gnattools
2a4cbe27 35969
a90ef4bf
JM
35970.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
35971maybe-install-pdf-gnattools:
35972@if gnattools
35973maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 35974
a90ef4bf
JM
35975install-pdf-gnattools: \
35976 configure-gnattools \
35977 pdf-gnattools
a3ca38d2 35978 @: $(MAKE); $(unstage)
a90ef4bf 35979 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
35980 r=`${PWD_COMMAND}`; export r; \
35981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35982 $(HOST_EXPORTS) \
35983 for flag in $(EXTRA_HOST_FLAGS) ; do \
35984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35985 done; \
22121df0 35986 echo "Doing install-pdf in gnattools"; \
a90ef4bf 35987 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
35988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35990 "RANLIB=$${RANLIB}" \
0c24b341 35991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
35992 install-pdf) \
35993 || exit 1
35994
a90ef4bf 35995@endif gnattools
a3ca38d2 35996
a90ef4bf
JM
35997.PHONY: maybe-install-html-gnattools install-html-gnattools
35998maybe-install-html-gnattools:
35999@if gnattools
36000maybe-install-html-gnattools: install-html-gnattools
108a6f8e 36001
a90ef4bf
JM
36002install-html-gnattools: \
36003 configure-gnattools \
36004 html-gnattools
108a6f8e 36005 @: $(MAKE); $(unstage)
a90ef4bf 36006 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
36007 r=`${PWD_COMMAND}`; export r; \
36008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36009 $(HOST_EXPORTS) \
36010 for flag in $(EXTRA_HOST_FLAGS) ; do \
36011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36012 done; \
22121df0 36013 echo "Doing install-html in gnattools"; \
a90ef4bf 36014 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
36015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36017 "RANLIB=$${RANLIB}" \
0c24b341 36018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
36019 install-html) \
36020 || exit 1
36021
a90ef4bf 36022@endif gnattools
108a6f8e 36023
a90ef4bf
JM
36024.PHONY: maybe-installcheck-gnattools installcheck-gnattools
36025maybe-installcheck-gnattools:
36026@if gnattools
36027maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 36028
a90ef4bf
JM
36029installcheck-gnattools: \
36030 configure-gnattools
0aed8855 36031 @: $(MAKE); $(unstage)
a90ef4bf 36032 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
36033 r=`${PWD_COMMAND}`; export r; \
36034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36035 $(HOST_EXPORTS) \
b813574b 36036 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
36037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36038 done; \
22121df0 36039 echo "Doing installcheck in gnattools"; \
a90ef4bf 36040 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
36041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36043 "RANLIB=$${RANLIB}" \
0c24b341 36044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 36045 installcheck) \
2a4cbe27
NN
36046 || exit 1
36047
a90ef4bf 36048@endif gnattools
2a4cbe27 36049
a90ef4bf
JM
36050.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
36051maybe-mostlyclean-gnattools:
36052@if gnattools
36053maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 36054
a90ef4bf 36055mostlyclean-gnattools:
0aed8855 36056 @: $(MAKE); $(unstage)
a90ef4bf 36057 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
36058 r=`${PWD_COMMAND}`; export r; \
36059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36060 $(HOST_EXPORTS) \
b813574b 36061 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
36062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36063 done; \
22121df0 36064 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 36065 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
36066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36068 "RANLIB=$${RANLIB}" \
0c24b341 36069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 36070 mostlyclean) \
2a4cbe27
NN
36071 || exit 1
36072
a90ef4bf 36073@endif gnattools
2a4cbe27 36074
a90ef4bf
JM
36075.PHONY: maybe-clean-gnattools clean-gnattools
36076maybe-clean-gnattools:
36077@if gnattools
36078maybe-clean-gnattools: clean-gnattools
2a4cbe27 36079
a90ef4bf 36080clean-gnattools:
0aed8855 36081 @: $(MAKE); $(unstage)
a90ef4bf 36082 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
36083 r=`${PWD_COMMAND}`; export r; \
36084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36085 $(HOST_EXPORTS) \
b813574b 36086 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
36087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36088 done; \
22121df0 36089 echo "Doing clean in gnattools"; \
a90ef4bf 36090 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
36091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36093 "RANLIB=$${RANLIB}" \
0c24b341 36094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 36095 clean) \
2a4cbe27
NN
36096 || exit 1
36097
a90ef4bf 36098@endif gnattools
2a4cbe27 36099
a90ef4bf
JM
36100.PHONY: maybe-distclean-gnattools distclean-gnattools
36101maybe-distclean-gnattools:
36102@if gnattools
36103maybe-distclean-gnattools: distclean-gnattools
a2592b1b 36104
a90ef4bf 36105distclean-gnattools:
0aed8855 36106 @: $(MAKE); $(unstage)
a90ef4bf 36107 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
36108 r=`${PWD_COMMAND}`; export r; \
36109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36110 $(HOST_EXPORTS) \
b813574b 36111 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
36112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36113 done; \
22121df0 36114 echo "Doing distclean in gnattools"; \
a90ef4bf 36115 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
36116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36118 "RANLIB=$${RANLIB}" \
0c24b341 36119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 36120 distclean) \
a2592b1b
DD
36121 || exit 1
36122
a90ef4bf 36123@endif gnattools
a2592b1b 36124
a90ef4bf
JM
36125.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
36126maybe-maintainer-clean-gnattools:
36127@if gnattools
36128maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 36129
a90ef4bf 36130maintainer-clean-gnattools:
0aed8855 36131 @: $(MAKE); $(unstage)
a90ef4bf 36132 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 36133 r=`${PWD_COMMAND}`; export r; \
b40e3958 36134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36135 $(HOST_EXPORTS) \
b813574b 36136 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
36137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36138 done; \
22121df0 36139 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 36140 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
36141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36143 "RANLIB=$${RANLIB}" \
0c24b341 36144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 36145 maintainer-clean) \
4fa63067 36146 || exit 1
252b5132 36147
a90ef4bf 36148@endif gnattools
252b5132 36149
252b5132 36150
a7254363 36151
a90ef4bf
JM
36152.PHONY: configure-lto-plugin maybe-configure-lto-plugin
36153maybe-configure-lto-plugin:
4f0ef2d8 36154@if gcc-bootstrap
a90ef4bf 36155configure-lto-plugin: stage_current
4f0ef2d8 36156@endif gcc-bootstrap
a90ef4bf
JM
36157@if lto-plugin
36158maybe-configure-lto-plugin: configure-lto-plugin
36159configure-lto-plugin:
c52c6897 36160 @r=`${PWD_COMMAND}`; export r; \
b813574b 36161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 36162 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 36163 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 36164 $(HOST_EXPORTS) \
a90ef4bf
JM
36165 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
36166 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 36167 case $(srcdir) in \
b00612cc 36168 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 36169 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 36170 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 36171 esac; \
1b6c0831
L
36172 module_srcdir=lto-plugin; \
36173 $(SHELL) \
36174 $$s/$$module_srcdir/configure \
36175 --srcdir=$${topdir}/$$module_srcdir \
4b900473 36176 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 36177 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 36178 || exit 1
a90ef4bf 36179@endif lto-plugin
a7254363 36180
d545f33b
PB
36181
36182
a90ef4bf
JM
36183.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
36184maybe-configure-stage1-lto-plugin:
36185@if lto-plugin-bootstrap
36186maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
36187configure-stage1-lto-plugin:
36188 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36189 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
36190 @r=`${PWD_COMMAND}`; export r; \
36191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36192 TFLAGS="$(STAGE1_TFLAGS)"; \
36193 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
36194 $(HOST_EXPORTS) \
36195 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
36196 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
36197 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
36198 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
36199 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
36200 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
36201 case $(srcdir) in \
36202 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36203 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
36204 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36205 esac; \
1b6c0831
L
36206 module_srcdir=lto-plugin; \
36207 $(SHELL) $$s/$$module_srcdir/configure \
36208 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 36209 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
36210 --target=${target_alias} \
36211 \
a90ef4bf 36212 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 36213 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 36214@endif lto-plugin-bootstrap
252b5132 36215
a90ef4bf
JM
36216.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
36217maybe-configure-stage2-lto-plugin:
36218@if lto-plugin-bootstrap
36219maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
36220configure-stage2-lto-plugin:
36221 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36222 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
36223 @r=`${PWD_COMMAND}`; export r; \
36224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36225 TFLAGS="$(STAGE2_TFLAGS)"; \
36226 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 36227 $(HOST_EXPORTS) \
a90ef4bf
JM
36228 $(POSTSTAGE1_HOST_EXPORTS) \
36229 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
36230 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
36231 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
36232 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
36233 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
36234 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
36235 case $(srcdir) in \
36236 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36237 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
36238 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36239 esac; \
1b6c0831
L
36240 module_srcdir=lto-plugin; \
36241 $(SHELL) $$s/$$module_srcdir/configure \
36242 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 36243 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 36244 --target=${target_alias} \
22121df0 36245 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 36246 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 36247 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 36248@endif lto-plugin-bootstrap
4fa63067 36249
a90ef4bf
JM
36250.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
36251maybe-configure-stage3-lto-plugin:
36252@if lto-plugin-bootstrap
36253maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
36254configure-stage3-lto-plugin:
36255 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36256 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
36257 @r=`${PWD_COMMAND}`; export r; \
36258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36259 TFLAGS="$(STAGE3_TFLAGS)"; \
36260 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 36261 $(HOST_EXPORTS) \
a90ef4bf
JM
36262 $(POSTSTAGE1_HOST_EXPORTS) \
36263 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
36264 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
36265 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
36266 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
36267 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
36268 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
36269 case $(srcdir) in \
36270 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36271 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
36272 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36273 esac; \
1b6c0831
L
36274 module_srcdir=lto-plugin; \
36275 $(SHELL) $$s/$$module_srcdir/configure \
36276 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 36277 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 36278 --target=${target_alias} \
22121df0 36279 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 36280 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 36281 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 36282@endif lto-plugin-bootstrap
9b980aa1 36283
a90ef4bf
JM
36284.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
36285maybe-configure-stage4-lto-plugin:
36286@if lto-plugin-bootstrap
36287maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
36288configure-stage4-lto-plugin:
36289 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36290 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
36291 @r=`${PWD_COMMAND}`; export r; \
36292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36293 TFLAGS="$(STAGE4_TFLAGS)"; \
36294 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 36295 $(HOST_EXPORTS) \
a90ef4bf
JM
36296 $(POSTSTAGE1_HOST_EXPORTS) \
36297 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
36298 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
36299 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
36300 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
36301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
36302 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
36303 case $(srcdir) in \
36304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36305 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
36306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36307 esac; \
1b6c0831
L
36308 module_srcdir=lto-plugin; \
36309 $(SHELL) $$s/$$module_srcdir/configure \
36310 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 36311 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 36312 --target=${target_alias} \
22121df0 36313 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 36314 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 36315 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 36316@endif lto-plugin-bootstrap
4fa63067 36317
a90ef4bf
JM
36318.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
36319maybe-configure-stageprofile-lto-plugin:
36320@if lto-plugin-bootstrap
36321maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
36322configure-stageprofile-lto-plugin:
36323 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36324 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
36325 @r=`${PWD_COMMAND}`; export r; \
4fa63067 36326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36327 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36328 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 36329 $(HOST_EXPORTS) \
a90ef4bf
JM
36330 $(POSTSTAGE1_HOST_EXPORTS) \
36331 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
36332 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
36333 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
36334 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
36335 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
36336 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
36337 case $(srcdir) in \
36338 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36339 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
36340 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36341 esac; \
1b6c0831
L
36342 module_srcdir=lto-plugin; \
36343 $(SHELL) $$s/$$module_srcdir/configure \
36344 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 36345 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 36346 --target=${target_alias} \
22121df0 36347 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 36348 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 36349 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 36350@endif lto-plugin-bootstrap
4fa63067 36351
f948b2de
NC
36352.PHONY: configure-stagetrain-lto-plugin maybe-configure-stagetrain-lto-plugin
36353maybe-configure-stagetrain-lto-plugin:
36354@if lto-plugin-bootstrap
36355maybe-configure-stagetrain-lto-plugin: configure-stagetrain-lto-plugin
36356configure-stagetrain-lto-plugin:
36357 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
36358 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
36359 @r=`${PWD_COMMAND}`; export r; \
36360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36361 TFLAGS="$(STAGEtrain_TFLAGS)"; \
36362 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
36363 $(HOST_EXPORTS) \
36364 $(POSTSTAGE1_HOST_EXPORTS) \
36365 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
36366 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
36367 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
36368 echo Configuring stage train in $(HOST_SUBDIR)/lto-plugin; \
36369 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
36370 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
36371 case $(srcdir) in \
36372 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36373 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
36374 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36375 esac; \
36376 module_srcdir=lto-plugin; \
36377 $(SHELL) $$s/$$module_srcdir/configure \
36378 --srcdir=$${topdir}/$$module_srcdir \
36379 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
36380 --target=${target_alias} \
36381 --with-build-libsubdir=$(HOST_SUBDIR) \
36382 $(STAGEtrain_CONFIGURE_FLAGS) \
36383 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
36384@endif lto-plugin-bootstrap
36385
a90ef4bf
JM
36386.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
36387maybe-configure-stagefeedback-lto-plugin:
36388@if lto-plugin-bootstrap
36389maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
36390configure-stagefeedback-lto-plugin:
36391 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36392 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
36393 @r=`${PWD_COMMAND}`; export r; \
4fa63067 36394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36395 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36396 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 36397 $(HOST_EXPORTS) \
a90ef4bf
JM
36398 $(POSTSTAGE1_HOST_EXPORTS) \
36399 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
36400 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
36401 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
36402 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
36403 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
36404 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
36405 case $(srcdir) in \
36406 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36407 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
36408 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36409 esac; \
1b6c0831
L
36410 module_srcdir=lto-plugin; \
36411 $(SHELL) $$s/$$module_srcdir/configure \
36412 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 36413 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 36414 --target=${target_alias} \
22121df0 36415 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 36416 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 36417 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 36418@endif lto-plugin-bootstrap
252b5132 36419
f948b2de
NC
36420.PHONY: configure-stageautoprofile-lto-plugin maybe-configure-stageautoprofile-lto-plugin
36421maybe-configure-stageautoprofile-lto-plugin:
36422@if lto-plugin-bootstrap
36423maybe-configure-stageautoprofile-lto-plugin: configure-stageautoprofile-lto-plugin
36424configure-stageautoprofile-lto-plugin:
36425 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
36426 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
36427 @r=`${PWD_COMMAND}`; export r; \
36428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36429 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
36430 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
36431 $(HOST_EXPORTS) \
36432 $(POSTSTAGE1_HOST_EXPORTS) \
36433 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
36434 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
36435 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
36436 echo Configuring stage autoprofile in $(HOST_SUBDIR)/lto-plugin; \
36437 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
36438 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
36439 case $(srcdir) in \
36440 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36441 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
36442 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36443 esac; \
36444 module_srcdir=lto-plugin; \
36445 $(SHELL) $$s/$$module_srcdir/configure \
36446 --srcdir=$${topdir}/$$module_srcdir \
36447 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
36448 --target=${target_alias} \
36449 --with-build-libsubdir=$(HOST_SUBDIR) \
36450 $(STAGEautoprofile_CONFIGURE_FLAGS) \
36451 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
36452@endif lto-plugin-bootstrap
36453
36454.PHONY: configure-stageautofeedback-lto-plugin maybe-configure-stageautofeedback-lto-plugin
36455maybe-configure-stageautofeedback-lto-plugin:
36456@if lto-plugin-bootstrap
36457maybe-configure-stageautofeedback-lto-plugin: configure-stageautofeedback-lto-plugin
36458configure-stageautofeedback-lto-plugin:
36459 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
36460 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
36461 @r=`${PWD_COMMAND}`; export r; \
36462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36463 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
36464 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
36465 $(HOST_EXPORTS) \
36466 $(POSTSTAGE1_HOST_EXPORTS) \
36467 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
36468 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
36469 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
36470 echo Configuring stage autofeedback in $(HOST_SUBDIR)/lto-plugin; \
36471 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
36472 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
36473 case $(srcdir) in \
36474 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36475 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
36476 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36477 esac; \
36478 module_srcdir=lto-plugin; \
36479 $(SHELL) $$s/$$module_srcdir/configure \
36480 --srcdir=$${topdir}/$$module_srcdir \
36481 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
36482 --target=${target_alias} \
36483 --with-build-libsubdir=$(HOST_SUBDIR) \
36484 $(STAGEautofeedback_CONFIGURE_FLAGS) \
36485 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
36486@endif lto-plugin-bootstrap
36487
56a8fe78 36488
56a8fe78 36489
56a8fe78 36490
6d389afc 36491
a90ef4bf
JM
36492.PHONY: all-lto-plugin maybe-all-lto-plugin
36493maybe-all-lto-plugin:
36494@if gcc-bootstrap
36495all-lto-plugin: stage_current
36496@endif gcc-bootstrap
36497@if lto-plugin
36498TARGET-lto-plugin=all
36499maybe-all-lto-plugin: all-lto-plugin
36500all-lto-plugin: configure-lto-plugin
36501 @r=`${PWD_COMMAND}`; export r; \
6d389afc 36502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36503 $(HOST_EXPORTS) \
36504 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 36505 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
36506 $(TARGET-lto-plugin))
36507@endif lto-plugin
6d389afc 36508
6d389afc 36509
252b5132 36510
a90ef4bf
JM
36511.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
36512.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
36513maybe-all-stage1-lto-plugin:
36514maybe-clean-stage1-lto-plugin:
36515@if lto-plugin-bootstrap
36516maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
36517all-stage1: all-stage1-lto-plugin
36518TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
36519all-stage1-lto-plugin: configure-stage1-lto-plugin
36520 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36521 @r=`${PWD_COMMAND}`; export r; \
4fa63067 36522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
36523 TFLAGS="$(STAGE1_TFLAGS)"; \
36524 $(HOST_EXPORTS) \
36525 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 36526 \
a90ef4bf
JM
36527 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36528 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 36529 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
a90ef4bf
JM
36530 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
36531 LIBCFLAGS="$(LIBCFLAGS)" \
36532 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36533 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36534 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 36535 $(EXTRA_HOST_FLAGS) \
1b6c0831 36536 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 36537 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 36538 $(TARGET-stage1-lto-plugin)
3866be5d 36539
a90ef4bf
JM
36540maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
36541clean-stage1: clean-stage1-lto-plugin
36542clean-stage1-lto-plugin:
36543 @if [ $(current_stage) = stage1 ]; then \
36544 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
36545 else \
36546 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
36547 $(MAKE) stage1-start; \
36548 fi; \
36549 cd $(HOST_SUBDIR)/lto-plugin && \
36550 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 36551 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 36552@endif lto-plugin-bootstrap
3866be5d 36553
3866be5d 36554
a90ef4bf
JM
36555.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
36556.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
36557maybe-all-stage2-lto-plugin:
36558maybe-clean-stage2-lto-plugin:
36559@if lto-plugin-bootstrap
36560maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
36561all-stage2: all-stage2-lto-plugin
36562TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
36563all-stage2-lto-plugin: configure-stage2-lto-plugin
36564 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36565 @r=`${PWD_COMMAND}`; export r; \
4fa63067 36566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 36567 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 36568 $(HOST_EXPORTS) \
a90ef4bf
JM
36569 $(POSTSTAGE1_HOST_EXPORTS) \
36570 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 36571 \
a90ef4bf
JM
36572 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36573 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 36574 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
a90ef4bf
JM
36575 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
36576 LIBCFLAGS="$(STAGE2_CFLAGS)" \
36577 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36578 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36579 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36580 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 36581 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 36582 $(TARGET-stage2-lto-plugin)
3866be5d 36583
a90ef4bf
JM
36584maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
36585clean-stage2: clean-stage2-lto-plugin
36586clean-stage2-lto-plugin:
36587 @if [ $(current_stage) = stage2 ]; then \
36588 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
36589 else \
36590 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
36591 $(MAKE) stage2-start; \
36592 fi; \
36593 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 36594 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 36595@endif lto-plugin-bootstrap
3866be5d 36596
a3ca38d2 36597
a90ef4bf
JM
36598.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
36599.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
36600maybe-all-stage3-lto-plugin:
36601maybe-clean-stage3-lto-plugin:
36602@if lto-plugin-bootstrap
36603maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
36604all-stage3: all-stage3-lto-plugin
36605TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
36606all-stage3-lto-plugin: configure-stage3-lto-plugin
36607 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36608 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 36609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 36610 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 36611 $(HOST_EXPORTS) \
a90ef4bf
JM
36612 $(POSTSTAGE1_HOST_EXPORTS) \
36613 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 36614 \
a90ef4bf
JM
36615 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36616 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 36617 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
a90ef4bf
JM
36618 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
36619 LIBCFLAGS="$(STAGE3_CFLAGS)" \
36620 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36621 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36622 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36623 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 36624 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 36625 $(TARGET-stage3-lto-plugin)
a3ca38d2 36626
a90ef4bf
JM
36627maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
36628clean-stage3: clean-stage3-lto-plugin
36629clean-stage3-lto-plugin:
36630 @if [ $(current_stage) = stage3 ]; then \
36631 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
36632 else \
36633 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
36634 $(MAKE) stage3-start; \
36635 fi; \
36636 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 36637 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 36638@endif lto-plugin-bootstrap
a3ca38d2 36639
108a6f8e 36640
a90ef4bf
JM
36641.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
36642.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
36643maybe-all-stage4-lto-plugin:
36644maybe-clean-stage4-lto-plugin:
36645@if lto-plugin-bootstrap
36646maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
36647all-stage4: all-stage4-lto-plugin
36648TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
36649all-stage4-lto-plugin: configure-stage4-lto-plugin
36650 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36651 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 36652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 36653 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 36654 $(HOST_EXPORTS) \
a90ef4bf
JM
36655 $(POSTSTAGE1_HOST_EXPORTS) \
36656 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 36657 \
a90ef4bf
JM
36658 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36659 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 36660 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
a90ef4bf
JM
36661 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
36662 LIBCFLAGS="$(STAGE4_CFLAGS)" \
36663 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36664 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36665 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36666 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 36667 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 36668 $(TARGET-stage4-lto-plugin)
108a6f8e 36669
a90ef4bf
JM
36670maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
36671clean-stage4: clean-stage4-lto-plugin
36672clean-stage4-lto-plugin:
36673 @if [ $(current_stage) = stage4 ]; then \
36674 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
36675 else \
36676 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
36677 $(MAKE) stage4-start; \
36678 fi; \
36679 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 36680 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 36681@endif lto-plugin-bootstrap
4fa63067 36682
4fa63067 36683
a90ef4bf
JM
36684.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
36685.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
36686maybe-all-stageprofile-lto-plugin:
36687maybe-clean-stageprofile-lto-plugin:
36688@if lto-plugin-bootstrap
36689maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
36690all-stageprofile: all-stageprofile-lto-plugin
36691TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
36692all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
36693 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36694 @r=`${PWD_COMMAND}`; export r; \
4fa63067 36695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 36696 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 36697 $(HOST_EXPORTS) \
a90ef4bf
JM
36698 $(POSTSTAGE1_HOST_EXPORTS) \
36699 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 36700 \
a90ef4bf
JM
36701 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36702 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 36703 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
a90ef4bf
JM
36704 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
36705 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
36706 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36707 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36708 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36709 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 36710 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 36711 $(TARGET-stageprofile-lto-plugin)
4fa63067 36712
a90ef4bf
JM
36713maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
36714clean-stageprofile: clean-stageprofile-lto-plugin
36715clean-stageprofile-lto-plugin:
36716 @if [ $(current_stage) = stageprofile ]; then \
36717 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
36718 else \
36719 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
36720 $(MAKE) stageprofile-start; \
36721 fi; \
36722 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 36723 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 36724@endif lto-plugin-bootstrap
4fa63067 36725
4fa63067 36726
f948b2de
NC
36727.PHONY: all-stagetrain-lto-plugin maybe-all-stagetrain-lto-plugin
36728.PHONY: clean-stagetrain-lto-plugin maybe-clean-stagetrain-lto-plugin
36729maybe-all-stagetrain-lto-plugin:
36730maybe-clean-stagetrain-lto-plugin:
36731@if lto-plugin-bootstrap
36732maybe-all-stagetrain-lto-plugin: all-stagetrain-lto-plugin
36733all-stagetrain: all-stagetrain-lto-plugin
36734TARGET-stagetrain-lto-plugin = $(TARGET-lto-plugin)
36735all-stagetrain-lto-plugin: configure-stagetrain-lto-plugin
36736 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
36737 @r=`${PWD_COMMAND}`; export r; \
36738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36739 TFLAGS="$(STAGEtrain_TFLAGS)"; \
36740 $(HOST_EXPORTS) \
36741 $(POSTSTAGE1_HOST_EXPORTS) \
36742 cd $(HOST_SUBDIR)/lto-plugin && \
36743 \
36744 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36745 CFLAGS="$(STAGEtrain_CFLAGS)" \
36746 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
36747 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
36748 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
36749 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36750 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36751 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36752 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
36753 TFLAGS="$(STAGEtrain_TFLAGS)" \
36754 $(TARGET-stagetrain-lto-plugin)
36755
36756maybe-clean-stagetrain-lto-plugin: clean-stagetrain-lto-plugin
36757clean-stagetrain: clean-stagetrain-lto-plugin
36758clean-stagetrain-lto-plugin:
36759 @if [ $(current_stage) = stagetrain ]; then \
36760 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
36761 else \
36762 [ -f $(HOST_SUBDIR)/stagetrain-lto-plugin/Makefile ] || exit 0; \
36763 $(MAKE) stagetrain-start; \
36764 fi; \
36765 cd $(HOST_SUBDIR)/lto-plugin && \
36766 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
36767@endif lto-plugin-bootstrap
36768
36769
a90ef4bf
JM
36770.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
36771.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
36772maybe-all-stagefeedback-lto-plugin:
36773maybe-clean-stagefeedback-lto-plugin:
36774@if lto-plugin-bootstrap
36775maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
36776all-stagefeedback: all-stagefeedback-lto-plugin
36777TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
36778all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
36779 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36780 @r=`${PWD_COMMAND}`; export r; \
b40e3958 36781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 36782 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 36783 $(HOST_EXPORTS) \
a90ef4bf
JM
36784 $(POSTSTAGE1_HOST_EXPORTS) \
36785 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 36786 \
a90ef4bf
JM
36787 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36788 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 36789 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
a90ef4bf
JM
36790 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
36791 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
36792 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36793 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36794 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36795 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 36796 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 36797 $(TARGET-stagefeedback-lto-plugin)
3866be5d 36798
a90ef4bf
JM
36799maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
36800clean-stagefeedback: clean-stagefeedback-lto-plugin
36801clean-stagefeedback-lto-plugin:
36802 @if [ $(current_stage) = stagefeedback ]; then \
36803 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
36804 else \
36805 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
36806 $(MAKE) stagefeedback-start; \
36807 fi; \
36808 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 36809 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 36810@endif lto-plugin-bootstrap
a7254363 36811
e2b9e2dc 36812
f948b2de
NC
36813.PHONY: all-stageautoprofile-lto-plugin maybe-all-stageautoprofile-lto-plugin
36814.PHONY: clean-stageautoprofile-lto-plugin maybe-clean-stageautoprofile-lto-plugin
36815maybe-all-stageautoprofile-lto-plugin:
36816maybe-clean-stageautoprofile-lto-plugin:
36817@if lto-plugin-bootstrap
36818maybe-all-stageautoprofile-lto-plugin: all-stageautoprofile-lto-plugin
36819all-stageautoprofile: all-stageautoprofile-lto-plugin
36820TARGET-stageautoprofile-lto-plugin = $(TARGET-lto-plugin)
36821all-stageautoprofile-lto-plugin: configure-stageautoprofile-lto-plugin
36822 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
36823 @r=`${PWD_COMMAND}`; export r; \
36824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36825 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
36826 $(HOST_EXPORTS) \
36827 $(POSTSTAGE1_HOST_EXPORTS) \
36828 cd $(HOST_SUBDIR)/lto-plugin && \
36829 $$s/gcc/config/i386/$(AUTO_PROFILE) \
36830 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36831 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
36832 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
36833 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
36834 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
36835 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36836 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36837 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36838 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
36839 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
36840 $(TARGET-stageautoprofile-lto-plugin)
36841
36842maybe-clean-stageautoprofile-lto-plugin: clean-stageautoprofile-lto-plugin
36843clean-stageautoprofile: clean-stageautoprofile-lto-plugin
36844clean-stageautoprofile-lto-plugin:
36845 @if [ $(current_stage) = stageautoprofile ]; then \
36846 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
36847 else \
36848 [ -f $(HOST_SUBDIR)/stageautoprofile-lto-plugin/Makefile ] || exit 0; \
36849 $(MAKE) stageautoprofile-start; \
36850 fi; \
36851 cd $(HOST_SUBDIR)/lto-plugin && \
36852 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
36853@endif lto-plugin-bootstrap
36854
36855
36856.PHONY: all-stageautofeedback-lto-plugin maybe-all-stageautofeedback-lto-plugin
36857.PHONY: clean-stageautofeedback-lto-plugin maybe-clean-stageautofeedback-lto-plugin
36858maybe-all-stageautofeedback-lto-plugin:
36859maybe-clean-stageautofeedback-lto-plugin:
36860@if lto-plugin-bootstrap
36861maybe-all-stageautofeedback-lto-plugin: all-stageautofeedback-lto-plugin
36862all-stageautofeedback: all-stageautofeedback-lto-plugin
36863TARGET-stageautofeedback-lto-plugin = $(TARGET-lto-plugin)
36864all-stageautofeedback-lto-plugin: configure-stageautofeedback-lto-plugin
36865 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
36866 @r=`${PWD_COMMAND}`; export r; \
36867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36868 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
36869 $(HOST_EXPORTS) \
36870 $(POSTSTAGE1_HOST_EXPORTS) \
36871 cd $(HOST_SUBDIR)/lto-plugin && \
36872 \
36873 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36874 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
36875 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
36876 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
36877 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
36878 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36879 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36880 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36881 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
36882 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
36883 $(TARGET-stageautofeedback-lto-plugin)
36884
36885maybe-clean-stageautofeedback-lto-plugin: clean-stageautofeedback-lto-plugin
36886clean-stageautofeedback: clean-stageautofeedback-lto-plugin
36887clean-stageautofeedback-lto-plugin:
36888 @if [ $(current_stage) = stageautofeedback ]; then \
36889 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
36890 else \
36891 [ -f $(HOST_SUBDIR)/stageautofeedback-lto-plugin/Makefile ] || exit 0; \
36892 $(MAKE) stageautofeedback-start; \
36893 fi; \
36894 cd $(HOST_SUBDIR)/lto-plugin && \
36895 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
36896@endif lto-plugin-bootstrap
36897
36898
a7254363
PB
36899
36900
d545f33b 36901
a90ef4bf
JM
36902.PHONY: check-lto-plugin maybe-check-lto-plugin
36903maybe-check-lto-plugin:
36904@if lto-plugin
36905maybe-check-lto-plugin: check-lto-plugin
d545f33b 36906
a90ef4bf 36907check-lto-plugin:
0aed8855 36908 @: $(MAKE); $(unstage)
b40e3958
L
36909 @r=`${PWD_COMMAND}`; export r; \
36910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 36911 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 36912 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 36913 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 36914
a90ef4bf 36915@endif lto-plugin
3866be5d 36916
a90ef4bf
JM
36917.PHONY: install-lto-plugin maybe-install-lto-plugin
36918maybe-install-lto-plugin:
36919@if lto-plugin
36920maybe-install-lto-plugin: install-lto-plugin
4fa63067 36921
a90ef4bf 36922install-lto-plugin: installdirs
0aed8855 36923 @: $(MAKE); $(unstage)
4fa63067
NN
36924 @r=`${PWD_COMMAND}`; export r; \
36925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36926 $(HOST_EXPORTS) \
a90ef4bf 36927 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 36928 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 36929
a90ef4bf 36930@endif lto-plugin
4fa63067 36931
a90ef4bf
JM
36932.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
36933maybe-install-strip-lto-plugin:
36934@if lto-plugin
36935maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 36936
a90ef4bf 36937install-strip-lto-plugin: installdirs
9b980aa1
RW
36938 @: $(MAKE); $(unstage)
36939 @r=`${PWD_COMMAND}`; export r; \
36940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36941 $(HOST_EXPORTS) \
a90ef4bf 36942 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 36943 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 36944
a90ef4bf 36945@endif lto-plugin
9b980aa1 36946
56a8fe78 36947# Other targets (info, dvi, pdf, etc.)
4fa63067 36948
a90ef4bf
JM
36949.PHONY: maybe-info-lto-plugin info-lto-plugin
36950maybe-info-lto-plugin:
36951@if lto-plugin
36952maybe-info-lto-plugin: info-lto-plugin
4fa63067 36953
a90ef4bf
JM
36954info-lto-plugin: \
36955 configure-lto-plugin
36956 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
36957 r=`${PWD_COMMAND}`; export r; \
36958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36959 $(HOST_EXPORTS) \
1b6c0831 36960 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
36961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36962 done; \
22121df0 36963 echo "Doing info in lto-plugin"; \
a90ef4bf 36964 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
36965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36967 "RANLIB=$${RANLIB}" \
0c24b341 36968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 36969 info) \
4fa63067
NN
36970 || exit 1
36971
a90ef4bf 36972@endif lto-plugin
4fa63067 36973
a90ef4bf
JM
36974.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
36975maybe-dvi-lto-plugin:
36976@if lto-plugin
36977maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 36978
a90ef4bf
JM
36979dvi-lto-plugin: \
36980 configure-lto-plugin
36981 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
36982 r=`${PWD_COMMAND}`; export r; \
36983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36984 $(HOST_EXPORTS) \
1b6c0831 36985 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
36986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36987 done; \
22121df0 36988 echo "Doing dvi in lto-plugin"; \
a90ef4bf 36989 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
36990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36992 "RANLIB=$${RANLIB}" \
0c24b341 36993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 36994 dvi) \
4fa63067
NN
36995 || exit 1
36996
a90ef4bf 36997@endif lto-plugin
4fa63067 36998
a90ef4bf
JM
36999.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
37000maybe-pdf-lto-plugin:
37001@if lto-plugin
37002maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 37003
a90ef4bf
JM
37004pdf-lto-plugin: \
37005 configure-lto-plugin
37006 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
37007 r=`${PWD_COMMAND}`; export r; \
37008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37009 $(HOST_EXPORTS) \
1b6c0831 37010 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
37011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37012 done; \
22121df0 37013 echo "Doing pdf in lto-plugin"; \
a90ef4bf 37014 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
37015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37017 "RANLIB=$${RANLIB}" \
0c24b341 37018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
37019 pdf) \
37020 || exit 1
37021
a90ef4bf 37022@endif lto-plugin
56a8fe78 37023
a90ef4bf
JM
37024.PHONY: maybe-html-lto-plugin html-lto-plugin
37025maybe-html-lto-plugin:
37026@if lto-plugin
37027maybe-html-lto-plugin: html-lto-plugin
6d389afc 37028
a90ef4bf
JM
37029html-lto-plugin: \
37030 configure-lto-plugin
37031 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
37032 r=`${PWD_COMMAND}`; export r; \
37033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 37034 $(HOST_EXPORTS) \
1b6c0831 37035 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
37036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37037 done; \
22121df0 37038 echo "Doing html in lto-plugin"; \
a90ef4bf 37039 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
37040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37042 "RANLIB=$${RANLIB}" \
0c24b341 37043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
37044 html) \
37045 || exit 1
37046
a90ef4bf 37047@endif lto-plugin
6d389afc 37048
a90ef4bf
JM
37049.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
37050maybe-TAGS-lto-plugin:
37051@if lto-plugin
37052maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 37053
a90ef4bf
JM
37054TAGS-lto-plugin: \
37055 configure-lto-plugin
37056 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
37057 r=`${PWD_COMMAND}`; export r; \
37058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37059 $(HOST_EXPORTS) \
1b6c0831 37060 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
37061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37062 done; \
22121df0 37063 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 37064 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
37065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37067 "RANLIB=$${RANLIB}" \
0c24b341 37068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 37069 TAGS) \
4fa63067
NN
37070 || exit 1
37071
a90ef4bf 37072@endif lto-plugin
4fa63067 37073
a90ef4bf
JM
37074.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
37075maybe-install-info-lto-plugin:
37076@if lto-plugin
37077maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 37078
a90ef4bf
JM
37079install-info-lto-plugin: \
37080 configure-lto-plugin \
37081 info-lto-plugin
37082 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
37083 r=`${PWD_COMMAND}`; export r; \
37084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37085 $(HOST_EXPORTS) \
1b6c0831 37086 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
37087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37088 done; \
22121df0 37089 echo "Doing install-info in lto-plugin"; \
a90ef4bf 37090 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
37091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37093 "RANLIB=$${RANLIB}" \
0c24b341 37094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 37095 install-info) \
4fa63067
NN
37096 || exit 1
37097
a90ef4bf 37098@endif lto-plugin
4fa63067 37099
a90ef4bf
JM
37100.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
37101maybe-install-pdf-lto-plugin:
37102@if lto-plugin
37103maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 37104
a90ef4bf
JM
37105install-pdf-lto-plugin: \
37106 configure-lto-plugin \
37107 pdf-lto-plugin
37108 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
37109 r=`${PWD_COMMAND}`; export r; \
37110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37111 $(HOST_EXPORTS) \
1b6c0831 37112 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
37113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37114 done; \
22121df0 37115 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 37116 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
37117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37119 "RANLIB=$${RANLIB}" \
0c24b341 37120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
37121 install-pdf) \
37122 || exit 1
37123
a90ef4bf 37124@endif lto-plugin
a3ca38d2 37125
a90ef4bf
JM
37126.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
37127maybe-install-html-lto-plugin:
37128@if lto-plugin
37129maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 37130
a90ef4bf
JM
37131install-html-lto-plugin: \
37132 configure-lto-plugin \
37133 html-lto-plugin
37134 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
37135 r=`${PWD_COMMAND}`; export r; \
37136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37137 $(HOST_EXPORTS) \
1b6c0831 37138 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
37139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37140 done; \
22121df0 37141 echo "Doing install-html in lto-plugin"; \
a90ef4bf 37142 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
37143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37145 "RANLIB=$${RANLIB}" \
0c24b341 37146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
37147 install-html) \
37148 || exit 1
37149
a90ef4bf 37150@endif lto-plugin
108a6f8e 37151
a90ef4bf
JM
37152.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
37153maybe-installcheck-lto-plugin:
37154@if lto-plugin
37155maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 37156
a90ef4bf
JM
37157installcheck-lto-plugin: \
37158 configure-lto-plugin
37159 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
37160 r=`${PWD_COMMAND}`; export r; \
37161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37162 $(HOST_EXPORTS) \
1b6c0831 37163 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
37164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37165 done; \
22121df0 37166 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 37167 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
37168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37170 "RANLIB=$${RANLIB}" \
0c24b341 37171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 37172 installcheck) \
4fa63067
NN
37173 || exit 1
37174
a90ef4bf 37175@endif lto-plugin
4fa63067 37176
a90ef4bf
JM
37177.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
37178maybe-mostlyclean-lto-plugin:
37179@if lto-plugin
37180maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 37181
a90ef4bf
JM
37182mostlyclean-lto-plugin:
37183 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
37184 r=`${PWD_COMMAND}`; export r; \
37185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37186 $(HOST_EXPORTS) \
1b6c0831 37187 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
37188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37189 done; \
22121df0 37190 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 37191 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
37192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37194 "RANLIB=$${RANLIB}" \
0c24b341 37195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 37196 mostlyclean) \
4fa63067
NN
37197 || exit 1
37198
a90ef4bf 37199@endif lto-plugin
4fa63067 37200
a90ef4bf
JM
37201.PHONY: maybe-clean-lto-plugin clean-lto-plugin
37202maybe-clean-lto-plugin:
37203@if lto-plugin
37204maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 37205
a90ef4bf
JM
37206clean-lto-plugin:
37207 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
37208 r=`${PWD_COMMAND}`; export r; \
37209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37210 $(HOST_EXPORTS) \
1b6c0831 37211 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
37212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37213 done; \
22121df0 37214 echo "Doing clean in lto-plugin"; \
a90ef4bf 37215 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
37216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37218 "RANLIB=$${RANLIB}" \
0c24b341 37219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 37220 clean) \
4fa63067
NN
37221 || exit 1
37222
a90ef4bf 37223@endif lto-plugin
4fa63067 37224
a90ef4bf
JM
37225.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
37226maybe-distclean-lto-plugin:
37227@if lto-plugin
37228maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 37229
a90ef4bf
JM
37230distclean-lto-plugin:
37231 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
37232 r=`${PWD_COMMAND}`; export r; \
37233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37234 $(HOST_EXPORTS) \
1b6c0831 37235 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
37236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37237 done; \
22121df0 37238 echo "Doing distclean in lto-plugin"; \
a90ef4bf 37239 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
37240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37242 "RANLIB=$${RANLIB}" \
0c24b341 37243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 37244 distclean) \
4fa63067
NN
37245 || exit 1
37246
a90ef4bf 37247@endif lto-plugin
4fa63067 37248
a90ef4bf
JM
37249.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
37250maybe-maintainer-clean-lto-plugin:
37251@if lto-plugin
37252maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 37253
a90ef4bf
JM
37254maintainer-clean-lto-plugin:
37255 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
37256 r=`${PWD_COMMAND}`; export r; \
37257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37258 $(HOST_EXPORTS) \
1b6c0831 37259 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
37260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37261 done; \
22121df0 37262 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 37263 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
37264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37266 "RANLIB=$${RANLIB}" \
0c24b341 37267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 37268 maintainer-clean) \
4fa63067 37269 || exit 1
16ae0395 37270
a90ef4bf
JM
37271@endif lto-plugin
37272
37273
37274
1b6c0831
L
37275.PHONY: configure-libcc1 maybe-configure-libcc1
37276maybe-configure-libcc1:
4f0ef2d8 37277@if gcc-bootstrap
1b6c0831 37278configure-libcc1: stage_current
4f0ef2d8 37279@endif gcc-bootstrap
1b6c0831
L
37280@if libcc1
37281maybe-configure-libcc1: configure-libcc1
37282configure-libcc1:
37283 @: $(MAKE); $(unstage)
c52c6897 37284 @r=`${PWD_COMMAND}`; export r; \
b40e3958 37285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37286 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 37287 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
37288 $(HOST_EXPORTS) \
37289 echo Configuring in $(HOST_SUBDIR)/libcc1; \
37290 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 37291 case $(srcdir) in \
b00612cc 37292 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37293 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 37294 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 37295 esac; \
1b6c0831
L
37296 module_srcdir=libcc1; \
37297 $(SHELL) \
37298 $$s/$$module_srcdir/configure \
37299 --srcdir=$${topdir}/$$module_srcdir \
37300 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
37301 --target=${target_alias} --enable-shared \
e2b9e2dc 37302 || exit 1
1b6c0831 37303@endif libcc1
d545f33b
PB
37304
37305
3866be5d 37306
16ae0395 37307
9b980aa1 37308
1b6c0831
L
37309.PHONY: all-libcc1 maybe-all-libcc1
37310maybe-all-libcc1:
37311@if gcc-bootstrap
37312all-libcc1: stage_current
37313@endif gcc-bootstrap
37314@if libcc1
37315TARGET-libcc1=all
37316maybe-all-libcc1: all-libcc1
37317all-libcc1: configure-libcc1
37318 @: $(MAKE); $(unstage)
e8a5fa9c
RW
37319 @r=`${PWD_COMMAND}`; export r; \
37320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37321 $(HOST_EXPORTS) \
37322 (cd $(HOST_SUBDIR)/libcc1 && \
37323 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
37324 $(TARGET-libcc1))
37325@endif libcc1
e8a5fa9c 37326
1b6c0831
L
37327
37328
37329
37330.PHONY: check-libcc1 maybe-check-libcc1
37331maybe-check-libcc1:
37332@if libcc1
37333maybe-check-libcc1: check-libcc1
37334
37335check-libcc1:
37336 @: $(MAKE); $(unstage)
e8a5fa9c
RW
37337 @r=`${PWD_COMMAND}`; export r; \
37338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 37339 $(HOST_EXPORTS) \
1b6c0831
L
37340 (cd $(HOST_SUBDIR)/libcc1 && \
37341 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 37342
1b6c0831
L
37343@endif libcc1
37344
37345.PHONY: install-libcc1 maybe-install-libcc1
37346maybe-install-libcc1:
37347@if libcc1
37348maybe-install-libcc1: install-libcc1
37349
37350install-libcc1: installdirs
37351 @: $(MAKE); $(unstage)
e8a5fa9c
RW
37352 @r=`${PWD_COMMAND}`; export r; \
37353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37354 $(HOST_EXPORTS) \
37355 (cd $(HOST_SUBDIR)/libcc1 && \
37356 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 37357
1b6c0831
L
37358@endif libcc1
37359
37360.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
37361maybe-install-strip-libcc1:
37362@if libcc1
37363maybe-install-strip-libcc1: install-strip-libcc1
37364
37365install-strip-libcc1: installdirs
37366 @: $(MAKE); $(unstage)
e8a5fa9c
RW
37367 @r=`${PWD_COMMAND}`; export r; \
37368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37369 $(HOST_EXPORTS) \
37370 (cd $(HOST_SUBDIR)/libcc1 && \
37371 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 37372
1b6c0831 37373@endif libcc1
e8a5fa9c 37374
1b6c0831 37375# Other targets (info, dvi, pdf, etc.)
d545f33b 37376
1b6c0831
L
37377.PHONY: maybe-info-libcc1 info-libcc1
37378maybe-info-libcc1:
37379@if libcc1
37380maybe-info-libcc1: info-libcc1
d545f33b 37381
1b6c0831
L
37382info-libcc1: \
37383 configure-libcc1
37384 @: $(MAKE); $(unstage)
37385 @[ -f ./libcc1/Makefile ] || exit 0; \
37386 r=`${PWD_COMMAND}`; export r; \
b40e3958 37387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37388 $(HOST_EXPORTS) \
37389 for flag in $(EXTRA_HOST_FLAGS) ; do \
37390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37391 done; \
22121df0 37392 echo "Doing info in libcc1"; \
1b6c0831
L
37393 (cd $(HOST_SUBDIR)/libcc1 && \
37394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37396 "RANLIB=$${RANLIB}" \
37397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37398 info) \
37399 || exit 1
3866be5d 37400
1b6c0831 37401@endif libcc1
a7254363 37402
1b6c0831
L
37403.PHONY: maybe-dvi-libcc1 dvi-libcc1
37404maybe-dvi-libcc1:
37405@if libcc1
37406maybe-dvi-libcc1: dvi-libcc1
a7254363 37407
1b6c0831
L
37408dvi-libcc1: \
37409 configure-libcc1
37410 @: $(MAKE); $(unstage)
37411 @[ -f ./libcc1/Makefile ] || exit 0; \
37412 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 37413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37414 $(HOST_EXPORTS) \
37415 for flag in $(EXTRA_HOST_FLAGS) ; do \
37416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37417 done; \
22121df0 37418 echo "Doing dvi in libcc1"; \
1b6c0831
L
37419 (cd $(HOST_SUBDIR)/libcc1 && \
37420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37422 "RANLIB=$${RANLIB}" \
37423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37424 dvi) \
37425 || exit 1
e8a5fa9c 37426
1b6c0831 37427@endif libcc1
e8a5fa9c 37428
1b6c0831
L
37429.PHONY: maybe-pdf-libcc1 pdf-libcc1
37430maybe-pdf-libcc1:
37431@if libcc1
37432maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 37433
1b6c0831
L
37434pdf-libcc1: \
37435 configure-libcc1
37436 @: $(MAKE); $(unstage)
37437 @[ -f ./libcc1/Makefile ] || exit 0; \
37438 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 37439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37440 $(HOST_EXPORTS) \
37441 for flag in $(EXTRA_HOST_FLAGS) ; do \
37442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37443 done; \
22121df0 37444 echo "Doing pdf in libcc1"; \
1b6c0831
L
37445 (cd $(HOST_SUBDIR)/libcc1 && \
37446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37448 "RANLIB=$${RANLIB}" \
37449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37450 pdf) \
37451 || exit 1
e8a5fa9c 37452
1b6c0831 37453@endif libcc1
e8a5fa9c 37454
1b6c0831
L
37455.PHONY: maybe-html-libcc1 html-libcc1
37456maybe-html-libcc1:
37457@if libcc1
37458maybe-html-libcc1: html-libcc1
e8a5fa9c 37459
1b6c0831
L
37460html-libcc1: \
37461 configure-libcc1
37462 @: $(MAKE); $(unstage)
37463 @[ -f ./libcc1/Makefile ] || exit 0; \
37464 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 37465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37466 $(HOST_EXPORTS) \
37467 for flag in $(EXTRA_HOST_FLAGS) ; do \
37468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37469 done; \
22121df0 37470 echo "Doing html in libcc1"; \
1b6c0831
L
37471 (cd $(HOST_SUBDIR)/libcc1 && \
37472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37474 "RANLIB=$${RANLIB}" \
37475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37476 html) \
37477 || exit 1
e8a5fa9c 37478
1b6c0831 37479@endif libcc1
e8a5fa9c 37480
1b6c0831
L
37481.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
37482maybe-TAGS-libcc1:
37483@if libcc1
37484maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 37485
1b6c0831
L
37486TAGS-libcc1: \
37487 configure-libcc1
37488 @: $(MAKE); $(unstage)
37489 @[ -f ./libcc1/Makefile ] || exit 0; \
37490 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 37491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37492 $(HOST_EXPORTS) \
37493 for flag in $(EXTRA_HOST_FLAGS) ; do \
37494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37495 done; \
22121df0 37496 echo "Doing TAGS in libcc1"; \
1b6c0831
L
37497 (cd $(HOST_SUBDIR)/libcc1 && \
37498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37500 "RANLIB=$${RANLIB}" \
37501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37502 TAGS) \
37503 || exit 1
37504
37505@endif libcc1
37506
37507.PHONY: maybe-install-info-libcc1 install-info-libcc1
37508maybe-install-info-libcc1:
37509@if libcc1
37510maybe-install-info-libcc1: install-info-libcc1
37511
37512install-info-libcc1: \
37513 configure-libcc1 \
37514 info-libcc1
37515 @: $(MAKE); $(unstage)
37516 @[ -f ./libcc1/Makefile ] || exit 0; \
37517 r=`${PWD_COMMAND}`; export r; \
37518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37519 $(HOST_EXPORTS) \
37520 for flag in $(EXTRA_HOST_FLAGS) ; do \
37521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37522 done; \
22121df0 37523 echo "Doing install-info in libcc1"; \
1b6c0831
L
37524 (cd $(HOST_SUBDIR)/libcc1 && \
37525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37527 "RANLIB=$${RANLIB}" \
37528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37529 install-info) \
37530 || exit 1
37531
37532@endif libcc1
37533
37534.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
37535maybe-install-pdf-libcc1:
37536@if libcc1
37537maybe-install-pdf-libcc1: install-pdf-libcc1
37538
37539install-pdf-libcc1: \
37540 configure-libcc1 \
37541 pdf-libcc1
37542 @: $(MAKE); $(unstage)
37543 @[ -f ./libcc1/Makefile ] || exit 0; \
37544 r=`${PWD_COMMAND}`; export r; \
37545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37546 $(HOST_EXPORTS) \
37547 for flag in $(EXTRA_HOST_FLAGS) ; do \
37548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37549 done; \
22121df0 37550 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
37551 (cd $(HOST_SUBDIR)/libcc1 && \
37552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37554 "RANLIB=$${RANLIB}" \
37555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37556 install-pdf) \
37557 || exit 1
37558
37559@endif libcc1
37560
37561.PHONY: maybe-install-html-libcc1 install-html-libcc1
37562maybe-install-html-libcc1:
37563@if libcc1
37564maybe-install-html-libcc1: install-html-libcc1
37565
37566install-html-libcc1: \
37567 configure-libcc1 \
37568 html-libcc1
37569 @: $(MAKE); $(unstage)
37570 @[ -f ./libcc1/Makefile ] || exit 0; \
37571 r=`${PWD_COMMAND}`; export r; \
37572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37573 $(HOST_EXPORTS) \
37574 for flag in $(EXTRA_HOST_FLAGS) ; do \
37575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37576 done; \
22121df0 37577 echo "Doing install-html in libcc1"; \
1b6c0831
L
37578 (cd $(HOST_SUBDIR)/libcc1 && \
37579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37581 "RANLIB=$${RANLIB}" \
37582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37583 install-html) \
37584 || exit 1
37585
37586@endif libcc1
37587
37588.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
37589maybe-installcheck-libcc1:
37590@if libcc1
37591maybe-installcheck-libcc1: installcheck-libcc1
37592
37593installcheck-libcc1: \
37594 configure-libcc1
37595 @: $(MAKE); $(unstage)
37596 @[ -f ./libcc1/Makefile ] || exit 0; \
37597 r=`${PWD_COMMAND}`; export r; \
37598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37599 $(HOST_EXPORTS) \
37600 for flag in $(EXTRA_HOST_FLAGS) ; do \
37601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37602 done; \
22121df0 37603 echo "Doing installcheck in libcc1"; \
1b6c0831
L
37604 (cd $(HOST_SUBDIR)/libcc1 && \
37605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37607 "RANLIB=$${RANLIB}" \
37608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37609 installcheck) \
37610 || exit 1
37611
37612@endif libcc1
37613
37614.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
37615maybe-mostlyclean-libcc1:
37616@if libcc1
37617maybe-mostlyclean-libcc1: mostlyclean-libcc1
37618
37619mostlyclean-libcc1:
37620 @: $(MAKE); $(unstage)
37621 @[ -f ./libcc1/Makefile ] || exit 0; \
37622 r=`${PWD_COMMAND}`; export r; \
37623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37624 $(HOST_EXPORTS) \
37625 for flag in $(EXTRA_HOST_FLAGS) ; do \
37626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37627 done; \
22121df0 37628 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
37629 (cd $(HOST_SUBDIR)/libcc1 && \
37630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37632 "RANLIB=$${RANLIB}" \
37633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37634 mostlyclean) \
37635 || exit 1
37636
37637@endif libcc1
37638
37639.PHONY: maybe-clean-libcc1 clean-libcc1
37640maybe-clean-libcc1:
37641@if libcc1
37642maybe-clean-libcc1: clean-libcc1
37643
37644clean-libcc1:
37645 @: $(MAKE); $(unstage)
37646 @[ -f ./libcc1/Makefile ] || exit 0; \
37647 r=`${PWD_COMMAND}`; export r; \
37648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37649 $(HOST_EXPORTS) \
37650 for flag in $(EXTRA_HOST_FLAGS) ; do \
37651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37652 done; \
22121df0 37653 echo "Doing clean in libcc1"; \
1b6c0831
L
37654 (cd $(HOST_SUBDIR)/libcc1 && \
37655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37657 "RANLIB=$${RANLIB}" \
37658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37659 clean) \
37660 || exit 1
37661
37662@endif libcc1
37663
37664.PHONY: maybe-distclean-libcc1 distclean-libcc1
37665maybe-distclean-libcc1:
37666@if libcc1
37667maybe-distclean-libcc1: distclean-libcc1
37668
37669distclean-libcc1:
37670 @: $(MAKE); $(unstage)
37671 @[ -f ./libcc1/Makefile ] || exit 0; \
37672 r=`${PWD_COMMAND}`; export r; \
37673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37674 $(HOST_EXPORTS) \
37675 for flag in $(EXTRA_HOST_FLAGS) ; do \
37676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37677 done; \
22121df0 37678 echo "Doing distclean in libcc1"; \
1b6c0831
L
37679 (cd $(HOST_SUBDIR)/libcc1 && \
37680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37682 "RANLIB=$${RANLIB}" \
37683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37684 distclean) \
37685 || exit 1
37686
37687@endif libcc1
37688
37689.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
37690maybe-maintainer-clean-libcc1:
37691@if libcc1
37692maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
37693
37694maintainer-clean-libcc1:
37695 @: $(MAKE); $(unstage)
37696 @[ -f ./libcc1/Makefile ] || exit 0; \
37697 r=`${PWD_COMMAND}`; export r; \
37698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37699 $(HOST_EXPORTS) \
37700 for flag in $(EXTRA_HOST_FLAGS) ; do \
37701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37702 done; \
22121df0 37703 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
37704 (cd $(HOST_SUBDIR)/libcc1 && \
37705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37707 "RANLIB=$${RANLIB}" \
37708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37709 maintainer-clean) \
37710 || exit 1
37711
37712@endif libcc1
37713
37714
37715
37716.PHONY: configure-gotools maybe-configure-gotools
37717maybe-configure-gotools:
37718@if gcc-bootstrap
37719configure-gotools: stage_current
37720@endif gcc-bootstrap
37721@if gotools
37722maybe-configure-gotools: configure-gotools
37723configure-gotools:
37724 @: $(MAKE); $(unstage)
37725 @r=`${PWD_COMMAND}`; export r; \
37726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37727 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 37728 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
37729 $(HOST_EXPORTS) \
37730 echo Configuring in $(HOST_SUBDIR)/gotools; \
37731 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
37732 case $(srcdir) in \
37733 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37734 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
37735 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37736 esac; \
37737 module_srcdir=gotools; \
37738 $(SHELL) \
37739 $$s/$$module_srcdir/configure \
37740 --srcdir=$${topdir}/$$module_srcdir \
37741 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
37742 --target=${target_alias} \
37743 || exit 1
37744@endif gotools
37745
37746
37747
37748
37749
37750.PHONY: all-gotools maybe-all-gotools
37751maybe-all-gotools:
37752@if gcc-bootstrap
37753all-gotools: stage_current
37754@endif gcc-bootstrap
37755@if gotools
37756TARGET-gotools=all
37757maybe-all-gotools: all-gotools
37758all-gotools: configure-gotools
37759 @: $(MAKE); $(unstage)
37760 @r=`${PWD_COMMAND}`; export r; \
37761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37762 $(HOST_EXPORTS) \
37763 (cd $(HOST_SUBDIR)/gotools && \
37764 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
37765 $(TARGET-gotools))
37766@endif gotools
37767
37768
37769
37770
37771.PHONY: check-gotools maybe-check-gotools
37772maybe-check-gotools:
37773@if gotools
37774maybe-check-gotools: check-gotools
37775
37776check-gotools:
37777 @: $(MAKE); $(unstage)
37778 @r=`${PWD_COMMAND}`; export r; \
37779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 37780 $(HOST_EXPORTS) \
1b6c0831
L
37781 (cd $(HOST_SUBDIR)/gotools && \
37782 $(MAKE) $(FLAGS_TO_PASS) check)
37783
37784@endif gotools
37785
37786.PHONY: install-gotools maybe-install-gotools
37787maybe-install-gotools:
37788@if gotools
37789maybe-install-gotools: install-gotools
37790
37791install-gotools: installdirs
37792 @: $(MAKE); $(unstage)
37793 @r=`${PWD_COMMAND}`; export r; \
37794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37795 $(HOST_EXPORTS) \
37796 (cd $(HOST_SUBDIR)/gotools && \
37797 $(MAKE) $(FLAGS_TO_PASS) install)
37798
37799@endif gotools
37800
37801.PHONY: install-strip-gotools maybe-install-strip-gotools
37802maybe-install-strip-gotools:
37803@if gotools
37804maybe-install-strip-gotools: install-strip-gotools
37805
37806install-strip-gotools: installdirs
37807 @: $(MAKE); $(unstage)
37808 @r=`${PWD_COMMAND}`; export r; \
37809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37810 $(HOST_EXPORTS) \
37811 (cd $(HOST_SUBDIR)/gotools && \
37812 $(MAKE) $(FLAGS_TO_PASS) install-strip)
37813
37814@endif gotools
37815
37816# Other targets (info, dvi, pdf, etc.)
37817
37818.PHONY: maybe-info-gotools info-gotools
37819maybe-info-gotools:
37820@if gotools
37821maybe-info-gotools: info-gotools
37822
37823info-gotools: \
37824 configure-gotools
37825 @: $(MAKE); $(unstage)
37826 @[ -f ./gotools/Makefile ] || exit 0; \
37827 r=`${PWD_COMMAND}`; export r; \
37828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37829 $(HOST_EXPORTS) \
37830 for flag in $(EXTRA_HOST_FLAGS) ; do \
37831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37832 done; \
22121df0 37833 echo "Doing info in gotools"; \
1b6c0831
L
37834 (cd $(HOST_SUBDIR)/gotools && \
37835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37837 "RANLIB=$${RANLIB}" \
37838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37839 info) \
37840 || exit 1
37841
37842@endif gotools
37843
37844.PHONY: maybe-dvi-gotools dvi-gotools
37845maybe-dvi-gotools:
37846@if gotools
37847maybe-dvi-gotools: dvi-gotools
37848
37849dvi-gotools: \
37850 configure-gotools
37851 @: $(MAKE); $(unstage)
37852 @[ -f ./gotools/Makefile ] || exit 0; \
37853 r=`${PWD_COMMAND}`; export r; \
37854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37855 $(HOST_EXPORTS) \
37856 for flag in $(EXTRA_HOST_FLAGS) ; do \
37857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37858 done; \
22121df0 37859 echo "Doing dvi in gotools"; \
1b6c0831
L
37860 (cd $(HOST_SUBDIR)/gotools && \
37861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37863 "RANLIB=$${RANLIB}" \
37864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37865 dvi) \
37866 || exit 1
37867
37868@endif gotools
37869
37870.PHONY: maybe-pdf-gotools pdf-gotools
37871maybe-pdf-gotools:
37872@if gotools
37873maybe-pdf-gotools: pdf-gotools
37874
37875pdf-gotools: \
37876 configure-gotools
37877 @: $(MAKE); $(unstage)
37878 @[ -f ./gotools/Makefile ] || exit 0; \
37879 r=`${PWD_COMMAND}`; export r; \
37880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37881 $(HOST_EXPORTS) \
37882 for flag in $(EXTRA_HOST_FLAGS) ; do \
37883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37884 done; \
22121df0 37885 echo "Doing pdf in gotools"; \
1b6c0831
L
37886 (cd $(HOST_SUBDIR)/gotools && \
37887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37889 "RANLIB=$${RANLIB}" \
37890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37891 pdf) \
37892 || exit 1
37893
37894@endif gotools
37895
37896.PHONY: maybe-html-gotools html-gotools
37897maybe-html-gotools:
37898@if gotools
37899maybe-html-gotools: html-gotools
37900
37901html-gotools: \
37902 configure-gotools
37903 @: $(MAKE); $(unstage)
37904 @[ -f ./gotools/Makefile ] || exit 0; \
37905 r=`${PWD_COMMAND}`; export r; \
37906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37907 $(HOST_EXPORTS) \
37908 for flag in $(EXTRA_HOST_FLAGS) ; do \
37909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37910 done; \
22121df0 37911 echo "Doing html in gotools"; \
1b6c0831
L
37912 (cd $(HOST_SUBDIR)/gotools && \
37913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37915 "RANLIB=$${RANLIB}" \
37916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37917 html) \
37918 || exit 1
37919
37920@endif gotools
37921
37922.PHONY: maybe-TAGS-gotools TAGS-gotools
37923maybe-TAGS-gotools:
37924@if gotools
37925maybe-TAGS-gotools: TAGS-gotools
37926
37927TAGS-gotools: \
37928 configure-gotools
37929 @: $(MAKE); $(unstage)
37930 @[ -f ./gotools/Makefile ] || exit 0; \
37931 r=`${PWD_COMMAND}`; export r; \
37932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37933 $(HOST_EXPORTS) \
37934 for flag in $(EXTRA_HOST_FLAGS) ; do \
37935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37936 done; \
22121df0 37937 echo "Doing TAGS in gotools"; \
1b6c0831
L
37938 (cd $(HOST_SUBDIR)/gotools && \
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 TAGS) \
37944 || exit 1
37945
37946@endif gotools
37947
37948.PHONY: maybe-install-info-gotools install-info-gotools
37949maybe-install-info-gotools:
37950@if gotools
37951maybe-install-info-gotools: install-info-gotools
37952
37953install-info-gotools: \
37954 configure-gotools \
37955 info-gotools
37956 @: $(MAKE); $(unstage)
37957 @[ -f ./gotools/Makefile ] || exit 0; \
37958 r=`${PWD_COMMAND}`; export r; \
37959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37960 $(HOST_EXPORTS) \
37961 for flag in $(EXTRA_HOST_FLAGS) ; do \
37962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37963 done; \
22121df0 37964 echo "Doing install-info in gotools"; \
1b6c0831
L
37965 (cd $(HOST_SUBDIR)/gotools && \
37966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37968 "RANLIB=$${RANLIB}" \
37969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37970 install-info) \
37971 || exit 1
37972
37973@endif gotools
37974
37975.PHONY: maybe-install-pdf-gotools install-pdf-gotools
37976maybe-install-pdf-gotools:
37977@if gotools
37978maybe-install-pdf-gotools: install-pdf-gotools
37979
37980install-pdf-gotools: \
37981 configure-gotools \
37982 pdf-gotools
37983 @: $(MAKE); $(unstage)
37984 @[ -f ./gotools/Makefile ] || exit 0; \
37985 r=`${PWD_COMMAND}`; export r; \
37986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37987 $(HOST_EXPORTS) \
37988 for flag in $(EXTRA_HOST_FLAGS) ; do \
37989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37990 done; \
22121df0 37991 echo "Doing install-pdf in gotools"; \
1b6c0831
L
37992 (cd $(HOST_SUBDIR)/gotools && \
37993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37995 "RANLIB=$${RANLIB}" \
37996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37997 install-pdf) \
37998 || exit 1
37999
38000@endif gotools
38001
38002.PHONY: maybe-install-html-gotools install-html-gotools
38003maybe-install-html-gotools:
38004@if gotools
38005maybe-install-html-gotools: install-html-gotools
38006
38007install-html-gotools: \
38008 configure-gotools \
38009 html-gotools
38010 @: $(MAKE); $(unstage)
38011 @[ -f ./gotools/Makefile ] || exit 0; \
38012 r=`${PWD_COMMAND}`; export r; \
38013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38014 $(HOST_EXPORTS) \
38015 for flag in $(EXTRA_HOST_FLAGS) ; do \
38016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38017 done; \
22121df0 38018 echo "Doing install-html in gotools"; \
1b6c0831
L
38019 (cd $(HOST_SUBDIR)/gotools && \
38020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38022 "RANLIB=$${RANLIB}" \
38023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38024 install-html) \
38025 || exit 1
38026
38027@endif gotools
38028
38029.PHONY: maybe-installcheck-gotools installcheck-gotools
38030maybe-installcheck-gotools:
38031@if gotools
38032maybe-installcheck-gotools: installcheck-gotools
38033
38034installcheck-gotools: \
38035 configure-gotools
38036 @: $(MAKE); $(unstage)
38037 @[ -f ./gotools/Makefile ] || exit 0; \
38038 r=`${PWD_COMMAND}`; export r; \
38039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38040 $(HOST_EXPORTS) \
38041 for flag in $(EXTRA_HOST_FLAGS) ; do \
38042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38043 done; \
22121df0 38044 echo "Doing installcheck in gotools"; \
1b6c0831
L
38045 (cd $(HOST_SUBDIR)/gotools && \
38046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38048 "RANLIB=$${RANLIB}" \
38049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38050 installcheck) \
38051 || exit 1
38052
38053@endif gotools
38054
38055.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
38056maybe-mostlyclean-gotools:
38057@if gotools
38058maybe-mostlyclean-gotools: mostlyclean-gotools
38059
38060mostlyclean-gotools:
38061 @: $(MAKE); $(unstage)
38062 @[ -f ./gotools/Makefile ] || exit 0; \
38063 r=`${PWD_COMMAND}`; export r; \
38064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38065 $(HOST_EXPORTS) \
38066 for flag in $(EXTRA_HOST_FLAGS) ; do \
38067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38068 done; \
22121df0 38069 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
38070 (cd $(HOST_SUBDIR)/gotools && \
38071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38073 "RANLIB=$${RANLIB}" \
38074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38075 mostlyclean) \
38076 || exit 1
38077
38078@endif gotools
38079
38080.PHONY: maybe-clean-gotools clean-gotools
38081maybe-clean-gotools:
38082@if gotools
38083maybe-clean-gotools: clean-gotools
38084
38085clean-gotools:
38086 @: $(MAKE); $(unstage)
38087 @[ -f ./gotools/Makefile ] || exit 0; \
38088 r=`${PWD_COMMAND}`; export r; \
38089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38090 $(HOST_EXPORTS) \
38091 for flag in $(EXTRA_HOST_FLAGS) ; do \
38092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38093 done; \
22121df0 38094 echo "Doing clean in gotools"; \
1b6c0831
L
38095 (cd $(HOST_SUBDIR)/gotools && \
38096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38098 "RANLIB=$${RANLIB}" \
38099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38100 clean) \
38101 || exit 1
38102
38103@endif gotools
38104
38105.PHONY: maybe-distclean-gotools distclean-gotools
38106maybe-distclean-gotools:
38107@if gotools
38108maybe-distclean-gotools: distclean-gotools
38109
38110distclean-gotools:
38111 @: $(MAKE); $(unstage)
38112 @[ -f ./gotools/Makefile ] || exit 0; \
38113 r=`${PWD_COMMAND}`; export r; \
38114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38115 $(HOST_EXPORTS) \
38116 for flag in $(EXTRA_HOST_FLAGS) ; do \
38117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38118 done; \
22121df0 38119 echo "Doing distclean in gotools"; \
1b6c0831
L
38120 (cd $(HOST_SUBDIR)/gotools && \
38121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38123 "RANLIB=$${RANLIB}" \
38124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38125 distclean) \
38126 || exit 1
38127
38128@endif gotools
38129
38130.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
38131maybe-maintainer-clean-gotools:
38132@if gotools
38133maybe-maintainer-clean-gotools: maintainer-clean-gotools
38134
38135maintainer-clean-gotools:
38136 @: $(MAKE); $(unstage)
38137 @[ -f ./gotools/Makefile ] || exit 0; \
38138 r=`${PWD_COMMAND}`; export r; \
38139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38140 $(HOST_EXPORTS) \
38141 for flag in $(EXTRA_HOST_FLAGS) ; do \
38142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38143 done; \
22121df0 38144 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
38145 (cd $(HOST_SUBDIR)/gotools && \
38146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38148 "RANLIB=$${RANLIB}" \
38149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38150 maintainer-clean) \
38151 || exit 1
38152
38153@endif gotools
38154
38155
38156
0e65dfba
NA
38157.PHONY: configure-libctf maybe-configure-libctf
38158maybe-configure-libctf:
38159@if gcc-bootstrap
38160configure-libctf: stage_current
38161@endif gcc-bootstrap
38162@if libctf
38163maybe-configure-libctf: configure-libctf
38164configure-libctf:
38165 @r=`${PWD_COMMAND}`; export r; \
38166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38167 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38168 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38169 $(HOST_EXPORTS) \
38170 echo Configuring in $(HOST_SUBDIR)/libctf; \
38171 cd "$(HOST_SUBDIR)/libctf" || exit 1; \
38172 case $(srcdir) in \
38173 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38174 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38175 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38176 esac; \
38177 module_srcdir=libctf; \
38178 $(SHELL) \
38179 $$s/$$module_srcdir/configure \
38180 --srcdir=$${topdir}/$$module_srcdir \
38181 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38182 --target=${target_alias} \
38183 || exit 1
38184@endif libctf
38185
38186
38187
38188.PHONY: configure-stage1-libctf maybe-configure-stage1-libctf
38189maybe-configure-stage1-libctf:
38190@if libctf-bootstrap
38191maybe-configure-stage1-libctf: configure-stage1-libctf
38192configure-stage1-libctf:
38193 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38194 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
38195 @r=`${PWD_COMMAND}`; export r; \
38196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38197 TFLAGS="$(STAGE1_TFLAGS)"; \
38198 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38199 $(HOST_EXPORTS) \
38200 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
38201 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
38202 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
38203 echo Configuring stage 1 in $(HOST_SUBDIR)/libctf; \
38204 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38205 cd $(HOST_SUBDIR)/libctf || exit 1; \
38206 case $(srcdir) in \
38207 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38208 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38209 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38210 esac; \
38211 module_srcdir=libctf; \
38212 $(SHELL) $$s/$$module_srcdir/configure \
38213 --srcdir=$${topdir}/$$module_srcdir \
38214 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38215 --target=${target_alias} \
38216 \
38217 $(STAGE1_CONFIGURE_FLAGS)
38218@endif libctf-bootstrap
38219
38220.PHONY: configure-stage2-libctf maybe-configure-stage2-libctf
38221maybe-configure-stage2-libctf:
38222@if libctf-bootstrap
38223maybe-configure-stage2-libctf: configure-stage2-libctf
38224configure-stage2-libctf:
38225 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38226 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
38227 @r=`${PWD_COMMAND}`; export r; \
38228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38229 TFLAGS="$(STAGE2_TFLAGS)"; \
38230 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38231 $(HOST_EXPORTS) \
38232 $(POSTSTAGE1_HOST_EXPORTS) \
38233 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
38234 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
38235 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
38236 echo Configuring stage 2 in $(HOST_SUBDIR)/libctf; \
38237 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38238 cd $(HOST_SUBDIR)/libctf || exit 1; \
38239 case $(srcdir) in \
38240 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38241 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38242 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38243 esac; \
38244 module_srcdir=libctf; \
38245 $(SHELL) $$s/$$module_srcdir/configure \
38246 --srcdir=$${topdir}/$$module_srcdir \
38247 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38248 --target=${target_alias} \
38249 --with-build-libsubdir=$(HOST_SUBDIR) \
38250 $(STAGE2_CONFIGURE_FLAGS)
38251@endif libctf-bootstrap
38252
38253.PHONY: configure-stage3-libctf maybe-configure-stage3-libctf
38254maybe-configure-stage3-libctf:
38255@if libctf-bootstrap
38256maybe-configure-stage3-libctf: configure-stage3-libctf
38257configure-stage3-libctf:
38258 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38259 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
38260 @r=`${PWD_COMMAND}`; export r; \
38261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38262 TFLAGS="$(STAGE3_TFLAGS)"; \
38263 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38264 $(HOST_EXPORTS) \
38265 $(POSTSTAGE1_HOST_EXPORTS) \
38266 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
38267 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
38268 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
38269 echo Configuring stage 3 in $(HOST_SUBDIR)/libctf; \
38270 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38271 cd $(HOST_SUBDIR)/libctf || exit 1; \
38272 case $(srcdir) in \
38273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38274 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38276 esac; \
38277 module_srcdir=libctf; \
38278 $(SHELL) $$s/$$module_srcdir/configure \
38279 --srcdir=$${topdir}/$$module_srcdir \
38280 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38281 --target=${target_alias} \
38282 --with-build-libsubdir=$(HOST_SUBDIR) \
38283 $(STAGE3_CONFIGURE_FLAGS)
38284@endif libctf-bootstrap
38285
38286.PHONY: configure-stage4-libctf maybe-configure-stage4-libctf
38287maybe-configure-stage4-libctf:
38288@if libctf-bootstrap
38289maybe-configure-stage4-libctf: configure-stage4-libctf
38290configure-stage4-libctf:
38291 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38292 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
38293 @r=`${PWD_COMMAND}`; export r; \
38294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38295 TFLAGS="$(STAGE4_TFLAGS)"; \
38296 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38297 $(HOST_EXPORTS) \
38298 $(POSTSTAGE1_HOST_EXPORTS) \
38299 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
38300 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
38301 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
38302 echo Configuring stage 4 in $(HOST_SUBDIR)/libctf; \
38303 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38304 cd $(HOST_SUBDIR)/libctf || exit 1; \
38305 case $(srcdir) in \
38306 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38307 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38308 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38309 esac; \
38310 module_srcdir=libctf; \
38311 $(SHELL) $$s/$$module_srcdir/configure \
38312 --srcdir=$${topdir}/$$module_srcdir \
38313 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38314 --target=${target_alias} \
38315 --with-build-libsubdir=$(HOST_SUBDIR) \
38316 $(STAGE4_CONFIGURE_FLAGS)
38317@endif libctf-bootstrap
38318
38319.PHONY: configure-stageprofile-libctf maybe-configure-stageprofile-libctf
38320maybe-configure-stageprofile-libctf:
38321@if libctf-bootstrap
38322maybe-configure-stageprofile-libctf: configure-stageprofile-libctf
38323configure-stageprofile-libctf:
38324 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38325 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
38326 @r=`${PWD_COMMAND}`; export r; \
38327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38328 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38329 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38330 $(HOST_EXPORTS) \
38331 $(POSTSTAGE1_HOST_EXPORTS) \
38332 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
38333 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
38334 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
38335 echo Configuring stage profile in $(HOST_SUBDIR)/libctf; \
38336 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38337 cd $(HOST_SUBDIR)/libctf || exit 1; \
38338 case $(srcdir) in \
38339 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38340 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38341 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38342 esac; \
38343 module_srcdir=libctf; \
38344 $(SHELL) $$s/$$module_srcdir/configure \
38345 --srcdir=$${topdir}/$$module_srcdir \
38346 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38347 --target=${target_alias} \
38348 --with-build-libsubdir=$(HOST_SUBDIR) \
38349 $(STAGEprofile_CONFIGURE_FLAGS)
38350@endif libctf-bootstrap
38351
f948b2de
NC
38352.PHONY: configure-stagetrain-libctf maybe-configure-stagetrain-libctf
38353maybe-configure-stagetrain-libctf:
38354@if libctf-bootstrap
38355maybe-configure-stagetrain-libctf: configure-stagetrain-libctf
38356configure-stagetrain-libctf:
38357 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
38358 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
38359 @r=`${PWD_COMMAND}`; export r; \
38360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38361 TFLAGS="$(STAGEtrain_TFLAGS)"; \
38362 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38363 $(HOST_EXPORTS) \
38364 $(POSTSTAGE1_HOST_EXPORTS) \
38365 CFLAGS="$(STAGEtrain_CFLAGS)"; export CFLAGS; \
38366 CXXFLAGS="$(STAGEtrain_CXXFLAGS)"; export CXXFLAGS; \
38367 LIBCFLAGS="$(STAGEtrain_CFLAGS)"; export LIBCFLAGS; \
38368 echo Configuring stage train in $(HOST_SUBDIR)/libctf; \
38369 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38370 cd $(HOST_SUBDIR)/libctf || exit 1; \
38371 case $(srcdir) in \
38372 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38373 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38374 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38375 esac; \
38376 module_srcdir=libctf; \
38377 $(SHELL) $$s/$$module_srcdir/configure \
38378 --srcdir=$${topdir}/$$module_srcdir \
38379 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38380 --target=${target_alias} \
38381 --with-build-libsubdir=$(HOST_SUBDIR) \
38382 $(STAGEtrain_CONFIGURE_FLAGS)
38383@endif libctf-bootstrap
38384
0e65dfba
NA
38385.PHONY: configure-stagefeedback-libctf maybe-configure-stagefeedback-libctf
38386maybe-configure-stagefeedback-libctf:
38387@if libctf-bootstrap
38388maybe-configure-stagefeedback-libctf: configure-stagefeedback-libctf
38389configure-stagefeedback-libctf:
38390 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38391 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
38392 @r=`${PWD_COMMAND}`; export r; \
38393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38394 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38395 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38396 $(HOST_EXPORTS) \
38397 $(POSTSTAGE1_HOST_EXPORTS) \
38398 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
38399 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
38400 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
38401 echo Configuring stage feedback in $(HOST_SUBDIR)/libctf; \
38402 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38403 cd $(HOST_SUBDIR)/libctf || exit 1; \
38404 case $(srcdir) in \
38405 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38406 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38407 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38408 esac; \
38409 module_srcdir=libctf; \
38410 $(SHELL) $$s/$$module_srcdir/configure \
38411 --srcdir=$${topdir}/$$module_srcdir \
38412 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38413 --target=${target_alias} \
38414 --with-build-libsubdir=$(HOST_SUBDIR) \
38415 $(STAGEfeedback_CONFIGURE_FLAGS)
38416@endif libctf-bootstrap
38417
f948b2de
NC
38418.PHONY: configure-stageautoprofile-libctf maybe-configure-stageautoprofile-libctf
38419maybe-configure-stageautoprofile-libctf:
38420@if libctf-bootstrap
38421maybe-configure-stageautoprofile-libctf: configure-stageautoprofile-libctf
38422configure-stageautoprofile-libctf:
38423 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
38424 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
38425 @r=`${PWD_COMMAND}`; export r; \
38426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38427 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
38428 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38429 $(HOST_EXPORTS) \
38430 $(POSTSTAGE1_HOST_EXPORTS) \
38431 CFLAGS="$(STAGEautoprofile_CFLAGS)"; export CFLAGS; \
38432 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)"; export CXXFLAGS; \
38433 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)"; export LIBCFLAGS; \
38434 echo Configuring stage autoprofile in $(HOST_SUBDIR)/libctf; \
38435 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38436 cd $(HOST_SUBDIR)/libctf || exit 1; \
38437 case $(srcdir) in \
38438 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38439 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38440 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38441 esac; \
38442 module_srcdir=libctf; \
38443 $(SHELL) $$s/$$module_srcdir/configure \
38444 --srcdir=$${topdir}/$$module_srcdir \
38445 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38446 --target=${target_alias} \
38447 --with-build-libsubdir=$(HOST_SUBDIR) \
38448 $(STAGEautoprofile_CONFIGURE_FLAGS)
38449@endif libctf-bootstrap
38450
38451.PHONY: configure-stageautofeedback-libctf maybe-configure-stageautofeedback-libctf
38452maybe-configure-stageautofeedback-libctf:
38453@if libctf-bootstrap
38454maybe-configure-stageautofeedback-libctf: configure-stageautofeedback-libctf
38455configure-stageautofeedback-libctf:
38456 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
38457 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
38458 @r=`${PWD_COMMAND}`; export r; \
38459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38460 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
38461 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
38462 $(HOST_EXPORTS) \
38463 $(POSTSTAGE1_HOST_EXPORTS) \
38464 CFLAGS="$(STAGEautofeedback_CFLAGS)"; export CFLAGS; \
38465 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)"; export CXXFLAGS; \
38466 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)"; export LIBCFLAGS; \
38467 echo Configuring stage autofeedback in $(HOST_SUBDIR)/libctf; \
38468 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
38469 cd $(HOST_SUBDIR)/libctf || exit 1; \
38470 case $(srcdir) in \
38471 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38472 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
38473 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38474 esac; \
38475 module_srcdir=libctf; \
38476 $(SHELL) $$s/$$module_srcdir/configure \
38477 --srcdir=$${topdir}/$$module_srcdir \
38478 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
38479 --target=${target_alias} \
38480 --with-build-libsubdir=$(HOST_SUBDIR) \
38481 $(STAGEautofeedback_CONFIGURE_FLAGS)
38482@endif libctf-bootstrap
38483
0e65dfba
NA
38484
38485
38486
38487
38488.PHONY: all-libctf maybe-all-libctf
38489maybe-all-libctf:
38490@if gcc-bootstrap
38491all-libctf: stage_current
38492@endif gcc-bootstrap
38493@if libctf
38494TARGET-libctf=all
38495maybe-all-libctf: all-libctf
38496all-libctf: configure-libctf
38497 @r=`${PWD_COMMAND}`; export r; \
38498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38499 $(HOST_EXPORTS) \
38500 (cd $(HOST_SUBDIR)/libctf && \
38501 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
38502 $(TARGET-libctf))
38503@endif libctf
38504
38505
38506
38507.PHONY: all-stage1-libctf maybe-all-stage1-libctf
38508.PHONY: clean-stage1-libctf maybe-clean-stage1-libctf
38509maybe-all-stage1-libctf:
38510maybe-clean-stage1-libctf:
38511@if libctf-bootstrap
38512maybe-all-stage1-libctf: all-stage1-libctf
38513all-stage1: all-stage1-libctf
38514TARGET-stage1-libctf = $(TARGET-libctf)
38515all-stage1-libctf: configure-stage1-libctf
38516 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38517 @r=`${PWD_COMMAND}`; export r; \
38518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38519 TFLAGS="$(STAGE1_TFLAGS)"; \
38520 $(HOST_EXPORTS) \
38521 cd $(HOST_SUBDIR)/libctf && \
38522 \
38523 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38524 CFLAGS="$(STAGE1_CFLAGS)" \
f948b2de 38525 GENERATOR_CFLAGS="$(STAGE1_GENERATOR_CFLAGS)" \
0e65dfba
NA
38526 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
38527 LIBCFLAGS="$(LIBCFLAGS)" \
38528 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38529 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38530 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38531 $(EXTRA_HOST_FLAGS) \
38532 $(STAGE1_FLAGS_TO_PASS) \
38533 TFLAGS="$(STAGE1_TFLAGS)" \
38534 $(TARGET-stage1-libctf)
38535
38536maybe-clean-stage1-libctf: clean-stage1-libctf
38537clean-stage1: clean-stage1-libctf
38538clean-stage1-libctf:
38539 @if [ $(current_stage) = stage1 ]; then \
38540 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
38541 else \
38542 [ -f $(HOST_SUBDIR)/stage1-libctf/Makefile ] || exit 0; \
38543 $(MAKE) stage1-start; \
38544 fi; \
38545 cd $(HOST_SUBDIR)/libctf && \
38546 $(MAKE) $(EXTRA_HOST_FLAGS) \
38547 $(STAGE1_FLAGS_TO_PASS) clean
38548@endif libctf-bootstrap
38549
38550
38551.PHONY: all-stage2-libctf maybe-all-stage2-libctf
38552.PHONY: clean-stage2-libctf maybe-clean-stage2-libctf
38553maybe-all-stage2-libctf:
38554maybe-clean-stage2-libctf:
38555@if libctf-bootstrap
38556maybe-all-stage2-libctf: all-stage2-libctf
38557all-stage2: all-stage2-libctf
38558TARGET-stage2-libctf = $(TARGET-libctf)
38559all-stage2-libctf: configure-stage2-libctf
38560 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38561 @r=`${PWD_COMMAND}`; export r; \
38562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38563 TFLAGS="$(STAGE2_TFLAGS)"; \
38564 $(HOST_EXPORTS) \
38565 $(POSTSTAGE1_HOST_EXPORTS) \
38566 cd $(HOST_SUBDIR)/libctf && \
38567 \
38568 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38569 CFLAGS="$(STAGE2_CFLAGS)" \
f948b2de 38570 GENERATOR_CFLAGS="$(STAGE2_GENERATOR_CFLAGS)" \
0e65dfba
NA
38571 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
38572 LIBCFLAGS="$(STAGE2_CFLAGS)" \
38573 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38574 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38575 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38576 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
38577 TFLAGS="$(STAGE2_TFLAGS)" \
38578 $(TARGET-stage2-libctf)
38579
38580maybe-clean-stage2-libctf: clean-stage2-libctf
38581clean-stage2: clean-stage2-libctf
38582clean-stage2-libctf:
38583 @if [ $(current_stage) = stage2 ]; then \
38584 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
38585 else \
38586 [ -f $(HOST_SUBDIR)/stage2-libctf/Makefile ] || exit 0; \
38587 $(MAKE) stage2-start; \
38588 fi; \
38589 cd $(HOST_SUBDIR)/libctf && \
38590 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
38591@endif libctf-bootstrap
38592
38593
38594.PHONY: all-stage3-libctf maybe-all-stage3-libctf
38595.PHONY: clean-stage3-libctf maybe-clean-stage3-libctf
38596maybe-all-stage3-libctf:
38597maybe-clean-stage3-libctf:
38598@if libctf-bootstrap
38599maybe-all-stage3-libctf: all-stage3-libctf
38600all-stage3: all-stage3-libctf
38601TARGET-stage3-libctf = $(TARGET-libctf)
38602all-stage3-libctf: configure-stage3-libctf
38603 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38604 @r=`${PWD_COMMAND}`; export r; \
38605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38606 TFLAGS="$(STAGE3_TFLAGS)"; \
38607 $(HOST_EXPORTS) \
38608 $(POSTSTAGE1_HOST_EXPORTS) \
38609 cd $(HOST_SUBDIR)/libctf && \
38610 \
38611 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38612 CFLAGS="$(STAGE3_CFLAGS)" \
f948b2de 38613 GENERATOR_CFLAGS="$(STAGE3_GENERATOR_CFLAGS)" \
0e65dfba
NA
38614 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
38615 LIBCFLAGS="$(STAGE3_CFLAGS)" \
38616 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38617 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38618 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38619 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
38620 TFLAGS="$(STAGE3_TFLAGS)" \
38621 $(TARGET-stage3-libctf)
38622
38623maybe-clean-stage3-libctf: clean-stage3-libctf
38624clean-stage3: clean-stage3-libctf
38625clean-stage3-libctf:
38626 @if [ $(current_stage) = stage3 ]; then \
38627 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
38628 else \
38629 [ -f $(HOST_SUBDIR)/stage3-libctf/Makefile ] || exit 0; \
38630 $(MAKE) stage3-start; \
38631 fi; \
38632 cd $(HOST_SUBDIR)/libctf && \
38633 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
38634@endif libctf-bootstrap
38635
38636
38637.PHONY: all-stage4-libctf maybe-all-stage4-libctf
38638.PHONY: clean-stage4-libctf maybe-clean-stage4-libctf
38639maybe-all-stage4-libctf:
38640maybe-clean-stage4-libctf:
38641@if libctf-bootstrap
38642maybe-all-stage4-libctf: all-stage4-libctf
38643all-stage4: all-stage4-libctf
38644TARGET-stage4-libctf = $(TARGET-libctf)
38645all-stage4-libctf: configure-stage4-libctf
38646 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38647 @r=`${PWD_COMMAND}`; export r; \
38648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38649 TFLAGS="$(STAGE4_TFLAGS)"; \
38650 $(HOST_EXPORTS) \
38651 $(POSTSTAGE1_HOST_EXPORTS) \
38652 cd $(HOST_SUBDIR)/libctf && \
38653 \
38654 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38655 CFLAGS="$(STAGE4_CFLAGS)" \
f948b2de 38656 GENERATOR_CFLAGS="$(STAGE4_GENERATOR_CFLAGS)" \
0e65dfba
NA
38657 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
38658 LIBCFLAGS="$(STAGE4_CFLAGS)" \
38659 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38660 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38661 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38662 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
38663 TFLAGS="$(STAGE4_TFLAGS)" \
38664 $(TARGET-stage4-libctf)
38665
38666maybe-clean-stage4-libctf: clean-stage4-libctf
38667clean-stage4: clean-stage4-libctf
38668clean-stage4-libctf:
38669 @if [ $(current_stage) = stage4 ]; then \
38670 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
38671 else \
38672 [ -f $(HOST_SUBDIR)/stage4-libctf/Makefile ] || exit 0; \
38673 $(MAKE) stage4-start; \
38674 fi; \
38675 cd $(HOST_SUBDIR)/libctf && \
38676 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
38677@endif libctf-bootstrap
38678
38679
38680.PHONY: all-stageprofile-libctf maybe-all-stageprofile-libctf
38681.PHONY: clean-stageprofile-libctf maybe-clean-stageprofile-libctf
38682maybe-all-stageprofile-libctf:
38683maybe-clean-stageprofile-libctf:
38684@if libctf-bootstrap
38685maybe-all-stageprofile-libctf: all-stageprofile-libctf
38686all-stageprofile: all-stageprofile-libctf
38687TARGET-stageprofile-libctf = $(TARGET-libctf)
38688all-stageprofile-libctf: configure-stageprofile-libctf
38689 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38690 @r=`${PWD_COMMAND}`; export r; \
38691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38692 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38693 $(HOST_EXPORTS) \
38694 $(POSTSTAGE1_HOST_EXPORTS) \
38695 cd $(HOST_SUBDIR)/libctf && \
38696 \
38697 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38698 CFLAGS="$(STAGEprofile_CFLAGS)" \
f948b2de 38699 GENERATOR_CFLAGS="$(STAGEprofile_GENERATOR_CFLAGS)" \
0e65dfba
NA
38700 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
38701 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
38702 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38703 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38704 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38705 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
38706 TFLAGS="$(STAGEprofile_TFLAGS)" \
38707 $(TARGET-stageprofile-libctf)
38708
38709maybe-clean-stageprofile-libctf: clean-stageprofile-libctf
38710clean-stageprofile: clean-stageprofile-libctf
38711clean-stageprofile-libctf:
38712 @if [ $(current_stage) = stageprofile ]; then \
38713 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
38714 else \
38715 [ -f $(HOST_SUBDIR)/stageprofile-libctf/Makefile ] || exit 0; \
38716 $(MAKE) stageprofile-start; \
38717 fi; \
38718 cd $(HOST_SUBDIR)/libctf && \
38719 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
38720@endif libctf-bootstrap
38721
38722
f948b2de
NC
38723.PHONY: all-stagetrain-libctf maybe-all-stagetrain-libctf
38724.PHONY: clean-stagetrain-libctf maybe-clean-stagetrain-libctf
38725maybe-all-stagetrain-libctf:
38726maybe-clean-stagetrain-libctf:
38727@if libctf-bootstrap
38728maybe-all-stagetrain-libctf: all-stagetrain-libctf
38729all-stagetrain: all-stagetrain-libctf
38730TARGET-stagetrain-libctf = $(TARGET-libctf)
38731all-stagetrain-libctf: configure-stagetrain-libctf
38732 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
38733 @r=`${PWD_COMMAND}`; export r; \
38734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38735 TFLAGS="$(STAGEtrain_TFLAGS)"; \
38736 $(HOST_EXPORTS) \
38737 $(POSTSTAGE1_HOST_EXPORTS) \
38738 cd $(HOST_SUBDIR)/libctf && \
38739 \
38740 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38741 CFLAGS="$(STAGEtrain_CFLAGS)" \
38742 GENERATOR_CFLAGS="$(STAGEtrain_GENERATOR_CFLAGS)" \
38743 CXXFLAGS="$(STAGEtrain_CXXFLAGS)" \
38744 LIBCFLAGS="$(STAGEtrain_CFLAGS)" \
38745 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38746 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38747 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38748 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
38749 TFLAGS="$(STAGEtrain_TFLAGS)" \
38750 $(TARGET-stagetrain-libctf)
38751
38752maybe-clean-stagetrain-libctf: clean-stagetrain-libctf
38753clean-stagetrain: clean-stagetrain-libctf
38754clean-stagetrain-libctf:
38755 @if [ $(current_stage) = stagetrain ]; then \
38756 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
38757 else \
38758 [ -f $(HOST_SUBDIR)/stagetrain-libctf/Makefile ] || exit 0; \
38759 $(MAKE) stagetrain-start; \
38760 fi; \
38761 cd $(HOST_SUBDIR)/libctf && \
38762 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
38763@endif libctf-bootstrap
38764
38765
0e65dfba
NA
38766.PHONY: all-stagefeedback-libctf maybe-all-stagefeedback-libctf
38767.PHONY: clean-stagefeedback-libctf maybe-clean-stagefeedback-libctf
38768maybe-all-stagefeedback-libctf:
38769maybe-clean-stagefeedback-libctf:
38770@if libctf-bootstrap
38771maybe-all-stagefeedback-libctf: all-stagefeedback-libctf
38772all-stagefeedback: all-stagefeedback-libctf
38773TARGET-stagefeedback-libctf = $(TARGET-libctf)
38774all-stagefeedback-libctf: configure-stagefeedback-libctf
38775 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38776 @r=`${PWD_COMMAND}`; export r; \
38777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38778 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38779 $(HOST_EXPORTS) \
38780 $(POSTSTAGE1_HOST_EXPORTS) \
38781 cd $(HOST_SUBDIR)/libctf && \
38782 \
38783 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38784 CFLAGS="$(STAGEfeedback_CFLAGS)" \
f948b2de 38785 GENERATOR_CFLAGS="$(STAGEfeedback_GENERATOR_CFLAGS)" \
0e65dfba
NA
38786 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
38787 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
38788 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38789 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38790 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38791 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
38792 TFLAGS="$(STAGEfeedback_TFLAGS)" \
38793 $(TARGET-stagefeedback-libctf)
38794
38795maybe-clean-stagefeedback-libctf: clean-stagefeedback-libctf
38796clean-stagefeedback: clean-stagefeedback-libctf
38797clean-stagefeedback-libctf:
38798 @if [ $(current_stage) = stagefeedback ]; then \
38799 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
38800 else \
38801 [ -f $(HOST_SUBDIR)/stagefeedback-libctf/Makefile ] || exit 0; \
38802 $(MAKE) stagefeedback-start; \
38803 fi; \
38804 cd $(HOST_SUBDIR)/libctf && \
38805 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
38806@endif libctf-bootstrap
38807
38808
f948b2de
NC
38809.PHONY: all-stageautoprofile-libctf maybe-all-stageautoprofile-libctf
38810.PHONY: clean-stageautoprofile-libctf maybe-clean-stageautoprofile-libctf
38811maybe-all-stageautoprofile-libctf:
38812maybe-clean-stageautoprofile-libctf:
38813@if libctf-bootstrap
38814maybe-all-stageautoprofile-libctf: all-stageautoprofile-libctf
38815all-stageautoprofile: all-stageautoprofile-libctf
38816TARGET-stageautoprofile-libctf = $(TARGET-libctf)
38817all-stageautoprofile-libctf: configure-stageautoprofile-libctf
38818 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
38819 @r=`${PWD_COMMAND}`; export r; \
38820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38821 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
38822 $(HOST_EXPORTS) \
38823 $(POSTSTAGE1_HOST_EXPORTS) \
38824 cd $(HOST_SUBDIR)/libctf && \
38825 $$s/gcc/config/i386/$(AUTO_PROFILE) \
38826 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38827 CFLAGS="$(STAGEautoprofile_CFLAGS)" \
38828 GENERATOR_CFLAGS="$(STAGEautoprofile_GENERATOR_CFLAGS)" \
38829 CXXFLAGS="$(STAGEautoprofile_CXXFLAGS)" \
38830 LIBCFLAGS="$(STAGEautoprofile_CFLAGS)" \
38831 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38832 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38833 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38834 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
38835 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
38836 $(TARGET-stageautoprofile-libctf)
38837
38838maybe-clean-stageautoprofile-libctf: clean-stageautoprofile-libctf
38839clean-stageautoprofile: clean-stageautoprofile-libctf
38840clean-stageautoprofile-libctf:
38841 @if [ $(current_stage) = stageautoprofile ]; then \
38842 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
38843 else \
38844 [ -f $(HOST_SUBDIR)/stageautoprofile-libctf/Makefile ] || exit 0; \
38845 $(MAKE) stageautoprofile-start; \
38846 fi; \
38847 cd $(HOST_SUBDIR)/libctf && \
38848 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
38849@endif libctf-bootstrap
38850
38851
38852.PHONY: all-stageautofeedback-libctf maybe-all-stageautofeedback-libctf
38853.PHONY: clean-stageautofeedback-libctf maybe-clean-stageautofeedback-libctf
38854maybe-all-stageautofeedback-libctf:
38855maybe-clean-stageautofeedback-libctf:
38856@if libctf-bootstrap
38857maybe-all-stageautofeedback-libctf: all-stageautofeedback-libctf
38858all-stageautofeedback: all-stageautofeedback-libctf
38859TARGET-stageautofeedback-libctf = $(TARGET-libctf)
38860all-stageautofeedback-libctf: configure-stageautofeedback-libctf
38861 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
38862 @r=`${PWD_COMMAND}`; export r; \
38863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38864 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
38865 $(HOST_EXPORTS) \
38866 $(POSTSTAGE1_HOST_EXPORTS) \
38867 cd $(HOST_SUBDIR)/libctf && \
38868 \
38869 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38870 CFLAGS="$(STAGEautofeedback_CFLAGS)" \
38871 GENERATOR_CFLAGS="$(STAGEautofeedback_GENERATOR_CFLAGS)" \
38872 CXXFLAGS="$(STAGEautofeedback_CXXFLAGS)" \
38873 LIBCFLAGS="$(STAGEautofeedback_CFLAGS)" \
38874 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38875 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38876 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38877 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
38878 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
38879 $(TARGET-stageautofeedback-libctf)
38880
38881maybe-clean-stageautofeedback-libctf: clean-stageautofeedback-libctf
38882clean-stageautofeedback: clean-stageautofeedback-libctf
38883clean-stageautofeedback-libctf:
38884 @if [ $(current_stage) = stageautofeedback ]; then \
38885 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
38886 else \
38887 [ -f $(HOST_SUBDIR)/stageautofeedback-libctf/Makefile ] || exit 0; \
38888 $(MAKE) stageautofeedback-start; \
38889 fi; \
38890 cd $(HOST_SUBDIR)/libctf && \
38891 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
38892@endif libctf-bootstrap
38893
38894
0e65dfba
NA
38895
38896
38897
38898.PHONY: check-libctf maybe-check-libctf
38899maybe-check-libctf:
38900@if libctf
38901maybe-check-libctf: check-libctf
38902
38903check-libctf:
38904
38905@endif libctf
38906
38907.PHONY: install-libctf maybe-install-libctf
38908maybe-install-libctf:
38909@if libctf
38910maybe-install-libctf: install-libctf
38911
38912install-libctf:
38913
38914@endif libctf
38915
38916.PHONY: install-strip-libctf maybe-install-strip-libctf
38917maybe-install-strip-libctf:
38918@if libctf
38919maybe-install-strip-libctf: install-strip-libctf
38920
38921install-strip-libctf:
38922
38923@endif libctf
38924
38925# Other targets (info, dvi, pdf, etc.)
38926
38927.PHONY: maybe-info-libctf info-libctf
38928maybe-info-libctf:
38929@if libctf
38930maybe-info-libctf: info-libctf
38931
38932info-libctf: \
38933 configure-libctf
38934 @[ -f ./libctf/Makefile ] || exit 0; \
38935 r=`${PWD_COMMAND}`; export r; \
38936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38937 $(HOST_EXPORTS) \
38938 for flag in $(EXTRA_HOST_FLAGS) ; do \
38939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38940 done; \
38941 echo "Doing info in libctf"; \
38942 (cd $(HOST_SUBDIR)/libctf && \
38943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38945 "RANLIB=$${RANLIB}" \
38946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38947 info) \
38948 || exit 1
38949
38950@endif libctf
38951
38952.PHONY: maybe-dvi-libctf dvi-libctf
38953maybe-dvi-libctf:
38954@if libctf
38955maybe-dvi-libctf: dvi-libctf
38956
38957dvi-libctf: \
38958 configure-libctf
38959 @[ -f ./libctf/Makefile ] || exit 0; \
38960 r=`${PWD_COMMAND}`; export r; \
38961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38962 $(HOST_EXPORTS) \
38963 for flag in $(EXTRA_HOST_FLAGS) ; do \
38964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38965 done; \
38966 echo "Doing dvi in libctf"; \
38967 (cd $(HOST_SUBDIR)/libctf && \
38968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38970 "RANLIB=$${RANLIB}" \
38971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38972 dvi) \
38973 || exit 1
38974
38975@endif libctf
38976
38977.PHONY: maybe-pdf-libctf pdf-libctf
38978maybe-pdf-libctf:
38979@if libctf
38980maybe-pdf-libctf: pdf-libctf
38981
38982pdf-libctf: \
38983 configure-libctf
38984 @[ -f ./libctf/Makefile ] || exit 0; \
38985 r=`${PWD_COMMAND}`; export r; \
38986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38987 $(HOST_EXPORTS) \
38988 for flag in $(EXTRA_HOST_FLAGS) ; do \
38989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38990 done; \
38991 echo "Doing pdf in libctf"; \
38992 (cd $(HOST_SUBDIR)/libctf && \
38993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38995 "RANLIB=$${RANLIB}" \
38996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38997 pdf) \
38998 || exit 1
38999
39000@endif libctf
39001
39002.PHONY: maybe-html-libctf html-libctf
39003maybe-html-libctf:
39004@if libctf
39005maybe-html-libctf: html-libctf
39006
39007html-libctf: \
39008 configure-libctf
39009 @[ -f ./libctf/Makefile ] || exit 0; \
39010 r=`${PWD_COMMAND}`; export r; \
39011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39012 $(HOST_EXPORTS) \
39013 for flag in $(EXTRA_HOST_FLAGS) ; do \
39014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39015 done; \
39016 echo "Doing html in libctf"; \
39017 (cd $(HOST_SUBDIR)/libctf && \
39018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39020 "RANLIB=$${RANLIB}" \
39021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39022 html) \
39023 || exit 1
39024
39025@endif libctf
39026
39027.PHONY: maybe-TAGS-libctf TAGS-libctf
39028maybe-TAGS-libctf:
39029@if libctf
39030maybe-TAGS-libctf: TAGS-libctf
39031
39032TAGS-libctf: \
39033 configure-libctf
39034 @[ -f ./libctf/Makefile ] || exit 0; \
39035 r=`${PWD_COMMAND}`; export r; \
39036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39037 $(HOST_EXPORTS) \
39038 for flag in $(EXTRA_HOST_FLAGS) ; do \
39039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39040 done; \
39041 echo "Doing TAGS in libctf"; \
39042 (cd $(HOST_SUBDIR)/libctf && \
39043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39045 "RANLIB=$${RANLIB}" \
39046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39047 TAGS) \
39048 || exit 1
39049
39050@endif libctf
39051
39052.PHONY: maybe-install-info-libctf install-info-libctf
39053maybe-install-info-libctf:
39054@if libctf
39055maybe-install-info-libctf: install-info-libctf
39056
39057install-info-libctf: \
39058 configure-libctf \
39059 info-libctf
39060 @[ -f ./libctf/Makefile ] || exit 0; \
39061 r=`${PWD_COMMAND}`; export r; \
39062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39063 $(HOST_EXPORTS) \
39064 for flag in $(EXTRA_HOST_FLAGS) ; do \
39065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39066 done; \
39067 echo "Doing install-info in libctf"; \
39068 (cd $(HOST_SUBDIR)/libctf && \
39069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39071 "RANLIB=$${RANLIB}" \
39072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39073 install-info) \
39074 || exit 1
39075
39076@endif libctf
39077
39078.PHONY: maybe-install-pdf-libctf install-pdf-libctf
39079maybe-install-pdf-libctf:
39080@if libctf
39081maybe-install-pdf-libctf: install-pdf-libctf
39082
39083install-pdf-libctf: \
39084 configure-libctf \
39085 pdf-libctf
39086 @[ -f ./libctf/Makefile ] || exit 0; \
39087 r=`${PWD_COMMAND}`; export r; \
39088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39089 $(HOST_EXPORTS) \
39090 for flag in $(EXTRA_HOST_FLAGS) ; do \
39091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39092 done; \
39093 echo "Doing install-pdf in libctf"; \
39094 (cd $(HOST_SUBDIR)/libctf && \
39095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39097 "RANLIB=$${RANLIB}" \
39098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39099 install-pdf) \
39100 || exit 1
39101
39102@endif libctf
39103
39104.PHONY: maybe-install-html-libctf install-html-libctf
39105maybe-install-html-libctf:
39106@if libctf
39107maybe-install-html-libctf: install-html-libctf
39108
39109install-html-libctf: \
39110 configure-libctf \
39111 html-libctf
39112 @[ -f ./libctf/Makefile ] || exit 0; \
39113 r=`${PWD_COMMAND}`; export r; \
39114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39115 $(HOST_EXPORTS) \
39116 for flag in $(EXTRA_HOST_FLAGS) ; do \
39117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39118 done; \
39119 echo "Doing install-html in libctf"; \
39120 (cd $(HOST_SUBDIR)/libctf && \
39121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39123 "RANLIB=$${RANLIB}" \
39124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39125 install-html) \
39126 || exit 1
39127
39128@endif libctf
39129
39130.PHONY: maybe-installcheck-libctf installcheck-libctf
39131maybe-installcheck-libctf:
39132@if libctf
39133maybe-installcheck-libctf: installcheck-libctf
39134
39135installcheck-libctf: \
39136 configure-libctf
39137 @[ -f ./libctf/Makefile ] || exit 0; \
39138 r=`${PWD_COMMAND}`; export r; \
39139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39140 $(HOST_EXPORTS) \
39141 for flag in $(EXTRA_HOST_FLAGS) ; do \
39142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39143 done; \
39144 echo "Doing installcheck in libctf"; \
39145 (cd $(HOST_SUBDIR)/libctf && \
39146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39148 "RANLIB=$${RANLIB}" \
39149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39150 installcheck) \
39151 || exit 1
39152
39153@endif libctf
39154
39155.PHONY: maybe-mostlyclean-libctf mostlyclean-libctf
39156maybe-mostlyclean-libctf:
39157@if libctf
39158maybe-mostlyclean-libctf: mostlyclean-libctf
39159
39160mostlyclean-libctf:
39161 @[ -f ./libctf/Makefile ] || exit 0; \
39162 r=`${PWD_COMMAND}`; export r; \
39163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39164 $(HOST_EXPORTS) \
39165 for flag in $(EXTRA_HOST_FLAGS) ; do \
39166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39167 done; \
39168 echo "Doing mostlyclean in libctf"; \
39169 (cd $(HOST_SUBDIR)/libctf && \
39170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39172 "RANLIB=$${RANLIB}" \
39173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39174 mostlyclean) \
39175 || exit 1
39176
39177@endif libctf
39178
39179.PHONY: maybe-clean-libctf clean-libctf
39180maybe-clean-libctf:
39181@if libctf
39182maybe-clean-libctf: clean-libctf
39183
39184clean-libctf:
39185 @[ -f ./libctf/Makefile ] || exit 0; \
39186 r=`${PWD_COMMAND}`; export r; \
39187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39188 $(HOST_EXPORTS) \
39189 for flag in $(EXTRA_HOST_FLAGS) ; do \
39190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39191 done; \
39192 echo "Doing clean in libctf"; \
39193 (cd $(HOST_SUBDIR)/libctf && \
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 clean) \
39199 || exit 1
39200
39201@endif libctf
39202
39203.PHONY: maybe-distclean-libctf distclean-libctf
39204maybe-distclean-libctf:
39205@if libctf
39206maybe-distclean-libctf: distclean-libctf
39207
39208distclean-libctf:
39209 @[ -f ./libctf/Makefile ] || exit 0; \
39210 r=`${PWD_COMMAND}`; export r; \
39211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39212 $(HOST_EXPORTS) \
39213 for flag in $(EXTRA_HOST_FLAGS) ; do \
39214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39215 done; \
39216 echo "Doing distclean in libctf"; \
39217 (cd $(HOST_SUBDIR)/libctf && \
39218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39220 "RANLIB=$${RANLIB}" \
39221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39222 distclean) \
39223 || exit 1
39224
39225@endif libctf
39226
39227.PHONY: maybe-maintainer-clean-libctf maintainer-clean-libctf
39228maybe-maintainer-clean-libctf:
39229@if libctf
39230maybe-maintainer-clean-libctf: maintainer-clean-libctf
39231
39232maintainer-clean-libctf:
39233 @[ -f ./libctf/Makefile ] || exit 0; \
39234 r=`${PWD_COMMAND}`; export r; \
39235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39236 $(HOST_EXPORTS) \
39237 for flag in $(EXTRA_HOST_FLAGS) ; do \
39238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39239 done; \
39240 echo "Doing maintainer-clean in libctf"; \
39241 (cd $(HOST_SUBDIR)/libctf && \
39242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39244 "RANLIB=$${RANLIB}" \
39245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39246 maintainer-clean) \
39247 || exit 1
39248
39249@endif libctf
39250
39251
39252
1b6c0831
L
39253# ---------------------------------------
39254# Modules which run on the target machine
39255# ---------------------------------------
39256
39257
39258
39259
39260.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
39261maybe-configure-target-libstdc++-v3:
39262@if gcc-bootstrap
39263configure-target-libstdc++-v3: stage_current
39264@endif gcc-bootstrap
39265@if target-libstdc++-v3
39266maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
39267configure-target-libstdc++-v3:
39268 @r=`${PWD_COMMAND}`; export r; \
39269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39270 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
39271 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
39272 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
39273 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39274 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39275 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39276 else \
39277 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39278 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39279 fi; \
39280 else \
39281 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39282 fi; \
39283 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 39284 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
39285 $(RAW_CXX_TARGET_EXPORTS) \
39286 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
39287 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
39288 case $(srcdir) in \
39289 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39290 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39291 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39292 esac; \
39293 module_srcdir=libstdc++-v3; \
39294 rm -f no-such-file || : ; \
39295 CONFIG_SITE=no-such-file $(SHELL) \
39296 $$s/$$module_srcdir/configure \
39297 --srcdir=$${topdir}/$$module_srcdir \
39298 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39299 --target=${target_alias} \
39300 || exit 1
39301@endif target-libstdc++-v3
39302
39303
39304
39305.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
39306maybe-configure-stage1-target-libstdc++-v3:
39307@if target-libstdc++-v3-bootstrap
39308maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
39309configure-stage1-target-libstdc++-v3:
39310 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
39311 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
39312 @r=`${PWD_COMMAND}`; export r; \
39313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39314 TFLAGS="$(STAGE1_TFLAGS)"; \
39315 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 39316 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
39317 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39318 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39319 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39320 else \
39321 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39322 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39323 fi; \
39324 else \
39325 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39326 fi; \
39327 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
39328 $(RAW_CXX_TARGET_EXPORTS) \
39329 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39330 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39331 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39332 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
39333 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
39334 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
39335 case $(srcdir) in \
39336 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39337 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39338 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39339 esac; \
39340 module_srcdir=libstdc++-v3; \
39341 $(SHELL) $$s/$$module_srcdir/configure \
39342 --srcdir=$${topdir}/$$module_srcdir \
39343 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39344 --target=${target_alias} \
39345 \
39346 $(STAGE1_CONFIGURE_FLAGS)
39347@endif target-libstdc++-v3-bootstrap
39348
39349.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
39350maybe-configure-stage2-target-libstdc++-v3:
39351@if target-libstdc++-v3-bootstrap
39352maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
39353configure-stage2-target-libstdc++-v3:
39354 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
39355 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
39356 @r=`${PWD_COMMAND}`; export r; \
39357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39358 TFLAGS="$(STAGE2_TFLAGS)"; \
39359 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 39360 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
39361 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39362 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39363 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39364 else \
39365 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39366 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39367 fi; \
39368 else \
39369 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39370 fi; \
39371 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
39372 $(RAW_CXX_TARGET_EXPORTS) \
39373 \
39374 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39375 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39376 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39377 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
39378 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
39379 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
39380 case $(srcdir) in \
39381 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39382 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39383 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39384 esac; \
39385 module_srcdir=libstdc++-v3; \
39386 $(SHELL) $$s/$$module_srcdir/configure \
39387 --srcdir=$${topdir}/$$module_srcdir \
39388 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39389 --target=${target_alias} \
22121df0 39390 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
39391 $(STAGE2_CONFIGURE_FLAGS)
39392@endif target-libstdc++-v3-bootstrap
39393
39394.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
39395maybe-configure-stage3-target-libstdc++-v3:
39396@if target-libstdc++-v3-bootstrap
39397maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
39398configure-stage3-target-libstdc++-v3:
39399 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
39400 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
39401 @r=`${PWD_COMMAND}`; export r; \
39402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39403 TFLAGS="$(STAGE3_TFLAGS)"; \
39404 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 39405 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
39406 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39407 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39408 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39409 else \
39410 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39411 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39412 fi; \
39413 else \
39414 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39415 fi; \
39416 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
39417 $(RAW_CXX_TARGET_EXPORTS) \
39418 \
39419 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39420 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39421 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39422 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
39423 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
39424 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
39425 case $(srcdir) in \
39426 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39427 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39428 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39429 esac; \
39430 module_srcdir=libstdc++-v3; \
39431 $(SHELL) $$s/$$module_srcdir/configure \
39432 --srcdir=$${topdir}/$$module_srcdir \
39433 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39434 --target=${target_alias} \
22121df0 39435 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
39436 $(STAGE3_CONFIGURE_FLAGS)
39437@endif target-libstdc++-v3-bootstrap
39438
39439.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
39440maybe-configure-stage4-target-libstdc++-v3:
39441@if target-libstdc++-v3-bootstrap
39442maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
39443configure-stage4-target-libstdc++-v3:
39444 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
39445 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
39446 @r=`${PWD_COMMAND}`; export r; \
39447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39448 TFLAGS="$(STAGE4_TFLAGS)"; \
39449 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 39450 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
39451 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39452 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39453 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39454 else \
39455 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39456 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39457 fi; \
39458 else \
39459 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39460 fi; \
39461 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
39462 $(RAW_CXX_TARGET_EXPORTS) \
39463 \
39464 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39465 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39466 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39467 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
39468 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
39469 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
39470 case $(srcdir) in \
39471 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39472 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39473 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39474 esac; \
39475 module_srcdir=libstdc++-v3; \
39476 $(SHELL) $$s/$$module_srcdir/configure \
39477 --srcdir=$${topdir}/$$module_srcdir \
39478 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39479 --target=${target_alias} \
22121df0 39480 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
39481 $(STAGE4_CONFIGURE_FLAGS)
39482@endif target-libstdc++-v3-bootstrap
39483
39484.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
39485maybe-configure-stageprofile-target-libstdc++-v3:
39486@if target-libstdc++-v3-bootstrap
39487maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
39488configure-stageprofile-target-libstdc++-v3:
39489 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
39490 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
39491 @r=`${PWD_COMMAND}`; export r; \
39492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39493 TFLAGS="$(STAGEprofile_TFLAGS)"; \
39494 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 39495 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
39496 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39497 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39498 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39499 else \
39500 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39501 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39502 fi; \
39503 else \
39504 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39505 fi; \
39506 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
39507 $(RAW_CXX_TARGET_EXPORTS) \
39508 \
39509 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39510 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39511 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39512 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
39513 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
39514 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
39515 case $(srcdir) in \
39516 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39517 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39518 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39519 esac; \
39520 module_srcdir=libstdc++-v3; \
39521 $(SHELL) $$s/$$module_srcdir/configure \
39522 --srcdir=$${topdir}/$$module_srcdir \
39523 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39524 --target=${target_alias} \
22121df0 39525 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
39526 $(STAGEprofile_CONFIGURE_FLAGS)
39527@endif target-libstdc++-v3-bootstrap
39528
f948b2de
NC
39529.PHONY: configure-stagetrain-target-libstdc++-v3 maybe-configure-stagetrain-target-libstdc++-v3
39530maybe-configure-stagetrain-target-libstdc++-v3:
39531@if target-libstdc++-v3-bootstrap
39532maybe-configure-stagetrain-target-libstdc++-v3: configure-stagetrain-target-libstdc++-v3
39533configure-stagetrain-target-libstdc++-v3:
39534 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
39535 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
39536 @r=`${PWD_COMMAND}`; export r; \
39537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39538 TFLAGS="$(STAGEtrain_TFLAGS)"; \
39539 echo "Checking multilib configuration for libstdc++-v3..."; \
39540 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
39541 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39542 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39543 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39544 else \
39545 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39546 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39547 fi; \
39548 else \
39549 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39550 fi; \
39551 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
39552 $(RAW_CXX_TARGET_EXPORTS) \
39553 \
39554 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39555 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39556 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
39557 echo Configuring stage train in $(TARGET_SUBDIR)/libstdc++-v3; \
39558 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
39559 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
39560 case $(srcdir) in \
39561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39562 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39564 esac; \
39565 module_srcdir=libstdc++-v3; \
39566 $(SHELL) $$s/$$module_srcdir/configure \
39567 --srcdir=$${topdir}/$$module_srcdir \
39568 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39569 --target=${target_alias} \
39570 --with-build-libsubdir=$(HOST_SUBDIR) \
39571 $(STAGEtrain_CONFIGURE_FLAGS)
39572@endif target-libstdc++-v3-bootstrap
39573
1b6c0831
L
39574.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
39575maybe-configure-stagefeedback-target-libstdc++-v3:
39576@if target-libstdc++-v3-bootstrap
39577maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
39578configure-stagefeedback-target-libstdc++-v3:
39579 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
39580 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
39581 @r=`${PWD_COMMAND}`; export r; \
39582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39583 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
39584 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 39585 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
39586 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39587 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39588 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39589 else \
39590 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39591 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39592 fi; \
39593 else \
39594 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39595 fi; \
39596 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
39597 $(RAW_CXX_TARGET_EXPORTS) \
39598 \
39599 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39600 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39601 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
39602 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
39603 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
39604 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
39605 case $(srcdir) in \
39606 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39607 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39608 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39609 esac; \
39610 module_srcdir=libstdc++-v3; \
39611 $(SHELL) $$s/$$module_srcdir/configure \
39612 --srcdir=$${topdir}/$$module_srcdir \
39613 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39614 --target=${target_alias} \
22121df0 39615 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
39616 $(STAGEfeedback_CONFIGURE_FLAGS)
39617@endif target-libstdc++-v3-bootstrap
39618
f948b2de
NC
39619.PHONY: configure-stageautoprofile-target-libstdc++-v3 maybe-configure-stageautoprofile-target-libstdc++-v3
39620maybe-configure-stageautoprofile-target-libstdc++-v3:
39621@if target-libstdc++-v3-bootstrap
39622maybe-configure-stageautoprofile-target-libstdc++-v3: configure-stageautoprofile-target-libstdc++-v3
39623configure-stageautoprofile-target-libstdc++-v3:
39624 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
39625 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
39626 @r=`${PWD_COMMAND}`; export r; \
39627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39628 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
39629 echo "Checking multilib configuration for libstdc++-v3..."; \
39630 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
39631 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39632 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39633 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39634 else \
39635 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39636 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39637 fi; \
39638 else \
39639 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39640 fi; \
39641 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
39642 $(RAW_CXX_TARGET_EXPORTS) \
39643 \
39644 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39645 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39646 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
39647 echo Configuring stage autoprofile in $(TARGET_SUBDIR)/libstdc++-v3; \
39648 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
39649 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
39650 case $(srcdir) in \
39651 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39652 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39653 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39654 esac; \
39655 module_srcdir=libstdc++-v3; \
39656 $(SHELL) $$s/$$module_srcdir/configure \
39657 --srcdir=$${topdir}/$$module_srcdir \
39658 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39659 --target=${target_alias} \
39660 --with-build-libsubdir=$(HOST_SUBDIR) \
39661 $(STAGEautoprofile_CONFIGURE_FLAGS)
39662@endif target-libstdc++-v3-bootstrap
39663
39664.PHONY: configure-stageautofeedback-target-libstdc++-v3 maybe-configure-stageautofeedback-target-libstdc++-v3
39665maybe-configure-stageautofeedback-target-libstdc++-v3:
39666@if target-libstdc++-v3-bootstrap
39667maybe-configure-stageautofeedback-target-libstdc++-v3: configure-stageautofeedback-target-libstdc++-v3
39668configure-stageautofeedback-target-libstdc++-v3:
39669 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
39670 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
39671 @r=`${PWD_COMMAND}`; export r; \
39672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39673 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
39674 echo "Checking multilib configuration for libstdc++-v3..."; \
39675 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
39676 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39677 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
39678 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
39679 else \
39680 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
39681 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39682 fi; \
39683 else \
39684 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
39685 fi; \
39686 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
39687 $(RAW_CXX_TARGET_EXPORTS) \
39688 \
39689 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
39690 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
39691 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
39692 echo Configuring stage autofeedback in $(TARGET_SUBDIR)/libstdc++-v3; \
39693 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
39694 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
39695 case $(srcdir) in \
39696 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39697 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
39698 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39699 esac; \
39700 module_srcdir=libstdc++-v3; \
39701 $(SHELL) $$s/$$module_srcdir/configure \
39702 --srcdir=$${topdir}/$$module_srcdir \
39703 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39704 --target=${target_alias} \
39705 --with-build-libsubdir=$(HOST_SUBDIR) \
39706 $(STAGEautofeedback_CONFIGURE_FLAGS)
39707@endif target-libstdc++-v3-bootstrap
39708
1b6c0831
L
39709
39710
39711
39712
39713.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
39714maybe-all-target-libstdc++-v3:
39715@if gcc-bootstrap
39716all-target-libstdc++-v3: stage_current
39717@endif gcc-bootstrap
39718@if target-libstdc++-v3
39719TARGET-target-libstdc++-v3=all
39720maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
39721all-target-libstdc++-v3: configure-target-libstdc++-v3
39722 @r=`${PWD_COMMAND}`; export r; \
39723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39724 $(RAW_CXX_TARGET_EXPORTS) \
39725 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
39726 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
39727 $(TARGET-target-libstdc++-v3))
39728@endif target-libstdc++-v3
39729
39730
39731
39732.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
39733.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
39734maybe-all-stage1-target-libstdc++-v3:
39735maybe-clean-stage1-target-libstdc++-v3:
39736@if target-libstdc++-v3-bootstrap
39737maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
39738all-stage1: all-stage1-target-libstdc++-v3
39739TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
39740all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
39741 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
39742 @r=`${PWD_COMMAND}`; export r; \
39743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39744 TFLAGS="$(STAGE1_TFLAGS)"; \
39745 $(RAW_CXX_TARGET_EXPORTS) \
39746 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 39747 \
1b6c0831
L
39748 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39749 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39750 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39751 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39752 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39753 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39754 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39755 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
39756 \
05a13254 39757 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
39758 $(TARGET-stage1-target-libstdc++-v3)
39759
39760maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
39761clean-stage1: clean-stage1-target-libstdc++-v3
39762clean-stage1-target-libstdc++-v3:
39763 @if [ $(current_stage) = stage1 ]; then \
39764 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
39765 else \
39766 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
39767 $(MAKE) stage1-start; \
39768 fi; \
39769 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
39770 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
39771 clean
39772@endif target-libstdc++-v3-bootstrap
39773
39774
39775.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
39776.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
39777maybe-all-stage2-target-libstdc++-v3:
39778maybe-clean-stage2-target-libstdc++-v3:
39779@if target-libstdc++-v3-bootstrap
39780maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
39781all-stage2: all-stage2-target-libstdc++-v3
39782TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
39783all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
39784 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
39785 @r=`${PWD_COMMAND}`; export r; \
39786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39787 TFLAGS="$(STAGE2_TFLAGS)"; \
39788 $(RAW_CXX_TARGET_EXPORTS) \
39789 \
39790 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 39791 \
1b6c0831
L
39792 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39793 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39794 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39795 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39796 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39797 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39798 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39799 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 39800 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
39801 $(TARGET-stage2-target-libstdc++-v3)
39802
39803maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
39804clean-stage2: clean-stage2-target-libstdc++-v3
39805clean-stage2-target-libstdc++-v3:
39806 @if [ $(current_stage) = stage2 ]; then \
39807 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
39808 else \
39809 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
39810 $(MAKE) stage2-start; \
39811 fi; \
39812 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
39813 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
39814@endif target-libstdc++-v3-bootstrap
39815
39816
39817.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
39818.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
39819maybe-all-stage3-target-libstdc++-v3:
39820maybe-clean-stage3-target-libstdc++-v3:
39821@if target-libstdc++-v3-bootstrap
39822maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
39823all-stage3: all-stage3-target-libstdc++-v3
39824TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
39825all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
39826 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
39827 @r=`${PWD_COMMAND}`; export r; \
39828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39829 TFLAGS="$(STAGE3_TFLAGS)"; \
39830 $(RAW_CXX_TARGET_EXPORTS) \
39831 \
39832 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 39833 \
1b6c0831
L
39834 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39835 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39836 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39837 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39838 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39839 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39840 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39841 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 39842 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
39843 $(TARGET-stage3-target-libstdc++-v3)
39844
39845maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
39846clean-stage3: clean-stage3-target-libstdc++-v3
39847clean-stage3-target-libstdc++-v3:
39848 @if [ $(current_stage) = stage3 ]; then \
39849 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
39850 else \
39851 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
39852 $(MAKE) stage3-start; \
39853 fi; \
39854 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
39855 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
39856@endif target-libstdc++-v3-bootstrap
39857
39858
39859.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
39860.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
39861maybe-all-stage4-target-libstdc++-v3:
39862maybe-clean-stage4-target-libstdc++-v3:
39863@if target-libstdc++-v3-bootstrap
39864maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
39865all-stage4: all-stage4-target-libstdc++-v3
39866TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
39867all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
39868 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
39869 @r=`${PWD_COMMAND}`; export r; \
39870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39871 TFLAGS="$(STAGE4_TFLAGS)"; \
39872 $(RAW_CXX_TARGET_EXPORTS) \
39873 \
39874 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 39875 \
1b6c0831
L
39876 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39877 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39878 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39879 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39880 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39881 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39882 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39883 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 39884 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
39885 $(TARGET-stage4-target-libstdc++-v3)
39886
39887maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
39888clean-stage4: clean-stage4-target-libstdc++-v3
39889clean-stage4-target-libstdc++-v3:
39890 @if [ $(current_stage) = stage4 ]; then \
39891 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
39892 else \
39893 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
39894 $(MAKE) stage4-start; \
39895 fi; \
39896 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
39897 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
39898@endif target-libstdc++-v3-bootstrap
39899
39900
39901.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
39902.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
39903maybe-all-stageprofile-target-libstdc++-v3:
39904maybe-clean-stageprofile-target-libstdc++-v3:
39905@if target-libstdc++-v3-bootstrap
39906maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
39907all-stageprofile: all-stageprofile-target-libstdc++-v3
39908TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
39909all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
39910 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
39911 @r=`${PWD_COMMAND}`; export r; \
39912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39913 TFLAGS="$(STAGEprofile_TFLAGS)"; \
39914 $(RAW_CXX_TARGET_EXPORTS) \
39915 \
39916 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 39917 \
1b6c0831
L
39918 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39919 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39920 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39921 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39922 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39923 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39924 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39925 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 39926 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
39927 $(TARGET-stageprofile-target-libstdc++-v3)
39928
39929maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
39930clean-stageprofile: clean-stageprofile-target-libstdc++-v3
39931clean-stageprofile-target-libstdc++-v3:
39932 @if [ $(current_stage) = stageprofile ]; then \
39933 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
39934 else \
39935 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
39936 $(MAKE) stageprofile-start; \
39937 fi; \
39938 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
39939 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
39940@endif target-libstdc++-v3-bootstrap
39941
39942
f948b2de
NC
39943.PHONY: all-stagetrain-target-libstdc++-v3 maybe-all-stagetrain-target-libstdc++-v3
39944.PHONY: clean-stagetrain-target-libstdc++-v3 maybe-clean-stagetrain-target-libstdc++-v3
39945maybe-all-stagetrain-target-libstdc++-v3:
39946maybe-clean-stagetrain-target-libstdc++-v3:
39947@if target-libstdc++-v3-bootstrap
39948maybe-all-stagetrain-target-libstdc++-v3: all-stagetrain-target-libstdc++-v3
39949all-stagetrain: all-stagetrain-target-libstdc++-v3
39950TARGET-stagetrain-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
39951all-stagetrain-target-libstdc++-v3: configure-stagetrain-target-libstdc++-v3
39952 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
39953 @r=`${PWD_COMMAND}`; export r; \
39954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39955 TFLAGS="$(STAGEtrain_TFLAGS)"; \
39956 $(RAW_CXX_TARGET_EXPORTS) \
39957 \
39958 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
39959 \
39960 $(MAKE) $(BASE_FLAGS_TO_PASS) \
39961 CFLAGS="$(CFLAGS_FOR_TARGET)" \
39962 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
39963 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
39964 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
39965 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
39966 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
39967 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
39968 TFLAGS="$(STAGEtrain_TFLAGS)" \
39969 $(TARGET-stagetrain-target-libstdc++-v3)
39970
39971maybe-clean-stagetrain-target-libstdc++-v3: clean-stagetrain-target-libstdc++-v3
39972clean-stagetrain: clean-stagetrain-target-libstdc++-v3
39973clean-stagetrain-target-libstdc++-v3:
39974 @if [ $(current_stage) = stagetrain ]; then \
39975 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
39976 else \
39977 [ -f $(TARGET_SUBDIR)/stagetrain-libstdc++-v3/Makefile ] || exit 0; \
39978 $(MAKE) stagetrain-start; \
39979 fi; \
39980 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
39981 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
39982@endif target-libstdc++-v3-bootstrap
39983
39984
1b6c0831
L
39985.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
39986.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
39987maybe-all-stagefeedback-target-libstdc++-v3:
39988maybe-clean-stagefeedback-target-libstdc++-v3:
39989@if target-libstdc++-v3-bootstrap
39990maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
39991all-stagefeedback: all-stagefeedback-target-libstdc++-v3
39992TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
39993all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
39994 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
39995 @r=`${PWD_COMMAND}`; export r; \
39996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39997 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
39998 $(RAW_CXX_TARGET_EXPORTS) \
39999 \
40000 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 40001 \
1b6c0831
L
40002 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40003 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40004 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40005 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40006 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40007 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40008 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40009 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 40010 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
40011 $(TARGET-stagefeedback-target-libstdc++-v3)
40012
40013maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
40014clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
40015clean-stagefeedback-target-libstdc++-v3:
40016 @if [ $(current_stage) = stagefeedback ]; then \
40017 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
40018 else \
40019 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
40020 $(MAKE) stagefeedback-start; \
40021 fi; \
40022 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40023 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
40024@endif target-libstdc++-v3-bootstrap
40025
40026
f948b2de
NC
40027.PHONY: all-stageautoprofile-target-libstdc++-v3 maybe-all-stageautoprofile-target-libstdc++-v3
40028.PHONY: clean-stageautoprofile-target-libstdc++-v3 maybe-clean-stageautoprofile-target-libstdc++-v3
40029maybe-all-stageautoprofile-target-libstdc++-v3:
40030maybe-clean-stageautoprofile-target-libstdc++-v3:
40031@if target-libstdc++-v3-bootstrap
40032maybe-all-stageautoprofile-target-libstdc++-v3: all-stageautoprofile-target-libstdc++-v3
40033all-stageautoprofile: all-stageautoprofile-target-libstdc++-v3
40034TARGET-stageautoprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
40035all-stageautoprofile-target-libstdc++-v3: configure-stageautoprofile-target-libstdc++-v3
40036 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
40037 @r=`${PWD_COMMAND}`; export r; \
40038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40039 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
40040 $(RAW_CXX_TARGET_EXPORTS) \
40041 \
40042 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40043 $$s/gcc/config/i386/$(AUTO_PROFILE) \
40044 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40045 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40046 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40047 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40048 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40049 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40050 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40051 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
40052 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
40053 $(TARGET-stageautoprofile-target-libstdc++-v3)
40054
40055maybe-clean-stageautoprofile-target-libstdc++-v3: clean-stageautoprofile-target-libstdc++-v3
40056clean-stageautoprofile: clean-stageautoprofile-target-libstdc++-v3
40057clean-stageautoprofile-target-libstdc++-v3:
40058 @if [ $(current_stage) = stageautoprofile ]; then \
40059 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
40060 else \
40061 [ -f $(TARGET_SUBDIR)/stageautoprofile-libstdc++-v3/Makefile ] || exit 0; \
40062 $(MAKE) stageautoprofile-start; \
40063 fi; \
40064 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40065 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
40066@endif target-libstdc++-v3-bootstrap
40067
40068
40069.PHONY: all-stageautofeedback-target-libstdc++-v3 maybe-all-stageautofeedback-target-libstdc++-v3
40070.PHONY: clean-stageautofeedback-target-libstdc++-v3 maybe-clean-stageautofeedback-target-libstdc++-v3
40071maybe-all-stageautofeedback-target-libstdc++-v3:
40072maybe-clean-stageautofeedback-target-libstdc++-v3:
40073@if target-libstdc++-v3-bootstrap
40074maybe-all-stageautofeedback-target-libstdc++-v3: all-stageautofeedback-target-libstdc++-v3
40075all-stageautofeedback: all-stageautofeedback-target-libstdc++-v3
40076TARGET-stageautofeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
40077all-stageautofeedback-target-libstdc++-v3: configure-stageautofeedback-target-libstdc++-v3
40078 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
40079 @r=`${PWD_COMMAND}`; export r; \
40080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40081 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
40082 $(RAW_CXX_TARGET_EXPORTS) \
40083 \
40084 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40085 \
40086 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40087 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40088 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40089 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40090 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40091 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40092 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40093 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
40094 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
40095 $(TARGET-stageautofeedback-target-libstdc++-v3)
40096
40097maybe-clean-stageautofeedback-target-libstdc++-v3: clean-stageautofeedback-target-libstdc++-v3
40098clean-stageautofeedback: clean-stageautofeedback-target-libstdc++-v3
40099clean-stageautofeedback-target-libstdc++-v3:
40100 @if [ $(current_stage) = stageautofeedback ]; then \
40101 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
40102 else \
40103 [ -f $(TARGET_SUBDIR)/stageautofeedback-libstdc++-v3/Makefile ] || exit 0; \
40104 $(MAKE) stageautofeedback-start; \
40105 fi; \
40106 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40107 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
40108@endif target-libstdc++-v3-bootstrap
40109
40110
1b6c0831
L
40111
40112
40113
40114
40115.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
40116maybe-check-target-libstdc++-v3:
40117@if target-libstdc++-v3
40118maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
40119
40120check-target-libstdc++-v3:
40121 @: $(MAKE); $(unstage)
40122 @r=`${PWD_COMMAND}`; export r; \
40123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40124 $(RAW_CXX_TARGET_EXPORTS) \
40125 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40126 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
40127
40128@endif target-libstdc++-v3
40129
40130.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
40131maybe-install-target-libstdc++-v3:
40132@if target-libstdc++-v3
40133maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
40134
40135install-target-libstdc++-v3: installdirs
40136 @: $(MAKE); $(unstage)
40137 @r=`${PWD_COMMAND}`; export r; \
40138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40139 $(RAW_CXX_TARGET_EXPORTS) \
40140 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40141 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40142
40143@endif target-libstdc++-v3
40144
40145.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
40146maybe-install-strip-target-libstdc++-v3:
40147@if target-libstdc++-v3
40148maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
40149
40150install-strip-target-libstdc++-v3: installdirs
40151 @: $(MAKE); $(unstage)
40152 @r=`${PWD_COMMAND}`; export r; \
40153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40154 $(RAW_CXX_TARGET_EXPORTS) \
40155 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40156 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40157
40158@endif target-libstdc++-v3
40159
40160# Other targets (info, dvi, pdf, etc.)
40161
40162.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
40163maybe-info-target-libstdc++-v3:
40164@if target-libstdc++-v3
40165maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
40166
40167info-target-libstdc++-v3: \
40168 configure-target-libstdc++-v3
40169 @: $(MAKE); $(unstage)
22121df0 40170 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40171 r=`${PWD_COMMAND}`; export r; \
40172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40173 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40174 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40175 for flag in $(EXTRA_TARGET_FLAGS); do \
40176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40177 done; \
40178 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40181 "RANLIB=$${RANLIB}" \
40182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40183 info) \
40184 || exit 1
40185
40186@endif target-libstdc++-v3
40187
40188.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
40189maybe-dvi-target-libstdc++-v3:
40190@if target-libstdc++-v3
40191maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
40192
40193dvi-target-libstdc++-v3: \
40194 configure-target-libstdc++-v3
40195 @: $(MAKE); $(unstage)
22121df0 40196 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40197 r=`${PWD_COMMAND}`; export r; \
40198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40199 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40200 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40201 for flag in $(EXTRA_TARGET_FLAGS); do \
40202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40203 done; \
40204 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40207 "RANLIB=$${RANLIB}" \
40208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40209 dvi) \
40210 || exit 1
40211
40212@endif target-libstdc++-v3
40213
40214.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
40215maybe-pdf-target-libstdc++-v3:
40216@if target-libstdc++-v3
40217maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
40218
40219pdf-target-libstdc++-v3: \
40220 configure-target-libstdc++-v3
40221 @: $(MAKE); $(unstage)
22121df0 40222 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40223 r=`${PWD_COMMAND}`; export r; \
40224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40225 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40226 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40227 for flag in $(EXTRA_TARGET_FLAGS); do \
40228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40229 done; \
40230 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40233 "RANLIB=$${RANLIB}" \
40234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40235 pdf) \
40236 || exit 1
40237
40238@endif target-libstdc++-v3
40239
40240.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
40241maybe-html-target-libstdc++-v3:
40242@if target-libstdc++-v3
40243maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
40244
40245html-target-libstdc++-v3: \
40246 configure-target-libstdc++-v3
40247 @: $(MAKE); $(unstage)
22121df0 40248 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40249 r=`${PWD_COMMAND}`; export r; \
40250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40251 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40252 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40253 for flag in $(EXTRA_TARGET_FLAGS); do \
40254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40255 done; \
40256 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40259 "RANLIB=$${RANLIB}" \
40260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40261 html) \
40262 || exit 1
40263
40264@endif target-libstdc++-v3
40265
40266.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
40267maybe-TAGS-target-libstdc++-v3:
40268@if target-libstdc++-v3
40269maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
40270
40271TAGS-target-libstdc++-v3: \
40272 configure-target-libstdc++-v3
40273 @: $(MAKE); $(unstage)
22121df0 40274 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40275 r=`${PWD_COMMAND}`; export r; \
40276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40277 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40278 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40279 for flag in $(EXTRA_TARGET_FLAGS); do \
40280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40281 done; \
40282 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40285 "RANLIB=$${RANLIB}" \
40286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40287 TAGS) \
40288 || exit 1
40289
40290@endif target-libstdc++-v3
40291
40292.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
40293maybe-install-info-target-libstdc++-v3:
40294@if target-libstdc++-v3
40295maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
40296
40297install-info-target-libstdc++-v3: \
40298 configure-target-libstdc++-v3 \
40299 info-target-libstdc++-v3
40300 @: $(MAKE); $(unstage)
22121df0 40301 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40302 r=`${PWD_COMMAND}`; export r; \
40303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40304 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40305 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40306 for flag in $(EXTRA_TARGET_FLAGS); do \
40307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40308 done; \
40309 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40312 "RANLIB=$${RANLIB}" \
40313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40314 install-info) \
40315 || exit 1
40316
40317@endif target-libstdc++-v3
40318
40319.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
40320maybe-install-pdf-target-libstdc++-v3:
40321@if target-libstdc++-v3
40322maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
40323
40324install-pdf-target-libstdc++-v3: \
40325 configure-target-libstdc++-v3 \
40326 pdf-target-libstdc++-v3
40327 @: $(MAKE); $(unstage)
22121df0 40328 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40329 r=`${PWD_COMMAND}`; export r; \
40330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40331 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40332 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40333 for flag in $(EXTRA_TARGET_FLAGS); do \
40334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40335 done; \
40336 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40339 "RANLIB=$${RANLIB}" \
40340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40341 install-pdf) \
40342 || exit 1
40343
40344@endif target-libstdc++-v3
40345
40346.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
40347maybe-install-html-target-libstdc++-v3:
40348@if target-libstdc++-v3
40349maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
40350
40351install-html-target-libstdc++-v3: \
40352 configure-target-libstdc++-v3 \
40353 html-target-libstdc++-v3
40354 @: $(MAKE); $(unstage)
22121df0 40355 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40356 r=`${PWD_COMMAND}`; export r; \
40357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40358 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40359 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40360 for flag in $(EXTRA_TARGET_FLAGS); do \
40361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40362 done; \
40363 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40366 "RANLIB=$${RANLIB}" \
40367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40368 install-html) \
40369 || exit 1
40370
40371@endif target-libstdc++-v3
40372
40373.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
40374maybe-installcheck-target-libstdc++-v3:
40375@if target-libstdc++-v3
40376maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
40377
40378installcheck-target-libstdc++-v3: \
40379 configure-target-libstdc++-v3
40380 @: $(MAKE); $(unstage)
22121df0 40381 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40382 r=`${PWD_COMMAND}`; export r; \
40383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40384 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40385 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40386 for flag in $(EXTRA_TARGET_FLAGS); do \
40387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40388 done; \
40389 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40392 "RANLIB=$${RANLIB}" \
40393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40394 installcheck) \
40395 || exit 1
40396
40397@endif target-libstdc++-v3
40398
40399.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
40400maybe-mostlyclean-target-libstdc++-v3:
40401@if target-libstdc++-v3
40402maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
40403
40404mostlyclean-target-libstdc++-v3:
40405 @: $(MAKE); $(unstage)
22121df0 40406 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40407 r=`${PWD_COMMAND}`; export r; \
40408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40409 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40410 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40411 for flag in $(EXTRA_TARGET_FLAGS); do \
40412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40413 done; \
40414 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40417 "RANLIB=$${RANLIB}" \
40418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40419 mostlyclean) \
40420 || exit 1
40421
40422@endif target-libstdc++-v3
40423
40424.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
40425maybe-clean-target-libstdc++-v3:
40426@if target-libstdc++-v3
40427maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
40428
40429clean-target-libstdc++-v3:
40430 @: $(MAKE); $(unstage)
22121df0 40431 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40432 r=`${PWD_COMMAND}`; export r; \
40433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40434 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40435 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40436 for flag in $(EXTRA_TARGET_FLAGS); do \
40437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40438 done; \
40439 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40442 "RANLIB=$${RANLIB}" \
40443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40444 clean) \
40445 || exit 1
40446
40447@endif target-libstdc++-v3
40448
40449.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
40450maybe-distclean-target-libstdc++-v3:
40451@if target-libstdc++-v3
40452maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
40453
40454distclean-target-libstdc++-v3:
40455 @: $(MAKE); $(unstage)
22121df0 40456 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40457 r=`${PWD_COMMAND}`; export r; \
40458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40459 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40460 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40461 for flag in $(EXTRA_TARGET_FLAGS); do \
40462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40463 done; \
40464 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40467 "RANLIB=$${RANLIB}" \
40468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40469 distclean) \
40470 || exit 1
40471
40472@endif target-libstdc++-v3
40473
40474.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
40475maybe-maintainer-clean-target-libstdc++-v3:
40476@if target-libstdc++-v3
40477maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
40478
40479maintainer-clean-target-libstdc++-v3:
40480 @: $(MAKE); $(unstage)
22121df0 40481 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
40482 r=`${PWD_COMMAND}`; export r; \
40483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40484 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 40485 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
40486 for flag in $(EXTRA_TARGET_FLAGS); do \
40487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40488 done; \
40489 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
40490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40492 "RANLIB=$${RANLIB}" \
40493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40494 maintainer-clean) \
40495 || exit 1
40496
40497@endif target-libstdc++-v3
40498
40499
40500
40501
40502
40503.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
40504maybe-configure-target-libsanitizer:
40505@if gcc-bootstrap
40506configure-target-libsanitizer: stage_current
40507@endif gcc-bootstrap
40508@if target-libsanitizer
40509maybe-configure-target-libsanitizer: configure-target-libsanitizer
40510configure-target-libsanitizer:
40511 @r=`${PWD_COMMAND}`; export r; \
40512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40513 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
40514 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
40515 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
40516 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40517 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40518 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40519 else \
40520 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40521 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40522 fi; \
40523 else \
40524 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40525 fi; \
40526 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 40527 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
40528 $(RAW_CXX_TARGET_EXPORTS) \
40529 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
40530 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
40531 case $(srcdir) in \
40532 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40533 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40534 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40535 esac; \
40536 module_srcdir=libsanitizer; \
40537 rm -f no-such-file || : ; \
40538 CONFIG_SITE=no-such-file $(SHELL) \
40539 $$s/$$module_srcdir/configure \
40540 --srcdir=$${topdir}/$$module_srcdir \
40541 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40542 --target=${target_alias} \
40543 || exit 1
40544@endif target-libsanitizer
40545
40546
40547
40548.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
40549maybe-configure-stage1-target-libsanitizer:
40550@if target-libsanitizer-bootstrap
40551maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
40552configure-stage1-target-libsanitizer:
40553 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40554 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
40555 @r=`${PWD_COMMAND}`; export r; \
40556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40557 TFLAGS="$(STAGE1_TFLAGS)"; \
40558 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 40559 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
40560 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40561 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40562 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40563 else \
40564 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40565 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40566 fi; \
40567 else \
40568 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40569 fi; \
40570 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
40571 $(RAW_CXX_TARGET_EXPORTS) \
40572 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40573 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40574 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40575 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
40576 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
40577 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
40578 case $(srcdir) in \
40579 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40580 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40581 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40582 esac; \
40583 module_srcdir=libsanitizer; \
40584 $(SHELL) $$s/$$module_srcdir/configure \
40585 --srcdir=$${topdir}/$$module_srcdir \
40586 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40587 --target=${target_alias} \
40588 \
40589 $(STAGE1_CONFIGURE_FLAGS)
40590@endif target-libsanitizer-bootstrap
40591
40592.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
40593maybe-configure-stage2-target-libsanitizer:
40594@if target-libsanitizer-bootstrap
40595maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
40596configure-stage2-target-libsanitizer:
40597 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
40598 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
40599 @r=`${PWD_COMMAND}`; export r; \
40600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40601 TFLAGS="$(STAGE2_TFLAGS)"; \
40602 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 40603 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
40604 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40605 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40606 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40607 else \
40608 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40609 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40610 fi; \
40611 else \
40612 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40613 fi; \
40614 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
40615 $(RAW_CXX_TARGET_EXPORTS) \
40616 \
40617 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40618 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40619 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40620 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
40621 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
40622 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
40623 case $(srcdir) in \
40624 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40625 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40626 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40627 esac; \
40628 module_srcdir=libsanitizer; \
40629 $(SHELL) $$s/$$module_srcdir/configure \
40630 --srcdir=$${topdir}/$$module_srcdir \
40631 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40632 --target=${target_alias} \
22121df0 40633 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
40634 $(STAGE2_CONFIGURE_FLAGS)
40635@endif target-libsanitizer-bootstrap
40636
40637.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
40638maybe-configure-stage3-target-libsanitizer:
40639@if target-libsanitizer-bootstrap
40640maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
40641configure-stage3-target-libsanitizer:
40642 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
40643 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
40644 @r=`${PWD_COMMAND}`; export r; \
40645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40646 TFLAGS="$(STAGE3_TFLAGS)"; \
40647 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 40648 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
40649 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40650 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40651 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40652 else \
40653 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40654 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40655 fi; \
40656 else \
40657 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40658 fi; \
40659 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
40660 $(RAW_CXX_TARGET_EXPORTS) \
40661 \
40662 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40663 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40664 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40665 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
40666 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
40667 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
40668 case $(srcdir) in \
40669 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40670 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40671 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40672 esac; \
40673 module_srcdir=libsanitizer; \
40674 $(SHELL) $$s/$$module_srcdir/configure \
40675 --srcdir=$${topdir}/$$module_srcdir \
40676 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40677 --target=${target_alias} \
22121df0 40678 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
40679 $(STAGE3_CONFIGURE_FLAGS)
40680@endif target-libsanitizer-bootstrap
40681
40682.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
40683maybe-configure-stage4-target-libsanitizer:
40684@if target-libsanitizer-bootstrap
40685maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
40686configure-stage4-target-libsanitizer:
40687 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
40688 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
40689 @r=`${PWD_COMMAND}`; export r; \
40690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40691 TFLAGS="$(STAGE4_TFLAGS)"; \
40692 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 40693 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
40694 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40695 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40696 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40697 else \
40698 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40699 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40700 fi; \
40701 else \
40702 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40703 fi; \
40704 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
40705 $(RAW_CXX_TARGET_EXPORTS) \
40706 \
40707 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40708 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40709 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40710 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
40711 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
40712 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
40713 case $(srcdir) in \
40714 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40715 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40716 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40717 esac; \
40718 module_srcdir=libsanitizer; \
40719 $(SHELL) $$s/$$module_srcdir/configure \
40720 --srcdir=$${topdir}/$$module_srcdir \
40721 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40722 --target=${target_alias} \
22121df0 40723 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
40724 $(STAGE4_CONFIGURE_FLAGS)
40725@endif target-libsanitizer-bootstrap
40726
40727.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
40728maybe-configure-stageprofile-target-libsanitizer:
40729@if target-libsanitizer-bootstrap
40730maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
40731configure-stageprofile-target-libsanitizer:
40732 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
40733 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
40734 @r=`${PWD_COMMAND}`; export r; \
40735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40736 TFLAGS="$(STAGEprofile_TFLAGS)"; \
40737 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 40738 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
40739 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40740 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40741 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40742 else \
40743 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40744 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40745 fi; \
40746 else \
40747 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40748 fi; \
40749 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
40750 $(RAW_CXX_TARGET_EXPORTS) \
40751 \
40752 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40753 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40754 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40755 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
40756 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
40757 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
40758 case $(srcdir) in \
40759 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40760 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40761 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40762 esac; \
40763 module_srcdir=libsanitizer; \
40764 $(SHELL) $$s/$$module_srcdir/configure \
40765 --srcdir=$${topdir}/$$module_srcdir \
40766 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40767 --target=${target_alias} \
22121df0 40768 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
40769 $(STAGEprofile_CONFIGURE_FLAGS)
40770@endif target-libsanitizer-bootstrap
40771
f948b2de
NC
40772.PHONY: configure-stagetrain-target-libsanitizer maybe-configure-stagetrain-target-libsanitizer
40773maybe-configure-stagetrain-target-libsanitizer:
40774@if target-libsanitizer-bootstrap
40775maybe-configure-stagetrain-target-libsanitizer: configure-stagetrain-target-libsanitizer
40776configure-stagetrain-target-libsanitizer:
40777 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
40778 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
40779 @r=`${PWD_COMMAND}`; export r; \
40780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40781 TFLAGS="$(STAGEtrain_TFLAGS)"; \
40782 echo "Checking multilib configuration for libsanitizer..."; \
40783 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
40784 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40785 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40786 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40787 else \
40788 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40789 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40790 fi; \
40791 else \
40792 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40793 fi; \
40794 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
40795 $(RAW_CXX_TARGET_EXPORTS) \
40796 \
40797 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40798 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40799 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
40800 echo Configuring stage train in $(TARGET_SUBDIR)/libsanitizer; \
40801 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
40802 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
40803 case $(srcdir) in \
40804 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40805 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40806 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40807 esac; \
40808 module_srcdir=libsanitizer; \
40809 $(SHELL) $$s/$$module_srcdir/configure \
40810 --srcdir=$${topdir}/$$module_srcdir \
40811 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40812 --target=${target_alias} \
40813 --with-build-libsubdir=$(HOST_SUBDIR) \
40814 $(STAGEtrain_CONFIGURE_FLAGS)
40815@endif target-libsanitizer-bootstrap
40816
1b6c0831
L
40817.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
40818maybe-configure-stagefeedback-target-libsanitizer:
40819@if target-libsanitizer-bootstrap
40820maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
40821configure-stagefeedback-target-libsanitizer:
40822 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
40823 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
40824 @r=`${PWD_COMMAND}`; export r; \
40825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40826 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
40827 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 40828 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
40829 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40830 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40831 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40832 else \
40833 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40834 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40835 fi; \
40836 else \
40837 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40838 fi; \
40839 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
40840 $(RAW_CXX_TARGET_EXPORTS) \
40841 \
40842 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40843 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40844 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40845 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
40846 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
40847 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
40848 case $(srcdir) in \
40849 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40850 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40851 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40852 esac; \
40853 module_srcdir=libsanitizer; \
40854 $(SHELL) $$s/$$module_srcdir/configure \
40855 --srcdir=$${topdir}/$$module_srcdir \
40856 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40857 --target=${target_alias} \
22121df0 40858 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
40859 $(STAGEfeedback_CONFIGURE_FLAGS)
40860@endif target-libsanitizer-bootstrap
40861
f948b2de
NC
40862.PHONY: configure-stageautoprofile-target-libsanitizer maybe-configure-stageautoprofile-target-libsanitizer
40863maybe-configure-stageautoprofile-target-libsanitizer:
40864@if target-libsanitizer-bootstrap
40865maybe-configure-stageautoprofile-target-libsanitizer: configure-stageautoprofile-target-libsanitizer
40866configure-stageautoprofile-target-libsanitizer:
40867 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
40868 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
40869 @r=`${PWD_COMMAND}`; export r; \
40870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40871 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
40872 echo "Checking multilib configuration for libsanitizer..."; \
40873 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
40874 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40875 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40876 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40877 else \
40878 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40879 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40880 fi; \
40881 else \
40882 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40883 fi; \
40884 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
40885 $(RAW_CXX_TARGET_EXPORTS) \
40886 \
40887 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40888 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40889 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
40890 echo Configuring stage autoprofile in $(TARGET_SUBDIR)/libsanitizer; \
40891 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
40892 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
40893 case $(srcdir) in \
40894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40895 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40897 esac; \
40898 module_srcdir=libsanitizer; \
40899 $(SHELL) $$s/$$module_srcdir/configure \
40900 --srcdir=$${topdir}/$$module_srcdir \
40901 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40902 --target=${target_alias} \
40903 --with-build-libsubdir=$(HOST_SUBDIR) \
40904 $(STAGEautoprofile_CONFIGURE_FLAGS)
40905@endif target-libsanitizer-bootstrap
40906
40907.PHONY: configure-stageautofeedback-target-libsanitizer maybe-configure-stageautofeedback-target-libsanitizer
40908maybe-configure-stageautofeedback-target-libsanitizer:
40909@if target-libsanitizer-bootstrap
40910maybe-configure-stageautofeedback-target-libsanitizer: configure-stageautofeedback-target-libsanitizer
40911configure-stageautofeedback-target-libsanitizer:
40912 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
40913 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
40914 @r=`${PWD_COMMAND}`; export r; \
40915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40916 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
40917 echo "Checking multilib configuration for libsanitizer..."; \
40918 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
40919 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40920 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
40921 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
40922 else \
40923 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
40924 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40925 fi; \
40926 else \
40927 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
40928 fi; \
40929 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
40930 $(RAW_CXX_TARGET_EXPORTS) \
40931 \
40932 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40933 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40934 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
40935 echo Configuring stage autofeedback in $(TARGET_SUBDIR)/libsanitizer; \
40936 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
40937 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
40938 case $(srcdir) in \
40939 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40940 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
40941 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40942 esac; \
40943 module_srcdir=libsanitizer; \
40944 $(SHELL) $$s/$$module_srcdir/configure \
40945 --srcdir=$${topdir}/$$module_srcdir \
40946 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
40947 --target=${target_alias} \
40948 --with-build-libsubdir=$(HOST_SUBDIR) \
40949 $(STAGEautofeedback_CONFIGURE_FLAGS)
40950@endif target-libsanitizer-bootstrap
40951
1b6c0831
L
40952
40953
40954
40955
40956.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
40957maybe-all-target-libsanitizer:
40958@if gcc-bootstrap
40959all-target-libsanitizer: stage_current
40960@endif gcc-bootstrap
40961@if target-libsanitizer
40962TARGET-target-libsanitizer=all
40963maybe-all-target-libsanitizer: all-target-libsanitizer
40964all-target-libsanitizer: configure-target-libsanitizer
40965 @r=`${PWD_COMMAND}`; export r; \
40966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40967 $(RAW_CXX_TARGET_EXPORTS) \
40968 (cd $(TARGET_SUBDIR)/libsanitizer && \
40969 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
40970 $(TARGET-target-libsanitizer))
40971@endif target-libsanitizer
40972
40973
40974
40975.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
40976.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
40977maybe-all-stage1-target-libsanitizer:
40978maybe-clean-stage1-target-libsanitizer:
40979@if target-libsanitizer-bootstrap
40980maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
40981all-stage1: all-stage1-target-libsanitizer
40982TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
40983all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
40984 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40985 @r=`${PWD_COMMAND}`; export r; \
40986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40987 TFLAGS="$(STAGE1_TFLAGS)"; \
40988 $(RAW_CXX_TARGET_EXPORTS) \
40989 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 40990 \
1b6c0831
L
40991 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40992 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40993 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40994 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40995 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40996 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40997 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40998 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
40999 \
05a13254 41000 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
41001 $(TARGET-stage1-target-libsanitizer)
41002
41003maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
41004clean-stage1: clean-stage1-target-libsanitizer
41005clean-stage1-target-libsanitizer:
41006 @if [ $(current_stage) = stage1 ]; then \
41007 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
41008 else \
41009 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
41010 $(MAKE) stage1-start; \
41011 fi; \
41012 cd $(TARGET_SUBDIR)/libsanitizer && \
41013 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
41014 clean
41015@endif target-libsanitizer-bootstrap
41016
41017
41018.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
41019.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
41020maybe-all-stage2-target-libsanitizer:
41021maybe-clean-stage2-target-libsanitizer:
41022@if target-libsanitizer-bootstrap
41023maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
41024all-stage2: all-stage2-target-libsanitizer
41025TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
41026all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
41027 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
41028 @r=`${PWD_COMMAND}`; export r; \
41029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41030 TFLAGS="$(STAGE2_TFLAGS)"; \
41031 $(RAW_CXX_TARGET_EXPORTS) \
41032 \
41033 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 41034 \
1b6c0831
L
41035 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41036 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41037 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41038 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41039 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41040 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41041 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41042 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 41043 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
41044 $(TARGET-stage2-target-libsanitizer)
41045
41046maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
41047clean-stage2: clean-stage2-target-libsanitizer
41048clean-stage2-target-libsanitizer:
41049 @if [ $(current_stage) = stage2 ]; then \
41050 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
41051 else \
41052 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
41053 $(MAKE) stage2-start; \
41054 fi; \
41055 cd $(TARGET_SUBDIR)/libsanitizer && \
41056 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
41057@endif target-libsanitizer-bootstrap
41058
41059
41060.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
41061.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
41062maybe-all-stage3-target-libsanitizer:
41063maybe-clean-stage3-target-libsanitizer:
41064@if target-libsanitizer-bootstrap
41065maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
41066all-stage3: all-stage3-target-libsanitizer
41067TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
41068all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
41069 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
41070 @r=`${PWD_COMMAND}`; export r; \
41071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41072 TFLAGS="$(STAGE3_TFLAGS)"; \
41073 $(RAW_CXX_TARGET_EXPORTS) \
41074 \
41075 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 41076 \
1b6c0831
L
41077 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41078 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41079 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41080 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41081 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41082 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41083 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41084 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 41085 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
41086 $(TARGET-stage3-target-libsanitizer)
41087
41088maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
41089clean-stage3: clean-stage3-target-libsanitizer
41090clean-stage3-target-libsanitizer:
41091 @if [ $(current_stage) = stage3 ]; then \
41092 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
41093 else \
41094 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
41095 $(MAKE) stage3-start; \
41096 fi; \
41097 cd $(TARGET_SUBDIR)/libsanitizer && \
41098 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
41099@endif target-libsanitizer-bootstrap
41100
41101
41102.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
41103.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
41104maybe-all-stage4-target-libsanitizer:
41105maybe-clean-stage4-target-libsanitizer:
41106@if target-libsanitizer-bootstrap
41107maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
41108all-stage4: all-stage4-target-libsanitizer
41109TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
41110all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
41111 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
41112 @r=`${PWD_COMMAND}`; export r; \
41113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41114 TFLAGS="$(STAGE4_TFLAGS)"; \
41115 $(RAW_CXX_TARGET_EXPORTS) \
41116 \
41117 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 41118 \
1b6c0831
L
41119 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41120 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41121 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41122 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
41123 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41124 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41125 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41126 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 41127 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 41128 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 41129
1b6c0831
L
41130maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
41131clean-stage4: clean-stage4-target-libsanitizer
41132clean-stage4-target-libsanitizer:
e8a5fa9c 41133 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 41134 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 41135 else \
1b6c0831 41136 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
41137 $(MAKE) stage4-start; \
41138 fi; \
1b6c0831 41139 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 41140 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 41141@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
41142
41143
1b6c0831
L
41144.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
41145.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
41146maybe-all-stageprofile-target-libsanitizer:
41147maybe-clean-stageprofile-target-libsanitizer:
41148@if target-libsanitizer-bootstrap
41149maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
41150all-stageprofile: all-stageprofile-target-libsanitizer
41151TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
41152all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
41153 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
41154 @r=`${PWD_COMMAND}`; export r; \
41155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41156 TFLAGS="$(STAGEprofile_TFLAGS)"; \
41157 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 41158 \
1b6c0831 41159 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 41160 \
e8a5fa9c
RW
41161 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41162 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41163 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41164 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41165 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41166 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41167 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41168 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 41169 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 41170 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 41171
1b6c0831
L
41172maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
41173clean-stageprofile: clean-stageprofile-target-libsanitizer
41174clean-stageprofile-target-libsanitizer:
e8a5fa9c 41175 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 41176 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 41177 else \
1b6c0831 41178 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
41179 $(MAKE) stageprofile-start; \
41180 fi; \
1b6c0831 41181 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 41182 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 41183@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
41184
41185
f948b2de
NC
41186.PHONY: all-stagetrain-target-libsanitizer maybe-all-stagetrain-target-libsanitizer
41187.PHONY: clean-stagetrain-target-libsanitizer maybe-clean-stagetrain-target-libsanitizer
41188maybe-all-stagetrain-target-libsanitizer:
41189maybe-clean-stagetrain-target-libsanitizer:
41190@if target-libsanitizer-bootstrap
41191maybe-all-stagetrain-target-libsanitizer: all-stagetrain-target-libsanitizer
41192all-stagetrain: all-stagetrain-target-libsanitizer
41193TARGET-stagetrain-target-libsanitizer = $(TARGET-target-libsanitizer)
41194all-stagetrain-target-libsanitizer: configure-stagetrain-target-libsanitizer
41195 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
41196 @r=`${PWD_COMMAND}`; export r; \
41197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41198 TFLAGS="$(STAGEtrain_TFLAGS)"; \
41199 $(RAW_CXX_TARGET_EXPORTS) \
41200 \
41201 cd $(TARGET_SUBDIR)/libsanitizer && \
41202 \
41203 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41204 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41205 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41206 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41207 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41208 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41209 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41210 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
41211 TFLAGS="$(STAGEtrain_TFLAGS)" \
41212 $(TARGET-stagetrain-target-libsanitizer)
41213
41214maybe-clean-stagetrain-target-libsanitizer: clean-stagetrain-target-libsanitizer
41215clean-stagetrain: clean-stagetrain-target-libsanitizer
41216clean-stagetrain-target-libsanitizer:
41217 @if [ $(current_stage) = stagetrain ]; then \
41218 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
41219 else \
41220 [ -f $(TARGET_SUBDIR)/stagetrain-libsanitizer/Makefile ] || exit 0; \
41221 $(MAKE) stagetrain-start; \
41222 fi; \
41223 cd $(TARGET_SUBDIR)/libsanitizer && \
41224 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
41225@endif target-libsanitizer-bootstrap
41226
41227
1b6c0831
L
41228.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
41229.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
41230maybe-all-stagefeedback-target-libsanitizer:
41231maybe-clean-stagefeedback-target-libsanitizer:
41232@if target-libsanitizer-bootstrap
41233maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
41234all-stagefeedback: all-stagefeedback-target-libsanitizer
41235TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
41236all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
41237 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
41238 @r=`${PWD_COMMAND}`; export r; \
41239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41240 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
41241 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 41242 \
1b6c0831 41243 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 41244 \
e8a5fa9c
RW
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)" \
41252 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 41253 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 41254 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 41255
1b6c0831
L
41256maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
41257clean-stagefeedback: clean-stagefeedback-target-libsanitizer
41258clean-stagefeedback-target-libsanitizer:
e8a5fa9c 41259 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 41260 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 41261 else \
1b6c0831 41262 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
41263 $(MAKE) stagefeedback-start; \
41264 fi; \
1b6c0831 41265 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 41266 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 41267@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
41268
41269
f948b2de
NC
41270.PHONY: all-stageautoprofile-target-libsanitizer maybe-all-stageautoprofile-target-libsanitizer
41271.PHONY: clean-stageautoprofile-target-libsanitizer maybe-clean-stageautoprofile-target-libsanitizer
41272maybe-all-stageautoprofile-target-libsanitizer:
41273maybe-clean-stageautoprofile-target-libsanitizer:
41274@if target-libsanitizer-bootstrap
41275maybe-all-stageautoprofile-target-libsanitizer: all-stageautoprofile-target-libsanitizer
41276all-stageautoprofile: all-stageautoprofile-target-libsanitizer
41277TARGET-stageautoprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
41278all-stageautoprofile-target-libsanitizer: configure-stageautoprofile-target-libsanitizer
41279 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
41280 @r=`${PWD_COMMAND}`; export r; \
41281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41282 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
41283 $(RAW_CXX_TARGET_EXPORTS) \
41284 \
41285 cd $(TARGET_SUBDIR)/libsanitizer && \
41286 $$s/gcc/config/i386/$(AUTO_PROFILE) \
41287 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41288 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41289 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41290 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41291 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41292 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41293 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41294 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
41295 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
41296 $(TARGET-stageautoprofile-target-libsanitizer)
41297
41298maybe-clean-stageautoprofile-target-libsanitizer: clean-stageautoprofile-target-libsanitizer
41299clean-stageautoprofile: clean-stageautoprofile-target-libsanitizer
41300clean-stageautoprofile-target-libsanitizer:
41301 @if [ $(current_stage) = stageautoprofile ]; then \
41302 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
41303 else \
41304 [ -f $(TARGET_SUBDIR)/stageautoprofile-libsanitizer/Makefile ] || exit 0; \
41305 $(MAKE) stageautoprofile-start; \
41306 fi; \
41307 cd $(TARGET_SUBDIR)/libsanitizer && \
41308 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
41309@endif target-libsanitizer-bootstrap
41310
41311
41312.PHONY: all-stageautofeedback-target-libsanitizer maybe-all-stageautofeedback-target-libsanitizer
41313.PHONY: clean-stageautofeedback-target-libsanitizer maybe-clean-stageautofeedback-target-libsanitizer
41314maybe-all-stageautofeedback-target-libsanitizer:
41315maybe-clean-stageautofeedback-target-libsanitizer:
41316@if target-libsanitizer-bootstrap
41317maybe-all-stageautofeedback-target-libsanitizer: all-stageautofeedback-target-libsanitizer
41318all-stageautofeedback: all-stageautofeedback-target-libsanitizer
41319TARGET-stageautofeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
41320all-stageautofeedback-target-libsanitizer: configure-stageautofeedback-target-libsanitizer
41321 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
41322 @r=`${PWD_COMMAND}`; export r; \
41323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41324 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
41325 $(RAW_CXX_TARGET_EXPORTS) \
41326 \
41327 cd $(TARGET_SUBDIR)/libsanitizer && \
41328 \
41329 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41330 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41331 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41332 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41333 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41334 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41335 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41336 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
41337 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
41338 $(TARGET-stageautofeedback-target-libsanitizer)
41339
41340maybe-clean-stageautofeedback-target-libsanitizer: clean-stageautofeedback-target-libsanitizer
41341clean-stageautofeedback: clean-stageautofeedback-target-libsanitizer
41342clean-stageautofeedback-target-libsanitizer:
41343 @if [ $(current_stage) = stageautofeedback ]; then \
41344 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
41345 else \
41346 [ -f $(TARGET_SUBDIR)/stageautofeedback-libsanitizer/Makefile ] || exit 0; \
41347 $(MAKE) stageautofeedback-start; \
41348 fi; \
41349 cd $(TARGET_SUBDIR)/libsanitizer && \
41350 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
41351@endif target-libsanitizer-bootstrap
41352
41353
e8a5fa9c
RW
41354
41355
d545f33b
PB
41356
41357
1b6c0831
L
41358.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
41359maybe-check-target-libsanitizer:
41360@if target-libsanitizer
41361maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 41362
1b6c0831 41363check-target-libsanitizer:
0aed8855 41364 @: $(MAKE); $(unstage)
b40e3958
L
41365 @r=`${PWD_COMMAND}`; export r; \
41366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41367 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 41368 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 41369 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 41370
1b6c0831 41371@endif target-libsanitizer
3866be5d 41372
1b6c0831
L
41373.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
41374maybe-install-target-libsanitizer:
41375@if target-libsanitizer
41376maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 41377
1b6c0831 41378install-target-libsanitizer: installdirs
0aed8855 41379 @: $(MAKE); $(unstage)
b40e3958
L
41380 @r=`${PWD_COMMAND}`; export r; \
41381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41382 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 41383 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 41384 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41385
1b6c0831 41386@endif target-libsanitizer
e2b9e2dc 41387
1b6c0831
L
41388.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
41389maybe-install-strip-target-libsanitizer:
41390@if target-libsanitizer
41391maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 41392
1b6c0831 41393install-strip-target-libsanitizer: installdirs
9b980aa1
RW
41394 @: $(MAKE); $(unstage)
41395 @r=`${PWD_COMMAND}`; export r; \
41396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41397 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 41398 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
41399 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41400
1b6c0831 41401@endif target-libsanitizer
9b980aa1 41402
56a8fe78 41403# Other targets (info, dvi, pdf, etc.)
3866be5d 41404
1b6c0831
L
41405.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
41406maybe-info-target-libsanitizer:
41407@if target-libsanitizer
41408maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 41409
1b6c0831
L
41410info-target-libsanitizer: \
41411 configure-target-libsanitizer
0aed8855 41412 @: $(MAKE); $(unstage)
22121df0 41413 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 41414 r=`${PWD_COMMAND}`; export r; \
b40e3958 41415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41416 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41417 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
41418 for flag in $(EXTRA_TARGET_FLAGS); do \
41419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41420 done; \
1b6c0831 41421 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
41422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41424 "RANLIB=$${RANLIB}" \
0c24b341 41425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41426 info) \
4fa63067 41427 || exit 1
3866be5d 41428
1b6c0831 41429@endif target-libsanitizer
3866be5d 41430
1b6c0831
L
41431.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
41432maybe-dvi-target-libsanitizer:
41433@if target-libsanitizer
41434maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 41435
1b6c0831
L
41436dvi-target-libsanitizer: \
41437 configure-target-libsanitizer
0aed8855 41438 @: $(MAKE); $(unstage)
22121df0 41439 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 41440 r=`${PWD_COMMAND}`; export r; \
b40e3958 41441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41442 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41443 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
41444 for flag in $(EXTRA_TARGET_FLAGS); do \
41445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41446 done; \
1b6c0831 41447 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
41448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41450 "RANLIB=$${RANLIB}" \
0c24b341 41451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41452 dvi) \
4fa63067 41453 || exit 1
3866be5d 41454
1b6c0831 41455@endif target-libsanitizer
3866be5d 41456
1b6c0831
L
41457.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
41458maybe-pdf-target-libsanitizer:
41459@if target-libsanitizer
41460maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 41461
1b6c0831
L
41462pdf-target-libsanitizer: \
41463 configure-target-libsanitizer
56a8fe78 41464 @: $(MAKE); $(unstage)
22121df0 41465 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
41466 r=`${PWD_COMMAND}`; export r; \
41467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41468 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41469 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
41470 for flag in $(EXTRA_TARGET_FLAGS); do \
41471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41472 done; \
1b6c0831 41473 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
41474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41476 "RANLIB=$${RANLIB}" \
0c24b341 41477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41478 pdf) \
41479 || exit 1
41480
1b6c0831 41481@endif target-libsanitizer
56a8fe78 41482
1b6c0831
L
41483.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
41484maybe-html-target-libsanitizer:
41485@if target-libsanitizer
41486maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 41487
1b6c0831
L
41488html-target-libsanitizer: \
41489 configure-target-libsanitizer
0aed8855 41490 @: $(MAKE); $(unstage)
22121df0 41491 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
41492 r=`${PWD_COMMAND}`; export r; \
41493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41494 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41495 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
41496 for flag in $(EXTRA_TARGET_FLAGS); do \
41497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41498 done; \
1b6c0831 41499 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
41500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41502 "RANLIB=$${RANLIB}" \
0c24b341 41503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41504 html) \
41505 || exit 1
41506
1b6c0831 41507@endif target-libsanitizer
6d389afc 41508
1b6c0831
L
41509.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
41510maybe-TAGS-target-libsanitizer:
41511@if target-libsanitizer
41512maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 41513
1b6c0831
L
41514TAGS-target-libsanitizer: \
41515 configure-target-libsanitizer
0aed8855 41516 @: $(MAKE); $(unstage)
22121df0 41517 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
41518 r=`${PWD_COMMAND}`; export r; \
41519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41520 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41521 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
41522 for flag in $(EXTRA_TARGET_FLAGS); do \
41523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41524 done; \
1b6c0831 41525 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
41526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41528 "RANLIB=$${RANLIB}" \
0c24b341 41529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41530 TAGS) \
e2b9e2dc
NN
41531 || exit 1
41532
1b6c0831 41533@endif target-libsanitizer
3866be5d 41534
1b6c0831
L
41535.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
41536maybe-install-info-target-libsanitizer:
41537@if target-libsanitizer
41538maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 41539
1b6c0831
L
41540install-info-target-libsanitizer: \
41541 configure-target-libsanitizer \
41542 info-target-libsanitizer
0aed8855 41543 @: $(MAKE); $(unstage)
22121df0 41544 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 41545 r=`${PWD_COMMAND}`; export r; \
b40e3958 41546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41547 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41548 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
41549 for flag in $(EXTRA_TARGET_FLAGS); do \
41550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41551 done; \
1b6c0831 41552 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
41553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41555 "RANLIB=$${RANLIB}" \
0c24b341 41556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41557 install-info) \
4fa63067 41558 || exit 1
3866be5d 41559
1b6c0831 41560@endif target-libsanitizer
3866be5d 41561
1b6c0831
L
41562.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
41563maybe-install-pdf-target-libsanitizer:
41564@if target-libsanitizer
41565maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 41566
1b6c0831
L
41567install-pdf-target-libsanitizer: \
41568 configure-target-libsanitizer \
41569 pdf-target-libsanitizer
a3ca38d2 41570 @: $(MAKE); $(unstage)
22121df0 41571 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
41572 r=`${PWD_COMMAND}`; export r; \
41573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41574 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41575 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
41576 for flag in $(EXTRA_TARGET_FLAGS); do \
41577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41578 done; \
1b6c0831 41579 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
41580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41582 "RANLIB=$${RANLIB}" \
0c24b341 41583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41584 install-pdf) \
41585 || exit 1
41586
1b6c0831 41587@endif target-libsanitizer
a3ca38d2 41588
1b6c0831
L
41589.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
41590maybe-install-html-target-libsanitizer:
41591@if target-libsanitizer
41592maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 41593
1b6c0831
L
41594install-html-target-libsanitizer: \
41595 configure-target-libsanitizer \
41596 html-target-libsanitizer
108a6f8e 41597 @: $(MAKE); $(unstage)
22121df0 41598 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
41599 r=`${PWD_COMMAND}`; export r; \
41600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41601 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41602 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
41603 for flag in $(EXTRA_TARGET_FLAGS); do \
41604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41605 done; \
1b6c0831 41606 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
41607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41609 "RANLIB=$${RANLIB}" \
0c24b341 41610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41611 install-html) \
41612 || exit 1
41613
1b6c0831 41614@endif target-libsanitizer
108a6f8e 41615
1b6c0831
L
41616.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
41617maybe-installcheck-target-libsanitizer:
41618@if target-libsanitizer
41619maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 41620
1b6c0831
L
41621installcheck-target-libsanitizer: \
41622 configure-target-libsanitizer
0aed8855 41623 @: $(MAKE); $(unstage)
22121df0 41624 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 41625 r=`${PWD_COMMAND}`; export r; \
b40e3958 41626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41627 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41628 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
41629 for flag in $(EXTRA_TARGET_FLAGS); do \
41630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41631 done; \
1b6c0831 41632 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
41633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41635 "RANLIB=$${RANLIB}" \
0c24b341 41636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41637 installcheck) \
4fa63067 41638 || exit 1
3866be5d 41639
1b6c0831 41640@endif target-libsanitizer
3866be5d 41641
1b6c0831
L
41642.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
41643maybe-mostlyclean-target-libsanitizer:
41644@if target-libsanitizer
41645maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 41646
1b6c0831 41647mostlyclean-target-libsanitizer:
0aed8855 41648 @: $(MAKE); $(unstage)
22121df0 41649 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
41650 r=`${PWD_COMMAND}`; export r; \
41651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41652 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41653 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
41654 for flag in $(EXTRA_TARGET_FLAGS); do \
41655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41656 done; \
1b6c0831 41657 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
41658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41660 "RANLIB=$${RANLIB}" \
0c24b341 41661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41662 mostlyclean) \
e2b9e2dc
NN
41663 || exit 1
41664
1b6c0831 41665@endif target-libsanitizer
4fa63067 41666
1b6c0831
L
41667.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
41668maybe-clean-target-libsanitizer:
41669@if target-libsanitizer
41670maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 41671
1b6c0831 41672clean-target-libsanitizer:
0aed8855 41673 @: $(MAKE); $(unstage)
22121df0 41674 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 41675 r=`${PWD_COMMAND}`; export r; \
b40e3958 41676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41677 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41678 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
41679 for flag in $(EXTRA_TARGET_FLAGS); do \
41680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41681 done; \
1b6c0831 41682 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
41683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41685 "RANLIB=$${RANLIB}" \
0c24b341 41686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41687 clean) \
4fa63067 41688 || exit 1
3866be5d 41689
1b6c0831 41690@endif target-libsanitizer
3866be5d 41691
1b6c0831
L
41692.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
41693maybe-distclean-target-libsanitizer:
41694@if target-libsanitizer
41695maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 41696
1b6c0831 41697distclean-target-libsanitizer:
0aed8855 41698 @: $(MAKE); $(unstage)
22121df0 41699 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 41700 r=`${PWD_COMMAND}`; export r; \
b40e3958 41701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41702 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41703 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
41704 for flag in $(EXTRA_TARGET_FLAGS); do \
41705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41706 done; \
1b6c0831 41707 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
41708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41710 "RANLIB=$${RANLIB}" \
0c24b341 41711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41712 distclean) \
4fa63067 41713 || exit 1
3866be5d 41714
1b6c0831 41715@endif target-libsanitizer
3866be5d 41716
1b6c0831
L
41717.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
41718maybe-maintainer-clean-target-libsanitizer:
41719@if target-libsanitizer
41720maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 41721
1b6c0831 41722maintainer-clean-target-libsanitizer:
0aed8855 41723 @: $(MAKE); $(unstage)
22121df0 41724 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 41725 r=`${PWD_COMMAND}`; export r; \
b40e3958 41726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41727 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 41728 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
41729 for flag in $(EXTRA_TARGET_FLAGS); do \
41730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41731 done; \
1b6c0831 41732 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
41733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41735 "RANLIB=$${RANLIB}" \
0c24b341 41736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41737 maintainer-clean) \
4fa63067 41738 || exit 1
3866be5d 41739
1b6c0831 41740@endif target-libsanitizer
3866be5d 41741
4fa63067 41742
4fa63067 41743
a7254363
PB
41744
41745
1b6c0831
L
41746.PHONY: configure-target-libmpx maybe-configure-target-libmpx
41747maybe-configure-target-libmpx:
5286fdef 41748@if gcc-bootstrap
1b6c0831 41749configure-target-libmpx: stage_current
5286fdef 41750@endif gcc-bootstrap
1b6c0831
L
41751@if target-libmpx
41752maybe-configure-target-libmpx: configure-target-libmpx
41753configure-target-libmpx:
5286fdef
L
41754 @r=`${PWD_COMMAND}`; export r; \
41755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 41756 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
41757 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
41758 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
41759 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41760 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41761 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 41762 else \
1b6c0831
L
41763 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
41764 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
41765 fi; \
41766 else \
1b6c0831 41767 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 41768 fi; \
1b6c0831 41769 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 41770 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
41771 $(NORMAL_TARGET_EXPORTS) \
41772 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
41773 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
41774 case $(srcdir) in \
41775 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 41776 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
41777 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41778 esac; \
1b6c0831 41779 module_srcdir=libmpx; \
5286fdef 41780 rm -f no-such-file || : ; \
1b6c0831
L
41781 CONFIG_SITE=no-such-file $(SHELL) \
41782 $$s/$$module_srcdir/configure \
41783 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 41784 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41785 --target=${target_alias} \
5286fdef 41786 || exit 1
1b6c0831 41787@endif target-libmpx
5286fdef
L
41788
41789
41790
1b6c0831
L
41791.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
41792maybe-configure-stage1-target-libmpx:
41793@if target-libmpx-bootstrap
41794maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
41795configure-stage1-target-libmpx:
5eb08693 41796 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 41797 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
41798 @r=`${PWD_COMMAND}`; export r; \
41799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41800 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 41801 echo "Checking multilib configuration for libmpx..."; \
22121df0 41802 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
41803 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41804 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41805 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 41806 else \
1b6c0831
L
41807 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
41808 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
41809 fi; \
41810 else \
1b6c0831 41811 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 41812 fi; \
1b6c0831
L
41813 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
41814 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
41815 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41816 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41817 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41818 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
41819 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 41820 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
41821 case $(srcdir) in \
41822 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 41823 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
41824 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41825 esac; \
1b6c0831
L
41826 module_srcdir=libmpx; \
41827 $(SHELL) $$s/$$module_srcdir/configure \
41828 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 41829 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
41830 --target=${target_alias} \
41831 \
5eb08693 41832 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 41833@endif target-libmpx-bootstrap
5eb08693 41834
1b6c0831
L
41835.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
41836maybe-configure-stage2-target-libmpx:
41837@if target-libmpx-bootstrap
41838maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
41839configure-stage2-target-libmpx:
5eb08693 41840 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 41841 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
41842 @r=`${PWD_COMMAND}`; export r; \
41843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41844 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 41845 echo "Checking multilib configuration for libmpx..."; \
22121df0 41846 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
41847 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41848 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41849 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 41850 else \
1b6c0831
L
41851 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
41852 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
41853 fi; \
41854 else \
1b6c0831 41855 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 41856 fi; \
1b6c0831
L
41857 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
41858 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
41859 \
41860 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41861 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41862 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41863 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
41864 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 41865 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
41866 case $(srcdir) in \
41867 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 41868 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
41869 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41870 esac; \
1b6c0831
L
41871 module_srcdir=libmpx; \
41872 $(SHELL) $$s/$$module_srcdir/configure \
41873 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 41874 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41875 --target=${target_alias} \
22121df0 41876 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 41877 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 41878@endif target-libmpx-bootstrap
5eb08693 41879
1b6c0831
L
41880.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
41881maybe-configure-stage3-target-libmpx:
41882@if target-libmpx-bootstrap
41883maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
41884configure-stage3-target-libmpx:
5eb08693 41885 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 41886 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
41887 @r=`${PWD_COMMAND}`; export r; \
41888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41889 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 41890 echo "Checking multilib configuration for libmpx..."; \
22121df0 41891 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
41892 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41893 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41894 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 41895 else \
1b6c0831
L
41896 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
41897 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
41898 fi; \
41899 else \
1b6c0831 41900 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 41901 fi; \
1b6c0831
L
41902 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
41903 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
41904 \
41905 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41906 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41907 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41908 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
41909 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 41910 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
41911 case $(srcdir) in \
41912 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 41913 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
41914 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41915 esac; \
1b6c0831
L
41916 module_srcdir=libmpx; \
41917 $(SHELL) $$s/$$module_srcdir/configure \
41918 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 41919 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41920 --target=${target_alias} \
22121df0 41921 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 41922 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 41923@endif target-libmpx-bootstrap
5eb08693 41924
1b6c0831
L
41925.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
41926maybe-configure-stage4-target-libmpx:
41927@if target-libmpx-bootstrap
41928maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
41929configure-stage4-target-libmpx:
5eb08693 41930 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 41931 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
41932 @r=`${PWD_COMMAND}`; export r; \
41933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41934 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 41935 echo "Checking multilib configuration for libmpx..."; \
22121df0 41936 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
41937 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41938 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41939 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 41940 else \
1b6c0831
L
41941 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
41942 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
41943 fi; \
41944 else \
1b6c0831 41945 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 41946 fi; \
1b6c0831
L
41947 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
41948 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
41949 \
41950 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41951 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41952 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41953 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
41954 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 41955 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
41956 case $(srcdir) in \
41957 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 41958 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
41959 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41960 esac; \
1b6c0831
L
41961 module_srcdir=libmpx; \
41962 $(SHELL) $$s/$$module_srcdir/configure \
41963 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 41964 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41965 --target=${target_alias} \
22121df0 41966 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 41967 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 41968@endif target-libmpx-bootstrap
5eb08693 41969
1b6c0831
L
41970.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
41971maybe-configure-stageprofile-target-libmpx:
41972@if target-libmpx-bootstrap
41973maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
41974configure-stageprofile-target-libmpx:
5eb08693 41975 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 41976 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
41977 @r=`${PWD_COMMAND}`; export r; \
41978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41979 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 41980 echo "Checking multilib configuration for libmpx..."; \
22121df0 41981 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
41982 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41983 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
41984 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 41985 else \
1b6c0831
L
41986 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
41987 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
41988 fi; \
41989 else \
1b6c0831 41990 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 41991 fi; \
1b6c0831
L
41992 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
41993 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
41994 \
41995 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41996 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41997 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41998 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
41999 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 42000 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
42001 case $(srcdir) in \
42002 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 42003 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
42004 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42005 esac; \
1b6c0831
L
42006 module_srcdir=libmpx; \
42007 $(SHELL) $$s/$$module_srcdir/configure \
42008 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 42009 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42010 --target=${target_alias} \
22121df0 42011 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 42012 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 42013@endif target-libmpx-bootstrap
5eb08693 42014
f948b2de
NC
42015.PHONY: configure-stagetrain-target-libmpx maybe-configure-stagetrain-target-libmpx
42016maybe-configure-stagetrain-target-libmpx:
42017@if target-libmpx-bootstrap
42018maybe-configure-stagetrain-target-libmpx: configure-stagetrain-target-libmpx
42019configure-stagetrain-target-libmpx:
42020 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
42021 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
42022 @r=`${PWD_COMMAND}`; export r; \
42023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42024 TFLAGS="$(STAGEtrain_TFLAGS)"; \
42025 echo "Checking multilib configuration for libmpx..."; \
42026 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
42027 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
42028 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
42029 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
42030 else \
42031 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
42032 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
42033 fi; \
42034 else \
42035 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
42036 fi; \
42037 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
42038 $(NORMAL_TARGET_EXPORTS) \
42039 \
42040 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42041 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42042 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42043 echo Configuring stage train in $(TARGET_SUBDIR)/libmpx; \
42044 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
42045 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
42046 case $(srcdir) in \
42047 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42048 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
42049 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42050 esac; \
42051 module_srcdir=libmpx; \
42052 $(SHELL) $$s/$$module_srcdir/configure \
42053 --srcdir=$${topdir}/$$module_srcdir \
42054 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42055 --target=${target_alias} \
42056 --with-build-libsubdir=$(HOST_SUBDIR) \
42057 $(STAGEtrain_CONFIGURE_FLAGS)
42058@endif target-libmpx-bootstrap
42059
1b6c0831
L
42060.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
42061maybe-configure-stagefeedback-target-libmpx:
42062@if target-libmpx-bootstrap
42063maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
42064configure-stagefeedback-target-libmpx:
5eb08693 42065 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 42066 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
42067 @r=`${PWD_COMMAND}`; export r; \
42068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42069 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 42070 echo "Checking multilib configuration for libmpx..."; \
22121df0 42071 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
42072 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
42073 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
42074 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 42075 else \
1b6c0831
L
42076 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
42077 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
42078 fi; \
42079 else \
1b6c0831 42080 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 42081 fi; \
1b6c0831
L
42082 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
42083 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
42084 \
42085 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42086 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42087 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
42088 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
42089 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 42090 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
42091 case $(srcdir) in \
42092 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 42093 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
42094 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42095 esac; \
1b6c0831
L
42096 module_srcdir=libmpx; \
42097 $(SHELL) $$s/$$module_srcdir/configure \
42098 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 42099 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42100 --target=${target_alias} \
22121df0 42101 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 42102 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 42103@endif target-libmpx-bootstrap
5eb08693 42104
f948b2de
NC
42105.PHONY: configure-stageautoprofile-target-libmpx maybe-configure-stageautoprofile-target-libmpx
42106maybe-configure-stageautoprofile-target-libmpx:
42107@if target-libmpx-bootstrap
42108maybe-configure-stageautoprofile-target-libmpx: configure-stageautoprofile-target-libmpx
42109configure-stageautoprofile-target-libmpx:
42110 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
42111 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
42112 @r=`${PWD_COMMAND}`; export r; \
42113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42114 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
42115 echo "Checking multilib configuration for libmpx..."; \
42116 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
42117 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
42118 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
42119 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
42120 else \
42121 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
42122 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
42123 fi; \
42124 else \
42125 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
42126 fi; \
42127 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
42128 $(NORMAL_TARGET_EXPORTS) \
42129 \
42130 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42131 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42132 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42133 echo Configuring stage autoprofile in $(TARGET_SUBDIR)/libmpx; \
42134 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
42135 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
42136 case $(srcdir) in \
42137 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42138 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
42139 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42140 esac; \
42141 module_srcdir=libmpx; \
42142 $(SHELL) $$s/$$module_srcdir/configure \
42143 --srcdir=$${topdir}/$$module_srcdir \
42144 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42145 --target=${target_alias} \
42146 --with-build-libsubdir=$(HOST_SUBDIR) \
42147 $(STAGEautoprofile_CONFIGURE_FLAGS)
42148@endif target-libmpx-bootstrap
42149
42150.PHONY: configure-stageautofeedback-target-libmpx maybe-configure-stageautofeedback-target-libmpx
42151maybe-configure-stageautofeedback-target-libmpx:
42152@if target-libmpx-bootstrap
42153maybe-configure-stageautofeedback-target-libmpx: configure-stageautofeedback-target-libmpx
42154configure-stageautofeedback-target-libmpx:
42155 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
42156 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
42157 @r=`${PWD_COMMAND}`; export r; \
42158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42159 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
42160 echo "Checking multilib configuration for libmpx..."; \
42161 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
42162 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
42163 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
42164 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
42165 else \
42166 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
42167 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
42168 fi; \
42169 else \
42170 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
42171 fi; \
42172 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
42173 $(NORMAL_TARGET_EXPORTS) \
42174 \
42175 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
42176 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
42177 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
42178 echo Configuring stage autofeedback in $(TARGET_SUBDIR)/libmpx; \
42179 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
42180 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
42181 case $(srcdir) in \
42182 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
42183 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
42184 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42185 esac; \
42186 module_srcdir=libmpx; \
42187 $(SHELL) $$s/$$module_srcdir/configure \
42188 --srcdir=$${topdir}/$$module_srcdir \
42189 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
42190 --target=${target_alias} \
42191 --with-build-libsubdir=$(HOST_SUBDIR) \
42192 $(STAGEautofeedback_CONFIGURE_FLAGS)
42193@endif target-libmpx-bootstrap
42194
5eb08693
L
42195
42196
5286fdef
L
42197
42198
1b6c0831
L
42199.PHONY: all-target-libmpx maybe-all-target-libmpx
42200maybe-all-target-libmpx:
5286fdef 42201@if gcc-bootstrap
1b6c0831 42202all-target-libmpx: stage_current
5286fdef 42203@endif gcc-bootstrap
1b6c0831
L
42204@if target-libmpx
42205TARGET-target-libmpx=all
42206maybe-all-target-libmpx: all-target-libmpx
42207all-target-libmpx: configure-target-libmpx
5286fdef
L
42208 @r=`${PWD_COMMAND}`; export r; \
42209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
42210 $(NORMAL_TARGET_EXPORTS) \
42211 (cd $(TARGET_SUBDIR)/libmpx && \
42212 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
42213 $(TARGET-target-libmpx))
42214@endif target-libmpx
5286fdef
L
42215
42216
42217
1b6c0831
L
42218.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
42219.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
42220maybe-all-stage1-target-libmpx:
42221maybe-clean-stage1-target-libmpx:
42222@if target-libmpx-bootstrap
42223maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
42224all-stage1: all-stage1-target-libmpx
42225TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
42226all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
42227 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
42228 @r=`${PWD_COMMAND}`; export r; \
42229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42230 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
42231 $(NORMAL_TARGET_EXPORTS) \
42232 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 42233 \
5eb08693
L
42234 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42235 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42236 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42237 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42238 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42239 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42240 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 42241 $(EXTRA_TARGET_FLAGS) \
5eb08693 42242 \
05a13254 42243 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 42244 $(TARGET-stage1-target-libmpx)
5eb08693 42245
1b6c0831
L
42246maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
42247clean-stage1: clean-stage1-target-libmpx
42248clean-stage1-target-libmpx:
5eb08693 42249 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 42250 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 42251 else \
1b6c0831 42252 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
42253 $(MAKE) stage1-start; \
42254 fi; \
1b6c0831
L
42255 cd $(TARGET_SUBDIR)/libmpx && \
42256 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 42257 clean
1b6c0831
L
42258@endif target-libmpx-bootstrap
42259
42260
42261.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
42262.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
42263maybe-all-stage2-target-libmpx:
42264maybe-clean-stage2-target-libmpx:
42265@if target-libmpx-bootstrap
42266maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
42267all-stage2: all-stage2-target-libmpx
42268TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
42269all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
42270 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
42271 @r=`${PWD_COMMAND}`; export r; \
42272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42273 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 42274 $(NORMAL_TARGET_EXPORTS) \
5eb08693 42275 \
1b6c0831 42276 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 42277 \
5eb08693
L
42278 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42279 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42280 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42281 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42282 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42283 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42284 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 42285 $(EXTRA_TARGET_FLAGS) \
05a13254 42286 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 42287 $(TARGET-stage2-target-libmpx)
5eb08693 42288
1b6c0831
L
42289maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
42290clean-stage2: clean-stage2-target-libmpx
42291clean-stage2-target-libmpx:
5eb08693 42292 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 42293 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 42294 else \
1b6c0831 42295 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
42296 $(MAKE) stage2-start; \
42297 fi; \
1b6c0831
L
42298 cd $(TARGET_SUBDIR)/libmpx && \
42299 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
42300@endif target-libmpx-bootstrap
42301
42302
42303.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
42304.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
42305maybe-all-stage3-target-libmpx:
42306maybe-clean-stage3-target-libmpx:
42307@if target-libmpx-bootstrap
42308maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
42309all-stage3: all-stage3-target-libmpx
42310TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
42311all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
42312 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
42313 @r=`${PWD_COMMAND}`; export r; \
42314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42315 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 42316 $(NORMAL_TARGET_EXPORTS) \
5eb08693 42317 \
1b6c0831 42318 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 42319 \
5eb08693
L
42320 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42321 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42322 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42323 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42324 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42325 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42326 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 42327 $(EXTRA_TARGET_FLAGS) \
05a13254 42328 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 42329 $(TARGET-stage3-target-libmpx)
5eb08693 42330
1b6c0831
L
42331maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
42332clean-stage3: clean-stage3-target-libmpx
42333clean-stage3-target-libmpx:
5eb08693 42334 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 42335 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 42336 else \
1b6c0831 42337 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
42338 $(MAKE) stage3-start; \
42339 fi; \
1b6c0831
L
42340 cd $(TARGET_SUBDIR)/libmpx && \
42341 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
42342@endif target-libmpx-bootstrap
42343
42344
42345.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
42346.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
42347maybe-all-stage4-target-libmpx:
42348maybe-clean-stage4-target-libmpx:
42349@if target-libmpx-bootstrap
42350maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
42351all-stage4: all-stage4-target-libmpx
42352TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
42353all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
42354 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
42355 @r=`${PWD_COMMAND}`; export r; \
42356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42357 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 42358 $(NORMAL_TARGET_EXPORTS) \
5eb08693 42359 \
1b6c0831 42360 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 42361 \
5eb08693
L
42362 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42363 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42364 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42365 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42366 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42367 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42368 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 42369 $(EXTRA_TARGET_FLAGS) \
05a13254 42370 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 42371 $(TARGET-stage4-target-libmpx)
5eb08693 42372
1b6c0831
L
42373maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
42374clean-stage4: clean-stage4-target-libmpx
42375clean-stage4-target-libmpx:
5eb08693 42376 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 42377 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 42378 else \
1b6c0831 42379 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
42380 $(MAKE) stage4-start; \
42381 fi; \
1b6c0831
L
42382 cd $(TARGET_SUBDIR)/libmpx && \
42383 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
42384@endif target-libmpx-bootstrap
42385
42386
42387.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
42388.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
42389maybe-all-stageprofile-target-libmpx:
42390maybe-clean-stageprofile-target-libmpx:
42391@if target-libmpx-bootstrap
42392maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
42393all-stageprofile: all-stageprofile-target-libmpx
42394TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
42395all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
42396 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
42397 @r=`${PWD_COMMAND}`; export r; \
42398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42399 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 42400 $(NORMAL_TARGET_EXPORTS) \
5eb08693 42401 \
1b6c0831 42402 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 42403 \
5eb08693
L
42404 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42405 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42406 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42407 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42408 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42409 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42410 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 42411 $(EXTRA_TARGET_FLAGS) \
05a13254 42412 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 42413 $(TARGET-stageprofile-target-libmpx)
5eb08693 42414
1b6c0831
L
42415maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
42416clean-stageprofile: clean-stageprofile-target-libmpx
42417clean-stageprofile-target-libmpx:
5eb08693 42418 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 42419 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 42420 else \
1b6c0831 42421 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
42422 $(MAKE) stageprofile-start; \
42423 fi; \
1b6c0831
L
42424 cd $(TARGET_SUBDIR)/libmpx && \
42425 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
42426@endif target-libmpx-bootstrap
42427
42428
f948b2de
NC
42429.PHONY: all-stagetrain-target-libmpx maybe-all-stagetrain-target-libmpx
42430.PHONY: clean-stagetrain-target-libmpx maybe-clean-stagetrain-target-libmpx
42431maybe-all-stagetrain-target-libmpx:
42432maybe-clean-stagetrain-target-libmpx:
42433@if target-libmpx-bootstrap
42434maybe-all-stagetrain-target-libmpx: all-stagetrain-target-libmpx
42435all-stagetrain: all-stagetrain-target-libmpx
42436TARGET-stagetrain-target-libmpx = $(TARGET-target-libmpx)
42437all-stagetrain-target-libmpx: configure-stagetrain-target-libmpx
42438 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
42439 @r=`${PWD_COMMAND}`; export r; \
42440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42441 TFLAGS="$(STAGEtrain_TFLAGS)"; \
42442 $(NORMAL_TARGET_EXPORTS) \
42443 \
42444 cd $(TARGET_SUBDIR)/libmpx && \
42445 \
42446 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42447 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42448 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42449 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42450 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42451 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42452 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
42453 $(EXTRA_TARGET_FLAGS) \
42454 TFLAGS="$(STAGEtrain_TFLAGS)" \
42455 $(TARGET-stagetrain-target-libmpx)
42456
42457maybe-clean-stagetrain-target-libmpx: clean-stagetrain-target-libmpx
42458clean-stagetrain: clean-stagetrain-target-libmpx
42459clean-stagetrain-target-libmpx:
42460 @if [ $(current_stage) = stagetrain ]; then \
42461 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
42462 else \
42463 [ -f $(TARGET_SUBDIR)/stagetrain-libmpx/Makefile ] || exit 0; \
42464 $(MAKE) stagetrain-start; \
42465 fi; \
42466 cd $(TARGET_SUBDIR)/libmpx && \
42467 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
42468@endif target-libmpx-bootstrap
42469
42470
1b6c0831
L
42471.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
42472.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
42473maybe-all-stagefeedback-target-libmpx:
42474maybe-clean-stagefeedback-target-libmpx:
42475@if target-libmpx-bootstrap
42476maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
42477all-stagefeedback: all-stagefeedback-target-libmpx
42478TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
42479all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
42480 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
42481 @r=`${PWD_COMMAND}`; export r; \
42482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42483 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 42484 $(NORMAL_TARGET_EXPORTS) \
5eb08693 42485 \
1b6c0831 42486 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 42487 \
5eb08693
L
42488 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42489 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42490 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42491 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42492 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42493 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42494 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 42495 $(EXTRA_TARGET_FLAGS) \
05a13254 42496 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 42497 $(TARGET-stagefeedback-target-libmpx)
5eb08693 42498
1b6c0831
L
42499maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
42500clean-stagefeedback: clean-stagefeedback-target-libmpx
42501clean-stagefeedback-target-libmpx:
5eb08693 42502 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 42503 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 42504 else \
1b6c0831 42505 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
42506 $(MAKE) stagefeedback-start; \
42507 fi; \
1b6c0831
L
42508 cd $(TARGET_SUBDIR)/libmpx && \
42509 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
42510@endif target-libmpx-bootstrap
5eb08693
L
42511
42512
f948b2de
NC
42513.PHONY: all-stageautoprofile-target-libmpx maybe-all-stageautoprofile-target-libmpx
42514.PHONY: clean-stageautoprofile-target-libmpx maybe-clean-stageautoprofile-target-libmpx
42515maybe-all-stageautoprofile-target-libmpx:
42516maybe-clean-stageautoprofile-target-libmpx:
42517@if target-libmpx-bootstrap
42518maybe-all-stageautoprofile-target-libmpx: all-stageautoprofile-target-libmpx
42519all-stageautoprofile: all-stageautoprofile-target-libmpx
42520TARGET-stageautoprofile-target-libmpx = $(TARGET-target-libmpx)
42521all-stageautoprofile-target-libmpx: configure-stageautoprofile-target-libmpx
42522 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
42523 @r=`${PWD_COMMAND}`; export r; \
42524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42525 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
42526 $(NORMAL_TARGET_EXPORTS) \
42527 \
42528 cd $(TARGET_SUBDIR)/libmpx && \
42529 $$s/gcc/config/i386/$(AUTO_PROFILE) \
42530 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42531 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42532 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42533 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42534 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42535 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42536 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
42537 $(EXTRA_TARGET_FLAGS) \
42538 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
42539 $(TARGET-stageautoprofile-target-libmpx)
42540
42541maybe-clean-stageautoprofile-target-libmpx: clean-stageautoprofile-target-libmpx
42542clean-stageautoprofile: clean-stageautoprofile-target-libmpx
42543clean-stageautoprofile-target-libmpx:
42544 @if [ $(current_stage) = stageautoprofile ]; then \
42545 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
42546 else \
42547 [ -f $(TARGET_SUBDIR)/stageautoprofile-libmpx/Makefile ] || exit 0; \
42548 $(MAKE) stageautoprofile-start; \
42549 fi; \
42550 cd $(TARGET_SUBDIR)/libmpx && \
42551 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
42552@endif target-libmpx-bootstrap
42553
42554
42555.PHONY: all-stageautofeedback-target-libmpx maybe-all-stageautofeedback-target-libmpx
42556.PHONY: clean-stageautofeedback-target-libmpx maybe-clean-stageautofeedback-target-libmpx
42557maybe-all-stageautofeedback-target-libmpx:
42558maybe-clean-stageautofeedback-target-libmpx:
42559@if target-libmpx-bootstrap
42560maybe-all-stageautofeedback-target-libmpx: all-stageautofeedback-target-libmpx
42561all-stageautofeedback: all-stageautofeedback-target-libmpx
42562TARGET-stageautofeedback-target-libmpx = $(TARGET-target-libmpx)
42563all-stageautofeedback-target-libmpx: configure-stageautofeedback-target-libmpx
42564 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
42565 @r=`${PWD_COMMAND}`; export r; \
42566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42567 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
42568 $(NORMAL_TARGET_EXPORTS) \
42569 \
42570 cd $(TARGET_SUBDIR)/libmpx && \
42571 \
42572 $(MAKE) $(BASE_FLAGS_TO_PASS) \
42573 CFLAGS="$(CFLAGS_FOR_TARGET)" \
42574 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
42575 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
42576 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
42577 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
42578 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
42579 $(EXTRA_TARGET_FLAGS) \
42580 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
42581 $(TARGET-stageautofeedback-target-libmpx)
42582
42583maybe-clean-stageautofeedback-target-libmpx: clean-stageautofeedback-target-libmpx
42584clean-stageautofeedback: clean-stageautofeedback-target-libmpx
42585clean-stageautofeedback-target-libmpx:
42586 @if [ $(current_stage) = stageautofeedback ]; then \
42587 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
42588 else \
42589 [ -f $(TARGET_SUBDIR)/stageautofeedback-libmpx/Makefile ] || exit 0; \
42590 $(MAKE) stageautofeedback-start; \
42591 fi; \
42592 cd $(TARGET_SUBDIR)/libmpx && \
42593 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
42594@endif target-libmpx-bootstrap
42595
42596
5eb08693
L
42597
42598
5286fdef
L
42599
42600
1b6c0831
L
42601.PHONY: check-target-libmpx maybe-check-target-libmpx
42602maybe-check-target-libmpx:
42603@if target-libmpx
42604maybe-check-target-libmpx: check-target-libmpx
5286fdef 42605
1b6c0831 42606check-target-libmpx:
5286fdef
L
42607 @: $(MAKE); $(unstage)
42608 @r=`${PWD_COMMAND}`; export r; \
42609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
42610 $(NORMAL_TARGET_EXPORTS) \
42611 (cd $(TARGET_SUBDIR)/libmpx && \
42612 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 42613
1b6c0831 42614@endif target-libmpx
5286fdef 42615
1b6c0831
L
42616.PHONY: install-target-libmpx maybe-install-target-libmpx
42617maybe-install-target-libmpx:
42618@if target-libmpx
42619maybe-install-target-libmpx: install-target-libmpx
5286fdef 42620
1b6c0831 42621install-target-libmpx: installdirs
5286fdef
L
42622 @: $(MAKE); $(unstage)
42623 @r=`${PWD_COMMAND}`; export r; \
42624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
42625 $(NORMAL_TARGET_EXPORTS) \
42626 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42627 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
42628
1b6c0831 42629@endif target-libmpx
5286fdef 42630
1b6c0831
L
42631.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
42632maybe-install-strip-target-libmpx:
42633@if target-libmpx
42634maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 42635
1b6c0831 42636install-strip-target-libmpx: installdirs
5286fdef
L
42637 @: $(MAKE); $(unstage)
42638 @r=`${PWD_COMMAND}`; export r; \
42639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
42640 $(NORMAL_TARGET_EXPORTS) \
42641 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42642 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42643
1b6c0831 42644@endif target-libmpx
5286fdef
L
42645
42646# Other targets (info, dvi, pdf, etc.)
42647
1b6c0831
L
42648.PHONY: maybe-info-target-libmpx info-target-libmpx
42649maybe-info-target-libmpx:
42650@if target-libmpx
42651maybe-info-target-libmpx: info-target-libmpx
5286fdef 42652
1b6c0831
L
42653info-target-libmpx: \
42654 configure-target-libmpx
5286fdef 42655 @: $(MAKE); $(unstage)
22121df0 42656 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42657 r=`${PWD_COMMAND}`; export r; \
42658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42659 $(NORMAL_TARGET_EXPORTS) \
22121df0 42660 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42661 for flag in $(EXTRA_TARGET_FLAGS); do \
42662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42663 done; \
1b6c0831 42664 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42667 "RANLIB=$${RANLIB}" \
42668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42669 info) \
42670 || exit 1
42671
1b6c0831 42672@endif target-libmpx
5286fdef 42673
1b6c0831
L
42674.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
42675maybe-dvi-target-libmpx:
42676@if target-libmpx
42677maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 42678
1b6c0831
L
42679dvi-target-libmpx: \
42680 configure-target-libmpx
5286fdef 42681 @: $(MAKE); $(unstage)
22121df0 42682 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42683 r=`${PWD_COMMAND}`; export r; \
42684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42685 $(NORMAL_TARGET_EXPORTS) \
22121df0 42686 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42687 for flag in $(EXTRA_TARGET_FLAGS); do \
42688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42689 done; \
1b6c0831 42690 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42693 "RANLIB=$${RANLIB}" \
42694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42695 dvi) \
42696 || exit 1
42697
1b6c0831 42698@endif target-libmpx
5286fdef 42699
1b6c0831
L
42700.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
42701maybe-pdf-target-libmpx:
42702@if target-libmpx
42703maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 42704
1b6c0831
L
42705pdf-target-libmpx: \
42706 configure-target-libmpx
5286fdef 42707 @: $(MAKE); $(unstage)
22121df0 42708 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42709 r=`${PWD_COMMAND}`; export r; \
42710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42711 $(NORMAL_TARGET_EXPORTS) \
22121df0 42712 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42713 for flag in $(EXTRA_TARGET_FLAGS); do \
42714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42715 done; \
1b6c0831 42716 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42719 "RANLIB=$${RANLIB}" \
42720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42721 pdf) \
42722 || exit 1
42723
1b6c0831 42724@endif target-libmpx
5286fdef 42725
1b6c0831
L
42726.PHONY: maybe-html-target-libmpx html-target-libmpx
42727maybe-html-target-libmpx:
42728@if target-libmpx
42729maybe-html-target-libmpx: html-target-libmpx
5286fdef 42730
1b6c0831
L
42731html-target-libmpx: \
42732 configure-target-libmpx
5286fdef 42733 @: $(MAKE); $(unstage)
22121df0 42734 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42735 r=`${PWD_COMMAND}`; export r; \
42736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42737 $(NORMAL_TARGET_EXPORTS) \
22121df0 42738 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42739 for flag in $(EXTRA_TARGET_FLAGS); do \
42740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42741 done; \
1b6c0831 42742 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42745 "RANLIB=$${RANLIB}" \
42746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42747 html) \
42748 || exit 1
42749
1b6c0831 42750@endif target-libmpx
5286fdef 42751
1b6c0831
L
42752.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
42753maybe-TAGS-target-libmpx:
42754@if target-libmpx
42755maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 42756
1b6c0831
L
42757TAGS-target-libmpx: \
42758 configure-target-libmpx
5286fdef 42759 @: $(MAKE); $(unstage)
22121df0 42760 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42761 r=`${PWD_COMMAND}`; export r; \
42762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42763 $(NORMAL_TARGET_EXPORTS) \
22121df0 42764 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42765 for flag in $(EXTRA_TARGET_FLAGS); do \
42766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42767 done; \
1b6c0831 42768 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42771 "RANLIB=$${RANLIB}" \
42772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42773 TAGS) \
42774 || exit 1
42775
1b6c0831 42776@endif target-libmpx
5286fdef 42777
1b6c0831
L
42778.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
42779maybe-install-info-target-libmpx:
42780@if target-libmpx
42781maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 42782
1b6c0831
L
42783install-info-target-libmpx: \
42784 configure-target-libmpx \
42785 info-target-libmpx
5286fdef 42786 @: $(MAKE); $(unstage)
22121df0 42787 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42788 r=`${PWD_COMMAND}`; export r; \
42789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42790 $(NORMAL_TARGET_EXPORTS) \
22121df0 42791 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42792 for flag in $(EXTRA_TARGET_FLAGS); do \
42793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42794 done; \
1b6c0831 42795 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42798 "RANLIB=$${RANLIB}" \
42799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42800 install-info) \
42801 || exit 1
42802
1b6c0831 42803@endif target-libmpx
5286fdef 42804
1b6c0831
L
42805.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
42806maybe-install-pdf-target-libmpx:
42807@if target-libmpx
42808maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 42809
1b6c0831
L
42810install-pdf-target-libmpx: \
42811 configure-target-libmpx \
42812 pdf-target-libmpx
5286fdef 42813 @: $(MAKE); $(unstage)
22121df0 42814 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42815 r=`${PWD_COMMAND}`; export r; \
42816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42817 $(NORMAL_TARGET_EXPORTS) \
22121df0 42818 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42819 for flag in $(EXTRA_TARGET_FLAGS); do \
42820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42821 done; \
1b6c0831 42822 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42825 "RANLIB=$${RANLIB}" \
42826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42827 install-pdf) \
42828 || exit 1
42829
1b6c0831 42830@endif target-libmpx
5286fdef 42831
1b6c0831
L
42832.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
42833maybe-install-html-target-libmpx:
42834@if target-libmpx
42835maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 42836
1b6c0831
L
42837install-html-target-libmpx: \
42838 configure-target-libmpx \
42839 html-target-libmpx
5286fdef 42840 @: $(MAKE); $(unstage)
22121df0 42841 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42842 r=`${PWD_COMMAND}`; export r; \
42843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42844 $(NORMAL_TARGET_EXPORTS) \
22121df0 42845 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42846 for flag in $(EXTRA_TARGET_FLAGS); do \
42847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42848 done; \
1b6c0831 42849 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42852 "RANLIB=$${RANLIB}" \
42853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42854 install-html) \
42855 || exit 1
42856
1b6c0831 42857@endif target-libmpx
5286fdef 42858
1b6c0831
L
42859.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
42860maybe-installcheck-target-libmpx:
42861@if target-libmpx
42862maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 42863
1b6c0831
L
42864installcheck-target-libmpx: \
42865 configure-target-libmpx
5286fdef 42866 @: $(MAKE); $(unstage)
22121df0 42867 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42868 r=`${PWD_COMMAND}`; export r; \
42869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42870 $(NORMAL_TARGET_EXPORTS) \
22121df0 42871 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42872 for flag in $(EXTRA_TARGET_FLAGS); do \
42873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42874 done; \
1b6c0831 42875 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42878 "RANLIB=$${RANLIB}" \
42879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42880 installcheck) \
42881 || exit 1
42882
1b6c0831 42883@endif target-libmpx
5286fdef 42884
1b6c0831
L
42885.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
42886maybe-mostlyclean-target-libmpx:
42887@if target-libmpx
42888maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 42889
1b6c0831 42890mostlyclean-target-libmpx:
5286fdef 42891 @: $(MAKE); $(unstage)
22121df0 42892 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42893 r=`${PWD_COMMAND}`; export r; \
42894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42895 $(NORMAL_TARGET_EXPORTS) \
22121df0 42896 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42897 for flag in $(EXTRA_TARGET_FLAGS); do \
42898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42899 done; \
1b6c0831 42900 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42903 "RANLIB=$${RANLIB}" \
42904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42905 mostlyclean) \
42906 || exit 1
42907
1b6c0831 42908@endif target-libmpx
5286fdef 42909
1b6c0831
L
42910.PHONY: maybe-clean-target-libmpx clean-target-libmpx
42911maybe-clean-target-libmpx:
42912@if target-libmpx
42913maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 42914
1b6c0831 42915clean-target-libmpx:
5286fdef 42916 @: $(MAKE); $(unstage)
22121df0 42917 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42918 r=`${PWD_COMMAND}`; export r; \
42919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42920 $(NORMAL_TARGET_EXPORTS) \
22121df0 42921 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42922 for flag in $(EXTRA_TARGET_FLAGS); do \
42923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42924 done; \
1b6c0831 42925 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42928 "RANLIB=$${RANLIB}" \
42929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42930 clean) \
42931 || exit 1
42932
1b6c0831 42933@endif target-libmpx
5286fdef 42934
1b6c0831
L
42935.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
42936maybe-distclean-target-libmpx:
42937@if target-libmpx
42938maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 42939
1b6c0831 42940distclean-target-libmpx:
5286fdef 42941 @: $(MAKE); $(unstage)
22121df0 42942 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42943 r=`${PWD_COMMAND}`; export r; \
42944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42945 $(NORMAL_TARGET_EXPORTS) \
22121df0 42946 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42947 for flag in $(EXTRA_TARGET_FLAGS); do \
42948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42949 done; \
1b6c0831 42950 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42953 "RANLIB=$${RANLIB}" \
42954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42955 distclean) \
42956 || exit 1
42957
1b6c0831 42958@endif target-libmpx
5286fdef 42959
1b6c0831
L
42960.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
42961maybe-maintainer-clean-target-libmpx:
42962@if target-libmpx
42963maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 42964
1b6c0831 42965maintainer-clean-target-libmpx:
5286fdef 42966 @: $(MAKE); $(unstage)
22121df0 42967 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
42968 r=`${PWD_COMMAND}`; export r; \
42969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 42970 $(NORMAL_TARGET_EXPORTS) \
22121df0 42971 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
42972 for flag in $(EXTRA_TARGET_FLAGS); do \
42973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42974 done; \
1b6c0831 42975 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
42976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42978 "RANLIB=$${RANLIB}" \
42979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42980 maintainer-clean) \
42981 || exit 1
42982
1b6c0831 42983@endif target-libmpx
5286fdef
L
42984
42985
42986
42987
42988
95e43135
JBG
42989.PHONY: configure-target-libvtv maybe-configure-target-libvtv
42990maybe-configure-target-libvtv:
42991@if gcc-bootstrap
42992configure-target-libvtv: stage_current
42993@endif gcc-bootstrap
42994@if target-libvtv
42995maybe-configure-target-libvtv: configure-target-libvtv
42996configure-target-libvtv:
42997 @r=`${PWD_COMMAND}`; export r; \
42998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42999 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
43000 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
43001 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
43002 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43003 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43004 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43005 else \
43006 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43007 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43008 fi; \
43009 else \
43010 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43011 fi; \
43012 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 43013 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
43014 $(RAW_CXX_TARGET_EXPORTS) \
43015 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
43016 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
43017 case $(srcdir) in \
43018 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43019 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43020 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43021 esac; \
1b6c0831 43022 module_srcdir=libvtv; \
95e43135 43023 rm -f no-such-file || : ; \
1b6c0831
L
43024 CONFIG_SITE=no-such-file $(SHELL) \
43025 $$s/$$module_srcdir/configure \
43026 --srcdir=$${topdir}/$$module_srcdir \
95e43135 43027 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43028 --target=${target_alias} \
95e43135
JBG
43029 || exit 1
43030@endif target-libvtv
43031
43032
43033
43034.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
43035maybe-configure-stage1-target-libvtv:
43036@if target-libvtv-bootstrap
43037maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
43038configure-stage1-target-libvtv:
43039 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
43040 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
43041 @r=`${PWD_COMMAND}`; export r; \
43042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43043 TFLAGS="$(STAGE1_TFLAGS)"; \
43044 echo "Checking multilib configuration for libvtv..."; \
22121df0 43045 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
43046 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43047 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43048 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43049 else \
43050 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43051 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43052 fi; \
43053 else \
43054 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43055 fi; \
43056 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
43057 $(RAW_CXX_TARGET_EXPORTS) \
43058 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43059 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43060 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
43061 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
43062 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
43063 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
43064 case $(srcdir) in \
43065 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43066 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43067 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43068 esac; \
1b6c0831
L
43069 module_srcdir=libvtv; \
43070 $(SHELL) $$s/$$module_srcdir/configure \
43071 --srcdir=$${topdir}/$$module_srcdir \
95e43135 43072 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
43073 --target=${target_alias} \
43074 \
95e43135
JBG
43075 $(STAGE1_CONFIGURE_FLAGS)
43076@endif target-libvtv-bootstrap
43077
43078.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
43079maybe-configure-stage2-target-libvtv:
43080@if target-libvtv-bootstrap
43081maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
43082configure-stage2-target-libvtv:
43083 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
43084 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
43085 @r=`${PWD_COMMAND}`; export r; \
43086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43087 TFLAGS="$(STAGE2_TFLAGS)"; \
43088 echo "Checking multilib configuration for libvtv..."; \
22121df0 43089 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
43090 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43091 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43092 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43093 else \
43094 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43095 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43096 fi; \
43097 else \
43098 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43099 fi; \
43100 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
43101 $(RAW_CXX_TARGET_EXPORTS) \
43102 \
43103 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43104 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43105 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
43106 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
43107 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
43108 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
43109 case $(srcdir) in \
43110 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43111 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43112 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43113 esac; \
1b6c0831
L
43114 module_srcdir=libvtv; \
43115 $(SHELL) $$s/$$module_srcdir/configure \
43116 --srcdir=$${topdir}/$$module_srcdir \
95e43135 43117 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43118 --target=${target_alias} \
22121df0 43119 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
43120 $(STAGE2_CONFIGURE_FLAGS)
43121@endif target-libvtv-bootstrap
43122
43123.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
43124maybe-configure-stage3-target-libvtv:
43125@if target-libvtv-bootstrap
43126maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
43127configure-stage3-target-libvtv:
43128 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
43129 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
43130 @r=`${PWD_COMMAND}`; export r; \
43131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43132 TFLAGS="$(STAGE3_TFLAGS)"; \
43133 echo "Checking multilib configuration for libvtv..."; \
22121df0 43134 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
43135 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43136 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43137 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43138 else \
43139 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43140 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43141 fi; \
43142 else \
43143 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43144 fi; \
43145 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
43146 $(RAW_CXX_TARGET_EXPORTS) \
43147 \
43148 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43149 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43150 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
43151 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
43152 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
43153 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
43154 case $(srcdir) in \
43155 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43156 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43157 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43158 esac; \
1b6c0831
L
43159 module_srcdir=libvtv; \
43160 $(SHELL) $$s/$$module_srcdir/configure \
43161 --srcdir=$${topdir}/$$module_srcdir \
95e43135 43162 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43163 --target=${target_alias} \
22121df0 43164 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
43165 $(STAGE3_CONFIGURE_FLAGS)
43166@endif target-libvtv-bootstrap
43167
43168.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
43169maybe-configure-stage4-target-libvtv:
43170@if target-libvtv-bootstrap
43171maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
43172configure-stage4-target-libvtv:
43173 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
43174 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
43175 @r=`${PWD_COMMAND}`; export r; \
43176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43177 TFLAGS="$(STAGE4_TFLAGS)"; \
43178 echo "Checking multilib configuration for libvtv..."; \
22121df0 43179 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
43180 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43181 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43182 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43183 else \
43184 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43185 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43186 fi; \
43187 else \
43188 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43189 fi; \
43190 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
43191 $(RAW_CXX_TARGET_EXPORTS) \
43192 \
43193 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43194 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43195 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
43196 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
43197 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
43198 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
43199 case $(srcdir) in \
43200 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43201 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43202 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43203 esac; \
1b6c0831
L
43204 module_srcdir=libvtv; \
43205 $(SHELL) $$s/$$module_srcdir/configure \
43206 --srcdir=$${topdir}/$$module_srcdir \
95e43135 43207 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43208 --target=${target_alias} \
22121df0 43209 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
43210 $(STAGE4_CONFIGURE_FLAGS)
43211@endif target-libvtv-bootstrap
43212
43213.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
43214maybe-configure-stageprofile-target-libvtv:
43215@if target-libvtv-bootstrap
43216maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
43217configure-stageprofile-target-libvtv:
43218 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
43219 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
43220 @r=`${PWD_COMMAND}`; export r; \
43221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43222 TFLAGS="$(STAGEprofile_TFLAGS)"; \
43223 echo "Checking multilib configuration for libvtv..."; \
22121df0 43224 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
43225 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43226 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43227 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43228 else \
43229 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43230 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43231 fi; \
43232 else \
43233 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43234 fi; \
43235 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
43236 $(RAW_CXX_TARGET_EXPORTS) \
43237 \
43238 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43239 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43240 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
43241 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
43242 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
43243 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
43244 case $(srcdir) in \
43245 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43246 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43247 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43248 esac; \
1b6c0831
L
43249 module_srcdir=libvtv; \
43250 $(SHELL) $$s/$$module_srcdir/configure \
43251 --srcdir=$${topdir}/$$module_srcdir \
95e43135 43252 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43253 --target=${target_alias} \
22121df0 43254 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
43255 $(STAGEprofile_CONFIGURE_FLAGS)
43256@endif target-libvtv-bootstrap
43257
f948b2de
NC
43258.PHONY: configure-stagetrain-target-libvtv maybe-configure-stagetrain-target-libvtv
43259maybe-configure-stagetrain-target-libvtv:
43260@if target-libvtv-bootstrap
43261maybe-configure-stagetrain-target-libvtv: configure-stagetrain-target-libvtv
43262configure-stagetrain-target-libvtv:
43263 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
43264 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
43265 @r=`${PWD_COMMAND}`; export r; \
43266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43267 TFLAGS="$(STAGEtrain_TFLAGS)"; \
43268 echo "Checking multilib configuration for libvtv..."; \
43269 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
43270 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43271 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43272 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43273 else \
43274 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43275 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43276 fi; \
43277 else \
43278 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43279 fi; \
43280 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
43281 $(RAW_CXX_TARGET_EXPORTS) \
43282 \
43283 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43284 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43285 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
43286 echo Configuring stage train in $(TARGET_SUBDIR)/libvtv; \
43287 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
43288 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
43289 case $(srcdir) in \
43290 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43291 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43292 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43293 esac; \
43294 module_srcdir=libvtv; \
43295 $(SHELL) $$s/$$module_srcdir/configure \
43296 --srcdir=$${topdir}/$$module_srcdir \
43297 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43298 --target=${target_alias} \
43299 --with-build-libsubdir=$(HOST_SUBDIR) \
43300 $(STAGEtrain_CONFIGURE_FLAGS)
43301@endif target-libvtv-bootstrap
43302
95e43135
JBG
43303.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
43304maybe-configure-stagefeedback-target-libvtv:
43305@if target-libvtv-bootstrap
43306maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
43307configure-stagefeedback-target-libvtv:
43308 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
43309 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
43310 @r=`${PWD_COMMAND}`; export r; \
43311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43312 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
43313 echo "Checking multilib configuration for libvtv..."; \
22121df0 43314 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
43315 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43316 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43317 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43318 else \
43319 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43320 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43321 fi; \
43322 else \
43323 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43324 fi; \
43325 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
43326 $(RAW_CXX_TARGET_EXPORTS) \
43327 \
43328 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43329 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43330 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
43331 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
43332 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
43333 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
43334 case $(srcdir) in \
43335 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43336 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43337 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43338 esac; \
1b6c0831
L
43339 module_srcdir=libvtv; \
43340 $(SHELL) $$s/$$module_srcdir/configure \
43341 --srcdir=$${topdir}/$$module_srcdir \
95e43135 43342 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43343 --target=${target_alias} \
22121df0 43344 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
43345 $(STAGEfeedback_CONFIGURE_FLAGS)
43346@endif target-libvtv-bootstrap
43347
f948b2de
NC
43348.PHONY: configure-stageautoprofile-target-libvtv maybe-configure-stageautoprofile-target-libvtv
43349maybe-configure-stageautoprofile-target-libvtv:
43350@if target-libvtv-bootstrap
43351maybe-configure-stageautoprofile-target-libvtv: configure-stageautoprofile-target-libvtv
43352configure-stageautoprofile-target-libvtv:
43353 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
43354 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
43355 @r=`${PWD_COMMAND}`; export r; \
43356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43357 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
43358 echo "Checking multilib configuration for libvtv..."; \
43359 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
43360 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43361 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43362 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43363 else \
43364 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43365 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43366 fi; \
43367 else \
43368 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43369 fi; \
43370 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
43371 $(RAW_CXX_TARGET_EXPORTS) \
43372 \
43373 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43374 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43375 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
43376 echo Configuring stage autoprofile in $(TARGET_SUBDIR)/libvtv; \
43377 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
43378 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
43379 case $(srcdir) in \
43380 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43381 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43382 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43383 esac; \
43384 module_srcdir=libvtv; \
43385 $(SHELL) $$s/$$module_srcdir/configure \
43386 --srcdir=$${topdir}/$$module_srcdir \
43387 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43388 --target=${target_alias} \
43389 --with-build-libsubdir=$(HOST_SUBDIR) \
43390 $(STAGEautoprofile_CONFIGURE_FLAGS)
43391@endif target-libvtv-bootstrap
43392
43393.PHONY: configure-stageautofeedback-target-libvtv maybe-configure-stageautofeedback-target-libvtv
43394maybe-configure-stageautofeedback-target-libvtv:
43395@if target-libvtv-bootstrap
43396maybe-configure-stageautofeedback-target-libvtv: configure-stageautofeedback-target-libvtv
43397configure-stageautofeedback-target-libvtv:
43398 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
43399 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
43400 @r=`${PWD_COMMAND}`; export r; \
43401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43402 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
43403 echo "Checking multilib configuration for libvtv..."; \
43404 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
43405 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43406 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
43407 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
43408 else \
43409 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
43410 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43411 fi; \
43412 else \
43413 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
43414 fi; \
43415 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
43416 $(RAW_CXX_TARGET_EXPORTS) \
43417 \
43418 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
43419 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
43420 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
43421 echo Configuring stage autofeedback in $(TARGET_SUBDIR)/libvtv; \
43422 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
43423 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
43424 case $(srcdir) in \
43425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
43426 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
43427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
43428 esac; \
43429 module_srcdir=libvtv; \
43430 $(SHELL) $$s/$$module_srcdir/configure \
43431 --srcdir=$${topdir}/$$module_srcdir \
43432 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
43433 --target=${target_alias} \
43434 --with-build-libsubdir=$(HOST_SUBDIR) \
43435 $(STAGEautofeedback_CONFIGURE_FLAGS)
43436@endif target-libvtv-bootstrap
43437
95e43135
JBG
43438
43439
43440
43441
43442.PHONY: all-target-libvtv maybe-all-target-libvtv
43443maybe-all-target-libvtv:
43444@if gcc-bootstrap
43445all-target-libvtv: stage_current
43446@endif gcc-bootstrap
43447@if target-libvtv
43448TARGET-target-libvtv=all
43449maybe-all-target-libvtv: all-target-libvtv
43450all-target-libvtv: configure-target-libvtv
43451 @r=`${PWD_COMMAND}`; export r; \
43452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43453 $(RAW_CXX_TARGET_EXPORTS) \
43454 (cd $(TARGET_SUBDIR)/libvtv && \
43455 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
43456 $(TARGET-target-libvtv))
43457@endif target-libvtv
43458
43459
43460
43461.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
43462.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
43463maybe-all-stage1-target-libvtv:
43464maybe-clean-stage1-target-libvtv:
43465@if target-libvtv-bootstrap
43466maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
43467all-stage1: all-stage1-target-libvtv
43468TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
43469all-stage1-target-libvtv: configure-stage1-target-libvtv
43470 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
43471 @r=`${PWD_COMMAND}`; export r; \
43472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43473 TFLAGS="$(STAGE1_TFLAGS)"; \
43474 $(RAW_CXX_TARGET_EXPORTS) \
43475 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 43476 \
95e43135
JBG
43477 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43478 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43479 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43480 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43481 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43482 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43483 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43484 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
43485 \
05a13254 43486 TFLAGS="$(STAGE1_TFLAGS)" \
95e43135
JBG
43487 $(TARGET-stage1-target-libvtv)
43488
43489maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
43490clean-stage1: clean-stage1-target-libvtv
43491clean-stage1-target-libvtv:
43492 @if [ $(current_stage) = stage1 ]; then \
43493 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
43494 else \
43495 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
43496 $(MAKE) stage1-start; \
43497 fi; \
43498 cd $(TARGET_SUBDIR)/libvtv && \
43499 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
43500 clean
43501@endif target-libvtv-bootstrap
43502
43503
43504.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
43505.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
43506maybe-all-stage2-target-libvtv:
43507maybe-clean-stage2-target-libvtv:
43508@if target-libvtv-bootstrap
43509maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
43510all-stage2: all-stage2-target-libvtv
43511TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
43512all-stage2-target-libvtv: configure-stage2-target-libvtv
43513 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
43514 @r=`${PWD_COMMAND}`; export r; \
43515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43516 TFLAGS="$(STAGE2_TFLAGS)"; \
43517 $(RAW_CXX_TARGET_EXPORTS) \
43518 \
43519 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 43520 \
95e43135
JBG
43521 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43522 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43523 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43524 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43525 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43526 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43527 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43528 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 43529 TFLAGS="$(STAGE2_TFLAGS)" \
95e43135
JBG
43530 $(TARGET-stage2-target-libvtv)
43531
43532maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
43533clean-stage2: clean-stage2-target-libvtv
43534clean-stage2-target-libvtv:
43535 @if [ $(current_stage) = stage2 ]; then \
43536 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
43537 else \
43538 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
43539 $(MAKE) stage2-start; \
43540 fi; \
43541 cd $(TARGET_SUBDIR)/libvtv && \
43542 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
43543@endif target-libvtv-bootstrap
43544
43545
43546.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
43547.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
43548maybe-all-stage3-target-libvtv:
43549maybe-clean-stage3-target-libvtv:
43550@if target-libvtv-bootstrap
43551maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
43552all-stage3: all-stage3-target-libvtv
43553TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
43554all-stage3-target-libvtv: configure-stage3-target-libvtv
43555 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
43556 @r=`${PWD_COMMAND}`; export r; \
43557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43558 TFLAGS="$(STAGE3_TFLAGS)"; \
43559 $(RAW_CXX_TARGET_EXPORTS) \
43560 \
43561 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 43562 \
95e43135
JBG
43563 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43564 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43565 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43566 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43567 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43568 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43569 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43570 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 43571 TFLAGS="$(STAGE3_TFLAGS)" \
95e43135
JBG
43572 $(TARGET-stage3-target-libvtv)
43573
43574maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
43575clean-stage3: clean-stage3-target-libvtv
43576clean-stage3-target-libvtv:
43577 @if [ $(current_stage) = stage3 ]; then \
43578 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
43579 else \
43580 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
43581 $(MAKE) stage3-start; \
43582 fi; \
43583 cd $(TARGET_SUBDIR)/libvtv && \
43584 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
43585@endif target-libvtv-bootstrap
43586
43587
43588.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
43589.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
43590maybe-all-stage4-target-libvtv:
43591maybe-clean-stage4-target-libvtv:
43592@if target-libvtv-bootstrap
43593maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
43594all-stage4: all-stage4-target-libvtv
43595TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
43596all-stage4-target-libvtv: configure-stage4-target-libvtv
43597 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
43598 @r=`${PWD_COMMAND}`; export r; \
43599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43600 TFLAGS="$(STAGE4_TFLAGS)"; \
43601 $(RAW_CXX_TARGET_EXPORTS) \
43602 \
43603 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 43604 \
95e43135
JBG
43605 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43606 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43607 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43608 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43609 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43610 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43611 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43612 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 43613 TFLAGS="$(STAGE4_TFLAGS)" \
95e43135
JBG
43614 $(TARGET-stage4-target-libvtv)
43615
43616maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
43617clean-stage4: clean-stage4-target-libvtv
43618clean-stage4-target-libvtv:
43619 @if [ $(current_stage) = stage4 ]; then \
43620 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
43621 else \
43622 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
43623 $(MAKE) stage4-start; \
43624 fi; \
43625 cd $(TARGET_SUBDIR)/libvtv && \
43626 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
43627@endif target-libvtv-bootstrap
43628
43629
43630.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
43631.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
43632maybe-all-stageprofile-target-libvtv:
43633maybe-clean-stageprofile-target-libvtv:
43634@if target-libvtv-bootstrap
43635maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
43636all-stageprofile: all-stageprofile-target-libvtv
43637TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
43638all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
43639 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
43640 @r=`${PWD_COMMAND}`; export r; \
43641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43642 TFLAGS="$(STAGEprofile_TFLAGS)"; \
43643 $(RAW_CXX_TARGET_EXPORTS) \
43644 \
43645 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 43646 \
95e43135
JBG
43647 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43648 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43649 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43650 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43651 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43652 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43653 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43654 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 43655 TFLAGS="$(STAGEprofile_TFLAGS)" \
95e43135
JBG
43656 $(TARGET-stageprofile-target-libvtv)
43657
43658maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
43659clean-stageprofile: clean-stageprofile-target-libvtv
43660clean-stageprofile-target-libvtv:
43661 @if [ $(current_stage) = stageprofile ]; then \
43662 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
43663 else \
43664 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
43665 $(MAKE) stageprofile-start; \
43666 fi; \
43667 cd $(TARGET_SUBDIR)/libvtv && \
43668 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
43669@endif target-libvtv-bootstrap
43670
43671
f948b2de
NC
43672.PHONY: all-stagetrain-target-libvtv maybe-all-stagetrain-target-libvtv
43673.PHONY: clean-stagetrain-target-libvtv maybe-clean-stagetrain-target-libvtv
43674maybe-all-stagetrain-target-libvtv:
43675maybe-clean-stagetrain-target-libvtv:
43676@if target-libvtv-bootstrap
43677maybe-all-stagetrain-target-libvtv: all-stagetrain-target-libvtv
43678all-stagetrain: all-stagetrain-target-libvtv
43679TARGET-stagetrain-target-libvtv = $(TARGET-target-libvtv)
43680all-stagetrain-target-libvtv: configure-stagetrain-target-libvtv
43681 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
43682 @r=`${PWD_COMMAND}`; export r; \
43683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43684 TFLAGS="$(STAGEtrain_TFLAGS)"; \
43685 $(RAW_CXX_TARGET_EXPORTS) \
43686 \
43687 cd $(TARGET_SUBDIR)/libvtv && \
43688 \
43689 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43690 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43691 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43692 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43693 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43694 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43695 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43696 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
43697 TFLAGS="$(STAGEtrain_TFLAGS)" \
43698 $(TARGET-stagetrain-target-libvtv)
43699
43700maybe-clean-stagetrain-target-libvtv: clean-stagetrain-target-libvtv
43701clean-stagetrain: clean-stagetrain-target-libvtv
43702clean-stagetrain-target-libvtv:
43703 @if [ $(current_stage) = stagetrain ]; then \
43704 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
43705 else \
43706 [ -f $(TARGET_SUBDIR)/stagetrain-libvtv/Makefile ] || exit 0; \
43707 $(MAKE) stagetrain-start; \
43708 fi; \
43709 cd $(TARGET_SUBDIR)/libvtv && \
43710 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
43711@endif target-libvtv-bootstrap
43712
43713
95e43135
JBG
43714.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
43715.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
43716maybe-all-stagefeedback-target-libvtv:
43717maybe-clean-stagefeedback-target-libvtv:
43718@if target-libvtv-bootstrap
43719maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
43720all-stagefeedback: all-stagefeedback-target-libvtv
43721TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
43722all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
43723 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
43724 @r=`${PWD_COMMAND}`; export r; \
43725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43726 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
43727 $(RAW_CXX_TARGET_EXPORTS) \
43728 \
43729 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 43730 \
95e43135
JBG
43731 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43732 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43733 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43734 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43735 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43736 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43737 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43738 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 43739 TFLAGS="$(STAGEfeedback_TFLAGS)" \
95e43135
JBG
43740 $(TARGET-stagefeedback-target-libvtv)
43741
43742maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
43743clean-stagefeedback: clean-stagefeedback-target-libvtv
43744clean-stagefeedback-target-libvtv:
43745 @if [ $(current_stage) = stagefeedback ]; then \
43746 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
43747 else \
43748 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
43749 $(MAKE) stagefeedback-start; \
43750 fi; \
43751 cd $(TARGET_SUBDIR)/libvtv && \
43752 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
43753@endif target-libvtv-bootstrap
43754
43755
f948b2de
NC
43756.PHONY: all-stageautoprofile-target-libvtv maybe-all-stageautoprofile-target-libvtv
43757.PHONY: clean-stageautoprofile-target-libvtv maybe-clean-stageautoprofile-target-libvtv
43758maybe-all-stageautoprofile-target-libvtv:
43759maybe-clean-stageautoprofile-target-libvtv:
43760@if target-libvtv-bootstrap
43761maybe-all-stageautoprofile-target-libvtv: all-stageautoprofile-target-libvtv
43762all-stageautoprofile: all-stageautoprofile-target-libvtv
43763TARGET-stageautoprofile-target-libvtv = $(TARGET-target-libvtv)
43764all-stageautoprofile-target-libvtv: configure-stageautoprofile-target-libvtv
43765 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
43766 @r=`${PWD_COMMAND}`; export r; \
43767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43768 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
43769 $(RAW_CXX_TARGET_EXPORTS) \
43770 \
43771 cd $(TARGET_SUBDIR)/libvtv && \
43772 $$s/gcc/config/i386/$(AUTO_PROFILE) \
43773 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43774 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43775 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43776 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43777 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43778 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43779 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43780 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
43781 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
43782 $(TARGET-stageautoprofile-target-libvtv)
43783
43784maybe-clean-stageautoprofile-target-libvtv: clean-stageautoprofile-target-libvtv
43785clean-stageautoprofile: clean-stageautoprofile-target-libvtv
43786clean-stageautoprofile-target-libvtv:
43787 @if [ $(current_stage) = stageautoprofile ]; then \
43788 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
43789 else \
43790 [ -f $(TARGET_SUBDIR)/stageautoprofile-libvtv/Makefile ] || exit 0; \
43791 $(MAKE) stageautoprofile-start; \
43792 fi; \
43793 cd $(TARGET_SUBDIR)/libvtv && \
43794 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
43795@endif target-libvtv-bootstrap
43796
43797
43798.PHONY: all-stageautofeedback-target-libvtv maybe-all-stageautofeedback-target-libvtv
43799.PHONY: clean-stageautofeedback-target-libvtv maybe-clean-stageautofeedback-target-libvtv
43800maybe-all-stageautofeedback-target-libvtv:
43801maybe-clean-stageautofeedback-target-libvtv:
43802@if target-libvtv-bootstrap
43803maybe-all-stageautofeedback-target-libvtv: all-stageautofeedback-target-libvtv
43804all-stageautofeedback: all-stageautofeedback-target-libvtv
43805TARGET-stageautofeedback-target-libvtv = $(TARGET-target-libvtv)
43806all-stageautofeedback-target-libvtv: configure-stageautofeedback-target-libvtv
43807 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
43808 @r=`${PWD_COMMAND}`; export r; \
43809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43810 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
43811 $(RAW_CXX_TARGET_EXPORTS) \
43812 \
43813 cd $(TARGET_SUBDIR)/libvtv && \
43814 \
43815 $(MAKE) $(BASE_FLAGS_TO_PASS) \
43816 CFLAGS="$(CFLAGS_FOR_TARGET)" \
43817 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
43818 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
43819 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
43820 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
43821 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
43822 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
43823 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
43824 $(TARGET-stageautofeedback-target-libvtv)
43825
43826maybe-clean-stageautofeedback-target-libvtv: clean-stageautofeedback-target-libvtv
43827clean-stageautofeedback: clean-stageautofeedback-target-libvtv
43828clean-stageautofeedback-target-libvtv:
43829 @if [ $(current_stage) = stageautofeedback ]; then \
43830 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
43831 else \
43832 [ -f $(TARGET_SUBDIR)/stageautofeedback-libvtv/Makefile ] || exit 0; \
43833 $(MAKE) stageautofeedback-start; \
43834 fi; \
43835 cd $(TARGET_SUBDIR)/libvtv && \
43836 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
43837@endif target-libvtv-bootstrap
43838
43839
95e43135
JBG
43840
43841
43842
43843
43844.PHONY: check-target-libvtv maybe-check-target-libvtv
43845maybe-check-target-libvtv:
43846@if target-libvtv
43847maybe-check-target-libvtv: check-target-libvtv
43848
43849check-target-libvtv:
43850 @: $(MAKE); $(unstage)
43851 @r=`${PWD_COMMAND}`; export r; \
43852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43853 $(RAW_CXX_TARGET_EXPORTS) \
43854 (cd $(TARGET_SUBDIR)/libvtv && \
43855 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
43856
43857@endif target-libvtv
43858
43859.PHONY: install-target-libvtv maybe-install-target-libvtv
43860maybe-install-target-libvtv:
43861@if target-libvtv
43862maybe-install-target-libvtv: install-target-libvtv
43863
43864install-target-libvtv: installdirs
43865 @: $(MAKE); $(unstage)
43866 @r=`${PWD_COMMAND}`; export r; \
43867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43868 $(RAW_CXX_TARGET_EXPORTS) \
43869 (cd $(TARGET_SUBDIR)/libvtv && \
43870 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
43871
43872@endif target-libvtv
43873
43874.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
43875maybe-install-strip-target-libvtv:
43876@if target-libvtv
43877maybe-install-strip-target-libvtv: install-strip-target-libvtv
43878
43879install-strip-target-libvtv: installdirs
43880 @: $(MAKE); $(unstage)
43881 @r=`${PWD_COMMAND}`; export r; \
43882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43883 $(RAW_CXX_TARGET_EXPORTS) \
43884 (cd $(TARGET_SUBDIR)/libvtv && \
43885 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43886
43887@endif target-libvtv
43888
43889# Other targets (info, dvi, pdf, etc.)
43890
43891.PHONY: maybe-info-target-libvtv info-target-libvtv
43892maybe-info-target-libvtv:
43893@if target-libvtv
43894maybe-info-target-libvtv: info-target-libvtv
43895
43896info-target-libvtv: \
43897 configure-target-libvtv
43898 @: $(MAKE); $(unstage)
22121df0 43899 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
43900 r=`${PWD_COMMAND}`; export r; \
43901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43902 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43903 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
43904 for flag in $(EXTRA_TARGET_FLAGS); do \
43905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43906 done; \
43907 (cd $(TARGET_SUBDIR)/libvtv && \
43908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43910 "RANLIB=$${RANLIB}" \
43911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43912 info) \
43913 || exit 1
43914
43915@endif target-libvtv
43916
43917.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
43918maybe-dvi-target-libvtv:
43919@if target-libvtv
43920maybe-dvi-target-libvtv: dvi-target-libvtv
43921
43922dvi-target-libvtv: \
43923 configure-target-libvtv
43924 @: $(MAKE); $(unstage)
22121df0 43925 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
43926 r=`${PWD_COMMAND}`; export r; \
43927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43928 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43929 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
43930 for flag in $(EXTRA_TARGET_FLAGS); do \
43931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43932 done; \
43933 (cd $(TARGET_SUBDIR)/libvtv && \
43934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43936 "RANLIB=$${RANLIB}" \
43937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43938 dvi) \
43939 || exit 1
43940
43941@endif target-libvtv
43942
43943.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
43944maybe-pdf-target-libvtv:
43945@if target-libvtv
43946maybe-pdf-target-libvtv: pdf-target-libvtv
43947
43948pdf-target-libvtv: \
43949 configure-target-libvtv
43950 @: $(MAKE); $(unstage)
22121df0 43951 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
43952 r=`${PWD_COMMAND}`; export r; \
43953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43954 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43955 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
43956 for flag in $(EXTRA_TARGET_FLAGS); do \
43957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43958 done; \
43959 (cd $(TARGET_SUBDIR)/libvtv && \
43960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43962 "RANLIB=$${RANLIB}" \
43963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43964 pdf) \
43965 || exit 1
43966
43967@endif target-libvtv
43968
43969.PHONY: maybe-html-target-libvtv html-target-libvtv
43970maybe-html-target-libvtv:
43971@if target-libvtv
43972maybe-html-target-libvtv: html-target-libvtv
43973
43974html-target-libvtv: \
43975 configure-target-libvtv
43976 @: $(MAKE); $(unstage)
22121df0 43977 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
43978 r=`${PWD_COMMAND}`; export r; \
43979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43980 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 43981 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
43982 for flag in $(EXTRA_TARGET_FLAGS); do \
43983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43984 done; \
43985 (cd $(TARGET_SUBDIR)/libvtv && \
43986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43988 "RANLIB=$${RANLIB}" \
43989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43990 html) \
43991 || exit 1
43992
43993@endif target-libvtv
43994
43995.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
43996maybe-TAGS-target-libvtv:
43997@if target-libvtv
43998maybe-TAGS-target-libvtv: TAGS-target-libvtv
43999
44000TAGS-target-libvtv: \
44001 configure-target-libvtv
44002 @: $(MAKE); $(unstage)
22121df0 44003 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
44004 r=`${PWD_COMMAND}`; export r; \
44005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44006 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 44007 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
44008 for flag in $(EXTRA_TARGET_FLAGS); do \
44009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44010 done; \
44011 (cd $(TARGET_SUBDIR)/libvtv && \
44012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44014 "RANLIB=$${RANLIB}" \
44015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44016 TAGS) \
44017 || exit 1
44018
44019@endif target-libvtv
44020
44021.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
44022maybe-install-info-target-libvtv:
44023@if target-libvtv
44024maybe-install-info-target-libvtv: install-info-target-libvtv
44025
44026install-info-target-libvtv: \
44027 configure-target-libvtv \
44028 info-target-libvtv
44029 @: $(MAKE); $(unstage)
22121df0 44030 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
44031 r=`${PWD_COMMAND}`; export r; \
44032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44033 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 44034 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
44035 for flag in $(EXTRA_TARGET_FLAGS); do \
44036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44037 done; \
44038 (cd $(TARGET_SUBDIR)/libvtv && \
44039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44041 "RANLIB=$${RANLIB}" \
44042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44043 install-info) \
44044 || exit 1
44045
44046@endif target-libvtv
44047
44048.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
44049maybe-install-pdf-target-libvtv:
44050@if target-libvtv
44051maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
44052
44053install-pdf-target-libvtv: \
44054 configure-target-libvtv \
44055 pdf-target-libvtv
44056 @: $(MAKE); $(unstage)
22121df0 44057 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
44058 r=`${PWD_COMMAND}`; export r; \
44059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44060 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 44061 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
44062 for flag in $(EXTRA_TARGET_FLAGS); do \
44063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44064 done; \
44065 (cd $(TARGET_SUBDIR)/libvtv && \
44066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44068 "RANLIB=$${RANLIB}" \
44069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44070 install-pdf) \
44071 || exit 1
44072
44073@endif target-libvtv
44074
44075.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
44076maybe-install-html-target-libvtv:
44077@if target-libvtv
44078maybe-install-html-target-libvtv: install-html-target-libvtv
44079
44080install-html-target-libvtv: \
44081 configure-target-libvtv \
44082 html-target-libvtv
44083 @: $(MAKE); $(unstage)
22121df0 44084 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
44085 r=`${PWD_COMMAND}`; export r; \
44086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44087 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 44088 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
44089 for flag in $(EXTRA_TARGET_FLAGS); do \
44090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44091 done; \
44092 (cd $(TARGET_SUBDIR)/libvtv && \
44093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44095 "RANLIB=$${RANLIB}" \
44096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44097 install-html) \
44098 || exit 1
44099
44100@endif target-libvtv
44101
44102.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
44103maybe-installcheck-target-libvtv:
44104@if target-libvtv
44105maybe-installcheck-target-libvtv: installcheck-target-libvtv
44106
44107installcheck-target-libvtv: \
44108 configure-target-libvtv
44109 @: $(MAKE); $(unstage)
22121df0 44110 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
44111 r=`${PWD_COMMAND}`; export r; \
44112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44113 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 44114 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
44115 for flag in $(EXTRA_TARGET_FLAGS); do \
44116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44117 done; \
44118 (cd $(TARGET_SUBDIR)/libvtv && \
44119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44121 "RANLIB=$${RANLIB}" \
44122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44123 installcheck) \
44124 || exit 1
44125
44126@endif target-libvtv
44127
44128.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
44129maybe-mostlyclean-target-libvtv:
44130@if target-libvtv
44131maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
44132
44133mostlyclean-target-libvtv:
44134 @: $(MAKE); $(unstage)
22121df0 44135 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
44136 r=`${PWD_COMMAND}`; export r; \
44137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44138 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 44139 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
44140 for flag in $(EXTRA_TARGET_FLAGS); do \
44141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44142 done; \
44143 (cd $(TARGET_SUBDIR)/libvtv && \
44144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44146 "RANLIB=$${RANLIB}" \
44147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44148 mostlyclean) \
44149 || exit 1
44150
44151@endif target-libvtv
44152
44153.PHONY: maybe-clean-target-libvtv clean-target-libvtv
44154maybe-clean-target-libvtv:
44155@if target-libvtv
44156maybe-clean-target-libvtv: clean-target-libvtv
44157
44158clean-target-libvtv:
44159 @: $(MAKE); $(unstage)
22121df0 44160 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
44161 r=`${PWD_COMMAND}`; export r; \
44162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44163 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 44164 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
44165 for flag in $(EXTRA_TARGET_FLAGS); do \
44166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44167 done; \
44168 (cd $(TARGET_SUBDIR)/libvtv && \
44169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44171 "RANLIB=$${RANLIB}" \
44172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44173 clean) \
44174 || exit 1
44175
44176@endif target-libvtv
44177
44178.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
44179maybe-distclean-target-libvtv:
44180@if target-libvtv
44181maybe-distclean-target-libvtv: distclean-target-libvtv
44182
44183distclean-target-libvtv:
44184 @: $(MAKE); $(unstage)
22121df0 44185 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
44186 r=`${PWD_COMMAND}`; export r; \
44187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44188 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 44189 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
44190 for flag in $(EXTRA_TARGET_FLAGS); do \
44191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44192 done; \
44193 (cd $(TARGET_SUBDIR)/libvtv && \
44194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44196 "RANLIB=$${RANLIB}" \
44197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44198 distclean) \
44199 || exit 1
44200
44201@endif target-libvtv
44202
44203.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
44204maybe-maintainer-clean-target-libvtv:
44205@if target-libvtv
44206maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
44207
44208maintainer-clean-target-libvtv:
44209 @: $(MAKE); $(unstage)
22121df0 44210 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
44211 r=`${PWD_COMMAND}`; export r; \
44212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44213 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 44214 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
44215 for flag in $(EXTRA_TARGET_FLAGS); do \
44216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44217 done; \
44218 (cd $(TARGET_SUBDIR)/libvtv && \
44219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44221 "RANLIB=$${RANLIB}" \
44222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44223 maintainer-clean) \
44224 || exit 1
44225
44226@endif target-libvtv
44227
44228
44229
44230
44231
1b6c0831
L
44232.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
44233maybe-configure-target-liboffloadmic:
44234@if gcc-bootstrap
44235configure-target-liboffloadmic: stage_current
44236@endif gcc-bootstrap
44237@if target-liboffloadmic
44238maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
44239configure-target-liboffloadmic:
44240 @: $(MAKE); $(unstage)
44241 @r=`${PWD_COMMAND}`; export r; \
44242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44243 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
44244 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
44245 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
44246 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
44247 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
44248 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
44249 else \
44250 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
44251 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
44252 fi; \
44253 else \
44254 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
44255 fi; \
44256 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 44257 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
44258 $(NORMAL_TARGET_EXPORTS) \
44259 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
44260 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
44261 case $(srcdir) in \
44262 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44263 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
44264 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
44265 esac; \
44266 module_srcdir=liboffloadmic; \
44267 rm -f no-such-file || : ; \
44268 CONFIG_SITE=no-such-file $(SHELL) \
44269 $$s/$$module_srcdir/configure \
44270 --srcdir=$${topdir}/$$module_srcdir \
44271 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
44272 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
44273 || exit 1
44274@endif target-liboffloadmic
44275
44276
44277
44278
44279
44280.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
44281maybe-all-target-liboffloadmic:
44282@if gcc-bootstrap
44283all-target-liboffloadmic: stage_current
44284@endif gcc-bootstrap
44285@if target-liboffloadmic
44286TARGET-target-liboffloadmic=all
44287maybe-all-target-liboffloadmic: all-target-liboffloadmic
44288all-target-liboffloadmic: configure-target-liboffloadmic
44289 @: $(MAKE); $(unstage)
44290 @r=`${PWD_COMMAND}`; export r; \
44291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44292 $(NORMAL_TARGET_EXPORTS) \
44293 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44294 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
44295 $(TARGET-target-liboffloadmic))
44296@endif target-liboffloadmic
44297
44298
44299
44300
44301
44302.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
44303maybe-check-target-liboffloadmic:
44304@if target-liboffloadmic
44305maybe-check-target-liboffloadmic: check-target-liboffloadmic
44306
44307check-target-liboffloadmic:
44308 @: $(MAKE); $(unstage)
44309 @r=`${PWD_COMMAND}`; export r; \
44310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44311 $(NORMAL_TARGET_EXPORTS) \
44312 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44313 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
44314
44315@endif target-liboffloadmic
44316
44317.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
44318maybe-install-target-liboffloadmic:
44319@if target-liboffloadmic
44320maybe-install-target-liboffloadmic: install-target-liboffloadmic
44321
44322install-target-liboffloadmic: installdirs
44323 @: $(MAKE); $(unstage)
44324 @r=`${PWD_COMMAND}`; export r; \
44325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44326 $(NORMAL_TARGET_EXPORTS) \
44327 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44328 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
44329
44330@endif target-liboffloadmic
44331
44332.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
44333maybe-install-strip-target-liboffloadmic:
44334@if target-liboffloadmic
44335maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
44336
44337install-strip-target-liboffloadmic: installdirs
44338 @: $(MAKE); $(unstage)
44339 @r=`${PWD_COMMAND}`; export r; \
44340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44341 $(NORMAL_TARGET_EXPORTS) \
44342 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44343 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44344
44345@endif target-liboffloadmic
44346
44347# Other targets (info, dvi, pdf, etc.)
44348
44349.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
44350maybe-info-target-liboffloadmic:
44351@if target-liboffloadmic
44352maybe-info-target-liboffloadmic: info-target-liboffloadmic
44353
44354info-target-liboffloadmic: \
44355 configure-target-liboffloadmic
44356 @: $(MAKE); $(unstage)
22121df0 44357 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44358 r=`${PWD_COMMAND}`; export r; \
44359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44360 $(NORMAL_TARGET_EXPORTS) \
22121df0 44361 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44362 for flag in $(EXTRA_TARGET_FLAGS); do \
44363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44364 done; \
44365 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44368 "RANLIB=$${RANLIB}" \
44369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44370 info) \
44371 || exit 1
44372
44373@endif target-liboffloadmic
44374
44375.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
44376maybe-dvi-target-liboffloadmic:
44377@if target-liboffloadmic
44378maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
44379
44380dvi-target-liboffloadmic: \
44381 configure-target-liboffloadmic
44382 @: $(MAKE); $(unstage)
22121df0 44383 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44384 r=`${PWD_COMMAND}`; export r; \
44385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44386 $(NORMAL_TARGET_EXPORTS) \
22121df0 44387 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44388 for flag in $(EXTRA_TARGET_FLAGS); do \
44389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44390 done; \
44391 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44394 "RANLIB=$${RANLIB}" \
44395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44396 dvi) \
44397 || exit 1
44398
44399@endif target-liboffloadmic
44400
44401.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
44402maybe-pdf-target-liboffloadmic:
44403@if target-liboffloadmic
44404maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
44405
44406pdf-target-liboffloadmic: \
44407 configure-target-liboffloadmic
44408 @: $(MAKE); $(unstage)
22121df0 44409 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44410 r=`${PWD_COMMAND}`; export r; \
44411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44412 $(NORMAL_TARGET_EXPORTS) \
22121df0 44413 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44414 for flag in $(EXTRA_TARGET_FLAGS); do \
44415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44416 done; \
44417 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44420 "RANLIB=$${RANLIB}" \
44421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44422 pdf) \
44423 || exit 1
44424
44425@endif target-liboffloadmic
44426
44427.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
44428maybe-html-target-liboffloadmic:
44429@if target-liboffloadmic
44430maybe-html-target-liboffloadmic: html-target-liboffloadmic
44431
44432html-target-liboffloadmic: \
44433 configure-target-liboffloadmic
44434 @: $(MAKE); $(unstage)
22121df0 44435 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44436 r=`${PWD_COMMAND}`; export r; \
44437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44438 $(NORMAL_TARGET_EXPORTS) \
22121df0 44439 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44440 for flag in $(EXTRA_TARGET_FLAGS); do \
44441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44442 done; \
44443 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44446 "RANLIB=$${RANLIB}" \
44447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44448 html) \
44449 || exit 1
44450
44451@endif target-liboffloadmic
44452
44453.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
44454maybe-TAGS-target-liboffloadmic:
44455@if target-liboffloadmic
44456maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
44457
44458TAGS-target-liboffloadmic: \
44459 configure-target-liboffloadmic
44460 @: $(MAKE); $(unstage)
22121df0 44461 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44462 r=`${PWD_COMMAND}`; export r; \
44463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44464 $(NORMAL_TARGET_EXPORTS) \
22121df0 44465 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44466 for flag in $(EXTRA_TARGET_FLAGS); do \
44467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44468 done; \
44469 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44472 "RANLIB=$${RANLIB}" \
44473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44474 TAGS) \
44475 || exit 1
44476
44477@endif target-liboffloadmic
44478
44479.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
44480maybe-install-info-target-liboffloadmic:
44481@if target-liboffloadmic
44482maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
44483
44484install-info-target-liboffloadmic: \
44485 configure-target-liboffloadmic \
44486 info-target-liboffloadmic
44487 @: $(MAKE); $(unstage)
22121df0 44488 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44489 r=`${PWD_COMMAND}`; export r; \
44490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44491 $(NORMAL_TARGET_EXPORTS) \
22121df0 44492 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44493 for flag in $(EXTRA_TARGET_FLAGS); do \
44494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44495 done; \
44496 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44499 "RANLIB=$${RANLIB}" \
44500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44501 install-info) \
44502 || exit 1
44503
44504@endif target-liboffloadmic
44505
44506.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
44507maybe-install-pdf-target-liboffloadmic:
44508@if target-liboffloadmic
44509maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
44510
44511install-pdf-target-liboffloadmic: \
44512 configure-target-liboffloadmic \
44513 pdf-target-liboffloadmic
44514 @: $(MAKE); $(unstage)
22121df0 44515 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44516 r=`${PWD_COMMAND}`; export r; \
44517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44518 $(NORMAL_TARGET_EXPORTS) \
22121df0 44519 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44520 for flag in $(EXTRA_TARGET_FLAGS); do \
44521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44522 done; \
44523 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44526 "RANLIB=$${RANLIB}" \
44527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44528 install-pdf) \
44529 || exit 1
44530
44531@endif target-liboffloadmic
44532
44533.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
44534maybe-install-html-target-liboffloadmic:
44535@if target-liboffloadmic
44536maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
44537
44538install-html-target-liboffloadmic: \
44539 configure-target-liboffloadmic \
44540 html-target-liboffloadmic
44541 @: $(MAKE); $(unstage)
22121df0 44542 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44543 r=`${PWD_COMMAND}`; export r; \
44544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44545 $(NORMAL_TARGET_EXPORTS) \
22121df0 44546 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44547 for flag in $(EXTRA_TARGET_FLAGS); do \
44548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44549 done; \
44550 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44553 "RANLIB=$${RANLIB}" \
44554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44555 install-html) \
44556 || exit 1
44557
44558@endif target-liboffloadmic
44559
44560.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
44561maybe-installcheck-target-liboffloadmic:
44562@if target-liboffloadmic
44563maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
44564
44565installcheck-target-liboffloadmic: \
44566 configure-target-liboffloadmic
44567 @: $(MAKE); $(unstage)
22121df0 44568 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44569 r=`${PWD_COMMAND}`; export r; \
44570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44571 $(NORMAL_TARGET_EXPORTS) \
22121df0 44572 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44573 for flag in $(EXTRA_TARGET_FLAGS); do \
44574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44575 done; \
44576 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44579 "RANLIB=$${RANLIB}" \
44580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44581 installcheck) \
44582 || exit 1
44583
44584@endif target-liboffloadmic
44585
44586.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
44587maybe-mostlyclean-target-liboffloadmic:
44588@if target-liboffloadmic
44589maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
44590
44591mostlyclean-target-liboffloadmic:
44592 @: $(MAKE); $(unstage)
22121df0 44593 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44594 r=`${PWD_COMMAND}`; export r; \
44595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44596 $(NORMAL_TARGET_EXPORTS) \
22121df0 44597 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44598 for flag in $(EXTRA_TARGET_FLAGS); do \
44599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44600 done; \
44601 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44604 "RANLIB=$${RANLIB}" \
44605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44606 mostlyclean) \
44607 || exit 1
44608
44609@endif target-liboffloadmic
44610
44611.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
44612maybe-clean-target-liboffloadmic:
44613@if target-liboffloadmic
44614maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
44615
44616clean-target-liboffloadmic:
44617 @: $(MAKE); $(unstage)
22121df0 44618 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44619 r=`${PWD_COMMAND}`; export r; \
44620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44621 $(NORMAL_TARGET_EXPORTS) \
22121df0 44622 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44623 for flag in $(EXTRA_TARGET_FLAGS); do \
44624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44625 done; \
44626 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44629 "RANLIB=$${RANLIB}" \
44630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44631 clean) \
44632 || exit 1
44633
44634@endif target-liboffloadmic
44635
44636.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
44637maybe-distclean-target-liboffloadmic:
44638@if target-liboffloadmic
44639maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
44640
44641distclean-target-liboffloadmic:
44642 @: $(MAKE); $(unstage)
22121df0 44643 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44644 r=`${PWD_COMMAND}`; export r; \
44645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44646 $(NORMAL_TARGET_EXPORTS) \
22121df0 44647 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44648 for flag in $(EXTRA_TARGET_FLAGS); do \
44649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44650 done; \
44651 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44654 "RANLIB=$${RANLIB}" \
44655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44656 distclean) \
44657 || exit 1
44658
44659@endif target-liboffloadmic
44660
44661.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
44662maybe-maintainer-clean-target-liboffloadmic:
44663@if target-liboffloadmic
44664maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
44665
44666maintainer-clean-target-liboffloadmic:
44667 @: $(MAKE); $(unstage)
22121df0 44668 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
44669 r=`${PWD_COMMAND}`; export r; \
44670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44671 $(NORMAL_TARGET_EXPORTS) \
22121df0 44672 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
44673 for flag in $(EXTRA_TARGET_FLAGS); do \
44674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44675 done; \
44676 (cd $(TARGET_SUBDIR)/liboffloadmic && \
44677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44679 "RANLIB=$${RANLIB}" \
44680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
44681 maintainer-clean) \
44682 || exit 1
44683
44684@endif target-liboffloadmic
44685
44686
44687
44688
44689
a90ef4bf
JM
44690.PHONY: configure-target-libssp maybe-configure-target-libssp
44691maybe-configure-target-libssp:
4f0ef2d8 44692@if gcc-bootstrap
a90ef4bf 44693configure-target-libssp: stage_current
4f0ef2d8 44694@endif gcc-bootstrap
a90ef4bf
JM
44695@if target-libssp
44696maybe-configure-target-libssp: configure-target-libssp
44697configure-target-libssp:
0aed8855
PB
44698 @: $(MAKE); $(unstage)
44699 @r=`${PWD_COMMAND}`; export r; \
44700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44701 echo "Checking multilib configuration for libssp..."; \
22121df0
L
44702 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
44703 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44704 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
44705 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
44706 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 44707 else \
a90ef4bf
JM
44708 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
44709 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
44710 fi; \
44711 else \
a90ef4bf 44712 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 44713 fi; \
a90ef4bf 44714 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 44715 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 44716 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44717 echo Configuring in $(TARGET_SUBDIR)/libssp; \
44718 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 44719 case $(srcdir) in \
b00612cc 44720 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44721 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 44722 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 44723 esac; \
1b6c0831 44724 module_srcdir=libssp; \
4b1cb4fe 44725 rm -f no-such-file || : ; \
1b6c0831
L
44726 CONFIG_SITE=no-such-file $(SHELL) \
44727 $$s/$$module_srcdir/configure \
44728 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44729 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44730 --target=${target_alias} \
4b1cb4fe 44731 || exit 1
a90ef4bf 44732@endif target-libssp
4b1cb4fe 44733
a7254363
PB
44734
44735
d545f33b
PB
44736
44737
a90ef4bf
JM
44738.PHONY: all-target-libssp maybe-all-target-libssp
44739maybe-all-target-libssp:
4f0ef2d8 44740@if gcc-bootstrap
a90ef4bf 44741all-target-libssp: stage_current
4f0ef2d8 44742@endif gcc-bootstrap
a90ef4bf
JM
44743@if target-libssp
44744TARGET-target-libssp=all
44745maybe-all-target-libssp: all-target-libssp
44746all-target-libssp: configure-target-libssp
0aed8855 44747 @: $(MAKE); $(unstage)
4b1cb4fe
DD
44748 @r=`${PWD_COMMAND}`; export r; \
44749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44750 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44751 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 44752 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44753 $(TARGET-target-libssp))
44754@endif target-libssp
4b1cb4fe 44755
a7254363
PB
44756
44757
d545f33b
PB
44758
44759
a90ef4bf
JM
44760.PHONY: check-target-libssp maybe-check-target-libssp
44761maybe-check-target-libssp:
44762@if target-libssp
44763maybe-check-target-libssp: check-target-libssp
4b1cb4fe 44764
a90ef4bf 44765check-target-libssp:
0aed8855 44766 @: $(MAKE); $(unstage)
b40e3958
L
44767 @r=`${PWD_COMMAND}`; export r; \
44768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44769 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44770 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 44771 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 44772
a90ef4bf 44773@endif target-libssp
3866be5d 44774
a90ef4bf
JM
44775.PHONY: install-target-libssp maybe-install-target-libssp
44776maybe-install-target-libssp:
44777@if target-libssp
44778maybe-install-target-libssp: install-target-libssp
e2b9e2dc 44779
a90ef4bf 44780install-target-libssp: installdirs
0aed8855 44781 @: $(MAKE); $(unstage)
b40e3958
L
44782 @r=`${PWD_COMMAND}`; export r; \
44783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44784 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44785 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 44786 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 44787
a90ef4bf 44788@endif target-libssp
3866be5d 44789
a90ef4bf
JM
44790.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
44791maybe-install-strip-target-libssp:
44792@if target-libssp
44793maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 44794
a90ef4bf 44795install-strip-target-libssp: installdirs
9b980aa1
RW
44796 @: $(MAKE); $(unstage)
44797 @r=`${PWD_COMMAND}`; export r; \
44798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44799 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44800 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
44801 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44802
a90ef4bf 44803@endif target-libssp
9b980aa1 44804
56a8fe78 44805# Other targets (info, dvi, pdf, etc.)
3866be5d 44806
a90ef4bf
JM
44807.PHONY: maybe-info-target-libssp info-target-libssp
44808maybe-info-target-libssp:
44809@if target-libssp
44810maybe-info-target-libssp: info-target-libssp
3866be5d 44811
a90ef4bf
JM
44812info-target-libssp: \
44813 configure-target-libssp
0aed8855 44814 @: $(MAKE); $(unstage)
22121df0 44815 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
44816 r=`${PWD_COMMAND}`; export r; \
44817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44818 $(NORMAL_TARGET_EXPORTS) \
22121df0 44819 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
44820 for flag in $(EXTRA_TARGET_FLAGS); do \
44821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44822 done; \
a90ef4bf 44823 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
44824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44826 "RANLIB=$${RANLIB}" \
0c24b341 44827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44828 info) \
4fa63067 44829 || exit 1
16ae0395 44830
a90ef4bf 44831@endif target-libssp
3866be5d 44832
a90ef4bf
JM
44833.PHONY: maybe-dvi-target-libssp dvi-target-libssp
44834maybe-dvi-target-libssp:
44835@if target-libssp
44836maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 44837
a90ef4bf
JM
44838dvi-target-libssp: \
44839 configure-target-libssp
0aed8855 44840 @: $(MAKE); $(unstage)
22121df0 44841 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
44842 r=`${PWD_COMMAND}`; export r; \
44843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44844 $(NORMAL_TARGET_EXPORTS) \
22121df0 44845 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
44846 for flag in $(EXTRA_TARGET_FLAGS); do \
44847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44848 done; \
a90ef4bf 44849 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
44850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44852 "RANLIB=$${RANLIB}" \
0c24b341 44853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44854 dvi) \
e2b9e2dc
NN
44855 || exit 1
44856
a90ef4bf 44857@endif target-libssp
3866be5d 44858
a90ef4bf
JM
44859.PHONY: maybe-pdf-target-libssp pdf-target-libssp
44860maybe-pdf-target-libssp:
44861@if target-libssp
44862maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 44863
a90ef4bf
JM
44864pdf-target-libssp: \
44865 configure-target-libssp
56a8fe78 44866 @: $(MAKE); $(unstage)
22121df0 44867 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
44868 r=`${PWD_COMMAND}`; export r; \
44869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44870 $(NORMAL_TARGET_EXPORTS) \
22121df0 44871 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
44872 for flag in $(EXTRA_TARGET_FLAGS); do \
44873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44874 done; \
a90ef4bf 44875 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
44876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44878 "RANLIB=$${RANLIB}" \
0c24b341 44879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44880 pdf) \
44881 || exit 1
44882
a90ef4bf 44883@endif target-libssp
a3ca38d2 44884
a90ef4bf
JM
44885.PHONY: maybe-html-target-libssp html-target-libssp
44886maybe-html-target-libssp:
44887@if target-libssp
44888maybe-html-target-libssp: html-target-libssp
108a6f8e 44889
a90ef4bf
JM
44890html-target-libssp: \
44891 configure-target-libssp
108a6f8e 44892 @: $(MAKE); $(unstage)
22121df0 44893 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
44894 r=`${PWD_COMMAND}`; export r; \
44895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44896 $(NORMAL_TARGET_EXPORTS) \
22121df0 44897 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
44898 for flag in $(EXTRA_TARGET_FLAGS); do \
44899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44900 done; \
a90ef4bf 44901 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
44902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44904 "RANLIB=$${RANLIB}" \
0c24b341 44905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44906 html) \
108a6f8e
CD
44907 || exit 1
44908
a90ef4bf 44909@endif target-libssp
108a6f8e 44910
a90ef4bf
JM
44911.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
44912maybe-TAGS-target-libssp:
44913@if target-libssp
44914maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 44915
a90ef4bf
JM
44916TAGS-target-libssp: \
44917 configure-target-libssp
0aed8855 44918 @: $(MAKE); $(unstage)
22121df0 44919 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
44920 r=`${PWD_COMMAND}`; export r; \
44921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44922 $(NORMAL_TARGET_EXPORTS) \
22121df0 44923 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
44924 for flag in $(EXTRA_TARGET_FLAGS); do \
44925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44926 done; \
a90ef4bf 44927 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
44928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44930 "RANLIB=$${RANLIB}" \
0c24b341 44931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44932 TAGS) \
e2b9e2dc
NN
44933 || exit 1
44934
a90ef4bf 44935@endif target-libssp
3866be5d 44936
a90ef4bf
JM
44937.PHONY: maybe-install-info-target-libssp install-info-target-libssp
44938maybe-install-info-target-libssp:
44939@if target-libssp
44940maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 44941
a90ef4bf
JM
44942install-info-target-libssp: \
44943 configure-target-libssp \
44944 info-target-libssp
0aed8855 44945 @: $(MAKE); $(unstage)
22121df0 44946 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 44947 r=`${PWD_COMMAND}`; export r; \
b40e3958 44948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44949 $(NORMAL_TARGET_EXPORTS) \
22121df0 44950 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
44951 for flag in $(EXTRA_TARGET_FLAGS); do \
44952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44953 done; \
a90ef4bf 44954 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
44955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44957 "RANLIB=$${RANLIB}" \
0c24b341 44958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44959 install-info) \
4fa63067 44960 || exit 1
3866be5d 44961
a90ef4bf 44962@endif target-libssp
3866be5d 44963
a90ef4bf
JM
44964.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
44965maybe-install-pdf-target-libssp:
44966@if target-libssp
44967maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 44968
a90ef4bf
JM
44969install-pdf-target-libssp: \
44970 configure-target-libssp \
44971 pdf-target-libssp
0aed8855 44972 @: $(MAKE); $(unstage)
22121df0 44973 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 44974 r=`${PWD_COMMAND}`; export r; \
b40e3958 44975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44976 $(NORMAL_TARGET_EXPORTS) \
22121df0 44977 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
44978 for flag in $(EXTRA_TARGET_FLAGS); do \
44979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44980 done; \
a90ef4bf 44981 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
44982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44984 "RANLIB=$${RANLIB}" \
0c24b341 44985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44986 install-pdf) \
4fa63067 44987 || exit 1
3866be5d 44988
a90ef4bf 44989@endif target-libssp
3866be5d 44990
a90ef4bf
JM
44991.PHONY: maybe-install-html-target-libssp install-html-target-libssp
44992maybe-install-html-target-libssp:
44993@if target-libssp
44994maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 44995
a90ef4bf
JM
44996install-html-target-libssp: \
44997 configure-target-libssp \
44998 html-target-libssp
0aed8855 44999 @: $(MAKE); $(unstage)
22121df0 45000 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
45001 r=`${PWD_COMMAND}`; export r; \
45002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45003 $(NORMAL_TARGET_EXPORTS) \
22121df0 45004 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
45005 for flag in $(EXTRA_TARGET_FLAGS); do \
45006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45007 done; \
a90ef4bf 45008 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
45009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45011 "RANLIB=$${RANLIB}" \
0c24b341 45012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 45013 install-html) \
e2b9e2dc
NN
45014 || exit 1
45015
a90ef4bf 45016@endif target-libssp
3866be5d 45017
a90ef4bf
JM
45018.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
45019maybe-installcheck-target-libssp:
45020@if target-libssp
45021maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 45022
a90ef4bf
JM
45023installcheck-target-libssp: \
45024 configure-target-libssp
0aed8855 45025 @: $(MAKE); $(unstage)
22121df0 45026 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 45027 r=`${PWD_COMMAND}`; export r; \
b40e3958 45028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45029 $(NORMAL_TARGET_EXPORTS) \
22121df0 45030 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
45031 for flag in $(EXTRA_TARGET_FLAGS); do \
45032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45033 done; \
a90ef4bf 45034 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
45035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45037 "RANLIB=$${RANLIB}" \
0c24b341 45038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 45039 installcheck) \
6aa8ef82 45040 || exit 1
6aa8ef82 45041
a90ef4bf 45042@endif target-libssp
6aa8ef82 45043
a90ef4bf
JM
45044.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
45045maybe-mostlyclean-target-libssp:
45046@if target-libssp
45047maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 45048
a90ef4bf
JM
45049mostlyclean-target-libssp:
45050 @: $(MAKE); $(unstage)
22121df0 45051 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 45052 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
45053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45054 $(NORMAL_TARGET_EXPORTS) \
22121df0 45055 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
45056 for flag in $(EXTRA_TARGET_FLAGS); do \
45057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45058 done; \
45059 (cd $(TARGET_SUBDIR)/libssp && \
45060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45062 "RANLIB=$${RANLIB}" \
45063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
45064 mostlyclean) \
45065 || exit 1
6aa8ef82 45066
a90ef4bf 45067@endif target-libssp
6aa8ef82 45068
a90ef4bf
JM
45069.PHONY: maybe-clean-target-libssp clean-target-libssp
45070maybe-clean-target-libssp:
45071@if target-libssp
45072maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 45073
a90ef4bf
JM
45074clean-target-libssp:
45075 @: $(MAKE); $(unstage)
22121df0 45076 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 45077 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
45078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45079 $(NORMAL_TARGET_EXPORTS) \
22121df0 45080 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
45081 for flag in $(EXTRA_TARGET_FLAGS); do \
45082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45083 done; \
45084 (cd $(TARGET_SUBDIR)/libssp && \
45085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45087 "RANLIB=$${RANLIB}" \
45088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
45089 clean) \
45090 || exit 1
6aa8ef82 45091
a90ef4bf 45092@endif target-libssp
6aa8ef82 45093
a90ef4bf
JM
45094.PHONY: maybe-distclean-target-libssp distclean-target-libssp
45095maybe-distclean-target-libssp:
45096@if target-libssp
45097maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 45098
a90ef4bf
JM
45099distclean-target-libssp:
45100 @: $(MAKE); $(unstage)
22121df0 45101 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 45102 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
45103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45104 $(NORMAL_TARGET_EXPORTS) \
22121df0 45105 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
45106 for flag in $(EXTRA_TARGET_FLAGS); do \
45107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45108 done; \
45109 (cd $(TARGET_SUBDIR)/libssp && \
45110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45112 "RANLIB=$${RANLIB}" \
45113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
45114 distclean) \
45115 || exit 1
6aa8ef82 45116
a90ef4bf 45117@endif target-libssp
6aa8ef82 45118
a90ef4bf
JM
45119.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
45120maybe-maintainer-clean-target-libssp:
45121@if target-libssp
45122maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 45123
a90ef4bf
JM
45124maintainer-clean-target-libssp:
45125 @: $(MAKE); $(unstage)
22121df0 45126 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 45127 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
45128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45129 $(NORMAL_TARGET_EXPORTS) \
22121df0 45130 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
45131 for flag in $(EXTRA_TARGET_FLAGS); do \
45132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45133 done; \
45134 (cd $(TARGET_SUBDIR)/libssp && \
45135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45137 "RANLIB=$${RANLIB}" \
45138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
45139 maintainer-clean) \
45140 || exit 1
6aa8ef82 45141
a90ef4bf 45142@endif target-libssp
6aa8ef82
DJ
45143
45144
a90ef4bf
JM
45145
45146
45147
45148.PHONY: configure-target-newlib maybe-configure-target-newlib
45149maybe-configure-target-newlib:
45150@if gcc-bootstrap
45151configure-target-newlib: stage_current
45152@endif gcc-bootstrap
45153@if target-newlib
45154maybe-configure-target-newlib: configure-target-newlib
45155configure-target-newlib:
45156 @: $(MAKE); $(unstage)
6aa8ef82
DJ
45157 @r=`${PWD_COMMAND}`; export r; \
45158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 45159 echo "Checking multilib configuration for newlib..."; \
22121df0
L
45160 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
45161 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45162 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
45163 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
45164 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
45165 else \
45166 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
45167 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
45168 fi; \
6aa8ef82 45169 else \
a90ef4bf 45170 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 45171 fi; \
a90ef4bf 45172 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 45173 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
45174 $(NORMAL_TARGET_EXPORTS) \
45175 echo Configuring in $(TARGET_SUBDIR)/newlib; \
45176 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
45177 case $(srcdir) in \
45178 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45179 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
45180 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45181 esac; \
1b6c0831 45182 module_srcdir=newlib; \
a90ef4bf 45183 rm -f no-such-file || : ; \
1b6c0831
L
45184 CONFIG_SITE=no-such-file $(SHELL) \
45185 $$s/$$module_srcdir/configure \
45186 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 45187 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45188 --target=${target_alias} \
a90ef4bf
JM
45189 || exit 1
45190@endif target-newlib
6aa8ef82
DJ
45191
45192
45193
45194
45195
a90ef4bf
JM
45196.PHONY: all-target-newlib maybe-all-target-newlib
45197maybe-all-target-newlib:
45198@if gcc-bootstrap
45199all-target-newlib: stage_current
45200@endif gcc-bootstrap
45201@if target-newlib
45202TARGET-target-newlib=all
45203maybe-all-target-newlib: all-target-newlib
45204all-target-newlib: configure-target-newlib
45205 @: $(MAKE); $(unstage)
45206 @r=`${PWD_COMMAND}`; export r; \
45207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45208 $(NORMAL_TARGET_EXPORTS) \
45209 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 45210 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
45211 $(TARGET-target-newlib))
45212@endif target-newlib
6aa8ef82 45213
6aa8ef82 45214
6aa8ef82 45215
6aa8ef82 45216
6aa8ef82 45217
a90ef4bf
JM
45218.PHONY: check-target-newlib maybe-check-target-newlib
45219maybe-check-target-newlib:
45220@if target-newlib
45221maybe-check-target-newlib: check-target-newlib
45222
45223check-target-newlib:
6aa8ef82
DJ
45224 @: $(MAKE); $(unstage)
45225 @r=`${PWD_COMMAND}`; export r; \
45226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45227 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45228 (cd $(TARGET_SUBDIR)/newlib && \
45229 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
45230
45231@endif target-newlib
45232
45233.PHONY: install-target-newlib maybe-install-target-newlib
45234maybe-install-target-newlib:
45235@if target-newlib
45236maybe-install-target-newlib: install-target-newlib
45237
45238install-target-newlib: installdirs
45239 @: $(MAKE); $(unstage)
45240 @r=`${PWD_COMMAND}`; export r; \
45241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45242 $(NORMAL_TARGET_EXPORTS) \
45243 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45244 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
45245
a90ef4bf 45246@endif target-newlib
6aa8ef82 45247
a90ef4bf
JM
45248.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
45249maybe-install-strip-target-newlib:
45250@if target-newlib
45251maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 45252
a90ef4bf 45253install-strip-target-newlib: installdirs
9b980aa1
RW
45254 @: $(MAKE); $(unstage)
45255 @r=`${PWD_COMMAND}`; export r; \
45256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45257 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45258 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
45259 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45260
a90ef4bf 45261@endif target-newlib
9b980aa1 45262
6aa8ef82
DJ
45263# Other targets (info, dvi, pdf, etc.)
45264
a90ef4bf
JM
45265.PHONY: maybe-info-target-newlib info-target-newlib
45266maybe-info-target-newlib:
45267@if target-newlib
45268maybe-info-target-newlib: info-target-newlib
6aa8ef82 45269
a90ef4bf
JM
45270info-target-newlib: \
45271 configure-target-newlib
6aa8ef82 45272 @: $(MAKE); $(unstage)
22121df0 45273 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45274 r=`${PWD_COMMAND}`; export r; \
45275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45276 $(NORMAL_TARGET_EXPORTS) \
22121df0 45277 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45278 for flag in $(EXTRA_TARGET_FLAGS); do \
45279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45280 done; \
a90ef4bf 45281 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45284 "RANLIB=$${RANLIB}" \
0c24b341 45285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45286 info) \
45287 || exit 1
45288
a90ef4bf 45289@endif target-newlib
6aa8ef82 45290
a90ef4bf
JM
45291.PHONY: maybe-dvi-target-newlib dvi-target-newlib
45292maybe-dvi-target-newlib:
45293@if target-newlib
45294maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 45295
a90ef4bf
JM
45296dvi-target-newlib: \
45297 configure-target-newlib
6aa8ef82 45298 @: $(MAKE); $(unstage)
22121df0 45299 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45300 r=`${PWD_COMMAND}`; export r; \
45301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45302 $(NORMAL_TARGET_EXPORTS) \
22121df0 45303 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45304 for flag in $(EXTRA_TARGET_FLAGS); do \
45305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45306 done; \
a90ef4bf 45307 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45310 "RANLIB=$${RANLIB}" \
0c24b341 45311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45312 dvi) \
45313 || exit 1
45314
a90ef4bf 45315@endif target-newlib
6aa8ef82 45316
a90ef4bf
JM
45317.PHONY: maybe-pdf-target-newlib pdf-target-newlib
45318maybe-pdf-target-newlib:
45319@if target-newlib
45320maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 45321
a90ef4bf
JM
45322pdf-target-newlib: \
45323 configure-target-newlib
6aa8ef82 45324 @: $(MAKE); $(unstage)
22121df0 45325 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45326 r=`${PWD_COMMAND}`; export r; \
45327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45328 $(NORMAL_TARGET_EXPORTS) \
22121df0 45329 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45330 for flag in $(EXTRA_TARGET_FLAGS); do \
45331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45332 done; \
a90ef4bf 45333 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45336 "RANLIB=$${RANLIB}" \
0c24b341 45337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45338 pdf) \
45339 || exit 1
45340
a90ef4bf 45341@endif target-newlib
6aa8ef82 45342
a90ef4bf
JM
45343.PHONY: maybe-html-target-newlib html-target-newlib
45344maybe-html-target-newlib:
45345@if target-newlib
45346maybe-html-target-newlib: html-target-newlib
6aa8ef82 45347
a90ef4bf
JM
45348html-target-newlib: \
45349 configure-target-newlib
6aa8ef82 45350 @: $(MAKE); $(unstage)
22121df0 45351 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45352 r=`${PWD_COMMAND}`; export r; \
45353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45354 $(NORMAL_TARGET_EXPORTS) \
22121df0 45355 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45356 for flag in $(EXTRA_TARGET_FLAGS); do \
45357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45358 done; \
a90ef4bf 45359 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45362 "RANLIB=$${RANLIB}" \
0c24b341 45363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45364 html) \
45365 || exit 1
45366
a90ef4bf 45367@endif target-newlib
6aa8ef82 45368
a90ef4bf
JM
45369.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
45370maybe-TAGS-target-newlib:
45371@if target-newlib
45372maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 45373
a90ef4bf
JM
45374TAGS-target-newlib: \
45375 configure-target-newlib
6aa8ef82 45376 @: $(MAKE); $(unstage)
22121df0 45377 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45378 r=`${PWD_COMMAND}`; export r; \
45379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45380 $(NORMAL_TARGET_EXPORTS) \
22121df0 45381 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45382 for flag in $(EXTRA_TARGET_FLAGS); do \
45383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45384 done; \
a90ef4bf 45385 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45388 "RANLIB=$${RANLIB}" \
0c24b341 45389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45390 TAGS) \
45391 || exit 1
45392
a90ef4bf 45393@endif target-newlib
6aa8ef82 45394
a90ef4bf
JM
45395.PHONY: maybe-install-info-target-newlib install-info-target-newlib
45396maybe-install-info-target-newlib:
45397@if target-newlib
45398maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 45399
a90ef4bf
JM
45400install-info-target-newlib: \
45401 configure-target-newlib \
45402 info-target-newlib
6aa8ef82 45403 @: $(MAKE); $(unstage)
22121df0 45404 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45405 r=`${PWD_COMMAND}`; export r; \
45406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45407 $(NORMAL_TARGET_EXPORTS) \
22121df0 45408 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45409 for flag in $(EXTRA_TARGET_FLAGS); do \
45410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45411 done; \
a90ef4bf 45412 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45415 "RANLIB=$${RANLIB}" \
0c24b341 45416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45417 install-info) \
45418 || exit 1
45419
a90ef4bf 45420@endif target-newlib
6aa8ef82 45421
a90ef4bf
JM
45422.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
45423maybe-install-pdf-target-newlib:
45424@if target-newlib
45425maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 45426
a90ef4bf
JM
45427install-pdf-target-newlib: \
45428 configure-target-newlib \
45429 pdf-target-newlib
a3ca38d2 45430 @: $(MAKE); $(unstage)
22121df0 45431 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
45432 r=`${PWD_COMMAND}`; export r; \
45433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45434 $(NORMAL_TARGET_EXPORTS) \
22121df0 45435 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
45436 for flag in $(EXTRA_TARGET_FLAGS); do \
45437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45438 done; \
a90ef4bf 45439 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
45440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45442 "RANLIB=$${RANLIB}" \
0c24b341 45443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45444 install-pdf) \
45445 || exit 1
45446
a90ef4bf 45447@endif target-newlib
a3ca38d2 45448
a90ef4bf
JM
45449.PHONY: maybe-install-html-target-newlib install-html-target-newlib
45450maybe-install-html-target-newlib:
45451@if target-newlib
45452maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 45453
a90ef4bf
JM
45454install-html-target-newlib: \
45455 configure-target-newlib \
45456 html-target-newlib
6aa8ef82 45457 @: $(MAKE); $(unstage)
22121df0 45458 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45459 r=`${PWD_COMMAND}`; export r; \
45460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45461 $(NORMAL_TARGET_EXPORTS) \
22121df0 45462 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45463 for flag in $(EXTRA_TARGET_FLAGS); do \
45464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45465 done; \
a90ef4bf 45466 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45469 "RANLIB=$${RANLIB}" \
0c24b341 45470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45471 install-html) \
45472 || exit 1
45473
a90ef4bf 45474@endif target-newlib
6aa8ef82 45475
a90ef4bf
JM
45476.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
45477maybe-installcheck-target-newlib:
45478@if target-newlib
45479maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 45480
a90ef4bf
JM
45481installcheck-target-newlib: \
45482 configure-target-newlib
6aa8ef82 45483 @: $(MAKE); $(unstage)
22121df0 45484 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45485 r=`${PWD_COMMAND}`; export r; \
45486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45487 $(NORMAL_TARGET_EXPORTS) \
22121df0 45488 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45489 for flag in $(EXTRA_TARGET_FLAGS); do \
45490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45491 done; \
a90ef4bf 45492 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45495 "RANLIB=$${RANLIB}" \
0c24b341 45496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45497 installcheck) \
45498 || exit 1
45499
a90ef4bf 45500@endif target-newlib
6aa8ef82 45501
a90ef4bf
JM
45502.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
45503maybe-mostlyclean-target-newlib:
45504@if target-newlib
45505maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 45506
a90ef4bf 45507mostlyclean-target-newlib:
6aa8ef82 45508 @: $(MAKE); $(unstage)
22121df0 45509 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45510 r=`${PWD_COMMAND}`; export r; \
45511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45512 $(NORMAL_TARGET_EXPORTS) \
22121df0 45513 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45514 for flag in $(EXTRA_TARGET_FLAGS); do \
45515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45516 done; \
a90ef4bf 45517 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45520 "RANLIB=$${RANLIB}" \
0c24b341 45521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45522 mostlyclean) \
45523 || exit 1
45524
a90ef4bf 45525@endif target-newlib
6aa8ef82 45526
a90ef4bf
JM
45527.PHONY: maybe-clean-target-newlib clean-target-newlib
45528maybe-clean-target-newlib:
45529@if target-newlib
45530maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 45531
a90ef4bf 45532clean-target-newlib:
6aa8ef82 45533 @: $(MAKE); $(unstage)
22121df0 45534 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45535 r=`${PWD_COMMAND}`; export r; \
45536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45537 $(NORMAL_TARGET_EXPORTS) \
22121df0 45538 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45539 for flag in $(EXTRA_TARGET_FLAGS); do \
45540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45541 done; \
a90ef4bf 45542 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45545 "RANLIB=$${RANLIB}" \
0c24b341 45546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45547 clean) \
45548 || exit 1
45549
a90ef4bf 45550@endif target-newlib
6aa8ef82 45551
a90ef4bf
JM
45552.PHONY: maybe-distclean-target-newlib distclean-target-newlib
45553maybe-distclean-target-newlib:
45554@if target-newlib
45555maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 45556
a90ef4bf 45557distclean-target-newlib:
6aa8ef82 45558 @: $(MAKE); $(unstage)
22121df0 45559 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45560 r=`${PWD_COMMAND}`; export r; \
45561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45562 $(NORMAL_TARGET_EXPORTS) \
22121df0 45563 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45564 for flag in $(EXTRA_TARGET_FLAGS); do \
45565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45566 done; \
a90ef4bf 45567 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45570 "RANLIB=$${RANLIB}" \
0c24b341 45571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45572 distclean) \
45573 || exit 1
45574
a90ef4bf 45575@endif target-newlib
6aa8ef82 45576
a90ef4bf
JM
45577.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
45578maybe-maintainer-clean-target-newlib:
45579@if target-newlib
45580maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 45581
a90ef4bf 45582maintainer-clean-target-newlib:
6aa8ef82 45583 @: $(MAKE); $(unstage)
22121df0 45584 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
45585 r=`${PWD_COMMAND}`; export r; \
45586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45587 $(NORMAL_TARGET_EXPORTS) \
22121df0 45588 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
45589 for flag in $(EXTRA_TARGET_FLAGS); do \
45590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45591 done; \
a90ef4bf 45592 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
45593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45595 "RANLIB=$${RANLIB}" \
0c24b341 45596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
45597 maintainer-clean) \
45598 || exit 1
45599
a90ef4bf 45600@endif target-newlib
6aa8ef82
DJ
45601
45602
45603
45604
45605
a90ef4bf
JM
45606.PHONY: configure-target-libgcc maybe-configure-target-libgcc
45607maybe-configure-target-libgcc:
e552509b 45608@if gcc-bootstrap
a90ef4bf 45609configure-target-libgcc: stage_current
e552509b 45610@endif gcc-bootstrap
a90ef4bf
JM
45611@if target-libgcc
45612maybe-configure-target-libgcc: configure-target-libgcc
45613configure-target-libgcc:
e552509b
ILT
45614 @r=`${PWD_COMMAND}`; export r; \
45615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 45616 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
45617 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
45618 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45619 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45620 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45621 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 45622 else \
a90ef4bf
JM
45623 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
45624 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
45625 fi; \
45626 else \
a90ef4bf 45627 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 45628 fi; \
a90ef4bf 45629 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 45630 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 45631 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45632 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
45633 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
45634 case $(srcdir) in \
45635 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 45636 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
45637 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45638 esac; \
1b6c0831 45639 module_srcdir=libgcc; \
e552509b 45640 rm -f no-such-file || : ; \
1b6c0831
L
45641 CONFIG_SITE=no-such-file $(SHELL) \
45642 $$s/$$module_srcdir/configure \
45643 --srcdir=$${topdir}/$$module_srcdir \
e552509b 45644 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45645 --target=${target_alias} \
e552509b 45646 || exit 1
a90ef4bf 45647@endif target-libgcc
e552509b
ILT
45648
45649
e552509b 45650
a90ef4bf
JM
45651.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
45652maybe-configure-stage1-target-libgcc:
45653@if target-libgcc-bootstrap
45654maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
45655configure-stage1-target-libgcc:
45656 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
45657 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
45658 @r=`${PWD_COMMAND}`; export r; \
45659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
45660 TFLAGS="$(STAGE1_TFLAGS)"; \
45661 echo "Checking multilib configuration for libgcc..."; \
22121df0 45662 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45663 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45664 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45665 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
45666 else \
45667 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
45668 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45669 fi; \
45670 else \
45671 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45672 fi; \
45673 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 45674 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45675 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45676 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45677 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45678 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
45679 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
45680 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
45681 case $(srcdir) in \
45682 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45683 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
45684 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45685 esac; \
1b6c0831
L
45686 module_srcdir=libgcc; \
45687 $(SHELL) $$s/$$module_srcdir/configure \
45688 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 45689 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
45690 --target=${target_alias} \
45691 \
a90ef4bf
JM
45692 $(STAGE1_CONFIGURE_FLAGS)
45693@endif target-libgcc-bootstrap
e552509b 45694
a90ef4bf
JM
45695.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
45696maybe-configure-stage2-target-libgcc:
45697@if target-libgcc-bootstrap
45698maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
45699configure-stage2-target-libgcc:
45700 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
45701 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
45702 @r=`${PWD_COMMAND}`; export r; \
45703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
45704 TFLAGS="$(STAGE2_TFLAGS)"; \
45705 echo "Checking multilib configuration for libgcc..."; \
22121df0 45706 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45707 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45708 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45709 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
45710 else \
45711 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
45712 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45713 fi; \
45714 else \
45715 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45716 fi; \
45717 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 45718 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45719 \
45720 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45721 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45722 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45723 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
45724 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
45725 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
45726 case $(srcdir) in \
45727 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45728 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
45729 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45730 esac; \
1b6c0831
L
45731 module_srcdir=libgcc; \
45732 $(SHELL) $$s/$$module_srcdir/configure \
45733 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 45734 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45735 --target=${target_alias} \
22121df0 45736 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
45737 $(STAGE2_CONFIGURE_FLAGS)
45738@endif target-libgcc-bootstrap
9b980aa1 45739
a90ef4bf
JM
45740.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
45741maybe-configure-stage3-target-libgcc:
45742@if target-libgcc-bootstrap
45743maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
45744configure-stage3-target-libgcc:
45745 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
45746 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
45747 @r=`${PWD_COMMAND}`; export r; \
45748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
45749 TFLAGS="$(STAGE3_TFLAGS)"; \
45750 echo "Checking multilib configuration for libgcc..."; \
22121df0 45751 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45752 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45753 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45754 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
45755 else \
45756 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
45757 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45758 fi; \
45759 else \
45760 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45761 fi; \
45762 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 45763 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45764 \
45765 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45766 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45767 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45768 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
45769 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
45770 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
45771 case $(srcdir) in \
45772 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45773 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
45774 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45775 esac; \
1b6c0831
L
45776 module_srcdir=libgcc; \
45777 $(SHELL) $$s/$$module_srcdir/configure \
45778 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 45779 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45780 --target=${target_alias} \
22121df0 45781 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
45782 $(STAGE3_CONFIGURE_FLAGS)
45783@endif target-libgcc-bootstrap
e552509b 45784
a90ef4bf
JM
45785.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
45786maybe-configure-stage4-target-libgcc:
45787@if target-libgcc-bootstrap
45788maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
45789configure-stage4-target-libgcc:
45790 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
45791 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
45792 @r=`${PWD_COMMAND}`; export r; \
e552509b 45793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
45794 TFLAGS="$(STAGE4_TFLAGS)"; \
45795 echo "Checking multilib configuration for libgcc..."; \
22121df0 45796 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45797 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45798 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45799 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
45800 else \
45801 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
45802 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45803 fi; \
45804 else \
45805 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45806 fi; \
45807 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 45808 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45809 \
45810 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45811 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45812 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45813 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
45814 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
45815 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
45816 case $(srcdir) in \
45817 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45818 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
45819 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45820 esac; \
1b6c0831
L
45821 module_srcdir=libgcc; \
45822 $(SHELL) $$s/$$module_srcdir/configure \
45823 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 45824 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45825 --target=${target_alias} \
22121df0 45826 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
45827 $(STAGE4_CONFIGURE_FLAGS)
45828@endif target-libgcc-bootstrap
45829
45830.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
45831maybe-configure-stageprofile-target-libgcc:
45832@if target-libgcc-bootstrap
45833maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
45834configure-stageprofile-target-libgcc:
45835 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
45836 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
45837 @r=`${PWD_COMMAND}`; export r; \
e552509b 45838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
45839 TFLAGS="$(STAGEprofile_TFLAGS)"; \
45840 echo "Checking multilib configuration for libgcc..."; \
22121df0 45841 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45842 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45843 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45844 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
45845 else \
45846 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
45847 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45848 fi; \
45849 else \
45850 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45851 fi; \
45852 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 45853 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45854 \
45855 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45856 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45857 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45858 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
45859 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
45860 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
45861 case $(srcdir) in \
45862 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45863 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
45864 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45865 esac; \
1b6c0831
L
45866 module_srcdir=libgcc; \
45867 $(SHELL) $$s/$$module_srcdir/configure \
45868 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 45869 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45870 --target=${target_alias} \
22121df0 45871 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
45872 $(STAGEprofile_CONFIGURE_FLAGS)
45873@endif target-libgcc-bootstrap
e552509b 45874
f948b2de
NC
45875.PHONY: configure-stagetrain-target-libgcc maybe-configure-stagetrain-target-libgcc
45876maybe-configure-stagetrain-target-libgcc:
45877@if target-libgcc-bootstrap
45878maybe-configure-stagetrain-target-libgcc: configure-stagetrain-target-libgcc
45879configure-stagetrain-target-libgcc:
45880 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
45881 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
45882 @r=`${PWD_COMMAND}`; export r; \
45883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45884 TFLAGS="$(STAGEtrain_TFLAGS)"; \
45885 echo "Checking multilib configuration for libgcc..."; \
45886 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
45887 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45888 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45889 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
45890 else \
45891 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
45892 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45893 fi; \
45894 else \
45895 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45896 fi; \
45897 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
45898 $(NORMAL_TARGET_EXPORTS) \
45899 \
45900 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45901 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45902 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45903 echo Configuring stage train in $(TARGET_SUBDIR)/libgcc; \
45904 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
45905 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
45906 case $(srcdir) in \
45907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45908 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
45909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45910 esac; \
45911 module_srcdir=libgcc; \
45912 $(SHELL) $$s/$$module_srcdir/configure \
45913 --srcdir=$${topdir}/$$module_srcdir \
45914 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
45915 --target=${target_alias} \
45916 --with-build-libsubdir=$(HOST_SUBDIR) \
45917 $(STAGEtrain_CONFIGURE_FLAGS)
45918@endif target-libgcc-bootstrap
45919
a90ef4bf
JM
45920.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
45921maybe-configure-stagefeedback-target-libgcc:
45922@if target-libgcc-bootstrap
45923maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
45924configure-stagefeedback-target-libgcc:
45925 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
45926 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
45927 @r=`${PWD_COMMAND}`; export r; \
e552509b 45928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
45929 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
45930 echo "Checking multilib configuration for libgcc..."; \
22121df0 45931 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45932 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45933 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45934 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
45935 else \
45936 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
45937 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45938 fi; \
45939 else \
45940 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45941 fi; \
45942 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 45943 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45944 \
45945 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45946 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45947 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
45948 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
45949 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
45950 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
45951 case $(srcdir) in \
45952 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45953 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
45954 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
45955 esac; \
1b6c0831
L
45956 module_srcdir=libgcc; \
45957 $(SHELL) $$s/$$module_srcdir/configure \
45958 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 45959 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45960 --target=${target_alias} \
22121df0 45961 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
45962 $(STAGEfeedback_CONFIGURE_FLAGS)
45963@endif target-libgcc-bootstrap
e552509b 45964
f948b2de
NC
45965.PHONY: configure-stageautoprofile-target-libgcc maybe-configure-stageautoprofile-target-libgcc
45966maybe-configure-stageautoprofile-target-libgcc:
45967@if target-libgcc-bootstrap
45968maybe-configure-stageautoprofile-target-libgcc: configure-stageautoprofile-target-libgcc
45969configure-stageautoprofile-target-libgcc:
45970 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
45971 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
45972 @r=`${PWD_COMMAND}`; export r; \
45973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45974 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
45975 echo "Checking multilib configuration for libgcc..."; \
45976 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
45977 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45978 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
45979 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
45980 else \
45981 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
45982 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45983 fi; \
45984 else \
45985 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
45986 fi; \
45987 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
45988 $(NORMAL_TARGET_EXPORTS) \
45989 \
45990 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
45991 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
45992 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
45993 echo Configuring stage autoprofile in $(TARGET_SUBDIR)/libgcc; \
45994 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
45995 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
45996 case $(srcdir) in \
45997 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45998 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
45999 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46000 esac; \
46001 module_srcdir=libgcc; \
46002 $(SHELL) $$s/$$module_srcdir/configure \
46003 --srcdir=$${topdir}/$$module_srcdir \
46004 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
46005 --target=${target_alias} \
46006 --with-build-libsubdir=$(HOST_SUBDIR) \
46007 $(STAGEautoprofile_CONFIGURE_FLAGS)
46008@endif target-libgcc-bootstrap
46009
46010.PHONY: configure-stageautofeedback-target-libgcc maybe-configure-stageautofeedback-target-libgcc
46011maybe-configure-stageautofeedback-target-libgcc:
46012@if target-libgcc-bootstrap
46013maybe-configure-stageautofeedback-target-libgcc: configure-stageautofeedback-target-libgcc
46014configure-stageautofeedback-target-libgcc:
46015 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
46016 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
46017 @r=`${PWD_COMMAND}`; export r; \
46018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46019 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
46020 echo "Checking multilib configuration for libgcc..."; \
46021 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
46022 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
46023 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
46024 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
46025 else \
46026 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
46027 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
46028 fi; \
46029 else \
46030 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
46031 fi; \
46032 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
46033 $(NORMAL_TARGET_EXPORTS) \
46034 \
46035 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46036 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46037 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
46038 echo Configuring stage autofeedback in $(TARGET_SUBDIR)/libgcc; \
46039 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
46040 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
46041 case $(srcdir) in \
46042 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46043 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
46044 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46045 esac; \
46046 module_srcdir=libgcc; \
46047 $(SHELL) $$s/$$module_srcdir/configure \
46048 --srcdir=$${topdir}/$$module_srcdir \
46049 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
46050 --target=${target_alias} \
46051 --with-build-libsubdir=$(HOST_SUBDIR) \
46052 $(STAGEautofeedback_CONFIGURE_FLAGS)
46053@endif target-libgcc-bootstrap
46054
e552509b 46055
e552509b 46056
e552509b 46057
e552509b 46058
a90ef4bf
JM
46059.PHONY: all-target-libgcc maybe-all-target-libgcc
46060maybe-all-target-libgcc:
46061@if gcc-bootstrap
46062all-target-libgcc: stage_current
46063@endif gcc-bootstrap
46064@if target-libgcc
46065TARGET-target-libgcc=all
46066maybe-all-target-libgcc: all-target-libgcc
46067all-target-libgcc: configure-target-libgcc
46068 @r=`${PWD_COMMAND}`; export r; \
e552509b 46069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
46070 $(NORMAL_TARGET_EXPORTS) \
46071 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 46072 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
46073 $(TARGET-target-libgcc))
46074@endif target-libgcc
e552509b 46075
e552509b 46076
e552509b 46077
a90ef4bf
JM
46078.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
46079.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
46080maybe-all-stage1-target-libgcc:
46081maybe-clean-stage1-target-libgcc:
46082@if target-libgcc-bootstrap
46083maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
46084all-stage1: all-stage1-target-libgcc
46085TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
46086all-stage1-target-libgcc: configure-stage1-target-libgcc
46087 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46088 @r=`${PWD_COMMAND}`; export r; \
e552509b 46089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
46090 TFLAGS="$(STAGE1_TFLAGS)"; \
46091 $(NORMAL_TARGET_EXPORTS) \
46092 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 46093 \
a90ef4bf
JM
46094 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46095 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46096 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46097 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46098 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46099 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46100 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
46101 $(EXTRA_TARGET_FLAGS) \
46102 \
05a13254 46103 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 46104 $(TARGET-stage1-target-libgcc)
e552509b 46105
a90ef4bf
JM
46106maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
46107clean-stage1: clean-stage1-target-libgcc
46108clean-stage1-target-libgcc:
46109 @if [ $(current_stage) = stage1 ]; then \
46110 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
46111 else \
46112 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
46113 $(MAKE) stage1-start; \
46114 fi; \
46115 cd $(TARGET_SUBDIR)/libgcc && \
46116 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 46117 clean
a90ef4bf 46118@endif target-libgcc-bootstrap
e552509b 46119
e552509b 46120
a90ef4bf
JM
46121.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
46122.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
46123maybe-all-stage2-target-libgcc:
46124maybe-clean-stage2-target-libgcc:
46125@if target-libgcc-bootstrap
46126maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
46127all-stage2: all-stage2-target-libgcc
46128TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
46129all-stage2-target-libgcc: configure-stage2-target-libgcc
46130 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46131 @r=`${PWD_COMMAND}`; export r; \
e552509b 46132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 46133 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 46134 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
46135 \
46136 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 46137 \
a90ef4bf
JM
46138 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46139 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46140 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46141 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46142 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46143 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46144 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46145 $(EXTRA_TARGET_FLAGS) \
05a13254 46146 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 46147 $(TARGET-stage2-target-libgcc)
e552509b 46148
a90ef4bf
JM
46149maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
46150clean-stage2: clean-stage2-target-libgcc
46151clean-stage2-target-libgcc:
46152 @if [ $(current_stage) = stage2 ]; then \
46153 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
46154 else \
46155 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
46156 $(MAKE) stage2-start; \
46157 fi; \
46158 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 46159 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 46160@endif target-libgcc-bootstrap
e552509b 46161
e552509b 46162
a90ef4bf
JM
46163.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
46164.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
46165maybe-all-stage3-target-libgcc:
46166maybe-clean-stage3-target-libgcc:
46167@if target-libgcc-bootstrap
46168maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
46169all-stage3: all-stage3-target-libgcc
46170TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
46171all-stage3-target-libgcc: configure-stage3-target-libgcc
46172 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46173 @r=`${PWD_COMMAND}`; export r; \
e552509b 46174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 46175 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 46176 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
46177 \
46178 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 46179 \
a90ef4bf
JM
46180 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46181 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46182 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46183 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46184 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46185 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46186 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46187 $(EXTRA_TARGET_FLAGS) \
05a13254 46188 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 46189 $(TARGET-stage3-target-libgcc)
e552509b 46190
a90ef4bf
JM
46191maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
46192clean-stage3: clean-stage3-target-libgcc
46193clean-stage3-target-libgcc:
46194 @if [ $(current_stage) = stage3 ]; then \
46195 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
46196 else \
46197 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
46198 $(MAKE) stage3-start; \
46199 fi; \
46200 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 46201 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 46202@endif target-libgcc-bootstrap
e552509b 46203
e552509b 46204
a90ef4bf
JM
46205.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
46206.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
46207maybe-all-stage4-target-libgcc:
46208maybe-clean-stage4-target-libgcc:
46209@if target-libgcc-bootstrap
46210maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
46211all-stage4: all-stage4-target-libgcc
46212TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
46213all-stage4-target-libgcc: configure-stage4-target-libgcc
46214 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46215 @r=`${PWD_COMMAND}`; export r; \
e552509b 46216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 46217 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 46218 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
46219 \
46220 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 46221 \
a90ef4bf
JM
46222 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46223 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46224 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46225 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46226 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46227 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46228 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46229 $(EXTRA_TARGET_FLAGS) \
05a13254 46230 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 46231 $(TARGET-stage4-target-libgcc)
e552509b 46232
a90ef4bf
JM
46233maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
46234clean-stage4: clean-stage4-target-libgcc
46235clean-stage4-target-libgcc:
46236 @if [ $(current_stage) = stage4 ]; then \
46237 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
46238 else \
46239 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
46240 $(MAKE) stage4-start; \
46241 fi; \
46242 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 46243 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 46244@endif target-libgcc-bootstrap
e552509b
ILT
46245
46246
a90ef4bf
JM
46247.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
46248.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
46249maybe-all-stageprofile-target-libgcc:
46250maybe-clean-stageprofile-target-libgcc:
46251@if target-libgcc-bootstrap
46252maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
46253all-stageprofile: all-stageprofile-target-libgcc
46254TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
46255all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
46256 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
46257 @r=`${PWD_COMMAND}`; export r; \
46258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
46259 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46260 $(NORMAL_TARGET_EXPORTS) \
46261 \
46262 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 46263 \
a90ef4bf
JM
46264 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46265 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46266 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46267 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46268 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46269 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46270 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46271 $(EXTRA_TARGET_FLAGS) \
05a13254 46272 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
46273 $(TARGET-stageprofile-target-libgcc)
46274
46275maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
46276clean-stageprofile: clean-stageprofile-target-libgcc
46277clean-stageprofile-target-libgcc:
46278 @if [ $(current_stage) = stageprofile ]; then \
46279 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 46280 else \
a90ef4bf
JM
46281 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
46282 $(MAKE) stageprofile-start; \
c52c6897 46283 fi; \
a90ef4bf 46284 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 46285 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 46286@endif target-libgcc-bootstrap
d545f33b
PB
46287
46288
f948b2de
NC
46289.PHONY: all-stagetrain-target-libgcc maybe-all-stagetrain-target-libgcc
46290.PHONY: clean-stagetrain-target-libgcc maybe-clean-stagetrain-target-libgcc
46291maybe-all-stagetrain-target-libgcc:
46292maybe-clean-stagetrain-target-libgcc:
46293@if target-libgcc-bootstrap
46294maybe-all-stagetrain-target-libgcc: all-stagetrain-target-libgcc
46295all-stagetrain: all-stagetrain-target-libgcc
46296TARGET-stagetrain-target-libgcc = $(TARGET-target-libgcc)
46297all-stagetrain-target-libgcc: configure-stagetrain-target-libgcc
46298 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
46299 @r=`${PWD_COMMAND}`; export r; \
46300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46301 TFLAGS="$(STAGEtrain_TFLAGS)"; \
46302 $(NORMAL_TARGET_EXPORTS) \
46303 \
46304 cd $(TARGET_SUBDIR)/libgcc && \
46305 \
46306 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46307 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46308 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46309 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46310 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46311 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46312 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46313 $(EXTRA_TARGET_FLAGS) \
46314 TFLAGS="$(STAGEtrain_TFLAGS)" \
46315 $(TARGET-stagetrain-target-libgcc)
46316
46317maybe-clean-stagetrain-target-libgcc: clean-stagetrain-target-libgcc
46318clean-stagetrain: clean-stagetrain-target-libgcc
46319clean-stagetrain-target-libgcc:
46320 @if [ $(current_stage) = stagetrain ]; then \
46321 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
46322 else \
46323 [ -f $(TARGET_SUBDIR)/stagetrain-libgcc/Makefile ] || exit 0; \
46324 $(MAKE) stagetrain-start; \
46325 fi; \
46326 cd $(TARGET_SUBDIR)/libgcc && \
46327 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
46328@endif target-libgcc-bootstrap
46329
46330
a90ef4bf
JM
46331.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
46332.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
46333maybe-all-stagefeedback-target-libgcc:
46334maybe-clean-stagefeedback-target-libgcc:
46335@if target-libgcc-bootstrap
46336maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
46337all-stagefeedback: all-stagefeedback-target-libgcc
46338TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
46339all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
46340 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
46341 @r=`${PWD_COMMAND}`; export r; \
46342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
46343 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46344 $(NORMAL_TARGET_EXPORTS) \
46345 \
46346 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 46347 \
a90ef4bf
JM
46348 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46349 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46350 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46351 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46352 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46353 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46354 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46355 $(EXTRA_TARGET_FLAGS) \
05a13254 46356 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
46357 $(TARGET-stagefeedback-target-libgcc)
46358
46359maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
46360clean-stagefeedback: clean-stagefeedback-target-libgcc
46361clean-stagefeedback-target-libgcc:
46362 @if [ $(current_stage) = stagefeedback ]; then \
46363 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
46364 else \
46365 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
46366 $(MAKE) stagefeedback-start; \
46367 fi; \
46368 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 46369 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 46370@endif target-libgcc-bootstrap
4b1cb4fe 46371
a7254363 46372
f948b2de
NC
46373.PHONY: all-stageautoprofile-target-libgcc maybe-all-stageautoprofile-target-libgcc
46374.PHONY: clean-stageautoprofile-target-libgcc maybe-clean-stageautoprofile-target-libgcc
46375maybe-all-stageautoprofile-target-libgcc:
46376maybe-clean-stageautoprofile-target-libgcc:
46377@if target-libgcc-bootstrap
46378maybe-all-stageautoprofile-target-libgcc: all-stageautoprofile-target-libgcc
46379all-stageautoprofile: all-stageautoprofile-target-libgcc
46380TARGET-stageautoprofile-target-libgcc = $(TARGET-target-libgcc)
46381all-stageautoprofile-target-libgcc: configure-stageautoprofile-target-libgcc
46382 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
46383 @r=`${PWD_COMMAND}`; export r; \
46384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46385 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
46386 $(NORMAL_TARGET_EXPORTS) \
46387 \
46388 cd $(TARGET_SUBDIR)/libgcc && \
46389 $$s/gcc/config/i386/$(AUTO_PROFILE) \
46390 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46391 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46392 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46393 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46394 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46395 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46396 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46397 $(EXTRA_TARGET_FLAGS) \
46398 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
46399 $(TARGET-stageautoprofile-target-libgcc)
46400
46401maybe-clean-stageautoprofile-target-libgcc: clean-stageautoprofile-target-libgcc
46402clean-stageautoprofile: clean-stageautoprofile-target-libgcc
46403clean-stageautoprofile-target-libgcc:
46404 @if [ $(current_stage) = stageautoprofile ]; then \
46405 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
46406 else \
46407 [ -f $(TARGET_SUBDIR)/stageautoprofile-libgcc/Makefile ] || exit 0; \
46408 $(MAKE) stageautoprofile-start; \
46409 fi; \
46410 cd $(TARGET_SUBDIR)/libgcc && \
46411 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
46412@endif target-libgcc-bootstrap
46413
46414
46415.PHONY: all-stageautofeedback-target-libgcc maybe-all-stageautofeedback-target-libgcc
46416.PHONY: clean-stageautofeedback-target-libgcc maybe-clean-stageautofeedback-target-libgcc
46417maybe-all-stageautofeedback-target-libgcc:
46418maybe-clean-stageautofeedback-target-libgcc:
46419@if target-libgcc-bootstrap
46420maybe-all-stageautofeedback-target-libgcc: all-stageautofeedback-target-libgcc
46421all-stageautofeedback: all-stageautofeedback-target-libgcc
46422TARGET-stageautofeedback-target-libgcc = $(TARGET-target-libgcc)
46423all-stageautofeedback-target-libgcc: configure-stageautofeedback-target-libgcc
46424 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
46425 @r=`${PWD_COMMAND}`; export r; \
46426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46427 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
46428 $(NORMAL_TARGET_EXPORTS) \
46429 \
46430 cd $(TARGET_SUBDIR)/libgcc && \
46431 \
46432 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46433 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46434 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46435 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46436 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46437 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46438 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46439 $(EXTRA_TARGET_FLAGS) \
46440 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
46441 $(TARGET-stageautofeedback-target-libgcc)
46442
46443maybe-clean-stageautofeedback-target-libgcc: clean-stageautofeedback-target-libgcc
46444clean-stageautofeedback: clean-stageautofeedback-target-libgcc
46445clean-stageautofeedback-target-libgcc:
46446 @if [ $(current_stage) = stageautofeedback ]; then \
46447 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
46448 else \
46449 [ -f $(TARGET_SUBDIR)/stageautofeedback-libgcc/Makefile ] || exit 0; \
46450 $(MAKE) stageautofeedback-start; \
46451 fi; \
46452 cd $(TARGET_SUBDIR)/libgcc && \
46453 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
46454@endif target-libgcc-bootstrap
46455
46456
a7254363 46457
d545f33b
PB
46458
46459
4b1cb4fe 46460
a90ef4bf
JM
46461.PHONY: check-target-libgcc maybe-check-target-libgcc
46462maybe-check-target-libgcc:
46463@if target-libgcc
46464maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 46465
a90ef4bf
JM
46466# Dummy target for uncheckable module.
46467check-target-libgcc:
4b1cb4fe 46468
a90ef4bf 46469@endif target-libgcc
4b1cb4fe 46470
a90ef4bf
JM
46471.PHONY: install-target-libgcc maybe-install-target-libgcc
46472maybe-install-target-libgcc:
46473@if target-libgcc
46474maybe-install-target-libgcc: install-target-libgcc
46475
46476install-target-libgcc: installdirs
0aed8855 46477 @: $(MAKE); $(unstage)
4b1cb4fe
DD
46478 @r=`${PWD_COMMAND}`; export r; \
46479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46480 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 46481 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 46482 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 46483
a90ef4bf 46484@endif target-libgcc
4b1cb4fe 46485
a90ef4bf
JM
46486.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
46487maybe-install-strip-target-libgcc:
46488@if target-libgcc
46489maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 46490
a90ef4bf 46491install-strip-target-libgcc: installdirs
9b980aa1
RW
46492 @: $(MAKE); $(unstage)
46493 @r=`${PWD_COMMAND}`; export r; \
46494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46495 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 46496 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
46497 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46498
a90ef4bf 46499@endif target-libgcc
9b980aa1 46500
56a8fe78 46501# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 46502
a90ef4bf
JM
46503.PHONY: maybe-info-target-libgcc info-target-libgcc
46504maybe-info-target-libgcc:
46505@if target-libgcc
46506maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 46507
a90ef4bf
JM
46508info-target-libgcc: \
46509 configure-target-libgcc
0aed8855 46510 @: $(MAKE); $(unstage)
22121df0 46511 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
46512 r=`${PWD_COMMAND}`; export r; \
46513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46514 $(NORMAL_TARGET_EXPORTS) \
22121df0 46515 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
46516 for flag in $(EXTRA_TARGET_FLAGS); do \
46517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46518 done; \
a90ef4bf 46519 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
46520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46522 "RANLIB=$${RANLIB}" \
0c24b341 46523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46524 info) \
4b1cb4fe
DD
46525 || exit 1
46526
a90ef4bf 46527@endif target-libgcc
4b1cb4fe 46528
a90ef4bf
JM
46529.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
46530maybe-dvi-target-libgcc:
46531@if target-libgcc
46532maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 46533
a90ef4bf
JM
46534dvi-target-libgcc: \
46535 configure-target-libgcc
0aed8855 46536 @: $(MAKE); $(unstage)
22121df0 46537 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
46538 r=`${PWD_COMMAND}`; export r; \
46539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46540 $(NORMAL_TARGET_EXPORTS) \
22121df0 46541 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
46542 for flag in $(EXTRA_TARGET_FLAGS); do \
46543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46544 done; \
a90ef4bf 46545 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
46546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46548 "RANLIB=$${RANLIB}" \
0c24b341 46549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46550 dvi) \
4b1cb4fe
DD
46551 || exit 1
46552
a90ef4bf 46553@endif target-libgcc
4b1cb4fe 46554
a90ef4bf
JM
46555.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
46556maybe-pdf-target-libgcc:
46557@if target-libgcc
46558maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 46559
a90ef4bf
JM
46560pdf-target-libgcc: \
46561 configure-target-libgcc
56a8fe78 46562 @: $(MAKE); $(unstage)
22121df0 46563 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
46564 r=`${PWD_COMMAND}`; export r; \
46565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46566 $(NORMAL_TARGET_EXPORTS) \
22121df0 46567 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
46568 for flag in $(EXTRA_TARGET_FLAGS); do \
46569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46570 done; \
a90ef4bf 46571 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
46572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46574 "RANLIB=$${RANLIB}" \
0c24b341 46575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46576 pdf) \
46577 || exit 1
46578
a90ef4bf 46579@endif target-libgcc
56a8fe78 46580
a90ef4bf
JM
46581.PHONY: maybe-html-target-libgcc html-target-libgcc
46582maybe-html-target-libgcc:
46583@if target-libgcc
46584maybe-html-target-libgcc: html-target-libgcc
6d389afc 46585
a90ef4bf
JM
46586html-target-libgcc: \
46587 configure-target-libgcc
0aed8855 46588 @: $(MAKE); $(unstage)
22121df0 46589 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
46590 r=`${PWD_COMMAND}`; export r; \
46591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46592 $(NORMAL_TARGET_EXPORTS) \
22121df0 46593 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
46594 for flag in $(EXTRA_TARGET_FLAGS); do \
46595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46596 done; \
a90ef4bf 46597 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
46598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46600 "RANLIB=$${RANLIB}" \
0c24b341 46601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46602 html) \
46603 || exit 1
46604
a90ef4bf 46605@endif target-libgcc
6d389afc 46606
a90ef4bf
JM
46607.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
46608maybe-TAGS-target-libgcc:
46609@if target-libgcc
46610maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 46611
a90ef4bf
JM
46612TAGS-target-libgcc: \
46613 configure-target-libgcc
0aed8855 46614 @: $(MAKE); $(unstage)
22121df0 46615 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
46616 r=`${PWD_COMMAND}`; export r; \
46617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46618 $(NORMAL_TARGET_EXPORTS) \
22121df0 46619 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
46620 for flag in $(EXTRA_TARGET_FLAGS); do \
46621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46622 done; \
a90ef4bf 46623 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
46624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46626 "RANLIB=$${RANLIB}" \
0c24b341 46627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46628 TAGS) \
4b1cb4fe
DD
46629 || exit 1
46630
a90ef4bf 46631@endif target-libgcc
4b1cb4fe 46632
a90ef4bf
JM
46633.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
46634maybe-install-info-target-libgcc:
46635@if target-libgcc
46636maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 46637
a90ef4bf
JM
46638install-info-target-libgcc: \
46639 configure-target-libgcc \
46640 info-target-libgcc
0aed8855 46641 @: $(MAKE); $(unstage)
22121df0 46642 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
46643 r=`${PWD_COMMAND}`; export r; \
46644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46645 $(NORMAL_TARGET_EXPORTS) \
22121df0 46646 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
46647 for flag in $(EXTRA_TARGET_FLAGS); do \
46648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46649 done; \
a90ef4bf 46650 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
46651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46653 "RANLIB=$${RANLIB}" \
0c24b341 46654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46655 install-info) \
4b1cb4fe
DD
46656 || exit 1
46657
a90ef4bf 46658@endif target-libgcc
4b1cb4fe 46659
a90ef4bf
JM
46660.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
46661maybe-install-pdf-target-libgcc:
46662@if target-libgcc
46663maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 46664
a90ef4bf
JM
46665install-pdf-target-libgcc: \
46666 configure-target-libgcc \
46667 pdf-target-libgcc
a3ca38d2 46668 @: $(MAKE); $(unstage)
22121df0 46669 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
46670 r=`${PWD_COMMAND}`; export r; \
46671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46672 $(NORMAL_TARGET_EXPORTS) \
22121df0 46673 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
46674 for flag in $(EXTRA_TARGET_FLAGS); do \
46675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46676 done; \
a90ef4bf 46677 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
46678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46680 "RANLIB=$${RANLIB}" \
0c24b341 46681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46682 install-pdf) \
46683 || exit 1
46684
a90ef4bf 46685@endif target-libgcc
a3ca38d2 46686
a90ef4bf
JM
46687.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
46688maybe-install-html-target-libgcc:
46689@if target-libgcc
46690maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 46691
a90ef4bf
JM
46692install-html-target-libgcc: \
46693 configure-target-libgcc \
46694 html-target-libgcc
108a6f8e 46695 @: $(MAKE); $(unstage)
22121df0 46696 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
46697 r=`${PWD_COMMAND}`; export r; \
46698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46699 $(NORMAL_TARGET_EXPORTS) \
22121df0 46700 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
46701 for flag in $(EXTRA_TARGET_FLAGS); do \
46702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46703 done; \
a90ef4bf 46704 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
46705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46707 "RANLIB=$${RANLIB}" \
0c24b341 46708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46709 install-html) \
46710 || exit 1
46711
a90ef4bf 46712@endif target-libgcc
108a6f8e 46713
a90ef4bf
JM
46714.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
46715maybe-installcheck-target-libgcc:
46716@if target-libgcc
46717maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 46718
a90ef4bf
JM
46719installcheck-target-libgcc: \
46720 configure-target-libgcc
0aed8855 46721 @: $(MAKE); $(unstage)
22121df0 46722 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
46723 r=`${PWD_COMMAND}`; export r; \
46724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46725 $(NORMAL_TARGET_EXPORTS) \
22121df0 46726 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
46727 for flag in $(EXTRA_TARGET_FLAGS); do \
46728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46729 done; \
a90ef4bf 46730 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
46731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46733 "RANLIB=$${RANLIB}" \
0c24b341 46734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46735 installcheck) \
4b1cb4fe
DD
46736 || exit 1
46737
a90ef4bf 46738@endif target-libgcc
4b1cb4fe 46739
a90ef4bf
JM
46740.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
46741maybe-mostlyclean-target-libgcc:
46742@if target-libgcc
46743maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 46744
a90ef4bf 46745mostlyclean-target-libgcc:
0aed8855 46746 @: $(MAKE); $(unstage)
22121df0 46747 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
46748 r=`${PWD_COMMAND}`; export r; \
46749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46750 $(NORMAL_TARGET_EXPORTS) \
22121df0 46751 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
46752 for flag in $(EXTRA_TARGET_FLAGS); do \
46753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46754 done; \
a90ef4bf 46755 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
46756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46758 "RANLIB=$${RANLIB}" \
0c24b341 46759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46760 mostlyclean) \
4b1cb4fe
DD
46761 || exit 1
46762
a90ef4bf 46763@endif target-libgcc
4b1cb4fe 46764
a90ef4bf
JM
46765.PHONY: maybe-clean-target-libgcc clean-target-libgcc
46766maybe-clean-target-libgcc:
46767@if target-libgcc
46768maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 46769
a90ef4bf 46770clean-target-libgcc:
0aed8855 46771 @: $(MAKE); $(unstage)
22121df0 46772 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
46773 r=`${PWD_COMMAND}`; export r; \
46774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46775 $(NORMAL_TARGET_EXPORTS) \
22121df0 46776 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
46777 for flag in $(EXTRA_TARGET_FLAGS); do \
46778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46779 done; \
a90ef4bf 46780 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
46781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46783 "RANLIB=$${RANLIB}" \
0c24b341 46784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46785 clean) \
4b1cb4fe
DD
46786 || exit 1
46787
a90ef4bf 46788@endif target-libgcc
4b1cb4fe 46789
a90ef4bf
JM
46790.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
46791maybe-distclean-target-libgcc:
46792@if target-libgcc
46793maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 46794
a90ef4bf 46795distclean-target-libgcc:
0aed8855 46796 @: $(MAKE); $(unstage)
22121df0 46797 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
46798 r=`${PWD_COMMAND}`; export r; \
46799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46800 $(NORMAL_TARGET_EXPORTS) \
22121df0 46801 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
46802 for flag in $(EXTRA_TARGET_FLAGS); do \
46803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46804 done; \
a90ef4bf 46805 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
46806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46808 "RANLIB=$${RANLIB}" \
0c24b341 46809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46810 distclean) \
4b1cb4fe
DD
46811 || exit 1
46812
a90ef4bf 46813@endif target-libgcc
4b1cb4fe 46814
a90ef4bf
JM
46815.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
46816maybe-maintainer-clean-target-libgcc:
46817@if target-libgcc
46818maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 46819
a90ef4bf 46820maintainer-clean-target-libgcc:
0aed8855 46821 @: $(MAKE); $(unstage)
22121df0 46822 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
46823 r=`${PWD_COMMAND}`; export r; \
46824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46825 $(NORMAL_TARGET_EXPORTS) \
22121df0 46826 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
46827 for flag in $(EXTRA_TARGET_FLAGS); do \
46828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46829 done; \
a90ef4bf 46830 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
46831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46833 "RANLIB=$${RANLIB}" \
0c24b341 46834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46835 maintainer-clean) \
4b1cb4fe
DD
46836 || exit 1
46837
a90ef4bf 46838@endif target-libgcc
4b1cb4fe
DD
46839
46840
3866be5d 46841
a7254363 46842
e90269c8 46843
2bf680c4
ILT
46844.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
46845maybe-configure-target-libbacktrace:
46846@if gcc-bootstrap
46847configure-target-libbacktrace: stage_current
46848@endif gcc-bootstrap
46849@if target-libbacktrace
46850maybe-configure-target-libbacktrace: configure-target-libbacktrace
46851configure-target-libbacktrace:
46852 @: $(MAKE); $(unstage)
46853 @r=`${PWD_COMMAND}`; export r; \
46854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46855 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
46856 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
46857 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
46858 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
46859 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
46860 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
46861 else \
46862 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
46863 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
46864 fi; \
46865 else \
46866 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
46867 fi; \
46868 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 46869 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
46870 $(NORMAL_TARGET_EXPORTS) \
46871 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
46872 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
46873 case $(srcdir) in \
46874 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46875 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
46876 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46877 esac; \
1b6c0831 46878 module_srcdir=libbacktrace; \
2bf680c4 46879 rm -f no-such-file || : ; \
1b6c0831
L
46880 CONFIG_SITE=no-such-file $(SHELL) \
46881 $$s/$$module_srcdir/configure \
46882 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 46883 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46884 --target=${target_alias} \
2bf680c4
ILT
46885 || exit 1
46886@endif target-libbacktrace
46887
46888
46889
46890
46891
46892.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
46893maybe-all-target-libbacktrace:
46894@if gcc-bootstrap
46895all-target-libbacktrace: stage_current
46896@endif gcc-bootstrap
46897@if target-libbacktrace
46898TARGET-target-libbacktrace=all
46899maybe-all-target-libbacktrace: all-target-libbacktrace
46900all-target-libbacktrace: configure-target-libbacktrace
46901 @: $(MAKE); $(unstage)
46902 @r=`${PWD_COMMAND}`; export r; \
46903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46904 $(NORMAL_TARGET_EXPORTS) \
46905 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 46906 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
46907 $(TARGET-target-libbacktrace))
46908@endif target-libbacktrace
46909
46910
46911
46912
46913
46914.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
46915maybe-check-target-libbacktrace:
46916@if target-libbacktrace
46917maybe-check-target-libbacktrace: check-target-libbacktrace
46918
46919check-target-libbacktrace:
46920 @: $(MAKE); $(unstage)
46921 @r=`${PWD_COMMAND}`; export r; \
46922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46923 $(NORMAL_TARGET_EXPORTS) \
46924 (cd $(TARGET_SUBDIR)/libbacktrace && \
46925 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46926
46927@endif target-libbacktrace
46928
46929.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
46930maybe-install-target-libbacktrace:
46931@if target-libbacktrace
46932maybe-install-target-libbacktrace: install-target-libbacktrace
46933
46934install-target-libbacktrace: installdirs
46935 @: $(MAKE); $(unstage)
46936 @r=`${PWD_COMMAND}`; export r; \
46937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46938 $(NORMAL_TARGET_EXPORTS) \
46939 (cd $(TARGET_SUBDIR)/libbacktrace && \
46940 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46941
46942@endif target-libbacktrace
46943
46944.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
46945maybe-install-strip-target-libbacktrace:
46946@if target-libbacktrace
46947maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
46948
46949install-strip-target-libbacktrace: installdirs
46950 @: $(MAKE); $(unstage)
46951 @r=`${PWD_COMMAND}`; export r; \
46952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46953 $(NORMAL_TARGET_EXPORTS) \
46954 (cd $(TARGET_SUBDIR)/libbacktrace && \
46955 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46956
46957@endif target-libbacktrace
46958
46959# Other targets (info, dvi, pdf, etc.)
46960
46961.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
46962maybe-info-target-libbacktrace:
46963@if target-libbacktrace
46964maybe-info-target-libbacktrace: info-target-libbacktrace
46965
46966info-target-libbacktrace: \
46967 configure-target-libbacktrace
46968 @: $(MAKE); $(unstage)
22121df0 46969 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
46970 r=`${PWD_COMMAND}`; export r; \
46971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46972 $(NORMAL_TARGET_EXPORTS) \
22121df0 46973 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
46974 for flag in $(EXTRA_TARGET_FLAGS); do \
46975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46976 done; \
46977 (cd $(TARGET_SUBDIR)/libbacktrace && \
46978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46980 "RANLIB=$${RANLIB}" \
46981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
46982 info) \
46983 || exit 1
46984
46985@endif target-libbacktrace
46986
46987.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
46988maybe-dvi-target-libbacktrace:
46989@if target-libbacktrace
46990maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
46991
46992dvi-target-libbacktrace: \
46993 configure-target-libbacktrace
46994 @: $(MAKE); $(unstage)
22121df0 46995 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
46996 r=`${PWD_COMMAND}`; export r; \
46997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46998 $(NORMAL_TARGET_EXPORTS) \
22121df0 46999 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47000 for flag in $(EXTRA_TARGET_FLAGS); do \
47001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47002 done; \
47003 (cd $(TARGET_SUBDIR)/libbacktrace && \
47004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47006 "RANLIB=$${RANLIB}" \
47007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47008 dvi) \
47009 || exit 1
47010
47011@endif target-libbacktrace
47012
47013.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
47014maybe-pdf-target-libbacktrace:
47015@if target-libbacktrace
47016maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
47017
47018pdf-target-libbacktrace: \
47019 configure-target-libbacktrace
47020 @: $(MAKE); $(unstage)
22121df0 47021 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47022 r=`${PWD_COMMAND}`; export r; \
47023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47024 $(NORMAL_TARGET_EXPORTS) \
22121df0 47025 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47026 for flag in $(EXTRA_TARGET_FLAGS); do \
47027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47028 done; \
47029 (cd $(TARGET_SUBDIR)/libbacktrace && \
47030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47032 "RANLIB=$${RANLIB}" \
47033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47034 pdf) \
47035 || exit 1
47036
47037@endif target-libbacktrace
47038
47039.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
47040maybe-html-target-libbacktrace:
47041@if target-libbacktrace
47042maybe-html-target-libbacktrace: html-target-libbacktrace
47043
47044html-target-libbacktrace: \
47045 configure-target-libbacktrace
47046 @: $(MAKE); $(unstage)
22121df0 47047 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47048 r=`${PWD_COMMAND}`; export r; \
47049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47050 $(NORMAL_TARGET_EXPORTS) \
22121df0 47051 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47052 for flag in $(EXTRA_TARGET_FLAGS); do \
47053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47054 done; \
47055 (cd $(TARGET_SUBDIR)/libbacktrace && \
47056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47058 "RANLIB=$${RANLIB}" \
47059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47060 html) \
47061 || exit 1
47062
47063@endif target-libbacktrace
47064
47065.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
47066maybe-TAGS-target-libbacktrace:
47067@if target-libbacktrace
47068maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
47069
47070TAGS-target-libbacktrace: \
47071 configure-target-libbacktrace
47072 @: $(MAKE); $(unstage)
22121df0 47073 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47074 r=`${PWD_COMMAND}`; export r; \
47075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47076 $(NORMAL_TARGET_EXPORTS) \
22121df0 47077 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47078 for flag in $(EXTRA_TARGET_FLAGS); do \
47079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47080 done; \
47081 (cd $(TARGET_SUBDIR)/libbacktrace && \
47082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47084 "RANLIB=$${RANLIB}" \
47085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47086 TAGS) \
47087 || exit 1
47088
47089@endif target-libbacktrace
47090
47091.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
47092maybe-install-info-target-libbacktrace:
47093@if target-libbacktrace
47094maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
47095
47096install-info-target-libbacktrace: \
47097 configure-target-libbacktrace \
47098 info-target-libbacktrace
47099 @: $(MAKE); $(unstage)
22121df0 47100 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47101 r=`${PWD_COMMAND}`; export r; \
47102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47103 $(NORMAL_TARGET_EXPORTS) \
22121df0 47104 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47105 for flag in $(EXTRA_TARGET_FLAGS); do \
47106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47107 done; \
47108 (cd $(TARGET_SUBDIR)/libbacktrace && \
47109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47111 "RANLIB=$${RANLIB}" \
47112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47113 install-info) \
47114 || exit 1
47115
47116@endif target-libbacktrace
47117
47118.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
47119maybe-install-pdf-target-libbacktrace:
47120@if target-libbacktrace
47121maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
47122
47123install-pdf-target-libbacktrace: \
47124 configure-target-libbacktrace \
47125 pdf-target-libbacktrace
47126 @: $(MAKE); $(unstage)
22121df0 47127 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47128 r=`${PWD_COMMAND}`; export r; \
47129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47130 $(NORMAL_TARGET_EXPORTS) \
22121df0 47131 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47132 for flag in $(EXTRA_TARGET_FLAGS); do \
47133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47134 done; \
47135 (cd $(TARGET_SUBDIR)/libbacktrace && \
47136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47138 "RANLIB=$${RANLIB}" \
47139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47140 install-pdf) \
47141 || exit 1
47142
47143@endif target-libbacktrace
47144
47145.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
47146maybe-install-html-target-libbacktrace:
47147@if target-libbacktrace
47148maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
47149
47150install-html-target-libbacktrace: \
47151 configure-target-libbacktrace \
47152 html-target-libbacktrace
47153 @: $(MAKE); $(unstage)
22121df0 47154 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47155 r=`${PWD_COMMAND}`; export r; \
47156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47157 $(NORMAL_TARGET_EXPORTS) \
22121df0 47158 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47159 for flag in $(EXTRA_TARGET_FLAGS); do \
47160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47161 done; \
47162 (cd $(TARGET_SUBDIR)/libbacktrace && \
47163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47165 "RANLIB=$${RANLIB}" \
47166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47167 install-html) \
47168 || exit 1
47169
47170@endif target-libbacktrace
47171
47172.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
47173maybe-installcheck-target-libbacktrace:
47174@if target-libbacktrace
47175maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
47176
47177installcheck-target-libbacktrace: \
47178 configure-target-libbacktrace
47179 @: $(MAKE); $(unstage)
22121df0 47180 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47181 r=`${PWD_COMMAND}`; export r; \
47182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47183 $(NORMAL_TARGET_EXPORTS) \
22121df0 47184 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47185 for flag in $(EXTRA_TARGET_FLAGS); do \
47186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47187 done; \
47188 (cd $(TARGET_SUBDIR)/libbacktrace && \
47189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47191 "RANLIB=$${RANLIB}" \
47192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47193 installcheck) \
47194 || exit 1
47195
47196@endif target-libbacktrace
47197
47198.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
47199maybe-mostlyclean-target-libbacktrace:
47200@if target-libbacktrace
47201maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
47202
47203mostlyclean-target-libbacktrace:
47204 @: $(MAKE); $(unstage)
22121df0 47205 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47206 r=`${PWD_COMMAND}`; export r; \
47207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47208 $(NORMAL_TARGET_EXPORTS) \
22121df0 47209 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47210 for flag in $(EXTRA_TARGET_FLAGS); do \
47211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47212 done; \
47213 (cd $(TARGET_SUBDIR)/libbacktrace && \
47214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47216 "RANLIB=$${RANLIB}" \
47217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47218 mostlyclean) \
47219 || exit 1
47220
47221@endif target-libbacktrace
47222
47223.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
47224maybe-clean-target-libbacktrace:
47225@if target-libbacktrace
47226maybe-clean-target-libbacktrace: clean-target-libbacktrace
47227
47228clean-target-libbacktrace:
47229 @: $(MAKE); $(unstage)
22121df0 47230 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47231 r=`${PWD_COMMAND}`; export r; \
47232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47233 $(NORMAL_TARGET_EXPORTS) \
22121df0 47234 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47235 for flag in $(EXTRA_TARGET_FLAGS); do \
47236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47237 done; \
47238 (cd $(TARGET_SUBDIR)/libbacktrace && \
47239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47241 "RANLIB=$${RANLIB}" \
47242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47243 clean) \
47244 || exit 1
47245
47246@endif target-libbacktrace
47247
47248.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
47249maybe-distclean-target-libbacktrace:
47250@if target-libbacktrace
47251maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
47252
47253distclean-target-libbacktrace:
47254 @: $(MAKE); $(unstage)
22121df0 47255 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47256 r=`${PWD_COMMAND}`; export r; \
47257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47258 $(NORMAL_TARGET_EXPORTS) \
22121df0 47259 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47260 for flag in $(EXTRA_TARGET_FLAGS); do \
47261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47262 done; \
47263 (cd $(TARGET_SUBDIR)/libbacktrace && \
47264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47266 "RANLIB=$${RANLIB}" \
47267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47268 distclean) \
47269 || exit 1
47270
47271@endif target-libbacktrace
47272
47273.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
47274maybe-maintainer-clean-target-libbacktrace:
47275@if target-libbacktrace
47276maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
47277
47278maintainer-clean-target-libbacktrace:
47279 @: $(MAKE); $(unstage)
22121df0 47280 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
47281 r=`${PWD_COMMAND}`; export r; \
47282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47283 $(NORMAL_TARGET_EXPORTS) \
22121df0 47284 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
47285 for flag in $(EXTRA_TARGET_FLAGS); do \
47286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47287 done; \
47288 (cd $(TARGET_SUBDIR)/libbacktrace && \
47289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47291 "RANLIB=$${RANLIB}" \
47292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47293 maintainer-clean) \
47294 || exit 1
47295
47296@endif target-libbacktrace
47297
47298
47299
47300
47301
a90ef4bf
JM
47302.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
47303maybe-configure-target-libquadmath:
4f0ef2d8 47304@if gcc-bootstrap
a90ef4bf 47305configure-target-libquadmath: stage_current
4f0ef2d8 47306@endif gcc-bootstrap
a90ef4bf
JM
47307@if target-libquadmath
47308maybe-configure-target-libquadmath: configure-target-libquadmath
47309configure-target-libquadmath:
0aed8855
PB
47310 @: $(MAKE); $(unstage)
47311 @r=`${PWD_COMMAND}`; export r; \
47312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 47313 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
47314 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
47315 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
47316 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
47317 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
47318 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 47319 else \
a90ef4bf
JM
47320 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
47321 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
47322 fi; \
47323 else \
a90ef4bf 47324 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 47325 fi; \
a90ef4bf 47326 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 47327 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 47328 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
47329 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
47330 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 47331 case $(srcdir) in \
b00612cc 47332 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 47333 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 47334 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 47335 esac; \
1b6c0831 47336 module_srcdir=libquadmath; \
4fa63067 47337 rm -f no-such-file || : ; \
1b6c0831
L
47338 CONFIG_SITE=no-such-file $(SHELL) \
47339 $$s/$$module_srcdir/configure \
47340 --srcdir=$${topdir}/$$module_srcdir \
4b900473 47341 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47342 --target=${target_alias} \
e2b9e2dc 47343 || exit 1
a90ef4bf 47344@endif target-libquadmath
e2b9e2dc 47345
a7254363
PB
47346
47347
d545f33b
PB
47348
47349
a90ef4bf
JM
47350.PHONY: all-target-libquadmath maybe-all-target-libquadmath
47351maybe-all-target-libquadmath:
4f0ef2d8 47352@if gcc-bootstrap
a90ef4bf 47353all-target-libquadmath: stage_current
4f0ef2d8 47354@endif gcc-bootstrap
a90ef4bf
JM
47355@if target-libquadmath
47356TARGET-target-libquadmath=all
47357maybe-all-target-libquadmath: all-target-libquadmath
47358all-target-libquadmath: configure-target-libquadmath
0aed8855 47359 @: $(MAKE); $(unstage)
b40e3958
L
47360 @r=`${PWD_COMMAND}`; export r; \
47361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 47362 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 47363 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 47364 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
47365 $(TARGET-target-libquadmath))
47366@endif target-libquadmath
3866be5d 47367
a7254363
PB
47368
47369
d545f33b
PB
47370
47371
a90ef4bf
JM
47372.PHONY: check-target-libquadmath maybe-check-target-libquadmath
47373maybe-check-target-libquadmath:
47374@if target-libquadmath
47375maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 47376
a90ef4bf 47377check-target-libquadmath:
0aed8855 47378 @: $(MAKE); $(unstage)
b40e3958
L
47379 @r=`${PWD_COMMAND}`; export r; \
47380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47381 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 47382 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 47383 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 47384
a90ef4bf 47385@endif target-libquadmath
3866be5d 47386
a90ef4bf
JM
47387.PHONY: install-target-libquadmath maybe-install-target-libquadmath
47388maybe-install-target-libquadmath:
47389@if target-libquadmath
47390maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 47391
a90ef4bf 47392install-target-libquadmath: installdirs
0aed8855 47393 @: $(MAKE); $(unstage)
b40e3958
L
47394 @r=`${PWD_COMMAND}`; export r; \
47395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47396 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 47397 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 47398 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 47399
a90ef4bf 47400@endif target-libquadmath
3866be5d 47401
a90ef4bf
JM
47402.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
47403maybe-install-strip-target-libquadmath:
47404@if target-libquadmath
47405maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 47406
a90ef4bf 47407install-strip-target-libquadmath: installdirs
9b980aa1
RW
47408 @: $(MAKE); $(unstage)
47409 @r=`${PWD_COMMAND}`; export r; \
47410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47411 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 47412 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
47413 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47414
a90ef4bf 47415@endif target-libquadmath
9b980aa1 47416
56a8fe78 47417# Other targets (info, dvi, pdf, etc.)
4fa63067 47418
a90ef4bf
JM
47419.PHONY: maybe-info-target-libquadmath info-target-libquadmath
47420maybe-info-target-libquadmath:
47421@if target-libquadmath
47422maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 47423
a90ef4bf
JM
47424info-target-libquadmath: \
47425 configure-target-libquadmath
0aed8855 47426 @: $(MAKE); $(unstage)
22121df0 47427 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 47428 r=`${PWD_COMMAND}`; export r; \
b40e3958 47429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47430 $(NORMAL_TARGET_EXPORTS) \
22121df0 47431 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
47432 for flag in $(EXTRA_TARGET_FLAGS); do \
47433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47434 done; \
a90ef4bf 47435 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
47436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47438 "RANLIB=$${RANLIB}" \
0c24b341 47439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47440 info) \
4fa63067 47441 || exit 1
3866be5d 47442
a90ef4bf 47443@endif target-libquadmath
3866be5d 47444
a90ef4bf
JM
47445.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
47446maybe-dvi-target-libquadmath:
47447@if target-libquadmath
47448maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 47449
a90ef4bf
JM
47450dvi-target-libquadmath: \
47451 configure-target-libquadmath
0aed8855 47452 @: $(MAKE); $(unstage)
22121df0 47453 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 47454 r=`${PWD_COMMAND}`; export r; \
b40e3958 47455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47456 $(NORMAL_TARGET_EXPORTS) \
22121df0 47457 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
47458 for flag in $(EXTRA_TARGET_FLAGS); do \
47459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47460 done; \
a90ef4bf 47461 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
47462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47464 "RANLIB=$${RANLIB}" \
0c24b341 47465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47466 dvi) \
4fa63067 47467 || exit 1
3866be5d 47468
a90ef4bf 47469@endif target-libquadmath
3866be5d 47470
a90ef4bf
JM
47471.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
47472maybe-pdf-target-libquadmath:
47473@if target-libquadmath
47474maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 47475
a90ef4bf
JM
47476pdf-target-libquadmath: \
47477 configure-target-libquadmath
56a8fe78 47478 @: $(MAKE); $(unstage)
22121df0 47479 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
47480 r=`${PWD_COMMAND}`; export r; \
47481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47482 $(NORMAL_TARGET_EXPORTS) \
22121df0 47483 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
47484 for flag in $(EXTRA_TARGET_FLAGS); do \
47485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47486 done; \
a90ef4bf 47487 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
47488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47490 "RANLIB=$${RANLIB}" \
0c24b341 47491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
47492 pdf) \
47493 || exit 1
47494
a90ef4bf 47495@endif target-libquadmath
56a8fe78 47496
a90ef4bf
JM
47497.PHONY: maybe-html-target-libquadmath html-target-libquadmath
47498maybe-html-target-libquadmath:
47499@if target-libquadmath
47500maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 47501
a90ef4bf
JM
47502html-target-libquadmath: \
47503 configure-target-libquadmath
0aed8855 47504 @: $(MAKE); $(unstage)
22121df0 47505 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
47506 r=`${PWD_COMMAND}`; export r; \
47507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 47508 $(NORMAL_TARGET_EXPORTS) \
22121df0 47509 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
47510 for flag in $(EXTRA_TARGET_FLAGS); do \
47511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47512 done; \
a90ef4bf 47513 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
47514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47516 "RANLIB=$${RANLIB}" \
0c24b341 47517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
47518 html) \
47519 || exit 1
47520
a90ef4bf 47521@endif target-libquadmath
6d389afc 47522
a90ef4bf
JM
47523.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
47524maybe-TAGS-target-libquadmath:
47525@if target-libquadmath
47526maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 47527
a90ef4bf
JM
47528TAGS-target-libquadmath: \
47529 configure-target-libquadmath
0aed8855 47530 @: $(MAKE); $(unstage)
22121df0 47531 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
47532 r=`${PWD_COMMAND}`; export r; \
47533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47534 $(NORMAL_TARGET_EXPORTS) \
22121df0 47535 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
47536 for flag in $(EXTRA_TARGET_FLAGS); do \
47537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47538 done; \
a90ef4bf 47539 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
47540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47542 "RANLIB=$${RANLIB}" \
0c24b341 47543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47544 TAGS) \
e2b9e2dc
NN
47545 || exit 1
47546
a90ef4bf 47547@endif target-libquadmath
4fa63067 47548
a90ef4bf
JM
47549.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
47550maybe-install-info-target-libquadmath:
47551@if target-libquadmath
47552maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 47553
a90ef4bf
JM
47554install-info-target-libquadmath: \
47555 configure-target-libquadmath \
47556 info-target-libquadmath
0aed8855 47557 @: $(MAKE); $(unstage)
22121df0 47558 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 47559 r=`${PWD_COMMAND}`; export r; \
b40e3958 47560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47561 $(NORMAL_TARGET_EXPORTS) \
22121df0 47562 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
47563 for flag in $(EXTRA_TARGET_FLAGS); do \
47564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47565 done; \
a90ef4bf 47566 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
47567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47569 "RANLIB=$${RANLIB}" \
0c24b341 47570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47571 install-info) \
4fa63067 47572 || exit 1
3866be5d 47573
a90ef4bf 47574@endif target-libquadmath
3866be5d 47575
a90ef4bf
JM
47576.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
47577maybe-install-pdf-target-libquadmath:
47578@if target-libquadmath
47579maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 47580
a90ef4bf
JM
47581install-pdf-target-libquadmath: \
47582 configure-target-libquadmath \
47583 pdf-target-libquadmath
a3ca38d2 47584 @: $(MAKE); $(unstage)
22121df0 47585 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
47586 r=`${PWD_COMMAND}`; export r; \
47587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47588 $(NORMAL_TARGET_EXPORTS) \
22121df0 47589 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
47590 for flag in $(EXTRA_TARGET_FLAGS); do \
47591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47592 done; \
a90ef4bf 47593 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
47594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47596 "RANLIB=$${RANLIB}" \
0c24b341 47597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
47598 install-pdf) \
47599 || exit 1
47600
a90ef4bf 47601@endif target-libquadmath
a3ca38d2 47602
a90ef4bf
JM
47603.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
47604maybe-install-html-target-libquadmath:
47605@if target-libquadmath
47606maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 47607
a90ef4bf
JM
47608install-html-target-libquadmath: \
47609 configure-target-libquadmath \
47610 html-target-libquadmath
108a6f8e 47611 @: $(MAKE); $(unstage)
22121df0 47612 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
47613 r=`${PWD_COMMAND}`; export r; \
47614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47615 $(NORMAL_TARGET_EXPORTS) \
22121df0 47616 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
47617 for flag in $(EXTRA_TARGET_FLAGS); do \
47618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47619 done; \
a90ef4bf 47620 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
47621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47623 "RANLIB=$${RANLIB}" \
0c24b341 47624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
47625 install-html) \
47626 || exit 1
47627
a90ef4bf 47628@endif target-libquadmath
108a6f8e 47629
a90ef4bf
JM
47630.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
47631maybe-installcheck-target-libquadmath:
47632@if target-libquadmath
47633maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 47634
a90ef4bf
JM
47635installcheck-target-libquadmath: \
47636 configure-target-libquadmath
0aed8855 47637 @: $(MAKE); $(unstage)
22121df0 47638 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 47639 r=`${PWD_COMMAND}`; export r; \
b40e3958 47640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47641 $(NORMAL_TARGET_EXPORTS) \
22121df0 47642 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
47643 for flag in $(EXTRA_TARGET_FLAGS); do \
47644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47645 done; \
a90ef4bf 47646 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
47647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47649 "RANLIB=$${RANLIB}" \
0c24b341 47650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47651 installcheck) \
4fa63067 47652 || exit 1
3866be5d 47653
a90ef4bf 47654@endif target-libquadmath
3866be5d 47655
a90ef4bf
JM
47656.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
47657maybe-mostlyclean-target-libquadmath:
47658@if target-libquadmath
47659maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 47660
a90ef4bf 47661mostlyclean-target-libquadmath:
0aed8855 47662 @: $(MAKE); $(unstage)
22121df0 47663 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 47664 r=`${PWD_COMMAND}`; export r; \
b40e3958 47665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47666 $(NORMAL_TARGET_EXPORTS) \
22121df0 47667 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
47668 for flag in $(EXTRA_TARGET_FLAGS); do \
47669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47670 done; \
a90ef4bf 47671 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
47672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47674 "RANLIB=$${RANLIB}" \
0c24b341 47675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47676 mostlyclean) \
4fa63067 47677 || exit 1
3866be5d 47678
a90ef4bf 47679@endif target-libquadmath
3866be5d 47680
a90ef4bf
JM
47681.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
47682maybe-clean-target-libquadmath:
47683@if target-libquadmath
47684maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 47685
a90ef4bf 47686clean-target-libquadmath:
0aed8855 47687 @: $(MAKE); $(unstage)
22121df0 47688 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
47689 r=`${PWD_COMMAND}`; export r; \
47690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47691 $(NORMAL_TARGET_EXPORTS) \
22121df0 47692 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
47693 for flag in $(EXTRA_TARGET_FLAGS); do \
47694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47695 done; \
a90ef4bf 47696 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
47697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47699 "RANLIB=$${RANLIB}" \
0c24b341 47700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47701 clean) \
e2b9e2dc
NN
47702 || exit 1
47703
a90ef4bf 47704@endif target-libquadmath
3866be5d 47705
a90ef4bf
JM
47706.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
47707maybe-distclean-target-libquadmath:
47708@if target-libquadmath
47709maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 47710
a90ef4bf 47711distclean-target-libquadmath:
0aed8855 47712 @: $(MAKE); $(unstage)
22121df0 47713 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 47714 r=`${PWD_COMMAND}`; export r; \
b40e3958 47715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47716 $(NORMAL_TARGET_EXPORTS) \
22121df0 47717 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
47718 for flag in $(EXTRA_TARGET_FLAGS); do \
47719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47720 done; \
a90ef4bf 47721 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
47722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47724 "RANLIB=$${RANLIB}" \
0c24b341 47725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47726 distclean) \
4fa63067 47727 || exit 1
3866be5d 47728
a90ef4bf 47729@endif target-libquadmath
3866be5d 47730
a90ef4bf
JM
47731.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
47732maybe-maintainer-clean-target-libquadmath:
47733@if target-libquadmath
47734maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 47735
a90ef4bf 47736maintainer-clean-target-libquadmath:
0aed8855 47737 @: $(MAKE); $(unstage)
22121df0 47738 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 47739 r=`${PWD_COMMAND}`; export r; \
b40e3958 47740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47741 $(NORMAL_TARGET_EXPORTS) \
22121df0 47742 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
47743 for flag in $(EXTRA_TARGET_FLAGS); do \
47744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47745 done; \
a90ef4bf 47746 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
47747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47749 "RANLIB=$${RANLIB}" \
0c24b341 47750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47751 maintainer-clean) \
4fa63067 47752 || exit 1
3866be5d 47753
a90ef4bf 47754@endif target-libquadmath
3866be5d 47755
4fa63067 47756
4fa63067 47757
a7254363 47758
e90269c8 47759
a90ef4bf
JM
47760.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
47761maybe-configure-target-libgfortran:
e552509b 47762@if gcc-bootstrap
a90ef4bf 47763configure-target-libgfortran: stage_current
e552509b 47764@endif gcc-bootstrap
a90ef4bf
JM
47765@if target-libgfortran
47766maybe-configure-target-libgfortran: configure-target-libgfortran
47767configure-target-libgfortran:
e552509b
ILT
47768 @: $(MAKE); $(unstage)
47769 @r=`${PWD_COMMAND}`; export r; \
47770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 47771 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
47772 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
47773 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
47774 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
47775 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
47776 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 47777 else \
a90ef4bf
JM
47778 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
47779 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
47780 fi; \
47781 else \
a90ef4bf 47782 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 47783 fi; \
a90ef4bf 47784 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 47785 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 47786 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
47787 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
47788 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
47789 case $(srcdir) in \
47790 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 47791 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
47792 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47793 esac; \
1b6c0831 47794 module_srcdir=libgfortran; \
e552509b 47795 rm -f no-such-file || : ; \
1b6c0831
L
47796 CONFIG_SITE=no-such-file $(SHELL) \
47797 $$s/$$module_srcdir/configure \
47798 --srcdir=$${topdir}/$$module_srcdir \
e552509b 47799 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47800 --target=${target_alias} \
e552509b 47801 || exit 1
a90ef4bf 47802@endif target-libgfortran
e552509b
ILT
47803
47804
47805
47806
47807
a90ef4bf
JM
47808.PHONY: all-target-libgfortran maybe-all-target-libgfortran
47809maybe-all-target-libgfortran:
e552509b 47810@if gcc-bootstrap
a90ef4bf 47811all-target-libgfortran: stage_current
e552509b 47812@endif gcc-bootstrap
a90ef4bf
JM
47813@if target-libgfortran
47814TARGET-target-libgfortran=all
47815maybe-all-target-libgfortran: all-target-libgfortran
47816all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
47817 @: $(MAKE); $(unstage)
47818 @r=`${PWD_COMMAND}`; export r; \
47819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47820 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 47821 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 47822 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
47823 $(TARGET-target-libgfortran))
47824@endif target-libgfortran
e552509b
ILT
47825
47826
47827
47828
47829
a90ef4bf
JM
47830.PHONY: check-target-libgfortran maybe-check-target-libgfortran
47831maybe-check-target-libgfortran:
47832@if target-libgfortran
47833maybe-check-target-libgfortran: check-target-libgfortran
e552509b 47834
a90ef4bf 47835check-target-libgfortran:
e552509b
ILT
47836 @: $(MAKE); $(unstage)
47837 @r=`${PWD_COMMAND}`; export r; \
47838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47839 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 47840 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
47841 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47842
a90ef4bf 47843@endif target-libgfortran
e552509b 47844
a90ef4bf
JM
47845.PHONY: install-target-libgfortran maybe-install-target-libgfortran
47846maybe-install-target-libgfortran:
47847@if target-libgfortran
47848maybe-install-target-libgfortran: install-target-libgfortran
e552509b 47849
a90ef4bf 47850install-target-libgfortran: installdirs
e552509b
ILT
47851 @: $(MAKE); $(unstage)
47852 @r=`${PWD_COMMAND}`; export r; \
47853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47854 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 47855 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
47856 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47857
a90ef4bf 47858@endif target-libgfortran
e552509b 47859
a90ef4bf
JM
47860.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
47861maybe-install-strip-target-libgfortran:
47862@if target-libgfortran
47863maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 47864
a90ef4bf 47865install-strip-target-libgfortran: installdirs
9b980aa1
RW
47866 @: $(MAKE); $(unstage)
47867 @r=`${PWD_COMMAND}`; export r; \
47868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47869 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 47870 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
47871 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47872
a90ef4bf 47873@endif target-libgfortran
9b980aa1 47874
e552509b
ILT
47875# Other targets (info, dvi, pdf, etc.)
47876
a90ef4bf
JM
47877.PHONY: maybe-info-target-libgfortran info-target-libgfortran
47878maybe-info-target-libgfortran:
47879@if target-libgfortran
47880maybe-info-target-libgfortran: info-target-libgfortran
e552509b 47881
a90ef4bf
JM
47882info-target-libgfortran: \
47883 configure-target-libgfortran
e552509b 47884 @: $(MAKE); $(unstage)
22121df0 47885 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
47886 r=`${PWD_COMMAND}`; export r; \
47887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47888 $(NORMAL_TARGET_EXPORTS) \
22121df0 47889 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
47890 for flag in $(EXTRA_TARGET_FLAGS); do \
47891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47892 done; \
a90ef4bf 47893 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
47894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47896 "RANLIB=$${RANLIB}" \
47897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47898 info) \
47899 || exit 1
47900
a90ef4bf 47901@endif target-libgfortran
e552509b 47902
a90ef4bf
JM
47903.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
47904maybe-dvi-target-libgfortran:
47905@if target-libgfortran
47906maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 47907
a90ef4bf
JM
47908dvi-target-libgfortran: \
47909 configure-target-libgfortran
e552509b 47910 @: $(MAKE); $(unstage)
22121df0 47911 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
47912 r=`${PWD_COMMAND}`; export r; \
47913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47914 $(NORMAL_TARGET_EXPORTS) \
22121df0 47915 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
47916 for flag in $(EXTRA_TARGET_FLAGS); do \
47917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47918 done; \
a90ef4bf 47919 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
47920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47922 "RANLIB=$${RANLIB}" \
47923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47924 dvi) \
47925 || exit 1
47926
a90ef4bf 47927@endif target-libgfortran
e552509b 47928
a90ef4bf
JM
47929.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
47930maybe-pdf-target-libgfortran:
47931@if target-libgfortran
47932maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 47933
a90ef4bf
JM
47934pdf-target-libgfortran: \
47935 configure-target-libgfortran
e552509b 47936 @: $(MAKE); $(unstage)
22121df0 47937 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
47938 r=`${PWD_COMMAND}`; export r; \
47939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47940 $(NORMAL_TARGET_EXPORTS) \
22121df0 47941 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
47942 for flag in $(EXTRA_TARGET_FLAGS); do \
47943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47944 done; \
a90ef4bf 47945 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
47946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47948 "RANLIB=$${RANLIB}" \
47949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47950 pdf) \
47951 || exit 1
47952
a90ef4bf 47953@endif target-libgfortran
e552509b 47954
a90ef4bf
JM
47955.PHONY: maybe-html-target-libgfortran html-target-libgfortran
47956maybe-html-target-libgfortran:
47957@if target-libgfortran
47958maybe-html-target-libgfortran: html-target-libgfortran
e552509b 47959
a90ef4bf
JM
47960html-target-libgfortran: \
47961 configure-target-libgfortran
e552509b 47962 @: $(MAKE); $(unstage)
22121df0 47963 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
47964 r=`${PWD_COMMAND}`; export r; \
47965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47966 $(NORMAL_TARGET_EXPORTS) \
22121df0 47967 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
47968 for flag in $(EXTRA_TARGET_FLAGS); do \
47969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47970 done; \
a90ef4bf 47971 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
47972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47974 "RANLIB=$${RANLIB}" \
47975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47976 html) \
47977 || exit 1
47978
a90ef4bf 47979@endif target-libgfortran
e552509b 47980
a90ef4bf
JM
47981.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
47982maybe-TAGS-target-libgfortran:
47983@if target-libgfortran
47984maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 47985
a90ef4bf
JM
47986TAGS-target-libgfortran: \
47987 configure-target-libgfortran
e552509b 47988 @: $(MAKE); $(unstage)
22121df0 47989 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
47990 r=`${PWD_COMMAND}`; export r; \
47991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47992 $(NORMAL_TARGET_EXPORTS) \
22121df0 47993 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
47994 for flag in $(EXTRA_TARGET_FLAGS); do \
47995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47996 done; \
a90ef4bf 47997 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
47998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48000 "RANLIB=$${RANLIB}" \
48001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48002 TAGS) \
48003 || exit 1
48004
a90ef4bf 48005@endif target-libgfortran
e552509b 48006
a90ef4bf
JM
48007.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
48008maybe-install-info-target-libgfortran:
48009@if target-libgfortran
48010maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 48011
a90ef4bf
JM
48012install-info-target-libgfortran: \
48013 configure-target-libgfortran \
48014 info-target-libgfortran
e552509b 48015 @: $(MAKE); $(unstage)
22121df0 48016 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
48017 r=`${PWD_COMMAND}`; export r; \
48018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48019 $(NORMAL_TARGET_EXPORTS) \
22121df0 48020 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
48021 for flag in $(EXTRA_TARGET_FLAGS); do \
48022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48023 done; \
a90ef4bf 48024 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
48025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48027 "RANLIB=$${RANLIB}" \
48028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48029 install-info) \
48030 || exit 1
48031
a90ef4bf 48032@endif target-libgfortran
e552509b 48033
a90ef4bf
JM
48034.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
48035maybe-install-pdf-target-libgfortran:
48036@if target-libgfortran
48037maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 48038
a90ef4bf
JM
48039install-pdf-target-libgfortran: \
48040 configure-target-libgfortran \
48041 pdf-target-libgfortran
e552509b 48042 @: $(MAKE); $(unstage)
22121df0 48043 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
48044 r=`${PWD_COMMAND}`; export r; \
48045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48046 $(NORMAL_TARGET_EXPORTS) \
22121df0 48047 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
48048 for flag in $(EXTRA_TARGET_FLAGS); do \
48049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48050 done; \
a90ef4bf 48051 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
48052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48054 "RANLIB=$${RANLIB}" \
48055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48056 install-pdf) \
48057 || exit 1
48058
a90ef4bf 48059@endif target-libgfortran
e552509b 48060
a90ef4bf
JM
48061.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
48062maybe-install-html-target-libgfortran:
48063@if target-libgfortran
48064maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 48065
a90ef4bf
JM
48066install-html-target-libgfortran: \
48067 configure-target-libgfortran \
48068 html-target-libgfortran
e552509b 48069 @: $(MAKE); $(unstage)
22121df0 48070 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
48071 r=`${PWD_COMMAND}`; export r; \
48072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48073 $(NORMAL_TARGET_EXPORTS) \
22121df0 48074 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
48075 for flag in $(EXTRA_TARGET_FLAGS); do \
48076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48077 done; \
a90ef4bf 48078 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
48079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48081 "RANLIB=$${RANLIB}" \
48082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48083 install-html) \
48084 || exit 1
48085
a90ef4bf 48086@endif target-libgfortran
e552509b 48087
a90ef4bf
JM
48088.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
48089maybe-installcheck-target-libgfortran:
48090@if target-libgfortran
48091maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 48092
a90ef4bf
JM
48093installcheck-target-libgfortran: \
48094 configure-target-libgfortran
e552509b 48095 @: $(MAKE); $(unstage)
22121df0 48096 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
48097 r=`${PWD_COMMAND}`; export r; \
48098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48099 $(NORMAL_TARGET_EXPORTS) \
22121df0 48100 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
48101 for flag in $(EXTRA_TARGET_FLAGS); do \
48102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48103 done; \
a90ef4bf 48104 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
48105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48107 "RANLIB=$${RANLIB}" \
48108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48109 installcheck) \
48110 || exit 1
48111
a90ef4bf 48112@endif target-libgfortran
e552509b 48113
a90ef4bf
JM
48114.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
48115maybe-mostlyclean-target-libgfortran:
48116@if target-libgfortran
48117maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 48118
a90ef4bf 48119mostlyclean-target-libgfortran:
e552509b 48120 @: $(MAKE); $(unstage)
22121df0 48121 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
48122 r=`${PWD_COMMAND}`; export r; \
48123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48124 $(NORMAL_TARGET_EXPORTS) \
22121df0 48125 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
48126 for flag in $(EXTRA_TARGET_FLAGS); do \
48127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48128 done; \
a90ef4bf 48129 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
48130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48132 "RANLIB=$${RANLIB}" \
48133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48134 mostlyclean) \
48135 || exit 1
48136
a90ef4bf 48137@endif target-libgfortran
e552509b 48138
a90ef4bf
JM
48139.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
48140maybe-clean-target-libgfortran:
48141@if target-libgfortran
48142maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 48143
a90ef4bf 48144clean-target-libgfortran:
e552509b 48145 @: $(MAKE); $(unstage)
22121df0 48146 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
48147 r=`${PWD_COMMAND}`; export r; \
48148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48149 $(NORMAL_TARGET_EXPORTS) \
22121df0 48150 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
48151 for flag in $(EXTRA_TARGET_FLAGS); do \
48152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48153 done; \
a90ef4bf 48154 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
48155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48157 "RANLIB=$${RANLIB}" \
48158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48159 clean) \
48160 || exit 1
48161
a90ef4bf 48162@endif target-libgfortran
e552509b 48163
a90ef4bf
JM
48164.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
48165maybe-distclean-target-libgfortran:
48166@if target-libgfortran
48167maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 48168
a90ef4bf 48169distclean-target-libgfortran:
e552509b 48170 @: $(MAKE); $(unstage)
22121df0 48171 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
48172 r=`${PWD_COMMAND}`; export r; \
48173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48174 $(NORMAL_TARGET_EXPORTS) \
22121df0 48175 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
48176 for flag in $(EXTRA_TARGET_FLAGS); do \
48177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48178 done; \
a90ef4bf 48179 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
48180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48182 "RANLIB=$${RANLIB}" \
48183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48184 distclean) \
48185 || exit 1
48186
a90ef4bf 48187@endif target-libgfortran
e552509b 48188
a90ef4bf
JM
48189.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
48190maybe-maintainer-clean-target-libgfortran:
48191@if target-libgfortran
48192maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 48193
a90ef4bf 48194maintainer-clean-target-libgfortran:
e552509b 48195 @: $(MAKE); $(unstage)
22121df0 48196 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
48197 r=`${PWD_COMMAND}`; export r; \
48198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48199 $(NORMAL_TARGET_EXPORTS) \
22121df0 48200 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
48201 for flag in $(EXTRA_TARGET_FLAGS); do \
48202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48203 done; \
a90ef4bf 48204 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
48205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48207 "RANLIB=$${RANLIB}" \
48208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48209 maintainer-clean) \
48210 || exit 1
48211
a90ef4bf 48212@endif target-libgfortran
e552509b
ILT
48213
48214
48215
48216
48217
a90ef4bf
JM
48218.PHONY: configure-target-libobjc maybe-configure-target-libobjc
48219maybe-configure-target-libobjc:
4f0ef2d8 48220@if gcc-bootstrap
a90ef4bf 48221configure-target-libobjc: stage_current
4f0ef2d8 48222@endif gcc-bootstrap
a90ef4bf
JM
48223@if target-libobjc
48224maybe-configure-target-libobjc: configure-target-libobjc
48225configure-target-libobjc:
0aed8855
PB
48226 @: $(MAKE); $(unstage)
48227 @r=`${PWD_COMMAND}`; export r; \
48228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 48229 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
48230 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
48231 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
48232 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
48233 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
48234 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 48235 else \
a90ef4bf
JM
48236 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
48237 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
48238 fi; \
48239 else \
a90ef4bf 48240 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 48241 fi; \
a90ef4bf 48242 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 48243 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 48244 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
48245 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
48246 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 48247 case $(srcdir) in \
b00612cc 48248 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 48249 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 48250 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 48251 esac; \
1b6c0831 48252 module_srcdir=libobjc; \
4fa63067 48253 rm -f no-such-file || : ; \
1b6c0831
L
48254 CONFIG_SITE=no-such-file $(SHELL) \
48255 $$s/$$module_srcdir/configure \
48256 --srcdir=$${topdir}/$$module_srcdir \
4b900473 48257 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 48258 --target=${target_alias} \
e2b9e2dc 48259 || exit 1
a90ef4bf 48260@endif target-libobjc
e2b9e2dc 48261
a7254363
PB
48262
48263
d545f33b
PB
48264
48265
a90ef4bf
JM
48266.PHONY: all-target-libobjc maybe-all-target-libobjc
48267maybe-all-target-libobjc:
4f0ef2d8 48268@if gcc-bootstrap
a90ef4bf 48269all-target-libobjc: stage_current
4f0ef2d8 48270@endif gcc-bootstrap
a90ef4bf
JM
48271@if target-libobjc
48272TARGET-target-libobjc=all
48273maybe-all-target-libobjc: all-target-libobjc
48274all-target-libobjc: configure-target-libobjc
0aed8855 48275 @: $(MAKE); $(unstage)
b40e3958
L
48276 @r=`${PWD_COMMAND}`; export r; \
48277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 48278 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 48279 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 48280 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
48281 $(TARGET-target-libobjc))
48282@endif target-libobjc
3866be5d 48283
a7254363
PB
48284
48285
d545f33b
PB
48286
48287
a90ef4bf
JM
48288.PHONY: check-target-libobjc maybe-check-target-libobjc
48289maybe-check-target-libobjc:
48290@if target-libobjc
48291maybe-check-target-libobjc: check-target-libobjc
3866be5d 48292
a90ef4bf
JM
48293check-target-libobjc:
48294 @: $(MAKE); $(unstage)
48295 @r=`${PWD_COMMAND}`; export r; \
48296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48297 $(NORMAL_TARGET_EXPORTS) \
48298 (cd $(TARGET_SUBDIR)/libobjc && \
48299 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 48300
a90ef4bf 48301@endif target-libobjc
4fa63067 48302
a90ef4bf
JM
48303.PHONY: install-target-libobjc maybe-install-target-libobjc
48304maybe-install-target-libobjc:
48305@if target-libobjc
48306maybe-install-target-libobjc: install-target-libobjc
4fa63067 48307
a90ef4bf 48308install-target-libobjc: installdirs
0aed8855 48309 @: $(MAKE); $(unstage)
b40e3958
L
48310 @r=`${PWD_COMMAND}`; export r; \
48311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48312 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 48313 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 48314 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 48315
a90ef4bf 48316@endif target-libobjc
3866be5d 48317
a90ef4bf
JM
48318.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
48319maybe-install-strip-target-libobjc:
48320@if target-libobjc
48321maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 48322
a90ef4bf 48323install-strip-target-libobjc: installdirs
9b980aa1
RW
48324 @: $(MAKE); $(unstage)
48325 @r=`${PWD_COMMAND}`; export r; \
48326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48327 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 48328 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
48329 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
48330
a90ef4bf 48331@endif target-libobjc
9b980aa1 48332
56a8fe78 48333# Other targets (info, dvi, pdf, etc.)
16ae0395 48334
a90ef4bf
JM
48335.PHONY: maybe-info-target-libobjc info-target-libobjc
48336maybe-info-target-libobjc:
48337@if target-libobjc
48338maybe-info-target-libobjc: info-target-libobjc
6d389afc 48339
a90ef4bf
JM
48340info-target-libobjc: \
48341 configure-target-libobjc
0aed8855 48342 @: $(MAKE); $(unstage)
22121df0 48343 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
48344 r=`${PWD_COMMAND}`; export r; \
48345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 48346 $(NORMAL_TARGET_EXPORTS) \
22121df0 48347 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
48348 for flag in $(EXTRA_TARGET_FLAGS); do \
48349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48350 done; \
a90ef4bf 48351 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
48352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48354 "RANLIB=$${RANLIB}" \
0c24b341 48355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
48356 info) \
48357 || exit 1
48358
a90ef4bf 48359@endif target-libobjc
6d389afc 48360
a90ef4bf
JM
48361.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
48362maybe-dvi-target-libobjc:
48363@if target-libobjc
48364maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 48365
a90ef4bf
JM
48366dvi-target-libobjc: \
48367 configure-target-libobjc
0aed8855 48368 @: $(MAKE); $(unstage)
22121df0 48369 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 48370 r=`${PWD_COMMAND}`; export r; \
b40e3958 48371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48372 $(NORMAL_TARGET_EXPORTS) \
22121df0 48373 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
48374 for flag in $(EXTRA_TARGET_FLAGS); do \
48375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48376 done; \
a90ef4bf 48377 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
48378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48380 "RANLIB=$${RANLIB}" \
0c24b341 48381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 48382 dvi) \
4fa63067 48383 || exit 1
3866be5d 48384
a90ef4bf 48385@endif target-libobjc
3866be5d 48386
a90ef4bf
JM
48387.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
48388maybe-pdf-target-libobjc:
48389@if target-libobjc
48390maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 48391
a90ef4bf
JM
48392pdf-target-libobjc: \
48393 configure-target-libobjc
56a8fe78 48394 @: $(MAKE); $(unstage)
22121df0 48395 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
48396 r=`${PWD_COMMAND}`; export r; \
48397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48398 $(NORMAL_TARGET_EXPORTS) \
22121df0 48399 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
48400 for flag in $(EXTRA_TARGET_FLAGS); do \
48401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48402 done; \
a90ef4bf 48403 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
48404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48406 "RANLIB=$${RANLIB}" \
0c24b341 48407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
48408 pdf) \
48409 || exit 1
48410
a90ef4bf 48411@endif target-libobjc
56a8fe78 48412
a90ef4bf
JM
48413.PHONY: maybe-html-target-libobjc html-target-libobjc
48414maybe-html-target-libobjc:
48415@if target-libobjc
48416maybe-html-target-libobjc: html-target-libobjc
4fa63067 48417
a90ef4bf
JM
48418html-target-libobjc: \
48419 configure-target-libobjc
0aed8855 48420 @: $(MAKE); $(unstage)
22121df0 48421 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
48422 r=`${PWD_COMMAND}`; export r; \
48423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48424 $(NORMAL_TARGET_EXPORTS) \
22121df0 48425 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
48426 for flag in $(EXTRA_TARGET_FLAGS); do \
48427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48428 done; \
a90ef4bf 48429 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
48430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48432 "RANLIB=$${RANLIB}" \
0c24b341 48433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 48434 html) \
e2b9e2dc
NN
48435 || exit 1
48436
a90ef4bf 48437@endif target-libobjc
4fa63067 48438
a90ef4bf
JM
48439.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
48440maybe-TAGS-target-libobjc:
48441@if target-libobjc
48442maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 48443
a90ef4bf
JM
48444TAGS-target-libobjc: \
48445 configure-target-libobjc
0aed8855 48446 @: $(MAKE); $(unstage)
22121df0 48447 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 48448 r=`${PWD_COMMAND}`; export r; \
b40e3958 48449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48450 $(NORMAL_TARGET_EXPORTS) \
22121df0 48451 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
48452 for flag in $(EXTRA_TARGET_FLAGS); do \
48453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48454 done; \
a90ef4bf 48455 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
48456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48458 "RANLIB=$${RANLIB}" \
0c24b341 48459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 48460 TAGS) \
4fa63067 48461 || exit 1
3866be5d 48462
a90ef4bf 48463@endif target-libobjc
3866be5d 48464
a90ef4bf
JM
48465.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
48466maybe-install-info-target-libobjc:
48467@if target-libobjc
48468maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 48469
a90ef4bf
JM
48470install-info-target-libobjc: \
48471 configure-target-libobjc \
48472 info-target-libobjc
0aed8855 48473 @: $(MAKE); $(unstage)
22121df0 48474 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
48475 r=`${PWD_COMMAND}`; export r; \
48476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48477 $(NORMAL_TARGET_EXPORTS) \
22121df0 48478 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
48479 for flag in $(EXTRA_TARGET_FLAGS); do \
48480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48481 done; \
a90ef4bf 48482 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
48483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48485 "RANLIB=$${RANLIB}" \
0c24b341 48486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 48487 install-info) \
4fa63067 48488 || exit 1
3866be5d 48489
a90ef4bf 48490@endif target-libobjc
16ae0395 48491
a90ef4bf
JM
48492.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
48493maybe-install-pdf-target-libobjc:
48494@if target-libobjc
48495maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 48496
a90ef4bf
JM
48497install-pdf-target-libobjc: \
48498 configure-target-libobjc \
48499 pdf-target-libobjc
a3ca38d2 48500 @: $(MAKE); $(unstage)
22121df0 48501 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
48502 r=`${PWD_COMMAND}`; export r; \
48503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48504 $(NORMAL_TARGET_EXPORTS) \
22121df0 48505 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
48506 for flag in $(EXTRA_TARGET_FLAGS); do \
48507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48508 done; \
a90ef4bf 48509 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
48510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48512 "RANLIB=$${RANLIB}" \
0c24b341 48513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
48514 install-pdf) \
48515 || exit 1
48516
a90ef4bf 48517@endif target-libobjc
a3ca38d2 48518
a90ef4bf
JM
48519.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
48520maybe-install-html-target-libobjc:
48521@if target-libobjc
48522maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 48523
a90ef4bf
JM
48524install-html-target-libobjc: \
48525 configure-target-libobjc \
48526 html-target-libobjc
108a6f8e 48527 @: $(MAKE); $(unstage)
22121df0 48528 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
48529 r=`${PWD_COMMAND}`; export r; \
48530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48531 $(NORMAL_TARGET_EXPORTS) \
22121df0 48532 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
48533 for flag in $(EXTRA_TARGET_FLAGS); do \
48534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48535 done; \
a90ef4bf 48536 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
48537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48539 "RANLIB=$${RANLIB}" \
0c24b341 48540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
48541 install-html) \
48542 || exit 1
48543
a90ef4bf 48544@endif target-libobjc
108a6f8e 48545
a90ef4bf
JM
48546.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
48547maybe-installcheck-target-libobjc:
48548@if target-libobjc
48549maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 48550
a90ef4bf
JM
48551installcheck-target-libobjc: \
48552 configure-target-libobjc
0aed8855 48553 @: $(MAKE); $(unstage)
22121df0 48554 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 48555 r=`${PWD_COMMAND}`; export r; \
b40e3958 48556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48557 $(NORMAL_TARGET_EXPORTS) \
22121df0 48558 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
48559 for flag in $(EXTRA_TARGET_FLAGS); do \
48560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48561 done; \
a90ef4bf 48562 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
48563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48565 "RANLIB=$${RANLIB}" \
0c24b341 48566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 48567 installcheck) \
4fa63067 48568 || exit 1
3866be5d 48569
a90ef4bf 48570@endif target-libobjc
3866be5d 48571
a90ef4bf
JM
48572.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
48573maybe-mostlyclean-target-libobjc:
48574@if target-libobjc
48575maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 48576
a90ef4bf
JM
48577mostlyclean-target-libobjc:
48578 @: $(MAKE); $(unstage)
22121df0 48579 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
48580 r=`${PWD_COMMAND}`; export r; \
48581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48582 $(NORMAL_TARGET_EXPORTS) \
22121df0 48583 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
48584 for flag in $(EXTRA_TARGET_FLAGS); do \
48585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48586 done; \
48587 (cd $(TARGET_SUBDIR)/libobjc && \
48588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48590 "RANLIB=$${RANLIB}" \
48591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48592 mostlyclean) \
48593 || exit 1
4fa63067 48594
a90ef4bf 48595@endif target-libobjc
4fa63067 48596
a90ef4bf
JM
48597.PHONY: maybe-clean-target-libobjc clean-target-libobjc
48598maybe-clean-target-libobjc:
48599@if target-libobjc
48600maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 48601
a90ef4bf
JM
48602clean-target-libobjc:
48603 @: $(MAKE); $(unstage)
22121df0 48604 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
48605 r=`${PWD_COMMAND}`; export r; \
48606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48607 $(NORMAL_TARGET_EXPORTS) \
22121df0 48608 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
48609 for flag in $(EXTRA_TARGET_FLAGS); do \
48610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48611 done; \
48612 (cd $(TARGET_SUBDIR)/libobjc && \
48613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48615 "RANLIB=$${RANLIB}" \
48616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48617 clean) \
48618 || exit 1
4fa63067 48619
a90ef4bf 48620@endif target-libobjc
4fa63067 48621
a90ef4bf
JM
48622.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
48623maybe-distclean-target-libobjc:
48624@if target-libobjc
48625maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 48626
a90ef4bf
JM
48627distclean-target-libobjc:
48628 @: $(MAKE); $(unstage)
22121df0 48629 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
48630 r=`${PWD_COMMAND}`; export r; \
48631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48632 $(NORMAL_TARGET_EXPORTS) \
22121df0 48633 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
48634 for flag in $(EXTRA_TARGET_FLAGS); do \
48635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48636 done; \
48637 (cd $(TARGET_SUBDIR)/libobjc && \
48638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48640 "RANLIB=$${RANLIB}" \
48641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48642 distclean) \
48643 || exit 1
4fa63067 48644
a90ef4bf 48645@endif target-libobjc
4fa63067 48646
a90ef4bf
JM
48647.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
48648maybe-maintainer-clean-target-libobjc:
48649@if target-libobjc
48650maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 48651
a90ef4bf
JM
48652maintainer-clean-target-libobjc:
48653 @: $(MAKE); $(unstage)
22121df0 48654 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
48655 r=`${PWD_COMMAND}`; export r; \
48656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48657 $(NORMAL_TARGET_EXPORTS) \
22121df0 48658 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
48659 for flag in $(EXTRA_TARGET_FLAGS); do \
48660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48661 done; \
48662 (cd $(TARGET_SUBDIR)/libobjc && \
48663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48665 "RANLIB=$${RANLIB}" \
48666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48667 maintainer-clean) \
48668 || exit 1
4fa63067 48669
a90ef4bf 48670@endif target-libobjc
4fa63067
NN
48671
48672
4fa63067 48673
4fa63067 48674
a7254363 48675
a90ef4bf
JM
48676.PHONY: configure-target-libgo maybe-configure-target-libgo
48677maybe-configure-target-libgo:
4f0ef2d8 48678@if gcc-bootstrap
a90ef4bf 48679configure-target-libgo: stage_current
4f0ef2d8 48680@endif gcc-bootstrap
a90ef4bf
JM
48681@if target-libgo
48682maybe-configure-target-libgo: configure-target-libgo
48683configure-target-libgo:
0aed8855
PB
48684 @: $(MAKE); $(unstage)
48685 @r=`${PWD_COMMAND}`; export r; \
48686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 48687 echo "Checking multilib configuration for libgo..."; \
22121df0
L
48688 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
48689 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
48690 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
48691 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
48692 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 48693 else \
a90ef4bf
JM
48694 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
48695 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
48696 fi; \
48697 else \
a90ef4bf 48698 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 48699 fi; \
a90ef4bf 48700 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 48701 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 48702 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
48703 echo Configuring in $(TARGET_SUBDIR)/libgo; \
48704 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 48705 case $(srcdir) in \
b00612cc 48706 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 48707 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 48708 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 48709 esac; \
1b6c0831 48710 module_srcdir=libgo; \
4fa63067 48711 rm -f no-such-file || : ; \
1b6c0831
L
48712 CONFIG_SITE=no-such-file $(SHELL) \
48713 $$s/$$module_srcdir/configure \
48714 --srcdir=$${topdir}/$$module_srcdir \
4b900473 48715 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 48716 --target=${target_alias} \
e2b9e2dc 48717 || exit 1
a90ef4bf 48718@endif target-libgo
e2b9e2dc 48719
a7254363
PB
48720
48721
d545f33b
PB
48722
48723
a90ef4bf
JM
48724.PHONY: all-target-libgo maybe-all-target-libgo
48725maybe-all-target-libgo:
4f0ef2d8 48726@if gcc-bootstrap
a90ef4bf 48727all-target-libgo: stage_current
4f0ef2d8 48728@endif gcc-bootstrap
a90ef4bf
JM
48729@if target-libgo
48730TARGET-target-libgo=all
48731maybe-all-target-libgo: all-target-libgo
48732all-target-libgo: configure-target-libgo
0aed8855 48733 @: $(MAKE); $(unstage)
b40e3958
L
48734 @r=`${PWD_COMMAND}`; export r; \
48735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 48736 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 48737 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 48738 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
48739 $(TARGET-target-libgo))
48740@endif target-libgo
3866be5d 48741
a7254363
PB
48742
48743
d545f33b
PB
48744
48745
a90ef4bf
JM
48746.PHONY: check-target-libgo maybe-check-target-libgo
48747maybe-check-target-libgo:
48748@if target-libgo
48749maybe-check-target-libgo: check-target-libgo
3866be5d 48750
a90ef4bf 48751check-target-libgo:
0aed8855 48752 @: $(MAKE); $(unstage)
4fa63067
NN
48753 @r=`${PWD_COMMAND}`; export r; \
48754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48755 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 48756 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 48757 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 48758
a90ef4bf 48759@endif target-libgo
3866be5d 48760
a90ef4bf
JM
48761.PHONY: install-target-libgo maybe-install-target-libgo
48762maybe-install-target-libgo:
48763@if target-libgo
48764maybe-install-target-libgo: install-target-libgo
16ae0395 48765
a90ef4bf 48766install-target-libgo: installdirs
0aed8855 48767 @: $(MAKE); $(unstage)
4fa63067
NN
48768 @r=`${PWD_COMMAND}`; export r; \
48769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48770 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 48771 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 48772 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 48773
a90ef4bf 48774@endif target-libgo
3866be5d 48775
a90ef4bf
JM
48776.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
48777maybe-install-strip-target-libgo:
48778@if target-libgo
48779maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 48780
a90ef4bf 48781install-strip-target-libgo: installdirs
9b980aa1
RW
48782 @: $(MAKE); $(unstage)
48783 @r=`${PWD_COMMAND}`; export r; \
48784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48785 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 48786 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
48787 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
48788
a90ef4bf 48789@endif target-libgo
9b980aa1 48790
56a8fe78 48791# Other targets (info, dvi, pdf, etc.)
4fa63067 48792
a90ef4bf
JM
48793.PHONY: maybe-info-target-libgo info-target-libgo
48794maybe-info-target-libgo:
48795@if target-libgo
48796maybe-info-target-libgo: info-target-libgo
4fa63067 48797
a90ef4bf
JM
48798info-target-libgo: \
48799 configure-target-libgo
0aed8855 48800 @: $(MAKE); $(unstage)
22121df0 48801 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
48802 r=`${PWD_COMMAND}`; export r; \
48803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48804 $(NORMAL_TARGET_EXPORTS) \
22121df0 48805 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
48806 for flag in $(EXTRA_TARGET_FLAGS); do \
48807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48808 done; \
a90ef4bf 48809 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
48810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48812 "RANLIB=$${RANLIB}" \
0c24b341 48813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 48814 info) \
e2b9e2dc
NN
48815 || exit 1
48816
a90ef4bf 48817@endif target-libgo
3866be5d 48818
a90ef4bf
JM
48819.PHONY: maybe-dvi-target-libgo dvi-target-libgo
48820maybe-dvi-target-libgo:
48821@if target-libgo
48822maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 48823
a90ef4bf
JM
48824dvi-target-libgo: \
48825 configure-target-libgo
0aed8855 48826 @: $(MAKE); $(unstage)
22121df0 48827 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 48828 r=`${PWD_COMMAND}`; export r; \
b40e3958 48829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48830 $(NORMAL_TARGET_EXPORTS) \
22121df0 48831 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
48832 for flag in $(EXTRA_TARGET_FLAGS); do \
48833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48834 done; \
a90ef4bf 48835 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
48836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48838 "RANLIB=$${RANLIB}" \
0c24b341 48839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 48840 dvi) \
4fa63067 48841 || exit 1
3866be5d 48842
a90ef4bf 48843@endif target-libgo
3866be5d 48844
a90ef4bf
JM
48845.PHONY: maybe-pdf-target-libgo pdf-target-libgo
48846maybe-pdf-target-libgo:
48847@if target-libgo
48848maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 48849
a90ef4bf
JM
48850pdf-target-libgo: \
48851 configure-target-libgo
56a8fe78 48852 @: $(MAKE); $(unstage)
22121df0 48853 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
48854 r=`${PWD_COMMAND}`; export r; \
48855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48856 $(NORMAL_TARGET_EXPORTS) \
22121df0 48857 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
48858 for flag in $(EXTRA_TARGET_FLAGS); do \
48859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48860 done; \
a90ef4bf 48861 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
48862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48864 "RANLIB=$${RANLIB}" \
0c24b341 48865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
48866 pdf) \
48867 || exit 1
48868
a90ef4bf 48869@endif target-libgo
56a8fe78 48870
a90ef4bf
JM
48871.PHONY: maybe-html-target-libgo html-target-libgo
48872maybe-html-target-libgo:
48873@if target-libgo
48874maybe-html-target-libgo: html-target-libgo
6d389afc 48875
a90ef4bf
JM
48876html-target-libgo: \
48877 configure-target-libgo
0aed8855 48878 @: $(MAKE); $(unstage)
22121df0 48879 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
48880 r=`${PWD_COMMAND}`; export r; \
48881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 48882 $(NORMAL_TARGET_EXPORTS) \
22121df0 48883 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
48884 for flag in $(EXTRA_TARGET_FLAGS); do \
48885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48886 done; \
a90ef4bf 48887 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
48888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48890 "RANLIB=$${RANLIB}" \
0c24b341 48891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
48892 html) \
48893 || exit 1
48894
a90ef4bf 48895@endif target-libgo
6d389afc 48896
a90ef4bf
JM
48897.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
48898maybe-TAGS-target-libgo:
48899@if target-libgo
48900maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 48901
a90ef4bf
JM
48902TAGS-target-libgo: \
48903 configure-target-libgo
0aed8855 48904 @: $(MAKE); $(unstage)
22121df0 48905 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 48906 r=`${PWD_COMMAND}`; export r; \
b40e3958 48907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48908 $(NORMAL_TARGET_EXPORTS) \
22121df0 48909 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
48910 for flag in $(EXTRA_TARGET_FLAGS); do \
48911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48912 done; \
a90ef4bf 48913 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
48914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48916 "RANLIB=$${RANLIB}" \
0c24b341 48917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 48918 TAGS) \
4fa63067 48919 || exit 1
3866be5d 48920
a90ef4bf 48921@endif target-libgo
3866be5d 48922
a90ef4bf
JM
48923.PHONY: maybe-install-info-target-libgo install-info-target-libgo
48924maybe-install-info-target-libgo:
48925@if target-libgo
48926maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 48927
a90ef4bf
JM
48928install-info-target-libgo: \
48929 configure-target-libgo \
48930 info-target-libgo
0aed8855 48931 @: $(MAKE); $(unstage)
22121df0 48932 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
48933 r=`${PWD_COMMAND}`; export r; \
48934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 48935 $(NORMAL_TARGET_EXPORTS) \
22121df0 48936 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
48937 for flag in $(EXTRA_TARGET_FLAGS); do \
48938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48939 done; \
a90ef4bf 48940 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
48941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48943 "RANLIB=$${RANLIB}" \
0c24b341 48944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 48945 install-info) \
e2b9e2dc
NN
48946 || exit 1
48947
a90ef4bf 48948@endif target-libgo
4fa63067 48949
a90ef4bf
JM
48950.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
48951maybe-install-pdf-target-libgo:
48952@if target-libgo
48953maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 48954
a90ef4bf
JM
48955install-pdf-target-libgo: \
48956 configure-target-libgo \
48957 pdf-target-libgo
a3ca38d2 48958 @: $(MAKE); $(unstage)
22121df0 48959 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
48960 r=`${PWD_COMMAND}`; export r; \
48961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48962 $(NORMAL_TARGET_EXPORTS) \
22121df0 48963 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
48964 for flag in $(EXTRA_TARGET_FLAGS); do \
48965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48966 done; \
a90ef4bf 48967 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
48968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48970 "RANLIB=$${RANLIB}" \
0c24b341 48971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
48972 install-pdf) \
48973 || exit 1
48974
a90ef4bf 48975@endif target-libgo
a3ca38d2 48976
a90ef4bf
JM
48977.PHONY: maybe-install-html-target-libgo install-html-target-libgo
48978maybe-install-html-target-libgo:
48979@if target-libgo
48980maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 48981
a90ef4bf
JM
48982install-html-target-libgo: \
48983 configure-target-libgo \
48984 html-target-libgo
108a6f8e 48985 @: $(MAKE); $(unstage)
22121df0 48986 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
48987 r=`${PWD_COMMAND}`; export r; \
48988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48989 $(NORMAL_TARGET_EXPORTS) \
22121df0 48990 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
48991 for flag in $(EXTRA_TARGET_FLAGS); do \
48992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48993 done; \
a90ef4bf 48994 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
48995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48997 "RANLIB=$${RANLIB}" \
0c24b341 48998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
48999 install-html) \
49000 || exit 1
49001
a90ef4bf 49002@endif target-libgo
108a6f8e 49003
a90ef4bf
JM
49004.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
49005maybe-installcheck-target-libgo:
49006@if target-libgo
49007maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 49008
a90ef4bf
JM
49009installcheck-target-libgo: \
49010 configure-target-libgo
0aed8855 49011 @: $(MAKE); $(unstage)
22121df0 49012 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 49013 r=`${PWD_COMMAND}`; export r; \
b40e3958 49014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 49015 $(NORMAL_TARGET_EXPORTS) \
22121df0 49016 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
49017 for flag in $(EXTRA_TARGET_FLAGS); do \
49018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49019 done; \
a90ef4bf 49020 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
49021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49023 "RANLIB=$${RANLIB}" \
0c24b341 49024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 49025 installcheck) \
4fa63067 49026 || exit 1
3866be5d 49027
a90ef4bf 49028@endif target-libgo
3866be5d 49029
a90ef4bf
JM
49030.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
49031maybe-mostlyclean-target-libgo:
49032@if target-libgo
49033maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 49034
a90ef4bf 49035mostlyclean-target-libgo:
0aed8855 49036 @: $(MAKE); $(unstage)
22121df0 49037 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 49038 r=`${PWD_COMMAND}`; export r; \
b40e3958 49039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 49040 $(NORMAL_TARGET_EXPORTS) \
22121df0 49041 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
49042 for flag in $(EXTRA_TARGET_FLAGS); do \
49043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49044 done; \
a90ef4bf 49045 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
49046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49048 "RANLIB=$${RANLIB}" \
0c24b341 49049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 49050 mostlyclean) \
4fa63067 49051 || exit 1
3866be5d 49052
a90ef4bf 49053@endif target-libgo
3866be5d 49054
a90ef4bf
JM
49055.PHONY: maybe-clean-target-libgo clean-target-libgo
49056maybe-clean-target-libgo:
49057@if target-libgo
49058maybe-clean-target-libgo: clean-target-libgo
16ae0395 49059
a90ef4bf 49060clean-target-libgo:
0aed8855 49061 @: $(MAKE); $(unstage)
22121df0 49062 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 49063 r=`${PWD_COMMAND}`; export r; \
b40e3958 49064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 49065 $(NORMAL_TARGET_EXPORTS) \
22121df0 49066 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
49067 for flag in $(EXTRA_TARGET_FLAGS); do \
49068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49069 done; \
a90ef4bf 49070 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
49071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49073 "RANLIB=$${RANLIB}" \
0c24b341 49074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 49075 clean) \
4fa63067 49076 || exit 1
3866be5d 49077
a90ef4bf 49078@endif target-libgo
3866be5d 49079
a90ef4bf
JM
49080.PHONY: maybe-distclean-target-libgo distclean-target-libgo
49081maybe-distclean-target-libgo:
49082@if target-libgo
49083maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 49084
a90ef4bf 49085distclean-target-libgo:
0aed8855 49086 @: $(MAKE); $(unstage)
22121df0 49087 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
49088 r=`${PWD_COMMAND}`; export r; \
49089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 49090 $(NORMAL_TARGET_EXPORTS) \
22121df0 49091 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
49092 for flag in $(EXTRA_TARGET_FLAGS); do \
49093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49094 done; \
a90ef4bf 49095 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
49096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49098 "RANLIB=$${RANLIB}" \
0c24b341 49099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 49100 distclean) \
e2b9e2dc
NN
49101 || exit 1
49102
a90ef4bf 49103@endif target-libgo
3866be5d 49104
a90ef4bf
JM
49105.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
49106maybe-maintainer-clean-target-libgo:
49107@if target-libgo
49108maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 49109
a90ef4bf 49110maintainer-clean-target-libgo:
0aed8855 49111 @: $(MAKE); $(unstage)
22121df0 49112 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 49113 r=`${PWD_COMMAND}`; export r; \
b40e3958 49114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 49115 $(NORMAL_TARGET_EXPORTS) \
22121df0 49116 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
49117 for flag in $(EXTRA_TARGET_FLAGS); do \
49118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49119 done; \
a90ef4bf 49120 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
49121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49123 "RANLIB=$${RANLIB}" \
0c24b341 49124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 49125 maintainer-clean) \
4fa63067 49126 || exit 1
3866be5d 49127
a90ef4bf 49128@endif target-libgo
3866be5d 49129
16ae0395 49130
3866be5d 49131
e90269c8 49132
a7254363 49133
f948b2de
NC
49134.PHONY: configure-target-libhsail-rt maybe-configure-target-libhsail-rt
49135maybe-configure-target-libhsail-rt:
49136@if gcc-bootstrap
49137configure-target-libhsail-rt: stage_current
49138@endif gcc-bootstrap
49139@if target-libhsail-rt
49140maybe-configure-target-libhsail-rt: configure-target-libhsail-rt
49141configure-target-libhsail-rt:
49142 @: $(MAKE); $(unstage)
49143 @r=`${PWD_COMMAND}`; export r; \
49144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49145 echo "Checking multilib configuration for libhsail-rt..."; \
49146 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libhsail-rt; \
49147 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libhsail-rt/multilib.tmp 2> /dev/null; \
49148 if test -r $(TARGET_SUBDIR)/libhsail-rt/multilib.out; then \
49149 if cmp -s $(TARGET_SUBDIR)/libhsail-rt/multilib.tmp $(TARGET_SUBDIR)/libhsail-rt/multilib.out; then \
49150 rm -f $(TARGET_SUBDIR)/libhsail-rt/multilib.tmp; \
49151 else \
49152 rm -f $(TARGET_SUBDIR)/libhsail-rt/Makefile; \
49153 mv $(TARGET_SUBDIR)/libhsail-rt/multilib.tmp $(TARGET_SUBDIR)/libhsail-rt/multilib.out; \
49154 fi; \
49155 else \
49156 mv $(TARGET_SUBDIR)/libhsail-rt/multilib.tmp $(TARGET_SUBDIR)/libhsail-rt/multilib.out; \
49157 fi; \
49158 test ! -f $(TARGET_SUBDIR)/libhsail-rt/Makefile || exit 0; \
49159 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libhsail-rt; \
49160 $(NORMAL_TARGET_EXPORTS) \
49161 echo Configuring in $(TARGET_SUBDIR)/libhsail-rt; \
49162 cd "$(TARGET_SUBDIR)/libhsail-rt" || exit 1; \
49163 case $(srcdir) in \
49164 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
49165 *) topdir=`echo $(TARGET_SUBDIR)/libhsail-rt/ | \
49166 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
49167 esac; \
49168 module_srcdir=libhsail-rt; \
49169 rm -f no-such-file || : ; \
49170 CONFIG_SITE=no-such-file $(SHELL) \
49171 $$s/$$module_srcdir/configure \
49172 --srcdir=$${topdir}/$$module_srcdir \
49173 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
49174 --target=${target_alias} \
49175 || exit 1
49176@endif target-libhsail-rt
49177
49178
49179
49180
49181
49182.PHONY: all-target-libhsail-rt maybe-all-target-libhsail-rt
49183maybe-all-target-libhsail-rt:
49184@if gcc-bootstrap
49185all-target-libhsail-rt: stage_current
49186@endif gcc-bootstrap
49187@if target-libhsail-rt
49188TARGET-target-libhsail-rt=all
49189maybe-all-target-libhsail-rt: all-target-libhsail-rt
49190all-target-libhsail-rt: configure-target-libhsail-rt
49191 @: $(MAKE); $(unstage)
49192 @r=`${PWD_COMMAND}`; export r; \
49193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49194 $(NORMAL_TARGET_EXPORTS) \
49195 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49196 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
49197 $(TARGET-target-libhsail-rt))
49198@endif target-libhsail-rt
49199
49200
49201
49202
49203
49204.PHONY: check-target-libhsail-rt maybe-check-target-libhsail-rt
49205maybe-check-target-libhsail-rt:
49206@if target-libhsail-rt
49207maybe-check-target-libhsail-rt: check-target-libhsail-rt
49208
49209check-target-libhsail-rt:
49210 @: $(MAKE); $(unstage)
49211 @r=`${PWD_COMMAND}`; export r; \
49212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49213 $(NORMAL_TARGET_EXPORTS) \
49214 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49215 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
49216
49217@endif target-libhsail-rt
49218
49219.PHONY: install-target-libhsail-rt maybe-install-target-libhsail-rt
49220maybe-install-target-libhsail-rt:
49221@if target-libhsail-rt
49222maybe-install-target-libhsail-rt: install-target-libhsail-rt
49223
49224install-target-libhsail-rt: installdirs
49225 @: $(MAKE); $(unstage)
49226 @r=`${PWD_COMMAND}`; export r; \
49227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49228 $(NORMAL_TARGET_EXPORTS) \
49229 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49230 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
49231
49232@endif target-libhsail-rt
49233
49234.PHONY: install-strip-target-libhsail-rt maybe-install-strip-target-libhsail-rt
49235maybe-install-strip-target-libhsail-rt:
49236@if target-libhsail-rt
49237maybe-install-strip-target-libhsail-rt: install-strip-target-libhsail-rt
49238
49239install-strip-target-libhsail-rt: installdirs
49240 @: $(MAKE); $(unstage)
49241 @r=`${PWD_COMMAND}`; export r; \
49242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49243 $(NORMAL_TARGET_EXPORTS) \
49244 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49245 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
49246
49247@endif target-libhsail-rt
49248
49249# Other targets (info, dvi, pdf, etc.)
49250
49251.PHONY: maybe-info-target-libhsail-rt info-target-libhsail-rt
49252maybe-info-target-libhsail-rt:
49253@if target-libhsail-rt
49254maybe-info-target-libhsail-rt: info-target-libhsail-rt
49255
49256info-target-libhsail-rt: \
49257 configure-target-libhsail-rt
49258 @: $(MAKE); $(unstage)
49259 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49260 r=`${PWD_COMMAND}`; export r; \
49261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49262 $(NORMAL_TARGET_EXPORTS) \
49263 echo "Doing info in $(TARGET_SUBDIR)/libhsail-rt"; \
49264 for flag in $(EXTRA_TARGET_FLAGS); do \
49265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49266 done; \
49267 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49270 "RANLIB=$${RANLIB}" \
49271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49272 info) \
49273 || exit 1
49274
49275@endif target-libhsail-rt
49276
49277.PHONY: maybe-dvi-target-libhsail-rt dvi-target-libhsail-rt
49278maybe-dvi-target-libhsail-rt:
49279@if target-libhsail-rt
49280maybe-dvi-target-libhsail-rt: dvi-target-libhsail-rt
49281
49282dvi-target-libhsail-rt: \
49283 configure-target-libhsail-rt
49284 @: $(MAKE); $(unstage)
49285 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49286 r=`${PWD_COMMAND}`; export r; \
49287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49288 $(NORMAL_TARGET_EXPORTS) \
49289 echo "Doing dvi in $(TARGET_SUBDIR)/libhsail-rt"; \
49290 for flag in $(EXTRA_TARGET_FLAGS); do \
49291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49292 done; \
49293 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49296 "RANLIB=$${RANLIB}" \
49297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49298 dvi) \
49299 || exit 1
49300
49301@endif target-libhsail-rt
49302
49303.PHONY: maybe-pdf-target-libhsail-rt pdf-target-libhsail-rt
49304maybe-pdf-target-libhsail-rt:
49305@if target-libhsail-rt
49306maybe-pdf-target-libhsail-rt: pdf-target-libhsail-rt
49307
49308pdf-target-libhsail-rt: \
49309 configure-target-libhsail-rt
49310 @: $(MAKE); $(unstage)
49311 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49312 r=`${PWD_COMMAND}`; export r; \
49313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49314 $(NORMAL_TARGET_EXPORTS) \
49315 echo "Doing pdf in $(TARGET_SUBDIR)/libhsail-rt"; \
49316 for flag in $(EXTRA_TARGET_FLAGS); do \
49317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49318 done; \
49319 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49322 "RANLIB=$${RANLIB}" \
49323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49324 pdf) \
49325 || exit 1
49326
49327@endif target-libhsail-rt
49328
49329.PHONY: maybe-html-target-libhsail-rt html-target-libhsail-rt
49330maybe-html-target-libhsail-rt:
49331@if target-libhsail-rt
49332maybe-html-target-libhsail-rt: html-target-libhsail-rt
49333
49334html-target-libhsail-rt: \
49335 configure-target-libhsail-rt
49336 @: $(MAKE); $(unstage)
49337 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49338 r=`${PWD_COMMAND}`; export r; \
49339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49340 $(NORMAL_TARGET_EXPORTS) \
49341 echo "Doing html in $(TARGET_SUBDIR)/libhsail-rt"; \
49342 for flag in $(EXTRA_TARGET_FLAGS); do \
49343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49344 done; \
49345 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49348 "RANLIB=$${RANLIB}" \
49349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49350 html) \
49351 || exit 1
49352
49353@endif target-libhsail-rt
49354
49355.PHONY: maybe-TAGS-target-libhsail-rt TAGS-target-libhsail-rt
49356maybe-TAGS-target-libhsail-rt:
49357@if target-libhsail-rt
49358maybe-TAGS-target-libhsail-rt: TAGS-target-libhsail-rt
49359
49360TAGS-target-libhsail-rt: \
49361 configure-target-libhsail-rt
49362 @: $(MAKE); $(unstage)
49363 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49364 r=`${PWD_COMMAND}`; export r; \
49365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49366 $(NORMAL_TARGET_EXPORTS) \
49367 echo "Doing TAGS in $(TARGET_SUBDIR)/libhsail-rt"; \
49368 for flag in $(EXTRA_TARGET_FLAGS); do \
49369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49370 done; \
49371 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49374 "RANLIB=$${RANLIB}" \
49375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49376 TAGS) \
49377 || exit 1
49378
49379@endif target-libhsail-rt
49380
49381.PHONY: maybe-install-info-target-libhsail-rt install-info-target-libhsail-rt
49382maybe-install-info-target-libhsail-rt:
49383@if target-libhsail-rt
49384maybe-install-info-target-libhsail-rt: install-info-target-libhsail-rt
49385
49386install-info-target-libhsail-rt: \
49387 configure-target-libhsail-rt \
49388 info-target-libhsail-rt
49389 @: $(MAKE); $(unstage)
49390 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49391 r=`${PWD_COMMAND}`; export r; \
49392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49393 $(NORMAL_TARGET_EXPORTS) \
49394 echo "Doing install-info in $(TARGET_SUBDIR)/libhsail-rt"; \
49395 for flag in $(EXTRA_TARGET_FLAGS); do \
49396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49397 done; \
49398 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49401 "RANLIB=$${RANLIB}" \
49402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49403 install-info) \
49404 || exit 1
49405
49406@endif target-libhsail-rt
49407
49408.PHONY: maybe-install-pdf-target-libhsail-rt install-pdf-target-libhsail-rt
49409maybe-install-pdf-target-libhsail-rt:
49410@if target-libhsail-rt
49411maybe-install-pdf-target-libhsail-rt: install-pdf-target-libhsail-rt
49412
49413install-pdf-target-libhsail-rt: \
49414 configure-target-libhsail-rt \
49415 pdf-target-libhsail-rt
49416 @: $(MAKE); $(unstage)
49417 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49418 r=`${PWD_COMMAND}`; export r; \
49419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49420 $(NORMAL_TARGET_EXPORTS) \
49421 echo "Doing install-pdf in $(TARGET_SUBDIR)/libhsail-rt"; \
49422 for flag in $(EXTRA_TARGET_FLAGS); do \
49423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49424 done; \
49425 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49428 "RANLIB=$${RANLIB}" \
49429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49430 install-pdf) \
49431 || exit 1
49432
49433@endif target-libhsail-rt
49434
49435.PHONY: maybe-install-html-target-libhsail-rt install-html-target-libhsail-rt
49436maybe-install-html-target-libhsail-rt:
49437@if target-libhsail-rt
49438maybe-install-html-target-libhsail-rt: install-html-target-libhsail-rt
49439
49440install-html-target-libhsail-rt: \
49441 configure-target-libhsail-rt \
49442 html-target-libhsail-rt
49443 @: $(MAKE); $(unstage)
49444 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49445 r=`${PWD_COMMAND}`; export r; \
49446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49447 $(NORMAL_TARGET_EXPORTS) \
49448 echo "Doing install-html in $(TARGET_SUBDIR)/libhsail-rt"; \
49449 for flag in $(EXTRA_TARGET_FLAGS); do \
49450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49451 done; \
49452 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49455 "RANLIB=$${RANLIB}" \
49456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49457 install-html) \
49458 || exit 1
49459
49460@endif target-libhsail-rt
49461
49462.PHONY: maybe-installcheck-target-libhsail-rt installcheck-target-libhsail-rt
49463maybe-installcheck-target-libhsail-rt:
49464@if target-libhsail-rt
49465maybe-installcheck-target-libhsail-rt: installcheck-target-libhsail-rt
49466
49467installcheck-target-libhsail-rt: \
49468 configure-target-libhsail-rt
49469 @: $(MAKE); $(unstage)
49470 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49471 r=`${PWD_COMMAND}`; export r; \
49472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49473 $(NORMAL_TARGET_EXPORTS) \
49474 echo "Doing installcheck in $(TARGET_SUBDIR)/libhsail-rt"; \
49475 for flag in $(EXTRA_TARGET_FLAGS); do \
49476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49477 done; \
49478 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49481 "RANLIB=$${RANLIB}" \
49482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49483 installcheck) \
49484 || exit 1
49485
49486@endif target-libhsail-rt
49487
49488.PHONY: maybe-mostlyclean-target-libhsail-rt mostlyclean-target-libhsail-rt
49489maybe-mostlyclean-target-libhsail-rt:
49490@if target-libhsail-rt
49491maybe-mostlyclean-target-libhsail-rt: mostlyclean-target-libhsail-rt
49492
49493mostlyclean-target-libhsail-rt:
49494 @: $(MAKE); $(unstage)
49495 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49496 r=`${PWD_COMMAND}`; export r; \
49497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49498 $(NORMAL_TARGET_EXPORTS) \
49499 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libhsail-rt"; \
49500 for flag in $(EXTRA_TARGET_FLAGS); do \
49501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49502 done; \
49503 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49506 "RANLIB=$${RANLIB}" \
49507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49508 mostlyclean) \
49509 || exit 1
49510
49511@endif target-libhsail-rt
49512
49513.PHONY: maybe-clean-target-libhsail-rt clean-target-libhsail-rt
49514maybe-clean-target-libhsail-rt:
49515@if target-libhsail-rt
49516maybe-clean-target-libhsail-rt: clean-target-libhsail-rt
49517
49518clean-target-libhsail-rt:
49519 @: $(MAKE); $(unstage)
49520 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49521 r=`${PWD_COMMAND}`; export r; \
49522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49523 $(NORMAL_TARGET_EXPORTS) \
49524 echo "Doing clean in $(TARGET_SUBDIR)/libhsail-rt"; \
49525 for flag in $(EXTRA_TARGET_FLAGS); do \
49526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49527 done; \
49528 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49531 "RANLIB=$${RANLIB}" \
49532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49533 clean) \
49534 || exit 1
49535
49536@endif target-libhsail-rt
49537
49538.PHONY: maybe-distclean-target-libhsail-rt distclean-target-libhsail-rt
49539maybe-distclean-target-libhsail-rt:
49540@if target-libhsail-rt
49541maybe-distclean-target-libhsail-rt: distclean-target-libhsail-rt
49542
49543distclean-target-libhsail-rt:
49544 @: $(MAKE); $(unstage)
49545 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49546 r=`${PWD_COMMAND}`; export r; \
49547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49548 $(NORMAL_TARGET_EXPORTS) \
49549 echo "Doing distclean in $(TARGET_SUBDIR)/libhsail-rt"; \
49550 for flag in $(EXTRA_TARGET_FLAGS); do \
49551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49552 done; \
49553 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49556 "RANLIB=$${RANLIB}" \
49557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49558 distclean) \
49559 || exit 1
49560
49561@endif target-libhsail-rt
49562
49563.PHONY: maybe-maintainer-clean-target-libhsail-rt maintainer-clean-target-libhsail-rt
49564maybe-maintainer-clean-target-libhsail-rt:
49565@if target-libhsail-rt
49566maybe-maintainer-clean-target-libhsail-rt: maintainer-clean-target-libhsail-rt
49567
49568maintainer-clean-target-libhsail-rt:
49569 @: $(MAKE); $(unstage)
49570 @[ -f $(TARGET_SUBDIR)/libhsail-rt/Makefile ] || exit 0; \
49571 r=`${PWD_COMMAND}`; export r; \
49572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49573 $(NORMAL_TARGET_EXPORTS) \
49574 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libhsail-rt"; \
49575 for flag in $(EXTRA_TARGET_FLAGS); do \
49576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49577 done; \
49578 (cd $(TARGET_SUBDIR)/libhsail-rt && \
49579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49581 "RANLIB=$${RANLIB}" \
49582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49583 maintainer-clean) \
49584 || exit 1
49585
49586@endif target-libhsail-rt
49587
49588
49589
49590
49591
49592.PHONY: configure-target-libphobos maybe-configure-target-libphobos
49593maybe-configure-target-libphobos:
49594@if gcc-bootstrap
49595configure-target-libphobos: stage_current
49596@endif gcc-bootstrap
49597@if target-libphobos
49598maybe-configure-target-libphobos: configure-target-libphobos
49599configure-target-libphobos:
49600 @: $(MAKE); $(unstage)
49601 @r=`${PWD_COMMAND}`; export r; \
49602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49603 echo "Checking multilib configuration for libphobos..."; \
49604 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libphobos; \
49605 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libphobos/multilib.tmp 2> /dev/null; \
49606 if test -r $(TARGET_SUBDIR)/libphobos/multilib.out; then \
49607 if cmp -s $(TARGET_SUBDIR)/libphobos/multilib.tmp $(TARGET_SUBDIR)/libphobos/multilib.out; then \
49608 rm -f $(TARGET_SUBDIR)/libphobos/multilib.tmp; \
49609 else \
49610 rm -f $(TARGET_SUBDIR)/libphobos/Makefile; \
49611 mv $(TARGET_SUBDIR)/libphobos/multilib.tmp $(TARGET_SUBDIR)/libphobos/multilib.out; \
49612 fi; \
49613 else \
49614 mv $(TARGET_SUBDIR)/libphobos/multilib.tmp $(TARGET_SUBDIR)/libphobos/multilib.out; \
49615 fi; \
49616 test ! -f $(TARGET_SUBDIR)/libphobos/Makefile || exit 0; \
49617 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libphobos; \
49618 $(NORMAL_TARGET_EXPORTS) \
49619 echo Configuring in $(TARGET_SUBDIR)/libphobos; \
49620 cd "$(TARGET_SUBDIR)/libphobos" || exit 1; \
49621 case $(srcdir) in \
49622 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
49623 *) topdir=`echo $(TARGET_SUBDIR)/libphobos/ | \
49624 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
49625 esac; \
49626 module_srcdir=libphobos; \
49627 rm -f no-such-file || : ; \
49628 CONFIG_SITE=no-such-file $(SHELL) \
49629 $$s/$$module_srcdir/configure \
49630 --srcdir=$${topdir}/$$module_srcdir \
49631 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
49632 --target=${target_alias} \
49633 || exit 1
49634@endif target-libphobos
49635
49636
49637
49638
49639
49640.PHONY: all-target-libphobos maybe-all-target-libphobos
49641maybe-all-target-libphobos:
49642@if gcc-bootstrap
49643all-target-libphobos: stage_current
49644@endif gcc-bootstrap
49645@if target-libphobos
49646TARGET-target-libphobos=all
49647maybe-all-target-libphobos: all-target-libphobos
49648all-target-libphobos: configure-target-libphobos
49649 @: $(MAKE); $(unstage)
49650 @r=`${PWD_COMMAND}`; export r; \
49651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49652 $(NORMAL_TARGET_EXPORTS) \
49653 (cd $(TARGET_SUBDIR)/libphobos && \
49654 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
49655 $(TARGET-target-libphobos))
49656@endif target-libphobos
49657
49658
49659
49660
49661
49662.PHONY: check-target-libphobos maybe-check-target-libphobos
49663maybe-check-target-libphobos:
49664@if target-libphobos
49665maybe-check-target-libphobos: check-target-libphobos
49666
49667check-target-libphobos:
49668 @: $(MAKE); $(unstage)
49669 @r=`${PWD_COMMAND}`; export r; \
49670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49671 $(NORMAL_TARGET_EXPORTS) \
49672 (cd $(TARGET_SUBDIR)/libphobos && \
49673 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
49674
49675@endif target-libphobos
49676
49677.PHONY: install-target-libphobos maybe-install-target-libphobos
49678maybe-install-target-libphobos:
49679@if target-libphobos
49680maybe-install-target-libphobos: install-target-libphobos
49681
49682install-target-libphobos: installdirs
49683 @: $(MAKE); $(unstage)
49684 @r=`${PWD_COMMAND}`; export r; \
49685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49686 $(NORMAL_TARGET_EXPORTS) \
49687 (cd $(TARGET_SUBDIR)/libphobos && \
49688 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
49689
49690@endif target-libphobos
49691
49692.PHONY: install-strip-target-libphobos maybe-install-strip-target-libphobos
49693maybe-install-strip-target-libphobos:
49694@if target-libphobos
49695maybe-install-strip-target-libphobos: install-strip-target-libphobos
49696
49697install-strip-target-libphobos: installdirs
49698 @: $(MAKE); $(unstage)
49699 @r=`${PWD_COMMAND}`; export r; \
49700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49701 $(NORMAL_TARGET_EXPORTS) \
49702 (cd $(TARGET_SUBDIR)/libphobos && \
49703 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
49704
49705@endif target-libphobos
49706
49707# Other targets (info, dvi, pdf, etc.)
49708
49709.PHONY: maybe-info-target-libphobos info-target-libphobos
49710maybe-info-target-libphobos:
49711@if target-libphobos
49712maybe-info-target-libphobos: info-target-libphobos
49713
49714info-target-libphobos: \
49715 configure-target-libphobos
49716 @: $(MAKE); $(unstage)
49717 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49718 r=`${PWD_COMMAND}`; export r; \
49719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49720 $(NORMAL_TARGET_EXPORTS) \
49721 echo "Doing info in $(TARGET_SUBDIR)/libphobos"; \
49722 for flag in $(EXTRA_TARGET_FLAGS); do \
49723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49724 done; \
49725 (cd $(TARGET_SUBDIR)/libphobos && \
49726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49728 "RANLIB=$${RANLIB}" \
49729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49730 info) \
49731 || exit 1
49732
49733@endif target-libphobos
49734
49735.PHONY: maybe-dvi-target-libphobos dvi-target-libphobos
49736maybe-dvi-target-libphobos:
49737@if target-libphobos
49738maybe-dvi-target-libphobos: dvi-target-libphobos
49739
49740dvi-target-libphobos: \
49741 configure-target-libphobos
49742 @: $(MAKE); $(unstage)
49743 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49744 r=`${PWD_COMMAND}`; export r; \
49745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49746 $(NORMAL_TARGET_EXPORTS) \
49747 echo "Doing dvi in $(TARGET_SUBDIR)/libphobos"; \
49748 for flag in $(EXTRA_TARGET_FLAGS); do \
49749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49750 done; \
49751 (cd $(TARGET_SUBDIR)/libphobos && \
49752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49754 "RANLIB=$${RANLIB}" \
49755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49756 dvi) \
49757 || exit 1
49758
49759@endif target-libphobos
49760
49761.PHONY: maybe-pdf-target-libphobos pdf-target-libphobos
49762maybe-pdf-target-libphobos:
49763@if target-libphobos
49764maybe-pdf-target-libphobos: pdf-target-libphobos
49765
49766pdf-target-libphobos: \
49767 configure-target-libphobos
49768 @: $(MAKE); $(unstage)
49769 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49770 r=`${PWD_COMMAND}`; export r; \
49771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49772 $(NORMAL_TARGET_EXPORTS) \
49773 echo "Doing pdf in $(TARGET_SUBDIR)/libphobos"; \
49774 for flag in $(EXTRA_TARGET_FLAGS); do \
49775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49776 done; \
49777 (cd $(TARGET_SUBDIR)/libphobos && \
49778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49780 "RANLIB=$${RANLIB}" \
49781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49782 pdf) \
49783 || exit 1
49784
49785@endif target-libphobos
49786
49787.PHONY: maybe-html-target-libphobos html-target-libphobos
49788maybe-html-target-libphobos:
49789@if target-libphobos
49790maybe-html-target-libphobos: html-target-libphobos
49791
49792html-target-libphobos: \
49793 configure-target-libphobos
49794 @: $(MAKE); $(unstage)
49795 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49796 r=`${PWD_COMMAND}`; export r; \
49797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49798 $(NORMAL_TARGET_EXPORTS) \
49799 echo "Doing html in $(TARGET_SUBDIR)/libphobos"; \
49800 for flag in $(EXTRA_TARGET_FLAGS); do \
49801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49802 done; \
49803 (cd $(TARGET_SUBDIR)/libphobos && \
49804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49806 "RANLIB=$${RANLIB}" \
49807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49808 html) \
49809 || exit 1
49810
49811@endif target-libphobos
49812
49813.PHONY: maybe-TAGS-target-libphobos TAGS-target-libphobos
49814maybe-TAGS-target-libphobos:
49815@if target-libphobos
49816maybe-TAGS-target-libphobos: TAGS-target-libphobos
49817
49818TAGS-target-libphobos: \
49819 configure-target-libphobos
49820 @: $(MAKE); $(unstage)
49821 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49822 r=`${PWD_COMMAND}`; export r; \
49823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49824 $(NORMAL_TARGET_EXPORTS) \
49825 echo "Doing TAGS in $(TARGET_SUBDIR)/libphobos"; \
49826 for flag in $(EXTRA_TARGET_FLAGS); do \
49827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49828 done; \
49829 (cd $(TARGET_SUBDIR)/libphobos && \
49830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49832 "RANLIB=$${RANLIB}" \
49833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49834 TAGS) \
49835 || exit 1
49836
49837@endif target-libphobos
49838
49839.PHONY: maybe-install-info-target-libphobos install-info-target-libphobos
49840maybe-install-info-target-libphobos:
49841@if target-libphobos
49842maybe-install-info-target-libphobos: install-info-target-libphobos
49843
49844install-info-target-libphobos: \
49845 configure-target-libphobos \
49846 info-target-libphobos
49847 @: $(MAKE); $(unstage)
49848 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49849 r=`${PWD_COMMAND}`; export r; \
49850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49851 $(NORMAL_TARGET_EXPORTS) \
49852 echo "Doing install-info in $(TARGET_SUBDIR)/libphobos"; \
49853 for flag in $(EXTRA_TARGET_FLAGS); do \
49854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49855 done; \
49856 (cd $(TARGET_SUBDIR)/libphobos && \
49857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49859 "RANLIB=$${RANLIB}" \
49860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49861 install-info) \
49862 || exit 1
49863
49864@endif target-libphobos
49865
49866.PHONY: maybe-install-pdf-target-libphobos install-pdf-target-libphobos
49867maybe-install-pdf-target-libphobos:
49868@if target-libphobos
49869maybe-install-pdf-target-libphobos: install-pdf-target-libphobos
49870
49871install-pdf-target-libphobos: \
49872 configure-target-libphobos \
49873 pdf-target-libphobos
49874 @: $(MAKE); $(unstage)
49875 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49876 r=`${PWD_COMMAND}`; export r; \
49877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49878 $(NORMAL_TARGET_EXPORTS) \
49879 echo "Doing install-pdf in $(TARGET_SUBDIR)/libphobos"; \
49880 for flag in $(EXTRA_TARGET_FLAGS); do \
49881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49882 done; \
49883 (cd $(TARGET_SUBDIR)/libphobos && \
49884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49886 "RANLIB=$${RANLIB}" \
49887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49888 install-pdf) \
49889 || exit 1
49890
49891@endif target-libphobos
49892
49893.PHONY: maybe-install-html-target-libphobos install-html-target-libphobos
49894maybe-install-html-target-libphobos:
49895@if target-libphobos
49896maybe-install-html-target-libphobos: install-html-target-libphobos
49897
49898install-html-target-libphobos: \
49899 configure-target-libphobos \
49900 html-target-libphobos
49901 @: $(MAKE); $(unstage)
49902 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49903 r=`${PWD_COMMAND}`; export r; \
49904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49905 $(NORMAL_TARGET_EXPORTS) \
49906 echo "Doing install-html in $(TARGET_SUBDIR)/libphobos"; \
49907 for flag in $(EXTRA_TARGET_FLAGS); do \
49908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49909 done; \
49910 (cd $(TARGET_SUBDIR)/libphobos && \
49911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49913 "RANLIB=$${RANLIB}" \
49914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49915 install-html) \
49916 || exit 1
49917
49918@endif target-libphobos
49919
49920.PHONY: maybe-installcheck-target-libphobos installcheck-target-libphobos
49921maybe-installcheck-target-libphobos:
49922@if target-libphobos
49923maybe-installcheck-target-libphobos: installcheck-target-libphobos
49924
49925installcheck-target-libphobos: \
49926 configure-target-libphobos
49927 @: $(MAKE); $(unstage)
49928 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49929 r=`${PWD_COMMAND}`; export r; \
49930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49931 $(NORMAL_TARGET_EXPORTS) \
49932 echo "Doing installcheck in $(TARGET_SUBDIR)/libphobos"; \
49933 for flag in $(EXTRA_TARGET_FLAGS); do \
49934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49935 done; \
49936 (cd $(TARGET_SUBDIR)/libphobos && \
49937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49939 "RANLIB=$${RANLIB}" \
49940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49941 installcheck) \
49942 || exit 1
49943
49944@endif target-libphobos
49945
49946.PHONY: maybe-mostlyclean-target-libphobos mostlyclean-target-libphobos
49947maybe-mostlyclean-target-libphobos:
49948@if target-libphobos
49949maybe-mostlyclean-target-libphobos: mostlyclean-target-libphobos
49950
49951mostlyclean-target-libphobos:
49952 @: $(MAKE); $(unstage)
49953 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49954 r=`${PWD_COMMAND}`; export r; \
49955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49956 $(NORMAL_TARGET_EXPORTS) \
49957 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libphobos"; \
49958 for flag in $(EXTRA_TARGET_FLAGS); do \
49959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49960 done; \
49961 (cd $(TARGET_SUBDIR)/libphobos && \
49962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49964 "RANLIB=$${RANLIB}" \
49965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49966 mostlyclean) \
49967 || exit 1
49968
49969@endif target-libphobos
49970
49971.PHONY: maybe-clean-target-libphobos clean-target-libphobos
49972maybe-clean-target-libphobos:
49973@if target-libphobos
49974maybe-clean-target-libphobos: clean-target-libphobos
49975
49976clean-target-libphobos:
49977 @: $(MAKE); $(unstage)
49978 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
49979 r=`${PWD_COMMAND}`; export r; \
49980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49981 $(NORMAL_TARGET_EXPORTS) \
49982 echo "Doing clean in $(TARGET_SUBDIR)/libphobos"; \
49983 for flag in $(EXTRA_TARGET_FLAGS); do \
49984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49985 done; \
49986 (cd $(TARGET_SUBDIR)/libphobos && \
49987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49989 "RANLIB=$${RANLIB}" \
49990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49991 clean) \
49992 || exit 1
49993
49994@endif target-libphobos
49995
49996.PHONY: maybe-distclean-target-libphobos distclean-target-libphobos
49997maybe-distclean-target-libphobos:
49998@if target-libphobos
49999maybe-distclean-target-libphobos: distclean-target-libphobos
50000
50001distclean-target-libphobos:
50002 @: $(MAKE); $(unstage)
50003 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
50004 r=`${PWD_COMMAND}`; export r; \
50005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50006 $(NORMAL_TARGET_EXPORTS) \
50007 echo "Doing distclean in $(TARGET_SUBDIR)/libphobos"; \
50008 for flag in $(EXTRA_TARGET_FLAGS); do \
50009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50010 done; \
50011 (cd $(TARGET_SUBDIR)/libphobos && \
50012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50014 "RANLIB=$${RANLIB}" \
50015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
50016 distclean) \
50017 || exit 1
50018
50019@endif target-libphobos
50020
50021.PHONY: maybe-maintainer-clean-target-libphobos maintainer-clean-target-libphobos
50022maybe-maintainer-clean-target-libphobos:
50023@if target-libphobos
50024maybe-maintainer-clean-target-libphobos: maintainer-clean-target-libphobos
50025
50026maintainer-clean-target-libphobos:
50027 @: $(MAKE); $(unstage)
50028 @[ -f $(TARGET_SUBDIR)/libphobos/Makefile ] || exit 0; \
50029 r=`${PWD_COMMAND}`; export r; \
50030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50031 $(NORMAL_TARGET_EXPORTS) \
50032 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libphobos"; \
50033 for flag in $(EXTRA_TARGET_FLAGS); do \
50034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50035 done; \
50036 (cd $(TARGET_SUBDIR)/libphobos && \
50037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50039 "RANLIB=$${RANLIB}" \
50040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
50041 maintainer-clean) \
50042 || exit 1
50043
50044@endif target-libphobos
50045
50046
50047
50048
50049
a90ef4bf
JM
50050.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
50051maybe-configure-target-libtermcap:
4f0ef2d8 50052@if gcc-bootstrap
a90ef4bf 50053configure-target-libtermcap: stage_current
4f0ef2d8 50054@endif gcc-bootstrap
a90ef4bf
JM
50055@if target-libtermcap
50056maybe-configure-target-libtermcap: configure-target-libtermcap
50057configure-target-libtermcap:
0aed8855
PB
50058 @: $(MAKE); $(unstage)
50059 @r=`${PWD_COMMAND}`; export r; \
50060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 50061 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
50062 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
50063 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
50064 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
50065 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
50066 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 50067 else \
a90ef4bf
JM
50068 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
50069 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
50070 fi; \
50071 else \
a90ef4bf 50072 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 50073 fi; \
a90ef4bf 50074 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 50075 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 50076 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
50077 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
50078 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 50079 case $(srcdir) in \
b00612cc 50080 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 50081 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 50082 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 50083 esac; \
1b6c0831 50084 module_srcdir=libtermcap; \
4fa63067 50085 rm -f no-such-file || : ; \
1b6c0831
L
50086 CONFIG_SITE=no-such-file $(SHELL) \
50087 $$s/$$module_srcdir/configure \
50088 --srcdir=$${topdir}/$$module_srcdir \
4b900473 50089 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 50090 --target=${target_alias} \
e2b9e2dc 50091 || exit 1
a90ef4bf 50092@endif target-libtermcap
e2b9e2dc 50093
a7254363
PB
50094
50095
d545f33b
PB
50096
50097
a90ef4bf
JM
50098.PHONY: all-target-libtermcap maybe-all-target-libtermcap
50099maybe-all-target-libtermcap:
4f0ef2d8 50100@if gcc-bootstrap
a90ef4bf 50101all-target-libtermcap: stage_current
4f0ef2d8 50102@endif gcc-bootstrap
a90ef4bf
JM
50103@if target-libtermcap
50104TARGET-target-libtermcap=all
50105maybe-all-target-libtermcap: all-target-libtermcap
50106all-target-libtermcap: configure-target-libtermcap
0aed8855 50107 @: $(MAKE); $(unstage)
b40e3958
L
50108 @r=`${PWD_COMMAND}`; export r; \
50109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 50110 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 50111 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 50112 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
50113 $(TARGET-target-libtermcap))
50114@endif target-libtermcap
e393202e 50115
a7254363
PB
50116
50117
d545f33b
PB
50118
50119
a90ef4bf
JM
50120.PHONY: check-target-libtermcap maybe-check-target-libtermcap
50121maybe-check-target-libtermcap:
50122@if target-libtermcap
50123maybe-check-target-libtermcap: check-target-libtermcap
e393202e 50124
4fa63067 50125# Dummy target for uncheckable module.
a90ef4bf 50126check-target-libtermcap:
e393202e 50127
a90ef4bf 50128@endif target-libtermcap
e393202e 50129
a90ef4bf
JM
50130.PHONY: install-target-libtermcap maybe-install-target-libtermcap
50131maybe-install-target-libtermcap:
50132@if target-libtermcap
50133maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 50134
a90ef4bf 50135install-target-libtermcap: installdirs
0aed8855 50136 @: $(MAKE); $(unstage)
b40e3958
L
50137 @r=`${PWD_COMMAND}`; export r; \
50138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50139 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 50140 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 50141 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 50142
a90ef4bf 50143@endif target-libtermcap
56a8fe78 50144
a90ef4bf
JM
50145.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
50146maybe-install-strip-target-libtermcap:
50147@if target-libtermcap
50148maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 50149
a90ef4bf 50150install-strip-target-libtermcap: installdirs
0aed8855 50151 @: $(MAKE); $(unstage)
a90ef4bf 50152 @r=`${PWD_COMMAND}`; export r; \
6d389afc 50153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 50154 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
50155 (cd $(TARGET_SUBDIR)/libtermcap && \
50156 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 50157
a90ef4bf 50158@endif target-libtermcap
6d389afc 50159
a90ef4bf 50160# Other targets (info, dvi, pdf, etc.)
16ae0395 50161
a90ef4bf
JM
50162.PHONY: maybe-info-target-libtermcap info-target-libtermcap
50163maybe-info-target-libtermcap:
50164@if target-libtermcap
50165maybe-info-target-libtermcap: info-target-libtermcap
50166
50167info-target-libtermcap: \
50168 configure-target-libtermcap
0aed8855 50169 @: $(MAKE); $(unstage)
22121df0 50170 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 50171 r=`${PWD_COMMAND}`; export r; \
b40e3958 50172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50173 $(NORMAL_TARGET_EXPORTS) \
22121df0 50174 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
50175 for flag in $(EXTRA_TARGET_FLAGS); do \
50176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50177 done; \
a90ef4bf 50178 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
50179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50181 "RANLIB=$${RANLIB}" \
0c24b341 50182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 50183 info) \
4fa63067 50184 || exit 1
ce5b542e 50185
a90ef4bf 50186@endif target-libtermcap
ce5b542e 50187
a90ef4bf
JM
50188.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
50189maybe-dvi-target-libtermcap:
50190@if target-libtermcap
50191maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 50192
a90ef4bf
JM
50193dvi-target-libtermcap: \
50194 configure-target-libtermcap
0aed8855 50195 @: $(MAKE); $(unstage)
22121df0 50196 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
50197 r=`${PWD_COMMAND}`; export r; \
50198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50199 $(NORMAL_TARGET_EXPORTS) \
22121df0 50200 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
50201 for flag in $(EXTRA_TARGET_FLAGS); do \
50202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50203 done; \
a90ef4bf 50204 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
50205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50207 "RANLIB=$${RANLIB}" \
0c24b341 50208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 50209 dvi) \
e2b9e2dc
NN
50210 || exit 1
50211
a90ef4bf 50212@endif target-libtermcap
e393202e 50213
a90ef4bf
JM
50214.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
50215maybe-pdf-target-libtermcap:
50216@if target-libtermcap
50217maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 50218
a90ef4bf
JM
50219pdf-target-libtermcap: \
50220 configure-target-libtermcap
a3ca38d2 50221 @: $(MAKE); $(unstage)
22121df0 50222 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
50223 r=`${PWD_COMMAND}`; export r; \
50224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50225 $(NORMAL_TARGET_EXPORTS) \
22121df0 50226 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
50227 for flag in $(EXTRA_TARGET_FLAGS); do \
50228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50229 done; \
a90ef4bf 50230 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
50231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50233 "RANLIB=$${RANLIB}" \
0c24b341 50234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 50235 pdf) \
a3ca38d2
DD
50236 || exit 1
50237
a90ef4bf 50238@endif target-libtermcap
a3ca38d2 50239
a90ef4bf
JM
50240.PHONY: maybe-html-target-libtermcap html-target-libtermcap
50241maybe-html-target-libtermcap:
50242@if target-libtermcap
50243maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 50244
a90ef4bf
JM
50245html-target-libtermcap: \
50246 configure-target-libtermcap
108a6f8e 50247 @: $(MAKE); $(unstage)
22121df0 50248 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
50249 r=`${PWD_COMMAND}`; export r; \
50250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50251 $(NORMAL_TARGET_EXPORTS) \
22121df0 50252 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
50253 for flag in $(EXTRA_TARGET_FLAGS); do \
50254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50255 done; \
a90ef4bf 50256 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
50257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50259 "RANLIB=$${RANLIB}" \
0c24b341 50260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 50261 html) \
108a6f8e
CD
50262 || exit 1
50263
a90ef4bf 50264@endif target-libtermcap
108a6f8e 50265
a90ef4bf
JM
50266.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
50267maybe-TAGS-target-libtermcap:
50268@if target-libtermcap
50269maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 50270
a90ef4bf
JM
50271TAGS-target-libtermcap: \
50272 configure-target-libtermcap
0aed8855 50273 @: $(MAKE); $(unstage)
22121df0 50274 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
50275 r=`${PWD_COMMAND}`; export r; \
50276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50277 $(NORMAL_TARGET_EXPORTS) \
22121df0 50278 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
50279 for flag in $(EXTRA_TARGET_FLAGS); do \
50280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50281 done; \
a90ef4bf 50282 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
50283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50285 "RANLIB=$${RANLIB}" \
0c24b341 50286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 50287 TAGS) \
4fa63067 50288 || exit 1
3866be5d 50289
a90ef4bf 50290@endif target-libtermcap
3866be5d 50291
a90ef4bf
JM
50292.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
50293maybe-install-info-target-libtermcap:
50294@if target-libtermcap
50295maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 50296
a90ef4bf
JM
50297install-info-target-libtermcap: \
50298 configure-target-libtermcap \
50299 info-target-libtermcap
0aed8855 50300 @: $(MAKE); $(unstage)
22121df0 50301 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 50302 r=`${PWD_COMMAND}`; export r; \
b40e3958 50303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50304 $(NORMAL_TARGET_EXPORTS) \
22121df0 50305 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
50306 for flag in $(EXTRA_TARGET_FLAGS); do \
50307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50308 done; \
a90ef4bf 50309 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
50310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50312 "RANLIB=$${RANLIB}" \
0c24b341 50313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 50314 install-info) \
4fa63067 50315 || exit 1
e393202e 50316
a90ef4bf 50317@endif target-libtermcap
3866be5d 50318
a90ef4bf
JM
50319.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
50320maybe-install-pdf-target-libtermcap:
50321@if target-libtermcap
50322maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 50323
a90ef4bf
JM
50324install-pdf-target-libtermcap: \
50325 configure-target-libtermcap \
50326 pdf-target-libtermcap
0aed8855 50327 @: $(MAKE); $(unstage)
22121df0 50328 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
50329 r=`${PWD_COMMAND}`; export r; \
50330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50331 $(NORMAL_TARGET_EXPORTS) \
22121df0 50332 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
50333 for flag in $(EXTRA_TARGET_FLAGS); do \
50334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50335 done; \
a90ef4bf 50336 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
50337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50339 "RANLIB=$${RANLIB}" \
0c24b341 50340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 50341 install-pdf) \
e2b9e2dc
NN
50342 || exit 1
50343
a90ef4bf 50344@endif target-libtermcap
e393202e 50345
a90ef4bf
JM
50346.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
50347maybe-install-html-target-libtermcap:
50348@if target-libtermcap
50349maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 50350
a90ef4bf
JM
50351install-html-target-libtermcap: \
50352 configure-target-libtermcap \
50353 html-target-libtermcap
0aed8855 50354 @: $(MAKE); $(unstage)
22121df0 50355 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
50356 r=`${PWD_COMMAND}`; export r; \
50357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50358 $(NORMAL_TARGET_EXPORTS) \
22121df0 50359 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
50360 for flag in $(EXTRA_TARGET_FLAGS); do \
50361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50362 done; \
a90ef4bf 50363 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
50364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50366 "RANLIB=$${RANLIB}" \
0c24b341 50367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 50368 install-html) \
4fa63067 50369 || exit 1
3866be5d 50370
a90ef4bf 50371@endif target-libtermcap
3866be5d 50372
a90ef4bf
JM
50373.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
50374maybe-installcheck-target-libtermcap:
50375@if target-libtermcap
50376maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 50377
a90ef4bf
JM
50378installcheck-target-libtermcap: \
50379 configure-target-libtermcap
0aed8855 50380 @: $(MAKE); $(unstage)
22121df0 50381 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 50382 r=`${PWD_COMMAND}`; export r; \
b40e3958 50383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50384 $(NORMAL_TARGET_EXPORTS) \
22121df0 50385 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
50386 for flag in $(EXTRA_TARGET_FLAGS); do \
50387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50388 done; \
a90ef4bf 50389 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
50390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50392 "RANLIB=$${RANLIB}" \
0c24b341 50393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 50394 installcheck) \
4fa63067 50395 || exit 1
3866be5d 50396
a90ef4bf
JM
50397@endif target-libtermcap
50398
50399.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
50400maybe-mostlyclean-target-libtermcap:
50401@if target-libtermcap
50402maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
50403
50404# libtermcap doesn't support mostlyclean.
50405mostlyclean-target-libtermcap:
50406
50407@endif target-libtermcap
3866be5d 50408
a90ef4bf
JM
50409.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
50410maybe-clean-target-libtermcap:
50411@if target-libtermcap
50412maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 50413
a90ef4bf
JM
50414# libtermcap doesn't support clean.
50415clean-target-libtermcap:
15723a45 50416
a90ef4bf 50417@endif target-libtermcap
e90269c8 50418
a90ef4bf
JM
50419.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
50420maybe-distclean-target-libtermcap:
50421@if target-libtermcap
50422maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 50423
a90ef4bf
JM
50424# libtermcap doesn't support distclean.
50425distclean-target-libtermcap:
50426
50427@endif target-libtermcap
50428
50429.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
50430maybe-maintainer-clean-target-libtermcap:
50431@if target-libtermcap
50432maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
50433
50434# libtermcap doesn't support maintainer-clean.
50435maintainer-clean-target-libtermcap:
50436
50437@endif target-libtermcap
50438
50439
50440
50441
50442
50443.PHONY: configure-target-winsup maybe-configure-target-winsup
50444maybe-configure-target-winsup:
4f0ef2d8 50445@if gcc-bootstrap
a90ef4bf 50446configure-target-winsup: stage_current
4f0ef2d8 50447@endif gcc-bootstrap
a90ef4bf
JM
50448@if target-winsup
50449maybe-configure-target-winsup: configure-target-winsup
50450configure-target-winsup:
0aed8855
PB
50451 @: $(MAKE); $(unstage)
50452 @r=`${PWD_COMMAND}`; export r; \
50453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 50454 echo "Checking multilib configuration for winsup..."; \
22121df0
L
50455 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
50456 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
50457 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
50458 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
50459 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 50460 else \
a90ef4bf
JM
50461 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
50462 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
50463 fi; \
50464 else \
a90ef4bf 50465 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 50466 fi; \
a90ef4bf 50467 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 50468 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 50469 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
50470 echo Configuring in $(TARGET_SUBDIR)/winsup; \
50471 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 50472 case $(srcdir) in \
b00612cc 50473 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 50474 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 50475 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 50476 esac; \
1b6c0831 50477 module_srcdir=winsup; \
bba45b8b 50478 rm -f no-such-file || : ; \
1b6c0831
L
50479 CONFIG_SITE=no-such-file $(SHELL) \
50480 $$s/$$module_srcdir/configure \
50481 --srcdir=$${topdir}/$$module_srcdir \
4b900473 50482 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 50483 --target=${target_alias} \
bba45b8b 50484 || exit 1
a90ef4bf 50485@endif target-winsup
e393202e 50486
a7254363
PB
50487
50488
d545f33b
PB
50489
50490
a90ef4bf
JM
50491.PHONY: all-target-winsup maybe-all-target-winsup
50492maybe-all-target-winsup:
4f0ef2d8 50493@if gcc-bootstrap
a90ef4bf 50494all-target-winsup: stage_current
4f0ef2d8 50495@endif gcc-bootstrap
a90ef4bf
JM
50496@if target-winsup
50497TARGET-target-winsup=all
50498maybe-all-target-winsup: all-target-winsup
50499all-target-winsup: configure-target-winsup
0aed8855 50500 @: $(MAKE); $(unstage)
b40e3958
L
50501 @r=`${PWD_COMMAND}`; export r; \
50502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 50503 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 50504 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 50505 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
50506 $(TARGET-target-winsup))
50507@endif target-winsup
e393202e 50508
a7254363
PB
50509
50510
d545f33b
PB
50511
50512
a90ef4bf
JM
50513.PHONY: check-target-winsup maybe-check-target-winsup
50514maybe-check-target-winsup:
50515@if target-winsup
50516maybe-check-target-winsup: check-target-winsup
16ae0395 50517
a90ef4bf 50518check-target-winsup:
0aed8855 50519 @: $(MAKE); $(unstage)
b40e3958
L
50520 @r=`${PWD_COMMAND}`; export r; \
50521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50522 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 50523 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 50524 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 50525
a90ef4bf 50526@endif target-winsup
e393202e 50527
a90ef4bf
JM
50528.PHONY: install-target-winsup maybe-install-target-winsup
50529maybe-install-target-winsup:
50530@if target-winsup
50531maybe-install-target-winsup: install-target-winsup
4fa63067 50532
a90ef4bf 50533install-target-winsup: installdirs
0aed8855 50534 @: $(MAKE); $(unstage)
4fa63067
NN
50535 @r=`${PWD_COMMAND}`; export r; \
50536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50537 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 50538 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 50539 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 50540
a90ef4bf 50541@endif target-winsup
4fa63067 50542
a90ef4bf
JM
50543.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
50544maybe-install-strip-target-winsup:
50545@if target-winsup
50546maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 50547
a90ef4bf 50548install-strip-target-winsup: installdirs
9b980aa1
RW
50549 @: $(MAKE); $(unstage)
50550 @r=`${PWD_COMMAND}`; export r; \
50551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50552 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 50553 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
50554 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
50555
a90ef4bf 50556@endif target-winsup
9b980aa1 50557
56a8fe78 50558# Other targets (info, dvi, pdf, etc.)
4fa63067 50559
a90ef4bf
JM
50560.PHONY: maybe-info-target-winsup info-target-winsup
50561maybe-info-target-winsup:
50562@if target-winsup
50563maybe-info-target-winsup: info-target-winsup
4fa63067 50564
a90ef4bf
JM
50565info-target-winsup: \
50566 configure-target-winsup
0aed8855 50567 @: $(MAKE); $(unstage)
22121df0 50568 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
50569 r=`${PWD_COMMAND}`; export r; \
50570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50571 $(NORMAL_TARGET_EXPORTS) \
22121df0 50572 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
50573 for flag in $(EXTRA_TARGET_FLAGS); do \
50574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50575 done; \
a90ef4bf 50576 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
50577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50579 "RANLIB=$${RANLIB}" \
0c24b341 50580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 50581 info) \
4fa63067
NN
50582 || exit 1
50583
a90ef4bf 50584@endif target-winsup
4fa63067 50585
a90ef4bf
JM
50586.PHONY: maybe-dvi-target-winsup dvi-target-winsup
50587maybe-dvi-target-winsup:
50588@if target-winsup
50589maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 50590
a90ef4bf
JM
50591dvi-target-winsup: \
50592 configure-target-winsup
0aed8855 50593 @: $(MAKE); $(unstage)
22121df0 50594 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
50595 r=`${PWD_COMMAND}`; export r; \
50596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50597 $(NORMAL_TARGET_EXPORTS) \
22121df0 50598 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
50599 for flag in $(EXTRA_TARGET_FLAGS); do \
50600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50601 done; \
a90ef4bf 50602 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
50603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50605 "RANLIB=$${RANLIB}" \
0c24b341 50606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 50607 dvi) \
4fa63067
NN
50608 || exit 1
50609
a90ef4bf 50610@endif target-winsup
4fa63067 50611
a90ef4bf
JM
50612.PHONY: maybe-pdf-target-winsup pdf-target-winsup
50613maybe-pdf-target-winsup:
50614@if target-winsup
50615maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 50616
a90ef4bf
JM
50617pdf-target-winsup: \
50618 configure-target-winsup
56a8fe78 50619 @: $(MAKE); $(unstage)
22121df0 50620 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
50621 r=`${PWD_COMMAND}`; export r; \
50622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50623 $(NORMAL_TARGET_EXPORTS) \
22121df0 50624 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
50625 for flag in $(EXTRA_TARGET_FLAGS); do \
50626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50627 done; \
a90ef4bf 50628 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
50629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50631 "RANLIB=$${RANLIB}" \
0c24b341 50632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
50633 pdf) \
50634 || exit 1
50635
a90ef4bf 50636@endif target-winsup
56a8fe78 50637
a90ef4bf
JM
50638.PHONY: maybe-html-target-winsup html-target-winsup
50639maybe-html-target-winsup:
50640@if target-winsup
50641maybe-html-target-winsup: html-target-winsup
6d389afc 50642
a90ef4bf
JM
50643html-target-winsup: \
50644 configure-target-winsup
0aed8855 50645 @: $(MAKE); $(unstage)
22121df0 50646 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
50647 r=`${PWD_COMMAND}`; export r; \
50648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 50649 $(NORMAL_TARGET_EXPORTS) \
22121df0 50650 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
50651 for flag in $(EXTRA_TARGET_FLAGS); do \
50652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50653 done; \
a90ef4bf 50654 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
50655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50657 "RANLIB=$${RANLIB}" \
0c24b341 50658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
50659 html) \
50660 || exit 1
50661
a90ef4bf 50662@endif target-winsup
6d389afc 50663
a90ef4bf
JM
50664.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
50665maybe-TAGS-target-winsup:
50666@if target-winsup
50667maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 50668
a90ef4bf
JM
50669TAGS-target-winsup: \
50670 configure-target-winsup
0aed8855 50671 @: $(MAKE); $(unstage)
22121df0 50672 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
50673 r=`${PWD_COMMAND}`; export r; \
50674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50675 $(NORMAL_TARGET_EXPORTS) \
22121df0 50676 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
50677 for flag in $(EXTRA_TARGET_FLAGS); do \
50678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50679 done; \
a90ef4bf 50680 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
50681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50683 "RANLIB=$${RANLIB}" \
0c24b341 50684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 50685 TAGS) \
4fa63067
NN
50686 || exit 1
50687
a90ef4bf 50688@endif target-winsup
4fa63067 50689
a90ef4bf
JM
50690.PHONY: maybe-install-info-target-winsup install-info-target-winsup
50691maybe-install-info-target-winsup:
50692@if target-winsup
50693maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 50694
a90ef4bf
JM
50695install-info-target-winsup: \
50696 configure-target-winsup \
50697 info-target-winsup
0aed8855 50698 @: $(MAKE); $(unstage)
22121df0 50699 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
50700 r=`${PWD_COMMAND}`; export r; \
50701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50702 $(NORMAL_TARGET_EXPORTS) \
22121df0 50703 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
50704 for flag in $(EXTRA_TARGET_FLAGS); do \
50705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50706 done; \
a90ef4bf 50707 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
50708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50710 "RANLIB=$${RANLIB}" \
0c24b341 50711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 50712 install-info) \
4fa63067
NN
50713 || exit 1
50714
a90ef4bf 50715@endif target-winsup
4fa63067 50716
a90ef4bf
JM
50717.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
50718maybe-install-pdf-target-winsup:
50719@if target-winsup
50720maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 50721
a90ef4bf
JM
50722install-pdf-target-winsup: \
50723 configure-target-winsup \
50724 pdf-target-winsup
a3ca38d2 50725 @: $(MAKE); $(unstage)
22121df0 50726 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
50727 r=`${PWD_COMMAND}`; export r; \
50728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50729 $(NORMAL_TARGET_EXPORTS) \
22121df0 50730 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
50731 for flag in $(EXTRA_TARGET_FLAGS); do \
50732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50733 done; \
a90ef4bf 50734 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
50735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50737 "RANLIB=$${RANLIB}" \
0c24b341 50738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
50739 install-pdf) \
50740 || exit 1
50741
a90ef4bf 50742@endif target-winsup
a3ca38d2 50743
a90ef4bf
JM
50744.PHONY: maybe-install-html-target-winsup install-html-target-winsup
50745maybe-install-html-target-winsup:
50746@if target-winsup
50747maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 50748
a90ef4bf
JM
50749install-html-target-winsup: \
50750 configure-target-winsup \
50751 html-target-winsup
108a6f8e 50752 @: $(MAKE); $(unstage)
22121df0 50753 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
50754 r=`${PWD_COMMAND}`; export r; \
50755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50756 $(NORMAL_TARGET_EXPORTS) \
22121df0 50757 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
50758 for flag in $(EXTRA_TARGET_FLAGS); do \
50759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50760 done; \
a90ef4bf 50761 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
50762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50764 "RANLIB=$${RANLIB}" \
0c24b341 50765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
50766 install-html) \
50767 || exit 1
50768
a90ef4bf 50769@endif target-winsup
108a6f8e 50770
a90ef4bf
JM
50771.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
50772maybe-installcheck-target-winsup:
50773@if target-winsup
50774maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 50775
a90ef4bf
JM
50776installcheck-target-winsup: \
50777 configure-target-winsup
0aed8855 50778 @: $(MAKE); $(unstage)
22121df0 50779 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
50780 r=`${PWD_COMMAND}`; export r; \
50781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50782 $(NORMAL_TARGET_EXPORTS) \
22121df0 50783 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
50784 for flag in $(EXTRA_TARGET_FLAGS); do \
50785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50786 done; \
a90ef4bf 50787 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
50788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50790 "RANLIB=$${RANLIB}" \
0c24b341 50791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 50792 installcheck) \
4fa63067
NN
50793 || exit 1
50794
a90ef4bf 50795@endif target-winsup
4fa63067 50796
a90ef4bf
JM
50797.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
50798maybe-mostlyclean-target-winsup:
50799@if target-winsup
50800maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 50801
a90ef4bf 50802mostlyclean-target-winsup:
0aed8855 50803 @: $(MAKE); $(unstage)
22121df0 50804 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
50805 r=`${PWD_COMMAND}`; export r; \
50806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50807 $(NORMAL_TARGET_EXPORTS) \
22121df0 50808 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
50809 for flag in $(EXTRA_TARGET_FLAGS); do \
50810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50811 done; \
a90ef4bf 50812 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
50813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50815 "RANLIB=$${RANLIB}" \
0c24b341 50816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 50817 mostlyclean) \
4fa63067
NN
50818 || exit 1
50819
a90ef4bf 50820@endif target-winsup
4fa63067 50821
a90ef4bf
JM
50822.PHONY: maybe-clean-target-winsup clean-target-winsup
50823maybe-clean-target-winsup:
50824@if target-winsup
50825maybe-clean-target-winsup: clean-target-winsup
4fa63067 50826
a90ef4bf 50827clean-target-winsup:
0aed8855 50828 @: $(MAKE); $(unstage)
22121df0 50829 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
50830 r=`${PWD_COMMAND}`; export r; \
50831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50832 $(NORMAL_TARGET_EXPORTS) \
22121df0 50833 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
50834 for flag in $(EXTRA_TARGET_FLAGS); do \
50835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50836 done; \
a90ef4bf 50837 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
50838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50840 "RANLIB=$${RANLIB}" \
0c24b341 50841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 50842 clean) \
4fa63067
NN
50843 || exit 1
50844
a90ef4bf 50845@endif target-winsup
4fa63067 50846
a90ef4bf
JM
50847.PHONY: maybe-distclean-target-winsup distclean-target-winsup
50848maybe-distclean-target-winsup:
50849@if target-winsup
50850maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 50851
a90ef4bf 50852distclean-target-winsup:
0aed8855 50853 @: $(MAKE); $(unstage)
22121df0 50854 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
50855 r=`${PWD_COMMAND}`; export r; \
50856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50857 $(NORMAL_TARGET_EXPORTS) \
22121df0 50858 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
50859 for flag in $(EXTRA_TARGET_FLAGS); do \
50860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50861 done; \
a90ef4bf 50862 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
50863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50865 "RANLIB=$${RANLIB}" \
0c24b341 50866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 50867 distclean) \
4fa63067
NN
50868 || exit 1
50869
a90ef4bf 50870@endif target-winsup
4fa63067 50871
a90ef4bf
JM
50872.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
50873maybe-maintainer-clean-target-winsup:
50874@if target-winsup
50875maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 50876
a90ef4bf 50877maintainer-clean-target-winsup:
0aed8855 50878 @: $(MAKE); $(unstage)
22121df0 50879 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
50880 r=`${PWD_COMMAND}`; export r; \
50881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50882 $(NORMAL_TARGET_EXPORTS) \
22121df0 50883 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
50884 for flag in $(EXTRA_TARGET_FLAGS); do \
50885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
50886 done; \
a90ef4bf 50887 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
50888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
50889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
50890 "RANLIB=$${RANLIB}" \
0c24b341 50891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 50892 maintainer-clean) \
4fa63067 50893 || exit 1
16ae0395 50894
a90ef4bf 50895@endif target-winsup
e393202e
NN
50896
50897
15723a45 50898
e90269c8 50899
a7254363 50900
a90ef4bf
JM
50901.PHONY: configure-target-libgloss maybe-configure-target-libgloss
50902maybe-configure-target-libgloss:
4f0ef2d8 50903@if gcc-bootstrap
a90ef4bf 50904configure-target-libgloss: stage_current
4f0ef2d8 50905@endif gcc-bootstrap
a90ef4bf
JM
50906@if target-libgloss
50907maybe-configure-target-libgloss: configure-target-libgloss
50908configure-target-libgloss:
0aed8855
PB
50909 @: $(MAKE); $(unstage)
50910 @r=`${PWD_COMMAND}`; export r; \
50911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 50912 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
50913 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
50914 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
50915 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
50916 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
50917 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 50918 else \
a90ef4bf
JM
50919 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
50920 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
50921 fi; \
50922 else \
a90ef4bf 50923 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 50924 fi; \
a90ef4bf 50925 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 50926 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 50927 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
50928 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
50929 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 50930 case $(srcdir) in \
b00612cc 50931 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 50932 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 50933 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 50934 esac; \
1b6c0831 50935 module_srcdir=libgloss; \
bba45b8b 50936 rm -f no-such-file || : ; \
1b6c0831
L
50937 CONFIG_SITE=no-such-file $(SHELL) \
50938 $$s/$$module_srcdir/configure \
50939 --srcdir=$${topdir}/$$module_srcdir \
4b900473 50940 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 50941 --target=${target_alias} \
bba45b8b 50942 || exit 1
a90ef4bf 50943@endif target-libgloss
e393202e 50944
a7254363
PB
50945
50946
d545f33b
PB
50947
50948
a90ef4bf
JM
50949.PHONY: all-target-libgloss maybe-all-target-libgloss
50950maybe-all-target-libgloss:
4f0ef2d8 50951@if gcc-bootstrap
a90ef4bf 50952all-target-libgloss: stage_current
4f0ef2d8 50953@endif gcc-bootstrap
a90ef4bf
JM
50954@if target-libgloss
50955TARGET-target-libgloss=all
50956maybe-all-target-libgloss: all-target-libgloss
50957all-target-libgloss: configure-target-libgloss
0aed8855 50958 @: $(MAKE); $(unstage)
b40e3958
L
50959 @r=`${PWD_COMMAND}`; export r; \
50960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 50961 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 50962 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 50963 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
50964 $(TARGET-target-libgloss))
50965@endif target-libgloss
e393202e 50966
a7254363
PB
50967
50968
d545f33b
PB
50969
50970
a90ef4bf
JM
50971.PHONY: check-target-libgloss maybe-check-target-libgloss
50972maybe-check-target-libgloss:
50973@if target-libgloss
50974maybe-check-target-libgloss: check-target-libgloss
16ae0395 50975
a90ef4bf
JM
50976# Dummy target for uncheckable module.
50977check-target-libgloss:
930314a4 50978
a90ef4bf 50979@endif target-libgloss
e393202e 50980
a90ef4bf
JM
50981.PHONY: install-target-libgloss maybe-install-target-libgloss
50982maybe-install-target-libgloss:
50983@if target-libgloss
50984maybe-install-target-libgloss: install-target-libgloss
4fa63067 50985
a90ef4bf 50986install-target-libgloss: installdirs
0aed8855 50987 @: $(MAKE); $(unstage)
4fa63067
NN
50988 @r=`${PWD_COMMAND}`; export r; \
50989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 50990 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 50991 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 50992 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 50993
a90ef4bf 50994@endif target-libgloss
4fa63067 50995
a90ef4bf
JM
50996.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
50997maybe-install-strip-target-libgloss:
50998@if target-libgloss
50999maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 51000
a90ef4bf 51001install-strip-target-libgloss: installdirs
9b980aa1
RW
51002 @: $(MAKE); $(unstage)
51003 @r=`${PWD_COMMAND}`; export r; \
51004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51005 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 51006 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
51007 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
51008
a90ef4bf 51009@endif target-libgloss
9b980aa1 51010
56a8fe78 51011# Other targets (info, dvi, pdf, etc.)
4fa63067 51012
a90ef4bf
JM
51013.PHONY: maybe-info-target-libgloss info-target-libgloss
51014maybe-info-target-libgloss:
51015@if target-libgloss
51016maybe-info-target-libgloss: info-target-libgloss
4fa63067 51017
a90ef4bf
JM
51018info-target-libgloss: \
51019 configure-target-libgloss
0aed8855 51020 @: $(MAKE); $(unstage)
22121df0 51021 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
51022 r=`${PWD_COMMAND}`; export r; \
51023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51024 $(NORMAL_TARGET_EXPORTS) \
22121df0 51025 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
51026 for flag in $(EXTRA_TARGET_FLAGS); do \
51027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51028 done; \
a90ef4bf 51029 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
51030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51032 "RANLIB=$${RANLIB}" \
0c24b341 51033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51034 info) \
4fa63067
NN
51035 || exit 1
51036
a90ef4bf 51037@endif target-libgloss
4fa63067 51038
a90ef4bf
JM
51039.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
51040maybe-dvi-target-libgloss:
51041@if target-libgloss
51042maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 51043
a90ef4bf
JM
51044dvi-target-libgloss: \
51045 configure-target-libgloss
0aed8855 51046 @: $(MAKE); $(unstage)
22121df0 51047 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
51048 r=`${PWD_COMMAND}`; export r; \
51049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51050 $(NORMAL_TARGET_EXPORTS) \
22121df0 51051 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
51052 for flag in $(EXTRA_TARGET_FLAGS); do \
51053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51054 done; \
a90ef4bf 51055 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
51056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51058 "RANLIB=$${RANLIB}" \
0c24b341 51059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51060 dvi) \
4fa63067
NN
51061 || exit 1
51062
a90ef4bf 51063@endif target-libgloss
4fa63067 51064
a90ef4bf
JM
51065.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
51066maybe-pdf-target-libgloss:
51067@if target-libgloss
51068maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 51069
a90ef4bf
JM
51070pdf-target-libgloss: \
51071 configure-target-libgloss
56a8fe78 51072 @: $(MAKE); $(unstage)
22121df0 51073 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
51074 r=`${PWD_COMMAND}`; export r; \
51075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51076 $(NORMAL_TARGET_EXPORTS) \
22121df0 51077 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
51078 for flag in $(EXTRA_TARGET_FLAGS); do \
51079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51080 done; \
a90ef4bf 51081 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
51082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51084 "RANLIB=$${RANLIB}" \
0c24b341 51085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
51086 pdf) \
51087 || exit 1
51088
a90ef4bf 51089@endif target-libgloss
56a8fe78 51090
a90ef4bf
JM
51091.PHONY: maybe-html-target-libgloss html-target-libgloss
51092maybe-html-target-libgloss:
51093@if target-libgloss
51094maybe-html-target-libgloss: html-target-libgloss
6d389afc 51095
a90ef4bf
JM
51096html-target-libgloss: \
51097 configure-target-libgloss
0aed8855 51098 @: $(MAKE); $(unstage)
22121df0 51099 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
51100 r=`${PWD_COMMAND}`; export r; \
51101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 51102 $(NORMAL_TARGET_EXPORTS) \
22121df0 51103 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
51104 for flag in $(EXTRA_TARGET_FLAGS); do \
51105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51106 done; \
a90ef4bf 51107 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
51108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51110 "RANLIB=$${RANLIB}" \
0c24b341 51111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
51112 html) \
51113 || exit 1
51114
a90ef4bf 51115@endif target-libgloss
6d389afc 51116
a90ef4bf
JM
51117.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
51118maybe-TAGS-target-libgloss:
51119@if target-libgloss
51120maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 51121
a90ef4bf
JM
51122TAGS-target-libgloss: \
51123 configure-target-libgloss
0aed8855 51124 @: $(MAKE); $(unstage)
22121df0 51125 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
51126 r=`${PWD_COMMAND}`; export r; \
51127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51128 $(NORMAL_TARGET_EXPORTS) \
22121df0 51129 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
51130 for flag in $(EXTRA_TARGET_FLAGS); do \
51131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51132 done; \
a90ef4bf 51133 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
51134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51136 "RANLIB=$${RANLIB}" \
0c24b341 51137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51138 TAGS) \
4fa63067
NN
51139 || exit 1
51140
a90ef4bf 51141@endif target-libgloss
4fa63067 51142
a90ef4bf
JM
51143.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
51144maybe-install-info-target-libgloss:
51145@if target-libgloss
51146maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 51147
a90ef4bf
JM
51148install-info-target-libgloss: \
51149 configure-target-libgloss \
51150 info-target-libgloss
0aed8855 51151 @: $(MAKE); $(unstage)
22121df0 51152 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
51153 r=`${PWD_COMMAND}`; export r; \
51154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51155 $(NORMAL_TARGET_EXPORTS) \
22121df0 51156 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
51157 for flag in $(EXTRA_TARGET_FLAGS); do \
51158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51159 done; \
a90ef4bf 51160 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
51161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51163 "RANLIB=$${RANLIB}" \
0c24b341 51164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51165 install-info) \
4fa63067
NN
51166 || exit 1
51167
a90ef4bf 51168@endif target-libgloss
4fa63067 51169
a90ef4bf
JM
51170.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
51171maybe-install-pdf-target-libgloss:
51172@if target-libgloss
51173maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 51174
a90ef4bf
JM
51175install-pdf-target-libgloss: \
51176 configure-target-libgloss \
51177 pdf-target-libgloss
a3ca38d2 51178 @: $(MAKE); $(unstage)
22121df0 51179 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
51180 r=`${PWD_COMMAND}`; export r; \
51181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51182 $(NORMAL_TARGET_EXPORTS) \
22121df0 51183 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
51184 for flag in $(EXTRA_TARGET_FLAGS); do \
51185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51186 done; \
a90ef4bf 51187 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
51188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51190 "RANLIB=$${RANLIB}" \
0c24b341 51191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
51192 install-pdf) \
51193 || exit 1
51194
a90ef4bf 51195@endif target-libgloss
a3ca38d2 51196
a90ef4bf
JM
51197.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
51198maybe-install-html-target-libgloss:
51199@if target-libgloss
51200maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 51201
a90ef4bf
JM
51202install-html-target-libgloss: \
51203 configure-target-libgloss \
51204 html-target-libgloss
108a6f8e 51205 @: $(MAKE); $(unstage)
22121df0 51206 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
51207 r=`${PWD_COMMAND}`; export r; \
51208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51209 $(NORMAL_TARGET_EXPORTS) \
22121df0 51210 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
51211 for flag in $(EXTRA_TARGET_FLAGS); do \
51212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51213 done; \
a90ef4bf 51214 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
51215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51217 "RANLIB=$${RANLIB}" \
0c24b341 51218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
51219 install-html) \
51220 || exit 1
51221
a90ef4bf 51222@endif target-libgloss
108a6f8e 51223
a90ef4bf
JM
51224.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
51225maybe-installcheck-target-libgloss:
51226@if target-libgloss
51227maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 51228
a90ef4bf
JM
51229installcheck-target-libgloss: \
51230 configure-target-libgloss
0aed8855 51231 @: $(MAKE); $(unstage)
22121df0 51232 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
51233 r=`${PWD_COMMAND}`; export r; \
51234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51235 $(NORMAL_TARGET_EXPORTS) \
22121df0 51236 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
51237 for flag in $(EXTRA_TARGET_FLAGS); do \
51238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51239 done; \
a90ef4bf 51240 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
51241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51243 "RANLIB=$${RANLIB}" \
0c24b341 51244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51245 installcheck) \
4fa63067
NN
51246 || exit 1
51247
a90ef4bf 51248@endif target-libgloss
4fa63067 51249
a90ef4bf
JM
51250.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
51251maybe-mostlyclean-target-libgloss:
51252@if target-libgloss
51253maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 51254
a90ef4bf 51255mostlyclean-target-libgloss:
0aed8855 51256 @: $(MAKE); $(unstage)
22121df0 51257 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
51258 r=`${PWD_COMMAND}`; export r; \
51259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51260 $(NORMAL_TARGET_EXPORTS) \
22121df0 51261 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
51262 for flag in $(EXTRA_TARGET_FLAGS); do \
51263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51264 done; \
a90ef4bf 51265 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
51266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51268 "RANLIB=$${RANLIB}" \
0c24b341 51269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51270 mostlyclean) \
4fa63067
NN
51271 || exit 1
51272
a90ef4bf 51273@endif target-libgloss
4fa63067 51274
a90ef4bf
JM
51275.PHONY: maybe-clean-target-libgloss clean-target-libgloss
51276maybe-clean-target-libgloss:
51277@if target-libgloss
51278maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 51279
a90ef4bf 51280clean-target-libgloss:
0aed8855 51281 @: $(MAKE); $(unstage)
22121df0 51282 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
51283 r=`${PWD_COMMAND}`; export r; \
51284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51285 $(NORMAL_TARGET_EXPORTS) \
22121df0 51286 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
51287 for flag in $(EXTRA_TARGET_FLAGS); do \
51288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51289 done; \
a90ef4bf 51290 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
51291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51293 "RANLIB=$${RANLIB}" \
0c24b341 51294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51295 clean) \
4fa63067
NN
51296 || exit 1
51297
a90ef4bf 51298@endif target-libgloss
4fa63067 51299
a90ef4bf
JM
51300.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
51301maybe-distclean-target-libgloss:
51302@if target-libgloss
51303maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 51304
a90ef4bf 51305distclean-target-libgloss:
0aed8855 51306 @: $(MAKE); $(unstage)
22121df0 51307 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
51308 r=`${PWD_COMMAND}`; export r; \
51309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51310 $(NORMAL_TARGET_EXPORTS) \
22121df0 51311 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
51312 for flag in $(EXTRA_TARGET_FLAGS); do \
51313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51314 done; \
a90ef4bf 51315 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
51316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51318 "RANLIB=$${RANLIB}" \
0c24b341 51319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51320 distclean) \
4fa63067
NN
51321 || exit 1
51322
a90ef4bf 51323@endif target-libgloss
4fa63067 51324
a90ef4bf
JM
51325.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
51326maybe-maintainer-clean-target-libgloss:
51327@if target-libgloss
51328maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 51329
a90ef4bf 51330maintainer-clean-target-libgloss:
0aed8855 51331 @: $(MAKE); $(unstage)
22121df0 51332 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
51333 r=`${PWD_COMMAND}`; export r; \
51334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51335 $(NORMAL_TARGET_EXPORTS) \
22121df0 51336 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
51337 for flag in $(EXTRA_TARGET_FLAGS); do \
51338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51339 done; \
a90ef4bf 51340 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
51341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51343 "RANLIB=$${RANLIB}" \
0c24b341 51344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51345 maintainer-clean) \
4fa63067 51346 || exit 1
16ae0395 51347
a90ef4bf 51348@endif target-libgloss
e393202e
NN
51349
51350
15723a45 51351
a7254363
PB
51352
51353
a7254363
PB
51354.PHONY: configure-target-libffi maybe-configure-target-libffi
51355maybe-configure-target-libffi:
4f0ef2d8
CD
51356@if gcc-bootstrap
51357configure-target-libffi: stage_current
51358@endif gcc-bootstrap
a7254363
PB
51359@if target-libffi
51360maybe-configure-target-libffi: configure-target-libffi
c52c6897 51361configure-target-libffi:
0aed8855
PB
51362 @: $(MAKE); $(unstage)
51363 @r=`${PWD_COMMAND}`; export r; \
51364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51365 echo "Checking multilib configuration for libffi..."; \
22121df0
L
51366 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
51367 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
51368 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
51369 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
51370 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
51371 else \
51372 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
51373 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
51374 fi; \
51375 else \
51376 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
51377 fi; \
51378 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 51379 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 51380 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
51381 echo Configuring in $(TARGET_SUBDIR)/libffi; \
51382 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 51383 case $(srcdir) in \
b00612cc
PB
51384 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
51385 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
51386 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 51387 esac; \
1b6c0831 51388 module_srcdir=libffi; \
bba45b8b 51389 rm -f no-such-file || : ; \
1b6c0831
L
51390 CONFIG_SITE=no-such-file $(SHELL) \
51391 $$s/$$module_srcdir/configure \
51392 --srcdir=$${topdir}/$$module_srcdir \
4b900473 51393 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 51394 --target=${target_alias} \
bba45b8b 51395 || exit 1
6bd3dfaa 51396@endif target-libffi
e393202e 51397
a7254363
PB
51398
51399
d545f33b
PB
51400
51401
4fa63067
NN
51402.PHONY: all-target-libffi maybe-all-target-libffi
51403maybe-all-target-libffi:
4f0ef2d8
CD
51404@if gcc-bootstrap
51405all-target-libffi: stage_current
51406@endif gcc-bootstrap
6bd3dfaa 51407@if target-libffi
72b2455a 51408TARGET-target-libffi=all
6bd3dfaa 51409maybe-all-target-libffi: all-target-libffi
4fa63067 51410all-target-libffi: configure-target-libffi
0aed8855 51411 @: $(MAKE); $(unstage)
b40e3958
L
51412 @r=`${PWD_COMMAND}`; export r; \
51413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 51414 $(NORMAL_TARGET_EXPORTS) \
4fa63067 51415 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 51416 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 51417 $(TARGET-target-libffi))
6bd3dfaa 51418@endif target-libffi
e393202e 51419
a7254363
PB
51420
51421
d545f33b
PB
51422
51423
4fa63067
NN
51424.PHONY: check-target-libffi maybe-check-target-libffi
51425maybe-check-target-libffi:
6bd3dfaa
PB
51426@if target-libffi
51427maybe-check-target-libffi: check-target-libffi
16ae0395 51428
4fa63067 51429check-target-libffi:
0aed8855 51430 @: $(MAKE); $(unstage)
b40e3958
L
51431 @r=`${PWD_COMMAND}`; export r; \
51432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51433 $(NORMAL_TARGET_EXPORTS) \
4fa63067 51434 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 51435 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 51436
6bd3dfaa 51437@endif target-libffi
e393202e 51438
4fa63067
NN
51439.PHONY: install-target-libffi maybe-install-target-libffi
51440maybe-install-target-libffi:
6bd3dfaa
PB
51441@if target-libffi
51442maybe-install-target-libffi: install-target-libffi
16ae0395 51443
b836cb18
JBG
51444# Dummy target for uninstallable.
51445install-target-libffi:
e393202e 51446
6bd3dfaa 51447@endif target-libffi
e393202e 51448
9b980aa1
RW
51449.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
51450maybe-install-strip-target-libffi:
51451@if target-libffi
51452maybe-install-strip-target-libffi: install-strip-target-libffi
51453
b836cb18
JBG
51454# Dummy target for uninstallable.
51455install-strip-target-libffi:
9b980aa1
RW
51456
51457@endif target-libffi
51458
56a8fe78 51459# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
51460
51461.PHONY: maybe-info-target-libffi info-target-libffi
51462maybe-info-target-libffi:
6bd3dfaa
PB
51463@if target-libffi
51464maybe-info-target-libffi: info-target-libffi
4fa63067
NN
51465
51466info-target-libffi: \
51467 configure-target-libffi
0aed8855 51468 @: $(MAKE); $(unstage)
22121df0 51469 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
51470 r=`${PWD_COMMAND}`; export r; \
51471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51472 $(NORMAL_TARGET_EXPORTS) \
22121df0 51473 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
51474 for flag in $(EXTRA_TARGET_FLAGS); do \
51475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51476 done; \
51477 (cd $(TARGET_SUBDIR)/libffi && \
51478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51480 "RANLIB=$${RANLIB}" \
0c24b341 51481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51482 info) \
4fa63067
NN
51483 || exit 1
51484
6bd3dfaa 51485@endif target-libffi
4fa63067
NN
51486
51487.PHONY: maybe-dvi-target-libffi dvi-target-libffi
51488maybe-dvi-target-libffi:
6bd3dfaa
PB
51489@if target-libffi
51490maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
51491
51492dvi-target-libffi: \
51493 configure-target-libffi
0aed8855 51494 @: $(MAKE); $(unstage)
22121df0 51495 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
51496 r=`${PWD_COMMAND}`; export r; \
51497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51498 $(NORMAL_TARGET_EXPORTS) \
22121df0 51499 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
51500 for flag in $(EXTRA_TARGET_FLAGS); do \
51501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51502 done; \
51503 (cd $(TARGET_SUBDIR)/libffi && \
51504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51506 "RANLIB=$${RANLIB}" \
0c24b341 51507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51508 dvi) \
4fa63067
NN
51509 || exit 1
51510
6bd3dfaa 51511@endif target-libffi
4fa63067 51512
56a8fe78
DD
51513.PHONY: maybe-pdf-target-libffi pdf-target-libffi
51514maybe-pdf-target-libffi:
51515@if target-libffi
51516maybe-pdf-target-libffi: pdf-target-libffi
51517
51518pdf-target-libffi: \
51519 configure-target-libffi
51520 @: $(MAKE); $(unstage)
22121df0 51521 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
51522 r=`${PWD_COMMAND}`; export r; \
51523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51524 $(NORMAL_TARGET_EXPORTS) \
22121df0 51525 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
51526 for flag in $(EXTRA_TARGET_FLAGS); do \
51527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51528 done; \
51529 (cd $(TARGET_SUBDIR)/libffi && \
51530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51532 "RANLIB=$${RANLIB}" \
0c24b341 51533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
51534 pdf) \
51535 || exit 1
51536
51537@endif target-libffi
51538
6d389afc
MS
51539.PHONY: maybe-html-target-libffi html-target-libffi
51540maybe-html-target-libffi:
51541@if target-libffi
51542maybe-html-target-libffi: html-target-libffi
51543
51544html-target-libffi: \
51545 configure-target-libffi
0aed8855 51546 @: $(MAKE); $(unstage)
22121df0 51547 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
51548 r=`${PWD_COMMAND}`; export r; \
51549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 51550 $(NORMAL_TARGET_EXPORTS) \
22121df0 51551 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
51552 for flag in $(EXTRA_TARGET_FLAGS); do \
51553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51554 done; \
51555 (cd $(TARGET_SUBDIR)/libffi && \
51556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51558 "RANLIB=$${RANLIB}" \
0c24b341 51559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
51560 html) \
51561 || exit 1
51562
51563@endif target-libffi
51564
4fa63067
NN
51565.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
51566maybe-TAGS-target-libffi:
6bd3dfaa
PB
51567@if target-libffi
51568maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
51569
51570TAGS-target-libffi: \
51571 configure-target-libffi
0aed8855 51572 @: $(MAKE); $(unstage)
22121df0 51573 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
51574 r=`${PWD_COMMAND}`; export r; \
51575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51576 $(NORMAL_TARGET_EXPORTS) \
22121df0 51577 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
51578 for flag in $(EXTRA_TARGET_FLAGS); do \
51579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51580 done; \
51581 (cd $(TARGET_SUBDIR)/libffi && \
51582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51584 "RANLIB=$${RANLIB}" \
0c24b341 51585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51586 TAGS) \
4fa63067
NN
51587 || exit 1
51588
6bd3dfaa 51589@endif target-libffi
4fa63067
NN
51590
51591.PHONY: maybe-install-info-target-libffi install-info-target-libffi
51592maybe-install-info-target-libffi:
6bd3dfaa
PB
51593@if target-libffi
51594maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
51595
51596install-info-target-libffi: \
51597 configure-target-libffi \
51598 info-target-libffi
0aed8855 51599 @: $(MAKE); $(unstage)
22121df0 51600 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
51601 r=`${PWD_COMMAND}`; export r; \
51602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51603 $(NORMAL_TARGET_EXPORTS) \
22121df0 51604 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
51605 for flag in $(EXTRA_TARGET_FLAGS); do \
51606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51607 done; \
51608 (cd $(TARGET_SUBDIR)/libffi && \
51609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51611 "RANLIB=$${RANLIB}" \
0c24b341 51612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51613 install-info) \
4fa63067
NN
51614 || exit 1
51615
6bd3dfaa 51616@endif target-libffi
4fa63067 51617
a3ca38d2
DD
51618.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
51619maybe-install-pdf-target-libffi:
51620@if target-libffi
51621maybe-install-pdf-target-libffi: install-pdf-target-libffi
51622
51623install-pdf-target-libffi: \
51624 configure-target-libffi \
51625 pdf-target-libffi
51626 @: $(MAKE); $(unstage)
22121df0 51627 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
51628 r=`${PWD_COMMAND}`; export r; \
51629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51630 $(NORMAL_TARGET_EXPORTS) \
22121df0 51631 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
51632 for flag in $(EXTRA_TARGET_FLAGS); do \
51633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51634 done; \
51635 (cd $(TARGET_SUBDIR)/libffi && \
51636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51638 "RANLIB=$${RANLIB}" \
0c24b341 51639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
51640 install-pdf) \
51641 || exit 1
51642
51643@endif target-libffi
51644
108a6f8e
CD
51645.PHONY: maybe-install-html-target-libffi install-html-target-libffi
51646maybe-install-html-target-libffi:
51647@if target-libffi
51648maybe-install-html-target-libffi: install-html-target-libffi
51649
51650install-html-target-libffi: \
51651 configure-target-libffi \
51652 html-target-libffi
51653 @: $(MAKE); $(unstage)
22121df0 51654 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
51655 r=`${PWD_COMMAND}`; export r; \
51656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51657 $(NORMAL_TARGET_EXPORTS) \
22121df0 51658 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
51659 for flag in $(EXTRA_TARGET_FLAGS); do \
51660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51661 done; \
51662 (cd $(TARGET_SUBDIR)/libffi && \
51663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51665 "RANLIB=$${RANLIB}" \
0c24b341 51666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
51667 install-html) \
51668 || exit 1
51669
51670@endif target-libffi
51671
4fa63067
NN
51672.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
51673maybe-installcheck-target-libffi:
6bd3dfaa
PB
51674@if target-libffi
51675maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
51676
51677installcheck-target-libffi: \
51678 configure-target-libffi
0aed8855 51679 @: $(MAKE); $(unstage)
22121df0 51680 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
51681 r=`${PWD_COMMAND}`; export r; \
51682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51683 $(NORMAL_TARGET_EXPORTS) \
22121df0 51684 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
51685 for flag in $(EXTRA_TARGET_FLAGS); do \
51686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51687 done; \
51688 (cd $(TARGET_SUBDIR)/libffi && \
51689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51691 "RANLIB=$${RANLIB}" \
0c24b341 51692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51693 installcheck) \
4fa63067
NN
51694 || exit 1
51695
6bd3dfaa 51696@endif target-libffi
4fa63067
NN
51697
51698.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
51699maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
51700@if target-libffi
51701maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
51702
51703mostlyclean-target-libffi:
0aed8855 51704 @: $(MAKE); $(unstage)
22121df0 51705 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
51706 r=`${PWD_COMMAND}`; export r; \
51707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51708 $(NORMAL_TARGET_EXPORTS) \
22121df0 51709 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
51710 for flag in $(EXTRA_TARGET_FLAGS); do \
51711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51712 done; \
51713 (cd $(TARGET_SUBDIR)/libffi && \
51714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51716 "RANLIB=$${RANLIB}" \
0c24b341 51717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51718 mostlyclean) \
4fa63067
NN
51719 || exit 1
51720
6bd3dfaa 51721@endif target-libffi
4fa63067
NN
51722
51723.PHONY: maybe-clean-target-libffi clean-target-libffi
51724maybe-clean-target-libffi:
6bd3dfaa
PB
51725@if target-libffi
51726maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
51727
51728clean-target-libffi:
0aed8855 51729 @: $(MAKE); $(unstage)
22121df0 51730 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
51731 r=`${PWD_COMMAND}`; export r; \
51732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51733 $(NORMAL_TARGET_EXPORTS) \
22121df0 51734 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
51735 for flag in $(EXTRA_TARGET_FLAGS); do \
51736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51737 done; \
51738 (cd $(TARGET_SUBDIR)/libffi && \
51739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51741 "RANLIB=$${RANLIB}" \
0c24b341 51742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51743 clean) \
4fa63067
NN
51744 || exit 1
51745
6bd3dfaa 51746@endif target-libffi
4fa63067
NN
51747
51748.PHONY: maybe-distclean-target-libffi distclean-target-libffi
51749maybe-distclean-target-libffi:
6bd3dfaa
PB
51750@if target-libffi
51751maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
51752
51753distclean-target-libffi:
0aed8855 51754 @: $(MAKE); $(unstage)
22121df0 51755 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
51756 r=`${PWD_COMMAND}`; export r; \
51757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51758 $(NORMAL_TARGET_EXPORTS) \
22121df0 51759 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
51760 for flag in $(EXTRA_TARGET_FLAGS); do \
51761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51762 done; \
51763 (cd $(TARGET_SUBDIR)/libffi && \
51764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51766 "RANLIB=$${RANLIB}" \
0c24b341 51767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51768 distclean) \
4fa63067
NN
51769 || exit 1
51770
6bd3dfaa 51771@endif target-libffi
4fa63067
NN
51772
51773.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
51774maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
51775@if target-libffi
51776maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
51777
51778maintainer-clean-target-libffi:
0aed8855 51779 @: $(MAKE); $(unstage)
22121df0 51780 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
51781 r=`${PWD_COMMAND}`; export r; \
51782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51783 $(NORMAL_TARGET_EXPORTS) \
22121df0 51784 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
51785 for flag in $(EXTRA_TARGET_FLAGS); do \
51786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51787 done; \
51788 (cd $(TARGET_SUBDIR)/libffi && \
51789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51791 "RANLIB=$${RANLIB}" \
0c24b341 51792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51793 maintainer-clean) \
4fa63067
NN
51794 || exit 1
51795
6bd3dfaa 51796@endif target-libffi
4fa63067
NN
51797
51798
15723a45 51799
a7254363 51800
15723a45 51801
a7254363
PB
51802.PHONY: configure-target-zlib maybe-configure-target-zlib
51803maybe-configure-target-zlib:
4f0ef2d8
CD
51804@if gcc-bootstrap
51805configure-target-zlib: stage_current
51806@endif gcc-bootstrap
a7254363
PB
51807@if target-zlib
51808maybe-configure-target-zlib: configure-target-zlib
c52c6897 51809configure-target-zlib:
0aed8855
PB
51810 @: $(MAKE); $(unstage)
51811 @r=`${PWD_COMMAND}`; export r; \
51812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51813 echo "Checking multilib configuration for zlib..."; \
22121df0
L
51814 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
51815 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
51816 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
51817 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
51818 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
51819 else \
51820 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
51821 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
51822 fi; \
51823 else \
51824 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
51825 fi; \
51826 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 51827 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 51828 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
51829 echo Configuring in $(TARGET_SUBDIR)/zlib; \
51830 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 51831 case $(srcdir) in \
b00612cc
PB
51832 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
51833 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
51834 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 51835 esac; \
1b6c0831 51836 module_srcdir=zlib; \
bba45b8b 51837 rm -f no-such-file || : ; \
1b6c0831
L
51838 CONFIG_SITE=no-such-file $(SHELL) \
51839 $$s/$$module_srcdir/configure \
51840 --srcdir=$${topdir}/$$module_srcdir \
4b900473 51841 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 51842 --target=${target_alias} \
bba45b8b 51843 || exit 1
6bd3dfaa 51844@endif target-zlib
e393202e 51845
a7254363
PB
51846
51847
d545f33b
PB
51848
51849
4fa63067
NN
51850.PHONY: all-target-zlib maybe-all-target-zlib
51851maybe-all-target-zlib:
4f0ef2d8
CD
51852@if gcc-bootstrap
51853all-target-zlib: stage_current
51854@endif gcc-bootstrap
6bd3dfaa 51855@if target-zlib
72b2455a 51856TARGET-target-zlib=all
6bd3dfaa 51857maybe-all-target-zlib: all-target-zlib
4fa63067 51858all-target-zlib: configure-target-zlib
0aed8855 51859 @: $(MAKE); $(unstage)
b40e3958
L
51860 @r=`${PWD_COMMAND}`; export r; \
51861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 51862 $(NORMAL_TARGET_EXPORTS) \
4fa63067 51863 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 51864 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 51865 $(TARGET-target-zlib))
6bd3dfaa 51866@endif target-zlib
e393202e 51867
a7254363
PB
51868
51869
d545f33b
PB
51870
51871
4fa63067
NN
51872.PHONY: check-target-zlib maybe-check-target-zlib
51873maybe-check-target-zlib:
6bd3dfaa
PB
51874@if target-zlib
51875maybe-check-target-zlib: check-target-zlib
16ae0395 51876
4fa63067 51877check-target-zlib:
0aed8855 51878 @: $(MAKE); $(unstage)
b40e3958
L
51879 @r=`${PWD_COMMAND}`; export r; \
51880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51881 $(NORMAL_TARGET_EXPORTS) \
4fa63067 51882 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 51883 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 51884
6bd3dfaa 51885@endif target-zlib
930314a4 51886
4fa63067
NN
51887.PHONY: install-target-zlib maybe-install-target-zlib
51888maybe-install-target-zlib:
6bd3dfaa
PB
51889@if target-zlib
51890maybe-install-target-zlib: install-target-zlib
16ae0395 51891
4fa63067 51892install-target-zlib: installdirs
0aed8855 51893 @: $(MAKE); $(unstage)
b40e3958
L
51894 @r=`${PWD_COMMAND}`; export r; \
51895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51896 $(NORMAL_TARGET_EXPORTS) \
4fa63067 51897 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 51898 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 51899
6bd3dfaa 51900@endif target-zlib
e393202e 51901
9b980aa1
RW
51902.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
51903maybe-install-strip-target-zlib:
51904@if target-zlib
51905maybe-install-strip-target-zlib: install-strip-target-zlib
51906
51907install-strip-target-zlib: installdirs
51908 @: $(MAKE); $(unstage)
51909 @r=`${PWD_COMMAND}`; export r; \
51910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51911 $(NORMAL_TARGET_EXPORTS) \
51912 (cd $(TARGET_SUBDIR)/zlib && \
51913 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
51914
51915@endif target-zlib
51916
56a8fe78 51917# Other targets (info, dvi, pdf, etc.)
15723a45 51918
4fa63067
NN
51919.PHONY: maybe-info-target-zlib info-target-zlib
51920maybe-info-target-zlib:
6bd3dfaa
PB
51921@if target-zlib
51922maybe-info-target-zlib: info-target-zlib
15723a45 51923
4fa63067
NN
51924info-target-zlib: \
51925 configure-target-zlib
0aed8855 51926 @: $(MAKE); $(unstage)
22121df0 51927 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
51928 r=`${PWD_COMMAND}`; export r; \
51929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51930 $(NORMAL_TARGET_EXPORTS) \
22121df0 51931 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
51932 for flag in $(EXTRA_TARGET_FLAGS); do \
51933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51934 done; \
51935 (cd $(TARGET_SUBDIR)/zlib && \
51936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51938 "RANLIB=$${RANLIB}" \
0c24b341 51939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51940 info) \
bba45b8b 51941 || exit 1
e393202e 51942
6bd3dfaa 51943@endif target-zlib
e393202e 51944
4fa63067
NN
51945.PHONY: maybe-dvi-target-zlib dvi-target-zlib
51946maybe-dvi-target-zlib:
6bd3dfaa
PB
51947@if target-zlib
51948maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 51949
4fa63067
NN
51950dvi-target-zlib: \
51951 configure-target-zlib
0aed8855 51952 @: $(MAKE); $(unstage)
22121df0 51953 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 51954 r=`${PWD_COMMAND}`; export r; \
b40e3958 51955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 51956 $(NORMAL_TARGET_EXPORTS) \
22121df0 51957 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
51958 for flag in $(EXTRA_TARGET_FLAGS); do \
51959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51960 done; \
51961 (cd $(TARGET_SUBDIR)/zlib && \
51962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51964 "RANLIB=$${RANLIB}" \
0c24b341 51965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 51966 dvi) \
4fa63067 51967 || exit 1
e393202e 51968
6bd3dfaa 51969@endif target-zlib
930314a4 51970
56a8fe78
DD
51971.PHONY: maybe-pdf-target-zlib pdf-target-zlib
51972maybe-pdf-target-zlib:
51973@if target-zlib
51974maybe-pdf-target-zlib: pdf-target-zlib
51975
51976pdf-target-zlib: \
51977 configure-target-zlib
51978 @: $(MAKE); $(unstage)
22121df0 51979 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
51980 r=`${PWD_COMMAND}`; export r; \
51981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51982 $(NORMAL_TARGET_EXPORTS) \
22121df0 51983 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
51984 for flag in $(EXTRA_TARGET_FLAGS); do \
51985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
51986 done; \
51987 (cd $(TARGET_SUBDIR)/zlib && \
51988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
51989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
51990 "RANLIB=$${RANLIB}" \
0c24b341 51991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
51992 pdf) \
51993 || exit 1
51994
51995@endif target-zlib
51996
6d389afc
MS
51997.PHONY: maybe-html-target-zlib html-target-zlib
51998maybe-html-target-zlib:
51999@if target-zlib
52000maybe-html-target-zlib: html-target-zlib
52001
52002html-target-zlib: \
52003 configure-target-zlib
0aed8855 52004 @: $(MAKE); $(unstage)
22121df0 52005 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
52006 r=`${PWD_COMMAND}`; export r; \
52007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 52008 $(NORMAL_TARGET_EXPORTS) \
22121df0 52009 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
52010 for flag in $(EXTRA_TARGET_FLAGS); do \
52011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52012 done; \
52013 (cd $(TARGET_SUBDIR)/zlib && \
52014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52016 "RANLIB=$${RANLIB}" \
0c24b341 52017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
52018 html) \
52019 || exit 1
52020
52021@endif target-zlib
52022
4fa63067
NN
52023.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
52024maybe-TAGS-target-zlib:
6bd3dfaa
PB
52025@if target-zlib
52026maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 52027
4fa63067
NN
52028TAGS-target-zlib: \
52029 configure-target-zlib
0aed8855 52030 @: $(MAKE); $(unstage)
22121df0 52031 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 52032 r=`${PWD_COMMAND}`; export r; \
b40e3958 52033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52034 $(NORMAL_TARGET_EXPORTS) \
22121df0 52035 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
52036 for flag in $(EXTRA_TARGET_FLAGS); do \
52037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52038 done; \
52039 (cd $(TARGET_SUBDIR)/zlib && \
52040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52042 "RANLIB=$${RANLIB}" \
0c24b341 52043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52044 TAGS) \
4fa63067 52045 || exit 1
e393202e 52046
6bd3dfaa 52047@endif target-zlib
15723a45 52048
4fa63067
NN
52049.PHONY: maybe-install-info-target-zlib install-info-target-zlib
52050maybe-install-info-target-zlib:
6bd3dfaa
PB
52051@if target-zlib
52052maybe-install-info-target-zlib: install-info-target-zlib
15723a45 52053
4fa63067
NN
52054install-info-target-zlib: \
52055 configure-target-zlib \
52056 info-target-zlib
0aed8855 52057 @: $(MAKE); $(unstage)
22121df0 52058 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
52059 r=`${PWD_COMMAND}`; export r; \
52060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52061 $(NORMAL_TARGET_EXPORTS) \
22121df0 52062 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
52063 for flag in $(EXTRA_TARGET_FLAGS); do \
52064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52065 done; \
52066 (cd $(TARGET_SUBDIR)/zlib && \
52067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52069 "RANLIB=$${RANLIB}" \
0c24b341 52070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52071 install-info) \
bba45b8b 52072 || exit 1
e393202e 52073
6bd3dfaa 52074@endif target-zlib
16ae0395 52075
a3ca38d2
DD
52076.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
52077maybe-install-pdf-target-zlib:
52078@if target-zlib
52079maybe-install-pdf-target-zlib: install-pdf-target-zlib
52080
52081install-pdf-target-zlib: \
52082 configure-target-zlib \
52083 pdf-target-zlib
52084 @: $(MAKE); $(unstage)
22121df0 52085 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
52086 r=`${PWD_COMMAND}`; export r; \
52087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52088 $(NORMAL_TARGET_EXPORTS) \
22121df0 52089 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
52090 for flag in $(EXTRA_TARGET_FLAGS); do \
52091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52092 done; \
52093 (cd $(TARGET_SUBDIR)/zlib && \
52094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52096 "RANLIB=$${RANLIB}" \
0c24b341 52097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
52098 install-pdf) \
52099 || exit 1
52100
52101@endif target-zlib
52102
108a6f8e
CD
52103.PHONY: maybe-install-html-target-zlib install-html-target-zlib
52104maybe-install-html-target-zlib:
52105@if target-zlib
52106maybe-install-html-target-zlib: install-html-target-zlib
52107
52108install-html-target-zlib: \
52109 configure-target-zlib \
52110 html-target-zlib
52111 @: $(MAKE); $(unstage)
22121df0 52112 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
52113 r=`${PWD_COMMAND}`; export r; \
52114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52115 $(NORMAL_TARGET_EXPORTS) \
22121df0 52116 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
52117 for flag in $(EXTRA_TARGET_FLAGS); do \
52118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52119 done; \
52120 (cd $(TARGET_SUBDIR)/zlib && \
52121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52123 "RANLIB=$${RANLIB}" \
0c24b341 52124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
52125 install-html) \
52126 || exit 1
52127
52128@endif target-zlib
52129
4fa63067
NN
52130.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
52131maybe-installcheck-target-zlib:
6bd3dfaa
PB
52132@if target-zlib
52133maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 52134
4fa63067
NN
52135installcheck-target-zlib: \
52136 configure-target-zlib
0aed8855 52137 @: $(MAKE); $(unstage)
22121df0 52138 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
52139 r=`${PWD_COMMAND}`; export r; \
52140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52141 $(NORMAL_TARGET_EXPORTS) \
22121df0 52142 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
52143 for flag in $(EXTRA_TARGET_FLAGS); do \
52144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52145 done; \
52146 (cd $(TARGET_SUBDIR)/zlib && \
52147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52149 "RANLIB=$${RANLIB}" \
0c24b341 52150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52151 installcheck) \
4fa63067 52152 || exit 1
e393202e 52153
6bd3dfaa 52154@endif target-zlib
16ae0395 52155
4fa63067
NN
52156.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
52157maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
52158@if target-zlib
52159maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 52160
4fa63067 52161mostlyclean-target-zlib:
0aed8855 52162 @: $(MAKE); $(unstage)
22121df0 52163 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
52164 r=`${PWD_COMMAND}`; export r; \
52165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52166 $(NORMAL_TARGET_EXPORTS) \
22121df0 52167 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
52168 for flag in $(EXTRA_TARGET_FLAGS); do \
52169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52170 done; \
52171 (cd $(TARGET_SUBDIR)/zlib && \
52172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52174 "RANLIB=$${RANLIB}" \
0c24b341 52175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52176 mostlyclean) \
4fa63067 52177 || exit 1
e393202e 52178
6bd3dfaa 52179@endif target-zlib
15723a45 52180
4fa63067
NN
52181.PHONY: maybe-clean-target-zlib clean-target-zlib
52182maybe-clean-target-zlib:
6bd3dfaa
PB
52183@if target-zlib
52184maybe-clean-target-zlib: clean-target-zlib
15723a45 52185
4fa63067 52186clean-target-zlib:
0aed8855 52187 @: $(MAKE); $(unstage)
22121df0 52188 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
52189 r=`${PWD_COMMAND}`; export r; \
52190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52191 $(NORMAL_TARGET_EXPORTS) \
22121df0 52192 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
52193 for flag in $(EXTRA_TARGET_FLAGS); do \
52194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52195 done; \
52196 (cd $(TARGET_SUBDIR)/zlib && \
52197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52199 "RANLIB=$${RANLIB}" \
0c24b341 52200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52201 clean) \
bba45b8b 52202 || exit 1
e393202e 52203
6bd3dfaa 52204@endif target-zlib
e393202e 52205
4fa63067
NN
52206.PHONY: maybe-distclean-target-zlib distclean-target-zlib
52207maybe-distclean-target-zlib:
6bd3dfaa
PB
52208@if target-zlib
52209maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 52210
4fa63067 52211distclean-target-zlib:
0aed8855 52212 @: $(MAKE); $(unstage)
22121df0 52213 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 52214 r=`${PWD_COMMAND}`; export r; \
b40e3958 52215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52216 $(NORMAL_TARGET_EXPORTS) \
22121df0 52217 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
52218 for flag in $(EXTRA_TARGET_FLAGS); do \
52219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52220 done; \
52221 (cd $(TARGET_SUBDIR)/zlib && \
52222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52224 "RANLIB=$${RANLIB}" \
0c24b341 52225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52226 distclean) \
4fa63067 52227 || exit 1
e393202e 52228
6bd3dfaa 52229@endif target-zlib
e393202e 52230
4fa63067
NN
52231.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
52232maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
52233@if target-zlib
52234maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 52235
4fa63067 52236maintainer-clean-target-zlib:
0aed8855 52237 @: $(MAKE); $(unstage)
22121df0 52238 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 52239 r=`${PWD_COMMAND}`; export r; \
b40e3958 52240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52241 $(NORMAL_TARGET_EXPORTS) \
22121df0 52242 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
52243 for flag in $(EXTRA_TARGET_FLAGS); do \
52244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52245 done; \
52246 (cd $(TARGET_SUBDIR)/zlib && \
52247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52249 "RANLIB=$${RANLIB}" \
0c24b341 52250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52251 maintainer-clean) \
4fa63067 52252 || exit 1
e393202e 52253
6bd3dfaa 52254@endif target-zlib
930314a4 52255
4fa63067 52256
15723a45 52257
a7254363 52258
e90269c8 52259
a7254363
PB
52260.PHONY: configure-target-rda maybe-configure-target-rda
52261maybe-configure-target-rda:
4f0ef2d8
CD
52262@if gcc-bootstrap
52263configure-target-rda: stage_current
52264@endif gcc-bootstrap
a7254363
PB
52265@if target-rda
52266maybe-configure-target-rda: configure-target-rda
c52c6897 52267configure-target-rda:
0aed8855
PB
52268 @: $(MAKE); $(unstage)
52269 @r=`${PWD_COMMAND}`; export r; \
52270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52271 echo "Checking multilib configuration for rda..."; \
22121df0
L
52272 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
52273 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
52274 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
52275 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
52276 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
52277 else \
52278 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
52279 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
52280 fi; \
52281 else \
52282 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
52283 fi; \
52284 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 52285 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 52286 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
52287 echo Configuring in $(TARGET_SUBDIR)/rda; \
52288 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 52289 case $(srcdir) in \
b00612cc
PB
52290 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
52291 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
52292 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 52293 esac; \
1b6c0831 52294 module_srcdir=rda; \
bba45b8b 52295 rm -f no-such-file || : ; \
1b6c0831
L
52296 CONFIG_SITE=no-such-file $(SHELL) \
52297 $$s/$$module_srcdir/configure \
52298 --srcdir=$${topdir}/$$module_srcdir \
4b900473 52299 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 52300 --target=${target_alias} \
bba45b8b 52301 || exit 1
6bd3dfaa 52302@endif target-rda
49b7683b 52303
a7254363
PB
52304
52305
d545f33b
PB
52306
52307
4fa63067
NN
52308.PHONY: all-target-rda maybe-all-target-rda
52309maybe-all-target-rda:
4f0ef2d8
CD
52310@if gcc-bootstrap
52311all-target-rda: stage_current
52312@endif gcc-bootstrap
6bd3dfaa 52313@if target-rda
72b2455a 52314TARGET-target-rda=all
6bd3dfaa 52315maybe-all-target-rda: all-target-rda
4fa63067 52316all-target-rda: configure-target-rda
0aed8855 52317 @: $(MAKE); $(unstage)
b40e3958
L
52318 @r=`${PWD_COMMAND}`; export r; \
52319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 52320 $(NORMAL_TARGET_EXPORTS) \
4fa63067 52321 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 52322 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 52323 $(TARGET-target-rda))
6bd3dfaa 52324@endif target-rda
252b5132 52325
a7254363
PB
52326
52327
d545f33b
PB
52328
52329
4fa63067
NN
52330.PHONY: check-target-rda maybe-check-target-rda
52331maybe-check-target-rda:
6bd3dfaa
PB
52332@if target-rda
52333maybe-check-target-rda: check-target-rda
16ae0395 52334
4fa63067 52335check-target-rda:
0aed8855 52336 @: $(MAKE); $(unstage)
b40e3958
L
52337 @r=`${PWD_COMMAND}`; export r; \
52338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52339 $(NORMAL_TARGET_EXPORTS) \
4fa63067 52340 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 52341 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 52342
6bd3dfaa 52343@endif target-rda
930314a4 52344
4fa63067
NN
52345.PHONY: install-target-rda maybe-install-target-rda
52346maybe-install-target-rda:
6bd3dfaa
PB
52347@if target-rda
52348maybe-install-target-rda: install-target-rda
16ae0395 52349
4fa63067 52350install-target-rda: installdirs
0aed8855 52351 @: $(MAKE); $(unstage)
b40e3958
L
52352 @r=`${PWD_COMMAND}`; export r; \
52353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52354 $(NORMAL_TARGET_EXPORTS) \
4fa63067 52355 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 52356 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 52357
6bd3dfaa 52358@endif target-rda
e393202e 52359
9b980aa1
RW
52360.PHONY: install-strip-target-rda maybe-install-strip-target-rda
52361maybe-install-strip-target-rda:
52362@if target-rda
52363maybe-install-strip-target-rda: install-strip-target-rda
52364
52365install-strip-target-rda: installdirs
52366 @: $(MAKE); $(unstage)
52367 @r=`${PWD_COMMAND}`; export r; \
52368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52369 $(NORMAL_TARGET_EXPORTS) \
52370 (cd $(TARGET_SUBDIR)/rda && \
52371 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
52372
52373@endif target-rda
52374
56a8fe78 52375# Other targets (info, dvi, pdf, etc.)
15723a45 52376
4fa63067
NN
52377.PHONY: maybe-info-target-rda info-target-rda
52378maybe-info-target-rda:
6bd3dfaa
PB
52379@if target-rda
52380maybe-info-target-rda: info-target-rda
15723a45 52381
4fa63067
NN
52382info-target-rda: \
52383 configure-target-rda
0aed8855 52384 @: $(MAKE); $(unstage)
22121df0 52385 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
52386 r=`${PWD_COMMAND}`; export r; \
52387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52388 $(NORMAL_TARGET_EXPORTS) \
22121df0 52389 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
52390 for flag in $(EXTRA_TARGET_FLAGS); do \
52391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52392 done; \
52393 (cd $(TARGET_SUBDIR)/rda && \
52394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52396 "RANLIB=$${RANLIB}" \
0c24b341 52397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52398 info) \
bba45b8b 52399 || exit 1
252b5132 52400
6bd3dfaa 52401@endif target-rda
4fa63067
NN
52402
52403.PHONY: maybe-dvi-target-rda dvi-target-rda
52404maybe-dvi-target-rda:
6bd3dfaa
PB
52405@if target-rda
52406maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
52407
52408dvi-target-rda: \
52409 configure-target-rda
0aed8855 52410 @: $(MAKE); $(unstage)
22121df0 52411 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 52412 r=`${PWD_COMMAND}`; export r; \
b40e3958 52413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52414 $(NORMAL_TARGET_EXPORTS) \
22121df0 52415 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
52416 for flag in $(EXTRA_TARGET_FLAGS); do \
52417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52418 done; \
52419 (cd $(TARGET_SUBDIR)/rda && \
52420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52422 "RANLIB=$${RANLIB}" \
0c24b341 52423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52424 dvi) \
4fa63067 52425 || exit 1
252b5132 52426
6bd3dfaa 52427@endif target-rda
16ae0395 52428
56a8fe78
DD
52429.PHONY: maybe-pdf-target-rda pdf-target-rda
52430maybe-pdf-target-rda:
52431@if target-rda
52432maybe-pdf-target-rda: pdf-target-rda
52433
52434pdf-target-rda: \
52435 configure-target-rda
52436 @: $(MAKE); $(unstage)
22121df0 52437 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
52438 r=`${PWD_COMMAND}`; export r; \
52439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52440 $(NORMAL_TARGET_EXPORTS) \
22121df0 52441 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
52442 for flag in $(EXTRA_TARGET_FLAGS); do \
52443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52444 done; \
52445 (cd $(TARGET_SUBDIR)/rda && \
52446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52448 "RANLIB=$${RANLIB}" \
0c24b341 52449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
52450 pdf) \
52451 || exit 1
52452
52453@endif target-rda
52454
6d389afc
MS
52455.PHONY: maybe-html-target-rda html-target-rda
52456maybe-html-target-rda:
52457@if target-rda
52458maybe-html-target-rda: html-target-rda
52459
52460html-target-rda: \
52461 configure-target-rda
0aed8855 52462 @: $(MAKE); $(unstage)
22121df0 52463 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
52464 r=`${PWD_COMMAND}`; export r; \
52465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 52466 $(NORMAL_TARGET_EXPORTS) \
22121df0 52467 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
52468 for flag in $(EXTRA_TARGET_FLAGS); do \
52469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52470 done; \
52471 (cd $(TARGET_SUBDIR)/rda && \
52472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52474 "RANLIB=$${RANLIB}" \
0c24b341 52475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
52476 html) \
52477 || exit 1
52478
52479@endif target-rda
52480
4fa63067
NN
52481.PHONY: maybe-TAGS-target-rda TAGS-target-rda
52482maybe-TAGS-target-rda:
6bd3dfaa
PB
52483@if target-rda
52484maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
52485
52486TAGS-target-rda: \
52487 configure-target-rda
0aed8855 52488 @: $(MAKE); $(unstage)
22121df0 52489 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 52490 r=`${PWD_COMMAND}`; export r; \
b40e3958 52491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52492 $(NORMAL_TARGET_EXPORTS) \
22121df0 52493 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
52494 for flag in $(EXTRA_TARGET_FLAGS); do \
52495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52496 done; \
52497 (cd $(TARGET_SUBDIR)/rda && \
52498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52500 "RANLIB=$${RANLIB}" \
0c24b341 52501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52502 TAGS) \
4fa63067 52503 || exit 1
e393202e 52504
6bd3dfaa 52505@endif target-rda
930314a4 52506
4fa63067
NN
52507.PHONY: maybe-install-info-target-rda install-info-target-rda
52508maybe-install-info-target-rda:
6bd3dfaa
PB
52509@if target-rda
52510maybe-install-info-target-rda: install-info-target-rda
16ae0395 52511
4fa63067
NN
52512install-info-target-rda: \
52513 configure-target-rda \
52514 info-target-rda
0aed8855 52515 @: $(MAKE); $(unstage)
22121df0 52516 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 52517 r=`${PWD_COMMAND}`; export r; \
b40e3958 52518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52519 $(NORMAL_TARGET_EXPORTS) \
22121df0 52520 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
52521 for flag in $(EXTRA_TARGET_FLAGS); do \
52522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52523 done; \
52524 (cd $(TARGET_SUBDIR)/rda && \
52525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52527 "RANLIB=$${RANLIB}" \
0c24b341 52528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52529 install-info) \
4fa63067 52530 || exit 1
252b5132 52531
6bd3dfaa 52532@endif target-rda
e393202e 52533
a3ca38d2
DD
52534.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
52535maybe-install-pdf-target-rda:
52536@if target-rda
52537maybe-install-pdf-target-rda: install-pdf-target-rda
52538
52539install-pdf-target-rda: \
52540 configure-target-rda \
52541 pdf-target-rda
52542 @: $(MAKE); $(unstage)
22121df0 52543 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
52544 r=`${PWD_COMMAND}`; export r; \
52545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52546 $(NORMAL_TARGET_EXPORTS) \
22121df0 52547 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
52548 for flag in $(EXTRA_TARGET_FLAGS); do \
52549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52550 done; \
52551 (cd $(TARGET_SUBDIR)/rda && \
52552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52554 "RANLIB=$${RANLIB}" \
0c24b341 52555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
52556 install-pdf) \
52557 || exit 1
52558
52559@endif target-rda
52560
108a6f8e
CD
52561.PHONY: maybe-install-html-target-rda install-html-target-rda
52562maybe-install-html-target-rda:
52563@if target-rda
52564maybe-install-html-target-rda: install-html-target-rda
52565
52566install-html-target-rda: \
52567 configure-target-rda \
52568 html-target-rda
52569 @: $(MAKE); $(unstage)
22121df0 52570 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
52571 r=`${PWD_COMMAND}`; export r; \
52572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52573 $(NORMAL_TARGET_EXPORTS) \
22121df0 52574 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
52575 for flag in $(EXTRA_TARGET_FLAGS); do \
52576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52577 done; \
52578 (cd $(TARGET_SUBDIR)/rda && \
52579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52581 "RANLIB=$${RANLIB}" \
0c24b341 52582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
52583 install-html) \
52584 || exit 1
52585
52586@endif target-rda
52587
4fa63067
NN
52588.PHONY: maybe-installcheck-target-rda installcheck-target-rda
52589maybe-installcheck-target-rda:
6bd3dfaa
PB
52590@if target-rda
52591maybe-installcheck-target-rda: installcheck-target-rda
15723a45 52592
4fa63067
NN
52593installcheck-target-rda: \
52594 configure-target-rda
0aed8855 52595 @: $(MAKE); $(unstage)
22121df0 52596 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
52597 r=`${PWD_COMMAND}`; export r; \
52598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52599 $(NORMAL_TARGET_EXPORTS) \
22121df0 52600 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
52601 for flag in $(EXTRA_TARGET_FLAGS); do \
52602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52603 done; \
52604 (cd $(TARGET_SUBDIR)/rda && \
52605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52607 "RANLIB=$${RANLIB}" \
0c24b341 52608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52609 installcheck) \
4fa63067 52610 || exit 1
15723a45 52611
6bd3dfaa 52612@endif target-rda
4fa63067
NN
52613
52614.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
52615maybe-mostlyclean-target-rda:
6bd3dfaa
PB
52616@if target-rda
52617maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
52618
52619mostlyclean-target-rda:
0aed8855 52620 @: $(MAKE); $(unstage)
22121df0 52621 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
52622 r=`${PWD_COMMAND}`; export r; \
52623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52624 $(NORMAL_TARGET_EXPORTS) \
22121df0 52625 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
52626 for flag in $(EXTRA_TARGET_FLAGS); do \
52627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52628 done; \
52629 (cd $(TARGET_SUBDIR)/rda && \
52630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52632 "RANLIB=$${RANLIB}" \
0c24b341 52633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52634 mostlyclean) \
bba45b8b 52635 || exit 1
252b5132 52636
6bd3dfaa 52637@endif target-rda
4fa63067
NN
52638
52639.PHONY: maybe-clean-target-rda clean-target-rda
52640maybe-clean-target-rda:
6bd3dfaa
PB
52641@if target-rda
52642maybe-clean-target-rda: clean-target-rda
4fa63067
NN
52643
52644clean-target-rda:
0aed8855 52645 @: $(MAKE); $(unstage)
22121df0 52646 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 52647 r=`${PWD_COMMAND}`; export r; \
b40e3958 52648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52649 $(NORMAL_TARGET_EXPORTS) \
22121df0 52650 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
52651 for flag in $(EXTRA_TARGET_FLAGS); do \
52652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52653 done; \
bba45b8b 52654 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
52655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52657 "RANLIB=$${RANLIB}" \
0c24b341 52658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52659 clean) \
4fa63067 52660 || exit 1
252b5132 52661
6bd3dfaa 52662@endif target-rda
16ae0395 52663
4fa63067
NN
52664.PHONY: maybe-distclean-target-rda distclean-target-rda
52665maybe-distclean-target-rda:
6bd3dfaa
PB
52666@if target-rda
52667maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
52668
52669distclean-target-rda:
0aed8855 52670 @: $(MAKE); $(unstage)
22121df0 52671 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 52672 r=`${PWD_COMMAND}`; export r; \
b40e3958 52673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52674 $(NORMAL_TARGET_EXPORTS) \
22121df0 52675 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
52676 for flag in $(EXTRA_TARGET_FLAGS); do \
52677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52678 done; \
bba45b8b 52679 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
52680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52682 "RANLIB=$${RANLIB}" \
0c24b341 52683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52684 distclean) \
4fa63067 52685 || exit 1
252b5132 52686
6bd3dfaa 52687@endif target-rda
930314a4 52688
4fa63067
NN
52689.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
52690maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
52691@if target-rda
52692maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 52693
4fa63067 52694maintainer-clean-target-rda:
0aed8855 52695 @: $(MAKE); $(unstage)
22121df0 52696 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 52697 r=`${PWD_COMMAND}`; export r; \
b40e3958 52698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52699 $(NORMAL_TARGET_EXPORTS) \
22121df0 52700 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
52701 for flag in $(EXTRA_TARGET_FLAGS); do \
52702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52703 done; \
bba45b8b 52704 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
52705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52707 "RANLIB=$${RANLIB}" \
0c24b341 52708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52709 maintainer-clean) \
4fa63067
NN
52710 || exit 1
52711
6bd3dfaa 52712@endif target-rda
252b5132 52713
e393202e 52714
a2592b1b 52715
a7254363
PB
52716
52717
52718.PHONY: configure-target-libada maybe-configure-target-libada
52719maybe-configure-target-libada:
4f0ef2d8
CD
52720@if gcc-bootstrap
52721configure-target-libada: stage_current
52722@endif gcc-bootstrap
a7254363
PB
52723@if target-libada
52724maybe-configure-target-libada: configure-target-libada
c52c6897 52725configure-target-libada:
0aed8855
PB
52726 @: $(MAKE); $(unstage)
52727 @r=`${PWD_COMMAND}`; export r; \
52728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52729 echo "Checking multilib configuration for libada..."; \
22121df0
L
52730 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
52731 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
52732 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
52733 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
52734 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
52735 else \
52736 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
52737 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
52738 fi; \
52739 else \
52740 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
52741 fi; \
52742 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 52743 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 52744 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
52745 echo Configuring in $(TARGET_SUBDIR)/libada; \
52746 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
52747 case $(srcdir) in \
b00612cc
PB
52748 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
52749 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
52750 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 52751 esac; \
1b6c0831 52752 module_srcdir=libada; \
a2592b1b 52753 rm -f no-such-file || : ; \
1b6c0831
L
52754 CONFIG_SITE=no-such-file $(SHELL) \
52755 $$s/$$module_srcdir/configure \
52756 --srcdir=$${topdir}/$$module_srcdir \
4b900473 52757 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 52758 --target=${target_alias} \
a2592b1b 52759 || exit 1
6bd3dfaa 52760@endif target-libada
a2592b1b 52761
a7254363
PB
52762
52763
d545f33b
PB
52764
52765
4fa63067
NN
52766.PHONY: all-target-libada maybe-all-target-libada
52767maybe-all-target-libada:
4f0ef2d8
CD
52768@if gcc-bootstrap
52769all-target-libada: stage_current
52770@endif gcc-bootstrap
6bd3dfaa 52771@if target-libada
72b2455a 52772TARGET-target-libada=all
6bd3dfaa 52773maybe-all-target-libada: all-target-libada
4fa63067 52774all-target-libada: configure-target-libada
0aed8855 52775 @: $(MAKE); $(unstage)
4fa63067
NN
52776 @r=`${PWD_COMMAND}`; export r; \
52777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 52778 $(NORMAL_TARGET_EXPORTS) \
4fa63067 52779 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 52780 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 52781 $(TARGET-target-libada))
6bd3dfaa 52782@endif target-libada
4fa63067 52783
a7254363
PB
52784
52785
d545f33b
PB
52786
52787
4fa63067
NN
52788.PHONY: check-target-libada maybe-check-target-libada
52789maybe-check-target-libada:
6bd3dfaa
PB
52790@if target-libada
52791maybe-check-target-libada: check-target-libada
4fa63067
NN
52792
52793check-target-libada:
0aed8855 52794 @: $(MAKE); $(unstage)
4fa63067
NN
52795 @r=`${PWD_COMMAND}`; export r; \
52796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52797 $(NORMAL_TARGET_EXPORTS) \
4fa63067 52798 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 52799 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 52800
6bd3dfaa 52801@endif target-libada
4fa63067
NN
52802
52803.PHONY: install-target-libada maybe-install-target-libada
52804maybe-install-target-libada:
6bd3dfaa
PB
52805@if target-libada
52806maybe-install-target-libada: install-target-libada
4fa63067
NN
52807
52808install-target-libada: installdirs
0aed8855 52809 @: $(MAKE); $(unstage)
4fa63067
NN
52810 @r=`${PWD_COMMAND}`; export r; \
52811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52812 $(NORMAL_TARGET_EXPORTS) \
4fa63067 52813 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 52814 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 52815
6bd3dfaa 52816@endif target-libada
4fa63067 52817
9b980aa1
RW
52818.PHONY: install-strip-target-libada maybe-install-strip-target-libada
52819maybe-install-strip-target-libada:
52820@if target-libada
52821maybe-install-strip-target-libada: install-strip-target-libada
52822
52823install-strip-target-libada: installdirs
52824 @: $(MAKE); $(unstage)
52825 @r=`${PWD_COMMAND}`; export r; \
52826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52827 $(NORMAL_TARGET_EXPORTS) \
52828 (cd $(TARGET_SUBDIR)/libada && \
52829 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
52830
52831@endif target-libada
52832
56a8fe78 52833# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
52834
52835.PHONY: maybe-info-target-libada info-target-libada
52836maybe-info-target-libada:
6bd3dfaa
PB
52837@if target-libada
52838maybe-info-target-libada: info-target-libada
4fa63067
NN
52839
52840info-target-libada: \
52841 configure-target-libada
0aed8855 52842 @: $(MAKE); $(unstage)
22121df0 52843 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
52844 r=`${PWD_COMMAND}`; export r; \
52845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52846 $(NORMAL_TARGET_EXPORTS) \
22121df0 52847 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
52848 for flag in $(EXTRA_TARGET_FLAGS); do \
52849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52850 done; \
52851 (cd $(TARGET_SUBDIR)/libada && \
52852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52854 "RANLIB=$${RANLIB}" \
0c24b341 52855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52856 info) \
4fa63067
NN
52857 || exit 1
52858
6bd3dfaa 52859@endif target-libada
4fa63067
NN
52860
52861.PHONY: maybe-dvi-target-libada dvi-target-libada
52862maybe-dvi-target-libada:
6bd3dfaa
PB
52863@if target-libada
52864maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
52865
52866dvi-target-libada: \
52867 configure-target-libada
0aed8855 52868 @: $(MAKE); $(unstage)
22121df0 52869 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
52870 r=`${PWD_COMMAND}`; export r; \
52871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52872 $(NORMAL_TARGET_EXPORTS) \
22121df0 52873 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
52874 for flag in $(EXTRA_TARGET_FLAGS); do \
52875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52876 done; \
52877 (cd $(TARGET_SUBDIR)/libada && \
52878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52880 "RANLIB=$${RANLIB}" \
0c24b341 52881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52882 dvi) \
4fa63067
NN
52883 || exit 1
52884
6bd3dfaa 52885@endif target-libada
4fa63067 52886
56a8fe78
DD
52887.PHONY: maybe-pdf-target-libada pdf-target-libada
52888maybe-pdf-target-libada:
52889@if target-libada
52890maybe-pdf-target-libada: pdf-target-libada
52891
52892pdf-target-libada: \
52893 configure-target-libada
52894 @: $(MAKE); $(unstage)
22121df0 52895 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
52896 r=`${PWD_COMMAND}`; export r; \
52897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
52898 $(NORMAL_TARGET_EXPORTS) \
22121df0 52899 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
52900 for flag in $(EXTRA_TARGET_FLAGS); do \
52901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52902 done; \
52903 (cd $(TARGET_SUBDIR)/libada && \
52904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52906 "RANLIB=$${RANLIB}" \
0c24b341 52907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
52908 pdf) \
52909 || exit 1
52910
52911@endif target-libada
52912
6d389afc
MS
52913.PHONY: maybe-html-target-libada html-target-libada
52914maybe-html-target-libada:
52915@if target-libada
52916maybe-html-target-libada: html-target-libada
52917
52918html-target-libada: \
52919 configure-target-libada
0aed8855 52920 @: $(MAKE); $(unstage)
22121df0 52921 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
52922 r=`${PWD_COMMAND}`; export r; \
52923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 52924 $(NORMAL_TARGET_EXPORTS) \
22121df0 52925 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
52926 for flag in $(EXTRA_TARGET_FLAGS); do \
52927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52928 done; \
52929 (cd $(TARGET_SUBDIR)/libada && \
52930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52932 "RANLIB=$${RANLIB}" \
0c24b341 52933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
52934 html) \
52935 || exit 1
52936
52937@endif target-libada
52938
4fa63067
NN
52939.PHONY: maybe-TAGS-target-libada TAGS-target-libada
52940maybe-TAGS-target-libada:
6bd3dfaa
PB
52941@if target-libada
52942maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
52943
52944TAGS-target-libada: \
52945 configure-target-libada
0aed8855 52946 @: $(MAKE); $(unstage)
22121df0 52947 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
52948 r=`${PWD_COMMAND}`; export r; \
52949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52950 $(NORMAL_TARGET_EXPORTS) \
22121df0 52951 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
52952 for flag in $(EXTRA_TARGET_FLAGS); do \
52953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52954 done; \
52955 (cd $(TARGET_SUBDIR)/libada && \
52956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52958 "RANLIB=$${RANLIB}" \
0c24b341 52959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52960 TAGS) \
4fa63067
NN
52961 || exit 1
52962
6bd3dfaa 52963@endif target-libada
4fa63067
NN
52964
52965.PHONY: maybe-install-info-target-libada install-info-target-libada
52966maybe-install-info-target-libada:
6bd3dfaa
PB
52967@if target-libada
52968maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
52969
52970install-info-target-libada: \
52971 configure-target-libada \
52972 info-target-libada
0aed8855 52973 @: $(MAKE); $(unstage)
22121df0 52974 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
52975 r=`${PWD_COMMAND}`; export r; \
52976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 52977 $(NORMAL_TARGET_EXPORTS) \
22121df0 52978 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
52979 for flag in $(EXTRA_TARGET_FLAGS); do \
52980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
52981 done; \
52982 (cd $(TARGET_SUBDIR)/libada && \
52983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
52984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
52985 "RANLIB=$${RANLIB}" \
0c24b341 52986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 52987 install-info) \
4fa63067
NN
52988 || exit 1
52989
6bd3dfaa 52990@endif target-libada
4fa63067 52991
a3ca38d2
DD
52992.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
52993maybe-install-pdf-target-libada:
52994@if target-libada
52995maybe-install-pdf-target-libada: install-pdf-target-libada
52996
52997install-pdf-target-libada: \
52998 configure-target-libada \
52999 pdf-target-libada
53000 @: $(MAKE); $(unstage)
22121df0 53001 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
53002 r=`${PWD_COMMAND}`; export r; \
53003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53004 $(NORMAL_TARGET_EXPORTS) \
22121df0 53005 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
53006 for flag in $(EXTRA_TARGET_FLAGS); do \
53007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53008 done; \
53009 (cd $(TARGET_SUBDIR)/libada && \
53010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53012 "RANLIB=$${RANLIB}" \
0c24b341 53013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
53014 install-pdf) \
53015 || exit 1
53016
53017@endif target-libada
53018
108a6f8e
CD
53019.PHONY: maybe-install-html-target-libada install-html-target-libada
53020maybe-install-html-target-libada:
53021@if target-libada
53022maybe-install-html-target-libada: install-html-target-libada
53023
53024install-html-target-libada: \
53025 configure-target-libada \
53026 html-target-libada
53027 @: $(MAKE); $(unstage)
22121df0 53028 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
53029 r=`${PWD_COMMAND}`; export r; \
53030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53031 $(NORMAL_TARGET_EXPORTS) \
22121df0 53032 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
53033 for flag in $(EXTRA_TARGET_FLAGS); do \
53034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53035 done; \
53036 (cd $(TARGET_SUBDIR)/libada && \
53037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53039 "RANLIB=$${RANLIB}" \
0c24b341 53040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
53041 install-html) \
53042 || exit 1
53043
53044@endif target-libada
53045
4fa63067
NN
53046.PHONY: maybe-installcheck-target-libada installcheck-target-libada
53047maybe-installcheck-target-libada:
6bd3dfaa
PB
53048@if target-libada
53049maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
53050
53051installcheck-target-libada: \
53052 configure-target-libada
0aed8855 53053 @: $(MAKE); $(unstage)
22121df0 53054 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
53055 r=`${PWD_COMMAND}`; export r; \
53056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 53057 $(NORMAL_TARGET_EXPORTS) \
22121df0 53058 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
53059 for flag in $(EXTRA_TARGET_FLAGS); do \
53060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53061 done; \
53062 (cd $(TARGET_SUBDIR)/libada && \
53063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53065 "RANLIB=$${RANLIB}" \
0c24b341 53066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 53067 installcheck) \
4fa63067
NN
53068 || exit 1
53069
6bd3dfaa 53070@endif target-libada
4fa63067
NN
53071
53072.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
53073maybe-mostlyclean-target-libada:
6bd3dfaa
PB
53074@if target-libada
53075maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
53076
53077mostlyclean-target-libada:
0aed8855 53078 @: $(MAKE); $(unstage)
22121df0 53079 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
53080 r=`${PWD_COMMAND}`; export r; \
53081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 53082 $(NORMAL_TARGET_EXPORTS) \
22121df0 53083 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
53084 for flag in $(EXTRA_TARGET_FLAGS); do \
53085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53086 done; \
53087 (cd $(TARGET_SUBDIR)/libada && \
53088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53090 "RANLIB=$${RANLIB}" \
0c24b341 53091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 53092 mostlyclean) \
4fa63067
NN
53093 || exit 1
53094
6bd3dfaa 53095@endif target-libada
4fa63067
NN
53096
53097.PHONY: maybe-clean-target-libada clean-target-libada
53098maybe-clean-target-libada:
6bd3dfaa
PB
53099@if target-libada
53100maybe-clean-target-libada: clean-target-libada
4fa63067
NN
53101
53102clean-target-libada:
0aed8855 53103 @: $(MAKE); $(unstage)
22121df0 53104 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
53105 r=`${PWD_COMMAND}`; export r; \
53106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 53107 $(NORMAL_TARGET_EXPORTS) \
22121df0 53108 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
53109 for flag in $(EXTRA_TARGET_FLAGS); do \
53110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53111 done; \
53112 (cd $(TARGET_SUBDIR)/libada && \
53113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53115 "RANLIB=$${RANLIB}" \
0c24b341 53116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 53117 clean) \
4fa63067
NN
53118 || exit 1
53119
6bd3dfaa 53120@endif target-libada
a2592b1b 53121
4fa63067
NN
53122.PHONY: maybe-distclean-target-libada distclean-target-libada
53123maybe-distclean-target-libada:
6bd3dfaa
PB
53124@if target-libada
53125maybe-distclean-target-libada: distclean-target-libada
a2592b1b 53126
4fa63067 53127distclean-target-libada:
0aed8855 53128 @: $(MAKE); $(unstage)
22121df0 53129 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 53130 r=`${PWD_COMMAND}`; export r; \
a2592b1b 53131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 53132 $(NORMAL_TARGET_EXPORTS) \
22121df0 53133 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
53134 for flag in $(EXTRA_TARGET_FLAGS); do \
53135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53136 done; \
a2592b1b 53137 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
53138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53140 "RANLIB=$${RANLIB}" \
0c24b341 53141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 53142 distclean) \
4fa63067 53143 || exit 1
a2592b1b 53144
6bd3dfaa 53145@endif target-libada
a2592b1b 53146
4fa63067
NN
53147.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
53148maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
53149@if target-libada
53150maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 53151
4fa63067 53152maintainer-clean-target-libada:
0aed8855 53153 @: $(MAKE); $(unstage)
22121df0 53154 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 53155 r=`${PWD_COMMAND}`; export r; \
a2592b1b 53156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 53157 $(NORMAL_TARGET_EXPORTS) \
22121df0 53158 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
53159 for flag in $(EXTRA_TARGET_FLAGS); do \
53160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
53161 done; \
a2592b1b 53162 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
53163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
53164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
53165 "RANLIB=$${RANLIB}" \
0c24b341 53166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 53167 maintainer-clean) \
4fa63067
NN
53168 || exit 1
53169
6bd3dfaa 53170@endif target-libada
a2592b1b
DD
53171
53172
e393202e 53173
b3ded179
PB
53174
53175
53176.PHONY: configure-target-libgomp maybe-configure-target-libgomp
53177maybe-configure-target-libgomp:
4f0ef2d8
CD
53178@if gcc-bootstrap
53179configure-target-libgomp: stage_current
53180@endif gcc-bootstrap
b3ded179
PB
53181@if target-libgomp
53182maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 53183configure-target-libgomp:
b3ded179
PB
53184 @r=`${PWD_COMMAND}`; export r; \
53185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53186 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
53187 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
53188 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
53189 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53190 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53191 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53192 else \
53193 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53194 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53195 fi; \
53196 else \
53197 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
53198 fi; \
53199 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 53200 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 53201 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
53202 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
53203 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
53204 case $(srcdir) in \
53205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53206 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53208 esac; \
1b6c0831 53209 module_srcdir=libgomp; \
b3ded179 53210 rm -f no-such-file || : ; \
1b6c0831
L
53211 CONFIG_SITE=no-such-file $(SHELL) \
53212 $$s/$$module_srcdir/configure \
53213 --srcdir=$${topdir}/$$module_srcdir \
4b900473 53214 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 53215 --target=${target_alias} \
b3ded179
PB
53216 || exit 1
53217@endif target-libgomp
53218
53219
53220
911e63d0
JR
53221.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
53222maybe-configure-stage1-target-libgomp:
53223@if target-libgomp-bootstrap
53224maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
53225configure-stage1-target-libgomp:
53226 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
53227 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
53228 @r=`${PWD_COMMAND}`; export r; \
53229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53230 TFLAGS="$(STAGE1_TFLAGS)"; \
53231 echo "Checking multilib configuration for libgomp..."; \
22121df0 53232 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
53233 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53234 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53235 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53236 else \
53237 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53238 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53239 fi; \
53240 else \
53241 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53242 fi; \
53243 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
53244 $(NORMAL_TARGET_EXPORTS) \
53245 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
53246 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
53247 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
53248 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
53249 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
53250 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
53251 case $(srcdir) in \
53252 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53253 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53254 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53255 esac; \
1b6c0831
L
53256 module_srcdir=libgomp; \
53257 $(SHELL) $$s/$$module_srcdir/configure \
53258 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 53259 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
53260 --target=${target_alias} \
53261 \
911e63d0
JR
53262 $(STAGE1_CONFIGURE_FLAGS)
53263@endif target-libgomp-bootstrap
53264
53265.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
53266maybe-configure-stage2-target-libgomp:
53267@if target-libgomp-bootstrap
53268maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
53269configure-stage2-target-libgomp:
53270 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
53271 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
53272 @r=`${PWD_COMMAND}`; export r; \
53273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53274 TFLAGS="$(STAGE2_TFLAGS)"; \
53275 echo "Checking multilib configuration for libgomp..."; \
22121df0 53276 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
53277 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53278 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53279 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53280 else \
53281 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53282 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53283 fi; \
53284 else \
53285 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53286 fi; \
53287 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
53288 $(NORMAL_TARGET_EXPORTS) \
53289 \
53290 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
53291 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
53292 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
53293 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
53294 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
53295 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
53296 case $(srcdir) in \
53297 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53298 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53299 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53300 esac; \
1b6c0831
L
53301 module_srcdir=libgomp; \
53302 $(SHELL) $$s/$$module_srcdir/configure \
53303 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 53304 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 53305 --target=${target_alias} \
22121df0 53306 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
53307 $(STAGE2_CONFIGURE_FLAGS)
53308@endif target-libgomp-bootstrap
53309
53310.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
53311maybe-configure-stage3-target-libgomp:
53312@if target-libgomp-bootstrap
53313maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
53314configure-stage3-target-libgomp:
53315 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
53316 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
53317 @r=`${PWD_COMMAND}`; export r; \
53318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53319 TFLAGS="$(STAGE3_TFLAGS)"; \
53320 echo "Checking multilib configuration for libgomp..."; \
22121df0 53321 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
53322 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53323 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53324 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53325 else \
53326 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53327 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53328 fi; \
53329 else \
53330 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53331 fi; \
53332 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
53333 $(NORMAL_TARGET_EXPORTS) \
53334 \
53335 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
53336 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
53337 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
53338 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
53339 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
53340 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
53341 case $(srcdir) in \
53342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53343 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53345 esac; \
1b6c0831
L
53346 module_srcdir=libgomp; \
53347 $(SHELL) $$s/$$module_srcdir/configure \
53348 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 53349 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 53350 --target=${target_alias} \
22121df0 53351 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
53352 $(STAGE3_CONFIGURE_FLAGS)
53353@endif target-libgomp-bootstrap
53354
53355.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
53356maybe-configure-stage4-target-libgomp:
53357@if target-libgomp-bootstrap
53358maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
53359configure-stage4-target-libgomp:
53360 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
53361 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
53362 @r=`${PWD_COMMAND}`; export r; \
53363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53364 TFLAGS="$(STAGE4_TFLAGS)"; \
53365 echo "Checking multilib configuration for libgomp..."; \
22121df0 53366 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
53367 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53368 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53369 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53370 else \
53371 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53372 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53373 fi; \
53374 else \
53375 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53376 fi; \
53377 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
53378 $(NORMAL_TARGET_EXPORTS) \
53379 \
53380 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
53381 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
53382 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
53383 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
53384 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
53385 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
53386 case $(srcdir) in \
53387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53388 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53390 esac; \
1b6c0831
L
53391 module_srcdir=libgomp; \
53392 $(SHELL) $$s/$$module_srcdir/configure \
53393 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 53394 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 53395 --target=${target_alias} \
22121df0 53396 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
53397 $(STAGE4_CONFIGURE_FLAGS)
53398@endif target-libgomp-bootstrap
53399
53400.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
53401maybe-configure-stageprofile-target-libgomp:
53402@if target-libgomp-bootstrap
53403maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
53404configure-stageprofile-target-libgomp:
53405 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
53406 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
53407 @r=`${PWD_COMMAND}`; export r; \
53408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53409 TFLAGS="$(STAGEprofile_TFLAGS)"; \
53410 echo "Checking multilib configuration for libgomp..."; \
22121df0 53411 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
53412 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53413 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53414 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53415 else \
53416 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53417 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53418 fi; \
53419 else \
53420 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53421 fi; \
53422 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
53423 $(NORMAL_TARGET_EXPORTS) \
53424 \
53425 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
53426 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
53427 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
53428 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
53429 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
53430 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
53431 case $(srcdir) in \
53432 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53433 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53434 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53435 esac; \
1b6c0831
L
53436 module_srcdir=libgomp; \
53437 $(SHELL) $$s/$$module_srcdir/configure \
53438 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 53439 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 53440 --target=${target_alias} \
22121df0 53441 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
53442 $(STAGEprofile_CONFIGURE_FLAGS)
53443@endif target-libgomp-bootstrap
53444
f948b2de
NC
53445.PHONY: configure-stagetrain-target-libgomp maybe-configure-stagetrain-target-libgomp
53446maybe-configure-stagetrain-target-libgomp:
53447@if target-libgomp-bootstrap
53448maybe-configure-stagetrain-target-libgomp: configure-stagetrain-target-libgomp
53449configure-stagetrain-target-libgomp:
53450 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
53451 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
53452 @r=`${PWD_COMMAND}`; export r; \
53453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53454 TFLAGS="$(STAGEtrain_TFLAGS)"; \
53455 echo "Checking multilib configuration for libgomp..."; \
53456 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
53457 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53458 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53459 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53460 else \
53461 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53462 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53463 fi; \
53464 else \
53465 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53466 fi; \
53467 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
53468 $(NORMAL_TARGET_EXPORTS) \
53469 \
53470 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
53471 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
53472 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
53473 echo Configuring stage train in $(TARGET_SUBDIR)/libgomp; \
53474 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
53475 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
53476 case $(srcdir) in \
53477 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53478 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53479 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53480 esac; \
53481 module_srcdir=libgomp; \
53482 $(SHELL) $$s/$$module_srcdir/configure \
53483 --srcdir=$${topdir}/$$module_srcdir \
53484 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
53485 --target=${target_alias} \
53486 --with-build-libsubdir=$(HOST_SUBDIR) \
53487 $(STAGEtrain_CONFIGURE_FLAGS)
53488@endif target-libgomp-bootstrap
53489
911e63d0
JR
53490.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
53491maybe-configure-stagefeedback-target-libgomp:
53492@if target-libgomp-bootstrap
53493maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
53494configure-stagefeedback-target-libgomp:
53495 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
53496 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
53497 @r=`${PWD_COMMAND}`; export r; \
53498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53499 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
53500 echo "Checking multilib configuration for libgomp..."; \
22121df0 53501 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
53502 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53503 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53504 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53505 else \
53506 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53507 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53508 fi; \
53509 else \
53510 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53511 fi; \
53512 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
53513 $(NORMAL_TARGET_EXPORTS) \
53514 \
53515 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
53516 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
53517 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
53518 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
53519 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
53520 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
53521 case $(srcdir) in \
53522 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53523 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53524 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53525 esac; \
1b6c0831
L
53526 module_srcdir=libgomp; \
53527 $(SHELL) $$s/$$module_srcdir/configure \
53528 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 53529 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 53530 --target=${target_alias} \
22121df0 53531 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
53532 $(STAGEfeedback_CONFIGURE_FLAGS)
53533@endif target-libgomp-bootstrap
53534
f948b2de
NC
53535.PHONY: configure-stageautoprofile-target-libgomp maybe-configure-stageautoprofile-target-libgomp
53536maybe-configure-stageautoprofile-target-libgomp:
53537@if target-libgomp-bootstrap
53538maybe-configure-stageautoprofile-target-libgomp: configure-stageautoprofile-target-libgomp
53539configure-stageautoprofile-target-libgomp:
53540 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
53541 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
53542 @r=`${PWD_COMMAND}`; export r; \
53543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53544 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
53545 echo "Checking multilib configuration for libgomp..."; \
53546 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
53547 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53548 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53549 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53550 else \
53551 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53552 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53553 fi; \
53554 else \
53555 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53556 fi; \
53557 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
53558 $(NORMAL_TARGET_EXPORTS) \
53559 \
53560 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
53561 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
53562 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
53563 echo Configuring stage autoprofile in $(TARGET_SUBDIR)/libgomp; \
53564 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
53565 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
53566 case $(srcdir) in \
53567 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53568 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53569 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53570 esac; \
53571 module_srcdir=libgomp; \
53572 $(SHELL) $$s/$$module_srcdir/configure \
53573 --srcdir=$${topdir}/$$module_srcdir \
53574 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
53575 --target=${target_alias} \
53576 --with-build-libsubdir=$(HOST_SUBDIR) \
53577 $(STAGEautoprofile_CONFIGURE_FLAGS)
53578@endif target-libgomp-bootstrap
53579
53580.PHONY: configure-stageautofeedback-target-libgomp maybe-configure-stageautofeedback-target-libgomp
53581maybe-configure-stageautofeedback-target-libgomp:
53582@if target-libgomp-bootstrap
53583maybe-configure-stageautofeedback-target-libgomp: configure-stageautofeedback-target-libgomp
53584configure-stageautofeedback-target-libgomp:
53585 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
53586 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
53587 @r=`${PWD_COMMAND}`; export r; \
53588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53589 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
53590 echo "Checking multilib configuration for libgomp..."; \
53591 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
53592 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53593 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
53594 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
53595 else \
53596 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
53597 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53598 fi; \
53599 else \
53600 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
53601 fi; \
53602 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
53603 $(NORMAL_TARGET_EXPORTS) \
53604 \
53605 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
53606 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
53607 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
53608 echo Configuring stage autofeedback in $(TARGET_SUBDIR)/libgomp; \
53609 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
53610 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
53611 case $(srcdir) in \
53612 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
53613 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
53614 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53615 esac; \
53616 module_srcdir=libgomp; \
53617 $(SHELL) $$s/$$module_srcdir/configure \
53618 --srcdir=$${topdir}/$$module_srcdir \
53619 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
53620 --target=${target_alias} \
53621 --with-build-libsubdir=$(HOST_SUBDIR) \
53622 $(STAGEautofeedback_CONFIGURE_FLAGS)
53623@endif target-libgomp-bootstrap
53624
911e63d0
JR
53625
53626
b3ded179
PB
53627
53628
53629.PHONY: all-target-libgomp maybe-all-target-libgomp
53630maybe-all-target-libgomp:
4f0ef2d8
CD
53631@if gcc-bootstrap
53632all-target-libgomp: stage_current
53633@endif gcc-bootstrap
b3ded179
PB
53634@if target-libgomp
53635TARGET-target-libgomp=all
53636maybe-all-target-libgomp: all-target-libgomp
53637all-target-libgomp: configure-target-libgomp
b3ded179
PB
53638 @r=`${PWD_COMMAND}`; export r; \
53639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 53640 $(NORMAL_TARGET_EXPORTS) \
b3ded179 53641 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 53642 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 53643 $(TARGET-target-libgomp))
b3ded179
PB
53644@endif target-libgomp
53645
53646
53647
911e63d0
JR
53648.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
53649.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
53650maybe-all-stage1-target-libgomp:
53651maybe-clean-stage1-target-libgomp:
53652@if target-libgomp-bootstrap
53653maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
53654all-stage1: all-stage1-target-libgomp
53655TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
53656all-stage1-target-libgomp: configure-stage1-target-libgomp
53657 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
53658 @r=`${PWD_COMMAND}`; export r; \
53659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53660 TFLAGS="$(STAGE1_TFLAGS)"; \
53661 $(NORMAL_TARGET_EXPORTS) \
53662 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 53663 \
911e63d0
JR
53664 $(MAKE) $(BASE_FLAGS_TO_PASS) \
53665 CFLAGS="$(CFLAGS_FOR_TARGET)" \
53666 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
53667 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
53668 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
53669 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
53670 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
53671 $(EXTRA_TARGET_FLAGS) \
53672 \
05a13254 53673 TFLAGS="$(STAGE1_TFLAGS)" \
911e63d0
JR
53674 $(TARGET-stage1-target-libgomp)
53675
53676maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
53677clean-stage1: clean-stage1-target-libgomp
53678clean-stage1-target-libgomp:
53679 @if [ $(current_stage) = stage1 ]; then \
53680 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
53681 else \
53682 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
53683 $(MAKE) stage1-start; \
53684 fi; \
53685 cd $(TARGET_SUBDIR)/libgomp && \
53686 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 53687 clean
911e63d0
JR
53688@endif target-libgomp-bootstrap
53689
53690
53691.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
53692.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
53693maybe-all-stage2-target-libgomp:
53694maybe-clean-stage2-target-libgomp:
53695@if target-libgomp-bootstrap
53696maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
53697all-stage2: all-stage2-target-libgomp
53698TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
53699all-stage2-target-libgomp: configure-stage2-target-libgomp
53700 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
53701 @r=`${PWD_COMMAND}`; export r; \
53702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53703 TFLAGS="$(STAGE2_TFLAGS)"; \
53704 $(NORMAL_TARGET_EXPORTS) \
53705 \
53706 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 53707 \
911e63d0
JR
53708 $(MAKE) $(BASE_FLAGS_TO_PASS) \
53709 CFLAGS="$(CFLAGS_FOR_TARGET)" \
53710 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
53711 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
53712 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
53713 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
53714 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
53715 $(EXTRA_TARGET_FLAGS) \
05a13254 53716 TFLAGS="$(STAGE2_TFLAGS)" \
911e63d0
JR
53717 $(TARGET-stage2-target-libgomp)
53718
53719maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
53720clean-stage2: clean-stage2-target-libgomp
53721clean-stage2-target-libgomp:
53722 @if [ $(current_stage) = stage2 ]; then \
53723 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
53724 else \
53725 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
53726 $(MAKE) stage2-start; \
53727 fi; \
53728 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 53729 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
53730@endif target-libgomp-bootstrap
53731
53732
53733.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
53734.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
53735maybe-all-stage3-target-libgomp:
53736maybe-clean-stage3-target-libgomp:
53737@if target-libgomp-bootstrap
53738maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
53739all-stage3: all-stage3-target-libgomp
53740TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
53741all-stage3-target-libgomp: configure-stage3-target-libgomp
53742 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
53743 @r=`${PWD_COMMAND}`; export r; \
53744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53745 TFLAGS="$(STAGE3_TFLAGS)"; \
53746 $(NORMAL_TARGET_EXPORTS) \
53747 \
53748 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 53749 \
911e63d0
JR
53750 $(MAKE) $(BASE_FLAGS_TO_PASS) \
53751 CFLAGS="$(CFLAGS_FOR_TARGET)" \
53752 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
53753 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
53754 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
53755 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
53756 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
53757 $(EXTRA_TARGET_FLAGS) \
05a13254 53758 TFLAGS="$(STAGE3_TFLAGS)" \
911e63d0
JR
53759 $(TARGET-stage3-target-libgomp)
53760
53761maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
53762clean-stage3: clean-stage3-target-libgomp
53763clean-stage3-target-libgomp:
53764 @if [ $(current_stage) = stage3 ]; then \
53765 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
53766 else \
53767 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
53768 $(MAKE) stage3-start; \
53769 fi; \
53770 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 53771 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
53772@endif target-libgomp-bootstrap
53773
53774
53775.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
53776.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
53777maybe-all-stage4-target-libgomp:
53778maybe-clean-stage4-target-libgomp:
53779@if target-libgomp-bootstrap
53780maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
53781all-stage4: all-stage4-target-libgomp
53782TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
53783all-stage4-target-libgomp: configure-stage4-target-libgomp
53784 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
53785 @r=`${PWD_COMMAND}`; export r; \
53786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53787 TFLAGS="$(STAGE4_TFLAGS)"; \
53788 $(NORMAL_TARGET_EXPORTS) \
53789 \
53790 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 53791 \
911e63d0
JR
53792 $(MAKE) $(BASE_FLAGS_TO_PASS) \
53793 CFLAGS="$(CFLAGS_FOR_TARGET)" \
53794 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
53795 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
53796 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
53797 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
53798 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
53799 $(EXTRA_TARGET_FLAGS) \
05a13254 53800 TFLAGS="$(STAGE4_TFLAGS)" \
911e63d0
JR
53801 $(TARGET-stage4-target-libgomp)
53802
53803maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
53804clean-stage4: clean-stage4-target-libgomp
53805clean-stage4-target-libgomp:
53806 @if [ $(current_stage) = stage4 ]; then \
53807 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
53808 else \
53809 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
53810 $(MAKE) stage4-start; \
53811 fi; \
53812 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 53813 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
53814@endif target-libgomp-bootstrap
53815
53816
53817.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
53818.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
53819maybe-all-stageprofile-target-libgomp:
53820maybe-clean-stageprofile-target-libgomp:
53821@if target-libgomp-bootstrap
53822maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
53823all-stageprofile: all-stageprofile-target-libgomp
53824TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
53825all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
53826 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
53827 @r=`${PWD_COMMAND}`; export r; \
53828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53829 TFLAGS="$(STAGEprofile_TFLAGS)"; \
53830 $(NORMAL_TARGET_EXPORTS) \
53831 \
53832 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 53833 \
911e63d0
JR
53834 $(MAKE) $(BASE_FLAGS_TO_PASS) \
53835 CFLAGS="$(CFLAGS_FOR_TARGET)" \
53836 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
53837 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
53838 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
53839 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
53840 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
53841 $(EXTRA_TARGET_FLAGS) \
05a13254 53842 TFLAGS="$(STAGEprofile_TFLAGS)" \
911e63d0
JR
53843 $(TARGET-stageprofile-target-libgomp)
53844
53845maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
53846clean-stageprofile: clean-stageprofile-target-libgomp
53847clean-stageprofile-target-libgomp:
53848 @if [ $(current_stage) = stageprofile ]; then \
53849 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
53850 else \
53851 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
53852 $(MAKE) stageprofile-start; \
53853 fi; \
53854 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 53855 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
53856@endif target-libgomp-bootstrap
53857
53858
f948b2de
NC
53859.PHONY: all-stagetrain-target-libgomp maybe-all-stagetrain-target-libgomp
53860.PHONY: clean-stagetrain-target-libgomp maybe-clean-stagetrain-target-libgomp
53861maybe-all-stagetrain-target-libgomp:
53862maybe-clean-stagetrain-target-libgomp:
53863@if target-libgomp-bootstrap
53864maybe-all-stagetrain-target-libgomp: all-stagetrain-target-libgomp
53865all-stagetrain: all-stagetrain-target-libgomp
53866TARGET-stagetrain-target-libgomp = $(TARGET-target-libgomp)
53867all-stagetrain-target-libgomp: configure-stagetrain-target-libgomp
53868 @[ $(current_stage) = stagetrain ] || $(MAKE) stagetrain-start
53869 @r=`${PWD_COMMAND}`; export r; \
53870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53871 TFLAGS="$(STAGEtrain_TFLAGS)"; \
53872 $(NORMAL_TARGET_EXPORTS) \
53873 \
53874 cd $(TARGET_SUBDIR)/libgomp && \
53875 \
53876 $(MAKE) $(BASE_FLAGS_TO_PASS) \
53877 CFLAGS="$(CFLAGS_FOR_TARGET)" \
53878 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
53879 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
53880 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
53881 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
53882 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
53883 $(EXTRA_TARGET_FLAGS) \
53884 TFLAGS="$(STAGEtrain_TFLAGS)" \
53885 $(TARGET-stagetrain-target-libgomp)
53886
53887maybe-clean-stagetrain-target-libgomp: clean-stagetrain-target-libgomp
53888clean-stagetrain: clean-stagetrain-target-libgomp
53889clean-stagetrain-target-libgomp:
53890 @if [ $(current_stage) = stagetrain ]; then \
53891 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
53892 else \
53893 [ -f $(TARGET_SUBDIR)/stagetrain-libgomp/Makefile ] || exit 0; \
53894 $(MAKE) stagetrain-start; \
53895 fi; \
53896 cd $(TARGET_SUBDIR)/libgomp && \
53897 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
53898@endif target-libgomp-bootstrap
53899
53900
911e63d0
JR
53901.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
53902.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
53903maybe-all-stagefeedback-target-libgomp:
53904maybe-clean-stagefeedback-target-libgomp:
53905@if target-libgomp-bootstrap
53906maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
53907all-stagefeedback: all-stagefeedback-target-libgomp
53908TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
53909all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
53910 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
53911 @r=`${PWD_COMMAND}`; export r; \
53912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53913 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
53914 $(NORMAL_TARGET_EXPORTS) \
53915 \
53916 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 53917 \
911e63d0
JR
53918 $(MAKE) $(BASE_FLAGS_TO_PASS) \
53919 CFLAGS="$(CFLAGS_FOR_TARGET)" \
53920 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
53921 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
53922 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
53923 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
53924 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
53925 $(EXTRA_TARGET_FLAGS) \
05a13254 53926 TFLAGS="$(STAGEfeedback_TFLAGS)" \
911e63d0
JR
53927 $(TARGET-stagefeedback-target-libgomp)
53928
53929maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
53930clean-stagefeedback: clean-stagefeedback-target-libgomp
53931clean-stagefeedback-target-libgomp:
53932 @if [ $(current_stage) = stagefeedback ]; then \
53933 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
53934 else \
53935 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
53936 $(MAKE) stagefeedback-start; \
53937 fi; \
53938 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 53939 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
53940@endif target-libgomp-bootstrap
53941
53942
f948b2de
NC
53943.PHONY: all-stageautoprofile-target-libgomp maybe-all-stageautoprofile-target-libgomp
53944.PHONY: clean-stageautoprofile-target-libgomp maybe-clean-stageautoprofile-target-libgomp
53945maybe-all-stageautoprofile-target-libgomp:
53946maybe-clean-stageautoprofile-target-libgomp:
53947@if target-libgomp-bootstrap
53948maybe-all-stageautoprofile-target-libgomp: all-stageautoprofile-target-libgomp
53949all-stageautoprofile: all-stageautoprofile-target-libgomp
53950TARGET-stageautoprofile-target-libgomp = $(TARGET-target-libgomp)
53951all-stageautoprofile-target-libgomp: configure-stageautoprofile-target-libgomp
53952 @[ $(current_stage) = stageautoprofile ] || $(MAKE) stageautoprofile-start
53953 @r=`${PWD_COMMAND}`; export r; \
53954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53955 TFLAGS="$(STAGEautoprofile_TFLAGS)"; \
53956 $(NORMAL_TARGET_EXPORTS) \
53957 \
53958 cd $(TARGET_SUBDIR)/libgomp && \
53959 $$s/gcc/config/i386/$(AUTO_PROFILE) \
53960 $(MAKE) $(BASE_FLAGS_TO_PASS) \
53961 CFLAGS="$(CFLAGS_FOR_TARGET)" \
53962 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
53963 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
53964 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
53965 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
53966 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
53967 $(EXTRA_TARGET_FLAGS) \
53968 TFLAGS="$(STAGEautoprofile_TFLAGS)" \
53969 $(TARGET-stageautoprofile-target-libgomp)
53970
53971maybe-clean-stageautoprofile-target-libgomp: clean-stageautoprofile-target-libgomp
53972clean-stageautoprofile: clean-stageautoprofile-target-libgomp
53973clean-stageautoprofile-target-libgomp:
53974 @if [ $(current_stage) = stageautoprofile ]; then \
53975 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
53976 else \
53977 [ -f $(TARGET_SUBDIR)/stageautoprofile-libgomp/Makefile ] || exit 0; \
53978 $(MAKE) stageautoprofile-start; \
53979 fi; \
53980 cd $(TARGET_SUBDIR)/libgomp && \
53981 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
53982@endif target-libgomp-bootstrap
53983
53984
53985.PHONY: all-stageautofeedback-target-libgomp maybe-all-stageautofeedback-target-libgomp
53986.PHONY: clean-stageautofeedback-target-libgomp maybe-clean-stageautofeedback-target-libgomp
53987maybe-all-stageautofeedback-target-libgomp:
53988maybe-clean-stageautofeedback-target-libgomp:
53989@if target-libgomp-bootstrap
53990maybe-all-stageautofeedback-target-libgomp: all-stageautofeedback-target-libgomp
53991all-stageautofeedback: all-stageautofeedback-target-libgomp
53992TARGET-stageautofeedback-target-libgomp = $(TARGET-target-libgomp)
53993all-stageautofeedback-target-libgomp: configure-stageautofeedback-target-libgomp
53994 @[ $(current_stage) = stageautofeedback ] || $(MAKE) stageautofeedback-start
53995 @r=`${PWD_COMMAND}`; export r; \
53996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53997 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
53998 $(NORMAL_TARGET_EXPORTS) \
53999 \
54000 cd $(TARGET_SUBDIR)/libgomp && \
54001 \
54002 $(MAKE) $(BASE_FLAGS_TO_PASS) \
54003 CFLAGS="$(CFLAGS_FOR_TARGET)" \
54004 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
54005 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
54006 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
54007 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
54008 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
54009 $(EXTRA_TARGET_FLAGS) \
54010 TFLAGS="$(STAGEautofeedback_TFLAGS)" PERF_DATA=perf.data \
54011 $(TARGET-stageautofeedback-target-libgomp)
54012
54013maybe-clean-stageautofeedback-target-libgomp: clean-stageautofeedback-target-libgomp
54014clean-stageautofeedback: clean-stageautofeedback-target-libgomp
54015clean-stageautofeedback-target-libgomp:
54016 @if [ $(current_stage) = stageautofeedback ]; then \
54017 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
54018 else \
54019 [ -f $(TARGET_SUBDIR)/stageautofeedback-libgomp/Makefile ] || exit 0; \
54020 $(MAKE) stageautofeedback-start; \
54021 fi; \
54022 cd $(TARGET_SUBDIR)/libgomp && \
54023 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
54024@endif target-libgomp-bootstrap
54025
54026
911e63d0
JR
54027
54028
b3ded179
PB
54029
54030
54031.PHONY: check-target-libgomp maybe-check-target-libgomp
54032maybe-check-target-libgomp:
54033@if target-libgomp
54034maybe-check-target-libgomp: check-target-libgomp
54035
54036check-target-libgomp:
54037 @: $(MAKE); $(unstage)
54038 @r=`${PWD_COMMAND}`; export r; \
54039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54040 $(NORMAL_TARGET_EXPORTS) \
54041 (cd $(TARGET_SUBDIR)/libgomp && \
54042 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
54043
54044@endif target-libgomp
54045
54046.PHONY: install-target-libgomp maybe-install-target-libgomp
54047maybe-install-target-libgomp:
54048@if target-libgomp
54049maybe-install-target-libgomp: install-target-libgomp
54050
54051install-target-libgomp: installdirs
54052 @: $(MAKE); $(unstage)
54053 @r=`${PWD_COMMAND}`; export r; \
54054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54055 $(NORMAL_TARGET_EXPORTS) \
54056 (cd $(TARGET_SUBDIR)/libgomp && \
54057 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
54058
54059@endif target-libgomp
54060
9b980aa1
RW
54061.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
54062maybe-install-strip-target-libgomp:
54063@if target-libgomp
54064maybe-install-strip-target-libgomp: install-strip-target-libgomp
54065
54066install-strip-target-libgomp: installdirs
54067 @: $(MAKE); $(unstage)
54068 @r=`${PWD_COMMAND}`; export r; \
54069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54070 $(NORMAL_TARGET_EXPORTS) \
54071 (cd $(TARGET_SUBDIR)/libgomp && \
54072 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
54073
54074@endif target-libgomp
54075
56a8fe78 54076# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
54077
54078.PHONY: maybe-info-target-libgomp info-target-libgomp
54079maybe-info-target-libgomp:
54080@if target-libgomp
54081maybe-info-target-libgomp: info-target-libgomp
54082
54083info-target-libgomp: \
54084 configure-target-libgomp
54085 @: $(MAKE); $(unstage)
22121df0 54086 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54087 r=`${PWD_COMMAND}`; export r; \
54088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54089 $(NORMAL_TARGET_EXPORTS) \
22121df0 54090 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54091 for flag in $(EXTRA_TARGET_FLAGS); do \
54092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54093 done; \
54094 (cd $(TARGET_SUBDIR)/libgomp && \
54095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54097 "RANLIB=$${RANLIB}" \
0c24b341 54098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54099 info) \
54100 || exit 1
54101
54102@endif target-libgomp
54103
54104.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
54105maybe-dvi-target-libgomp:
54106@if target-libgomp
54107maybe-dvi-target-libgomp: dvi-target-libgomp
54108
54109dvi-target-libgomp: \
54110 configure-target-libgomp
54111 @: $(MAKE); $(unstage)
22121df0 54112 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54113 r=`${PWD_COMMAND}`; export r; \
54114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54115 $(NORMAL_TARGET_EXPORTS) \
22121df0 54116 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54117 for flag in $(EXTRA_TARGET_FLAGS); do \
54118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54119 done; \
54120 (cd $(TARGET_SUBDIR)/libgomp && \
54121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54123 "RANLIB=$${RANLIB}" \
0c24b341 54124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54125 dvi) \
54126 || exit 1
54127
54128@endif target-libgomp
54129
56a8fe78
DD
54130.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
54131maybe-pdf-target-libgomp:
54132@if target-libgomp
54133maybe-pdf-target-libgomp: pdf-target-libgomp
54134
54135pdf-target-libgomp: \
54136 configure-target-libgomp
54137 @: $(MAKE); $(unstage)
22121df0 54138 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
54139 r=`${PWD_COMMAND}`; export r; \
54140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54141 $(NORMAL_TARGET_EXPORTS) \
22121df0 54142 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
54143 for flag in $(EXTRA_TARGET_FLAGS); do \
54144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54145 done; \
54146 (cd $(TARGET_SUBDIR)/libgomp && \
54147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54149 "RANLIB=$${RANLIB}" \
0c24b341 54150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
54151 pdf) \
54152 || exit 1
54153
54154@endif target-libgomp
54155
b3ded179
PB
54156.PHONY: maybe-html-target-libgomp html-target-libgomp
54157maybe-html-target-libgomp:
54158@if target-libgomp
54159maybe-html-target-libgomp: html-target-libgomp
54160
54161html-target-libgomp: \
54162 configure-target-libgomp
54163 @: $(MAKE); $(unstage)
22121df0 54164 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54165 r=`${PWD_COMMAND}`; export r; \
54166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54167 $(NORMAL_TARGET_EXPORTS) \
22121df0 54168 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54169 for flag in $(EXTRA_TARGET_FLAGS); do \
54170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54171 done; \
54172 (cd $(TARGET_SUBDIR)/libgomp && \
54173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54175 "RANLIB=$${RANLIB}" \
0c24b341 54176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54177 html) \
54178 || exit 1
54179
54180@endif target-libgomp
54181
54182.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
54183maybe-TAGS-target-libgomp:
54184@if target-libgomp
54185maybe-TAGS-target-libgomp: TAGS-target-libgomp
54186
54187TAGS-target-libgomp: \
54188 configure-target-libgomp
54189 @: $(MAKE); $(unstage)
22121df0 54190 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54191 r=`${PWD_COMMAND}`; export r; \
54192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54193 $(NORMAL_TARGET_EXPORTS) \
22121df0 54194 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54195 for flag in $(EXTRA_TARGET_FLAGS); do \
54196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54197 done; \
54198 (cd $(TARGET_SUBDIR)/libgomp && \
54199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54201 "RANLIB=$${RANLIB}" \
0c24b341 54202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54203 TAGS) \
54204 || exit 1
54205
54206@endif target-libgomp
54207
54208.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
54209maybe-install-info-target-libgomp:
54210@if target-libgomp
54211maybe-install-info-target-libgomp: install-info-target-libgomp
54212
54213install-info-target-libgomp: \
54214 configure-target-libgomp \
54215 info-target-libgomp
54216 @: $(MAKE); $(unstage)
22121df0 54217 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54218 r=`${PWD_COMMAND}`; export r; \
54219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54220 $(NORMAL_TARGET_EXPORTS) \
22121df0 54221 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54222 for flag in $(EXTRA_TARGET_FLAGS); do \
54223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54224 done; \
54225 (cd $(TARGET_SUBDIR)/libgomp && \
54226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54228 "RANLIB=$${RANLIB}" \
0c24b341 54229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54230 install-info) \
54231 || exit 1
54232
54233@endif target-libgomp
54234
a3ca38d2
DD
54235.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
54236maybe-install-pdf-target-libgomp:
54237@if target-libgomp
54238maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
54239
54240install-pdf-target-libgomp: \
54241 configure-target-libgomp \
54242 pdf-target-libgomp
54243 @: $(MAKE); $(unstage)
22121df0 54244 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
54245 r=`${PWD_COMMAND}`; export r; \
54246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54247 $(NORMAL_TARGET_EXPORTS) \
22121df0 54248 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
54249 for flag in $(EXTRA_TARGET_FLAGS); do \
54250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54251 done; \
54252 (cd $(TARGET_SUBDIR)/libgomp && \
54253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54255 "RANLIB=$${RANLIB}" \
0c24b341 54256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
54257 install-pdf) \
54258 || exit 1
54259
54260@endif target-libgomp
54261
108a6f8e
CD
54262.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
54263maybe-install-html-target-libgomp:
54264@if target-libgomp
54265maybe-install-html-target-libgomp: install-html-target-libgomp
54266
54267install-html-target-libgomp: \
54268 configure-target-libgomp \
54269 html-target-libgomp
54270 @: $(MAKE); $(unstage)
22121df0 54271 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
54272 r=`${PWD_COMMAND}`; export r; \
54273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54274 $(NORMAL_TARGET_EXPORTS) \
22121df0 54275 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
54276 for flag in $(EXTRA_TARGET_FLAGS); do \
54277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54278 done; \
54279 (cd $(TARGET_SUBDIR)/libgomp && \
54280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54282 "RANLIB=$${RANLIB}" \
0c24b341 54283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
54284 install-html) \
54285 || exit 1
54286
54287@endif target-libgomp
54288
b3ded179
PB
54289.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
54290maybe-installcheck-target-libgomp:
54291@if target-libgomp
54292maybe-installcheck-target-libgomp: installcheck-target-libgomp
54293
54294installcheck-target-libgomp: \
54295 configure-target-libgomp
54296 @: $(MAKE); $(unstage)
22121df0 54297 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54298 r=`${PWD_COMMAND}`; export r; \
54299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54300 $(NORMAL_TARGET_EXPORTS) \
22121df0 54301 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54302 for flag in $(EXTRA_TARGET_FLAGS); do \
54303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54304 done; \
54305 (cd $(TARGET_SUBDIR)/libgomp && \
54306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54308 "RANLIB=$${RANLIB}" \
0c24b341 54309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54310 installcheck) \
54311 || exit 1
54312
54313@endif target-libgomp
54314
54315.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
54316maybe-mostlyclean-target-libgomp:
54317@if target-libgomp
54318maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
54319
54320mostlyclean-target-libgomp:
54321 @: $(MAKE); $(unstage)
22121df0 54322 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54323 r=`${PWD_COMMAND}`; export r; \
54324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54325 $(NORMAL_TARGET_EXPORTS) \
22121df0 54326 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54327 for flag in $(EXTRA_TARGET_FLAGS); do \
54328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54329 done; \
54330 (cd $(TARGET_SUBDIR)/libgomp && \
54331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54333 "RANLIB=$${RANLIB}" \
0c24b341 54334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54335 mostlyclean) \
54336 || exit 1
54337
54338@endif target-libgomp
54339
54340.PHONY: maybe-clean-target-libgomp clean-target-libgomp
54341maybe-clean-target-libgomp:
54342@if target-libgomp
54343maybe-clean-target-libgomp: clean-target-libgomp
54344
54345clean-target-libgomp:
54346 @: $(MAKE); $(unstage)
22121df0 54347 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54348 r=`${PWD_COMMAND}`; export r; \
54349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54350 $(NORMAL_TARGET_EXPORTS) \
22121df0 54351 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54352 for flag in $(EXTRA_TARGET_FLAGS); do \
54353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54354 done; \
54355 (cd $(TARGET_SUBDIR)/libgomp && \
54356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54358 "RANLIB=$${RANLIB}" \
0c24b341 54359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54360 clean) \
54361 || exit 1
54362
54363@endif target-libgomp
54364
54365.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
54366maybe-distclean-target-libgomp:
54367@if target-libgomp
54368maybe-distclean-target-libgomp: distclean-target-libgomp
54369
54370distclean-target-libgomp:
54371 @: $(MAKE); $(unstage)
22121df0 54372 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54373 r=`${PWD_COMMAND}`; export r; \
54374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54375 $(NORMAL_TARGET_EXPORTS) \
22121df0 54376 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54377 for flag in $(EXTRA_TARGET_FLAGS); do \
54378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54379 done; \
54380 (cd $(TARGET_SUBDIR)/libgomp && \
54381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54383 "RANLIB=$${RANLIB}" \
0c24b341 54384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54385 distclean) \
54386 || exit 1
54387
54388@endif target-libgomp
54389
54390.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
54391maybe-maintainer-clean-target-libgomp:
54392@if target-libgomp
54393maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
54394
54395maintainer-clean-target-libgomp:
54396 @: $(MAKE); $(unstage)
22121df0 54397 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
54398 r=`${PWD_COMMAND}`; export r; \
54399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54400 $(NORMAL_TARGET_EXPORTS) \
22121df0 54401 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
54402 for flag in $(EXTRA_TARGET_FLAGS); do \
54403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54404 done; \
54405 (cd $(TARGET_SUBDIR)/libgomp && \
54406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54408 "RANLIB=$${RANLIB}" \
0c24b341 54409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
54410 maintainer-clean) \
54411 || exit 1
54412
54413@endif target-libgomp
54414
54415
54416
7ec59b9e
L
54417
54418
54419.PHONY: configure-target-libitm maybe-configure-target-libitm
54420maybe-configure-target-libitm:
54421@if gcc-bootstrap
54422configure-target-libitm: stage_current
54423@endif gcc-bootstrap
54424@if target-libitm
54425maybe-configure-target-libitm: configure-target-libitm
54426configure-target-libitm:
54427 @: $(MAKE); $(unstage)
54428 @r=`${PWD_COMMAND}`; export r; \
54429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54430 echo "Checking multilib configuration for libitm..."; \
22121df0
L
54431 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
54432 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
54433 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
54434 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
54435 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
54436 else \
54437 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
54438 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
54439 fi; \
54440 else \
54441 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
54442 fi; \
54443 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 54444 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
54445 $(NORMAL_TARGET_EXPORTS) \
54446 echo Configuring in $(TARGET_SUBDIR)/libitm; \
54447 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
54448 case $(srcdir) in \
54449 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54450 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
54451 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
54452 esac; \
1b6c0831 54453 module_srcdir=libitm; \
7ec59b9e 54454 rm -f no-such-file || : ; \
1b6c0831
L
54455 CONFIG_SITE=no-such-file $(SHELL) \
54456 $$s/$$module_srcdir/configure \
54457 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 54458 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 54459 --target=${target_alias} \
7ec59b9e
L
54460 || exit 1
54461@endif target-libitm
54462
54463
54464
54465
54466
54467.PHONY: all-target-libitm maybe-all-target-libitm
54468maybe-all-target-libitm:
54469@if gcc-bootstrap
54470all-target-libitm: stage_current
54471@endif gcc-bootstrap
54472@if target-libitm
54473TARGET-target-libitm=all
54474maybe-all-target-libitm: all-target-libitm
54475all-target-libitm: configure-target-libitm
54476 @: $(MAKE); $(unstage)
54477 @r=`${PWD_COMMAND}`; export r; \
54478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54479 $(NORMAL_TARGET_EXPORTS) \
54480 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 54481 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
54482 $(TARGET-target-libitm))
54483@endif target-libitm
54484
54485
54486
54487
54488
54489.PHONY: check-target-libitm maybe-check-target-libitm
54490maybe-check-target-libitm:
54491@if target-libitm
54492maybe-check-target-libitm: check-target-libitm
54493
54494check-target-libitm:
54495 @: $(MAKE); $(unstage)
54496 @r=`${PWD_COMMAND}`; export r; \
54497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54498 $(NORMAL_TARGET_EXPORTS) \
54499 (cd $(TARGET_SUBDIR)/libitm && \
54500 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
54501
54502@endif target-libitm
54503
54504.PHONY: install-target-libitm maybe-install-target-libitm
54505maybe-install-target-libitm:
54506@if target-libitm
54507maybe-install-target-libitm: install-target-libitm
54508
54509install-target-libitm: installdirs
54510 @: $(MAKE); $(unstage)
54511 @r=`${PWD_COMMAND}`; export r; \
54512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54513 $(NORMAL_TARGET_EXPORTS) \
54514 (cd $(TARGET_SUBDIR)/libitm && \
54515 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
54516
54517@endif target-libitm
54518
54519.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
54520maybe-install-strip-target-libitm:
54521@if target-libitm
54522maybe-install-strip-target-libitm: install-strip-target-libitm
54523
54524install-strip-target-libitm: installdirs
54525 @: $(MAKE); $(unstage)
54526 @r=`${PWD_COMMAND}`; export r; \
54527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54528 $(NORMAL_TARGET_EXPORTS) \
54529 (cd $(TARGET_SUBDIR)/libitm && \
54530 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
54531
54532@endif target-libitm
54533
54534# Other targets (info, dvi, pdf, etc.)
54535
54536.PHONY: maybe-info-target-libitm info-target-libitm
54537maybe-info-target-libitm:
54538@if target-libitm
54539maybe-info-target-libitm: info-target-libitm
54540
54541info-target-libitm: \
54542 configure-target-libitm
54543 @: $(MAKE); $(unstage)
22121df0 54544 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54545 r=`${PWD_COMMAND}`; export r; \
54546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54547 $(NORMAL_TARGET_EXPORTS) \
22121df0 54548 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54549 for flag in $(EXTRA_TARGET_FLAGS); do \
54550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54551 done; \
54552 (cd $(TARGET_SUBDIR)/libitm && \
54553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54555 "RANLIB=$${RANLIB}" \
54556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54557 info) \
54558 || exit 1
54559
54560@endif target-libitm
54561
54562.PHONY: maybe-dvi-target-libitm dvi-target-libitm
54563maybe-dvi-target-libitm:
54564@if target-libitm
54565maybe-dvi-target-libitm: dvi-target-libitm
54566
54567dvi-target-libitm: \
54568 configure-target-libitm
54569 @: $(MAKE); $(unstage)
22121df0 54570 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54571 r=`${PWD_COMMAND}`; export r; \
54572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54573 $(NORMAL_TARGET_EXPORTS) \
22121df0 54574 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54575 for flag in $(EXTRA_TARGET_FLAGS); do \
54576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54577 done; \
54578 (cd $(TARGET_SUBDIR)/libitm && \
54579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54581 "RANLIB=$${RANLIB}" \
54582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54583 dvi) \
54584 || exit 1
54585
54586@endif target-libitm
54587
54588.PHONY: maybe-pdf-target-libitm pdf-target-libitm
54589maybe-pdf-target-libitm:
54590@if target-libitm
54591maybe-pdf-target-libitm: pdf-target-libitm
54592
54593pdf-target-libitm: \
54594 configure-target-libitm
54595 @: $(MAKE); $(unstage)
22121df0 54596 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54597 r=`${PWD_COMMAND}`; export r; \
54598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54599 $(NORMAL_TARGET_EXPORTS) \
22121df0 54600 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54601 for flag in $(EXTRA_TARGET_FLAGS); do \
54602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54603 done; \
54604 (cd $(TARGET_SUBDIR)/libitm && \
54605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54607 "RANLIB=$${RANLIB}" \
54608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54609 pdf) \
54610 || exit 1
54611
54612@endif target-libitm
54613
54614.PHONY: maybe-html-target-libitm html-target-libitm
54615maybe-html-target-libitm:
54616@if target-libitm
54617maybe-html-target-libitm: html-target-libitm
54618
54619html-target-libitm: \
54620 configure-target-libitm
54621 @: $(MAKE); $(unstage)
22121df0 54622 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54623 r=`${PWD_COMMAND}`; export r; \
54624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54625 $(NORMAL_TARGET_EXPORTS) \
22121df0 54626 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54627 for flag in $(EXTRA_TARGET_FLAGS); do \
54628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54629 done; \
54630 (cd $(TARGET_SUBDIR)/libitm && \
54631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54633 "RANLIB=$${RANLIB}" \
54634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54635 html) \
54636 || exit 1
54637
54638@endif target-libitm
54639
54640.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
54641maybe-TAGS-target-libitm:
54642@if target-libitm
54643maybe-TAGS-target-libitm: TAGS-target-libitm
54644
54645TAGS-target-libitm: \
54646 configure-target-libitm
54647 @: $(MAKE); $(unstage)
22121df0 54648 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54649 r=`${PWD_COMMAND}`; export r; \
54650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54651 $(NORMAL_TARGET_EXPORTS) \
22121df0 54652 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54653 for flag in $(EXTRA_TARGET_FLAGS); do \
54654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54655 done; \
54656 (cd $(TARGET_SUBDIR)/libitm && \
54657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54659 "RANLIB=$${RANLIB}" \
54660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54661 TAGS) \
54662 || exit 1
54663
54664@endif target-libitm
54665
54666.PHONY: maybe-install-info-target-libitm install-info-target-libitm
54667maybe-install-info-target-libitm:
54668@if target-libitm
54669maybe-install-info-target-libitm: install-info-target-libitm
54670
54671install-info-target-libitm: \
54672 configure-target-libitm \
54673 info-target-libitm
54674 @: $(MAKE); $(unstage)
22121df0 54675 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54676 r=`${PWD_COMMAND}`; export r; \
54677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54678 $(NORMAL_TARGET_EXPORTS) \
22121df0 54679 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54680 for flag in $(EXTRA_TARGET_FLAGS); do \
54681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54682 done; \
54683 (cd $(TARGET_SUBDIR)/libitm && \
54684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54686 "RANLIB=$${RANLIB}" \
54687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54688 install-info) \
54689 || exit 1
54690
54691@endif target-libitm
54692
54693.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
54694maybe-install-pdf-target-libitm:
54695@if target-libitm
54696maybe-install-pdf-target-libitm: install-pdf-target-libitm
54697
54698install-pdf-target-libitm: \
54699 configure-target-libitm \
54700 pdf-target-libitm
54701 @: $(MAKE); $(unstage)
22121df0 54702 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54703 r=`${PWD_COMMAND}`; export r; \
54704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54705 $(NORMAL_TARGET_EXPORTS) \
22121df0 54706 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54707 for flag in $(EXTRA_TARGET_FLAGS); do \
54708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54709 done; \
54710 (cd $(TARGET_SUBDIR)/libitm && \
54711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54713 "RANLIB=$${RANLIB}" \
54714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54715 install-pdf) \
54716 || exit 1
54717
54718@endif target-libitm
54719
54720.PHONY: maybe-install-html-target-libitm install-html-target-libitm
54721maybe-install-html-target-libitm:
54722@if target-libitm
54723maybe-install-html-target-libitm: install-html-target-libitm
54724
54725install-html-target-libitm: \
54726 configure-target-libitm \
54727 html-target-libitm
54728 @: $(MAKE); $(unstage)
22121df0 54729 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54730 r=`${PWD_COMMAND}`; export r; \
54731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54732 $(NORMAL_TARGET_EXPORTS) \
22121df0 54733 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54734 for flag in $(EXTRA_TARGET_FLAGS); do \
54735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54736 done; \
54737 (cd $(TARGET_SUBDIR)/libitm && \
54738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54740 "RANLIB=$${RANLIB}" \
54741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54742 install-html) \
54743 || exit 1
54744
54745@endif target-libitm
54746
54747.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
54748maybe-installcheck-target-libitm:
54749@if target-libitm
54750maybe-installcheck-target-libitm: installcheck-target-libitm
54751
54752installcheck-target-libitm: \
54753 configure-target-libitm
54754 @: $(MAKE); $(unstage)
22121df0 54755 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54756 r=`${PWD_COMMAND}`; export r; \
54757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54758 $(NORMAL_TARGET_EXPORTS) \
22121df0 54759 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54760 for flag in $(EXTRA_TARGET_FLAGS); do \
54761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54762 done; \
54763 (cd $(TARGET_SUBDIR)/libitm && \
54764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54766 "RANLIB=$${RANLIB}" \
54767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54768 installcheck) \
54769 || exit 1
54770
54771@endif target-libitm
54772
54773.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
54774maybe-mostlyclean-target-libitm:
54775@if target-libitm
54776maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
54777
54778mostlyclean-target-libitm:
54779 @: $(MAKE); $(unstage)
22121df0 54780 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54781 r=`${PWD_COMMAND}`; export r; \
54782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54783 $(NORMAL_TARGET_EXPORTS) \
22121df0 54784 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54785 for flag in $(EXTRA_TARGET_FLAGS); do \
54786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54787 done; \
54788 (cd $(TARGET_SUBDIR)/libitm && \
54789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54791 "RANLIB=$${RANLIB}" \
54792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54793 mostlyclean) \
54794 || exit 1
54795
54796@endif target-libitm
54797
54798.PHONY: maybe-clean-target-libitm clean-target-libitm
54799maybe-clean-target-libitm:
54800@if target-libitm
54801maybe-clean-target-libitm: clean-target-libitm
54802
54803clean-target-libitm:
54804 @: $(MAKE); $(unstage)
22121df0 54805 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54806 r=`${PWD_COMMAND}`; export r; \
54807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54808 $(NORMAL_TARGET_EXPORTS) \
22121df0 54809 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54810 for flag in $(EXTRA_TARGET_FLAGS); do \
54811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54812 done; \
54813 (cd $(TARGET_SUBDIR)/libitm && \
54814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54816 "RANLIB=$${RANLIB}" \
54817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54818 clean) \
54819 || exit 1
54820
54821@endif target-libitm
54822
54823.PHONY: maybe-distclean-target-libitm distclean-target-libitm
54824maybe-distclean-target-libitm:
54825@if target-libitm
54826maybe-distclean-target-libitm: distclean-target-libitm
54827
54828distclean-target-libitm:
54829 @: $(MAKE); $(unstage)
22121df0 54830 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54831 r=`${PWD_COMMAND}`; export r; \
54832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54833 $(NORMAL_TARGET_EXPORTS) \
22121df0 54834 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54835 for flag in $(EXTRA_TARGET_FLAGS); do \
54836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54837 done; \
54838 (cd $(TARGET_SUBDIR)/libitm && \
54839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54841 "RANLIB=$${RANLIB}" \
54842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54843 distclean) \
54844 || exit 1
54845
54846@endif target-libitm
54847
54848.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
54849maybe-maintainer-clean-target-libitm:
54850@if target-libitm
54851maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
54852
54853maintainer-clean-target-libitm:
54854 @: $(MAKE); $(unstage)
22121df0 54855 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
54856 r=`${PWD_COMMAND}`; export r; \
54857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54858 $(NORMAL_TARGET_EXPORTS) \
22121df0 54859 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
54860 for flag in $(EXTRA_TARGET_FLAGS); do \
54861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
54862 done; \
54863 (cd $(TARGET_SUBDIR)/libitm && \
54864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
54865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
54866 "RANLIB=$${RANLIB}" \
54867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
54868 maintainer-clean) \
54869 || exit 1
54870
54871@endif target-libitm
54872
54873
54874
54875
54876
54877.PHONY: configure-target-libatomic maybe-configure-target-libatomic
54878maybe-configure-target-libatomic:
54879@if gcc-bootstrap
54880configure-target-libatomic: stage_current
54881@endif gcc-bootstrap
54882@if target-libatomic
54883maybe-configure-target-libatomic: configure-target-libatomic
54884configure-target-libatomic:
54885 @: $(MAKE); $(unstage)
54886 @r=`${PWD_COMMAND}`; export r; \
54887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54888 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
54889 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
54890 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
54891 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
54892 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
54893 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
54894 else \
54895 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
54896 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
54897 fi; \
54898 else \
54899 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
54900 fi; \
54901 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 54902 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
54903 $(NORMAL_TARGET_EXPORTS) \
54904 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
54905 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
54906 case $(srcdir) in \
54907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
54908 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
54909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
54910 esac; \
1b6c0831 54911 module_srcdir=libatomic; \
7ec59b9e 54912 rm -f no-such-file || : ; \
1b6c0831
L
54913 CONFIG_SITE=no-such-file $(SHELL) \
54914 $$s/$$module_srcdir/configure \
54915 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 54916 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 54917 --target=${target_alias} \
7ec59b9e
L
54918 || exit 1
54919@endif target-libatomic
54920
54921
54922
54923
54924
54925.PHONY: all-target-libatomic maybe-all-target-libatomic
54926maybe-all-target-libatomic:
54927@if gcc-bootstrap
54928all-target-libatomic: stage_current
54929@endif gcc-bootstrap
54930@if target-libatomic
54931TARGET-target-libatomic=all
54932maybe-all-target-libatomic: all-target-libatomic
54933all-target-libatomic: configure-target-libatomic
54934 @: $(MAKE); $(unstage)
54935 @r=`${PWD_COMMAND}`; export r; \
54936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54937 $(NORMAL_TARGET_EXPORTS) \
54938 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 54939 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
54940 $(TARGET-target-libatomic))
54941@endif target-libatomic
54942
54943
54944
54945
54946
54947.PHONY: check-target-libatomic maybe-check-target-libatomic
54948maybe-check-target-libatomic:
54949@if target-libatomic
54950maybe-check-target-libatomic: check-target-libatomic
54951
54952check-target-libatomic:
54953 @: $(MAKE); $(unstage)
54954 @r=`${PWD_COMMAND}`; export r; \
54955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54956 $(NORMAL_TARGET_EXPORTS) \
54957 (cd $(TARGET_SUBDIR)/libatomic && \
54958 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
54959
54960@endif target-libatomic
54961
54962.PHONY: install-target-libatomic maybe-install-target-libatomic
54963maybe-install-target-libatomic:
54964@if target-libatomic
54965maybe-install-target-libatomic: install-target-libatomic
54966
54967install-target-libatomic: installdirs
54968 @: $(MAKE); $(unstage)
54969 @r=`${PWD_COMMAND}`; export r; \
54970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54971 $(NORMAL_TARGET_EXPORTS) \
54972 (cd $(TARGET_SUBDIR)/libatomic && \
54973 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
54974
54975@endif target-libatomic
54976
54977.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
54978maybe-install-strip-target-libatomic:
54979@if target-libatomic
54980maybe-install-strip-target-libatomic: install-strip-target-libatomic
54981
54982install-strip-target-libatomic: installdirs
54983 @: $(MAKE); $(unstage)
54984 @r=`${PWD_COMMAND}`; export r; \
54985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
54986 $(NORMAL_TARGET_EXPORTS) \
54987 (cd $(TARGET_SUBDIR)/libatomic && \
54988 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
54989
54990@endif target-libatomic
54991
54992# Other targets (info, dvi, pdf, etc.)
54993
54994.PHONY: maybe-info-target-libatomic info-target-libatomic
54995maybe-info-target-libatomic:
54996@if target-libatomic
54997maybe-info-target-libatomic: info-target-libatomic
54998
54999info-target-libatomic: \
55000 configure-target-libatomic
55001 @: $(MAKE); $(unstage)
22121df0 55002 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55003 r=`${PWD_COMMAND}`; export r; \
55004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55005 $(NORMAL_TARGET_EXPORTS) \
22121df0 55006 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55007 for flag in $(EXTRA_TARGET_FLAGS); do \
55008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55009 done; \
55010 (cd $(TARGET_SUBDIR)/libatomic && \
55011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55013 "RANLIB=$${RANLIB}" \
55014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55015 info) \
55016 || exit 1
55017
55018@endif target-libatomic
55019
55020.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
55021maybe-dvi-target-libatomic:
55022@if target-libatomic
55023maybe-dvi-target-libatomic: dvi-target-libatomic
55024
55025dvi-target-libatomic: \
55026 configure-target-libatomic
55027 @: $(MAKE); $(unstage)
22121df0 55028 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55029 r=`${PWD_COMMAND}`; export r; \
55030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55031 $(NORMAL_TARGET_EXPORTS) \
22121df0 55032 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55033 for flag in $(EXTRA_TARGET_FLAGS); do \
55034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55035 done; \
55036 (cd $(TARGET_SUBDIR)/libatomic && \
55037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55039 "RANLIB=$${RANLIB}" \
55040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55041 dvi) \
55042 || exit 1
55043
55044@endif target-libatomic
55045
55046.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
55047maybe-pdf-target-libatomic:
55048@if target-libatomic
55049maybe-pdf-target-libatomic: pdf-target-libatomic
55050
55051pdf-target-libatomic: \
55052 configure-target-libatomic
55053 @: $(MAKE); $(unstage)
22121df0 55054 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55055 r=`${PWD_COMMAND}`; export r; \
55056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55057 $(NORMAL_TARGET_EXPORTS) \
22121df0 55058 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55059 for flag in $(EXTRA_TARGET_FLAGS); do \
55060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55061 done; \
55062 (cd $(TARGET_SUBDIR)/libatomic && \
55063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55065 "RANLIB=$${RANLIB}" \
55066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55067 pdf) \
55068 || exit 1
55069
55070@endif target-libatomic
55071
55072.PHONY: maybe-html-target-libatomic html-target-libatomic
55073maybe-html-target-libatomic:
55074@if target-libatomic
55075maybe-html-target-libatomic: html-target-libatomic
55076
55077html-target-libatomic: \
55078 configure-target-libatomic
55079 @: $(MAKE); $(unstage)
22121df0 55080 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55081 r=`${PWD_COMMAND}`; export r; \
55082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55083 $(NORMAL_TARGET_EXPORTS) \
22121df0 55084 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55085 for flag in $(EXTRA_TARGET_FLAGS); do \
55086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55087 done; \
55088 (cd $(TARGET_SUBDIR)/libatomic && \
55089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55091 "RANLIB=$${RANLIB}" \
55092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55093 html) \
55094 || exit 1
55095
55096@endif target-libatomic
55097
55098.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
55099maybe-TAGS-target-libatomic:
55100@if target-libatomic
55101maybe-TAGS-target-libatomic: TAGS-target-libatomic
55102
55103TAGS-target-libatomic: \
55104 configure-target-libatomic
55105 @: $(MAKE); $(unstage)
22121df0 55106 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55107 r=`${PWD_COMMAND}`; export r; \
55108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55109 $(NORMAL_TARGET_EXPORTS) \
22121df0 55110 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55111 for flag in $(EXTRA_TARGET_FLAGS); do \
55112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55113 done; \
55114 (cd $(TARGET_SUBDIR)/libatomic && \
55115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55117 "RANLIB=$${RANLIB}" \
55118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55119 TAGS) \
55120 || exit 1
55121
55122@endif target-libatomic
55123
55124.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
55125maybe-install-info-target-libatomic:
55126@if target-libatomic
55127maybe-install-info-target-libatomic: install-info-target-libatomic
55128
55129install-info-target-libatomic: \
55130 configure-target-libatomic \
55131 info-target-libatomic
55132 @: $(MAKE); $(unstage)
22121df0 55133 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55134 r=`${PWD_COMMAND}`; export r; \
55135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55136 $(NORMAL_TARGET_EXPORTS) \
22121df0 55137 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55138 for flag in $(EXTRA_TARGET_FLAGS); do \
55139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55140 done; \
55141 (cd $(TARGET_SUBDIR)/libatomic && \
55142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55144 "RANLIB=$${RANLIB}" \
55145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55146 install-info) \
55147 || exit 1
55148
55149@endif target-libatomic
55150
55151.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
55152maybe-install-pdf-target-libatomic:
55153@if target-libatomic
55154maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
55155
55156install-pdf-target-libatomic: \
55157 configure-target-libatomic \
55158 pdf-target-libatomic
55159 @: $(MAKE); $(unstage)
22121df0 55160 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55161 r=`${PWD_COMMAND}`; export r; \
55162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55163 $(NORMAL_TARGET_EXPORTS) \
22121df0 55164 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55165 for flag in $(EXTRA_TARGET_FLAGS); do \
55166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55167 done; \
55168 (cd $(TARGET_SUBDIR)/libatomic && \
55169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55171 "RANLIB=$${RANLIB}" \
55172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55173 install-pdf) \
55174 || exit 1
55175
55176@endif target-libatomic
55177
55178.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
55179maybe-install-html-target-libatomic:
55180@if target-libatomic
55181maybe-install-html-target-libatomic: install-html-target-libatomic
55182
55183install-html-target-libatomic: \
55184 configure-target-libatomic \
55185 html-target-libatomic
55186 @: $(MAKE); $(unstage)
22121df0 55187 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55188 r=`${PWD_COMMAND}`; export r; \
55189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55190 $(NORMAL_TARGET_EXPORTS) \
22121df0 55191 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55192 for flag in $(EXTRA_TARGET_FLAGS); do \
55193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55194 done; \
55195 (cd $(TARGET_SUBDIR)/libatomic && \
55196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55198 "RANLIB=$${RANLIB}" \
55199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55200 install-html) \
55201 || exit 1
55202
55203@endif target-libatomic
55204
55205.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
55206maybe-installcheck-target-libatomic:
55207@if target-libatomic
55208maybe-installcheck-target-libatomic: installcheck-target-libatomic
55209
55210installcheck-target-libatomic: \
55211 configure-target-libatomic
55212 @: $(MAKE); $(unstage)
22121df0 55213 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55214 r=`${PWD_COMMAND}`; export r; \
55215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55216 $(NORMAL_TARGET_EXPORTS) \
22121df0 55217 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55218 for flag in $(EXTRA_TARGET_FLAGS); do \
55219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55220 done; \
55221 (cd $(TARGET_SUBDIR)/libatomic && \
55222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55224 "RANLIB=$${RANLIB}" \
55225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55226 installcheck) \
55227 || exit 1
55228
55229@endif target-libatomic
55230
55231.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
55232maybe-mostlyclean-target-libatomic:
55233@if target-libatomic
55234maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
55235
55236mostlyclean-target-libatomic:
55237 @: $(MAKE); $(unstage)
22121df0 55238 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55239 r=`${PWD_COMMAND}`; export r; \
55240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55241 $(NORMAL_TARGET_EXPORTS) \
22121df0 55242 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55243 for flag in $(EXTRA_TARGET_FLAGS); do \
55244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55245 done; \
55246 (cd $(TARGET_SUBDIR)/libatomic && \
55247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55249 "RANLIB=$${RANLIB}" \
55250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55251 mostlyclean) \
55252 || exit 1
55253
55254@endif target-libatomic
55255
55256.PHONY: maybe-clean-target-libatomic clean-target-libatomic
55257maybe-clean-target-libatomic:
55258@if target-libatomic
55259maybe-clean-target-libatomic: clean-target-libatomic
55260
55261clean-target-libatomic:
55262 @: $(MAKE); $(unstage)
22121df0 55263 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55264 r=`${PWD_COMMAND}`; export r; \
55265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55266 $(NORMAL_TARGET_EXPORTS) \
22121df0 55267 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55268 for flag in $(EXTRA_TARGET_FLAGS); do \
55269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55270 done; \
55271 (cd $(TARGET_SUBDIR)/libatomic && \
55272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55274 "RANLIB=$${RANLIB}" \
55275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55276 clean) \
55277 || exit 1
55278
55279@endif target-libatomic
55280
55281.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
55282maybe-distclean-target-libatomic:
55283@if target-libatomic
55284maybe-distclean-target-libatomic: distclean-target-libatomic
55285
55286distclean-target-libatomic:
55287 @: $(MAKE); $(unstage)
22121df0 55288 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55289 r=`${PWD_COMMAND}`; export r; \
55290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55291 $(NORMAL_TARGET_EXPORTS) \
22121df0 55292 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55293 for flag in $(EXTRA_TARGET_FLAGS); do \
55294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55295 done; \
55296 (cd $(TARGET_SUBDIR)/libatomic && \
55297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55299 "RANLIB=$${RANLIB}" \
55300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55301 distclean) \
55302 || exit 1
55303
55304@endif target-libatomic
55305
55306.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
55307maybe-maintainer-clean-target-libatomic:
55308@if target-libatomic
55309maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
55310
55311maintainer-clean-target-libatomic:
55312 @: $(MAKE); $(unstage)
22121df0 55313 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
55314 r=`${PWD_COMMAND}`; export r; \
55315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55316 $(NORMAL_TARGET_EXPORTS) \
22121df0 55317 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
55318 for flag in $(EXTRA_TARGET_FLAGS); do \
55319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
55320 done; \
55321 (cd $(TARGET_SUBDIR)/libatomic && \
55322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
55323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
55324 "RANLIB=$${RANLIB}" \
55325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
55326 maintainer-clean) \
55327 || exit 1
55328
55329@endif target-libatomic
55330
55331
55332
7ec59b9e
L
55333@if target-libgomp
55334.PHONY: check-target-libgomp-c++
55335check-target-libgomp-c++:
55336 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
55337
e0541124
EB
55338.PHONY: check-target-libgomp-fortran
55339check-target-libgomp-fortran:
55340 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
55341
7ec59b9e
L
55342@endif target-libgomp
55343
55344@if target-libitm
55345.PHONY: check-target-libitm-c++
55346check-target-libitm-c++:
55347 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
55348
55349@endif target-libitm
55350
15723a45
NN
55351# ----------
55352# GCC module
55353# ----------
55354
319cab08 55355@if gcc-no-bootstrap
252b5132 55356.PHONY: cross
72b2455a 55357cross: all-build all-gas all-ld
b40e3958
L
55358 @r=`${PWD_COMMAND}`; export r; \
55359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 55360 $(HOST_EXPORTS) \
252b5132 55361 echo "Building the C and C++ compiler"; \
5cec67bf 55362 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 55363 @r=`${PWD_COMMAND}`; export r; \
22121df0 55364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 55365 echo "Building runtime libraries"; \
656fdd47 55366 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 55367@endif gcc-no-bootstrap
252b5132 55368
6bd3dfaa 55369@if gcc
c50523ce
L
55370
55371.PHONY: check-gcc-c check-c
55372check-gcc-c:
55373 r=`${PWD_COMMAND}`; export r; \
55374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55375 $(HOST_EXPORTS) \
55376 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
55377check-c: check-gcc-c
55378
55379.PHONY: check-gcc-c++ check-c++
7d695d07 55380check-gcc-c++:
c50523ce
L
55381 r=`${PWD_COMMAND}`; export r; \
55382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55383 $(HOST_EXPORTS) \
7ec59b9e 55384 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 55385check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
55386
55387.PHONY: check-gcc-fortran check-fortran
55388check-gcc-fortran:
55389 r=`${PWD_COMMAND}`; export r; \
55390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55391 $(HOST_EXPORTS) \
55392 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e0541124 55393check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran
c50523ce 55394
c50523ce
L
55395.PHONY: check-gcc-ada check-ada
55396check-gcc-ada:
55397 r=`${PWD_COMMAND}`; export r; \
55398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55399 $(HOST_EXPORTS) \
55400 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
55401check-ada: check-gcc-ada check-target-libada
55402
55403.PHONY: check-gcc-objc check-objc
55404check-gcc-objc:
55405 r=`${PWD_COMMAND}`; export r; \
55406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55407 $(HOST_EXPORTS) \
55408 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
55409check-objc: check-gcc-objc check-target-libobjc
55410
55411.PHONY: check-gcc-obj-c++ check-obj-c++
55412check-gcc-obj-c++:
55413 r=`${PWD_COMMAND}`; export r; \
55414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55415 $(HOST_EXPORTS) \
55416 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
55417check-obj-c++: check-gcc-obj-c++
7d695d07 55418
e552509b
ILT
55419.PHONY: check-gcc-go check-go
55420check-gcc-go:
55421 r=`${PWD_COMMAND}`; export r; \
55422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55423 $(HOST_EXPORTS) \
55424 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
f948b2de
NC
55425check-go: check-gcc-go check-target-libgo check-gotools
55426
55427.PHONY: check-gcc-brig check-brig
55428check-gcc-brig:
55429 r=`${PWD_COMMAND}`; export r; \
55430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55431 $(HOST_EXPORTS) \
55432 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-brig);
55433check-brig: check-gcc-brig check-target-libhsail-rt
55434
55435.PHONY: check-gcc-d check-d
55436check-gcc-d:
55437 r=`${PWD_COMMAND}`; export r; \
55438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
55439 $(HOST_EXPORTS) \
55440 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-d);
55441check-d: check-gcc-d check-target-libphobos
e552509b 55442
252b5132 55443
7ec59b9e
L
55444# The gcc part of install-no-fixedincludes, which relies on an intimate
55445# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
55446.PHONY: gcc-install-no-fixedincludes
55447gcc-install-no-fixedincludes:
15723a45 55448 @if [ -f ./gcc/Makefile ]; then \
b40e3958 55449 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 55450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 55451 $(HOST_EXPORTS) \
7ec59b9e
L
55452 (cd ./gcc \
55453 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 55454 else true; fi
6bd3dfaa 55455@endif gcc
4fa63067 55456
b813574b
PB
55457# ---------------------
55458# GCC bootstrap support
55459# ---------------------
4fa63067 55460
b813574b
PB
55461# We track the current stage (the one in 'gcc') in the stage_current file.
55462# stage_last instead tracks the stage that was built last. These targets
55463# are dummy when toplevel bootstrap is not active.
4fa63067 55464
f70224b5 55465# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
55466# there, so $(unstage) should be run at various points. To avoid excessive
55467# recursive invocations of make, we "inline" them using a variable. These
55468# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
55469# to avoid warnings from the GNU Make job server.
f70224b5
PB
55470
55471unstage = :
55472stage = :
c52c6897 55473current_stage = ""
f70224b5 55474
b813574b 55475@if gcc-bootstrap
9daf3993 55476unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 55477stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 55478current_stage = "`cat stage_current 2> /dev/null`"
b813574b 55479@endif gcc-bootstrap
4fa63067 55480
f70224b5
PB
55481.PHONY: unstage stage
55482unstage:
0aed8855 55483 @: $(MAKE); $(unstage)
b813574b 55484stage:
0aed8855 55485 @: $(MAKE); $(stage)
1d39f329 55486
80911fe1
PB
55487# Disable commands for lean bootstrap.
55488LEAN = false
55489
dfdffa2c
PB
55490# We name the build directories for the various stages "stage1-gcc",
55491# "stage2-gcc","stage3-gcc", etc.
55492
55493# Since the 'compare' process will fail (on debugging information) if any
55494# directory names are different, we need to link the gcc directory for
0aed8855 55495# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
55496# the build directories constant as well. For the latter, we use naked names
55497# like 'gcc', because the scripts in that directory assume it. We use
55498# mv on platforms where symlinks to directories do not work or are not
55499# reliable.
55500
1d39f329
NN
55501# 'touch' doesn't work right on some platforms.
55502STAMP = echo timestamp >
55503
dfdffa2c
PB
55504# We only want to compare .o files, so set this!
55505objext = .o
55506
dfdffa2c 55507
319cab08 55508.PHONY: stage1-start stage1-end
dfdffa2c 55509
656fdd47 55510stage1-start::
0aed8855 55511 @: $(MAKE); $(stage); \
22121df0 55512 echo stage1 > stage_current; \
b00612cc 55513 echo stage1 > stage_last; \
0aed8855 55514 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 55515@if bfd
b00612cc
PB
55516 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
55517 mkdir stage1-bfd; \
22121df0 55518 mv stage1-bfd bfd
72b2455a
PB
55519@endif bfd
55520@if opcodes
b00612cc
PB
55521 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
55522 mkdir stage1-opcodes; \
22121df0 55523 mv stage1-opcodes opcodes
72b2455a
PB
55524@endif opcodes
55525@if binutils
b00612cc
PB
55526 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
55527 mkdir stage1-binutils; \
22121df0 55528 mv stage1-binutils binutils
72b2455a 55529@endif binutils
201f096f 55530@if fixincludes
55531 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
55532 mkdir stage1-fixincludes; \
22121df0 55533 mv stage1-fixincludes fixincludes
201f096f 55534@endif fixincludes
72b2455a 55535@if gas
b00612cc
PB
55536 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
55537 mkdir stage1-gas; \
22121df0 55538 mv stage1-gas gas
72b2455a
PB
55539@endif gas
55540@if gcc
b00612cc
PB
55541 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
55542 mkdir stage1-gcc; \
22121df0 55543 mv stage1-gcc gcc
72b2455a 55544@endif gcc
4b900473
PB
55545@if gmp
55546 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
55547 mkdir stage1-gmp; \
22121df0 55548 mv stage1-gmp gmp
4b900473
PB
55549@endif gmp
55550@if mpfr
55551 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
55552 mkdir stage1-mpfr; \
22121df0 55553 mv stage1-mpfr mpfr
4b900473 55554@endif mpfr
e8a5fa9c
RW
55555@if mpc
55556 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
55557 mkdir stage1-mpc; \
22121df0 55558 mv stage1-mpc mpc
e8a5fa9c 55559@endif mpc
7ec59b9e
L
55560@if isl
55561 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
55562 mkdir stage1-isl; \
22121df0 55563 mv stage1-isl isl
7ec59b9e 55564@endif isl
1f53ca9a
AO
55565@if libelf
55566 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
55567 mkdir stage1-libelf; \
22121df0 55568 mv stage1-libelf libelf
1f53ca9a 55569@endif libelf
93f9b408
ILT
55570@if gold
55571 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
55572 mkdir stage1-gold; \
22121df0 55573 mv stage1-gold gold
93f9b408 55574@endif gold
72b2455a 55575@if intl
b00612cc
PB
55576 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
55577 mkdir stage1-intl; \
22121df0 55578 mv stage1-intl intl
72b2455a
PB
55579@endif intl
55580@if ld
b00612cc
PB
55581 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
55582 mkdir stage1-ld; \
22121df0 55583 mv stage1-ld ld
72b2455a 55584@endif ld
2bf680c4
ILT
55585@if libbacktrace
55586 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
55587 mkdir stage1-libbacktrace; \
22121df0 55588 mv stage1-libbacktrace libbacktrace
2bf680c4 55589@endif libbacktrace
72b2455a 55590@if libcpp
b00612cc
PB
55591 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
55592 mkdir stage1-libcpp; \
22121df0 55593 mv stage1-libcpp libcpp
72b2455a 55594@endif libcpp
be01d343
PB
55595@if libdecnumber
55596 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
55597 mkdir stage1-libdecnumber; \
22121df0 55598 mv stage1-libdecnumber libdecnumber
be01d343 55599@endif libdecnumber
72b2455a 55600@if libiberty
b00612cc
PB
55601 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
55602 mkdir stage1-libiberty; \
22121df0 55603 mv stage1-libiberty libiberty
72b2455a 55604@endif libiberty
1b6c0831
L
55605@if libiberty-linker-plugin
55606 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
55607 mkdir stage1-libiberty-linker-plugin; \
22121df0 55608 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 55609@endif libiberty-linker-plugin
016a3251
DD
55610@if libiconv
55611 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
55612 mkdir stage1-libiconv; \
55613 mv stage1-libiconv libiconv
55614@endif libiconv
72b2455a 55615@if zlib
b00612cc
PB
55616 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
55617 mkdir stage1-zlib; \
22121df0 55618 mv stage1-zlib zlib
72b2455a 55619@endif zlib
700d40ca
ILT
55620@if lto-plugin
55621 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
55622 mkdir stage1-lto-plugin; \
22121df0 55623 mv stage1-lto-plugin lto-plugin
700d40ca 55624@endif lto-plugin
0e65dfba
NA
55625@if libctf
55626 @cd $(HOST_SUBDIR); [ -d stage1-libctf ] || \
55627 mkdir stage1-libctf; \
55628 mv stage1-libctf libctf
55629@endif libctf
0aed8855
PB
55630 @[ -d stage1-$(TARGET_SUBDIR) ] || \
55631 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 55632 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 55633
80911fe1 55634stage1-end::
72b2455a 55635@if bfd
22121df0
L
55636 @if test -d $(HOST_SUBDIR)/bfd; then \
55637 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 55638 fi
72b2455a
PB
55639@endif bfd
55640@if opcodes
22121df0
L
55641 @if test -d $(HOST_SUBDIR)/opcodes; then \
55642 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 55643 fi
72b2455a
PB
55644@endif opcodes
55645@if binutils
22121df0
L
55646 @if test -d $(HOST_SUBDIR)/binutils; then \
55647 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 55648 fi
72b2455a 55649@endif binutils
201f096f 55650@if fixincludes
22121df0
L
55651 @if test -d $(HOST_SUBDIR)/fixincludes; then \
55652 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 55653 fi
55654@endif fixincludes
72b2455a 55655@if gas
22121df0
L
55656 @if test -d $(HOST_SUBDIR)/gas; then \
55657 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 55658 fi
72b2455a
PB
55659@endif gas
55660@if gcc
22121df0
L
55661 @if test -d $(HOST_SUBDIR)/gcc; then \
55662 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 55663 fi
72b2455a 55664@endif gcc
4b900473 55665@if gmp
22121df0
L
55666 @if test -d $(HOST_SUBDIR)/gmp; then \
55667 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
55668 fi
55669@endif gmp
55670@if mpfr
22121df0
L
55671 @if test -d $(HOST_SUBDIR)/mpfr; then \
55672 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
55673 fi
55674@endif mpfr
e8a5fa9c 55675@if mpc
22121df0
L
55676 @if test -d $(HOST_SUBDIR)/mpc; then \
55677 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
55678 fi
55679@endif mpc
7ec59b9e 55680@if isl
22121df0
L
55681 @if test -d $(HOST_SUBDIR)/isl; then \
55682 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 55683 fi
7ec59b9e 55684@endif isl
1f53ca9a 55685@if libelf
22121df0
L
55686 @if test -d $(HOST_SUBDIR)/libelf; then \
55687 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
55688 fi
55689@endif libelf
93f9b408 55690@if gold
22121df0
L
55691 @if test -d $(HOST_SUBDIR)/gold; then \
55692 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
55693 fi
55694@endif gold
72b2455a 55695@if intl
22121df0
L
55696 @if test -d $(HOST_SUBDIR)/intl; then \
55697 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 55698 fi
72b2455a
PB
55699@endif intl
55700@if ld
22121df0
L
55701 @if test -d $(HOST_SUBDIR)/ld; then \
55702 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 55703 fi
72b2455a 55704@endif ld
2bf680c4 55705@if libbacktrace
22121df0
L
55706 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
55707 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
55708 fi
55709@endif libbacktrace
72b2455a 55710@if libcpp
22121df0
L
55711 @if test -d $(HOST_SUBDIR)/libcpp; then \
55712 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 55713 fi
72b2455a 55714@endif libcpp
be01d343 55715@if libdecnumber
22121df0
L
55716 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
55717 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 55718 fi
be01d343 55719@endif libdecnumber
72b2455a 55720@if libiberty
22121df0
L
55721 @if test -d $(HOST_SUBDIR)/libiberty; then \
55722 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 55723 fi
72b2455a 55724@endif libiberty
1b6c0831 55725@if libiberty-linker-plugin
22121df0
L
55726 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
55727 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
55728 fi
55729@endif libiberty-linker-plugin
016a3251
DD
55730@if libiconv
55731 @if test -d $(HOST_SUBDIR)/libiconv; then \
55732 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
55733 fi
55734@endif libiconv
72b2455a 55735@if zlib
22121df0
L
55736 @if test -d $(HOST_SUBDIR)/zlib; then \
55737 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 55738 fi
72b2455a 55739@endif zlib
700d40ca 55740@if lto-plugin
22121df0
L
55741 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
55742 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
55743 fi
55744@endif lto-plugin
0e65dfba
NA
55745@if libctf
55746 @if test -d $(HOST_SUBDIR)/libctf; then \
55747 cd $(HOST_SUBDIR); mv libctf stage1-libctf; \
55748 fi
55749@endif libctf
22121df0
L
55750 @if test -d $(TARGET_SUBDIR); then \
55751 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 55752 fi
80911fe1 55753 rm -f stage_current
dfdffa2c 55754
973601e1 55755# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 55756# remade, but not reconfigured. The next stage (if any) will not be
675492f0 55757# reconfigured either.
319cab08 55758.PHONY: stage1-bubble
656fdd47 55759stage1-bubble::
e360f423
PB
55760 @r=`${PWD_COMMAND}`; export r; \
55761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
55762 if test -f stage1-lean ; then \
55763 echo Skipping rebuild of stage1; \
9cb3fa6f 55764 else \
f70224b5
PB
55765 $(MAKE) stage1-start; \
55766 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 55767 fi
72b2455a 55768
0df3d27f 55769.PHONY: all-stage1 clean-stage1
0df3d27f 55770do-clean: clean-stage1
0df3d27f 55771
72b2455a
PB
55772# FIXME: Will not need to be conditional when toplevel bootstrap is the
55773# only possibility, but now it conflicts with no-bootstrap rules
55774@if gcc-bootstrap
55775
55776
55777
55778
0df3d27f 55779# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 55780
0df3d27f 55781.PHONY: distclean-stage1
72b2455a 55782distclean-stage1::
0aed8855 55783 @: $(MAKE); $(stage)
e00a73e3 55784 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 55785 rm -rf stage1-*
72b2455a
PB
55786
55787
55788@endif gcc-bootstrap
55789
55790
55791.PHONY: stage2-start stage2-end
55792
55793stage2-start::
0aed8855 55794 @: $(MAKE); $(stage); \
22121df0 55795 echo stage2 > stage_current; \
b00612cc 55796 echo stage2 > stage_last; \
0aed8855 55797 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 55798@if bfd
b00612cc
PB
55799 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
55800 mkdir stage2-bfd; \
22121df0 55801 mv stage2-bfd bfd; \
80911fe1 55802 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
55803@endif bfd
55804@if opcodes
b00612cc
PB
55805 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
55806 mkdir stage2-opcodes; \
22121df0 55807 mv stage2-opcodes opcodes; \
80911fe1 55808 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
55809@endif opcodes
55810@if binutils
b00612cc
PB
55811 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
55812 mkdir stage2-binutils; \
22121df0 55813 mv stage2-binutils binutils; \
80911fe1 55814 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 55815@endif binutils
201f096f 55816@if fixincludes
55817 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
55818 mkdir stage2-fixincludes; \
22121df0 55819 mv stage2-fixincludes fixincludes; \
201f096f 55820 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
55821@endif fixincludes
72b2455a 55822@if gas
b00612cc
PB
55823 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
55824 mkdir stage2-gas; \
22121df0 55825 mv stage2-gas gas; \
80911fe1 55826 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
55827@endif gas
55828@if gcc
b00612cc
PB
55829 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
55830 mkdir stage2-gcc; \
22121df0 55831 mv stage2-gcc gcc; \
80911fe1 55832 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 55833@endif gcc
4b900473
PB
55834@if gmp
55835 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
55836 mkdir stage2-gmp; \
22121df0 55837 mv stage2-gmp gmp; \
4b900473
PB
55838 mv stage1-gmp prev-gmp || test -f stage1-lean
55839@endif gmp
55840@if mpfr
55841 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
55842 mkdir stage2-mpfr; \
22121df0 55843 mv stage2-mpfr mpfr; \
4b900473
PB
55844 mv stage1-mpfr prev-mpfr || test -f stage1-lean
55845@endif mpfr
e8a5fa9c
RW
55846@if mpc
55847 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
55848 mkdir stage2-mpc; \
22121df0 55849 mv stage2-mpc mpc; \
e8a5fa9c
RW
55850 mv stage1-mpc prev-mpc || test -f stage1-lean
55851@endif mpc
7ec59b9e
L
55852@if isl
55853 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
55854 mkdir stage2-isl; \
22121df0 55855 mv stage2-isl isl; \
7ec59b9e
L
55856 mv stage1-isl prev-isl || test -f stage1-lean
55857@endif isl
1f53ca9a
AO
55858@if libelf
55859 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
55860 mkdir stage2-libelf; \
22121df0 55861 mv stage2-libelf libelf; \
1f53ca9a
AO
55862 mv stage1-libelf prev-libelf || test -f stage1-lean
55863@endif libelf
93f9b408
ILT
55864@if gold
55865 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
55866 mkdir stage2-gold; \
22121df0 55867 mv stage2-gold gold; \
93f9b408
ILT
55868 mv stage1-gold prev-gold || test -f stage1-lean
55869@endif gold
72b2455a 55870@if intl
b00612cc
PB
55871 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
55872 mkdir stage2-intl; \
22121df0 55873 mv stage2-intl intl; \
80911fe1 55874 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
55875@endif intl
55876@if ld
b00612cc
PB
55877 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
55878 mkdir stage2-ld; \
22121df0 55879 mv stage2-ld ld; \
80911fe1 55880 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 55881@endif ld
2bf680c4
ILT
55882@if libbacktrace
55883 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
55884 mkdir stage2-libbacktrace; \
22121df0 55885 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
55886 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
55887@endif libbacktrace
72b2455a 55888@if libcpp
b00612cc
PB
55889 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
55890 mkdir stage2-libcpp; \
22121df0 55891 mv stage2-libcpp libcpp; \
80911fe1 55892 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 55893@endif libcpp
be01d343
PB
55894@if libdecnumber
55895 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
55896 mkdir stage2-libdecnumber; \
22121df0 55897 mv stage2-libdecnumber libdecnumber; \
80911fe1 55898 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 55899@endif libdecnumber
72b2455a 55900@if libiberty
b00612cc
PB
55901 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
55902 mkdir stage2-libiberty; \
22121df0 55903 mv stage2-libiberty libiberty; \
80911fe1 55904 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 55905@endif libiberty
1b6c0831
L
55906@if libiberty-linker-plugin
55907 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
55908 mkdir stage2-libiberty-linker-plugin; \
22121df0 55909 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
55910 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
55911@endif libiberty-linker-plugin
016a3251
DD
55912@if libiconv
55913 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
55914 mkdir stage2-libiconv; \
55915 mv stage2-libiconv libiconv; \
55916 mv stage1-libiconv prev-libiconv || test -f stage1-lean
55917@endif libiconv
72b2455a 55918@if zlib
b00612cc
PB
55919 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
55920 mkdir stage2-zlib; \
22121df0 55921 mv stage2-zlib zlib; \
80911fe1 55922 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 55923@endif zlib
700d40ca
ILT
55924@if lto-plugin
55925 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
55926 mkdir stage2-lto-plugin; \
22121df0 55927 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
55928 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
55929@endif lto-plugin
0e65dfba
NA
55930@if libctf
55931 @cd $(HOST_SUBDIR); [ -d stage2-libctf ] || \
55932 mkdir stage2-libctf; \
55933 mv stage2-libctf libctf; \
55934 mv stage1-libctf prev-libctf || test -f stage1-lean
55935@endif libctf
0aed8855
PB
55936 @[ -d stage2-$(TARGET_SUBDIR) ] || \
55937 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 55938 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 55939 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 55940
80911fe1 55941stage2-end::
72b2455a 55942@if bfd
22121df0
L
55943 @if test -d $(HOST_SUBDIR)/bfd; then \
55944 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
55945 mv prev-bfd stage1-bfd; : ; \
0aed8855 55946 fi
72b2455a
PB
55947@endif bfd
55948@if opcodes
22121df0
L
55949 @if test -d $(HOST_SUBDIR)/opcodes; then \
55950 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
55951 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 55952 fi
72b2455a
PB
55953@endif opcodes
55954@if binutils
22121df0
L
55955 @if test -d $(HOST_SUBDIR)/binutils; then \
55956 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
55957 mv prev-binutils stage1-binutils; : ; \
0aed8855 55958 fi
72b2455a 55959@endif binutils
201f096f 55960@if fixincludes
22121df0
L
55961 @if test -d $(HOST_SUBDIR)/fixincludes; then \
55962 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
55963 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 55964 fi
55965@endif fixincludes
72b2455a 55966@if gas
22121df0
L
55967 @if test -d $(HOST_SUBDIR)/gas; then \
55968 cd $(HOST_SUBDIR); mv gas stage2-gas; \
55969 mv prev-gas stage1-gas; : ; \
0aed8855 55970 fi
72b2455a
PB
55971@endif gas
55972@if gcc
22121df0
L
55973 @if test -d $(HOST_SUBDIR)/gcc; then \
55974 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
55975 mv prev-gcc stage1-gcc; : ; \
0aed8855 55976 fi
72b2455a 55977@endif gcc
4b900473 55978@if gmp
22121df0
L
55979 @if test -d $(HOST_SUBDIR)/gmp; then \
55980 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
55981 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
55982 fi
55983@endif gmp
55984@if mpfr
22121df0
L
55985 @if test -d $(HOST_SUBDIR)/mpfr; then \
55986 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
55987 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
55988 fi
55989@endif mpfr
e8a5fa9c 55990@if mpc
22121df0
L
55991 @if test -d $(HOST_SUBDIR)/mpc; then \
55992 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
55993 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
55994 fi
55995@endif mpc
7ec59b9e 55996@if isl
22121df0
L
55997 @if test -d $(HOST_SUBDIR)/isl; then \
55998 cd $(HOST_SUBDIR); mv isl stage2-isl; \
55999 mv prev-isl stage1-isl; : ; \
e28c595f 56000 fi
7ec59b9e 56001@endif isl
1f53ca9a 56002@if libelf
22121df0
L
56003 @if test -d $(HOST_SUBDIR)/libelf; then \
56004 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
56005 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
56006 fi
56007@endif libelf
93f9b408 56008@if gold
22121df0
L
56009 @if test -d $(HOST_SUBDIR)/gold; then \
56010 cd $(HOST_SUBDIR); mv gold stage2-gold; \
56011 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
56012 fi
56013@endif gold
72b2455a 56014@if intl
22121df0
L
56015 @if test -d $(HOST_SUBDIR)/intl; then \
56016 cd $(HOST_SUBDIR); mv intl stage2-intl; \
56017 mv prev-intl stage1-intl; : ; \
0aed8855 56018 fi
72b2455a
PB
56019@endif intl
56020@if ld
22121df0
L
56021 @if test -d $(HOST_SUBDIR)/ld; then \
56022 cd $(HOST_SUBDIR); mv ld stage2-ld; \
56023 mv prev-ld stage1-ld; : ; \
0aed8855 56024 fi
72b2455a 56025@endif ld
2bf680c4 56026@if libbacktrace
22121df0
L
56027 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
56028 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
56029 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
56030 fi
56031@endif libbacktrace
72b2455a 56032@if libcpp
22121df0
L
56033 @if test -d $(HOST_SUBDIR)/libcpp; then \
56034 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
56035 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 56036 fi
72b2455a 56037@endif libcpp
be01d343 56038@if libdecnumber
22121df0
L
56039 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
56040 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
56041 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 56042 fi
be01d343 56043@endif libdecnumber
72b2455a 56044@if libiberty
22121df0
L
56045 @if test -d $(HOST_SUBDIR)/libiberty; then \
56046 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
56047 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 56048 fi
72b2455a 56049@endif libiberty
1b6c0831 56050@if libiberty-linker-plugin
22121df0
L
56051 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
56052 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
56053 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
56054 fi
56055@endif libiberty-linker-plugin
016a3251
DD
56056@if libiconv
56057 @if test -d $(HOST_SUBDIR)/libiconv; then \
56058 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
56059 mv prev-libiconv stage1-libiconv; : ; \
56060 fi
56061@endif libiconv
72b2455a 56062@if zlib
22121df0
L
56063 @if test -d $(HOST_SUBDIR)/zlib; then \
56064 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
56065 mv prev-zlib stage1-zlib; : ; \
0aed8855 56066 fi
72b2455a 56067@endif zlib
700d40ca 56068@if lto-plugin
22121df0
L
56069 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
56070 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
56071 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
56072 fi
56073@endif lto-plugin
0e65dfba
NA
56074@if libctf
56075 @if test -d $(HOST_SUBDIR)/libctf; then \
56076 cd $(HOST_SUBDIR); mv libctf stage2-libctf; \
56077 mv prev-libctf stage1-libctf; : ; \
56078 fi
56079@endif libctf
22121df0
L
56080 @if test -d $(TARGET_SUBDIR); then \
56081 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
56082 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 56083 fi
80911fe1 56084 rm -f stage_current
72b2455a 56085
973601e1 56086# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 56087# remade, but not reconfigured. The next stage (if any) will not be
675492f0 56088# reconfigured either.
72b2455a
PB
56089.PHONY: stage2-bubble
56090stage2-bubble:: stage1-bubble
e360f423
PB
56091 @r=`${PWD_COMMAND}`; export r; \
56092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
56093 if test -f stage2-lean || test -f stage1-lean ; then \
56094 echo Skipping rebuild of stage2; \
9cb3fa6f 56095 else \
f70224b5
PB
56096 $(MAKE) stage2-start; \
56097 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 56098 fi
72b2455a 56099
0df3d27f 56100.PHONY: all-stage2 clean-stage2
0df3d27f 56101do-clean: clean-stage2
0df3d27f 56102
72b2455a
PB
56103# FIXME: Will not need to be conditional when toplevel bootstrap is the
56104# only possibility, but now it conflicts with no-bootstrap rules
56105@if gcc-bootstrap
56106
56107
56108
80911fe1 56109.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
56110bootstrap2:
56111 echo stage2 > stage_final
56112 @r=`${PWD_COMMAND}`; export r; \
56113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56114 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 56115 @: $(MAKE); $(unstage)
be01d343
PB
56116 @r=`${PWD_COMMAND}`; export r; \
56117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 56118 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 56119 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 56120
80911fe1
PB
56121bootstrap2-lean:
56122 echo stage2 > stage_final
56123 @r=`${PWD_COMMAND}`; export r; \
56124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56125 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
56126 @: $(MAKE); $(unstage)
56127 @r=`${PWD_COMMAND}`; export r; \
56128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 56129 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
56130 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
56131
72b2455a 56132
0df3d27f 56133# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 56134distclean-stage1:: distclean-stage2
0df3d27f 56135.PHONY: distclean-stage2
72b2455a 56136distclean-stage2::
0aed8855 56137 @: $(MAKE); $(stage)
e00a73e3 56138 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 56139 rm -rf stage2-*
72b2455a
PB
56140
56141
56142@endif gcc-bootstrap
56143
56144
56145.PHONY: stage3-start stage3-end
56146
56147stage3-start::
0aed8855 56148 @: $(MAKE); $(stage); \
22121df0 56149 echo stage3 > stage_current; \
b00612cc 56150 echo stage3 > stage_last; \
0aed8855 56151 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 56152@if bfd
b00612cc
PB
56153 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
56154 mkdir stage3-bfd; \
22121df0 56155 mv stage3-bfd bfd; \
80911fe1 56156 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
56157@endif bfd
56158@if opcodes
b00612cc
PB
56159 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
56160 mkdir stage3-opcodes; \
22121df0 56161 mv stage3-opcodes opcodes; \
80911fe1 56162 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
56163@endif opcodes
56164@if binutils
b00612cc
PB
56165 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
56166 mkdir stage3-binutils; \
22121df0 56167 mv stage3-binutils binutils; \
80911fe1 56168 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 56169@endif binutils
201f096f 56170@if fixincludes
56171 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
56172 mkdir stage3-fixincludes; \
22121df0 56173 mv stage3-fixincludes fixincludes; \
201f096f 56174 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
56175@endif fixincludes
72b2455a 56176@if gas
b00612cc
PB
56177 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
56178 mkdir stage3-gas; \
22121df0 56179 mv stage3-gas gas; \
80911fe1 56180 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
56181@endif gas
56182@if gcc
b00612cc
PB
56183 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
56184 mkdir stage3-gcc; \
22121df0 56185 mv stage3-gcc gcc; \
80911fe1 56186 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 56187@endif gcc
4b900473
PB
56188@if gmp
56189 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
56190 mkdir stage3-gmp; \
22121df0 56191 mv stage3-gmp gmp; \
4b900473
PB
56192 mv stage2-gmp prev-gmp || test -f stage2-lean
56193@endif gmp
56194@if mpfr
56195 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
56196 mkdir stage3-mpfr; \
22121df0 56197 mv stage3-mpfr mpfr; \
4b900473
PB
56198 mv stage2-mpfr prev-mpfr || test -f stage2-lean
56199@endif mpfr
e8a5fa9c
RW
56200@if mpc
56201 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
56202 mkdir stage3-mpc; \
22121df0 56203 mv stage3-mpc mpc; \
e8a5fa9c
RW
56204 mv stage2-mpc prev-mpc || test -f stage2-lean
56205@endif mpc
7ec59b9e
L
56206@if isl
56207 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
56208 mkdir stage3-isl; \
22121df0 56209 mv stage3-isl isl; \
7ec59b9e
L
56210 mv stage2-isl prev-isl || test -f stage2-lean
56211@endif isl
1f53ca9a
AO
56212@if libelf
56213 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
56214 mkdir stage3-libelf; \
22121df0 56215 mv stage3-libelf libelf; \
1f53ca9a
AO
56216 mv stage2-libelf prev-libelf || test -f stage2-lean
56217@endif libelf
93f9b408
ILT
56218@if gold
56219 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
56220 mkdir stage3-gold; \
22121df0 56221 mv stage3-gold gold; \
93f9b408
ILT
56222 mv stage2-gold prev-gold || test -f stage2-lean
56223@endif gold
72b2455a 56224@if intl
b00612cc
PB
56225 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
56226 mkdir stage3-intl; \
22121df0 56227 mv stage3-intl intl; \
80911fe1 56228 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
56229@endif intl
56230@if ld
b00612cc
PB
56231 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
56232 mkdir stage3-ld; \
22121df0 56233 mv stage3-ld ld; \
80911fe1 56234 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 56235@endif ld
2bf680c4
ILT
56236@if libbacktrace
56237 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
56238 mkdir stage3-libbacktrace; \
22121df0 56239 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
56240 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
56241@endif libbacktrace
72b2455a 56242@if libcpp
b00612cc
PB
56243 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
56244 mkdir stage3-libcpp; \
22121df0 56245 mv stage3-libcpp libcpp; \
80911fe1 56246 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 56247@endif libcpp
be01d343
PB
56248@if libdecnumber
56249 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
56250 mkdir stage3-libdecnumber; \
22121df0 56251 mv stage3-libdecnumber libdecnumber; \
80911fe1 56252 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 56253@endif libdecnumber
72b2455a 56254@if libiberty
b00612cc
PB
56255 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
56256 mkdir stage3-libiberty; \
22121df0 56257 mv stage3-libiberty libiberty; \
80911fe1 56258 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 56259@endif libiberty
1b6c0831
L
56260@if libiberty-linker-plugin
56261 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
56262 mkdir stage3-libiberty-linker-plugin; \
22121df0 56263 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
56264 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
56265@endif libiberty-linker-plugin
016a3251
DD
56266@if libiconv
56267 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
56268 mkdir stage3-libiconv; \
56269 mv stage3-libiconv libiconv; \
56270 mv stage2-libiconv prev-libiconv || test -f stage2-lean
56271@endif libiconv
72b2455a 56272@if zlib
b00612cc
PB
56273 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
56274 mkdir stage3-zlib; \
22121df0 56275 mv stage3-zlib zlib; \
80911fe1 56276 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 56277@endif zlib
700d40ca
ILT
56278@if lto-plugin
56279 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
56280 mkdir stage3-lto-plugin; \
22121df0 56281 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
56282 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
56283@endif lto-plugin
0e65dfba
NA
56284@if libctf
56285 @cd $(HOST_SUBDIR); [ -d stage3-libctf ] || \
56286 mkdir stage3-libctf; \
56287 mv stage3-libctf libctf; \
56288 mv stage2-libctf prev-libctf || test -f stage2-lean
56289@endif libctf
0aed8855
PB
56290 @[ -d stage3-$(TARGET_SUBDIR) ] || \
56291 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 56292 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 56293 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 56294
80911fe1 56295stage3-end::
72b2455a 56296@if bfd
22121df0
L
56297 @if test -d $(HOST_SUBDIR)/bfd; then \
56298 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
56299 mv prev-bfd stage2-bfd; : ; \
0aed8855 56300 fi
72b2455a
PB
56301@endif bfd
56302@if opcodes
22121df0
L
56303 @if test -d $(HOST_SUBDIR)/opcodes; then \
56304 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
56305 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 56306 fi
72b2455a
PB
56307@endif opcodes
56308@if binutils
22121df0
L
56309 @if test -d $(HOST_SUBDIR)/binutils; then \
56310 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
56311 mv prev-binutils stage2-binutils; : ; \
0aed8855 56312 fi
72b2455a 56313@endif binutils
201f096f 56314@if fixincludes
22121df0
L
56315 @if test -d $(HOST_SUBDIR)/fixincludes; then \
56316 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
56317 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 56318 fi
56319@endif fixincludes
72b2455a 56320@if gas
22121df0
L
56321 @if test -d $(HOST_SUBDIR)/gas; then \
56322 cd $(HOST_SUBDIR); mv gas stage3-gas; \
56323 mv prev-gas stage2-gas; : ; \
0aed8855 56324 fi
72b2455a
PB
56325@endif gas
56326@if gcc
22121df0
L
56327 @if test -d $(HOST_SUBDIR)/gcc; then \
56328 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
56329 mv prev-gcc stage2-gcc; : ; \
0aed8855 56330 fi
72b2455a 56331@endif gcc
4b900473 56332@if gmp
22121df0
L
56333 @if test -d $(HOST_SUBDIR)/gmp; then \
56334 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
56335 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
56336 fi
56337@endif gmp
56338@if mpfr
22121df0
L
56339 @if test -d $(HOST_SUBDIR)/mpfr; then \
56340 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
56341 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
56342 fi
56343@endif mpfr
e8a5fa9c 56344@if mpc
22121df0
L
56345 @if test -d $(HOST_SUBDIR)/mpc; then \
56346 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
56347 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
56348 fi
56349@endif mpc
7ec59b9e 56350@if isl
22121df0
L
56351 @if test -d $(HOST_SUBDIR)/isl; then \
56352 cd $(HOST_SUBDIR); mv isl stage3-isl; \
56353 mv prev-isl stage2-isl; : ; \
e28c595f 56354 fi
7ec59b9e 56355@endif isl
1f53ca9a 56356@if libelf
22121df0
L
56357 @if test -d $(HOST_SUBDIR)/libelf; then \
56358 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
56359 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
56360 fi
56361@endif libelf
93f9b408 56362@if gold
22121df0
L
56363 @if test -d $(HOST_SUBDIR)/gold; then \
56364 cd $(HOST_SUBDIR); mv gold stage3-gold; \
56365 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
56366 fi
56367@endif gold
72b2455a 56368@if intl
22121df0
L
56369 @if test -d $(HOST_SUBDIR)/intl; then \
56370 cd $(HOST_SUBDIR); mv intl stage3-intl; \
56371 mv prev-intl stage2-intl; : ; \
0aed8855 56372 fi
72b2455a
PB
56373@endif intl
56374@if ld
22121df0
L
56375 @if test -d $(HOST_SUBDIR)/ld; then \
56376 cd $(HOST_SUBDIR); mv ld stage3-ld; \
56377 mv prev-ld stage2-ld; : ; \
0aed8855 56378 fi
72b2455a 56379@endif ld
2bf680c4 56380@if libbacktrace
22121df0
L
56381 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
56382 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
56383 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
56384 fi
56385@endif libbacktrace
72b2455a 56386@if libcpp
22121df0
L
56387 @if test -d $(HOST_SUBDIR)/libcpp; then \
56388 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
56389 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 56390 fi
72b2455a 56391@endif libcpp
be01d343 56392@if libdecnumber
22121df0
L
56393 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
56394 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
56395 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 56396 fi
be01d343 56397@endif libdecnumber
72b2455a 56398@if libiberty
22121df0
L
56399 @if test -d $(HOST_SUBDIR)/libiberty; then \
56400 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
56401 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 56402 fi
72b2455a 56403@endif libiberty
1b6c0831 56404@if libiberty-linker-plugin
22121df0
L
56405 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
56406 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
56407 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
56408 fi
56409@endif libiberty-linker-plugin
016a3251
DD
56410@if libiconv
56411 @if test -d $(HOST_SUBDIR)/libiconv; then \
56412 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
56413 mv prev-libiconv stage2-libiconv; : ; \
56414 fi
56415@endif libiconv
72b2455a 56416@if zlib
22121df0
L
56417 @if test -d $(HOST_SUBDIR)/zlib; then \
56418 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
56419 mv prev-zlib stage2-zlib; : ; \
0aed8855 56420 fi
72b2455a 56421@endif zlib
700d40ca 56422@if lto-plugin
22121df0
L
56423 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
56424 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
56425 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
56426 fi
56427@endif lto-plugin
0e65dfba
NA
56428@if libctf
56429 @if test -d $(HOST_SUBDIR)/libctf; then \
56430 cd $(HOST_SUBDIR); mv libctf stage3-libctf; \
56431 mv prev-libctf stage2-libctf; : ; \
56432 fi
56433@endif libctf
22121df0
L
56434 @if test -d $(TARGET_SUBDIR); then \
56435 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
56436 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 56437 fi
80911fe1 56438 rm -f stage_current
72b2455a 56439
973601e1 56440# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 56441# remade, but not reconfigured. The next stage (if any) will not be
675492f0 56442# reconfigured either.
72b2455a
PB
56443.PHONY: stage3-bubble
56444stage3-bubble:: stage2-bubble
e360f423
PB
56445 @r=`${PWD_COMMAND}`; export r; \
56446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
56447 if test -f stage3-lean || test -f stage2-lean ; then \
56448 echo Skipping rebuild of stage3; \
9cb3fa6f 56449 else \
f70224b5 56450 $(MAKE) stage3-start; \
80911fe1 56451 if $(LEAN); then \
22121df0
L
56452 rm -rf stage1-*; \
56453 $(STAMP) stage1-lean; \
80911fe1 56454 fi; \
f70224b5 56455 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 56456 fi
f6d183c0 56457 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 56458
0df3d27f 56459.PHONY: all-stage3 clean-stage3
0df3d27f 56460do-clean: clean-stage3
0df3d27f 56461
d545f33b
PB
56462# FIXME: Will not need to be conditional when toplevel bootstrap is the
56463# only possibility, but now it conflicts with no-bootstrap rules
56464@if gcc-bootstrap
72b2455a 56465
d545f33b 56466compare:
e360f423
PB
56467 @r=`${PWD_COMMAND}`; export r; \
56468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56469 if test -f stage2-lean; then \
22121df0
L
56470 echo Cannot compare object files as stage 2 was deleted.; \
56471 exit 0; \
d545f33b 56472 fi; \
0aed8855 56473 : $(MAKE); $(stage); \
22121df0
L
56474 rm -f .bad_compare; \
56475 echo Comparing stages 2 and 3; \
fda13ee8
AO
56476 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
56477 files=`find stage3-* -name "*$(objext)" -print | \
22121df0 56478 sed -n s,^stage$$sed-,,p`; \
f948b2de 56479 for file in $${files} ${extra-compare}; do \
fda13ee8
AO
56480 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
56481 if test ! -f $$f1; then continue; fi; \
8520c408 56482 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
56483 if test $$? -eq 1; then \
56484 case $$file in \
e8a5fa9c 56485 @compare_exclusions@) \
f70224b5
PB
56486 echo warning: $$file differs ;; \
56487 *) \
56488 echo $$file differs >> .bad_compare ;; \
22121df0
L
56489 esac; \
56490 fi; \
56491 done; \
d545f33b
PB
56492 if [ -f .bad_compare ]; then \
56493 echo "Bootstrap comparison failure!"; \
56494 cat .bad_compare; \
56495 exit 1; \
56496 else \
c52c6897 56497 echo Comparison successful.; \
22121df0 56498 fi; \
d545f33b 56499 $(STAMP) compare
80911fe1
PB
56500 if $(LEAN); then \
56501 rm -rf stage2-*; \
56502 $(STAMP) stage2-lean; \
56503 fi
9cb3fa6f 56504
72b2455a 56505
72b2455a 56506
80911fe1 56507.PHONY: bootstrap bootstrap-lean
be01d343
PB
56508bootstrap:
56509 echo stage3 > stage_final
56510 @r=`${PWD_COMMAND}`; export r; \
56511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56512 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 56513 @: $(MAKE); $(unstage)
be01d343
PB
56514 @r=`${PWD_COMMAND}`; export r; \
56515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 56516 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 56517 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 56518
80911fe1
PB
56519bootstrap-lean:
56520 echo stage3 > stage_final
56521 @r=`${PWD_COMMAND}`; export r; \
56522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56523 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
56524 @: $(MAKE); $(unstage)
56525 @r=`${PWD_COMMAND}`; export r; \
56526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 56527 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
56528 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
56529
72b2455a 56530
d545f33b
PB
56531# Rules to wipe a stage and all the following ones, also used for cleanstrap
56532distclean-stage2:: distclean-stage3
56533.PHONY: distclean-stage3
56534distclean-stage3::
0aed8855 56535 @: $(MAKE); $(stage)
e00a73e3 56536 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 56537 rm -rf stage3-* compare
0df3d27f 56538
9cb3fa6f 56539
d545f33b 56540.PHONY: cleanstrap
e00a73e3
PB
56541cleanstrap: do-distclean local-clean
56542 echo stage3 > stage_final
56543 @r=`${PWD_COMMAND}`; export r; \
56544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56545 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
56546 @: $(MAKE); $(unstage)
56547 @r=`${PWD_COMMAND}`; export r; \
56548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 56549 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
56550 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
56551
56552@endif gcc-bootstrap
56553
56554
72b2455a
PB
56555.PHONY: stage4-start stage4-end
56556
56557stage4-start::
0aed8855 56558 @: $(MAKE); $(stage); \
22121df0 56559 echo stage4 > stage_current; \
b00612cc 56560 echo stage4 > stage_last; \
0aed8855 56561 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 56562@if bfd
b00612cc
PB
56563 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
56564 mkdir stage4-bfd; \
22121df0 56565 mv stage4-bfd bfd; \
80911fe1 56566 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
56567@endif bfd
56568@if opcodes
b00612cc
PB
56569 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
56570 mkdir stage4-opcodes; \
22121df0 56571 mv stage4-opcodes opcodes; \
80911fe1 56572 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
56573@endif opcodes
56574@if binutils
b00612cc
PB
56575 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
56576 mkdir stage4-binutils; \
22121df0 56577 mv stage4-binutils binutils; \
80911fe1 56578 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 56579@endif binutils
201f096f 56580@if fixincludes
56581 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
56582 mkdir stage4-fixincludes; \
22121df0 56583 mv stage4-fixincludes fixincludes; \
201f096f 56584 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
56585@endif fixincludes
72b2455a 56586@if gas
b00612cc
PB
56587 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
56588 mkdir stage4-gas; \
22121df0 56589 mv stage4-gas gas; \
80911fe1 56590 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
56591@endif gas
56592@if gcc
b00612cc
PB
56593 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
56594 mkdir stage4-gcc; \
22121df0 56595 mv stage4-gcc gcc; \
80911fe1 56596 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 56597@endif gcc
4b900473
PB
56598@if gmp
56599 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
56600 mkdir stage4-gmp; \
22121df0 56601 mv stage4-gmp gmp; \
4b900473
PB
56602 mv stage3-gmp prev-gmp || test -f stage3-lean
56603@endif gmp
56604@if mpfr
56605 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
56606 mkdir stage4-mpfr; \
22121df0 56607 mv stage4-mpfr mpfr; \
4b900473
PB
56608 mv stage3-mpfr prev-mpfr || test -f stage3-lean
56609@endif mpfr
e8a5fa9c
RW
56610@if mpc
56611 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
56612 mkdir stage4-mpc; \
22121df0 56613 mv stage4-mpc mpc; \
e8a5fa9c
RW
56614 mv stage3-mpc prev-mpc || test -f stage3-lean
56615@endif mpc
7ec59b9e
L
56616@if isl
56617 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
56618 mkdir stage4-isl; \
22121df0 56619 mv stage4-isl isl; \
7ec59b9e
L
56620 mv stage3-isl prev-isl || test -f stage3-lean
56621@endif isl
1f53ca9a
AO
56622@if libelf
56623 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
56624 mkdir stage4-libelf; \
22121df0 56625 mv stage4-libelf libelf; \
1f53ca9a
AO
56626 mv stage3-libelf prev-libelf || test -f stage3-lean
56627@endif libelf
93f9b408
ILT
56628@if gold
56629 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
56630 mkdir stage4-gold; \
22121df0 56631 mv stage4-gold gold; \
93f9b408
ILT
56632 mv stage3-gold prev-gold || test -f stage3-lean
56633@endif gold
72b2455a 56634@if intl
b00612cc
PB
56635 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
56636 mkdir stage4-intl; \
22121df0 56637 mv stage4-intl intl; \
80911fe1 56638 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
56639@endif intl
56640@if ld
b00612cc
PB
56641 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
56642 mkdir stage4-ld; \
22121df0 56643 mv stage4-ld ld; \
80911fe1 56644 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 56645@endif ld
2bf680c4
ILT
56646@if libbacktrace
56647 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
56648 mkdir stage4-libbacktrace; \
22121df0 56649 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
56650 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
56651@endif libbacktrace
72b2455a 56652@if libcpp
b00612cc
PB
56653 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
56654 mkdir stage4-libcpp; \
22121df0 56655 mv stage4-libcpp libcpp; \
80911fe1 56656 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 56657@endif libcpp
be01d343
PB
56658@if libdecnumber
56659 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
56660 mkdir stage4-libdecnumber; \
22121df0 56661 mv stage4-libdecnumber libdecnumber; \
80911fe1 56662 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 56663@endif libdecnumber
72b2455a 56664@if libiberty
b00612cc
PB
56665 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
56666 mkdir stage4-libiberty; \
22121df0 56667 mv stage4-libiberty libiberty; \
80911fe1 56668 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 56669@endif libiberty
1b6c0831
L
56670@if libiberty-linker-plugin
56671 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
56672 mkdir stage4-libiberty-linker-plugin; \
22121df0 56673 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
56674 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
56675@endif libiberty-linker-plugin
016a3251
DD
56676@if libiconv
56677 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
56678 mkdir stage4-libiconv; \
56679 mv stage4-libiconv libiconv; \
56680 mv stage3-libiconv prev-libiconv || test -f stage3-lean
56681@endif libiconv
72b2455a 56682@if zlib
b00612cc
PB
56683 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
56684 mkdir stage4-zlib; \
22121df0 56685 mv stage4-zlib zlib; \
80911fe1 56686 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 56687@endif zlib
700d40ca
ILT
56688@if lto-plugin
56689 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
56690 mkdir stage4-lto-plugin; \
22121df0 56691 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
56692 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
56693@endif lto-plugin
0e65dfba
NA
56694@if libctf
56695 @cd $(HOST_SUBDIR); [ -d stage4-libctf ] || \
56696 mkdir stage4-libctf; \
56697 mv stage4-libctf libctf; \
56698 mv stage3-libctf prev-libctf || test -f stage3-lean
56699@endif libctf
0aed8855
PB
56700 @[ -d stage4-$(TARGET_SUBDIR) ] || \
56701 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 56702 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 56703 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 56704
80911fe1 56705stage4-end::
72b2455a 56706@if bfd
22121df0
L
56707 @if test -d $(HOST_SUBDIR)/bfd; then \
56708 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
56709 mv prev-bfd stage3-bfd; : ; \
0aed8855 56710 fi
72b2455a
PB
56711@endif bfd
56712@if opcodes
22121df0
L
56713 @if test -d $(HOST_SUBDIR)/opcodes; then \
56714 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
56715 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 56716 fi
72b2455a
PB
56717@endif opcodes
56718@if binutils
22121df0
L
56719 @if test -d $(HOST_SUBDIR)/binutils; then \
56720 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
56721 mv prev-binutils stage3-binutils; : ; \
0aed8855 56722 fi
72b2455a 56723@endif binutils
201f096f 56724@if fixincludes
22121df0
L
56725 @if test -d $(HOST_SUBDIR)/fixincludes; then \
56726 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
56727 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 56728 fi
56729@endif fixincludes
72b2455a 56730@if gas
22121df0
L
56731 @if test -d $(HOST_SUBDIR)/gas; then \
56732 cd $(HOST_SUBDIR); mv gas stage4-gas; \
56733 mv prev-gas stage3-gas; : ; \
0aed8855 56734 fi
72b2455a
PB
56735@endif gas
56736@if gcc
22121df0
L
56737 @if test -d $(HOST_SUBDIR)/gcc; then \
56738 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
56739 mv prev-gcc stage3-gcc; : ; \
0aed8855 56740 fi
72b2455a 56741@endif gcc
4b900473 56742@if gmp
22121df0
L
56743 @if test -d $(HOST_SUBDIR)/gmp; then \
56744 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
56745 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
56746 fi
56747@endif gmp
56748@if mpfr
22121df0
L
56749 @if test -d $(HOST_SUBDIR)/mpfr; then \
56750 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
56751 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
56752 fi
56753@endif mpfr
e8a5fa9c 56754@if mpc
22121df0
L
56755 @if test -d $(HOST_SUBDIR)/mpc; then \
56756 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
56757 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
56758 fi
56759@endif mpc
7ec59b9e 56760@if isl
22121df0
L
56761 @if test -d $(HOST_SUBDIR)/isl; then \
56762 cd $(HOST_SUBDIR); mv isl stage4-isl; \
56763 mv prev-isl stage3-isl; : ; \
e28c595f 56764 fi
7ec59b9e 56765@endif isl
1f53ca9a 56766@if libelf
22121df0
L
56767 @if test -d $(HOST_SUBDIR)/libelf; then \
56768 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
56769 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
56770 fi
56771@endif libelf
93f9b408 56772@if gold
22121df0
L
56773 @if test -d $(HOST_SUBDIR)/gold; then \
56774 cd $(HOST_SUBDIR); mv gold stage4-gold; \
56775 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
56776 fi
56777@endif gold
72b2455a 56778@if intl
22121df0
L
56779 @if test -d $(HOST_SUBDIR)/intl; then \
56780 cd $(HOST_SUBDIR); mv intl stage4-intl; \
56781 mv prev-intl stage3-intl; : ; \
0aed8855 56782 fi
72b2455a
PB
56783@endif intl
56784@if ld
22121df0
L
56785 @if test -d $(HOST_SUBDIR)/ld; then \
56786 cd $(HOST_SUBDIR); mv ld stage4-ld; \
56787 mv prev-ld stage3-ld; : ; \
0aed8855 56788 fi
72b2455a 56789@endif ld
2bf680c4 56790@if libbacktrace
22121df0
L
56791 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
56792 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
56793 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
56794 fi
56795@endif libbacktrace
72b2455a 56796@if libcpp
22121df0
L
56797 @if test -d $(HOST_SUBDIR)/libcpp; then \
56798 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
56799 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 56800 fi
72b2455a 56801@endif libcpp
be01d343 56802@if libdecnumber
22121df0
L
56803 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
56804 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
56805 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 56806 fi
be01d343 56807@endif libdecnumber
72b2455a 56808@if libiberty
22121df0
L
56809 @if test -d $(HOST_SUBDIR)/libiberty; then \
56810 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
56811 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 56812 fi
72b2455a 56813@endif libiberty
1b6c0831 56814@if libiberty-linker-plugin
22121df0
L
56815 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
56816 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
56817 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
56818 fi
56819@endif libiberty-linker-plugin
016a3251
DD
56820@if libiconv
56821 @if test -d $(HOST_SUBDIR)/libiconv; then \
56822 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
56823 mv prev-libiconv stage3-libiconv; : ; \
56824 fi
56825@endif libiconv
72b2455a 56826@if zlib
22121df0
L
56827 @if test -d $(HOST_SUBDIR)/zlib; then \
56828 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
56829 mv prev-zlib stage3-zlib; : ; \
0aed8855 56830 fi
72b2455a 56831@endif zlib
700d40ca 56832@if lto-plugin
22121df0
L
56833 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
56834 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
56835 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
56836 fi
56837@endif lto-plugin
0e65dfba
NA
56838@if libctf
56839 @if test -d $(HOST_SUBDIR)/libctf; then \
56840 cd $(HOST_SUBDIR); mv libctf stage4-libctf; \
56841 mv prev-libctf stage3-libctf; : ; \
56842 fi
56843@endif libctf
22121df0
L
56844 @if test -d $(TARGET_SUBDIR); then \
56845 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
56846 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 56847 fi
80911fe1 56848 rm -f stage_current
72b2455a 56849
973601e1 56850# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 56851# remade, but not reconfigured. The next stage (if any) will not be
675492f0 56852# reconfigured either.
72b2455a
PB
56853.PHONY: stage4-bubble
56854stage4-bubble:: stage3-bubble
e360f423
PB
56855 @r=`${PWD_COMMAND}`; export r; \
56856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
56857 if test -f stage4-lean || test -f stage3-lean ; then \
56858 echo Skipping rebuild of stage4; \
9cb3fa6f 56859 else \
f70224b5 56860 $(MAKE) stage4-start; \
80911fe1 56861 if $(LEAN); then \
22121df0
L
56862 rm -rf stage2-*; \
56863 $(STAMP) stage2-lean; \
80911fe1 56864 fi; \
f70224b5 56865 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 56866 fi
f6d183c0 56867 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 56868
0df3d27f 56869.PHONY: all-stage4 clean-stage4
0df3d27f 56870do-clean: clean-stage4
0df3d27f 56871
d545f33b
PB
56872# FIXME: Will not need to be conditional when toplevel bootstrap is the
56873# only possibility, but now it conflicts with no-bootstrap rules
56874@if gcc-bootstrap
72b2455a 56875
d545f33b 56876compare3:
e360f423
PB
56877 @r=`${PWD_COMMAND}`; export r; \
56878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56879 if test -f stage3-lean; then \
22121df0
L
56880 echo Cannot compare object files as stage 3 was deleted.; \
56881 exit 0; \
d545f33b 56882 fi; \
0aed8855 56883 : $(MAKE); $(stage); \
22121df0
L
56884 rm -f .bad_compare; \
56885 echo Comparing stages 3 and 4; \
fda13ee8
AO
56886 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
56887 files=`find stage4-* -name "*$(objext)" -print | \
22121df0 56888 sed -n s,^stage$$sed-,,p`; \
f948b2de 56889 for file in $${files} ${extra-compare}; do \
fda13ee8
AO
56890 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
56891 if test ! -f $$f1; then continue; fi; \
8520c408 56892 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
56893 if test $$? -eq 1; then \
56894 case $$file in \
e8a5fa9c 56895 @compare_exclusions@) \
f70224b5
PB
56896 echo warning: $$file differs ;; \
56897 *) \
56898 echo $$file differs >> .bad_compare ;; \
22121df0
L
56899 esac; \
56900 fi; \
56901 done; \
d545f33b
PB
56902 if [ -f .bad_compare ]; then \
56903 echo "Bootstrap comparison failure!"; \
56904 cat .bad_compare; \
56905 exit 1; \
56906 else \
c52c6897 56907 echo Comparison successful.; \
22121df0 56908 fi; \
d545f33b 56909 $(STAMP) compare3
80911fe1
PB
56910 if $(LEAN); then \
56911 rm -rf stage3-*; \
56912 $(STAMP) stage3-lean; \
56913 fi
9cb3fa6f 56914
72b2455a 56915
72b2455a 56916
80911fe1 56917.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
56918bootstrap4:
56919 echo stage4 > stage_final
56920 @r=`${PWD_COMMAND}`; export r; \
56921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56922 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 56923 @: $(MAKE); $(unstage)
be01d343
PB
56924 @r=`${PWD_COMMAND}`; export r; \
56925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 56926 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 56927 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 56928
80911fe1
PB
56929bootstrap4-lean:
56930 echo stage4 > stage_final
56931 @r=`${PWD_COMMAND}`; export r; \
56932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
56933 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
56934 @: $(MAKE); $(unstage)
56935 @r=`${PWD_COMMAND}`; export r; \
56936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 56937 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
56938 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
56939
72b2455a 56940
d545f33b
PB
56941# Rules to wipe a stage and all the following ones, also used for cleanstrap
56942distclean-stage3:: distclean-stage4
56943.PHONY: distclean-stage4
56944distclean-stage4::
0aed8855 56945 @: $(MAKE); $(stage)
e00a73e3 56946 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 56947 rm -rf stage4-* compare3
0df3d27f 56948
9cb3fa6f 56949
d545f33b 56950@endif gcc-bootstrap
72b2455a
PB
56951
56952
56953.PHONY: stageprofile-start stageprofile-end
56954
56955stageprofile-start::
0aed8855 56956 @: $(MAKE); $(stage); \
22121df0 56957 echo stageprofile > stage_current; \
b00612cc 56958 echo stageprofile > stage_last; \
0aed8855 56959 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 56960@if bfd
b00612cc
PB
56961 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
56962 mkdir stageprofile-bfd; \
22121df0 56963 mv stageprofile-bfd bfd; \
80911fe1 56964 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
56965@endif bfd
56966@if opcodes
b00612cc
PB
56967 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
56968 mkdir stageprofile-opcodes; \
22121df0 56969 mv stageprofile-opcodes opcodes; \
80911fe1 56970 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
56971@endif opcodes
56972@if binutils
b00612cc
PB
56973 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
56974 mkdir stageprofile-binutils; \
22121df0 56975 mv stageprofile-binutils binutils; \
80911fe1 56976 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 56977@endif binutils
201f096f 56978@if fixincludes
56979 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
56980 mkdir stageprofile-fixincludes; \
22121df0 56981 mv stageprofile-fixincludes fixincludes; \
201f096f 56982 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
56983@endif fixincludes
72b2455a 56984@if gas
b00612cc
PB
56985 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
56986 mkdir stageprofile-gas; \
22121df0 56987 mv stageprofile-gas gas; \
80911fe1 56988 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
56989@endif gas
56990@if gcc
b00612cc
PB
56991 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
56992 mkdir stageprofile-gcc; \
22121df0 56993 mv stageprofile-gcc gcc; \
80911fe1 56994 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 56995@endif gcc
4b900473
PB
56996@if gmp
56997 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
56998 mkdir stageprofile-gmp; \
22121df0 56999 mv stageprofile-gmp gmp; \
4b900473
PB
57000 mv stage1-gmp prev-gmp || test -f stage1-lean
57001@endif gmp
57002@if mpfr
57003 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
57004 mkdir stageprofile-mpfr; \
22121df0 57005 mv stageprofile-mpfr mpfr; \
4b900473
PB
57006 mv stage1-mpfr prev-mpfr || test -f stage1-lean
57007@endif mpfr
e8a5fa9c
RW
57008@if mpc
57009 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
57010 mkdir stageprofile-mpc; \
22121df0 57011 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
57012 mv stage1-mpc prev-mpc || test -f stage1-lean
57013@endif mpc
7ec59b9e
L
57014@if isl
57015 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
57016 mkdir stageprofile-isl; \
22121df0 57017 mv stageprofile-isl isl; \
7ec59b9e
L
57018 mv stage1-isl prev-isl || test -f stage1-lean
57019@endif isl
1f53ca9a
AO
57020@if libelf
57021 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
57022 mkdir stageprofile-libelf; \
22121df0 57023 mv stageprofile-libelf libelf; \
1f53ca9a
AO
57024 mv stage1-libelf prev-libelf || test -f stage1-lean
57025@endif libelf
93f9b408
ILT
57026@if gold
57027 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
57028 mkdir stageprofile-gold; \
22121df0 57029 mv stageprofile-gold gold; \
93f9b408
ILT
57030 mv stage1-gold prev-gold || test -f stage1-lean
57031@endif gold
72b2455a 57032@if intl
b00612cc
PB
57033 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
57034 mkdir stageprofile-intl; \
22121df0 57035 mv stageprofile-intl intl; \
80911fe1 57036 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
57037@endif intl
57038@if ld
b00612cc
PB
57039 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
57040 mkdir stageprofile-ld; \
22121df0 57041 mv stageprofile-ld ld; \
80911fe1 57042 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 57043@endif ld
2bf680c4
ILT
57044@if libbacktrace
57045 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
57046 mkdir stageprofile-libbacktrace; \
22121df0 57047 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
57048 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
57049@endif libbacktrace
72b2455a 57050@if libcpp
b00612cc
PB
57051 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
57052 mkdir stageprofile-libcpp; \
22121df0 57053 mv stageprofile-libcpp libcpp; \
80911fe1 57054 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 57055@endif libcpp
be01d343
PB
57056@if libdecnumber
57057 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
57058 mkdir stageprofile-libdecnumber; \
22121df0 57059 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 57060 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 57061@endif libdecnumber
72b2455a 57062@if libiberty
b00612cc
PB
57063 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
57064 mkdir stageprofile-libiberty; \
22121df0 57065 mv stageprofile-libiberty libiberty; \
80911fe1 57066 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 57067@endif libiberty
1b6c0831
L
57068@if libiberty-linker-plugin
57069 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
57070 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 57071 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
57072 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
57073@endif libiberty-linker-plugin
016a3251
DD
57074@if libiconv
57075 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
57076 mkdir stageprofile-libiconv; \
57077 mv stageprofile-libiconv libiconv; \
57078 mv stage1-libiconv prev-libiconv || test -f stage1-lean
57079@endif libiconv
72b2455a 57080@if zlib
d545f33b
PB
57081 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
57082 mkdir stageprofile-zlib; \
22121df0 57083 mv stageprofile-zlib zlib; \
80911fe1 57084 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 57085@endif zlib
700d40ca
ILT
57086@if lto-plugin
57087 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
57088 mkdir stageprofile-lto-plugin; \
22121df0 57089 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
57090 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
57091@endif lto-plugin
0e65dfba
NA
57092@if libctf
57093 @cd $(HOST_SUBDIR); [ -d stageprofile-libctf ] || \
57094 mkdir stageprofile-libctf; \
57095 mv stageprofile-libctf libctf; \
57096 mv stage1-libctf prev-libctf || test -f stage1-lean
57097@endif libctf
0aed8855
PB
57098 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
57099 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 57100 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 57101 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 57102
80911fe1 57103stageprofile-end::
d545f33b 57104@if bfd
22121df0
L
57105 @if test -d $(HOST_SUBDIR)/bfd; then \
57106 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
57107 mv prev-bfd stage1-bfd; : ; \
0aed8855 57108 fi
d545f33b
PB
57109@endif bfd
57110@if opcodes
22121df0
L
57111 @if test -d $(HOST_SUBDIR)/opcodes; then \
57112 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
57113 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 57114 fi
d545f33b
PB
57115@endif opcodes
57116@if binutils
22121df0
L
57117 @if test -d $(HOST_SUBDIR)/binutils; then \
57118 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
57119 mv prev-binutils stage1-binutils; : ; \
0aed8855 57120 fi
d545f33b 57121@endif binutils
201f096f 57122@if fixincludes
22121df0
L
57123 @if test -d $(HOST_SUBDIR)/fixincludes; then \
57124 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
57125 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 57126 fi
57127@endif fixincludes
d545f33b 57128@if gas
22121df0
L
57129 @if test -d $(HOST_SUBDIR)/gas; then \
57130 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
57131 mv prev-gas stage1-gas; : ; \
0aed8855 57132 fi
d545f33b
PB
57133@endif gas
57134@if gcc
22121df0
L
57135 @if test -d $(HOST_SUBDIR)/gcc; then \
57136 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
57137 mv prev-gcc stage1-gcc; : ; \
0aed8855 57138 fi
d545f33b 57139@endif gcc
4b900473 57140@if gmp
22121df0
L
57141 @if test -d $(HOST_SUBDIR)/gmp; then \
57142 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
57143 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
57144 fi
57145@endif gmp
57146@if mpfr
22121df0
L
57147 @if test -d $(HOST_SUBDIR)/mpfr; then \
57148 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
57149 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
57150 fi
57151@endif mpfr
e8a5fa9c 57152@if mpc
22121df0
L
57153 @if test -d $(HOST_SUBDIR)/mpc; then \
57154 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
57155 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
57156 fi
57157@endif mpc
7ec59b9e 57158@if isl
22121df0
L
57159 @if test -d $(HOST_SUBDIR)/isl; then \
57160 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
57161 mv prev-isl stage1-isl; : ; \
e28c595f 57162 fi
7ec59b9e 57163@endif isl
1f53ca9a 57164@if libelf
22121df0
L
57165 @if test -d $(HOST_SUBDIR)/libelf; then \
57166 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
57167 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
57168 fi
57169@endif libelf
93f9b408 57170@if gold
22121df0
L
57171 @if test -d $(HOST_SUBDIR)/gold; then \
57172 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
57173 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
57174 fi
57175@endif gold
d545f33b 57176@if intl
22121df0
L
57177 @if test -d $(HOST_SUBDIR)/intl; then \
57178 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
57179 mv prev-intl stage1-intl; : ; \
0aed8855 57180 fi
d545f33b
PB
57181@endif intl
57182@if ld
22121df0
L
57183 @if test -d $(HOST_SUBDIR)/ld; then \
57184 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
57185 mv prev-ld stage1-ld; : ; \
0aed8855 57186 fi
d545f33b 57187@endif ld
2bf680c4 57188@if libbacktrace
22121df0
L
57189 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
57190 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
57191 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
57192 fi
57193@endif libbacktrace
d545f33b 57194@if libcpp
22121df0
L
57195 @if test -d $(HOST_SUBDIR)/libcpp; then \
57196 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
57197 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 57198 fi
d545f33b 57199@endif libcpp
be01d343 57200@if libdecnumber
22121df0
L
57201 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
57202 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
57203 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 57204 fi
be01d343 57205@endif libdecnumber
d545f33b 57206@if libiberty
22121df0
L
57207 @if test -d $(HOST_SUBDIR)/libiberty; then \
57208 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
57209 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 57210 fi
d545f33b 57211@endif libiberty
1b6c0831 57212@if libiberty-linker-plugin
22121df0
L
57213 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
57214 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
57215 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
57216 fi
57217@endif libiberty-linker-plugin
016a3251
DD
57218@if libiconv
57219 @if test -d $(HOST_SUBDIR)/libiconv; then \
57220 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
57221 mv prev-libiconv stage1-libiconv; : ; \
57222 fi
57223@endif libiconv
d545f33b 57224@if zlib
22121df0
L
57225 @if test -d $(HOST_SUBDIR)/zlib; then \
57226 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
57227 mv prev-zlib stage1-zlib; : ; \
0aed8855 57228 fi
d545f33b 57229@endif zlib
700d40ca 57230@if lto-plugin
22121df0
L
57231 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
57232 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
57233 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
57234 fi
57235@endif lto-plugin
0e65dfba
NA
57236@if libctf
57237 @if test -d $(HOST_SUBDIR)/libctf; then \
57238 cd $(HOST_SUBDIR); mv libctf stageprofile-libctf; \
57239 mv prev-libctf stage1-libctf; : ; \
57240 fi
57241@endif libctf
22121df0
L
57242 @if test -d $(TARGET_SUBDIR); then \
57243 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
57244 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 57245 fi
80911fe1 57246 rm -f stage_current
72b2455a 57247
973601e1 57248# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 57249# remade, but not reconfigured. The next stage (if any) will not be
675492f0 57250# reconfigured either.
d545f33b
PB
57251.PHONY: stageprofile-bubble
57252stageprofile-bubble:: stage1-bubble
e360f423
PB
57253 @r=`${PWD_COMMAND}`; export r; \
57254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
57255 if test -f stageprofile-lean || test -f stage1-lean ; then \
57256 echo Skipping rebuild of stageprofile; \
d545f33b 57257 else \
f70224b5
PB
57258 $(MAKE) stageprofile-start; \
57259 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 57260 fi
72b2455a 57261
d545f33b
PB
57262.PHONY: all-stageprofile clean-stageprofile
57263do-clean: clean-stageprofile
0df3d27f 57264
72b2455a
PB
57265# FIXME: Will not need to be conditional when toplevel bootstrap is the
57266# only possibility, but now it conflicts with no-bootstrap rules
57267@if gcc-bootstrap
57268
57269
57270
57271
0df3d27f 57272# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 57273distclean-stage1:: distclean-stageprofile
0df3d27f 57274.PHONY: distclean-stageprofile
72b2455a 57275distclean-stageprofile::
0aed8855 57276 @: $(MAKE); $(stage)
e00a73e3 57277 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 57278 rm -rf stageprofile-*
dfdffa2c
PB
57279
57280
72b2455a 57281@endif gcc-bootstrap
dfdffa2c
PB
57282
57283
f948b2de
NC
57284.PHONY: stagetrain-start stagetrain-end
57285
57286stagetrain-start::
57287 @: $(MAKE); $(stage); \
57288 echo stagetrain > stage_current; \
57289 echo stagetrain > stage_last; \
57290 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
57291@if bfd
57292 @cd $(HOST_SUBDIR); [ -d stagetrain-bfd ] || \
57293 mkdir stagetrain-bfd; \
57294 mv stagetrain-bfd bfd; \
57295 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
57296@endif bfd
57297@if opcodes
57298 @cd $(HOST_SUBDIR); [ -d stagetrain-opcodes ] || \
57299 mkdir stagetrain-opcodes; \
57300 mv stagetrain-opcodes opcodes; \
57301 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
57302@endif opcodes
57303@if binutils
57304 @cd $(HOST_SUBDIR); [ -d stagetrain-binutils ] || \
57305 mkdir stagetrain-binutils; \
57306 mv stagetrain-binutils binutils; \
57307 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
57308@endif binutils
57309@if fixincludes
57310 @cd $(HOST_SUBDIR); [ -d stagetrain-fixincludes ] || \
57311 mkdir stagetrain-fixincludes; \
57312 mv stagetrain-fixincludes fixincludes; \
57313 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
57314@endif fixincludes
57315@if gas
57316 @cd $(HOST_SUBDIR); [ -d stagetrain-gas ] || \
57317 mkdir stagetrain-gas; \
57318 mv stagetrain-gas gas; \
57319 mv stageprofile-gas prev-gas || test -f stageprofile-lean
57320@endif gas
57321@if gcc
57322 @cd $(HOST_SUBDIR); [ -d stagetrain-gcc ] || \
57323 mkdir stagetrain-gcc; \
57324 mv stagetrain-gcc gcc; \
57325 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
57326@endif gcc
57327@if gmp
57328 @cd $(HOST_SUBDIR); [ -d stagetrain-gmp ] || \
57329 mkdir stagetrain-gmp; \
57330 mv stagetrain-gmp gmp; \
57331 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
57332@endif gmp
57333@if mpfr
57334 @cd $(HOST_SUBDIR); [ -d stagetrain-mpfr ] || \
57335 mkdir stagetrain-mpfr; \
57336 mv stagetrain-mpfr mpfr; \
57337 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
57338@endif mpfr
57339@if mpc
57340 @cd $(HOST_SUBDIR); [ -d stagetrain-mpc ] || \
57341 mkdir stagetrain-mpc; \
57342 mv stagetrain-mpc mpc; \
57343 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
57344@endif mpc
57345@if isl
57346 @cd $(HOST_SUBDIR); [ -d stagetrain-isl ] || \
57347 mkdir stagetrain-isl; \
57348 mv stagetrain-isl isl; \
57349 mv stageprofile-isl prev-isl || test -f stageprofile-lean
57350@endif isl
57351@if libelf
57352 @cd $(HOST_SUBDIR); [ -d stagetrain-libelf ] || \
57353 mkdir stagetrain-libelf; \
57354 mv stagetrain-libelf libelf; \
57355 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
57356@endif libelf
57357@if gold
57358 @cd $(HOST_SUBDIR); [ -d stagetrain-gold ] || \
57359 mkdir stagetrain-gold; \
57360 mv stagetrain-gold gold; \
57361 mv stageprofile-gold prev-gold || test -f stageprofile-lean
57362@endif gold
57363@if intl
57364 @cd $(HOST_SUBDIR); [ -d stagetrain-intl ] || \
57365 mkdir stagetrain-intl; \
57366 mv stagetrain-intl intl; \
57367 mv stageprofile-intl prev-intl || test -f stageprofile-lean
57368@endif intl
57369@if ld
57370 @cd $(HOST_SUBDIR); [ -d stagetrain-ld ] || \
57371 mkdir stagetrain-ld; \
57372 mv stagetrain-ld ld; \
57373 mv stageprofile-ld prev-ld || test -f stageprofile-lean
57374@endif ld
57375@if libbacktrace
57376 @cd $(HOST_SUBDIR); [ -d stagetrain-libbacktrace ] || \
57377 mkdir stagetrain-libbacktrace; \
57378 mv stagetrain-libbacktrace libbacktrace; \
57379 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
57380@endif libbacktrace
57381@if libcpp
57382 @cd $(HOST_SUBDIR); [ -d stagetrain-libcpp ] || \
57383 mkdir stagetrain-libcpp; \
57384 mv stagetrain-libcpp libcpp; \
57385 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
57386@endif libcpp
57387@if libdecnumber
57388 @cd $(HOST_SUBDIR); [ -d stagetrain-libdecnumber ] || \
57389 mkdir stagetrain-libdecnumber; \
57390 mv stagetrain-libdecnumber libdecnumber; \
57391 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
57392@endif libdecnumber
57393@if libiberty
57394 @cd $(HOST_SUBDIR); [ -d stagetrain-libiberty ] || \
57395 mkdir stagetrain-libiberty; \
57396 mv stagetrain-libiberty libiberty; \
57397 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
57398@endif libiberty
57399@if libiberty-linker-plugin
57400 @cd $(HOST_SUBDIR); [ -d stagetrain-libiberty-linker-plugin ] || \
57401 mkdir stagetrain-libiberty-linker-plugin; \
57402 mv stagetrain-libiberty-linker-plugin libiberty-linker-plugin; \
57403 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
57404@endif libiberty-linker-plugin
57405@if libiconv
57406 @cd $(HOST_SUBDIR); [ -d stagetrain-libiconv ] || \
57407 mkdir stagetrain-libiconv; \
57408 mv stagetrain-libiconv libiconv; \
57409 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
57410@endif libiconv
57411@if zlib
57412 @cd $(HOST_SUBDIR); [ -d stagetrain-zlib ] || \
57413 mkdir stagetrain-zlib; \
57414 mv stagetrain-zlib zlib; \
57415 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
57416@endif zlib
57417@if lto-plugin
57418 @cd $(HOST_SUBDIR); [ -d stagetrain-lto-plugin ] || \
57419 mkdir stagetrain-lto-plugin; \
57420 mv stagetrain-lto-plugin lto-plugin; \
57421 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
57422@endif lto-plugin
57423@if libctf
57424 @cd $(HOST_SUBDIR); [ -d stagetrain-libctf ] || \
57425 mkdir stagetrain-libctf; \
57426 mv stagetrain-libctf libctf; \
57427 mv stageprofile-libctf prev-libctf || test -f stageprofile-lean
57428@endif libctf
57429 @[ -d stagetrain-$(TARGET_SUBDIR) ] || \
57430 mkdir stagetrain-$(TARGET_SUBDIR); \
57431 mv stagetrain-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
57432 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
57433
57434stagetrain-end::
57435@if bfd
57436 @if test -d $(HOST_SUBDIR)/bfd; then \
57437 cd $(HOST_SUBDIR); mv bfd stagetrain-bfd; \
57438 mv prev-bfd stageprofile-bfd; : ; \
57439 fi
57440@endif bfd
57441@if opcodes
57442 @if test -d $(HOST_SUBDIR)/opcodes; then \
57443 cd $(HOST_SUBDIR); mv opcodes stagetrain-opcodes; \
57444 mv prev-opcodes stageprofile-opcodes; : ; \
57445 fi
57446@endif opcodes
57447@if binutils
57448 @if test -d $(HOST_SUBDIR)/binutils; then \
57449 cd $(HOST_SUBDIR); mv binutils stagetrain-binutils; \
57450 mv prev-binutils stageprofile-binutils; : ; \
57451 fi
57452@endif binutils
57453@if fixincludes
57454 @if test -d $(HOST_SUBDIR)/fixincludes; then \
57455 cd $(HOST_SUBDIR); mv fixincludes stagetrain-fixincludes; \
57456 mv prev-fixincludes stageprofile-fixincludes; : ; \
57457 fi
57458@endif fixincludes
57459@if gas
57460 @if test -d $(HOST_SUBDIR)/gas; then \
57461 cd $(HOST_SUBDIR); mv gas stagetrain-gas; \
57462 mv prev-gas stageprofile-gas; : ; \
57463 fi
57464@endif gas
57465@if gcc
57466 @if test -d $(HOST_SUBDIR)/gcc; then \
57467 cd $(HOST_SUBDIR); mv gcc stagetrain-gcc; \
57468 mv prev-gcc stageprofile-gcc; : ; \
57469 fi
57470@endif gcc
57471@if gmp
57472 @if test -d $(HOST_SUBDIR)/gmp; then \
57473 cd $(HOST_SUBDIR); mv gmp stagetrain-gmp; \
57474 mv prev-gmp stageprofile-gmp; : ; \
57475 fi
57476@endif gmp
57477@if mpfr
57478 @if test -d $(HOST_SUBDIR)/mpfr; then \
57479 cd $(HOST_SUBDIR); mv mpfr stagetrain-mpfr; \
57480 mv prev-mpfr stageprofile-mpfr; : ; \
57481 fi
57482@endif mpfr
57483@if mpc
57484 @if test -d $(HOST_SUBDIR)/mpc; then \
57485 cd $(HOST_SUBDIR); mv mpc stagetrain-mpc; \
57486 mv prev-mpc stageprofile-mpc; : ; \
57487 fi
57488@endif mpc
57489@if isl
57490 @if test -d $(HOST_SUBDIR)/isl; then \
57491 cd $(HOST_SUBDIR); mv isl stagetrain-isl; \
57492 mv prev-isl stageprofile-isl; : ; \
57493 fi
57494@endif isl
57495@if libelf
57496 @if test -d $(HOST_SUBDIR)/libelf; then \
57497 cd $(HOST_SUBDIR); mv libelf stagetrain-libelf; \
57498 mv prev-libelf stageprofile-libelf; : ; \
57499 fi
57500@endif libelf
57501@if gold
57502 @if test -d $(HOST_SUBDIR)/gold; then \
57503 cd $(HOST_SUBDIR); mv gold stagetrain-gold; \
57504 mv prev-gold stageprofile-gold; : ; \
57505 fi
57506@endif gold
57507@if intl
57508 @if test -d $(HOST_SUBDIR)/intl; then \
57509 cd $(HOST_SUBDIR); mv intl stagetrain-intl; \
57510 mv prev-intl stageprofile-intl; : ; \
57511 fi
57512@endif intl
57513@if ld
57514 @if test -d $(HOST_SUBDIR)/ld; then \
57515 cd $(HOST_SUBDIR); mv ld stagetrain-ld; \
57516 mv prev-ld stageprofile-ld; : ; \
57517 fi
57518@endif ld
57519@if libbacktrace
57520 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
57521 cd $(HOST_SUBDIR); mv libbacktrace stagetrain-libbacktrace; \
57522 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
57523 fi
57524@endif libbacktrace
57525@if libcpp
57526 @if test -d $(HOST_SUBDIR)/libcpp; then \
57527 cd $(HOST_SUBDIR); mv libcpp stagetrain-libcpp; \
57528 mv prev-libcpp stageprofile-libcpp; : ; \
57529 fi
57530@endif libcpp
57531@if libdecnumber
57532 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
57533 cd $(HOST_SUBDIR); mv libdecnumber stagetrain-libdecnumber; \
57534 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
57535 fi
57536@endif libdecnumber
57537@if libiberty
57538 @if test -d $(HOST_SUBDIR)/libiberty; then \
57539 cd $(HOST_SUBDIR); mv libiberty stagetrain-libiberty; \
57540 mv prev-libiberty stageprofile-libiberty; : ; \
57541 fi
57542@endif libiberty
57543@if libiberty-linker-plugin
57544 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
57545 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagetrain-libiberty-linker-plugin; \
57546 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
57547 fi
57548@endif libiberty-linker-plugin
57549@if libiconv
57550 @if test -d $(HOST_SUBDIR)/libiconv; then \
57551 cd $(HOST_SUBDIR); mv libiconv stagetrain-libiconv; \
57552 mv prev-libiconv stageprofile-libiconv; : ; \
57553 fi
57554@endif libiconv
57555@if zlib
57556 @if test -d $(HOST_SUBDIR)/zlib; then \
57557 cd $(HOST_SUBDIR); mv zlib stagetrain-zlib; \
57558 mv prev-zlib stageprofile-zlib; : ; \
57559 fi
57560@endif zlib
57561@if lto-plugin
57562 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
57563 cd $(HOST_SUBDIR); mv lto-plugin stagetrain-lto-plugin; \
57564 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
57565 fi
57566@endif lto-plugin
57567@if libctf
57568 @if test -d $(HOST_SUBDIR)/libctf; then \
57569 cd $(HOST_SUBDIR); mv libctf stagetrain-libctf; \
57570 mv prev-libctf stageprofile-libctf; : ; \
57571 fi
57572@endif libctf
57573 @if test -d $(TARGET_SUBDIR); then \
57574 mv $(TARGET_SUBDIR) stagetrain-$(TARGET_SUBDIR); \
57575 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
57576 fi
57577 rm -f stage_current
57578
57579# Bubble a bug fix through all the stages up to stage train. They are
57580# remade, but not reconfigured. The next stage (if any) will not be
57581# reconfigured either.
57582.PHONY: stagetrain-bubble
57583stagetrain-bubble:: stageprofile-bubble
57584 @r=`${PWD_COMMAND}`; export r; \
57585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
57586 if test -f stagetrain-lean || test -f stageprofile-lean ; then \
57587 echo Skipping rebuild of stagetrain; \
57588 else \
57589 $(MAKE) stagetrain-start; \
57590 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagetrain; \
57591 fi
57592
57593.PHONY: all-stagetrain clean-stagetrain
57594do-clean: clean-stagetrain
57595
57596# FIXME: Will not need to be conditional when toplevel bootstrap is the
57597# only possibility, but now it conflicts with no-bootstrap rules
57598@if gcc-bootstrap
57599
57600
57601
57602
57603# Rules to wipe a stage and all the following ones, also used for cleanstrap
57604distclean-stageprofile:: distclean-stagetrain
57605.PHONY: distclean-stagetrain
57606distclean-stagetrain::
57607 @: $(MAKE); $(stage)
57608 @test "`cat stage_last`" != stagetrain || rm -f stage_last
57609 rm -rf stagetrain-*
57610
57611
57612@endif gcc-bootstrap
57613
57614
72b2455a 57615.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 57616
72b2455a 57617stagefeedback-start::
0aed8855 57618 @: $(MAKE); $(stage); \
22121df0 57619 echo stagefeedback > stage_current; \
b00612cc 57620 echo stagefeedback > stage_last; \
0aed8855 57621 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 57622@if bfd
b00612cc
PB
57623 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
57624 mkdir stagefeedback-bfd; \
22121df0 57625 mv stagefeedback-bfd bfd; \
f948b2de 57626 mv stagetrain-bfd prev-bfd || test -f stagetrain-lean
72b2455a
PB
57627@endif bfd
57628@if opcodes
b00612cc
PB
57629 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
57630 mkdir stagefeedback-opcodes; \
22121df0 57631 mv stagefeedback-opcodes opcodes; \
f948b2de 57632 mv stagetrain-opcodes prev-opcodes || test -f stagetrain-lean
72b2455a
PB
57633@endif opcodes
57634@if binutils
b00612cc
PB
57635 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
57636 mkdir stagefeedback-binutils; \
22121df0 57637 mv stagefeedback-binutils binutils; \
f948b2de 57638 mv stagetrain-binutils prev-binutils || test -f stagetrain-lean
72b2455a 57639@endif binutils
201f096f 57640@if fixincludes
57641 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
57642 mkdir stagefeedback-fixincludes; \
22121df0 57643 mv stagefeedback-fixincludes fixincludes; \
f948b2de 57644 mv stagetrain-fixincludes prev-fixincludes || test -f stagetrain-lean
201f096f 57645@endif fixincludes
72b2455a 57646@if gas
b00612cc
PB
57647 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
57648 mkdir stagefeedback-gas; \
22121df0 57649 mv stagefeedback-gas gas; \
f948b2de 57650 mv stagetrain-gas prev-gas || test -f stagetrain-lean
72b2455a
PB
57651@endif gas
57652@if gcc
b00612cc
PB
57653 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
57654 mkdir stagefeedback-gcc; \
22121df0 57655 mv stagefeedback-gcc gcc; \
f948b2de 57656 mv stagetrain-gcc prev-gcc || test -f stagetrain-lean
72b2455a 57657@endif gcc
4b900473
PB
57658@if gmp
57659 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
57660 mkdir stagefeedback-gmp; \
22121df0 57661 mv stagefeedback-gmp gmp; \
f948b2de 57662 mv stagetrain-gmp prev-gmp || test -f stagetrain-lean
4b900473
PB
57663@endif gmp
57664@if mpfr
57665 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
57666 mkdir stagefeedback-mpfr; \
22121df0 57667 mv stagefeedback-mpfr mpfr; \
f948b2de 57668 mv stagetrain-mpfr prev-mpfr || test -f stagetrain-lean
4b900473 57669@endif mpfr
e8a5fa9c
RW
57670@if mpc
57671 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
57672 mkdir stagefeedback-mpc; \
22121df0 57673 mv stagefeedback-mpc mpc; \
f948b2de 57674 mv stagetrain-mpc prev-mpc || test -f stagetrain-lean
e8a5fa9c 57675@endif mpc
7ec59b9e
L
57676@if isl
57677 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
57678 mkdir stagefeedback-isl; \
22121df0 57679 mv stagefeedback-isl isl; \
f948b2de 57680 mv stagetrain-isl prev-isl || test -f stagetrain-lean
7ec59b9e 57681@endif isl
1f53ca9a
AO
57682@if libelf
57683 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
57684 mkdir stagefeedback-libelf; \
22121df0 57685 mv stagefeedback-libelf libelf; \
f948b2de 57686 mv stagetrain-libelf prev-libelf || test -f stagetrain-lean
1f53ca9a 57687@endif libelf
93f9b408
ILT
57688@if gold
57689 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
57690 mkdir stagefeedback-gold; \
22121df0 57691 mv stagefeedback-gold gold; \
f948b2de 57692 mv stagetrain-gold prev-gold || test -f stagetrain-lean
93f9b408 57693@endif gold
72b2455a 57694@if intl
b00612cc
PB
57695 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
57696 mkdir stagefeedback-intl; \
22121df0 57697 mv stagefeedback-intl intl; \
f948b2de 57698 mv stagetrain-intl prev-intl || test -f stagetrain-lean
72b2455a
PB
57699@endif intl
57700@if ld
b00612cc
PB
57701 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
57702 mkdir stagefeedback-ld; \
22121df0 57703 mv stagefeedback-ld ld; \
f948b2de 57704 mv stagetrain-ld prev-ld || test -f stagetrain-lean
72b2455a 57705@endif ld
2bf680c4
ILT
57706@if libbacktrace
57707 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
57708 mkdir stagefeedback-libbacktrace; \
22121df0 57709 mv stagefeedback-libbacktrace libbacktrace; \
f948b2de 57710 mv stagetrain-libbacktrace prev-libbacktrace || test -f stagetrain-lean
2bf680c4 57711@endif libbacktrace
72b2455a 57712@if libcpp
b00612cc
PB
57713 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
57714 mkdir stagefeedback-libcpp; \
22121df0 57715 mv stagefeedback-libcpp libcpp; \
f948b2de 57716 mv stagetrain-libcpp prev-libcpp || test -f stagetrain-lean
72b2455a 57717@endif libcpp
be01d343
PB
57718@if libdecnumber
57719 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
57720 mkdir stagefeedback-libdecnumber; \
22121df0 57721 mv stagefeedback-libdecnumber libdecnumber; \
f948b2de 57722 mv stagetrain-libdecnumber prev-libdecnumber || test -f stagetrain-lean
be01d343 57723@endif libdecnumber
72b2455a 57724@if libiberty
b00612cc
PB
57725 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
57726 mkdir stagefeedback-libiberty; \
22121df0 57727 mv stagefeedback-libiberty libiberty; \
f948b2de 57728 mv stagetrain-libiberty prev-libiberty || test -f stagetrain-lean
72b2455a 57729@endif libiberty
1b6c0831
L
57730@if libiberty-linker-plugin
57731 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
57732 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 57733 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
f948b2de 57734 mv stagetrain-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stagetrain-lean
1b6c0831 57735@endif libiberty-linker-plugin
016a3251
DD
57736@if libiconv
57737 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
57738 mkdir stagefeedback-libiconv; \
57739 mv stagefeedback-libiconv libiconv; \
f948b2de 57740 mv stagetrain-libiconv prev-libiconv || test -f stagetrain-lean
016a3251 57741@endif libiconv
72b2455a 57742@if zlib
b00612cc
PB
57743 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
57744 mkdir stagefeedback-zlib; \
22121df0 57745 mv stagefeedback-zlib zlib; \
f948b2de 57746 mv stagetrain-zlib prev-zlib || test -f stagetrain-lean
72b2455a 57747@endif zlib
700d40ca
ILT
57748@if lto-plugin
57749 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
57750 mkdir stagefeedback-lto-plugin; \
22121df0 57751 mv stagefeedback-lto-plugin lto-plugin; \
f948b2de 57752 mv stagetrain-lto-plugin prev-lto-plugin || test -f stagetrain-lean
700d40ca 57753@endif lto-plugin
0e65dfba
NA
57754@if libctf
57755 @cd $(HOST_SUBDIR); [ -d stagefeedback-libctf ] || \
57756 mkdir stagefeedback-libctf; \
57757 mv stagefeedback-libctf libctf; \
f948b2de 57758 mv stagetrain-libctf prev-libctf || test -f stagetrain-lean
0e65dfba 57759@endif libctf
0aed8855
PB
57760 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
57761 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 57762 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
f948b2de 57763 mv stagetrain-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stagetrain-lean
dfdffa2c 57764
80911fe1 57765stagefeedback-end::
72b2455a 57766@if bfd
22121df0
L
57767 @if test -d $(HOST_SUBDIR)/bfd; then \
57768 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
f948b2de 57769 mv prev-bfd stagetrain-bfd; : ; \
0aed8855 57770 fi
72b2455a
PB
57771@endif bfd
57772@if opcodes
22121df0
L
57773 @if test -d $(HOST_SUBDIR)/opcodes; then \
57774 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
f948b2de 57775 mv prev-opcodes stagetrain-opcodes; : ; \
0aed8855 57776 fi
72b2455a
PB
57777@endif opcodes
57778@if binutils
22121df0
L
57779 @if test -d $(HOST_SUBDIR)/binutils; then \
57780 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
f948b2de 57781 mv prev-binutils stagetrain-binutils; : ; \
0aed8855 57782 fi
72b2455a 57783@endif binutils
201f096f 57784@if fixincludes
22121df0
L
57785 @if test -d $(HOST_SUBDIR)/fixincludes; then \
57786 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
f948b2de 57787 mv prev-fixincludes stagetrain-fixincludes; : ; \
201f096f 57788 fi
57789@endif fixincludes
72b2455a 57790@if gas
22121df0
L
57791 @if test -d $(HOST_SUBDIR)/gas; then \
57792 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
f948b2de 57793 mv prev-gas stagetrain-gas; : ; \
0aed8855 57794 fi
72b2455a
PB
57795@endif gas
57796@if gcc
22121df0
L
57797 @if test -d $(HOST_SUBDIR)/gcc; then \
57798 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
f948b2de 57799 mv prev-gcc stagetrain-gcc; : ; \
0aed8855 57800 fi
72b2455a 57801@endif gcc
4b900473 57802@if gmp
22121df0
L
57803 @if test -d $(HOST_SUBDIR)/gmp; then \
57804 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
f948b2de 57805 mv prev-gmp stagetrain-gmp; : ; \
4b900473
PB
57806 fi
57807@endif gmp
57808@if mpfr
22121df0
L
57809 @if test -d $(HOST_SUBDIR)/mpfr; then \
57810 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
f948b2de 57811 mv prev-mpfr stagetrain-mpfr; : ; \
4b900473
PB
57812 fi
57813@endif mpfr
e8a5fa9c 57814@if mpc
22121df0
L
57815 @if test -d $(HOST_SUBDIR)/mpc; then \
57816 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
f948b2de 57817 mv prev-mpc stagetrain-mpc; : ; \
e8a5fa9c
RW
57818 fi
57819@endif mpc
7ec59b9e 57820@if isl
22121df0
L
57821 @if test -d $(HOST_SUBDIR)/isl; then \
57822 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
f948b2de 57823 mv prev-isl stagetrain-isl; : ; \
e28c595f 57824 fi
7ec59b9e 57825@endif isl
1f53ca9a 57826@if libelf
22121df0
L
57827 @if test -d $(HOST_SUBDIR)/libelf; then \
57828 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
f948b2de 57829 mv prev-libelf stagetrain-libelf; : ; \
1f53ca9a
AO
57830 fi
57831@endif libelf
93f9b408 57832@if gold
22121df0
L
57833 @if test -d $(HOST_SUBDIR)/gold; then \
57834 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
f948b2de 57835 mv prev-gold stagetrain-gold; : ; \
93f9b408
ILT
57836 fi
57837@endif gold
72b2455a 57838@if intl
22121df0
L
57839 @if test -d $(HOST_SUBDIR)/intl; then \
57840 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
f948b2de 57841 mv prev-intl stagetrain-intl; : ; \
0aed8855 57842 fi
72b2455a
PB
57843@endif intl
57844@if ld
22121df0
L
57845 @if test -d $(HOST_SUBDIR)/ld; then \
57846 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
f948b2de 57847 mv prev-ld stagetrain-ld; : ; \
0aed8855 57848 fi
72b2455a 57849@endif ld
2bf680c4 57850@if libbacktrace
22121df0
L
57851 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
57852 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
f948b2de 57853 mv prev-libbacktrace stagetrain-libbacktrace; : ; \
2bf680c4
ILT
57854 fi
57855@endif libbacktrace
72b2455a 57856@if libcpp
22121df0
L
57857 @if test -d $(HOST_SUBDIR)/libcpp; then \
57858 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
f948b2de 57859 mv prev-libcpp stagetrain-libcpp; : ; \
0aed8855 57860 fi
72b2455a 57861@endif libcpp
be01d343 57862@if libdecnumber
22121df0
L
57863 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
57864 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
f948b2de 57865 mv prev-libdecnumber stagetrain-libdecnumber; : ; \
0aed8855 57866 fi
be01d343 57867@endif libdecnumber
72b2455a 57868@if libiberty
22121df0
L
57869 @if test -d $(HOST_SUBDIR)/libiberty; then \
57870 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
f948b2de 57871 mv prev-libiberty stagetrain-libiberty; : ; \
0aed8855 57872 fi
72b2455a 57873@endif libiberty
1b6c0831 57874@if libiberty-linker-plugin
22121df0
L
57875 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
57876 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
f948b2de 57877 mv prev-libiberty-linker-plugin stagetrain-libiberty-linker-plugin; : ; \
1b6c0831
L
57878 fi
57879@endif libiberty-linker-plugin
016a3251
DD
57880@if libiconv
57881 @if test -d $(HOST_SUBDIR)/libiconv; then \
57882 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
f948b2de 57883 mv prev-libiconv stagetrain-libiconv; : ; \
016a3251
DD
57884 fi
57885@endif libiconv
72b2455a 57886@if zlib
22121df0
L
57887 @if test -d $(HOST_SUBDIR)/zlib; then \
57888 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
f948b2de 57889 mv prev-zlib stagetrain-zlib; : ; \
0aed8855 57890 fi
72b2455a 57891@endif zlib
700d40ca 57892@if lto-plugin
22121df0
L
57893 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
57894 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
f948b2de 57895 mv prev-lto-plugin stagetrain-lto-plugin; : ; \
700d40ca
ILT
57896 fi
57897@endif lto-plugin
0e65dfba
NA
57898@if libctf
57899 @if test -d $(HOST_SUBDIR)/libctf; then \
57900 cd $(HOST_SUBDIR); mv libctf stagefeedback-libctf; \
f948b2de 57901 mv prev-libctf stagetrain-libctf; : ; \
0e65dfba
NA
57902 fi
57903@endif libctf
22121df0
L
57904 @if test -d $(TARGET_SUBDIR); then \
57905 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
f948b2de 57906 mv prev-$(TARGET_SUBDIR) stagetrain-$(TARGET_SUBDIR); : ; \
0aed8855 57907 fi
80911fe1 57908 rm -f stage_current
dfdffa2c 57909
973601e1 57910# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 57911# remade, but not reconfigured. The next stage (if any) will not be
675492f0 57912# reconfigured either.
72b2455a 57913.PHONY: stagefeedback-bubble
f948b2de 57914stagefeedback-bubble:: stagetrain-bubble
e360f423
PB
57915 @r=`${PWD_COMMAND}`; export r; \
57916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f948b2de 57917 if test -f stagefeedback-lean || test -f stagetrain-lean ; then \
22121df0 57918 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 57919 else \
f70224b5
PB
57920 $(MAKE) stagefeedback-start; \
57921 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 57922 fi
72b2455a 57923
0df3d27f 57924.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 57925do-clean: clean-stagefeedback
0df3d27f 57926
72b2455a
PB
57927# FIXME: Will not need to be conditional when toplevel bootstrap is the
57928# only possibility, but now it conflicts with no-bootstrap rules
57929@if gcc-bootstrap
656fdd47
PB
57930
57931
57932
80911fe1 57933.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
57934profiledbootstrap:
57935 echo stagefeedback > stage_final
57936 @r=`${PWD_COMMAND}`; export r; \
57937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
57938 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 57939 @: $(MAKE); $(unstage)
be01d343
PB
57940 @r=`${PWD_COMMAND}`; export r; \
57941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 57942 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 57943 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 57944
80911fe1
PB
57945profiledbootstrap-lean:
57946 echo stagefeedback > stage_final
57947 @r=`${PWD_COMMAND}`; export r; \
57948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
57949 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
57950 @: $(MAKE); $(unstage)
57951 @r=`${PWD_COMMAND}`; export r; \
57952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 57953 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
57954 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
57955
656fdd47 57956
0df3d27f 57957# Rules to wipe a stage and all the following ones, also used for cleanstrap
f948b2de 57958distclean-stagetrain:: distclean-stagefeedback
0df3d27f 57959.PHONY: distclean-stagefeedback
656fdd47 57960distclean-stagefeedback::
0aed8855 57961 @: $(MAKE); $(stage)
e00a73e3 57962 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 57963 rm -rf stagefeedback-*
656fdd47
PB
57964
57965
72b2455a 57966@endif gcc-bootstrap
656fdd47
PB
57967
57968
f948b2de
NC
57969.PHONY: stageautoprofile-start stageautoprofile-end
57970
57971stageautoprofile-start::
57972 @: $(MAKE); $(stage); \
57973 echo stageautoprofile > stage_current; \
57974 echo stageautoprofile > stage_last; \
57975 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
57976@if bfd
57977 @cd $(HOST_SUBDIR); [ -d stageautoprofile-bfd ] || \
57978 mkdir stageautoprofile-bfd; \
57979 mv stageautoprofile-bfd bfd; \
57980 mv stage1-bfd prev-bfd || test -f stage1-lean
57981@endif bfd
57982@if opcodes
57983 @cd $(HOST_SUBDIR); [ -d stageautoprofile-opcodes ] || \
57984 mkdir stageautoprofile-opcodes; \
57985 mv stageautoprofile-opcodes opcodes; \
57986 mv stage1-opcodes prev-opcodes || test -f stage1-lean
57987@endif opcodes
57988@if binutils
57989 @cd $(HOST_SUBDIR); [ -d stageautoprofile-binutils ] || \
57990 mkdir stageautoprofile-binutils; \
57991 mv stageautoprofile-binutils binutils; \
57992 mv stage1-binutils prev-binutils || test -f stage1-lean
57993@endif binutils
57994@if fixincludes
57995 @cd $(HOST_SUBDIR); [ -d stageautoprofile-fixincludes ] || \
57996 mkdir stageautoprofile-fixincludes; \
57997 mv stageautoprofile-fixincludes fixincludes; \
57998 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
57999@endif fixincludes
58000@if gas
58001 @cd $(HOST_SUBDIR); [ -d stageautoprofile-gas ] || \
58002 mkdir stageautoprofile-gas; \
58003 mv stageautoprofile-gas gas; \
58004 mv stage1-gas prev-gas || test -f stage1-lean
58005@endif gas
58006@if gcc
58007 @cd $(HOST_SUBDIR); [ -d stageautoprofile-gcc ] || \
58008 mkdir stageautoprofile-gcc; \
58009 mv stageautoprofile-gcc gcc; \
58010 mv stage1-gcc prev-gcc || test -f stage1-lean
58011@endif gcc
58012@if gmp
58013 @cd $(HOST_SUBDIR); [ -d stageautoprofile-gmp ] || \
58014 mkdir stageautoprofile-gmp; \
58015 mv stageautoprofile-gmp gmp; \
58016 mv stage1-gmp prev-gmp || test -f stage1-lean
58017@endif gmp
58018@if mpfr
58019 @cd $(HOST_SUBDIR); [ -d stageautoprofile-mpfr ] || \
58020 mkdir stageautoprofile-mpfr; \
58021 mv stageautoprofile-mpfr mpfr; \
58022 mv stage1-mpfr prev-mpfr || test -f stage1-lean
58023@endif mpfr
58024@if mpc
58025 @cd $(HOST_SUBDIR); [ -d stageautoprofile-mpc ] || \
58026 mkdir stageautoprofile-mpc; \
58027 mv stageautoprofile-mpc mpc; \
58028 mv stage1-mpc prev-mpc || test -f stage1-lean
58029@endif mpc
58030@if isl
58031 @cd $(HOST_SUBDIR); [ -d stageautoprofile-isl ] || \
58032 mkdir stageautoprofile-isl; \
58033 mv stageautoprofile-isl isl; \
58034 mv stage1-isl prev-isl || test -f stage1-lean
58035@endif isl
58036@if libelf
58037 @cd $(HOST_SUBDIR); [ -d stageautoprofile-libelf ] || \
58038 mkdir stageautoprofile-libelf; \
58039 mv stageautoprofile-libelf libelf; \
58040 mv stage1-libelf prev-libelf || test -f stage1-lean
58041@endif libelf
58042@if gold
58043 @cd $(HOST_SUBDIR); [ -d stageautoprofile-gold ] || \
58044 mkdir stageautoprofile-gold; \
58045 mv stageautoprofile-gold gold; \
58046 mv stage1-gold prev-gold || test -f stage1-lean
58047@endif gold
58048@if intl
58049 @cd $(HOST_SUBDIR); [ -d stageautoprofile-intl ] || \
58050 mkdir stageautoprofile-intl; \
58051 mv stageautoprofile-intl intl; \
58052 mv stage1-intl prev-intl || test -f stage1-lean
58053@endif intl
58054@if ld
58055 @cd $(HOST_SUBDIR); [ -d stageautoprofile-ld ] || \
58056 mkdir stageautoprofile-ld; \
58057 mv stageautoprofile-ld ld; \
58058 mv stage1-ld prev-ld || test -f stage1-lean
58059@endif ld
58060@if libbacktrace
58061 @cd $(HOST_SUBDIR); [ -d stageautoprofile-libbacktrace ] || \
58062 mkdir stageautoprofile-libbacktrace; \
58063 mv stageautoprofile-libbacktrace libbacktrace; \
58064 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
58065@endif libbacktrace
58066@if libcpp
58067 @cd $(HOST_SUBDIR); [ -d stageautoprofile-libcpp ] || \
58068 mkdir stageautoprofile-libcpp; \
58069 mv stageautoprofile-libcpp libcpp; \
58070 mv stage1-libcpp prev-libcpp || test -f stage1-lean
58071@endif libcpp
58072@if libdecnumber
58073 @cd $(HOST_SUBDIR); [ -d stageautoprofile-libdecnumber ] || \
58074 mkdir stageautoprofile-libdecnumber; \
58075 mv stageautoprofile-libdecnumber libdecnumber; \
58076 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
58077@endif libdecnumber
58078@if libiberty
58079 @cd $(HOST_SUBDIR); [ -d stageautoprofile-libiberty ] || \
58080 mkdir stageautoprofile-libiberty; \
58081 mv stageautoprofile-libiberty libiberty; \
58082 mv stage1-libiberty prev-libiberty || test -f stage1-lean
58083@endif libiberty
58084@if libiberty-linker-plugin
58085 @cd $(HOST_SUBDIR); [ -d stageautoprofile-libiberty-linker-plugin ] || \
58086 mkdir stageautoprofile-libiberty-linker-plugin; \
58087 mv stageautoprofile-libiberty-linker-plugin libiberty-linker-plugin; \
58088 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
58089@endif libiberty-linker-plugin
58090@if libiconv
58091 @cd $(HOST_SUBDIR); [ -d stageautoprofile-libiconv ] || \
58092 mkdir stageautoprofile-libiconv; \
58093 mv stageautoprofile-libiconv libiconv; \
58094 mv stage1-libiconv prev-libiconv || test -f stage1-lean
58095@endif libiconv
58096@if zlib
58097 @cd $(HOST_SUBDIR); [ -d stageautoprofile-zlib ] || \
58098 mkdir stageautoprofile-zlib; \
58099 mv stageautoprofile-zlib zlib; \
58100 mv stage1-zlib prev-zlib || test -f stage1-lean
58101@endif zlib
58102@if lto-plugin
58103 @cd $(HOST_SUBDIR); [ -d stageautoprofile-lto-plugin ] || \
58104 mkdir stageautoprofile-lto-plugin; \
58105 mv stageautoprofile-lto-plugin lto-plugin; \
58106 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
58107@endif lto-plugin
58108@if libctf
58109 @cd $(HOST_SUBDIR); [ -d stageautoprofile-libctf ] || \
58110 mkdir stageautoprofile-libctf; \
58111 mv stageautoprofile-libctf libctf; \
58112 mv stage1-libctf prev-libctf || test -f stage1-lean
58113@endif libctf
58114 @[ -d stageautoprofile-$(TARGET_SUBDIR) ] || \
58115 mkdir stageautoprofile-$(TARGET_SUBDIR); \
58116 mv stageautoprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
58117 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
58118
58119stageautoprofile-end::
58120@if bfd
58121 @if test -d $(HOST_SUBDIR)/bfd; then \
58122 cd $(HOST_SUBDIR); mv bfd stageautoprofile-bfd; \
58123 mv prev-bfd stage1-bfd; : ; \
58124 fi
58125@endif bfd
58126@if opcodes
58127 @if test -d $(HOST_SUBDIR)/opcodes; then \
58128 cd $(HOST_SUBDIR); mv opcodes stageautoprofile-opcodes; \
58129 mv prev-opcodes stage1-opcodes; : ; \
58130 fi
58131@endif opcodes
58132@if binutils
58133 @if test -d $(HOST_SUBDIR)/binutils; then \
58134 cd $(HOST_SUBDIR); mv binutils stageautoprofile-binutils; \
58135 mv prev-binutils stage1-binutils; : ; \
58136 fi
58137@endif binutils
58138@if fixincludes
58139 @if test -d $(HOST_SUBDIR)/fixincludes; then \
58140 cd $(HOST_SUBDIR); mv fixincludes stageautoprofile-fixincludes; \
58141 mv prev-fixincludes stage1-fixincludes; : ; \
58142 fi
58143@endif fixincludes
58144@if gas
58145 @if test -d $(HOST_SUBDIR)/gas; then \
58146 cd $(HOST_SUBDIR); mv gas stageautoprofile-gas; \
58147 mv prev-gas stage1-gas; : ; \
58148 fi
58149@endif gas
58150@if gcc
58151 @if test -d $(HOST_SUBDIR)/gcc; then \
58152 cd $(HOST_SUBDIR); mv gcc stageautoprofile-gcc; \
58153 mv prev-gcc stage1-gcc; : ; \
58154 fi
58155@endif gcc
58156@if gmp
58157 @if test -d $(HOST_SUBDIR)/gmp; then \
58158 cd $(HOST_SUBDIR); mv gmp stageautoprofile-gmp; \
58159 mv prev-gmp stage1-gmp; : ; \
58160 fi
58161@endif gmp
58162@if mpfr
58163 @if test -d $(HOST_SUBDIR)/mpfr; then \
58164 cd $(HOST_SUBDIR); mv mpfr stageautoprofile-mpfr; \
58165 mv prev-mpfr stage1-mpfr; : ; \
58166 fi
58167@endif mpfr
58168@if mpc
58169 @if test -d $(HOST_SUBDIR)/mpc; then \
58170 cd $(HOST_SUBDIR); mv mpc stageautoprofile-mpc; \
58171 mv prev-mpc stage1-mpc; : ; \
58172 fi
58173@endif mpc
58174@if isl
58175 @if test -d $(HOST_SUBDIR)/isl; then \
58176 cd $(HOST_SUBDIR); mv isl stageautoprofile-isl; \
58177 mv prev-isl stage1-isl; : ; \
58178 fi
58179@endif isl
58180@if libelf
58181 @if test -d $(HOST_SUBDIR)/libelf; then \
58182 cd $(HOST_SUBDIR); mv libelf stageautoprofile-libelf; \
58183 mv prev-libelf stage1-libelf; : ; \
58184 fi
58185@endif libelf
58186@if gold
58187 @if test -d $(HOST_SUBDIR)/gold; then \
58188 cd $(HOST_SUBDIR); mv gold stageautoprofile-gold; \
58189 mv prev-gold stage1-gold; : ; \
58190 fi
58191@endif gold
58192@if intl
58193 @if test -d $(HOST_SUBDIR)/intl; then \
58194 cd $(HOST_SUBDIR); mv intl stageautoprofile-intl; \
58195 mv prev-intl stage1-intl; : ; \
58196 fi
58197@endif intl
58198@if ld
58199 @if test -d $(HOST_SUBDIR)/ld; then \
58200 cd $(HOST_SUBDIR); mv ld stageautoprofile-ld; \
58201 mv prev-ld stage1-ld; : ; \
58202 fi
58203@endif ld
58204@if libbacktrace
58205 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
58206 cd $(HOST_SUBDIR); mv libbacktrace stageautoprofile-libbacktrace; \
58207 mv prev-libbacktrace stage1-libbacktrace; : ; \
58208 fi
58209@endif libbacktrace
58210@if libcpp
58211 @if test -d $(HOST_SUBDIR)/libcpp; then \
58212 cd $(HOST_SUBDIR); mv libcpp stageautoprofile-libcpp; \
58213 mv prev-libcpp stage1-libcpp; : ; \
58214 fi
58215@endif libcpp
58216@if libdecnumber
58217 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
58218 cd $(HOST_SUBDIR); mv libdecnumber stageautoprofile-libdecnumber; \
58219 mv prev-libdecnumber stage1-libdecnumber; : ; \
58220 fi
58221@endif libdecnumber
58222@if libiberty
58223 @if test -d $(HOST_SUBDIR)/libiberty; then \
58224 cd $(HOST_SUBDIR); mv libiberty stageautoprofile-libiberty; \
58225 mv prev-libiberty stage1-libiberty; : ; \
58226 fi
58227@endif libiberty
58228@if libiberty-linker-plugin
58229 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
58230 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageautoprofile-libiberty-linker-plugin; \
58231 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
58232 fi
58233@endif libiberty-linker-plugin
58234@if libiconv
58235 @if test -d $(HOST_SUBDIR)/libiconv; then \
58236 cd $(HOST_SUBDIR); mv libiconv stageautoprofile-libiconv; \
58237 mv prev-libiconv stage1-libiconv; : ; \
58238 fi
58239@endif libiconv
58240@if zlib
58241 @if test -d $(HOST_SUBDIR)/zlib; then \
58242 cd $(HOST_SUBDIR); mv zlib stageautoprofile-zlib; \
58243 mv prev-zlib stage1-zlib; : ; \
58244 fi
58245@endif zlib
58246@if lto-plugin
58247 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
58248 cd $(HOST_SUBDIR); mv lto-plugin stageautoprofile-lto-plugin; \
58249 mv prev-lto-plugin stage1-lto-plugin; : ; \
58250 fi
58251@endif lto-plugin
58252@if libctf
58253 @if test -d $(HOST_SUBDIR)/libctf; then \
58254 cd $(HOST_SUBDIR); mv libctf stageautoprofile-libctf; \
58255 mv prev-libctf stage1-libctf; : ; \
58256 fi
58257@endif libctf
58258 @if test -d $(TARGET_SUBDIR); then \
58259 mv $(TARGET_SUBDIR) stageautoprofile-$(TARGET_SUBDIR); \
58260 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
58261 fi
58262 rm -f stage_current
58263
58264# Bubble a bug fix through all the stages up to stage autoprofile. They are
58265# remade, but not reconfigured. The next stage (if any) will not be
58266# reconfigured either.
58267.PHONY: stageautoprofile-bubble
58268stageautoprofile-bubble:: stage1-bubble
58269 @r=`${PWD_COMMAND}`; export r; \
58270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
58271 if test -f stageautoprofile-lean || test -f stage1-lean ; then \
58272 echo Skipping rebuild of stageautoprofile; \
58273 else \
58274 $(MAKE) stageautoprofile-start; \
58275 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageautoprofile; \
58276 fi
58277
58278.PHONY: all-stageautoprofile clean-stageautoprofile
58279do-clean: clean-stageautoprofile
58280
58281# FIXME: Will not need to be conditional when toplevel bootstrap is the
58282# only possibility, but now it conflicts with no-bootstrap rules
58283@if gcc-bootstrap
58284
58285
58286
58287
58288# Rules to wipe a stage and all the following ones, also used for cleanstrap
58289distclean-stage1:: distclean-stageautoprofile
58290.PHONY: distclean-stageautoprofile
58291distclean-stageautoprofile::
58292 @: $(MAKE); $(stage)
58293 @test "`cat stage_last`" != stageautoprofile || rm -f stage_last
58294 rm -rf stageautoprofile-*
58295
58296
58297@endif gcc-bootstrap
58298
58299
58300.PHONY: stageautofeedback-start stageautofeedback-end
58301
58302stageautofeedback-start::
58303 @: $(MAKE); $(stage); \
58304 echo stageautofeedback > stage_current; \
58305 echo stageautofeedback > stage_last; \
58306 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
58307@if bfd
58308 @cd $(HOST_SUBDIR); [ -d stageautofeedback-bfd ] || \
58309 mkdir stageautofeedback-bfd; \
58310 mv stageautofeedback-bfd bfd; \
58311 mv stageautoprofile-bfd prev-bfd || test -f stageautoprofile-lean
58312@endif bfd
58313@if opcodes
58314 @cd $(HOST_SUBDIR); [ -d stageautofeedback-opcodes ] || \
58315 mkdir stageautofeedback-opcodes; \
58316 mv stageautofeedback-opcodes opcodes; \
58317 mv stageautoprofile-opcodes prev-opcodes || test -f stageautoprofile-lean
58318@endif opcodes
58319@if binutils
58320 @cd $(HOST_SUBDIR); [ -d stageautofeedback-binutils ] || \
58321 mkdir stageautofeedback-binutils; \
58322 mv stageautofeedback-binutils binutils; \
58323 mv stageautoprofile-binutils prev-binutils || test -f stageautoprofile-lean
58324@endif binutils
58325@if fixincludes
58326 @cd $(HOST_SUBDIR); [ -d stageautofeedback-fixincludes ] || \
58327 mkdir stageautofeedback-fixincludes; \
58328 mv stageautofeedback-fixincludes fixincludes; \
58329 mv stageautoprofile-fixincludes prev-fixincludes || test -f stageautoprofile-lean
58330@endif fixincludes
58331@if gas
58332 @cd $(HOST_SUBDIR); [ -d stageautofeedback-gas ] || \
58333 mkdir stageautofeedback-gas; \
58334 mv stageautofeedback-gas gas; \
58335 mv stageautoprofile-gas prev-gas || test -f stageautoprofile-lean
58336@endif gas
58337@if gcc
58338 @cd $(HOST_SUBDIR); [ -d stageautofeedback-gcc ] || \
58339 mkdir stageautofeedback-gcc; \
58340 mv stageautofeedback-gcc gcc; \
58341 mv stageautoprofile-gcc prev-gcc || test -f stageautoprofile-lean
58342@endif gcc
58343@if gmp
58344 @cd $(HOST_SUBDIR); [ -d stageautofeedback-gmp ] || \
58345 mkdir stageautofeedback-gmp; \
58346 mv stageautofeedback-gmp gmp; \
58347 mv stageautoprofile-gmp prev-gmp || test -f stageautoprofile-lean
58348@endif gmp
58349@if mpfr
58350 @cd $(HOST_SUBDIR); [ -d stageautofeedback-mpfr ] || \
58351 mkdir stageautofeedback-mpfr; \
58352 mv stageautofeedback-mpfr mpfr; \
58353 mv stageautoprofile-mpfr prev-mpfr || test -f stageautoprofile-lean
58354@endif mpfr
58355@if mpc
58356 @cd $(HOST_SUBDIR); [ -d stageautofeedback-mpc ] || \
58357 mkdir stageautofeedback-mpc; \
58358 mv stageautofeedback-mpc mpc; \
58359 mv stageautoprofile-mpc prev-mpc || test -f stageautoprofile-lean
58360@endif mpc
58361@if isl
58362 @cd $(HOST_SUBDIR); [ -d stageautofeedback-isl ] || \
58363 mkdir stageautofeedback-isl; \
58364 mv stageautofeedback-isl isl; \
58365 mv stageautoprofile-isl prev-isl || test -f stageautoprofile-lean
58366@endif isl
58367@if libelf
58368 @cd $(HOST_SUBDIR); [ -d stageautofeedback-libelf ] || \
58369 mkdir stageautofeedback-libelf; \
58370 mv stageautofeedback-libelf libelf; \
58371 mv stageautoprofile-libelf prev-libelf || test -f stageautoprofile-lean
58372@endif libelf
58373@if gold
58374 @cd $(HOST_SUBDIR); [ -d stageautofeedback-gold ] || \
58375 mkdir stageautofeedback-gold; \
58376 mv stageautofeedback-gold gold; \
58377 mv stageautoprofile-gold prev-gold || test -f stageautoprofile-lean
58378@endif gold
58379@if intl
58380 @cd $(HOST_SUBDIR); [ -d stageautofeedback-intl ] || \
58381 mkdir stageautofeedback-intl; \
58382 mv stageautofeedback-intl intl; \
58383 mv stageautoprofile-intl prev-intl || test -f stageautoprofile-lean
58384@endif intl
58385@if ld
58386 @cd $(HOST_SUBDIR); [ -d stageautofeedback-ld ] || \
58387 mkdir stageautofeedback-ld; \
58388 mv stageautofeedback-ld ld; \
58389 mv stageautoprofile-ld prev-ld || test -f stageautoprofile-lean
58390@endif ld
58391@if libbacktrace
58392 @cd $(HOST_SUBDIR); [ -d stageautofeedback-libbacktrace ] || \
58393 mkdir stageautofeedback-libbacktrace; \
58394 mv stageautofeedback-libbacktrace libbacktrace; \
58395 mv stageautoprofile-libbacktrace prev-libbacktrace || test -f stageautoprofile-lean
58396@endif libbacktrace
58397@if libcpp
58398 @cd $(HOST_SUBDIR); [ -d stageautofeedback-libcpp ] || \
58399 mkdir stageautofeedback-libcpp; \
58400 mv stageautofeedback-libcpp libcpp; \
58401 mv stageautoprofile-libcpp prev-libcpp || test -f stageautoprofile-lean
58402@endif libcpp
58403@if libdecnumber
58404 @cd $(HOST_SUBDIR); [ -d stageautofeedback-libdecnumber ] || \
58405 mkdir stageautofeedback-libdecnumber; \
58406 mv stageautofeedback-libdecnumber libdecnumber; \
58407 mv stageautoprofile-libdecnumber prev-libdecnumber || test -f stageautoprofile-lean
58408@endif libdecnumber
58409@if libiberty
58410 @cd $(HOST_SUBDIR); [ -d stageautofeedback-libiberty ] || \
58411 mkdir stageautofeedback-libiberty; \
58412 mv stageautofeedback-libiberty libiberty; \
58413 mv stageautoprofile-libiberty prev-libiberty || test -f stageautoprofile-lean
58414@endif libiberty
58415@if libiberty-linker-plugin
58416 @cd $(HOST_SUBDIR); [ -d stageautofeedback-libiberty-linker-plugin ] || \
58417 mkdir stageautofeedback-libiberty-linker-plugin; \
58418 mv stageautofeedback-libiberty-linker-plugin libiberty-linker-plugin; \
58419 mv stageautoprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageautoprofile-lean
58420@endif libiberty-linker-plugin
58421@if libiconv
58422 @cd $(HOST_SUBDIR); [ -d stageautofeedback-libiconv ] || \
58423 mkdir stageautofeedback-libiconv; \
58424 mv stageautofeedback-libiconv libiconv; \
58425 mv stageautoprofile-libiconv prev-libiconv || test -f stageautoprofile-lean
58426@endif libiconv
58427@if zlib
58428 @cd $(HOST_SUBDIR); [ -d stageautofeedback-zlib ] || \
58429 mkdir stageautofeedback-zlib; \
58430 mv stageautofeedback-zlib zlib; \
58431 mv stageautoprofile-zlib prev-zlib || test -f stageautoprofile-lean
58432@endif zlib
58433@if lto-plugin
58434 @cd $(HOST_SUBDIR); [ -d stageautofeedback-lto-plugin ] || \
58435 mkdir stageautofeedback-lto-plugin; \
58436 mv stageautofeedback-lto-plugin lto-plugin; \
58437 mv stageautoprofile-lto-plugin prev-lto-plugin || test -f stageautoprofile-lean
58438@endif lto-plugin
58439@if libctf
58440 @cd $(HOST_SUBDIR); [ -d stageautofeedback-libctf ] || \
58441 mkdir stageautofeedback-libctf; \
58442 mv stageautofeedback-libctf libctf; \
58443 mv stageautoprofile-libctf prev-libctf || test -f stageautoprofile-lean
58444@endif libctf
58445 @[ -d stageautofeedback-$(TARGET_SUBDIR) ] || \
58446 mkdir stageautofeedback-$(TARGET_SUBDIR); \
58447 mv stageautofeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
58448 mv stageautoprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageautoprofile-lean
58449
58450stageautofeedback-end::
58451@if bfd
58452 @if test -d $(HOST_SUBDIR)/bfd; then \
58453 cd $(HOST_SUBDIR); mv bfd stageautofeedback-bfd; \
58454 mv prev-bfd stageautoprofile-bfd; : ; \
58455 fi
58456@endif bfd
58457@if opcodes
58458 @if test -d $(HOST_SUBDIR)/opcodes; then \
58459 cd $(HOST_SUBDIR); mv opcodes stageautofeedback-opcodes; \
58460 mv prev-opcodes stageautoprofile-opcodes; : ; \
58461 fi
58462@endif opcodes
58463@if binutils
58464 @if test -d $(HOST_SUBDIR)/binutils; then \
58465 cd $(HOST_SUBDIR); mv binutils stageautofeedback-binutils; \
58466 mv prev-binutils stageautoprofile-binutils; : ; \
58467 fi
58468@endif binutils
58469@if fixincludes
58470 @if test -d $(HOST_SUBDIR)/fixincludes; then \
58471 cd $(HOST_SUBDIR); mv fixincludes stageautofeedback-fixincludes; \
58472 mv prev-fixincludes stageautoprofile-fixincludes; : ; \
58473 fi
58474@endif fixincludes
58475@if gas
58476 @if test -d $(HOST_SUBDIR)/gas; then \
58477 cd $(HOST_SUBDIR); mv gas stageautofeedback-gas; \
58478 mv prev-gas stageautoprofile-gas; : ; \
58479 fi
58480@endif gas
58481@if gcc
58482 @if test -d $(HOST_SUBDIR)/gcc; then \
58483 cd $(HOST_SUBDIR); mv gcc stageautofeedback-gcc; \
58484 mv prev-gcc stageautoprofile-gcc; : ; \
58485 fi
58486@endif gcc
58487@if gmp
58488 @if test -d $(HOST_SUBDIR)/gmp; then \
58489 cd $(HOST_SUBDIR); mv gmp stageautofeedback-gmp; \
58490 mv prev-gmp stageautoprofile-gmp; : ; \
58491 fi
58492@endif gmp
58493@if mpfr
58494 @if test -d $(HOST_SUBDIR)/mpfr; then \
58495 cd $(HOST_SUBDIR); mv mpfr stageautofeedback-mpfr; \
58496 mv prev-mpfr stageautoprofile-mpfr; : ; \
58497 fi
58498@endif mpfr
58499@if mpc
58500 @if test -d $(HOST_SUBDIR)/mpc; then \
58501 cd $(HOST_SUBDIR); mv mpc stageautofeedback-mpc; \
58502 mv prev-mpc stageautoprofile-mpc; : ; \
58503 fi
58504@endif mpc
58505@if isl
58506 @if test -d $(HOST_SUBDIR)/isl; then \
58507 cd $(HOST_SUBDIR); mv isl stageautofeedback-isl; \
58508 mv prev-isl stageautoprofile-isl; : ; \
58509 fi
58510@endif isl
58511@if libelf
58512 @if test -d $(HOST_SUBDIR)/libelf; then \
58513 cd $(HOST_SUBDIR); mv libelf stageautofeedback-libelf; \
58514 mv prev-libelf stageautoprofile-libelf; : ; \
58515 fi
58516@endif libelf
58517@if gold
58518 @if test -d $(HOST_SUBDIR)/gold; then \
58519 cd $(HOST_SUBDIR); mv gold stageautofeedback-gold; \
58520 mv prev-gold stageautoprofile-gold; : ; \
58521 fi
58522@endif gold
58523@if intl
58524 @if test -d $(HOST_SUBDIR)/intl; then \
58525 cd $(HOST_SUBDIR); mv intl stageautofeedback-intl; \
58526 mv prev-intl stageautoprofile-intl; : ; \
58527 fi
58528@endif intl
58529@if ld
58530 @if test -d $(HOST_SUBDIR)/ld; then \
58531 cd $(HOST_SUBDIR); mv ld stageautofeedback-ld; \
58532 mv prev-ld stageautoprofile-ld; : ; \
58533 fi
58534@endif ld
58535@if libbacktrace
58536 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
58537 cd $(HOST_SUBDIR); mv libbacktrace stageautofeedback-libbacktrace; \
58538 mv prev-libbacktrace stageautoprofile-libbacktrace; : ; \
58539 fi
58540@endif libbacktrace
58541@if libcpp
58542 @if test -d $(HOST_SUBDIR)/libcpp; then \
58543 cd $(HOST_SUBDIR); mv libcpp stageautofeedback-libcpp; \
58544 mv prev-libcpp stageautoprofile-libcpp; : ; \
58545 fi
58546@endif libcpp
58547@if libdecnumber
58548 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
58549 cd $(HOST_SUBDIR); mv libdecnumber stageautofeedback-libdecnumber; \
58550 mv prev-libdecnumber stageautoprofile-libdecnumber; : ; \
58551 fi
58552@endif libdecnumber
58553@if libiberty
58554 @if test -d $(HOST_SUBDIR)/libiberty; then \
58555 cd $(HOST_SUBDIR); mv libiberty stageautofeedback-libiberty; \
58556 mv prev-libiberty stageautoprofile-libiberty; : ; \
58557 fi
58558@endif libiberty
58559@if libiberty-linker-plugin
58560 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
58561 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageautofeedback-libiberty-linker-plugin; \
58562 mv prev-libiberty-linker-plugin stageautoprofile-libiberty-linker-plugin; : ; \
58563 fi
58564@endif libiberty-linker-plugin
58565@if libiconv
58566 @if test -d $(HOST_SUBDIR)/libiconv; then \
58567 cd $(HOST_SUBDIR); mv libiconv stageautofeedback-libiconv; \
58568 mv prev-libiconv stageautoprofile-libiconv; : ; \
58569 fi
58570@endif libiconv
58571@if zlib
58572 @if test -d $(HOST_SUBDIR)/zlib; then \
58573 cd $(HOST_SUBDIR); mv zlib stageautofeedback-zlib; \
58574 mv prev-zlib stageautoprofile-zlib; : ; \
58575 fi
58576@endif zlib
58577@if lto-plugin
58578 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
58579 cd $(HOST_SUBDIR); mv lto-plugin stageautofeedback-lto-plugin; \
58580 mv prev-lto-plugin stageautoprofile-lto-plugin; : ; \
58581 fi
58582@endif lto-plugin
58583@if libctf
58584 @if test -d $(HOST_SUBDIR)/libctf; then \
58585 cd $(HOST_SUBDIR); mv libctf stageautofeedback-libctf; \
58586 mv prev-libctf stageautoprofile-libctf; : ; \
58587 fi
58588@endif libctf
58589 @if test -d $(TARGET_SUBDIR); then \
58590 mv $(TARGET_SUBDIR) stageautofeedback-$(TARGET_SUBDIR); \
58591 mv prev-$(TARGET_SUBDIR) stageautoprofile-$(TARGET_SUBDIR); : ; \
58592 fi
58593 rm -f stage_current
58594
58595# Bubble a bug fix through all the stages up to stage autofeedback. They are
58596# remade, but not reconfigured. The next stage (if any) will not be
58597# reconfigured either.
58598.PHONY: stageautofeedback-bubble
58599stageautofeedback-bubble:: stageautoprofile-bubble
58600 @r=`${PWD_COMMAND}`; export r; \
58601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
58602 if test -f stageautofeedback-lean || test -f stageautoprofile-lean ; then \
58603 echo Skipping rebuild of stageautofeedback; \
58604 else \
58605 $(MAKE) stageautofeedback-start; \
58606 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageautofeedback; \
58607 fi
58608
58609.PHONY: all-stageautofeedback clean-stageautofeedback
58610do-clean: clean-stageautofeedback
58611
58612# FIXME: Will not need to be conditional when toplevel bootstrap is the
58613# only possibility, but now it conflicts with no-bootstrap rules
58614@if gcc-bootstrap
58615
58616
58617
58618.PHONY: autoprofiledbootstrap autoprofiledbootstrap-lean
58619autoprofiledbootstrap:
58620 echo stageautofeedback > stage_final
58621 @r=`${PWD_COMMAND}`; export r; \
58622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
58623 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stageautofeedback-bubble
58624 @: $(MAKE); $(unstage)
58625 @r=`${PWD_COMMAND}`; export r; \
58626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
58627 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
58628 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
58629
58630autoprofiledbootstrap-lean:
58631 echo stageautofeedback > stage_final
58632 @r=`${PWD_COMMAND}`; export r; \
58633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
58634 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stageautofeedback-bubble
58635 @: $(MAKE); $(unstage)
58636 @r=`${PWD_COMMAND}`; export r; \
58637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
58638 TFLAGS="$(STAGEautofeedback_TFLAGS)"; \
58639 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
58640
58641
58642# Rules to wipe a stage and all the following ones, also used for cleanstrap
58643distclean-stageautoprofile:: distclean-stageautofeedback
58644.PHONY: distclean-stageautofeedback
58645distclean-stageautofeedback::
58646 @: $(MAKE); $(stage)
58647 @test "`cat stage_last`" != stageautofeedback || rm -f stage_last
58648 rm -rf stageautofeedback-*
58649
58650
58651@endif gcc-bootstrap
58652
58653
656fdd47 58654
7d329e61
PB
58655stageprofile-end::
58656 $(MAKE) distclean-stagefeedback
656fdd47 58657
7d329e61 58658stagefeedback-start::
656fdd47
PB
58659 @r=`${PWD_COMMAND}`; export r; \
58660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 58661 for i in prev-*; do \
22121df0 58662 j=`echo $$i | sed s/^prev-//`; \
7d329e61 58663 cd $$r/$$i && \
22121df0
L
58664 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
58665 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 58666 done
b8908782 58667
0df3d27f 58668@if gcc-bootstrap
0df3d27f 58669do-distclean: distclean-stage1
c52c6897
PB
58670
58671# Provide a GCC build when we're building target libraries. This does
58672# not work as a dependency, just as the minimum necessary to avoid errors.
58673stage_last:
314b2e66
AS
58674 @r=`${PWD_COMMAND}`; export r; \
58675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 58676 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 58677
4f0ef2d8
CD
58678# Same as unstage, but not phony and defaulting to stage1-start. We place
58679# it in the dependency so that for example `make -j3 all-gcc' works.
58680stage_current:
58681 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
58682
c52c6897 58683.PHONY: restrap
266df637 58684restrap::
c52c6897 58685 @: $(MAKE); $(stage)
f948b2de 58686 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagetrain-* stagefeedback-* stageautoprofile-* stageautofeedback-*
266df637 58687restrap:: all
c380fdd8 58688@endif gcc-bootstrap
c52c6897 58689
ae831be5
NN
58690# --------------------------------------
58691# Dependencies between different modules
58692# --------------------------------------
252b5132 58693
9e6ce191 58694# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 58695@if gcc-bootstrap
e8a5fa9c
RW
58696configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
58697configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
58698configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
58699configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
58700configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
f948b2de 58701configure-stagetrain-target-libstdc++-v3: maybe-all-stagetrain-gcc
e8a5fa9c 58702configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
f948b2de
NC
58703configure-stageautoprofile-target-libstdc++-v3: maybe-all-stageautoprofile-gcc
58704configure-stageautofeedback-target-libstdc++-v3: maybe-all-stageautofeedback-gcc
5eb08693
L
58705configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
58706configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
58707configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
58708configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
58709configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
f948b2de 58710configure-stagetrain-target-libsanitizer: maybe-all-stagetrain-gcc
5eb08693 58711configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
f948b2de
NC
58712configure-stageautoprofile-target-libsanitizer: maybe-all-stageautoprofile-gcc
58713configure-stageautofeedback-target-libsanitizer: maybe-all-stageautofeedback-gcc
1b6c0831
L
58714configure-stage1-target-libmpx: maybe-all-stage1-gcc
58715configure-stage2-target-libmpx: maybe-all-stage2-gcc
58716configure-stage3-target-libmpx: maybe-all-stage3-gcc
58717configure-stage4-target-libmpx: maybe-all-stage4-gcc
58718configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
f948b2de 58719configure-stagetrain-target-libmpx: maybe-all-stagetrain-gcc
1b6c0831 58720configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
f948b2de
NC
58721configure-stageautoprofile-target-libmpx: maybe-all-stageautoprofile-gcc
58722configure-stageautofeedback-target-libmpx: maybe-all-stageautofeedback-gcc
95e43135
JBG
58723configure-stage1-target-libvtv: maybe-all-stage1-gcc
58724configure-stage2-target-libvtv: maybe-all-stage2-gcc
58725configure-stage3-target-libvtv: maybe-all-stage3-gcc
58726configure-stage4-target-libvtv: maybe-all-stage4-gcc
58727configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
f948b2de 58728configure-stagetrain-target-libvtv: maybe-all-stagetrain-gcc
95e43135 58729configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
f948b2de
NC
58730configure-stageautoprofile-target-libvtv: maybe-all-stageautoprofile-gcc
58731configure-stageautofeedback-target-libvtv: maybe-all-stageautofeedback-gcc
1b6c0831 58732configure-target-liboffloadmic: stage_last
c52c6897 58733configure-target-libssp: stage_last
c52c6897 58734configure-target-newlib: stage_last
6aa8ef82
DJ
58735configure-stage1-target-libgcc: maybe-all-stage1-gcc
58736configure-stage2-target-libgcc: maybe-all-stage2-gcc
58737configure-stage3-target-libgcc: maybe-all-stage3-gcc
58738configure-stage4-target-libgcc: maybe-all-stage4-gcc
58739configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
f948b2de 58740configure-stagetrain-target-libgcc: maybe-all-stagetrain-gcc
6aa8ef82 58741configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
f948b2de
NC
58742configure-stageautoprofile-target-libgcc: maybe-all-stageautoprofile-gcc
58743configure-stageautofeedback-target-libgcc: maybe-all-stageautofeedback-gcc
2bf680c4 58744configure-target-libbacktrace: stage_last
e552509b 58745configure-target-libquadmath: stage_last
c52c6897
PB
58746configure-target-libgfortran: stage_last
58747configure-target-libobjc: stage_last
e552509b 58748configure-target-libgo: stage_last
f948b2de
NC
58749configure-target-libhsail-rt: stage_last
58750configure-target-libphobos: stage_last
c52c6897
PB
58751configure-target-libtermcap: stage_last
58752configure-target-winsup: stage_last
58753configure-target-libgloss: stage_last
c52c6897 58754configure-target-libffi: stage_last
c52c6897 58755configure-target-zlib: stage_last
c52c6897
PB
58756configure-target-rda: stage_last
58757configure-target-libada: stage_last
911e63d0
JR
58758configure-stage1-target-libgomp: maybe-all-stage1-gcc
58759configure-stage2-target-libgomp: maybe-all-stage2-gcc
58760configure-stage3-target-libgomp: maybe-all-stage3-gcc
58761configure-stage4-target-libgomp: maybe-all-stage4-gcc
58762configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
f948b2de 58763configure-stagetrain-target-libgomp: maybe-all-stagetrain-gcc
911e63d0 58764configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
f948b2de
NC
58765configure-stageautoprofile-target-libgomp: maybe-all-stageautoprofile-gcc
58766configure-stageautofeedback-target-libgomp: maybe-all-stageautofeedback-gcc
7ec59b9e
L
58767configure-target-libitm: stage_last
58768configure-target-libatomic: stage_last
c52c6897 58769@endif gcc-bootstrap
9e6ce191 58770
c52c6897 58771@if gcc-no-bootstrap
9e6ce191 58772configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 58773configure-target-libsanitizer: maybe-all-gcc
1b6c0831 58774configure-target-libmpx: maybe-all-gcc
95e43135 58775configure-target-libvtv: maybe-all-gcc
1b6c0831 58776configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 58777configure-target-libssp: maybe-all-gcc
9e6ce191 58778configure-target-newlib: maybe-all-gcc
6aa8ef82 58779configure-target-libgcc: maybe-all-gcc
2bf680c4 58780configure-target-libbacktrace: maybe-all-gcc
e552509b 58781configure-target-libquadmath: maybe-all-gcc
9e6ce191 58782configure-target-libgfortran: maybe-all-gcc
9e6ce191 58783configure-target-libobjc: maybe-all-gcc
e552509b 58784configure-target-libgo: maybe-all-gcc
f948b2de
NC
58785configure-target-libhsail-rt: maybe-all-gcc
58786configure-target-libphobos: maybe-all-gcc
9e6ce191 58787configure-target-libtermcap: maybe-all-gcc
9e6ce191 58788configure-target-winsup: maybe-all-gcc
9e6ce191 58789configure-target-libgloss: maybe-all-gcc
9e6ce191 58790configure-target-libffi: maybe-all-gcc
9e6ce191 58791configure-target-zlib: maybe-all-gcc
9e6ce191 58792configure-target-rda: maybe-all-gcc
9e6ce191 58793configure-target-libada: maybe-all-gcc
b3ded179 58794configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
58795configure-target-libitm: maybe-all-gcc
58796configure-target-libatomic: maybe-all-gcc
c52c6897 58797@endif gcc-no-bootstrap
b3ded179 58798
9e6ce191 58799
ae831be5
NN
58800# There are two types of dependencies here: 'hard' dependencies, where one
58801# module simply won't build without the other; and 'soft' dependencies, where
58802# if the depended-on module is missing, the depending module will do without
58803# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 58804# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
58805# it's safer to use a soft dependency.
58806
9e6ce191
PB
58807
58808
58809
58810
c60fe18b 58811
9e6ce191
PB
58812# With all the machinery above in place, it is pretty easy to generate
58813# dependencies. Host dependencies are a bit more complex because we have
58814# to check for bootstrap/prebootstrap dependencies. To resolve
58815# prebootstrap dependencies, prebootstrap modules are gathered in
58816# a hash table.
6a9cf61e
PB
58817all-build-bison: maybe-all-build-texinfo
58818all-build-flex: maybe-all-build-texinfo
9e6ce191 58819all-build-flex: maybe-all-build-bison
9e6ce191 58820all-build-flex: maybe-all-build-m4
6a9cf61e 58821all-build-libiberty: maybe-all-build-texinfo
9e6ce191 58822all-build-m4: maybe-all-build-texinfo
ee025550 58823all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 58824all-build-libcpp: maybe-all-build-libiberty
9e6ce191 58825configure-gcc: maybe-configure-intl
9e6ce191
PB
58826configure-stage1-gcc: maybe-configure-stage1-intl
58827configure-stage2-gcc: maybe-configure-stage2-intl
58828configure-stage3-gcc: maybe-configure-stage3-intl
58829configure-stage4-gcc: maybe-configure-stage4-intl
58830configure-stageprofile-gcc: maybe-configure-stageprofile-intl
f948b2de 58831configure-stagetrain-gcc: maybe-configure-stagetrain-intl
9e6ce191 58832configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
f948b2de
NC
58833configure-stageautoprofile-gcc: maybe-configure-stageautoprofile-intl
58834configure-stageautofeedback-gcc: maybe-configure-stageautofeedback-intl
861ea9c8 58835configure-gcc: maybe-all-gmp
861ea9c8
L
58836configure-stage1-gcc: maybe-all-stage1-gmp
58837configure-stage2-gcc: maybe-all-stage2-gmp
58838configure-stage3-gcc: maybe-all-stage3-gmp
58839configure-stage4-gcc: maybe-all-stage4-gmp
58840configure-stageprofile-gcc: maybe-all-stageprofile-gmp
f948b2de 58841configure-stagetrain-gcc: maybe-all-stagetrain-gmp
861ea9c8 58842configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
f948b2de
NC
58843configure-stageautoprofile-gcc: maybe-all-stageautoprofile-gmp
58844configure-stageautofeedback-gcc: maybe-all-stageautofeedback-gmp
1b6c0831 58845configure-gcc: maybe-all-mpfr
1b6c0831
L
58846configure-stage1-gcc: maybe-all-stage1-mpfr
58847configure-stage2-gcc: maybe-all-stage2-mpfr
58848configure-stage3-gcc: maybe-all-stage3-mpfr
58849configure-stage4-gcc: maybe-all-stage4-mpfr
58850configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
f948b2de 58851configure-stagetrain-gcc: maybe-all-stagetrain-mpfr
1b6c0831 58852configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
f948b2de
NC
58853configure-stageautoprofile-gcc: maybe-all-stageautoprofile-mpfr
58854configure-stageautofeedback-gcc: maybe-all-stageautofeedback-mpfr
1b6c0831 58855configure-gcc: maybe-all-mpc
1b6c0831
L
58856configure-stage1-gcc: maybe-all-stage1-mpc
58857configure-stage2-gcc: maybe-all-stage2-mpc
58858configure-stage3-gcc: maybe-all-stage3-mpc
58859configure-stage4-gcc: maybe-all-stage4-mpc
58860configure-stageprofile-gcc: maybe-all-stageprofile-mpc
f948b2de 58861configure-stagetrain-gcc: maybe-all-stagetrain-mpc
1b6c0831 58862configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
f948b2de
NC
58863configure-stageautoprofile-gcc: maybe-all-stageautoprofile-mpc
58864configure-stageautofeedback-gcc: maybe-all-stageautofeedback-mpc
1b6c0831 58865configure-gcc: maybe-all-isl
1b6c0831
L
58866configure-stage1-gcc: maybe-all-stage1-isl
58867configure-stage2-gcc: maybe-all-stage2-isl
58868configure-stage3-gcc: maybe-all-stage3-isl
58869configure-stage4-gcc: maybe-all-stage4-isl
58870configure-stageprofile-gcc: maybe-all-stageprofile-isl
f948b2de 58871configure-stagetrain-gcc: maybe-all-stagetrain-isl
1b6c0831 58872configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
f948b2de
NC
58873configure-stageautoprofile-gcc: maybe-all-stageautoprofile-isl
58874configure-stageautofeedback-gcc: maybe-all-stageautofeedback-isl
8d8eef9a 58875configure-gcc: maybe-all-lto-plugin
8d8eef9a
RW
58876configure-stage1-gcc: maybe-all-stage1-lto-plugin
58877configure-stage2-gcc: maybe-all-stage2-lto-plugin
58878configure-stage3-gcc: maybe-all-stage3-lto-plugin
58879configure-stage4-gcc: maybe-all-stage4-lto-plugin
58880configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
f948b2de 58881configure-stagetrain-gcc: maybe-all-stagetrain-lto-plugin
8d8eef9a 58882configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
f948b2de
NC
58883configure-stageautoprofile-gcc: maybe-all-stageautoprofile-lto-plugin
58884configure-stageautofeedback-gcc: maybe-all-stageautofeedback-lto-plugin
c60fe18b 58885configure-gcc: maybe-all-binutils
c60fe18b
PB
58886configure-stage1-gcc: maybe-all-stage1-binutils
58887configure-stage2-gcc: maybe-all-stage2-binutils
58888configure-stage3-gcc: maybe-all-stage3-binutils
58889configure-stage4-gcc: maybe-all-stage4-binutils
58890configure-stageprofile-gcc: maybe-all-stageprofile-binutils
f948b2de 58891configure-stagetrain-gcc: maybe-all-stagetrain-binutils
c60fe18b 58892configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
f948b2de
NC
58893configure-stageautoprofile-gcc: maybe-all-stageautoprofile-binutils
58894configure-stageautofeedback-gcc: maybe-all-stageautofeedback-binutils
c60fe18b 58895configure-gcc: maybe-all-gas
c60fe18b
PB
58896configure-stage1-gcc: maybe-all-stage1-gas
58897configure-stage2-gcc: maybe-all-stage2-gas
58898configure-stage3-gcc: maybe-all-stage3-gas
58899configure-stage4-gcc: maybe-all-stage4-gas
58900configure-stageprofile-gcc: maybe-all-stageprofile-gas
f948b2de 58901configure-stagetrain-gcc: maybe-all-stagetrain-gas
c60fe18b 58902configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
f948b2de
NC
58903configure-stageautoprofile-gcc: maybe-all-stageautoprofile-gas
58904configure-stageautofeedback-gcc: maybe-all-stageautofeedback-gas
c60fe18b 58905configure-gcc: maybe-all-ld
c60fe18b
PB
58906configure-stage1-gcc: maybe-all-stage1-ld
58907configure-stage2-gcc: maybe-all-stage2-ld
58908configure-stage3-gcc: maybe-all-stage3-ld
58909configure-stage4-gcc: maybe-all-stage4-ld
58910configure-stageprofile-gcc: maybe-all-stageprofile-ld
f948b2de 58911configure-stagetrain-gcc: maybe-all-stagetrain-ld
c60fe18b 58912configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
f948b2de
NC
58913configure-stageautoprofile-gcc: maybe-all-stageautoprofile-ld
58914configure-stageautofeedback-gcc: maybe-all-stageautofeedback-ld
93f9b408 58915configure-gcc: maybe-all-gold
93f9b408
ILT
58916configure-stage1-gcc: maybe-all-stage1-gold
58917configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 58918configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
58919configure-stage4-gcc: maybe-all-stage4-gold
58920configure-stageprofile-gcc: maybe-all-stageprofile-gold
f948b2de 58921configure-stagetrain-gcc: maybe-all-stagetrain-gold
93f9b408 58922configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
f948b2de
NC
58923configure-stageautoprofile-gcc: maybe-all-stageautoprofile-gold
58924configure-stageautofeedback-gcc: maybe-all-stageautofeedback-gold
7530c480 58925configure-gcc: maybe-all-libelf
7530c480
AO
58926configure-stage1-gcc: maybe-all-stage1-libelf
58927configure-stage2-gcc: maybe-all-stage2-libelf
58928configure-stage3-gcc: maybe-all-stage3-libelf
58929configure-stage4-gcc: maybe-all-stage4-libelf
58930configure-stageprofile-gcc: maybe-all-stageprofile-libelf
f948b2de 58931configure-stagetrain-gcc: maybe-all-stagetrain-libelf
7530c480 58932configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
f948b2de
NC
58933configure-stageautoprofile-gcc: maybe-all-stageautoprofile-libelf
58934configure-stageautofeedback-gcc: maybe-all-stageautofeedback-libelf
016a3251 58935configure-gcc: maybe-all-libiconv
016a3251
DD
58936configure-stage1-gcc: maybe-all-stage1-libiconv
58937configure-stage2-gcc: maybe-all-stage2-libiconv
58938configure-stage3-gcc: maybe-all-stage3-libiconv
58939configure-stage4-gcc: maybe-all-stage4-libiconv
58940configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
f948b2de 58941configure-stagetrain-gcc: maybe-all-stagetrain-libiconv
016a3251 58942configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
f948b2de
NC
58943configure-stageautoprofile-gcc: maybe-all-stageautoprofile-libiconv
58944configure-stageautofeedback-gcc: maybe-all-stageautofeedback-libiconv
9e6ce191 58945all-gcc: all-libiberty
9e6ce191
PB
58946all-stage1-gcc: all-stage1-libiberty
58947all-stage2-gcc: all-stage2-libiberty
58948all-stage3-gcc: all-stage3-libiberty
58949all-stage4-gcc: all-stage4-libiberty
58950all-stageprofile-gcc: all-stageprofile-libiberty
f948b2de 58951all-stagetrain-gcc: all-stagetrain-libiberty
9e6ce191 58952all-stagefeedback-gcc: all-stagefeedback-libiberty
f948b2de
NC
58953all-stageautoprofile-gcc: all-stageautoprofile-libiberty
58954all-stageautofeedback-gcc: all-stageautofeedback-libiberty
9e6ce191 58955all-gcc: maybe-all-intl
9e6ce191
PB
58956all-stage1-gcc: maybe-all-stage1-intl
58957all-stage2-gcc: maybe-all-stage2-intl
58958all-stage3-gcc: maybe-all-stage3-intl
58959all-stage4-gcc: maybe-all-stage4-intl
58960all-stageprofile-gcc: maybe-all-stageprofile-intl
f948b2de 58961all-stagetrain-gcc: maybe-all-stagetrain-intl
9e6ce191 58962all-stagefeedback-gcc: maybe-all-stagefeedback-intl
f948b2de
NC
58963all-stageautoprofile-gcc: maybe-all-stageautoprofile-intl
58964all-stageautofeedback-gcc: maybe-all-stageautofeedback-intl
4b900473 58965all-gcc: maybe-all-mpfr
4b900473
PB
58966all-stage1-gcc: maybe-all-stage1-mpfr
58967all-stage2-gcc: maybe-all-stage2-mpfr
58968all-stage3-gcc: maybe-all-stage3-mpfr
58969all-stage4-gcc: maybe-all-stage4-mpfr
58970all-stageprofile-gcc: maybe-all-stageprofile-mpfr
f948b2de 58971all-stagetrain-gcc: maybe-all-stagetrain-mpfr
4b900473 58972all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
f948b2de
NC
58973all-stageautoprofile-gcc: maybe-all-stageautoprofile-mpfr
58974all-stageautofeedback-gcc: maybe-all-stageautofeedback-mpfr
e8a5fa9c 58975all-gcc: maybe-all-mpc
e8a5fa9c
RW
58976all-stage1-gcc: maybe-all-stage1-mpc
58977all-stage2-gcc: maybe-all-stage2-mpc
58978all-stage3-gcc: maybe-all-stage3-mpc
58979all-stage4-gcc: maybe-all-stage4-mpc
58980all-stageprofile-gcc: maybe-all-stageprofile-mpc
f948b2de 58981all-stagetrain-gcc: maybe-all-stagetrain-mpc
e8a5fa9c 58982all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
f948b2de
NC
58983all-stageautoprofile-gcc: maybe-all-stageautoprofile-mpc
58984all-stageautofeedback-gcc: maybe-all-stageautofeedback-mpc
1b6c0831 58985all-gcc: maybe-all-isl
1b6c0831
L
58986all-stage1-gcc: maybe-all-stage1-isl
58987all-stage2-gcc: maybe-all-stage2-isl
58988all-stage3-gcc: maybe-all-stage3-isl
58989all-stage4-gcc: maybe-all-stage4-isl
58990all-stageprofile-gcc: maybe-all-stageprofile-isl
f948b2de 58991all-stagetrain-gcc: maybe-all-stagetrain-isl
1b6c0831 58992all-stagefeedback-gcc: maybe-all-stagefeedback-isl
f948b2de
NC
58993all-stageautoprofile-gcc: maybe-all-stageautoprofile-isl
58994all-stageautofeedback-gcc: maybe-all-stageautofeedback-isl
72b2455a 58995all-gcc: maybe-all-build-texinfo
72b2455a
PB
58996all-stage1-gcc: maybe-all-build-texinfo
58997all-stage2-gcc: maybe-all-build-texinfo
58998all-stage3-gcc: maybe-all-build-texinfo
58999all-stage4-gcc: maybe-all-build-texinfo
59000all-stageprofile-gcc: maybe-all-build-texinfo
f948b2de 59001all-stagetrain-gcc: maybe-all-build-texinfo
72b2455a 59002all-stagefeedback-gcc: maybe-all-build-texinfo
f948b2de
NC
59003all-stageautoprofile-gcc: maybe-all-build-texinfo
59004all-stageautofeedback-gcc: maybe-all-build-texinfo
72b2455a 59005all-gcc: maybe-all-build-bison
72b2455a
PB
59006all-stage1-gcc: maybe-all-build-bison
59007all-stage2-gcc: maybe-all-build-bison
59008all-stage3-gcc: maybe-all-build-bison
59009all-stage4-gcc: maybe-all-build-bison
59010all-stageprofile-gcc: maybe-all-build-bison
f948b2de 59011all-stagetrain-gcc: maybe-all-build-bison
72b2455a 59012all-stagefeedback-gcc: maybe-all-build-bison
f948b2de
NC
59013all-stageautoprofile-gcc: maybe-all-build-bison
59014all-stageautofeedback-gcc: maybe-all-build-bison
72b2455a 59015all-gcc: maybe-all-build-flex
72b2455a
PB
59016all-stage1-gcc: maybe-all-build-flex
59017all-stage2-gcc: maybe-all-build-flex
59018all-stage3-gcc: maybe-all-build-flex
59019all-stage4-gcc: maybe-all-build-flex
59020all-stageprofile-gcc: maybe-all-build-flex
f948b2de 59021all-stagetrain-gcc: maybe-all-build-flex
72b2455a 59022all-stagefeedback-gcc: maybe-all-build-flex
f948b2de
NC
59023all-stageautoprofile-gcc: maybe-all-build-flex
59024all-stageautofeedback-gcc: maybe-all-build-flex
ee025550 59025all-gcc: maybe-all-build-libiberty
ee025550
PB
59026all-stage1-gcc: maybe-all-build-libiberty
59027all-stage2-gcc: maybe-all-build-libiberty
59028all-stage3-gcc: maybe-all-build-libiberty
59029all-stage4-gcc: maybe-all-build-libiberty
59030all-stageprofile-gcc: maybe-all-build-libiberty
f948b2de 59031all-stagetrain-gcc: maybe-all-build-libiberty
ee025550 59032all-stagefeedback-gcc: maybe-all-build-libiberty
f948b2de
NC
59033all-stageautoprofile-gcc: maybe-all-build-libiberty
59034all-stageautofeedback-gcc: maybe-all-build-libiberty
ee025550 59035all-gcc: maybe-all-build-fixincludes
ee025550
PB
59036all-stage1-gcc: maybe-all-build-fixincludes
59037all-stage2-gcc: maybe-all-build-fixincludes
59038all-stage3-gcc: maybe-all-build-fixincludes
59039all-stage4-gcc: maybe-all-build-fixincludes
59040all-stageprofile-gcc: maybe-all-build-fixincludes
f948b2de 59041all-stagetrain-gcc: maybe-all-build-fixincludes
ee025550 59042all-stagefeedback-gcc: maybe-all-build-fixincludes
f948b2de
NC
59043all-stageautoprofile-gcc: maybe-all-build-fixincludes
59044all-stageautofeedback-gcc: maybe-all-build-fixincludes
1b6c0831 59045all-gcc: maybe-all-build-libcpp
1b6c0831
L
59046all-stage1-gcc: maybe-all-build-libcpp
59047all-stage2-gcc: maybe-all-build-libcpp
59048all-stage3-gcc: maybe-all-build-libcpp
59049all-stage4-gcc: maybe-all-build-libcpp
59050all-stageprofile-gcc: maybe-all-build-libcpp
f948b2de 59051all-stagetrain-gcc: maybe-all-build-libcpp
1b6c0831 59052all-stagefeedback-gcc: maybe-all-build-libcpp
f948b2de
NC
59053all-stageautoprofile-gcc: maybe-all-build-libcpp
59054all-stageautofeedback-gcc: maybe-all-build-libcpp
9e6ce191 59055all-gcc: maybe-all-zlib
9e6ce191
PB
59056all-stage1-gcc: maybe-all-stage1-zlib
59057all-stage2-gcc: maybe-all-stage2-zlib
59058all-stage3-gcc: maybe-all-stage3-zlib
59059all-stage4-gcc: maybe-all-stage4-zlib
59060all-stageprofile-gcc: maybe-all-stageprofile-zlib
f948b2de 59061all-stagetrain-gcc: maybe-all-stagetrain-zlib
9e6ce191 59062all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
f948b2de
NC
59063all-stageautoprofile-gcc: maybe-all-stageautoprofile-zlib
59064all-stageautofeedback-gcc: maybe-all-stageautofeedback-zlib
8e71395b 59065all-gcc: all-libbacktrace
8e71395b
L
59066all-stage1-gcc: all-stage1-libbacktrace
59067all-stage2-gcc: all-stage2-libbacktrace
59068all-stage3-gcc: all-stage3-libbacktrace
59069all-stage4-gcc: all-stage4-libbacktrace
59070all-stageprofile-gcc: all-stageprofile-libbacktrace
f948b2de 59071all-stagetrain-gcc: all-stagetrain-libbacktrace
8e71395b 59072all-stagefeedback-gcc: all-stagefeedback-libbacktrace
f948b2de
NC
59073all-stageautoprofile-gcc: all-stageautoprofile-libbacktrace
59074all-stageautofeedback-gcc: all-stageautofeedback-libbacktrace
9e6ce191 59075all-gcc: all-libcpp
9e6ce191
PB
59076all-stage1-gcc: all-stage1-libcpp
59077all-stage2-gcc: all-stage2-libcpp
59078all-stage3-gcc: all-stage3-libcpp
59079all-stage4-gcc: all-stage4-libcpp
59080all-stageprofile-gcc: all-stageprofile-libcpp
f948b2de 59081all-stagetrain-gcc: all-stagetrain-libcpp
9e6ce191 59082all-stagefeedback-gcc: all-stagefeedback-libcpp
f948b2de
NC
59083all-stageautoprofile-gcc: all-stageautoprofile-libcpp
59084all-stageautofeedback-gcc: all-stageautofeedback-libcpp
be01d343 59085all-gcc: all-libdecnumber
be01d343
PB
59086all-stage1-gcc: all-stage1-libdecnumber
59087all-stage2-gcc: all-stage2-libdecnumber
59088all-stage3-gcc: all-stage3-libdecnumber
59089all-stage4-gcc: all-stage4-libdecnumber
59090all-stageprofile-gcc: all-stageprofile-libdecnumber
f948b2de 59091all-stagetrain-gcc: all-stagetrain-libdecnumber
be01d343 59092all-stagefeedback-gcc: all-stagefeedback-libdecnumber
f948b2de
NC
59093all-stageautoprofile-gcc: all-stageautoprofile-libdecnumber
59094all-stageautofeedback-gcc: all-stageautofeedback-libdecnumber
d3ed111c 59095all-gcc: maybe-all-libiberty
d3ed111c
GK
59096all-stage1-gcc: maybe-all-stage1-libiberty
59097all-stage2-gcc: maybe-all-stage2-libiberty
59098all-stage3-gcc: maybe-all-stage3-libiberty
59099all-stage4-gcc: maybe-all-stage4-libiberty
59100all-stageprofile-gcc: maybe-all-stageprofile-libiberty
f948b2de 59101all-stagetrain-gcc: maybe-all-stagetrain-libiberty
d3ed111c 59102all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
f948b2de
NC
59103all-stageautoprofile-gcc: maybe-all-stageautoprofile-libiberty
59104all-stageautofeedback-gcc: maybe-all-stageautofeedback-libiberty
d3ed111c 59105all-gcc: maybe-all-fixincludes
201f096f 59106all-stage1-gcc: maybe-all-stage1-fixincludes
59107all-stage2-gcc: maybe-all-stage2-fixincludes
59108all-stage3-gcc: maybe-all-stage3-fixincludes
59109all-stage4-gcc: maybe-all-stage4-fixincludes
59110all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
f948b2de 59111all-stagetrain-gcc: maybe-all-stagetrain-fixincludes
201f096f 59112all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
f948b2de
NC
59113all-stageautoprofile-gcc: maybe-all-stageautoprofile-fixincludes
59114all-stageautofeedback-gcc: maybe-all-stageautofeedback-fixincludes
8d8eef9a 59115all-gcc: maybe-all-lto-plugin
8d8eef9a
RW
59116all-stage1-gcc: maybe-all-stage1-lto-plugin
59117all-stage2-gcc: maybe-all-stage2-lto-plugin
59118all-stage3-gcc: maybe-all-stage3-lto-plugin
59119all-stage4-gcc: maybe-all-stage4-lto-plugin
59120all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
f948b2de 59121all-stagetrain-gcc: maybe-all-stagetrain-lto-plugin
8d8eef9a 59122all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
f948b2de
NC
59123all-stageautoprofile-gcc: maybe-all-stageautoprofile-lto-plugin
59124all-stageautofeedback-gcc: maybe-all-stageautofeedback-lto-plugin
016a3251 59125all-gcc: maybe-all-libiconv
016a3251
DD
59126all-stage1-gcc: maybe-all-stage1-libiconv
59127all-stage2-gcc: maybe-all-stage2-libiconv
59128all-stage3-gcc: maybe-all-stage3-libiconv
59129all-stage4-gcc: maybe-all-stage4-libiconv
59130all-stageprofile-gcc: maybe-all-stageprofile-libiconv
f948b2de 59131all-stagetrain-gcc: maybe-all-stagetrain-libiconv
016a3251 59132all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
f948b2de
NC
59133all-stageautoprofile-gcc: maybe-all-stageautoprofile-libiconv
59134all-stageautofeedback-gcc: maybe-all-stageautofeedback-libiconv
57eefe4d 59135info-gcc: maybe-all-build-libiberty
57eefe4d
RW
59136info-stage1-gcc: maybe-all-build-libiberty
59137info-stage2-gcc: maybe-all-build-libiberty
59138info-stage3-gcc: maybe-all-build-libiberty
59139info-stage4-gcc: maybe-all-build-libiberty
59140info-stageprofile-gcc: maybe-all-build-libiberty
f948b2de 59141info-stagetrain-gcc: maybe-all-build-libiberty
57eefe4d 59142info-stagefeedback-gcc: maybe-all-build-libiberty
f948b2de
NC
59143info-stageautoprofile-gcc: maybe-all-build-libiberty
59144info-stageautofeedback-gcc: maybe-all-build-libiberty
57eefe4d 59145dvi-gcc: maybe-all-build-libiberty
57eefe4d
RW
59146dvi-stage1-gcc: maybe-all-build-libiberty
59147dvi-stage2-gcc: maybe-all-build-libiberty
59148dvi-stage3-gcc: maybe-all-build-libiberty
59149dvi-stage4-gcc: maybe-all-build-libiberty
59150dvi-stageprofile-gcc: maybe-all-build-libiberty
f948b2de 59151dvi-stagetrain-gcc: maybe-all-build-libiberty
57eefe4d 59152dvi-stagefeedback-gcc: maybe-all-build-libiberty
f948b2de
NC
59153dvi-stageautoprofile-gcc: maybe-all-build-libiberty
59154dvi-stageautofeedback-gcc: maybe-all-build-libiberty
57eefe4d 59155pdf-gcc: maybe-all-build-libiberty
57eefe4d
RW
59156pdf-stage1-gcc: maybe-all-build-libiberty
59157pdf-stage2-gcc: maybe-all-build-libiberty
59158pdf-stage3-gcc: maybe-all-build-libiberty
59159pdf-stage4-gcc: maybe-all-build-libiberty
59160pdf-stageprofile-gcc: maybe-all-build-libiberty
f948b2de 59161pdf-stagetrain-gcc: maybe-all-build-libiberty
57eefe4d 59162pdf-stagefeedback-gcc: maybe-all-build-libiberty
f948b2de
NC
59163pdf-stageautoprofile-gcc: maybe-all-build-libiberty
59164pdf-stageautofeedback-gcc: maybe-all-build-libiberty
57eefe4d 59165html-gcc: maybe-all-build-libiberty
57eefe4d
RW
59166html-stage1-gcc: maybe-all-build-libiberty
59167html-stage2-gcc: maybe-all-build-libiberty
59168html-stage3-gcc: maybe-all-build-libiberty
59169html-stage4-gcc: maybe-all-build-libiberty
59170html-stageprofile-gcc: maybe-all-build-libiberty
f948b2de 59171html-stagetrain-gcc: maybe-all-build-libiberty
57eefe4d 59172html-stagefeedback-gcc: maybe-all-build-libiberty
f948b2de
NC
59173html-stageautoprofile-gcc: maybe-all-build-libiberty
59174html-stageautofeedback-gcc: maybe-all-build-libiberty
69e57115 59175install-gcc: maybe-install-fixincludes
8d8eef9a 59176install-gcc: maybe-install-lto-plugin
9b980aa1 59177install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 59178install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191 59179configure-libcpp: configure-libiberty
9e6ce191
PB
59180configure-stage1-libcpp: configure-stage1-libiberty
59181configure-stage2-libcpp: configure-stage2-libiberty
59182configure-stage3-libcpp: configure-stage3-libiberty
59183configure-stage4-libcpp: configure-stage4-libiberty
59184configure-stageprofile-libcpp: configure-stageprofile-libiberty
f948b2de 59185configure-stagetrain-libcpp: configure-stagetrain-libiberty
9e6ce191 59186configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
f948b2de
NC
59187configure-stageautoprofile-libcpp: configure-stageautoprofile-libiberty
59188configure-stageautofeedback-libcpp: configure-stageautofeedback-libiberty
9e6ce191 59189configure-libcpp: maybe-configure-intl
9e6ce191
PB
59190configure-stage1-libcpp: maybe-configure-stage1-intl
59191configure-stage2-libcpp: maybe-configure-stage2-intl
59192configure-stage3-libcpp: maybe-configure-stage3-intl
59193configure-stage4-libcpp: maybe-configure-stage4-intl
59194configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
f948b2de 59195configure-stagetrain-libcpp: maybe-configure-stagetrain-intl
9e6ce191 59196configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
f948b2de
NC
59197configure-stageautoprofile-libcpp: maybe-configure-stageautoprofile-intl
59198configure-stageautofeedback-libcpp: maybe-configure-stageautofeedback-intl
016a3251 59199configure-libcpp: maybe-all-libiconv
016a3251
DD
59200configure-stage1-libcpp: maybe-all-stage1-libiconv
59201configure-stage2-libcpp: maybe-all-stage2-libiconv
59202configure-stage3-libcpp: maybe-all-stage3-libiconv
59203configure-stage4-libcpp: maybe-all-stage4-libiconv
59204configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
f948b2de 59205configure-stagetrain-libcpp: maybe-all-stagetrain-libiconv
016a3251 59206configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
f948b2de
NC
59207configure-stageautoprofile-libcpp: maybe-all-stageautoprofile-libiconv
59208configure-stageautofeedback-libcpp: maybe-all-stageautofeedback-libiconv
9e6ce191 59209all-libcpp: all-libiberty
9e6ce191
PB
59210all-stage1-libcpp: all-stage1-libiberty
59211all-stage2-libcpp: all-stage2-libiberty
59212all-stage3-libcpp: all-stage3-libiberty
59213all-stage4-libcpp: all-stage4-libiberty
59214all-stageprofile-libcpp: all-stageprofile-libiberty
f948b2de 59215all-stagetrain-libcpp: all-stagetrain-libiberty
9e6ce191 59216all-stagefeedback-libcpp: all-stagefeedback-libiberty
f948b2de
NC
59217all-stageautoprofile-libcpp: all-stageautoprofile-libiberty
59218all-stageautofeedback-libcpp: all-stageautofeedback-libiberty
9e6ce191 59219all-libcpp: maybe-all-intl
9e6ce191
PB
59220all-stage1-libcpp: maybe-all-stage1-intl
59221all-stage2-libcpp: maybe-all-stage2-intl
59222all-stage3-libcpp: maybe-all-stage3-intl
59223all-stage4-libcpp: maybe-all-stage4-intl
59224all-stageprofile-libcpp: maybe-all-stageprofile-intl
f948b2de 59225all-stagetrain-libcpp: maybe-all-stagetrain-intl
9e6ce191 59226all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
f948b2de
NC
59227all-stageautoprofile-libcpp: maybe-all-stageautoprofile-intl
59228all-stageautofeedback-libcpp: maybe-all-stageautofeedback-intl
016a3251 59229all-libcpp: maybe-all-libiconv
016a3251
DD
59230all-stage1-libcpp: maybe-all-stage1-libiconv
59231all-stage2-libcpp: maybe-all-stage2-libiconv
59232all-stage3-libcpp: maybe-all-stage3-libiconv
59233all-stage4-libcpp: maybe-all-stage4-libiconv
59234all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
f948b2de 59235all-stagetrain-libcpp: maybe-all-stagetrain-libiconv
016a3251 59236all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
f948b2de
NC
59237all-stageautoprofile-libcpp: maybe-all-stageautoprofile-libiconv
59238all-stageautofeedback-libcpp: maybe-all-stageautofeedback-libiconv
d3ed111c 59239all-fixincludes: maybe-all-libiberty
201f096f 59240all-stage1-fixincludes: maybe-all-stage1-libiberty
59241all-stage2-fixincludes: maybe-all-stage2-libiberty
59242all-stage3-fixincludes: maybe-all-stage3-libiberty
59243all-stage4-fixincludes: maybe-all-stage4-libiberty
59244all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
f948b2de 59245all-stagetrain-fixincludes: maybe-all-stagetrain-libiberty
201f096f 59246all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
f948b2de
NC
59247all-stageautoprofile-fixincludes: maybe-all-stageautoprofile-libiberty
59248all-stageautofeedback-fixincludes: maybe-all-stageautofeedback-libiberty
b00612cc 59249all-gnattools: maybe-all-target-libada
8d8eef9a 59250all-lto-plugin: maybe-all-libiberty
8d8eef9a
RW
59251all-stage1-lto-plugin: maybe-all-stage1-libiberty
59252all-stage2-lto-plugin: maybe-all-stage2-libiberty
59253all-stage3-lto-plugin: maybe-all-stage3-libiberty
59254all-stage4-lto-plugin: maybe-all-stage4-libiberty
59255all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
f948b2de 59256all-stagetrain-lto-plugin: maybe-all-stagetrain-libiberty
8d8eef9a 59257all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
f948b2de
NC
59258all-stageautoprofile-lto-plugin: maybe-all-stageautoprofile-libiberty
59259all-stageautofeedback-lto-plugin: maybe-all-stageautofeedback-libiberty
1b6c0831 59260all-lto-plugin: maybe-all-libiberty-linker-plugin
1b6c0831
L
59261all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
59262all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
59263all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
59264all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
59265all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
f948b2de 59266all-stagetrain-lto-plugin: maybe-all-stagetrain-libiberty-linker-plugin
1b6c0831 59267all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
f948b2de
NC
59268all-stageautoprofile-lto-plugin: maybe-all-stageautoprofile-libiberty-linker-plugin
59269all-stageautofeedback-lto-plugin: maybe-all-stageautofeedback-libiberty-linker-plugin
1b6c0831 59270all-gotools: maybe-all-target-libgo
016a3251 59271configure-intl: maybe-all-libiconv
016a3251
DD
59272configure-stage1-intl: maybe-all-stage1-libiconv
59273configure-stage2-intl: maybe-all-stage2-libiconv
59274configure-stage3-intl: maybe-all-stage3-libiconv
59275configure-stage4-intl: maybe-all-stage4-libiconv
59276configure-stageprofile-intl: maybe-all-stageprofile-libiconv
f948b2de 59277configure-stagetrain-intl: maybe-all-stagetrain-libiconv
016a3251 59278configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
f948b2de
NC
59279configure-stageautoprofile-intl: maybe-all-stageautoprofile-libiconv
59280configure-stageautofeedback-intl: maybe-all-stageautofeedback-libiconv
4b900473 59281configure-mpfr: maybe-all-gmp
4b900473
PB
59282configure-stage1-mpfr: maybe-all-stage1-gmp
59283configure-stage2-mpfr: maybe-all-stage2-gmp
59284configure-stage3-mpfr: maybe-all-stage3-gmp
59285configure-stage4-mpfr: maybe-all-stage4-gmp
59286configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
f948b2de 59287configure-stagetrain-mpfr: maybe-all-stagetrain-gmp
4b900473 59288configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
f948b2de
NC
59289configure-stageautoprofile-mpfr: maybe-all-stageautoprofile-gmp
59290configure-stageautofeedback-mpfr: maybe-all-stageautofeedback-gmp
e8a5fa9c 59291configure-mpc: maybe-all-mpfr
e8a5fa9c
RW
59292configure-stage1-mpc: maybe-all-stage1-mpfr
59293configure-stage2-mpc: maybe-all-stage2-mpfr
59294configure-stage3-mpc: maybe-all-stage3-mpfr
59295configure-stage4-mpc: maybe-all-stage4-mpfr
59296configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
f948b2de 59297configure-stagetrain-mpc: maybe-all-stagetrain-mpfr
e8a5fa9c 59298configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
f948b2de
NC
59299configure-stageautoprofile-mpc: maybe-all-stageautoprofile-mpfr
59300configure-stageautofeedback-mpc: maybe-all-stageautofeedback-mpfr
7ec59b9e 59301configure-isl: maybe-all-gmp
7ec59b9e
L
59302configure-stage1-isl: maybe-all-stage1-gmp
59303configure-stage2-isl: maybe-all-stage2-gmp
59304configure-stage3-isl: maybe-all-stage3-gmp
59305configure-stage4-isl: maybe-all-stage4-gmp
59306configure-stageprofile-isl: maybe-all-stageprofile-gmp
f948b2de 59307configure-stagetrain-isl: maybe-all-stagetrain-gmp
7ec59b9e 59308configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
f948b2de
NC
59309configure-stageautoprofile-isl: maybe-all-stageautoprofile-gmp
59310configure-stageautofeedback-isl: maybe-all-stageautofeedback-gmp
016a3251 59311all-intl: maybe-all-libiconv
016a3251
DD
59312all-stage1-intl: maybe-all-stage1-libiconv
59313all-stage2-intl: maybe-all-stage2-libiconv
59314all-stage3-intl: maybe-all-stage3-libiconv
59315all-stage4-intl: maybe-all-stage4-libiconv
59316all-stageprofile-intl: maybe-all-stageprofile-libiconv
f948b2de 59317all-stagetrain-intl: maybe-all-stagetrain-libiconv
016a3251 59318all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
f948b2de
NC
59319all-stageautoprofile-intl: maybe-all-stageautoprofile-libiconv
59320all-stageautofeedback-intl: maybe-all-stageautofeedback-libiconv
9e6ce191 59321configure-gdb: maybe-configure-sim
9e6ce191 59322all-gdb: maybe-all-readline
72b2455a 59323all-gdb: maybe-all-build-bison
9e6ce191 59324all-gdb: maybe-all-sim
dbbe5f95 59325all-gdb: maybe-all-libtermcap
9e6ce191
PB
59326configure-libgui: maybe-configure-tcl
59327configure-libgui: maybe-configure-tk
59328all-libgui: maybe-all-tcl
59329all-libgui: maybe-all-tk
59330all-libgui: maybe-all-itcl
b4a77b47 59331configure-bfd: configure-libiberty
9e6ce191
PB
59332configure-stage1-bfd: configure-stage1-libiberty
59333configure-stage2-bfd: configure-stage2-libiberty
59334configure-stage3-bfd: configure-stage3-libiberty
59335configure-stage4-bfd: configure-stage4-libiberty
59336configure-stageprofile-bfd: configure-stageprofile-libiberty
f948b2de 59337configure-stagetrain-bfd: configure-stagetrain-libiberty
9e6ce191 59338configure-stagefeedback-bfd: configure-stagefeedback-libiberty
f948b2de
NC
59339configure-stageautoprofile-bfd: configure-stageautoprofile-libiberty
59340configure-stageautofeedback-bfd: configure-stageautofeedback-libiberty
20e95c23 59341configure-bfd: maybe-configure-intl
20e95c23
DJ
59342configure-stage1-bfd: maybe-configure-stage1-intl
59343configure-stage2-bfd: maybe-configure-stage2-intl
59344configure-stage3-bfd: maybe-configure-stage3-intl
59345configure-stage4-bfd: maybe-configure-stage4-intl
59346configure-stageprofile-bfd: maybe-configure-stageprofile-intl
f948b2de 59347configure-stagetrain-bfd: maybe-configure-stagetrain-intl
20e95c23 59348configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
f948b2de
NC
59349configure-stageautoprofile-bfd: maybe-configure-stageautoprofile-intl
59350configure-stageautofeedback-bfd: maybe-configure-stageautofeedback-intl
9e6ce191 59351all-bfd: maybe-all-libiberty
9e6ce191
PB
59352all-stage1-bfd: maybe-all-stage1-libiberty
59353all-stage2-bfd: maybe-all-stage2-libiberty
59354all-stage3-bfd: maybe-all-stage3-libiberty
59355all-stage4-bfd: maybe-all-stage4-libiberty
59356all-stageprofile-bfd: maybe-all-stageprofile-libiberty
f948b2de 59357all-stagetrain-bfd: maybe-all-stagetrain-libiberty
9e6ce191 59358all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
f948b2de
NC
59359all-stageautoprofile-bfd: maybe-all-stageautoprofile-libiberty
59360all-stageautofeedback-bfd: maybe-all-stageautofeedback-libiberty
9e6ce191 59361all-bfd: maybe-all-intl
9e6ce191
PB
59362all-stage1-bfd: maybe-all-stage1-intl
59363all-stage2-bfd: maybe-all-stage2-intl
59364all-stage3-bfd: maybe-all-stage3-intl
59365all-stage4-bfd: maybe-all-stage4-intl
59366all-stageprofile-bfd: maybe-all-stageprofile-intl
f948b2de 59367all-stagetrain-bfd: maybe-all-stagetrain-intl
9e6ce191 59368all-stagefeedback-bfd: maybe-all-stagefeedback-intl
f948b2de
NC
59369all-stageautoprofile-bfd: maybe-all-stageautoprofile-intl
59370all-stageautofeedback-bfd: maybe-all-stageautofeedback-intl
d2d67aea 59371all-bfd: maybe-all-zlib
d2d67aea
L
59372all-stage1-bfd: maybe-all-stage1-zlib
59373all-stage2-bfd: maybe-all-stage2-zlib
59374all-stage3-bfd: maybe-all-stage3-zlib
59375all-stage4-bfd: maybe-all-stage4-zlib
59376all-stageprofile-bfd: maybe-all-stageprofile-zlib
f948b2de 59377all-stagetrain-bfd: maybe-all-stagetrain-zlib
d2d67aea 59378all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
f948b2de
NC
59379all-stageautoprofile-bfd: maybe-all-stageautoprofile-zlib
59380all-stageautofeedback-bfd: maybe-all-stageautofeedback-zlib
66775d67 59381configure-opcodes: configure-libiberty
66775d67
AM
59382configure-stage1-opcodes: configure-stage1-libiberty
59383configure-stage2-opcodes: configure-stage2-libiberty
66775d67 59384configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
59385configure-stage4-opcodes: configure-stage4-libiberty
59386configure-stageprofile-opcodes: configure-stageprofile-libiberty
f948b2de 59387configure-stagetrain-opcodes: configure-stagetrain-libiberty
66775d67 59388configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
f948b2de
NC
59389configure-stageautoprofile-opcodes: configure-stageautoprofile-libiberty
59390configure-stageautofeedback-opcodes: configure-stageautofeedback-libiberty
66775d67 59391all-opcodes: maybe-all-libiberty
66775d67
AM
59392all-stage1-opcodes: maybe-all-stage1-libiberty
59393all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 59394all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
59395all-stage4-opcodes: maybe-all-stage4-libiberty
59396all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
f948b2de 59397all-stagetrain-opcodes: maybe-all-stagetrain-libiberty
66775d67 59398all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
f948b2de
NC
59399all-stageautoprofile-opcodes: maybe-all-stageautoprofile-libiberty
59400all-stageautofeedback-opcodes: maybe-all-stageautofeedback-libiberty
20e95c23 59401configure-binutils: maybe-configure-intl
20e95c23
DJ
59402configure-stage1-binutils: maybe-configure-stage1-intl
59403configure-stage2-binutils: maybe-configure-stage2-intl
59404configure-stage3-binutils: maybe-configure-stage3-intl
59405configure-stage4-binutils: maybe-configure-stage4-intl
59406configure-stageprofile-binutils: maybe-configure-stageprofile-intl
f948b2de 59407configure-stagetrain-binutils: maybe-configure-stagetrain-intl
20e95c23 59408configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
f948b2de
NC
59409configure-stageautoprofile-binutils: maybe-configure-stageautoprofile-intl
59410configure-stageautofeedback-binutils: maybe-configure-stageautofeedback-intl
9e6ce191 59411all-binutils: maybe-all-libiberty
9e6ce191
PB
59412all-stage1-binutils: maybe-all-stage1-libiberty
59413all-stage2-binutils: maybe-all-stage2-libiberty
59414all-stage3-binutils: maybe-all-stage3-libiberty
59415all-stage4-binutils: maybe-all-stage4-libiberty
59416all-stageprofile-binutils: maybe-all-stageprofile-libiberty
f948b2de 59417all-stagetrain-binutils: maybe-all-stagetrain-libiberty
9e6ce191 59418all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
f948b2de
NC
59419all-stageautoprofile-binutils: maybe-all-stageautoprofile-libiberty
59420all-stageautofeedback-binutils: maybe-all-stageautofeedback-libiberty
9e6ce191 59421all-binutils: maybe-all-opcodes
9e6ce191
PB
59422all-stage1-binutils: maybe-all-stage1-opcodes
59423all-stage2-binutils: maybe-all-stage2-opcodes
59424all-stage3-binutils: maybe-all-stage3-opcodes
59425all-stage4-binutils: maybe-all-stage4-opcodes
59426all-stageprofile-binutils: maybe-all-stageprofile-opcodes
f948b2de 59427all-stagetrain-binutils: maybe-all-stagetrain-opcodes
9e6ce191 59428all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
f948b2de
NC
59429all-stageautoprofile-binutils: maybe-all-stageautoprofile-opcodes
59430all-stageautofeedback-binutils: maybe-all-stageautofeedback-opcodes
9e6ce191 59431all-binutils: maybe-all-bfd
9e6ce191
PB
59432all-stage1-binutils: maybe-all-stage1-bfd
59433all-stage2-binutils: maybe-all-stage2-bfd
59434all-stage3-binutils: maybe-all-stage3-bfd
59435all-stage4-binutils: maybe-all-stage4-bfd
59436all-stageprofile-binutils: maybe-all-stageprofile-bfd
f948b2de 59437all-stagetrain-binutils: maybe-all-stagetrain-bfd
9e6ce191 59438all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
f948b2de
NC
59439all-stageautoprofile-binutils: maybe-all-stageautoprofile-bfd
59440all-stageautofeedback-binutils: maybe-all-stageautofeedback-bfd
72b2455a 59441all-binutils: maybe-all-build-flex
72b2455a
PB
59442all-stage1-binutils: maybe-all-build-flex
59443all-stage2-binutils: maybe-all-build-flex
59444all-stage3-binutils: maybe-all-build-flex
59445all-stage4-binutils: maybe-all-build-flex
59446all-stageprofile-binutils: maybe-all-build-flex
f948b2de 59447all-stagetrain-binutils: maybe-all-build-flex
72b2455a 59448all-stagefeedback-binutils: maybe-all-build-flex
f948b2de
NC
59449all-stageautoprofile-binutils: maybe-all-build-flex
59450all-stageautofeedback-binutils: maybe-all-build-flex
72b2455a 59451all-binutils: maybe-all-build-bison
72b2455a
PB
59452all-stage1-binutils: maybe-all-build-bison
59453all-stage2-binutils: maybe-all-build-bison
59454all-stage3-binutils: maybe-all-build-bison
59455all-stage4-binutils: maybe-all-build-bison
59456all-stageprofile-binutils: maybe-all-build-bison
f948b2de 59457all-stagetrain-binutils: maybe-all-build-bison
72b2455a 59458all-stagefeedback-binutils: maybe-all-build-bison
f948b2de
NC
59459all-stageautoprofile-binutils: maybe-all-build-bison
59460all-stageautofeedback-binutils: maybe-all-build-bison
9e6ce191 59461all-binutils: maybe-all-intl
9e6ce191
PB
59462all-stage1-binutils: maybe-all-stage1-intl
59463all-stage2-binutils: maybe-all-stage2-intl
59464all-stage3-binutils: maybe-all-stage3-intl
59465all-stage4-binutils: maybe-all-stage4-intl
59466all-stageprofile-binutils: maybe-all-stageprofile-intl
f948b2de 59467all-stagetrain-binutils: maybe-all-stagetrain-intl
9e6ce191 59468all-stagefeedback-binutils: maybe-all-stagefeedback-intl
f948b2de
NC
59469all-stageautoprofile-binutils: maybe-all-stageautoprofile-intl
59470all-stageautofeedback-binutils: maybe-all-stageautofeedback-intl
0140d685 59471all-binutils: maybe-all-gas
0140d685
L
59472all-stage1-binutils: maybe-all-stage1-gas
59473all-stage2-binutils: maybe-all-stage2-gas
59474all-stage3-binutils: maybe-all-stage3-gas
59475all-stage4-binutils: maybe-all-stage4-gas
59476all-stageprofile-binutils: maybe-all-stageprofile-gas
f948b2de 59477all-stagetrain-binutils: maybe-all-stagetrain-gas
0140d685 59478all-stagefeedback-binutils: maybe-all-stagefeedback-gas
f948b2de
NC
59479all-stageautoprofile-binutils: maybe-all-stageautoprofile-gas
59480all-stageautofeedback-binutils: maybe-all-stageautofeedback-gas
0e65dfba
NA
59481all-binutils: maybe-all-libctf
59482all-stage1-binutils: maybe-all-stage1-libctf
59483all-stage2-binutils: maybe-all-stage2-libctf
59484all-stage3-binutils: maybe-all-stage3-libctf
59485all-stage4-binutils: maybe-all-stage4-libctf
59486all-stageprofile-binutils: maybe-all-stageprofile-libctf
f948b2de 59487all-stagetrain-binutils: maybe-all-stagetrain-libctf
0e65dfba 59488all-stagefeedback-binutils: maybe-all-stagefeedback-libctf
f948b2de
NC
59489all-stageautoprofile-binutils: maybe-all-stageautoprofile-libctf
59490all-stageautofeedback-binutils: maybe-all-stageautofeedback-libctf
ae831be5 59491install-binutils: maybe-install-opcodes
9b980aa1 59492install-strip-binutils: maybe-install-strip-opcodes
cf662e21 59493install-opcodes: maybe-install-bfd
9b980aa1 59494install-strip-opcodes: maybe-install-strip-bfd
20e95c23 59495configure-gas: maybe-configure-intl
20e95c23
DJ
59496configure-stage1-gas: maybe-configure-stage1-intl
59497configure-stage2-gas: maybe-configure-stage2-intl
59498configure-stage3-gas: maybe-configure-stage3-intl
59499configure-stage4-gas: maybe-configure-stage4-intl
59500configure-stageprofile-gas: maybe-configure-stageprofile-intl
f948b2de 59501configure-stagetrain-gas: maybe-configure-stagetrain-intl
20e95c23 59502configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
f948b2de
NC
59503configure-stageautoprofile-gas: maybe-configure-stageautoprofile-intl
59504configure-stageautofeedback-gas: maybe-configure-stageautofeedback-intl
9e6ce191 59505all-gas: maybe-all-libiberty
9e6ce191
PB
59506all-stage1-gas: maybe-all-stage1-libiberty
59507all-stage2-gas: maybe-all-stage2-libiberty
59508all-stage3-gas: maybe-all-stage3-libiberty
59509all-stage4-gas: maybe-all-stage4-libiberty
59510all-stageprofile-gas: maybe-all-stageprofile-libiberty
f948b2de 59511all-stagetrain-gas: maybe-all-stagetrain-libiberty
9e6ce191 59512all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
f948b2de
NC
59513all-stageautoprofile-gas: maybe-all-stageautoprofile-libiberty
59514all-stageautofeedback-gas: maybe-all-stageautofeedback-libiberty
9e6ce191 59515all-gas: maybe-all-opcodes
9e6ce191
PB
59516all-stage1-gas: maybe-all-stage1-opcodes
59517all-stage2-gas: maybe-all-stage2-opcodes
59518all-stage3-gas: maybe-all-stage3-opcodes
59519all-stage4-gas: maybe-all-stage4-opcodes
59520all-stageprofile-gas: maybe-all-stageprofile-opcodes
f948b2de 59521all-stagetrain-gas: maybe-all-stagetrain-opcodes
9e6ce191 59522all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
f948b2de
NC
59523all-stageautoprofile-gas: maybe-all-stageautoprofile-opcodes
59524all-stageautofeedback-gas: maybe-all-stageautofeedback-opcodes
9e6ce191 59525all-gas: maybe-all-bfd
9e6ce191
PB
59526all-stage1-gas: maybe-all-stage1-bfd
59527all-stage2-gas: maybe-all-stage2-bfd
59528all-stage3-gas: maybe-all-stage3-bfd
59529all-stage4-gas: maybe-all-stage4-bfd
59530all-stageprofile-gas: maybe-all-stageprofile-bfd
f948b2de 59531all-stagetrain-gas: maybe-all-stagetrain-bfd
9e6ce191 59532all-stagefeedback-gas: maybe-all-stagefeedback-bfd
f948b2de
NC
59533all-stageautoprofile-gas: maybe-all-stageautoprofile-bfd
59534all-stageautofeedback-gas: maybe-all-stageautofeedback-bfd
9e6ce191 59535all-gas: maybe-all-intl
9e6ce191
PB
59536all-stage1-gas: maybe-all-stage1-intl
59537all-stage2-gas: maybe-all-stage2-intl
59538all-stage3-gas: maybe-all-stage3-intl
59539all-stage4-gas: maybe-all-stage4-intl
59540all-stageprofile-gas: maybe-all-stageprofile-intl
f948b2de 59541all-stagetrain-gas: maybe-all-stagetrain-intl
9e6ce191 59542all-stagefeedback-gas: maybe-all-stagefeedback-intl
f948b2de
NC
59543all-stageautoprofile-gas: maybe-all-stageautoprofile-intl
59544all-stageautofeedback-gas: maybe-all-stageautofeedback-intl
20e95c23 59545configure-ld: maybe-configure-intl
20e95c23
DJ
59546configure-stage1-ld: maybe-configure-stage1-intl
59547configure-stage2-ld: maybe-configure-stage2-intl
59548configure-stage3-ld: maybe-configure-stage3-intl
59549configure-stage4-ld: maybe-configure-stage4-intl
59550configure-stageprofile-ld: maybe-configure-stageprofile-intl
f948b2de 59551configure-stagetrain-ld: maybe-configure-stagetrain-intl
20e95c23 59552configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
f948b2de
NC
59553configure-stageautoprofile-ld: maybe-configure-stageautoprofile-intl
59554configure-stageautofeedback-ld: maybe-configure-stageautofeedback-intl
9e6ce191 59555all-ld: maybe-all-libiberty
9e6ce191
PB
59556all-stage1-ld: maybe-all-stage1-libiberty
59557all-stage2-ld: maybe-all-stage2-libiberty
59558all-stage3-ld: maybe-all-stage3-libiberty
59559all-stage4-ld: maybe-all-stage4-libiberty
59560all-stageprofile-ld: maybe-all-stageprofile-libiberty
f948b2de 59561all-stagetrain-ld: maybe-all-stagetrain-libiberty
9e6ce191 59562all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
f948b2de
NC
59563all-stageautoprofile-ld: maybe-all-stageautoprofile-libiberty
59564all-stageautofeedback-ld: maybe-all-stageautofeedback-libiberty
9e6ce191 59565all-ld: maybe-all-bfd
9e6ce191
PB
59566all-stage1-ld: maybe-all-stage1-bfd
59567all-stage2-ld: maybe-all-stage2-bfd
59568all-stage3-ld: maybe-all-stage3-bfd
59569all-stage4-ld: maybe-all-stage4-bfd
59570all-stageprofile-ld: maybe-all-stageprofile-bfd
f948b2de 59571all-stagetrain-ld: maybe-all-stagetrain-bfd
9e6ce191 59572all-stagefeedback-ld: maybe-all-stagefeedback-bfd
f948b2de
NC
59573all-stageautoprofile-ld: maybe-all-stageautoprofile-bfd
59574all-stageautofeedback-ld: maybe-all-stageautofeedback-bfd
9e6ce191 59575all-ld: maybe-all-opcodes
9e6ce191
PB
59576all-stage1-ld: maybe-all-stage1-opcodes
59577all-stage2-ld: maybe-all-stage2-opcodes
59578all-stage3-ld: maybe-all-stage3-opcodes
59579all-stage4-ld: maybe-all-stage4-opcodes
59580all-stageprofile-ld: maybe-all-stageprofile-opcodes
f948b2de 59581all-stagetrain-ld: maybe-all-stagetrain-opcodes
9e6ce191 59582all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
f948b2de
NC
59583all-stageautoprofile-ld: maybe-all-stageautoprofile-opcodes
59584all-stageautofeedback-ld: maybe-all-stageautofeedback-opcodes
72b2455a 59585all-ld: maybe-all-build-bison
72b2455a
PB
59586all-stage1-ld: maybe-all-build-bison
59587all-stage2-ld: maybe-all-build-bison
59588all-stage3-ld: maybe-all-build-bison
59589all-stage4-ld: maybe-all-build-bison
59590all-stageprofile-ld: maybe-all-build-bison
f948b2de 59591all-stagetrain-ld: maybe-all-build-bison
72b2455a 59592all-stagefeedback-ld: maybe-all-build-bison
f948b2de
NC
59593all-stageautoprofile-ld: maybe-all-build-bison
59594all-stageautofeedback-ld: maybe-all-build-bison
72b2455a 59595all-ld: maybe-all-build-flex
72b2455a
PB
59596all-stage1-ld: maybe-all-build-flex
59597all-stage2-ld: maybe-all-build-flex
59598all-stage3-ld: maybe-all-build-flex
59599all-stage4-ld: maybe-all-build-flex
59600all-stageprofile-ld: maybe-all-build-flex
f948b2de 59601all-stagetrain-ld: maybe-all-build-flex
72b2455a 59602all-stagefeedback-ld: maybe-all-build-flex
f948b2de
NC
59603all-stageautoprofile-ld: maybe-all-build-flex
59604all-stageautofeedback-ld: maybe-all-build-flex
9e6ce191 59605all-ld: maybe-all-intl
9e6ce191
PB
59606all-stage1-ld: maybe-all-stage1-intl
59607all-stage2-ld: maybe-all-stage2-intl
59608all-stage3-ld: maybe-all-stage3-intl
59609all-stage4-ld: maybe-all-stage4-intl
59610all-stageprofile-ld: maybe-all-stageprofile-intl
f948b2de 59611all-stagetrain-ld: maybe-all-stagetrain-intl
9e6ce191 59612all-stagefeedback-ld: maybe-all-stagefeedback-intl
f948b2de
NC
59613all-stageautoprofile-ld: maybe-all-stageautoprofile-intl
59614all-stageautofeedback-ld: maybe-all-stageautofeedback-intl
0140d685 59615all-ld: maybe-all-gas
0140d685
L
59616all-stage1-ld: maybe-all-stage1-gas
59617all-stage2-ld: maybe-all-stage2-gas
59618all-stage3-ld: maybe-all-stage3-gas
59619all-stage4-ld: maybe-all-stage4-gas
59620all-stageprofile-ld: maybe-all-stageprofile-gas
f948b2de 59621all-stagetrain-ld: maybe-all-stagetrain-gas
0140d685 59622all-stagefeedback-ld: maybe-all-stagefeedback-gas
f948b2de
NC
59623all-stageautoprofile-ld: maybe-all-stageautoprofile-gas
59624all-stageautofeedback-ld: maybe-all-stageautofeedback-gas
a6305403 59625all-ld: maybe-all-binutils
a6305403
YS
59626all-stage1-ld: maybe-all-stage1-binutils
59627all-stage2-ld: maybe-all-stage2-binutils
59628all-stage3-ld: maybe-all-stage3-binutils
59629all-stage4-ld: maybe-all-stage4-binutils
59630all-stageprofile-ld: maybe-all-stageprofile-binutils
f948b2de 59631all-stagetrain-ld: maybe-all-stagetrain-binutils
a6305403 59632all-stagefeedback-ld: maybe-all-stagefeedback-binutils
f948b2de
NC
59633all-stageautoprofile-ld: maybe-all-stageautoprofile-binutils
59634all-stageautofeedback-ld: maybe-all-stageautofeedback-binutils
e6de499b 59635install-ld: maybe-install-gold
9b980aa1 59636install-strip-ld: maybe-install-strip-gold
93f9b408 59637configure-gold: maybe-configure-intl
93f9b408
ILT
59638configure-stage1-gold: maybe-configure-stage1-intl
59639configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 59640configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
59641configure-stage4-gold: maybe-configure-stage4-intl
59642configure-stageprofile-gold: maybe-configure-stageprofile-intl
f948b2de 59643configure-stagetrain-gold: maybe-configure-stagetrain-intl
93f9b408 59644configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
f948b2de
NC
59645configure-stageautoprofile-gold: maybe-configure-stageautoprofile-intl
59646configure-stageautofeedback-gold: maybe-configure-stageautofeedback-intl
93f9b408 59647all-gold: maybe-all-libiberty
93f9b408
ILT
59648all-stage1-gold: maybe-all-stage1-libiberty
59649all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 59650all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
59651all-stage4-gold: maybe-all-stage4-libiberty
59652all-stageprofile-gold: maybe-all-stageprofile-libiberty
f948b2de 59653all-stagetrain-gold: maybe-all-stagetrain-libiberty
93f9b408 59654all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
f948b2de
NC
59655all-stageautoprofile-gold: maybe-all-stageautoprofile-libiberty
59656all-stageautofeedback-gold: maybe-all-stageautofeedback-libiberty
93f9b408 59657all-gold: maybe-all-intl
93f9b408
ILT
59658all-stage1-gold: maybe-all-stage1-intl
59659all-stage2-gold: maybe-all-stage2-intl
93f9b408 59660all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
59661all-stage4-gold: maybe-all-stage4-intl
59662all-stageprofile-gold: maybe-all-stageprofile-intl
f948b2de 59663all-stagetrain-gold: maybe-all-stagetrain-intl
93f9b408 59664all-stagefeedback-gold: maybe-all-stagefeedback-intl
f948b2de
NC
59665all-stageautoprofile-gold: maybe-all-stageautoprofile-intl
59666all-stageautofeedback-gold: maybe-all-stageautofeedback-intl
93f9b408 59667all-gold: maybe-all-bfd
93f9b408
ILT
59668all-stage1-gold: maybe-all-stage1-bfd
59669all-stage2-gold: maybe-all-stage2-bfd
93f9b408 59670all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
59671all-stage4-gold: maybe-all-stage4-bfd
59672all-stageprofile-gold: maybe-all-stageprofile-bfd
f948b2de 59673all-stagetrain-gold: maybe-all-stagetrain-bfd
93f9b408 59674all-stagefeedback-gold: maybe-all-stagefeedback-bfd
f948b2de
NC
59675all-stageautoprofile-gold: maybe-all-stageautoprofile-bfd
59676all-stageautofeedback-gold: maybe-all-stageautofeedback-bfd
93f9b408 59677all-gold: maybe-all-build-bison
93f9b408
ILT
59678all-stage1-gold: maybe-all-build-bison
59679all-stage2-gold: maybe-all-build-bison
93f9b408 59680all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
59681all-stage4-gold: maybe-all-build-bison
59682all-stageprofile-gold: maybe-all-build-bison
f948b2de 59683all-stagetrain-gold: maybe-all-build-bison
93f9b408 59684all-stagefeedback-gold: maybe-all-build-bison
f948b2de
NC
59685all-stageautoprofile-gold: maybe-all-build-bison
59686all-stageautofeedback-gold: maybe-all-build-bison
0140d685 59687all-gold: maybe-all-gas
0140d685
L
59688all-stage1-gold: maybe-all-stage1-gas
59689all-stage2-gold: maybe-all-stage2-gas
59690all-stage3-gold: maybe-all-stage3-gas
59691all-stage4-gold: maybe-all-stage4-gas
59692all-stageprofile-gold: maybe-all-stageprofile-gas
f948b2de 59693all-stagetrain-gold: maybe-all-stagetrain-gas
0140d685 59694all-stagefeedback-gold: maybe-all-stagefeedback-gas
f948b2de
NC
59695all-stageautoprofile-gold: maybe-all-stageautoprofile-gas
59696all-stageautofeedback-gold: maybe-all-stageautofeedback-gas
e5164e97 59697check-gold: maybe-all-binutils
e5164e97
ILT
59698check-stage1-gold: maybe-all-stage1-binutils
59699check-stage2-gold: maybe-all-stage2-binutils
e5164e97 59700check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
59701check-stage4-gold: maybe-all-stage4-binutils
59702check-stageprofile-gold: maybe-all-stageprofile-binutils
f948b2de 59703check-stagetrain-gold: maybe-all-stagetrain-binutils
e5164e97 59704check-stagefeedback-gold: maybe-all-stagefeedback-binutils
f948b2de
NC
59705check-stageautoprofile-gold: maybe-all-stageautoprofile-binutils
59706check-stageautofeedback-gold: maybe-all-stageautofeedback-binutils
700d40ca 59707check-gold: maybe-all-gas
700d40ca
ILT
59708check-stage1-gold: maybe-all-stage1-gas
59709check-stage2-gold: maybe-all-stage2-gas
59710check-stage3-gold: maybe-all-stage3-gas
59711check-stage4-gold: maybe-all-stage4-gas
59712check-stageprofile-gold: maybe-all-stageprofile-gas
f948b2de 59713check-stagetrain-gold: maybe-all-stagetrain-gas
700d40ca 59714check-stagefeedback-gold: maybe-all-stagefeedback-gas
f948b2de
NC
59715check-stageautoprofile-gold: maybe-all-stageautoprofile-gas
59716check-stageautofeedback-gold: maybe-all-stageautofeedback-gas
7206a0ee 59717configure-opcodes: maybe-configure-intl
7206a0ee
JJ
59718configure-stage1-opcodes: maybe-configure-stage1-intl
59719configure-stage2-opcodes: maybe-configure-stage2-intl
59720configure-stage3-opcodes: maybe-configure-stage3-intl
59721configure-stage4-opcodes: maybe-configure-stage4-intl
59722configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
f948b2de 59723configure-stagetrain-opcodes: maybe-configure-stagetrain-intl
7206a0ee 59724configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
f948b2de
NC
59725configure-stageautoprofile-opcodes: maybe-configure-stageautoprofile-intl
59726configure-stageautofeedback-opcodes: maybe-configure-stageautofeedback-intl
9e6ce191 59727all-opcodes: maybe-all-bfd
9e6ce191
PB
59728all-stage1-opcodes: maybe-all-stage1-bfd
59729all-stage2-opcodes: maybe-all-stage2-bfd
59730all-stage3-opcodes: maybe-all-stage3-bfd
59731all-stage4-opcodes: maybe-all-stage4-bfd
59732all-stageprofile-opcodes: maybe-all-stageprofile-bfd
f948b2de 59733all-stagetrain-opcodes: maybe-all-stagetrain-bfd
9e6ce191 59734all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
f948b2de
NC
59735all-stageautoprofile-opcodes: maybe-all-stageautoprofile-bfd
59736all-stageautofeedback-opcodes: maybe-all-stageautofeedback-bfd
9e6ce191 59737all-opcodes: maybe-all-libiberty
9e6ce191
PB
59738all-stage1-opcodes: maybe-all-stage1-libiberty
59739all-stage2-opcodes: maybe-all-stage2-libiberty
59740all-stage3-opcodes: maybe-all-stage3-libiberty
59741all-stage4-opcodes: maybe-all-stage4-libiberty
59742all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
f948b2de 59743all-stagetrain-opcodes: maybe-all-stagetrain-libiberty
9e6ce191 59744all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
f948b2de
NC
59745all-stageautoprofile-opcodes: maybe-all-stageautoprofile-libiberty
59746all-stageautofeedback-opcodes: maybe-all-stageautofeedback-libiberty
7206a0ee 59747all-opcodes: maybe-all-intl
7206a0ee
JJ
59748all-stage1-opcodes: maybe-all-stage1-intl
59749all-stage2-opcodes: maybe-all-stage2-intl
59750all-stage3-opcodes: maybe-all-stage3-intl
59751all-stage4-opcodes: maybe-all-stage4-intl
59752all-stageprofile-opcodes: maybe-all-stageprofile-intl
f948b2de 59753all-stagetrain-opcodes: maybe-all-stagetrain-intl
7206a0ee 59754all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
f948b2de
NC
59755all-stageautoprofile-opcodes: maybe-all-stageautoprofile-intl
59756all-stageautofeedback-opcodes: maybe-all-stageautofeedback-intl
9e6ce191
PB
59757all-dejagnu: maybe-all-tcl
59758all-dejagnu: maybe-all-expect
59759all-dejagnu: maybe-all-tk
59760configure-expect: maybe-configure-tcl
59761configure-expect: maybe-configure-tk
59762all-expect: maybe-all-tcl
59763all-expect: maybe-all-tk
59764configure-itcl: maybe-configure-tcl
59765configure-itcl: maybe-configure-tk
59766all-itcl: maybe-all-tcl
59767all-itcl: maybe-all-tk
ae831be5 59768install-itcl: maybe-install-tcl
9b980aa1 59769install-strip-itcl: maybe-install-strip-tcl
b4a77b47 59770configure-tk: maybe-configure-tcl
ae831be5 59771all-tk: maybe-all-tcl
9e6ce191
PB
59772all-sid: maybe-all-tcl
59773all-sid: maybe-all-tk
59774install-sid: maybe-install-tcl
9b980aa1 59775install-strip-sid: maybe-install-strip-tcl
9e6ce191 59776install-sid: maybe-install-tk
9b980aa1 59777install-strip-sid: maybe-install-strip-tk
9e6ce191
PB
59778all-sim: maybe-all-readline
59779all-sim: maybe-configure-gdb
72b2455a 59780all-fastjar: maybe-all-build-texinfo
0e65dfba
NA
59781all-libctf: all-libiberty
59782all-stage1-libctf: all-stage1-libiberty
59783all-stage2-libctf: all-stage2-libiberty
59784all-stage3-libctf: all-stage3-libiberty
59785all-stage4-libctf: all-stage4-libiberty
59786all-stageprofile-libctf: all-stageprofile-libiberty
f948b2de 59787all-stagetrain-libctf: all-stagetrain-libiberty
0e65dfba 59788all-stagefeedback-libctf: all-stagefeedback-libiberty
f948b2de
NC
59789all-stageautoprofile-libctf: all-stageautoprofile-libiberty
59790all-stageautofeedback-libctf: all-stageautofeedback-libiberty
0e65dfba
NA
59791all-libctf: maybe-all-bfd
59792all-stage1-libctf: maybe-all-stage1-bfd
59793all-stage2-libctf: maybe-all-stage2-bfd
59794all-stage3-libctf: maybe-all-stage3-bfd
59795all-stage4-libctf: maybe-all-stage4-bfd
59796all-stageprofile-libctf: maybe-all-stageprofile-bfd
f948b2de 59797all-stagetrain-libctf: maybe-all-stagetrain-bfd
0e65dfba 59798all-stagefeedback-libctf: maybe-all-stagefeedback-bfd
f948b2de
NC
59799all-stageautoprofile-libctf: maybe-all-stageautoprofile-bfd
59800all-stageautofeedback-libctf: maybe-all-stageautofeedback-bfd
0e65dfba
NA
59801all-libctf: maybe-all-zlib
59802all-stage1-libctf: maybe-all-stage1-zlib
59803all-stage2-libctf: maybe-all-stage2-zlib
59804all-stage3-libctf: maybe-all-stage3-zlib
59805all-stage4-libctf: maybe-all-stage4-zlib
59806all-stageprofile-libctf: maybe-all-stageprofile-zlib
f948b2de 59807all-stagetrain-libctf: maybe-all-stagetrain-zlib
0e65dfba 59808all-stagefeedback-libctf: maybe-all-stagefeedback-zlib
f948b2de
NC
59809all-stageautoprofile-libctf: maybe-all-stageautoprofile-zlib
59810all-stageautofeedback-libctf: maybe-all-stageautofeedback-zlib
9698cf9b
NA
59811configure-libctf: maybe-all-bfd
59812configure-stage1-libctf: maybe-all-stage1-bfd
59813configure-stage2-libctf: maybe-all-stage2-bfd
59814configure-stage3-libctf: maybe-all-stage3-bfd
59815configure-stage4-libctf: maybe-all-stage4-bfd
59816configure-stageprofile-libctf: maybe-all-stageprofile-bfd
f948b2de 59817configure-stagetrain-libctf: maybe-all-stagetrain-bfd
9698cf9b 59818configure-stagefeedback-libctf: maybe-all-stagefeedback-bfd
f948b2de
NC
59819configure-stageautoprofile-libctf: maybe-all-stageautoprofile-bfd
59820configure-stageautofeedback-libctf: maybe-all-stageautofeedback-bfd
9698cf9b
NA
59821configure-libctf: maybe-all-intl
59822configure-stage1-libctf: maybe-all-stage1-intl
59823configure-stage2-libctf: maybe-all-stage2-intl
59824configure-stage3-libctf: maybe-all-stage3-intl
59825configure-stage4-libctf: maybe-all-stage4-intl
59826configure-stageprofile-libctf: maybe-all-stageprofile-intl
f948b2de 59827configure-stagetrain-libctf: maybe-all-stagetrain-intl
9698cf9b 59828configure-stagefeedback-libctf: maybe-all-stagefeedback-intl
f948b2de
NC
59829configure-stageautoprofile-libctf: maybe-all-stageautoprofile-intl
59830configure-stageautofeedback-libctf: maybe-all-stageautofeedback-intl
9698cf9b
NA
59831configure-libctf: maybe-all-zlib
59832configure-stage1-libctf: maybe-all-stage1-zlib
59833configure-stage2-libctf: maybe-all-stage2-zlib
59834configure-stage3-libctf: maybe-all-stage3-zlib
59835configure-stage4-libctf: maybe-all-stage4-zlib
59836configure-stageprofile-libctf: maybe-all-stageprofile-zlib
f948b2de 59837configure-stagetrain-libctf: maybe-all-stagetrain-zlib
9698cf9b 59838configure-stagefeedback-libctf: maybe-all-stagefeedback-zlib
f948b2de
NC
59839configure-stageautoprofile-libctf: maybe-all-stageautoprofile-zlib
59840configure-stageautofeedback-libctf: maybe-all-stageautofeedback-zlib
9698cf9b
NA
59841configure-libctf: maybe-all-libiconv
59842configure-stage1-libctf: maybe-all-stage1-libiconv
59843configure-stage2-libctf: maybe-all-stage2-libiconv
59844configure-stage3-libctf: maybe-all-stage3-libiconv
59845configure-stage4-libctf: maybe-all-stage4-libiconv
59846configure-stageprofile-libctf: maybe-all-stageprofile-libiconv
f948b2de 59847configure-stagetrain-libctf: maybe-all-stagetrain-libiconv
9698cf9b 59848configure-stagefeedback-libctf: maybe-all-stagefeedback-libiconv
f948b2de
NC
59849configure-stageautoprofile-libctf: maybe-all-stageautoprofile-libiconv
59850configure-stageautofeedback-libctf: maybe-all-stageautofeedback-libiconv
72b2455a 59851all-bison: maybe-all-build-texinfo
72b2455a 59852all-flex: maybe-all-build-bison
9e6ce191 59853all-flex: maybe-all-m4
72b2455a 59854all-flex: maybe-all-build-texinfo
72b2455a 59855all-m4: maybe-all-build-texinfo
b4a77b47 59856configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 59857all-target-fastjar: maybe-all-target-zlib
e552509b 59858configure-target-libgo: maybe-configure-target-libffi
8e71395b 59859all-target-libgo: maybe-all-target-libbacktrace
e552509b 59860all-target-libgo: maybe-all-target-libffi
9417cd2f 59861all-target-libgo: maybe-all-target-libatomic
f948b2de
NC
59862configure-target-libphobos: maybe-configure-target-libbacktrace
59863configure-target-libphobos: maybe-configure-target-zlib
59864all-target-libphobos: maybe-all-target-libbacktrace
59865all-target-libphobos: maybe-all-target-zlib
59866all-target-libphobos: maybe-all-target-libatomic
cff87f51 59867configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
59868configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
59869configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
59870configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
59871configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
59872configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
f948b2de 59873configure-stagetrain-target-libstdc++-v3: maybe-configure-stagetrain-target-libgomp
911e63d0 59874configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
f948b2de
NC
59875configure-stageautoprofile-target-libstdc++-v3: maybe-configure-stageautoprofile-target-libgomp
59876configure-stageautofeedback-target-libstdc++-v3: maybe-configure-stageautofeedback-target-libgomp
5286fdef 59877configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
59878configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
59879configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
59880configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
59881configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
59882configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
f948b2de 59883configure-stagetrain-target-libsanitizer: maybe-all-stagetrain-target-libstdc++-v3
5eb08693 59884configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
f948b2de
NC
59885configure-stageautoprofile-target-libsanitizer: maybe-all-stageautoprofile-target-libstdc++-v3
59886configure-stageautofeedback-target-libsanitizer: maybe-all-stageautofeedback-target-libstdc++-v3
95e43135 59887configure-target-libvtv: maybe-all-target-libstdc++-v3
95e43135
JBG
59888configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
59889configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
59890configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
59891configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
59892configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
f948b2de 59893configure-stagetrain-target-libvtv: maybe-all-stagetrain-target-libstdc++-v3
95e43135 59894configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
f948b2de
NC
59895configure-stageautoprofile-target-libvtv: maybe-all-stageautoprofile-target-libstdc++-v3
59896configure-stageautofeedback-target-libvtv: maybe-all-stageautofeedback-target-libstdc++-v3
911e63d0 59897all-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
59898all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
59899all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
59900all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
59901all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
59902all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
f948b2de 59903all-stagetrain-target-libstdc++-v3: maybe-configure-stagetrain-target-libgomp
911e63d0 59904all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
f948b2de
NC
59905all-stageautoprofile-target-libstdc++-v3: maybe-configure-stageautoprofile-target-libgomp
59906all-stageautofeedback-target-libstdc++-v3: maybe-configure-stageautofeedback-target-libgomp
9417cd2f
JBG
59907install-target-libgo: maybe-install-target-libatomic
59908install-target-libgfortran: maybe-install-target-libquadmath
59909install-target-libgfortran: maybe-install-target-libgcc
f948b2de 59910install-target-libphobos: maybe-install-target-libatomic
3dae1673 59911install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 59912install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
59913install-target-libvtv: maybe-install-target-libstdc++-v3
59914install-target-libvtv: maybe-install-target-libgcc
1b6c0831
L
59915install-target-liboffloadmic: maybe-install-target-libstdc++-v3
59916install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
59917install-target-libitm: maybe-install-target-libgcc
59918install-target-libobjc: maybe-install-target-libgcc
59919install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 59920all-target-libgloss: maybe-all-target-newlib
9e6ce191 59921all-target-winsup: maybe-all-target-libtermcap
e552509b 59922configure-target-libgfortran: maybe-all-target-libquadmath
68996839 59923configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
59924
59925
4119873a
AO
59926@if gcc-bootstrap
59927configure-gnattools: stage_last
59928configure-libcc1: stage_last
59929configure-utils: stage_last
59930configure-gdb: stage_last
59931configure-gprof: stage_last
59932configure-sid: stage_last
59933configure-sim: stage_last
59934configure-fastjar: stage_last
59935configure-bison: stage_last
59936configure-flex: stage_last
59937configure-m4: stage_last
59938@endif gcc-bootstrap
59939
59940@unless gcc-bootstrap
59941all-gnattools: maybe-all-target-libstdc++-v3
59942configure-libcc1: maybe-configure-gcc
59943all-libcc1: maybe-all-gcc
59944all-utils: maybe-all-libiberty
59945configure-gdb: maybe-all-intl
59946configure-gdb: maybe-all-bfd
59947configure-gdb: maybe-all-libiconv
59948all-gdb: maybe-all-libiberty
59949all-gdb: maybe-all-libiconv
59950all-gdb: maybe-all-opcodes
59951all-gdb: maybe-all-libdecnumber
59952configure-gprof: maybe-configure-intl
59953all-gprof: maybe-all-libiberty
59954all-gprof: maybe-all-bfd
59955all-gprof: maybe-all-opcodes
59956all-gprof: maybe-all-intl
59957all-gprof: maybe-all-gas
59958all-sid: maybe-all-libiberty
59959all-sid: maybe-all-bfd
59960all-sid: maybe-all-opcodes
59961configure-sim: maybe-configure-intl
59962all-sim: maybe-all-intl
59963all-sim: maybe-all-libiberty
59964all-sim: maybe-all-bfd
59965all-sim: maybe-all-opcodes
59966all-fastjar: maybe-all-zlib
59967all-fastjar: maybe-all-libiberty
59968all-bison: maybe-all-intl
59969all-flex: maybe-all-intl
59970all-m4: maybe-all-intl
59971configure-target-libgo: maybe-all-target-libstdc++-v3
59972configure-target-liboffloadmic: maybe-configure-target-libgomp
59973all-target-liboffloadmic: maybe-all-target-libgomp
59974configure-target-newlib: maybe-all-binutils
59975configure-target-newlib: maybe-all-ld
59976@endunless gcc-bootstrap
59977
6aa8ef82
DJ
59978# Dependencies for target modules on other target modules are
59979# described by lang_env_dependencies; the defaults apply to anything
59980# not mentioned there.
59981
59982
59983@if gcc-bootstrap
e8a5fa9c
RW
59984configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
59985configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
59986configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
59987configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
59988configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
f948b2de 59989configure-stagetrain-target-libstdc++-v3: maybe-all-stagetrain-target-libgcc
e8a5fa9c 59990configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
f948b2de
NC
59991configure-stageautoprofile-target-libstdc++-v3: maybe-all-stageautoprofile-target-libgcc
59992configure-stageautofeedback-target-libstdc++-v3: maybe-all-stageautofeedback-target-libgcc
5eb08693
L
59993configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
59994configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
59995configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
59996configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
59997configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
f948b2de 59998configure-stagetrain-target-libsanitizer: maybe-all-stagetrain-target-libgcc
5eb08693 59999configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
f948b2de
NC
60000configure-stageautoprofile-target-libsanitizer: maybe-all-stageautoprofile-target-libgcc
60001configure-stageautofeedback-target-libsanitizer: maybe-all-stageautofeedback-target-libgcc
1b6c0831
L
60002configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
60003configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
60004configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
60005configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
60006configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
f948b2de 60007configure-stagetrain-target-libmpx: maybe-all-stagetrain-target-libgcc
1b6c0831 60008configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
f948b2de
NC
60009configure-stageautoprofile-target-libmpx: maybe-all-stageautoprofile-target-libgcc
60010configure-stageautofeedback-target-libmpx: maybe-all-stageautofeedback-target-libgcc
95e43135
JBG
60011configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
60012configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
60013configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
60014configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
60015configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
f948b2de 60016configure-stagetrain-target-libvtv: maybe-all-stagetrain-target-libgcc
95e43135 60017configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
f948b2de
NC
60018configure-stageautoprofile-target-libvtv: maybe-all-stageautoprofile-target-libgcc
60019configure-stageautofeedback-target-libvtv: maybe-all-stageautofeedback-target-libgcc
911e63d0
JR
60020configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
60021configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
60022configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
60023configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
60024configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
f948b2de 60025configure-stagetrain-target-libgomp: maybe-all-stagetrain-target-libgcc
911e63d0 60026configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
f948b2de
NC
60027configure-stageautoprofile-target-libgomp: maybe-all-stageautoprofile-target-libgcc
60028configure-stageautofeedback-target-libgomp: maybe-all-stageautofeedback-target-libgcc
6aa8ef82
DJ
60029@endif gcc-bootstrap
60030
60031@if gcc-no-bootstrap
60032configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 60033configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 60034configure-target-libmpx: maybe-all-target-libgcc
95e43135 60035configure-target-libvtv: maybe-all-target-libgcc
1b6c0831 60036configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 60037configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 60038configure-target-newlib: maybe-all-target-libgcc
2bf680c4 60039configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 60040configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
60041configure-target-libgfortran: maybe-all-target-libgcc
60042configure-target-libobjc: maybe-all-target-libgcc
e552509b 60043configure-target-libgo: maybe-all-target-libgcc
f948b2de
NC
60044configure-target-libhsail-rt: maybe-all-target-libgcc
60045configure-target-libphobos: maybe-all-target-libgcc
6aa8ef82
DJ
60046configure-target-libtermcap: maybe-all-target-libgcc
60047configure-target-winsup: maybe-all-target-libgcc
60048configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82 60049configure-target-libffi: maybe-all-target-libgcc
6aa8ef82 60050configure-target-zlib: maybe-all-target-libgcc
6aa8ef82
DJ
60051configure-target-rda: maybe-all-target-libgcc
60052configure-target-libada: maybe-all-target-libgcc
60053configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
60054configure-target-libitm: maybe-all-target-libgcc
60055configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
60056@endif gcc-no-bootstrap
60057
60058
60059configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
60060
5286fdef
L
60061configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
60062
1b6c0831
L
60063configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
60064
95e43135
JBG
60065configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
60066
1b6c0831
L
60067configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
60068configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
60069
6aa8ef82
DJ
60070configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
60071
60072
60073
2bf680c4
ILT
60074configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
60075
e552509b
ILT
60076configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
60077
6aa8ef82
DJ
60078configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
60079
60080configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
60081
e552509b
ILT
60082configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
60083
f948b2de
NC
60084configure-target-libhsail-rt: maybe-all-target-newlib maybe-all-target-libgloss
60085
60086configure-target-libphobos: maybe-all-target-newlib maybe-all-target-libgloss
60087
6aa8ef82
DJ
60088configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
60089
60090configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
60091
60092
6aa8ef82 60093configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 60094configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82 60095
6aa8ef82
DJ
60096configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
60097
6aa8ef82
DJ
60098configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
60099
60100configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
60101
60102configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
60103
7ec59b9e
L
60104configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
60105configure-target-libitm: maybe-all-target-libstdc++-v3
60106
60107configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
60108
6aa8ef82 60109
907be67c 60110CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 60111GDB_TK = @GDB_TK@
907be67c
DJ
60112INSTALL_GDB_TK = @INSTALL_GDB_TK@
60113configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 60114all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 60115install-gdb: $(INSTALL_GDB_TK)
907a7241 60116
a2cc058a
NN
60117# Serialization dependencies. Host configures don't work well in parallel to
60118# each other, due to contention over config.cache. Target configures and
60119# build configures are similar.
60120@serialization_dependencies@
60121
15723a45
NN
60122# --------------------------------
60123# Regenerating top level configury
60124# --------------------------------
252b5132 60125
14a2a2f1 60126# Rebuilding Makefile.in, using autogen.
43be203f 60127AUTOGEN = autogen
6b784d9f 60128$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 60129 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 60130
a0da8069 60131# Rebuilding Makefile.
43be203f
AO
60132Makefile: $(srcdir)/Makefile.in config.status
60133 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
60134
479759c8 60135config.status: configure
10ecffb9 60136 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 60137
a0da8069 60138# Rebuilding configure.
43be203f 60139AUTOCONF = autoconf
da888c87 60140$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
0597bdc4
AM
60141 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
60142 $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
60143 $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
60144 $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
43be203f 60145 cd $(srcdir) && $(AUTOCONF)
252b5132 60146
3728fade
NN
60147# ------------------------------
60148# Special directives to GNU Make
60149# ------------------------------
60150
3728fade
NN
60151# Don't pass command-line variables to submakes.
60152.NOEXPORT:
60153MAKEOVERRIDES=
60154
252b5132 60155# end of Makefile.in
This page took 5.53303 seconds and 4 git commands to generate.