]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - Makefile.in
aarch64: remove unnecessary loc_hash_table traversal
[thirdparty/binutils-gdb.git] / Makefile.in
CommitLineData
405ea7a0
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
252b5132
RH
3#
4# Makefile for directory with subdirs to build.
5cec67bf 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
52cf9762 6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
e3f56a99 7# 2011, 2012, 2013, 2014, 2015, 2016, 2017
1b05fbbd 8# Free Software Foundation
252b5132
RH
9#
10# This file is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
e8a5fa9c 12# the Free Software Foundation; either version 3 of the License, or
252b5132
RH
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
e8a5fa9c
RW
21# along with this program; see the file COPYING3. If not see
22# <http://www.gnu.org/licenses/>.
252b5132
RH
23#
24
0bb6ea20
HPN
25# First, test for a proper version of make, but only where one is required.
26
27@if gcc
28ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
29$(error GNU make version 3.80 or newer is required.)
30endif
31@endif gcc
32
50212802
NN
33# -------------------------------
34# Standard Autoconf-set variables
35# -------------------------------
583d52d7 36VPATH=@srcdir@
583d52d7 37
c6b750e1 38build_alias=@build_noncanonical@
4b900473
PB
39build_vendor=@build_vendor@
40build_os=@build_os@
7f121bbf 41build=@build@
c6b750e1 42host_alias=@host_noncanonical@
4b900473
PB
43host_vendor=@host_vendor@
44host_os=@host_os@
7f121bbf 45host=@host@
c6b750e1 46target_alias=@target_noncanonical@
4b900473
PB
47target_vendor=@target_vendor@
48target_os=@target_os@
7f121bbf 49target=@target@
583d52d7 50
50212802 51program_transform_name = @program_transform_name@
403d9505
NN
52
53prefix = @prefix@
54exec_prefix = @exec_prefix@
55
50212802
NN
56srcdir = @srcdir@
57
403d9505
NN
58bindir = @bindir@
59sbindir = @sbindir@
60libexecdir = @libexecdir@
61datadir = @datadir@
62sysconfdir = @sysconfdir@
63sharedstatedir = @sharedstatedir@
64localstatedir = @localstatedir@
65libdir = @libdir@
66includedir = @includedir@
67oldincludedir = @oldincludedir@
68infodir = @infodir@
108a6f8e
CD
69datarootdir = @datarootdir@
70docdir = @docdir@
a3ca38d2 71pdfdir = @pdfdir@
108a6f8e 72htmldir = @htmldir@
403d9505 73mandir = @mandir@
252b5132
RH
74man1dir = $(mandir)/man1
75man2dir = $(mandir)/man2
76man3dir = $(mandir)/man3
77man4dir = $(mandir)/man4
78man5dir = $(mandir)/man5
79man6dir = $(mandir)/man6
80man7dir = $(mandir)/man7
81man8dir = $(mandir)/man8
82man9dir = $(mandir)/man9
d5de0a84 83
e5c3f801
NN
84INSTALL = @INSTALL@
85INSTALL_PROGRAM = @INSTALL_PROGRAM@
86INSTALL_SCRIPT = @INSTALL_SCRIPT@
87INSTALL_DATA = @INSTALL_DATA@
656fdd47
PB
88LN = @LN@
89LN_S = @LN_S@
77d7106f
AM
90MAINT = @MAINT@
91MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
92MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
252b5132 93
50212802
NN
94# -------------------------------------------------
95# Miscellaneous non-standard autoconf-set variables
96# -------------------------------------------------
252b5132 97
50212802
NN
98# The gcc driver likes to know the arguments it was configured with.
99TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
252b5132 100
50212802
NN
101tooldir = @tooldir@
102build_tooldir = @build_tooldir@
252b5132 103
50212802
NN
104# This is the name of the environment variable used for the path to
105# the libraries.
106RPATH_ENVVAR = @RPATH_ENVVAR@
252b5132 107
3bbd2f8f
AL
108# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
109# is used instead of the directory itself to avoid including built
110# executables in PATH.
111GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
112
50212802
NN
113# Build programs are put under this directory.
114BUILD_SUBDIR = @build_subdir@
115# This is set by the configure script to the arguments to use when configuring
116# directories built for the build system.
a7254363 117BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
6a9cf61e 118
e8a5fa9c
RW
119# Linker flags to use on the host, for stage1 or when not
120# bootstrapping.
121STAGE1_LDFLAGS = @stage1_ldflags@
122
123# Libraries to use on the host, for stage1 or when not bootstrapping.
124STAGE1_LIBS = @stage1_libs@
125
126# Linker flags to use for stage2 and later.
127POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
128
129# Libraries to use for stage2 and later.
130POSTSTAGE1_LIBS = @poststage1_libs@
131
6a9cf61e
PB
132# This is the list of variables to export in the environment when
133# configuring any subdirectory. It must also be exported whenever
134# recursing into a build directory in case that directory's Makefile
135# re-runs configure.
136BASE_EXPORTS = \
137 FLEX="$(FLEX)"; export FLEX; \
138 LEX="$(LEX)"; export LEX; \
139 BISON="$(BISON)"; export BISON; \
140 YACC="$(YACC)"; export YACC; \
141 M4="$(M4)"; export M4; \
8e957354
PB
142 SED="$(SED)"; export SED; \
143 AWK="$(AWK)"; export AWK; \
6a9cf61e
PB
144 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
145
378fce5b 146# This is the list of variables to export in the environment when
6a9cf61e 147# configuring subdirectories for the build system.
378fce5b 148BUILD_EXPORTS = \
6a9cf61e 149 $(BASE_EXPORTS) \
378fce5b
DD
150 AR="$(AR_FOR_BUILD)"; export AR; \
151 AS="$(AS_FOR_BUILD)"; export AS; \
152 CC="$(CC_FOR_BUILD)"; export CC; \
153 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
154 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
155 CXX="$(CXX_FOR_BUILD)"; export CXX; \
156 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
378fce5b 157 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
e552509b
ILT
158 GOC="$(GOC_FOR_BUILD)"; export GOC; \
159 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \
378fce5b
DD
160 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
161 LD="$(LD_FOR_BUILD)"; export LD; \
162 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
163 NM="$(NM_FOR_BUILD)"; export NM; \
164 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
0c24b341
NC
165 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
166 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
50212802 167
6641ce42 168# These variables must be set on the make command line for directories
2440009d 169# built for the build system to override those in BASE_FLAGS_TO_PASS.
6641ce42
JM
170EXTRA_BUILD_FLAGS = \
171 CFLAGS="$(CFLAGS_FOR_BUILD)" \
172 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
173
50212802
NN
174# This is the list of directories to built for the host system.
175SUBDIRS = @configdirs@
911e63d0 176TARGET_CONFIGDIRS = @target_configdirs@
50212802
NN
177# This is set by the configure script to the arguments to use when configuring
178# directories built for the host system.
179HOST_CONFIGARGS = @host_configargs@
b00612cc
PB
180# Host programs are put under this directory, which is . except if building
181# with srcdir=..
182HOST_SUBDIR = @host_subdir@
378fce5b 183# This is the list of variables to export in the environment when
be01d343
PB
184# configuring subdirectories for the host system. We need to pass
185# some to the GCC configure because of its hybrid host/target nature.
378fce5b 186HOST_EXPORTS = \
6a9cf61e 187 $(BASE_EXPORTS) \
378fce5b 188 CC="$(CC)"; export CC; \
da888c87 189 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
378fce5b
DD
190 CFLAGS="$(CFLAGS)"; export CFLAGS; \
191 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
192 CXX="$(CXX)"; export CXX; \
193 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1b05fbbd 194 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
9b980aa1 195 GOC="$(GOC)"; export GOC; \
378fce5b
DD
196 AR="$(AR)"; export AR; \
197 AS="$(AS)"; export AS; \
198 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
199 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
200 LD="$(LD)"; export LD; \
e8a5fa9c 201 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
378fce5b
DD
202 NM="$(NM)"; export NM; \
203 RANLIB="$(RANLIB)"; export RANLIB; \
204 WINDRES="$(WINDRES)"; export WINDRES; \
0c24b341 205 WINDMC="$(WINDMC)"; export WINDMC; \
378fce5b 206 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
95b6a1f2 207 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
b121d7d4 208 READELF="$(READELF)"; export READELF; \
be01d343
PB
209 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
210 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
211 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
212 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
213 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
214 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
6b91c541 215 OBJCOPY_FOR_TARGET="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY_FOR_TARGET; \
be01d343 216 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
b121d7d4 217 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
378fce5b 218 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
e8a5fa9c 219 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
378fce5b 220 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02 221 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1b6c0831 222 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
7ec59b9e 223 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
e3f56a99 224 ISLVER="$(HOST_ISLVER)"; export ISLVER; \
22121df0
L
225 LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
226 LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
4849dfd8 227 XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \
f70224b5
PB
228@if gcc-bootstrap
229 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
230@endif gcc-bootstrap
e90269c8 231 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
378fce5b 232
1f53ca9a
AO
233POSTSTAGE1_CXX_EXPORT = \
234 CXX='$(CXX)'; export CXX; \
235 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
236@if target-libstdc++-v3-bootstrap
237# Override the above if we're bootstrapping C++.
238POSTSTAGE1_CXX_EXPORT = \
d2489204 239 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
1f53ca9a 240 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
1d14850f 241 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
ffdd6afc 242 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
abca8d87 243 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
244 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
245 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$s/libstdc++-v3/libsupc++ \
ffdd6afc
ILT
246 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
247 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
248 export CXX; \
1f53ca9a
AO
249 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
250@endif target-libstdc++-v3-bootstrap
251
378fce5b 252# Similar, for later GCC stages.
d545f33b 253POSTSTAGE1_HOST_EXPORTS = \
7ffa0b57 254 $(HOST_EXPORTS) \
b00612cc 255 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
1b05fbbd
AO
256 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
257 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
258 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
1f53ca9a 259 $(POSTSTAGE1_CXX_EXPORT) \
1b6c0831 260 $(LTO_EXPORTS) \
e8a5fa9c
RW
261 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
262 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
263 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
50212802 264
50212802
NN
265# Target libraries are put under this directory:
266TARGET_SUBDIR = @target_subdir@
267# This is set by the configure script to the arguments to use when configuring
268# directories built for the target.
a7254363 269TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
378fce5b 270# This is the list of variables to export in the environment when
f2b2dd91 271# configuring subdirectories for the target system.
378fce5b 272BASE_TARGET_EXPORTS = \
6a9cf61e 273 $(BASE_EXPORTS) \
378fce5b 274 AR="$(AR_FOR_TARGET)"; export AR; \
be01d343 275 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1b05fbbd
AO
276 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
277 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
378fce5b 278 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
06bcb89d 279 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1b05fbbd 280 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1b05fbbd 281 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
e552509b 282 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
378fce5b 283 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
be01d343 284 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
378fce5b 285 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7e0f7140 286 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
be01d343 287 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
5ae72758 288 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
6b91c541 289 OBJCOPY="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY; \
378fce5b 290 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
b121d7d4 291 READELF="$(READELF_FOR_TARGET)"; export READELF; \
7e0f7140 292 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
315b3b02 293 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0c24b341 294 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f2b2dd91
RW
295@if gcc-bootstrap
296 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
297@endif gcc-bootstrap
911e63d0
JR
298 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
299 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
378fce5b
DD
300
301RAW_CXX_TARGET_EXPORTS = \
302 $(BASE_TARGET_EXPORTS) \
303 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
1b05fbbd 304 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
378fce5b
DD
305
306NORMAL_TARGET_EXPORTS = \
307 $(BASE_TARGET_EXPORTS) \
1b05fbbd 308 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
50212802 309
4b1cb4fe
DD
310# Where to find GMP
311HOST_GMPLIBS = @gmplibs@
312HOST_GMPINC = @gmpinc@
313
4849dfd8 314# Where to find isl
1b6c0831 315HOST_ISLLIBS = @isllibs@
7ec59b9e 316HOST_ISLINC = @islinc@
e3f56a99 317HOST_ISLVER = @islver@
e28c595f 318
700d40ca
ILT
319# Where to find libelf
320HOST_LIBELFLIBS = @libelflibs@
321HOST_LIBELFINC = @libelfinc@
322
50212802
NN
323# ----------------------------------------------
324# Programs producing files for the BUILD machine
325# ----------------------------------------------
326
f6c1938b 327SHELL = @SHELL@
50212802
NN
328
329# pwd command to use. Allow user to override default by setting PWDCMD in
330# the environment to account for automounters. The make variable must not
331# be called PWDCMD, otherwise the value set here is passed to make
332# subprocesses and overrides the setting from the user's environment.
b40e3958
L
333# Don't use PWD since it is a common shell environment variable and we
334# don't want to corrupt it.
335PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
336
337# compilers to use to create programs which must be run in the build
338# environment.
b5714970
PB
339AR_FOR_BUILD = @AR_FOR_BUILD@
340AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 341CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 342CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
343CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
344CXX_FOR_BUILD = @CXX_FOR_BUILD@
345DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
b5714970 346GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 347GOC_FOR_BUILD = @GOC_FOR_BUILD@
b5714970
PB
348LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
349LD_FOR_BUILD = @LD_FOR_BUILD@
350NM_FOR_BUILD = @NM_FOR_BUILD@
351RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
352WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
353WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
354
355# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
356# here so that they can be overridden by Makefile fragments.
50212802
NN
357BUILD_PREFIX = @BUILD_PREFIX@
358BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 359
0df3d27f
PB
360# Flags to pass to stage2 and later makes. They are defined
361# here so that they can be overridden by Makefile fragments.
362BOOT_CFLAGS= -g -O2
f6d183c0 363BOOT_LDFLAGS=
d7b9dae9 364BOOT_ADAFLAGS= -gnatpg
0df3d27f 365
8e957354
PB
366AWK = @AWK@
367SED = @SED@
be01d343
PB
368BISON = @BISON@
369YACC = @YACC@
370FLEX = @FLEX@
371LEX = @LEX@
372M4 = @M4@
373MAKEINFO = @MAKEINFO@
374EXPECT = @EXPECT@
375RUNTEST = @RUNTEST@
252b5132 376
e3f56a99 377AUTO_PROFILE = gcc-auto-profile -c 1000000
05a13254 378
252b5132
RH
379# This just becomes part of the MAKEINFO definition passed down to
380# sub-makes. It lets flags be given on the command line while still
381# using the makeinfo from the object tree.
62a3fc85
DD
382# (Default to avoid splitting info files by setting the threshold high.)
383MAKEINFOFLAGS = --split-size=5000000
252b5132 384
50212802
NN
385# ---------------------------------------------
386# Programs producing files for the HOST machine
387# ---------------------------------------------
252b5132 388
50212802 389AS = @AS@
50212802
NN
390AR = @AR@
391AR_FLAGS = rc
50212802 392CC = @CC@
50212802 393CXX = @CXX@
50212802 394DLLTOOL = @DLLTOOL@
50212802 395LD = @LD@
be01d343
PB
396LIPO = @LIPO@
397NM = @NM@
80911fe1 398OBJDUMP = @OBJDUMP@
50212802 399RANLIB = @RANLIB@
b121d7d4 400READELF = @READELF@
be01d343 401STRIP = @STRIP@
50212802 402WINDRES = @WINDRES@
0c24b341 403WINDMC = @WINDMC@
252b5132 404
a0323144
PB
405GNATBIND = @GNATBIND@
406GNATMAKE = @GNATMAKE@
407
be01d343 408CFLAGS = @CFLAGS@
b2edfdd2 409LDFLAGS = @LDFLAGS@
be01d343
PB
410LIBCFLAGS = $(CFLAGS)
411CXXFLAGS = @CXXFLAGS@
412LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
e552509b 413GOCFLAGS = $(CFLAGS)
50212802 414
05a13254
NC
415CREATE_GCOV = create_gcov
416
1b05fbbd
AO
417TFLAGS =
418
419# Defaults for all stages; some are overridden below.
420
421STAGE_CFLAGS = $(BOOT_CFLAGS)
422STAGE_TFLAGS = $(TFLAGS)
423STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
424
425
426# Defaults for stage 1; some are overridden below.
427STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
428STAGE1_CXXFLAGS = $(CXXFLAGS)
429@if target-libstdc++-v3-bootstrap
430# Override the above if we're bootstrapping C++.
431STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
432@endif target-libstdc++-v3-bootstrap
1b05fbbd 433STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 434STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
435
436# Defaults for stage 2; some are overridden below.
437STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
438STAGE2_CXXFLAGS = $(CXXFLAGS)
439@if target-libstdc++-v3-bootstrap
440# Override the above if we're bootstrapping C++.
441STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
442@endif target-libstdc++-v3-bootstrap
1b05fbbd 443STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 444STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
445
446# Defaults for stage 3; some are overridden below.
447STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
448STAGE3_CXXFLAGS = $(CXXFLAGS)
449@if target-libstdc++-v3-bootstrap
450# Override the above if we're bootstrapping C++.
451STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
452@endif target-libstdc++-v3-bootstrap
1b05fbbd 453STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 454STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
455
456# Defaults for stage 4; some are overridden below.
457STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
458STAGE4_CXXFLAGS = $(CXXFLAGS)
459@if target-libstdc++-v3-bootstrap
460# Override the above if we're bootstrapping C++.
461STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
462@endif target-libstdc++-v3-bootstrap
1b05fbbd 463STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 464STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
465
466# Defaults for stage profile; some are overridden below.
467STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
468STAGEprofile_CXXFLAGS = $(CXXFLAGS)
469@if target-libstdc++-v3-bootstrap
470# Override the above if we're bootstrapping C++.
471STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
472@endif target-libstdc++-v3-bootstrap
1b05fbbd 473STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 474STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
475
476# Defaults for stage feedback; some are overridden below.
477STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
478STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
479@if target-libstdc++-v3-bootstrap
480# Override the above if we're bootstrapping C++.
481STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
482@endif target-libstdc++-v3-bootstrap
1b05fbbd 483STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 484STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
485
486
22121df0
L
487# By default, C and C++ are the only stage1 languages, because they are the
488# only ones we require to build with the bootstrap compiler, and also the
489# only ones useful for building stage2.
8a0d8a5c 490
1b05fbbd 491STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
492STAGE1_CHECKING = @stage1_checking@
493STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
494# * We force-disable intermodule optimizations, even if
495# --enable-intermodule was passed, since the installed compiler
496# probably can't handle them. Luckily, autoconf always respects
497# the last argument when conflicting --enable arguments are passed.
498# * Likewise, we force-disable coverage flags, since the installed
499# compiler probably has never heard of them.
880b18d1 500# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 501STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 502 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
503 --disable-build-format-warnings
8a0d8a5c 504
1b05fbbd
AO
505STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
506STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 507
e3f56a99
NC
508STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
509STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 510
05a13254
NC
511STAGEautoprofile_CFLAGS = $(STAGE2_CFLAGS) -g
512STAGEautoprofile_TFLAGS = $(STAGE2_TFLAGS)
513
514STAGEautofeedback_CFLAGS = $(STAGE3_CFLAGS)
515STAGEautofeedback_TFLAGS = $(STAGE3_TFLAGS)
516
8520c408
AO
517do-compare = @do_compare@
518do-compare3 = $(do-compare)
8520c408 519
50212802
NN
520# -----------------------------------------------
521# Programs producing files for the TARGET machine
522# -----------------------------------------------
0da52010 523
50212802 524AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 525AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 526CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 527
50212802
NN
528# If GCC_FOR_TARGET is not overriden on the command line, then this
529# variable is passed down to the gcc Makefile, where it is used to
530# build libgcc2.a. We define it here so that it can itself be
531# overridden on the command line.
1b05fbbd
AO
532GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
533CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
534RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
1b05fbbd 535GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 536GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 537DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 538LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 539
7e0f7140 540LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 541NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 542OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 543OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
852e5f18 544RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 545READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 546STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 547WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 548WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 549
be01d343
PB
550COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
551COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
552COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
553
7f6ef0c0
PB
554CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
555CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 556
be01d343
PB
557LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
558LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 559LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 560GOCFLAGS_FOR_TARGET = -O2 -g
50212802 561
1b05fbbd
AO
562FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
563SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
564DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
565
566XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
567
50212802
NN
568# ------------------------------------
569# Miscellaneous targets and flag lists
570# ------------------------------------
571
252b5132
RH
572# The first rule in the file had better be this one. Don't put any above it.
573# This lives here to allow makefile fragments to contain dependencies.
f70224b5 574all:
252b5132 575
252b5132 576#### host and target specific makefile fragments come in here.
a0da8069
NN
577@target_makefile_frag@
578@alphaieee_frag@
579@ospace_frag@
580@host_makefile_frag@
252b5132
RH
581###
582
e90269c8 583# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 584# so that programs built for the target machine work.
e3f56a99 585TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libsanitizer)$(TARGET_LIB_PATH_libmpx)$(TARGET_LIB_PATH_libvtv)$(TARGET_LIB_PATH_libcilkrts)$(TARGET_LIB_PATH_liboffloadmic)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(TARGET_LIB_PATH_libitm)$(TARGET_LIB_PATH_libatomic)$(HOST_LIB_PATH_gcc)
e90269c8
PB
586
587@if target-libstdc++-v3
18a8530e 588TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
589@endif target-libstdc++-v3
590
5286fdef
L
591@if target-libsanitizer
592TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
593@endif target-libsanitizer
594
1b6c0831
L
595@if target-libmpx
596TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
597@endif target-libmpx
598
95e43135
JBG
599@if target-libvtv
600TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
601@endif target-libvtv
602
e3f56a99
NC
603@if target-libcilkrts
604TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
605@endif target-libcilkrts
606
1b6c0831
L
607@if target-liboffloadmic
608TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
609@endif target-liboffloadmic
610
064d0a7c
PB
611@if target-libssp
612TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
613@endif target-libssp
614
b3ded179
PB
615@if target-libgomp
616TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
617@endif target-libgomp
618
7ec59b9e
L
619@if target-libitm
620TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
621@endif target-libitm
622
623@if target-libatomic
624TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
625@endif target-libatomic
626
e90269c8
PB
627
628
629# This is the list of directories that may be needed in RPATH_ENVVAR
630# so that programs built for the host machine work.
1b6c0831 631HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
632
633# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
634@if gcc
3bbd2f8f 635HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
636@endif gcc
637
638
4b900473
PB
639@if gmp
640HOST_LIB_PATH_gmp = \
641 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
642@endif gmp
643
644@if mpfr
645HOST_LIB_PATH_mpfr = \
05a13254 646 $$r/$(HOST_SUBDIR)/mpfr/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/src/.libs:
4b900473
PB
647@endif mpfr
648
e8a5fa9c
RW
649@if mpc
650HOST_LIB_PATH_mpc = \
05a13254 651 $$r/$(HOST_SUBDIR)/mpc/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/src/.libs:
e8a5fa9c
RW
652@endif mpc
653
7ec59b9e
L
654@if isl
655HOST_LIB_PATH_isl = \
656 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
657@endif isl
e28c595f 658
1f53ca9a
AO
659@if libelf
660HOST_LIB_PATH_libelf = \
661 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
662@endif libelf
663
e90269c8 664
87cda2cf
AO
665CXX_FOR_TARGET_FLAG_TO_PASS = \
666 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
667@if target-libstdc++-v3
668# CXX_FOR_TARGET is tricky to get right for target libs that require a
669# functional C++ compiler. When we recurse, if we expand
670# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
671# libstdc++ include flags from the script. Instead, we get an
672# -funconfigured-* word, so that we'll get errors if this invalid C++
673# command line is used for anything, but also so that we can use the
674# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
675# don't pass it on, sub-make will use the default definition, that
676# re-expands it at the time of use, so we'll get it right when we need
677# it. One potential exception is the expansion of CXX_FOR_TARGET
678# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
679# really work, for C++ host programs can't depend on the current-stage
680# C++ target library.
681CXX_FOR_TARGET_FLAG_TO_PASS = \
682 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
683@endif target-libstdc++-v3
684
22121df0
L
685# Flags to pass down to all sub-makes. STAGE*FLAGS,
686# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
687# overrideable (for a bootstrap build stage1 also builds gcc.info).
252b5132 688BASE_FLAGS_TO_PASS = \
497f816e 689 "DESTDIR=$(DESTDIR)" \
252b5132 690 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 691 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
692 "bindir=$(bindir)" \
693 "datadir=$(datadir)" \
694 "exec_prefix=$(exec_prefix)" \
695 "includedir=$(includedir)" \
108a6f8e
CD
696 "datarootdir=$(datarootdir)" \
697 "docdir=$(docdir)" \
252b5132 698 "infodir=$(infodir)" \
a3ca38d2 699 "pdfdir=$(pdfdir)" \
108a6f8e 700 "htmldir=$(htmldir)" \
252b5132
RH
701 "libdir=$(libdir)" \
702 "libexecdir=$(libexecdir)" \
703 "lispdir=$(lispdir)" \
704 "localstatedir=$(localstatedir)" \
705 "mandir=$(mandir)" \
706 "oldincludedir=$(oldincludedir)" \
707 "prefix=$(prefix)" \
708 "sbindir=$(sbindir)" \
709 "sharedstatedir=$(sharedstatedir)" \
710 "sysconfdir=$(sysconfdir)" \
711 "tooldir=$(tooldir)" \
ba73c63f 712 "build_tooldir=$(build_tooldir)" \
12f0bd74 713 "target_alias=$(target_alias)" \
8e957354 714 "AWK=$(AWK)" \
12f0bd74
NN
715 "BISON=$(BISON)" \
716 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 717 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
718 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
719 "EXPECT=$(EXPECT)" \
6a9cf61e 720 "FLEX=$(FLEX)" \
12f0bd74
NN
721 "INSTALL=$(INSTALL)" \
722 "INSTALL_DATA=$(INSTALL_DATA)" \
723 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
724 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 725 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
726 "LEX=$(LEX)" \
727 "M4=$(M4)" \
728 "MAKE=$(MAKE)" \
729 "RUNTEST=$(RUNTEST)" \
730 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 731 "SED=$(SED)" \
12f0bd74
NN
732 "SHELL=$(SHELL)" \
733 "YACC=$(YACC)" \
c52c6897 734 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 735 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 736 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 737 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
738 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
739 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
740 "CFLAGS=$(CFLAGS)" \
741 "CXXFLAGS=$(CXXFLAGS)" \
742 "LDFLAGS=$(LDFLAGS)" \
743 "LIBCFLAGS=$(LIBCFLAGS)" \
744 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 745 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 746 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
747 "GNATBIND=$(GNATBIND)" \
748 "GNATMAKE=$(GNATMAKE)" \
12f0bd74
NN
749 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
750 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
751 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
752 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 753 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
754 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
755 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 756 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
4b1cb4fe 757 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
758 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
759 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
12f0bd74 760 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 761 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 762 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
763 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
764 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
765 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 766 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
6b91c541 767 "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \
12f0bd74 768 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 769 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 770 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 771 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 772 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 773 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 774 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 775 "LEAN=$(LEAN)" \
1b05fbbd 776 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 777 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
778 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
779 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 780 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
781 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
782 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 783 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
784 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
785 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 786 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
1b05fbbd
AO
787 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
788 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 789 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
790 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
791 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 792 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd 793 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
87cda2cf 794 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 795 "TFLAGS=$(TFLAGS)" \
10ecffb9 796 "CONFIG_SHELL=$(SHELL)" \
52cf9762
NC
797 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
798 $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
252b5132 799
55db4b87
PB
800# We leave this in just in case, but it is not needed anymore.
801RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 802
252b5132
RH
803# Flags to pass down to most sub-makes, in which we're building with
804# the host environment.
252b5132
RH
805EXTRA_HOST_FLAGS = \
806 'AR=$(AR)' \
807 'AS=$(AS)' \
808 'CC=$(CC)' \
809 'CXX=$(CXX)' \
810 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd 811 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 812 'GOC=$(GOC)' \
252b5132 813 'LD=$(LD)' \
be01d343 814 'LIPO=$(LIPO)' \
252b5132 815 'NM=$(NM)' \
80911fe1 816 'OBJDUMP=$(OBJDUMP)' \
b9459e83 817 'RANLIB=$(RANLIB)' \
b121d7d4 818 'READELF=$(READELF)' \
be01d343 819 'STRIP=$(STRIP)' \
0c24b341 820 'WINDRES=$(WINDRES)' \
05a13254
NC
821 'WINDMC=$(WINDMC)' \
822 'CREATE_GCOV=$(CREATE_GCOV)'
252b5132
RH
823
824FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
825
b3676d82
EB
826# Flags to pass to stage1 or when not bootstrapping.
827
828STAGE1_FLAGS_TO_PASS = \
829 LDFLAGS="$${LDFLAGS}" \
830 HOST_LIBS="$${HOST_LIBS}"
831
8a0d8a5c
PB
832# Flags to pass to stage2 and later makes.
833
834POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
835 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
836 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
837 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
838 LDFLAGS="$${LDFLAGS}" \
839 HOST_LIBS="$${HOST_LIBS}" \
1b6c0831 840 $(LTO_FLAGS_TO_PASS) \
8a0d8a5c
PB
841 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
842
f91ca6bc
IB
843@if gcc-bootstrap
844EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \
845 $(POSTSTAGE1_HOST_EXPORTS) \
22121df0 846 fi;
f91ca6bc
IB
847
848EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS"
849@endif gcc-bootstrap
850
252b5132 851# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
852# The double $ decreases the length of the command line; those variables
853# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
854# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
855# so we expand them here.
252b5132
RH
856EXTRA_TARGET_FLAGS = \
857 'AR=$$(AR_FOR_TARGET)' \
0aed8855 858 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
859 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
860 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
861 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
862 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
863 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 864 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 865 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd 866 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 867 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 868 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 869 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 870 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
871 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
872 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 873 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 874 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 875 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 876 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 877 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 878 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
879 'WINDMC=$$(WINDMC_FOR_TARGET)' \
880 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
881 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
882 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 883 "TFLAGS=$$TFLAGS"
252b5132
RH
884
885TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
886
887# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
888# unfortunately needs the native compiler and the target ar and
889# ranlib.
890# If any variables are added here, they must be added to do-*, below.
2a4cbe27 891# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
892# cross-building scheme.
893EXTRA_GCC_FLAGS = \
252b5132 894 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 895 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 896 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 897
f0b24077 898GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 899
1b05fbbd 900@if gcc
96655cc4 901BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
902ifneq ($(BUILD_CONFIG),)
903include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
904endif
905@endif gcc
906
dd12c3a8 907.PHONY: configure-host
b813574b 908configure-host: \
dd12c3a8
NN
909 maybe-configure-bfd \
910 maybe-configure-opcodes \
911 maybe-configure-binutils \
912 maybe-configure-bison \
f9806fa5 913 maybe-configure-cgen \
dd12c3a8 914 maybe-configure-dejagnu \
dd12c3a8
NN
915 maybe-configure-etc \
916 maybe-configure-fastjar \
d3ed111c 917 maybe-configure-fixincludes \
dd12c3a8
NN
918 maybe-configure-flex \
919 maybe-configure-gas \
b813574b 920 maybe-configure-gcc \
4b900473
PB
921 maybe-configure-gmp \
922 maybe-configure-mpfr \
e8a5fa9c 923 maybe-configure-mpc \
7ec59b9e 924 maybe-configure-isl \
1f53ca9a 925 maybe-configure-libelf \
93f9b408 926 maybe-configure-gold \
dd12c3a8 927 maybe-configure-gprof \
dd12c3a8
NN
928 maybe-configure-intl \
929 maybe-configure-tcl \
930 maybe-configure-itcl \
931 maybe-configure-ld \
2bf680c4 932 maybe-configure-libbacktrace \
04cf1b77 933 maybe-configure-libcpp \
be01d343 934 maybe-configure-libdecnumber \
dd12c3a8
NN
935 maybe-configure-libgui \
936 maybe-configure-libiberty \
1b6c0831 937 maybe-configure-libiberty-linker-plugin \
dc448a7b 938 maybe-configure-libiconv \
dd12c3a8 939 maybe-configure-m4 \
dd12c3a8 940 maybe-configure-readline \
dd12c3a8
NN
941 maybe-configure-sid \
942 maybe-configure-sim \
dd12c3a8 943 maybe-configure-texinfo \
dd12c3a8 944 maybe-configure-zlib \
73cc7272 945 maybe-configure-gnulib \
dd12c3a8
NN
946 maybe-configure-gdb \
947 maybe-configure-expect \
948 maybe-configure-guile \
949 maybe-configure-tk \
dd12c3a8 950 maybe-configure-libtermcap \
b00612cc 951 maybe-configure-utils \
700d40ca 952 maybe-configure-gnattools \
1b6c0831
L
953 maybe-configure-lto-plugin \
954 maybe-configure-libcc1 \
0e65dfba
NA
955 maybe-configure-gotools \
956 maybe-configure-libctf
dd12c3a8
NN
957.PHONY: configure-target
958configure-target: \
959 maybe-configure-target-libstdc++-v3 \
5286fdef 960 maybe-configure-target-libsanitizer \
1b6c0831 961 maybe-configure-target-libmpx \
95e43135 962 maybe-configure-target-libvtv \
e3f56a99 963 maybe-configure-target-libcilkrts \
1b6c0831 964 maybe-configure-target-liboffloadmic \
064d0a7c 965 maybe-configure-target-libssp \
dd12c3a8 966 maybe-configure-target-newlib \
6aa8ef82 967 maybe-configure-target-libgcc \
2bf680c4 968 maybe-configure-target-libbacktrace \
e552509b 969 maybe-configure-target-libquadmath \
4b1cb4fe 970 maybe-configure-target-libgfortran \
dd12c3a8 971 maybe-configure-target-libobjc \
e552509b 972 maybe-configure-target-libgo \
dd12c3a8
NN
973 maybe-configure-target-libtermcap \
974 maybe-configure-target-winsup \
975 maybe-configure-target-libgloss \
dd12c3a8 976 maybe-configure-target-libffi \
dd12c3a8 977 maybe-configure-target-zlib \
a2592b1b 978 maybe-configure-target-rda \
b3ded179 979 maybe-configure-target-libada \
7ec59b9e
L
980 maybe-configure-target-libgomp \
981 maybe-configure-target-libitm \
982 maybe-configure-target-libatomic
252b5132 983
319cab08
PB
984# The target built for a native non-bootstrap build.
985.PHONY: all
f70224b5
PB
986all:
987@if gcc-bootstrap
be01d343 988 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
989 @r=`${PWD_COMMAND}`; export r; \
990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 991 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 992@endif gcc-bootstrap
0aed8855 993 @: $(MAKE); $(unstage)
f70224b5
PB
994 @r=`${PWD_COMMAND}`; export r; \
995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 996@if gcc-bootstrap
b5233201 997 if [ -f stage_last ]; then \
07fc31c9 998 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 999 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 1000 else \
1b05fbbd 1001@endif gcc-bootstrap
b5233201
AO
1002 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
1003@if gcc-bootstrap
1004 ; \
04ec0acb 1005 fi \
b5233201 1006@endif gcc-bootstrap
04ec0acb 1007 && :
6a9cf61e
PB
1008
1009.PHONY: all-build
c52c6897
PB
1010
1011all-build: maybe-all-build-libiberty
1012all-build: maybe-all-build-bison
c52c6897
PB
1013all-build: maybe-all-build-flex
1014all-build: maybe-all-build-m4
1015all-build: maybe-all-build-texinfo
1016all-build: maybe-all-build-fixincludes
1b6c0831 1017all-build: maybe-all-build-libcpp
c52c6897 1018
dd12c3a8 1019.PHONY: all-host
c52c6897 1020
c52c6897
PB
1021@if bfd-no-bootstrap
1022all-host: maybe-all-bfd
1023@endif bfd-no-bootstrap
1024@if opcodes-no-bootstrap
1025all-host: maybe-all-opcodes
1026@endif opcodes-no-bootstrap
1027@if binutils-no-bootstrap
1028all-host: maybe-all-binutils
1029@endif binutils-no-bootstrap
1030all-host: maybe-all-bison
f9806fa5 1031all-host: maybe-all-cgen
c52c6897 1032all-host: maybe-all-dejagnu
c52c6897
PB
1033all-host: maybe-all-etc
1034all-host: maybe-all-fastjar
201f096f 1035@if fixincludes-no-bootstrap
c52c6897 1036all-host: maybe-all-fixincludes
201f096f 1037@endif fixincludes-no-bootstrap
c52c6897
PB
1038all-host: maybe-all-flex
1039@if gas-no-bootstrap
1040all-host: maybe-all-gas
1041@endif gas-no-bootstrap
1042@if gcc-no-bootstrap
1043all-host: maybe-all-gcc
1044@endif gcc-no-bootstrap
4b900473
PB
1045@if gmp-no-bootstrap
1046all-host: maybe-all-gmp
1047@endif gmp-no-bootstrap
1048@if mpfr-no-bootstrap
1049all-host: maybe-all-mpfr
1050@endif mpfr-no-bootstrap
e8a5fa9c
RW
1051@if mpc-no-bootstrap
1052all-host: maybe-all-mpc
1053@endif mpc-no-bootstrap
7ec59b9e
L
1054@if isl-no-bootstrap
1055all-host: maybe-all-isl
1056@endif isl-no-bootstrap
1f53ca9a
AO
1057@if libelf-no-bootstrap
1058all-host: maybe-all-libelf
1059@endif libelf-no-bootstrap
93f9b408
ILT
1060@if gold-no-bootstrap
1061all-host: maybe-all-gold
1062@endif gold-no-bootstrap
c52c6897 1063all-host: maybe-all-gprof
c52c6897
PB
1064@if intl-no-bootstrap
1065all-host: maybe-all-intl
1066@endif intl-no-bootstrap
1067all-host: maybe-all-tcl
1068all-host: maybe-all-itcl
1069@if ld-no-bootstrap
1070all-host: maybe-all-ld
1071@endif ld-no-bootstrap
2bf680c4
ILT
1072@if libbacktrace-no-bootstrap
1073all-host: maybe-all-libbacktrace
1074@endif libbacktrace-no-bootstrap
c52c6897
PB
1075@if libcpp-no-bootstrap
1076all-host: maybe-all-libcpp
1077@endif libcpp-no-bootstrap
1078@if libdecnumber-no-bootstrap
1079all-host: maybe-all-libdecnumber
1080@endif libdecnumber-no-bootstrap
1081all-host: maybe-all-libgui
1082@if libiberty-no-bootstrap
1083all-host: maybe-all-libiberty
1084@endif libiberty-no-bootstrap
1b6c0831
L
1085@if libiberty-linker-plugin-no-bootstrap
1086all-host: maybe-all-libiberty-linker-plugin
1087@endif libiberty-linker-plugin-no-bootstrap
016a3251 1088@if libiconv-no-bootstrap
dc448a7b 1089all-host: maybe-all-libiconv
016a3251 1090@endif libiconv-no-bootstrap
c52c6897 1091all-host: maybe-all-m4
c52c6897 1092all-host: maybe-all-readline
c52c6897
PB
1093all-host: maybe-all-sid
1094all-host: maybe-all-sim
c52c6897 1095all-host: maybe-all-texinfo
c52c6897
PB
1096@if zlib-no-bootstrap
1097all-host: maybe-all-zlib
1098@endif zlib-no-bootstrap
73cc7272 1099all-host: maybe-all-gnulib
c52c6897
PB
1100all-host: maybe-all-gdb
1101all-host: maybe-all-expect
1102all-host: maybe-all-guile
1103all-host: maybe-all-tk
1104all-host: maybe-all-libtermcap
1105all-host: maybe-all-utils
1106all-host: maybe-all-gnattools
700d40ca
ILT
1107@if lto-plugin-no-bootstrap
1108all-host: maybe-all-lto-plugin
1109@endif lto-plugin-no-bootstrap
1b6c0831
L
1110all-host: maybe-all-libcc1
1111all-host: maybe-all-gotools
0e65dfba
NA
1112@if libctf-no-bootstrap
1113all-host: maybe-all-libctf
1114@endif libctf-no-bootstrap
c52c6897 1115
dd12c3a8 1116.PHONY: all-target
c52c6897 1117
e8a5fa9c 1118@if target-libstdc++-v3-no-bootstrap
c52c6897 1119all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1120@endif target-libstdc++-v3-no-bootstrap
5eb08693 1121@if target-libsanitizer-no-bootstrap
5286fdef 1122all-target: maybe-all-target-libsanitizer
5eb08693 1123@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1124@if target-libmpx-no-bootstrap
1125all-target: maybe-all-target-libmpx
1126@endif target-libmpx-no-bootstrap
95e43135
JBG
1127@if target-libvtv-no-bootstrap
1128all-target: maybe-all-target-libvtv
1129@endif target-libvtv-no-bootstrap
e3f56a99 1130all-target: maybe-all-target-libcilkrts
1b6c0831 1131all-target: maybe-all-target-liboffloadmic
c52c6897 1132all-target: maybe-all-target-libssp
c52c6897 1133all-target: maybe-all-target-newlib
f86e35b8 1134@if target-libgcc-no-bootstrap
6aa8ef82 1135all-target: maybe-all-target-libgcc
f86e35b8 1136@endif target-libgcc-no-bootstrap
2bf680c4 1137all-target: maybe-all-target-libbacktrace
e552509b 1138all-target: maybe-all-target-libquadmath
c52c6897
PB
1139all-target: maybe-all-target-libgfortran
1140all-target: maybe-all-target-libobjc
e552509b 1141all-target: maybe-all-target-libgo
c52c6897
PB
1142all-target: maybe-all-target-libtermcap
1143all-target: maybe-all-target-winsup
1144all-target: maybe-all-target-libgloss
c52c6897 1145all-target: maybe-all-target-libffi
c52c6897 1146all-target: maybe-all-target-zlib
c52c6897
PB
1147all-target: maybe-all-target-rda
1148all-target: maybe-all-target-libada
911e63d0 1149@if target-libgomp-no-bootstrap
c52c6897 1150all-target: maybe-all-target-libgomp
911e63d0 1151@endif target-libgomp-no-bootstrap
7ec59b9e
L
1152all-target: maybe-all-target-libitm
1153all-target: maybe-all-target-libatomic
252b5132
RH
1154
1155# Do a target for all the subdirectories. A ``make do-X'' will do a
1156# ``make X'' in all subdirectories (because, in general, there is a
1157# dependency (below) of X upon do-X, a ``make X'' will also do this,
1158# but it may do additional work as well).
e393202e 1159
2a4cbe27 1160.PHONY: do-info
f70224b5 1161do-info:
0aed8855 1162 @: $(MAKE); $(unstage)
e360f423
PB
1163 @r=`${PWD_COMMAND}`; export r; \
1164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1165 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1166 info-target
f70224b5 1167
e393202e 1168
2a4cbe27 1169.PHONY: info-host
c52c6897 1170
c52c6897
PB
1171info-host: maybe-info-bfd
1172info-host: maybe-info-opcodes
1173info-host: maybe-info-binutils
1174info-host: maybe-info-bison
f9806fa5 1175info-host: maybe-info-cgen
c52c6897 1176info-host: maybe-info-dejagnu
c52c6897
PB
1177info-host: maybe-info-etc
1178info-host: maybe-info-fastjar
c52c6897
PB
1179info-host: maybe-info-fixincludes
1180info-host: maybe-info-flex
1181info-host: maybe-info-gas
1182info-host: maybe-info-gcc
4b900473
PB
1183info-host: maybe-info-gmp
1184info-host: maybe-info-mpfr
e8a5fa9c 1185info-host: maybe-info-mpc
7ec59b9e 1186info-host: maybe-info-isl
1f53ca9a 1187info-host: maybe-info-libelf
93f9b408 1188info-host: maybe-info-gold
c52c6897 1189info-host: maybe-info-gprof
c52c6897
PB
1190info-host: maybe-info-intl
1191info-host: maybe-info-tcl
1192info-host: maybe-info-itcl
1193info-host: maybe-info-ld
2bf680c4 1194info-host: maybe-info-libbacktrace
c52c6897
PB
1195info-host: maybe-info-libcpp
1196info-host: maybe-info-libdecnumber
1197info-host: maybe-info-libgui
1198info-host: maybe-info-libiberty
1b6c0831 1199info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1200info-host: maybe-info-libiconv
c52c6897 1201info-host: maybe-info-m4
c52c6897 1202info-host: maybe-info-readline
c52c6897
PB
1203info-host: maybe-info-sid
1204info-host: maybe-info-sim
c52c6897 1205info-host: maybe-info-texinfo
c52c6897 1206info-host: maybe-info-zlib
73cc7272 1207info-host: maybe-info-gnulib
c52c6897
PB
1208info-host: maybe-info-gdb
1209info-host: maybe-info-expect
1210info-host: maybe-info-guile
1211info-host: maybe-info-tk
1212info-host: maybe-info-libtermcap
1213info-host: maybe-info-utils
1214info-host: maybe-info-gnattools
700d40ca 1215info-host: maybe-info-lto-plugin
1b6c0831
L
1216info-host: maybe-info-libcc1
1217info-host: maybe-info-gotools
0e65dfba 1218info-host: maybe-info-libctf
252b5132 1219
2a4cbe27 1220.PHONY: info-target
c52c6897
PB
1221
1222info-target: maybe-info-target-libstdc++-v3
5286fdef 1223info-target: maybe-info-target-libsanitizer
1b6c0831 1224info-target: maybe-info-target-libmpx
95e43135 1225info-target: maybe-info-target-libvtv
e3f56a99 1226info-target: maybe-info-target-libcilkrts
1b6c0831 1227info-target: maybe-info-target-liboffloadmic
c52c6897 1228info-target: maybe-info-target-libssp
c52c6897 1229info-target: maybe-info-target-newlib
6aa8ef82 1230info-target: maybe-info-target-libgcc
2bf680c4 1231info-target: maybe-info-target-libbacktrace
e552509b 1232info-target: maybe-info-target-libquadmath
c52c6897
PB
1233info-target: maybe-info-target-libgfortran
1234info-target: maybe-info-target-libobjc
e552509b 1235info-target: maybe-info-target-libgo
c52c6897
PB
1236info-target: maybe-info-target-libtermcap
1237info-target: maybe-info-target-winsup
1238info-target: maybe-info-target-libgloss
c52c6897 1239info-target: maybe-info-target-libffi
c52c6897 1240info-target: maybe-info-target-zlib
c52c6897
PB
1241info-target: maybe-info-target-rda
1242info-target: maybe-info-target-libada
1243info-target: maybe-info-target-libgomp
7ec59b9e
L
1244info-target: maybe-info-target-libitm
1245info-target: maybe-info-target-libatomic
252b5132 1246
4fa63067 1247.PHONY: do-dvi
f70224b5 1248do-dvi:
0aed8855 1249 @: $(MAKE); $(unstage)
e360f423
PB
1250 @r=`${PWD_COMMAND}`; export r; \
1251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1252 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1253 dvi-target
f70224b5 1254
2a4cbe27 1255
4fa63067 1256.PHONY: dvi-host
c52c6897 1257
c52c6897
PB
1258dvi-host: maybe-dvi-bfd
1259dvi-host: maybe-dvi-opcodes
1260dvi-host: maybe-dvi-binutils
1261dvi-host: maybe-dvi-bison
f9806fa5 1262dvi-host: maybe-dvi-cgen
c52c6897 1263dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1264dvi-host: maybe-dvi-etc
1265dvi-host: maybe-dvi-fastjar
c52c6897
PB
1266dvi-host: maybe-dvi-fixincludes
1267dvi-host: maybe-dvi-flex
1268dvi-host: maybe-dvi-gas
1269dvi-host: maybe-dvi-gcc
4b900473
PB
1270dvi-host: maybe-dvi-gmp
1271dvi-host: maybe-dvi-mpfr
e8a5fa9c 1272dvi-host: maybe-dvi-mpc
7ec59b9e 1273dvi-host: maybe-dvi-isl
1f53ca9a 1274dvi-host: maybe-dvi-libelf
93f9b408 1275dvi-host: maybe-dvi-gold
c52c6897 1276dvi-host: maybe-dvi-gprof
c52c6897
PB
1277dvi-host: maybe-dvi-intl
1278dvi-host: maybe-dvi-tcl
1279dvi-host: maybe-dvi-itcl
1280dvi-host: maybe-dvi-ld
2bf680c4 1281dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1282dvi-host: maybe-dvi-libcpp
1283dvi-host: maybe-dvi-libdecnumber
1284dvi-host: maybe-dvi-libgui
1285dvi-host: maybe-dvi-libiberty
1b6c0831 1286dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1287dvi-host: maybe-dvi-libiconv
c52c6897 1288dvi-host: maybe-dvi-m4
c52c6897 1289dvi-host: maybe-dvi-readline
c52c6897
PB
1290dvi-host: maybe-dvi-sid
1291dvi-host: maybe-dvi-sim
c52c6897 1292dvi-host: maybe-dvi-texinfo
c52c6897 1293dvi-host: maybe-dvi-zlib
73cc7272 1294dvi-host: maybe-dvi-gnulib
c52c6897
PB
1295dvi-host: maybe-dvi-gdb
1296dvi-host: maybe-dvi-expect
1297dvi-host: maybe-dvi-guile
1298dvi-host: maybe-dvi-tk
1299dvi-host: maybe-dvi-libtermcap
1300dvi-host: maybe-dvi-utils
1301dvi-host: maybe-dvi-gnattools
700d40ca 1302dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1303dvi-host: maybe-dvi-libcc1
1304dvi-host: maybe-dvi-gotools
0e65dfba 1305dvi-host: maybe-dvi-libctf
2a4cbe27 1306
4fa63067 1307.PHONY: dvi-target
c52c6897
PB
1308
1309dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1310dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1311dvi-target: maybe-dvi-target-libmpx
95e43135 1312dvi-target: maybe-dvi-target-libvtv
e3f56a99 1313dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1314dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1315dvi-target: maybe-dvi-target-libssp
c52c6897 1316dvi-target: maybe-dvi-target-newlib
6aa8ef82 1317dvi-target: maybe-dvi-target-libgcc
2bf680c4 1318dvi-target: maybe-dvi-target-libbacktrace
e552509b 1319dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1320dvi-target: maybe-dvi-target-libgfortran
1321dvi-target: maybe-dvi-target-libobjc
e552509b 1322dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1323dvi-target: maybe-dvi-target-libtermcap
1324dvi-target: maybe-dvi-target-winsup
1325dvi-target: maybe-dvi-target-libgloss
c52c6897 1326dvi-target: maybe-dvi-target-libffi
c52c6897 1327dvi-target: maybe-dvi-target-zlib
c52c6897
PB
1328dvi-target: maybe-dvi-target-rda
1329dvi-target: maybe-dvi-target-libada
1330dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1331dvi-target: maybe-dvi-target-libitm
1332dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1333
56a8fe78
DD
1334.PHONY: do-pdf
1335do-pdf:
1336 @: $(MAKE); $(unstage)
1337 @r=`${PWD_COMMAND}`; export r; \
1338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1339 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1340 pdf-target
1341
1342
1343.PHONY: pdf-host
1344
56a8fe78
DD
1345pdf-host: maybe-pdf-bfd
1346pdf-host: maybe-pdf-opcodes
1347pdf-host: maybe-pdf-binutils
1348pdf-host: maybe-pdf-bison
f9806fa5 1349pdf-host: maybe-pdf-cgen
56a8fe78 1350pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1351pdf-host: maybe-pdf-etc
1352pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1353pdf-host: maybe-pdf-fixincludes
1354pdf-host: maybe-pdf-flex
1355pdf-host: maybe-pdf-gas
1356pdf-host: maybe-pdf-gcc
4b900473
PB
1357pdf-host: maybe-pdf-gmp
1358pdf-host: maybe-pdf-mpfr
e8a5fa9c 1359pdf-host: maybe-pdf-mpc
7ec59b9e 1360pdf-host: maybe-pdf-isl
1f53ca9a 1361pdf-host: maybe-pdf-libelf
93f9b408 1362pdf-host: maybe-pdf-gold
56a8fe78 1363pdf-host: maybe-pdf-gprof
56a8fe78
DD
1364pdf-host: maybe-pdf-intl
1365pdf-host: maybe-pdf-tcl
1366pdf-host: maybe-pdf-itcl
1367pdf-host: maybe-pdf-ld
2bf680c4 1368pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1369pdf-host: maybe-pdf-libcpp
1370pdf-host: maybe-pdf-libdecnumber
1371pdf-host: maybe-pdf-libgui
1372pdf-host: maybe-pdf-libiberty
1b6c0831 1373pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1374pdf-host: maybe-pdf-libiconv
56a8fe78 1375pdf-host: maybe-pdf-m4
56a8fe78 1376pdf-host: maybe-pdf-readline
56a8fe78
DD
1377pdf-host: maybe-pdf-sid
1378pdf-host: maybe-pdf-sim
56a8fe78 1379pdf-host: maybe-pdf-texinfo
56a8fe78 1380pdf-host: maybe-pdf-zlib
73cc7272 1381pdf-host: maybe-pdf-gnulib
56a8fe78
DD
1382pdf-host: maybe-pdf-gdb
1383pdf-host: maybe-pdf-expect
1384pdf-host: maybe-pdf-guile
1385pdf-host: maybe-pdf-tk
1386pdf-host: maybe-pdf-libtermcap
1387pdf-host: maybe-pdf-utils
1388pdf-host: maybe-pdf-gnattools
700d40ca 1389pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1390pdf-host: maybe-pdf-libcc1
1391pdf-host: maybe-pdf-gotools
0e65dfba 1392pdf-host: maybe-pdf-libctf
56a8fe78
DD
1393
1394.PHONY: pdf-target
1395
1396pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1397pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1398pdf-target: maybe-pdf-target-libmpx
95e43135 1399pdf-target: maybe-pdf-target-libvtv
e3f56a99 1400pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1401pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1402pdf-target: maybe-pdf-target-libssp
1403pdf-target: maybe-pdf-target-newlib
6aa8ef82 1404pdf-target: maybe-pdf-target-libgcc
2bf680c4 1405pdf-target: maybe-pdf-target-libbacktrace
e552509b 1406pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1407pdf-target: maybe-pdf-target-libgfortran
1408pdf-target: maybe-pdf-target-libobjc
e552509b 1409pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1410pdf-target: maybe-pdf-target-libtermcap
1411pdf-target: maybe-pdf-target-winsup
1412pdf-target: maybe-pdf-target-libgloss
56a8fe78 1413pdf-target: maybe-pdf-target-libffi
56a8fe78 1414pdf-target: maybe-pdf-target-zlib
56a8fe78
DD
1415pdf-target: maybe-pdf-target-rda
1416pdf-target: maybe-pdf-target-libada
1417pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1418pdf-target: maybe-pdf-target-libitm
1419pdf-target: maybe-pdf-target-libatomic
56a8fe78 1420
6d389afc 1421.PHONY: do-html
f70224b5 1422do-html:
0aed8855 1423 @: $(MAKE); $(unstage)
e360f423
PB
1424 @r=`${PWD_COMMAND}`; export r; \
1425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1426 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1427 html-target
f70224b5 1428
6d389afc
MS
1429
1430.PHONY: html-host
c52c6897 1431
c52c6897
PB
1432html-host: maybe-html-bfd
1433html-host: maybe-html-opcodes
1434html-host: maybe-html-binutils
1435html-host: maybe-html-bison
f9806fa5 1436html-host: maybe-html-cgen
c52c6897 1437html-host: maybe-html-dejagnu
c52c6897
PB
1438html-host: maybe-html-etc
1439html-host: maybe-html-fastjar
c52c6897
PB
1440html-host: maybe-html-fixincludes
1441html-host: maybe-html-flex
1442html-host: maybe-html-gas
1443html-host: maybe-html-gcc
4b900473
PB
1444html-host: maybe-html-gmp
1445html-host: maybe-html-mpfr
e8a5fa9c 1446html-host: maybe-html-mpc
7ec59b9e 1447html-host: maybe-html-isl
1f53ca9a 1448html-host: maybe-html-libelf
93f9b408 1449html-host: maybe-html-gold
c52c6897 1450html-host: maybe-html-gprof
c52c6897
PB
1451html-host: maybe-html-intl
1452html-host: maybe-html-tcl
1453html-host: maybe-html-itcl
1454html-host: maybe-html-ld
2bf680c4 1455html-host: maybe-html-libbacktrace
c52c6897
PB
1456html-host: maybe-html-libcpp
1457html-host: maybe-html-libdecnumber
1458html-host: maybe-html-libgui
1459html-host: maybe-html-libiberty
1b6c0831 1460html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1461html-host: maybe-html-libiconv
c52c6897 1462html-host: maybe-html-m4
c52c6897 1463html-host: maybe-html-readline
c52c6897
PB
1464html-host: maybe-html-sid
1465html-host: maybe-html-sim
c52c6897 1466html-host: maybe-html-texinfo
c52c6897 1467html-host: maybe-html-zlib
73cc7272 1468html-host: maybe-html-gnulib
c52c6897
PB
1469html-host: maybe-html-gdb
1470html-host: maybe-html-expect
1471html-host: maybe-html-guile
1472html-host: maybe-html-tk
1473html-host: maybe-html-libtermcap
1474html-host: maybe-html-utils
1475html-host: maybe-html-gnattools
700d40ca 1476html-host: maybe-html-lto-plugin
1b6c0831
L
1477html-host: maybe-html-libcc1
1478html-host: maybe-html-gotools
0e65dfba 1479html-host: maybe-html-libctf
6d389afc
MS
1480
1481.PHONY: html-target
c52c6897
PB
1482
1483html-target: maybe-html-target-libstdc++-v3
5286fdef 1484html-target: maybe-html-target-libsanitizer
1b6c0831 1485html-target: maybe-html-target-libmpx
95e43135 1486html-target: maybe-html-target-libvtv
e3f56a99 1487html-target: maybe-html-target-libcilkrts
1b6c0831 1488html-target: maybe-html-target-liboffloadmic
c52c6897 1489html-target: maybe-html-target-libssp
c52c6897 1490html-target: maybe-html-target-newlib
6aa8ef82 1491html-target: maybe-html-target-libgcc
2bf680c4 1492html-target: maybe-html-target-libbacktrace
e552509b 1493html-target: maybe-html-target-libquadmath
c52c6897
PB
1494html-target: maybe-html-target-libgfortran
1495html-target: maybe-html-target-libobjc
e552509b 1496html-target: maybe-html-target-libgo
c52c6897
PB
1497html-target: maybe-html-target-libtermcap
1498html-target: maybe-html-target-winsup
1499html-target: maybe-html-target-libgloss
c52c6897 1500html-target: maybe-html-target-libffi
c52c6897 1501html-target: maybe-html-target-zlib
c52c6897
PB
1502html-target: maybe-html-target-rda
1503html-target: maybe-html-target-libada
1504html-target: maybe-html-target-libgomp
7ec59b9e
L
1505html-target: maybe-html-target-libitm
1506html-target: maybe-html-target-libatomic
6d389afc 1507
4fa63067 1508.PHONY: do-TAGS
f70224b5 1509do-TAGS:
0aed8855 1510 @: $(MAKE); $(unstage)
e360f423
PB
1511 @r=`${PWD_COMMAND}`; export r; \
1512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1513 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1514 TAGS-target
f70224b5 1515
2a4cbe27 1516
4fa63067 1517.PHONY: TAGS-host
c52c6897 1518
c52c6897
PB
1519TAGS-host: maybe-TAGS-bfd
1520TAGS-host: maybe-TAGS-opcodes
1521TAGS-host: maybe-TAGS-binutils
1522TAGS-host: maybe-TAGS-bison
f9806fa5 1523TAGS-host: maybe-TAGS-cgen
c52c6897 1524TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1525TAGS-host: maybe-TAGS-etc
1526TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1527TAGS-host: maybe-TAGS-fixincludes
1528TAGS-host: maybe-TAGS-flex
1529TAGS-host: maybe-TAGS-gas
1530TAGS-host: maybe-TAGS-gcc
4b900473
PB
1531TAGS-host: maybe-TAGS-gmp
1532TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1533TAGS-host: maybe-TAGS-mpc
7ec59b9e 1534TAGS-host: maybe-TAGS-isl
1f53ca9a 1535TAGS-host: maybe-TAGS-libelf
93f9b408 1536TAGS-host: maybe-TAGS-gold
c52c6897 1537TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1538TAGS-host: maybe-TAGS-intl
1539TAGS-host: maybe-TAGS-tcl
1540TAGS-host: maybe-TAGS-itcl
1541TAGS-host: maybe-TAGS-ld
2bf680c4 1542TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1543TAGS-host: maybe-TAGS-libcpp
1544TAGS-host: maybe-TAGS-libdecnumber
1545TAGS-host: maybe-TAGS-libgui
1546TAGS-host: maybe-TAGS-libiberty
1b6c0831 1547TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1548TAGS-host: maybe-TAGS-libiconv
c52c6897 1549TAGS-host: maybe-TAGS-m4
c52c6897 1550TAGS-host: maybe-TAGS-readline
c52c6897
PB
1551TAGS-host: maybe-TAGS-sid
1552TAGS-host: maybe-TAGS-sim
c52c6897 1553TAGS-host: maybe-TAGS-texinfo
c52c6897 1554TAGS-host: maybe-TAGS-zlib
73cc7272 1555TAGS-host: maybe-TAGS-gnulib
c52c6897
PB
1556TAGS-host: maybe-TAGS-gdb
1557TAGS-host: maybe-TAGS-expect
1558TAGS-host: maybe-TAGS-guile
1559TAGS-host: maybe-TAGS-tk
1560TAGS-host: maybe-TAGS-libtermcap
1561TAGS-host: maybe-TAGS-utils
1562TAGS-host: maybe-TAGS-gnattools
700d40ca 1563TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1564TAGS-host: maybe-TAGS-libcc1
1565TAGS-host: maybe-TAGS-gotools
0e65dfba 1566TAGS-host: maybe-TAGS-libctf
2a4cbe27 1567
4fa63067 1568.PHONY: TAGS-target
c52c6897
PB
1569
1570TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1571TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1572TAGS-target: maybe-TAGS-target-libmpx
95e43135 1573TAGS-target: maybe-TAGS-target-libvtv
e3f56a99 1574TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1575TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1576TAGS-target: maybe-TAGS-target-libssp
c52c6897 1577TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1578TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1579TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1580TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1581TAGS-target: maybe-TAGS-target-libgfortran
1582TAGS-target: maybe-TAGS-target-libobjc
e552509b 1583TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1584TAGS-target: maybe-TAGS-target-libtermcap
1585TAGS-target: maybe-TAGS-target-winsup
1586TAGS-target: maybe-TAGS-target-libgloss
c52c6897 1587TAGS-target: maybe-TAGS-target-libffi
c52c6897 1588TAGS-target: maybe-TAGS-target-zlib
c52c6897
PB
1589TAGS-target: maybe-TAGS-target-rda
1590TAGS-target: maybe-TAGS-target-libada
1591TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1592TAGS-target: maybe-TAGS-target-libitm
1593TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1594
4fa63067 1595.PHONY: do-install-info
f70224b5 1596do-install-info:
0aed8855 1597 @: $(MAKE); $(unstage)
e360f423
PB
1598 @r=`${PWD_COMMAND}`; export r; \
1599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1600 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1601 install-info-target
f70224b5 1602
a2592b1b 1603
4fa63067 1604.PHONY: install-info-host
c52c6897 1605
c52c6897
PB
1606install-info-host: maybe-install-info-bfd
1607install-info-host: maybe-install-info-opcodes
1608install-info-host: maybe-install-info-binutils
1609install-info-host: maybe-install-info-bison
f9806fa5 1610install-info-host: maybe-install-info-cgen
c52c6897 1611install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1612install-info-host: maybe-install-info-etc
1613install-info-host: maybe-install-info-fastjar
c52c6897
PB
1614install-info-host: maybe-install-info-fixincludes
1615install-info-host: maybe-install-info-flex
1616install-info-host: maybe-install-info-gas
1617install-info-host: maybe-install-info-gcc
4b900473
PB
1618install-info-host: maybe-install-info-gmp
1619install-info-host: maybe-install-info-mpfr
e8a5fa9c 1620install-info-host: maybe-install-info-mpc
7ec59b9e 1621install-info-host: maybe-install-info-isl
1f53ca9a 1622install-info-host: maybe-install-info-libelf
93f9b408 1623install-info-host: maybe-install-info-gold
c52c6897 1624install-info-host: maybe-install-info-gprof
c52c6897
PB
1625install-info-host: maybe-install-info-intl
1626install-info-host: maybe-install-info-tcl
1627install-info-host: maybe-install-info-itcl
1628install-info-host: maybe-install-info-ld
2bf680c4 1629install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1630install-info-host: maybe-install-info-libcpp
1631install-info-host: maybe-install-info-libdecnumber
1632install-info-host: maybe-install-info-libgui
1633install-info-host: maybe-install-info-libiberty
1b6c0831 1634install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1635install-info-host: maybe-install-info-libiconv
c52c6897 1636install-info-host: maybe-install-info-m4
c52c6897 1637install-info-host: maybe-install-info-readline
c52c6897
PB
1638install-info-host: maybe-install-info-sid
1639install-info-host: maybe-install-info-sim
c52c6897 1640install-info-host: maybe-install-info-texinfo
c52c6897 1641install-info-host: maybe-install-info-zlib
73cc7272 1642install-info-host: maybe-install-info-gnulib
c52c6897
PB
1643install-info-host: maybe-install-info-gdb
1644install-info-host: maybe-install-info-expect
1645install-info-host: maybe-install-info-guile
1646install-info-host: maybe-install-info-tk
1647install-info-host: maybe-install-info-libtermcap
1648install-info-host: maybe-install-info-utils
1649install-info-host: maybe-install-info-gnattools
700d40ca 1650install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1651install-info-host: maybe-install-info-libcc1
1652install-info-host: maybe-install-info-gotools
0e65dfba 1653install-info-host: maybe-install-info-libctf
a2592b1b 1654
4fa63067 1655.PHONY: install-info-target
c52c6897
PB
1656
1657install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1658install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1659install-info-target: maybe-install-info-target-libmpx
95e43135 1660install-info-target: maybe-install-info-target-libvtv
e3f56a99 1661install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1662install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1663install-info-target: maybe-install-info-target-libssp
c52c6897 1664install-info-target: maybe-install-info-target-newlib
6aa8ef82 1665install-info-target: maybe-install-info-target-libgcc
2bf680c4 1666install-info-target: maybe-install-info-target-libbacktrace
e552509b 1667install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1668install-info-target: maybe-install-info-target-libgfortran
1669install-info-target: maybe-install-info-target-libobjc
e552509b 1670install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1671install-info-target: maybe-install-info-target-libtermcap
1672install-info-target: maybe-install-info-target-winsup
1673install-info-target: maybe-install-info-target-libgloss
c52c6897 1674install-info-target: maybe-install-info-target-libffi
c52c6897 1675install-info-target: maybe-install-info-target-zlib
c52c6897
PB
1676install-info-target: maybe-install-info-target-rda
1677install-info-target: maybe-install-info-target-libada
1678install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1679install-info-target: maybe-install-info-target-libitm
1680install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1681
a3ca38d2
DD
1682.PHONY: do-install-pdf
1683do-install-pdf:
1684 @: $(MAKE); $(unstage)
1685 @r=`${PWD_COMMAND}`; export r; \
1686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1687 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1688 install-pdf-target
1689
1690
1691.PHONY: install-pdf-host
1692
a3ca38d2
DD
1693install-pdf-host: maybe-install-pdf-bfd
1694install-pdf-host: maybe-install-pdf-opcodes
1695install-pdf-host: maybe-install-pdf-binutils
1696install-pdf-host: maybe-install-pdf-bison
f9806fa5 1697install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1698install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1699install-pdf-host: maybe-install-pdf-etc
1700install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1701install-pdf-host: maybe-install-pdf-fixincludes
1702install-pdf-host: maybe-install-pdf-flex
1703install-pdf-host: maybe-install-pdf-gas
1704install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1705install-pdf-host: maybe-install-pdf-gmp
1706install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1707install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1708install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1709install-pdf-host: maybe-install-pdf-libelf
93f9b408 1710install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1711install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1712install-pdf-host: maybe-install-pdf-intl
1713install-pdf-host: maybe-install-pdf-tcl
1714install-pdf-host: maybe-install-pdf-itcl
1715install-pdf-host: maybe-install-pdf-ld
2bf680c4 1716install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1717install-pdf-host: maybe-install-pdf-libcpp
1718install-pdf-host: maybe-install-pdf-libdecnumber
1719install-pdf-host: maybe-install-pdf-libgui
1720install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1721install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1722install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1723install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1724install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1725install-pdf-host: maybe-install-pdf-sid
1726install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1727install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2 1728install-pdf-host: maybe-install-pdf-zlib
73cc7272 1729install-pdf-host: maybe-install-pdf-gnulib
a3ca38d2
DD
1730install-pdf-host: maybe-install-pdf-gdb
1731install-pdf-host: maybe-install-pdf-expect
1732install-pdf-host: maybe-install-pdf-guile
1733install-pdf-host: maybe-install-pdf-tk
1734install-pdf-host: maybe-install-pdf-libtermcap
1735install-pdf-host: maybe-install-pdf-utils
1736install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1737install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1738install-pdf-host: maybe-install-pdf-libcc1
1739install-pdf-host: maybe-install-pdf-gotools
0e65dfba 1740install-pdf-host: maybe-install-pdf-libctf
a3ca38d2
DD
1741
1742.PHONY: install-pdf-target
1743
1744install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1745install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1746install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1747install-pdf-target: maybe-install-pdf-target-libvtv
e3f56a99 1748install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1749install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1750install-pdf-target: maybe-install-pdf-target-libssp
1751install-pdf-target: maybe-install-pdf-target-newlib
1752install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1753install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1754install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1755install-pdf-target: maybe-install-pdf-target-libgfortran
1756install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1757install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1758install-pdf-target: maybe-install-pdf-target-libtermcap
1759install-pdf-target: maybe-install-pdf-target-winsup
1760install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2 1761install-pdf-target: maybe-install-pdf-target-libffi
a3ca38d2 1762install-pdf-target: maybe-install-pdf-target-zlib
a3ca38d2
DD
1763install-pdf-target: maybe-install-pdf-target-rda
1764install-pdf-target: maybe-install-pdf-target-libada
1765install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1766install-pdf-target: maybe-install-pdf-target-libitm
1767install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1768
108a6f8e
CD
1769.PHONY: do-install-html
1770do-install-html:
1771 @: $(MAKE); $(unstage)
1772 @r=`${PWD_COMMAND}`; export r; \
1773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1774 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1775 install-html-target
1776
1777
1778.PHONY: install-html-host
1779
108a6f8e
CD
1780install-html-host: maybe-install-html-bfd
1781install-html-host: maybe-install-html-opcodes
1782install-html-host: maybe-install-html-binutils
1783install-html-host: maybe-install-html-bison
f9806fa5 1784install-html-host: maybe-install-html-cgen
108a6f8e 1785install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1786install-html-host: maybe-install-html-etc
1787install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1788install-html-host: maybe-install-html-fixincludes
1789install-html-host: maybe-install-html-flex
1790install-html-host: maybe-install-html-gas
1791install-html-host: maybe-install-html-gcc
4b900473
PB
1792install-html-host: maybe-install-html-gmp
1793install-html-host: maybe-install-html-mpfr
e8a5fa9c 1794install-html-host: maybe-install-html-mpc
7ec59b9e 1795install-html-host: maybe-install-html-isl
1f53ca9a 1796install-html-host: maybe-install-html-libelf
93f9b408 1797install-html-host: maybe-install-html-gold
108a6f8e 1798install-html-host: maybe-install-html-gprof
108a6f8e
CD
1799install-html-host: maybe-install-html-intl
1800install-html-host: maybe-install-html-tcl
1801install-html-host: maybe-install-html-itcl
1802install-html-host: maybe-install-html-ld
2bf680c4 1803install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1804install-html-host: maybe-install-html-libcpp
1805install-html-host: maybe-install-html-libdecnumber
1806install-html-host: maybe-install-html-libgui
1807install-html-host: maybe-install-html-libiberty
1b6c0831 1808install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1809install-html-host: maybe-install-html-libiconv
108a6f8e 1810install-html-host: maybe-install-html-m4
108a6f8e 1811install-html-host: maybe-install-html-readline
108a6f8e
CD
1812install-html-host: maybe-install-html-sid
1813install-html-host: maybe-install-html-sim
108a6f8e 1814install-html-host: maybe-install-html-texinfo
108a6f8e 1815install-html-host: maybe-install-html-zlib
73cc7272 1816install-html-host: maybe-install-html-gnulib
108a6f8e
CD
1817install-html-host: maybe-install-html-gdb
1818install-html-host: maybe-install-html-expect
1819install-html-host: maybe-install-html-guile
1820install-html-host: maybe-install-html-tk
1821install-html-host: maybe-install-html-libtermcap
1822install-html-host: maybe-install-html-utils
1823install-html-host: maybe-install-html-gnattools
700d40ca 1824install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1825install-html-host: maybe-install-html-libcc1
1826install-html-host: maybe-install-html-gotools
0e65dfba 1827install-html-host: maybe-install-html-libctf
108a6f8e
CD
1828
1829.PHONY: install-html-target
1830
1831install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1832install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1833install-html-target: maybe-install-html-target-libmpx
95e43135 1834install-html-target: maybe-install-html-target-libvtv
e3f56a99 1835install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1836install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1837install-html-target: maybe-install-html-target-libssp
108a6f8e 1838install-html-target: maybe-install-html-target-newlib
6aa8ef82 1839install-html-target: maybe-install-html-target-libgcc
2bf680c4 1840install-html-target: maybe-install-html-target-libbacktrace
e552509b 1841install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1842install-html-target: maybe-install-html-target-libgfortran
1843install-html-target: maybe-install-html-target-libobjc
e552509b 1844install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1845install-html-target: maybe-install-html-target-libtermcap
1846install-html-target: maybe-install-html-target-winsup
1847install-html-target: maybe-install-html-target-libgloss
108a6f8e 1848install-html-target: maybe-install-html-target-libffi
108a6f8e 1849install-html-target: maybe-install-html-target-zlib
108a6f8e
CD
1850install-html-target: maybe-install-html-target-rda
1851install-html-target: maybe-install-html-target-libada
1852install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1853install-html-target: maybe-install-html-target-libitm
1854install-html-target: maybe-install-html-target-libatomic
108a6f8e 1855
2a4cbe27 1856.PHONY: do-installcheck
f70224b5 1857do-installcheck:
0aed8855 1858 @: $(MAKE); $(unstage)
e360f423
PB
1859 @r=`${PWD_COMMAND}`; export r; \
1860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1861 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1862 installcheck-target
f70224b5 1863
2a4cbe27
NN
1864
1865.PHONY: installcheck-host
c52c6897 1866
c52c6897
PB
1867installcheck-host: maybe-installcheck-bfd
1868installcheck-host: maybe-installcheck-opcodes
1869installcheck-host: maybe-installcheck-binutils
1870installcheck-host: maybe-installcheck-bison
f9806fa5 1871installcheck-host: maybe-installcheck-cgen
c52c6897 1872installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1873installcheck-host: maybe-installcheck-etc
1874installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1875installcheck-host: maybe-installcheck-fixincludes
1876installcheck-host: maybe-installcheck-flex
1877installcheck-host: maybe-installcheck-gas
1878installcheck-host: maybe-installcheck-gcc
4b900473
PB
1879installcheck-host: maybe-installcheck-gmp
1880installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1881installcheck-host: maybe-installcheck-mpc
7ec59b9e 1882installcheck-host: maybe-installcheck-isl
1f53ca9a 1883installcheck-host: maybe-installcheck-libelf
93f9b408 1884installcheck-host: maybe-installcheck-gold
c52c6897 1885installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1886installcheck-host: maybe-installcheck-intl
1887installcheck-host: maybe-installcheck-tcl
1888installcheck-host: maybe-installcheck-itcl
1889installcheck-host: maybe-installcheck-ld
2bf680c4 1890installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1891installcheck-host: maybe-installcheck-libcpp
1892installcheck-host: maybe-installcheck-libdecnumber
1893installcheck-host: maybe-installcheck-libgui
1894installcheck-host: maybe-installcheck-libiberty
1b6c0831 1895installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1896installcheck-host: maybe-installcheck-libiconv
c52c6897 1897installcheck-host: maybe-installcheck-m4
c52c6897 1898installcheck-host: maybe-installcheck-readline
c52c6897
PB
1899installcheck-host: maybe-installcheck-sid
1900installcheck-host: maybe-installcheck-sim
c52c6897 1901installcheck-host: maybe-installcheck-texinfo
c52c6897 1902installcheck-host: maybe-installcheck-zlib
73cc7272 1903installcheck-host: maybe-installcheck-gnulib
c52c6897
PB
1904installcheck-host: maybe-installcheck-gdb
1905installcheck-host: maybe-installcheck-expect
1906installcheck-host: maybe-installcheck-guile
1907installcheck-host: maybe-installcheck-tk
1908installcheck-host: maybe-installcheck-libtermcap
1909installcheck-host: maybe-installcheck-utils
1910installcheck-host: maybe-installcheck-gnattools
700d40ca 1911installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1912installcheck-host: maybe-installcheck-libcc1
1913installcheck-host: maybe-installcheck-gotools
0e65dfba 1914installcheck-host: maybe-installcheck-libctf
2a4cbe27
NN
1915
1916.PHONY: installcheck-target
c52c6897
PB
1917
1918installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 1919installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 1920installcheck-target: maybe-installcheck-target-libmpx
95e43135 1921installcheck-target: maybe-installcheck-target-libvtv
e3f56a99 1922installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 1923installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 1924installcheck-target: maybe-installcheck-target-libssp
c52c6897 1925installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 1926installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 1927installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 1928installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
1929installcheck-target: maybe-installcheck-target-libgfortran
1930installcheck-target: maybe-installcheck-target-libobjc
e552509b 1931installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
1932installcheck-target: maybe-installcheck-target-libtermcap
1933installcheck-target: maybe-installcheck-target-winsup
1934installcheck-target: maybe-installcheck-target-libgloss
c52c6897 1935installcheck-target: maybe-installcheck-target-libffi
c52c6897 1936installcheck-target: maybe-installcheck-target-zlib
c52c6897
PB
1937installcheck-target: maybe-installcheck-target-rda
1938installcheck-target: maybe-installcheck-target-libada
1939installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
1940installcheck-target: maybe-installcheck-target-libitm
1941installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 1942
4fa63067 1943.PHONY: do-mostlyclean
f70224b5 1944do-mostlyclean:
0aed8855 1945 @: $(MAKE); $(unstage)
e360f423
PB
1946 @r=`${PWD_COMMAND}`; export r; \
1947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1948 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 1949 mostlyclean-target
f70224b5 1950
2a4cbe27 1951
4fa63067 1952.PHONY: mostlyclean-host
c52c6897 1953
c52c6897
PB
1954mostlyclean-host: maybe-mostlyclean-bfd
1955mostlyclean-host: maybe-mostlyclean-opcodes
1956mostlyclean-host: maybe-mostlyclean-binutils
1957mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 1958mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 1959mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
1960mostlyclean-host: maybe-mostlyclean-etc
1961mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
1962mostlyclean-host: maybe-mostlyclean-fixincludes
1963mostlyclean-host: maybe-mostlyclean-flex
1964mostlyclean-host: maybe-mostlyclean-gas
1965mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
1966mostlyclean-host: maybe-mostlyclean-gmp
1967mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 1968mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 1969mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 1970mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 1971mostlyclean-host: maybe-mostlyclean-gold
c52c6897 1972mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
1973mostlyclean-host: maybe-mostlyclean-intl
1974mostlyclean-host: maybe-mostlyclean-tcl
1975mostlyclean-host: maybe-mostlyclean-itcl
1976mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 1977mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
1978mostlyclean-host: maybe-mostlyclean-libcpp
1979mostlyclean-host: maybe-mostlyclean-libdecnumber
1980mostlyclean-host: maybe-mostlyclean-libgui
1981mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 1982mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 1983mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 1984mostlyclean-host: maybe-mostlyclean-m4
c52c6897 1985mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
1986mostlyclean-host: maybe-mostlyclean-sid
1987mostlyclean-host: maybe-mostlyclean-sim
c52c6897 1988mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897 1989mostlyclean-host: maybe-mostlyclean-zlib
73cc7272 1990mostlyclean-host: maybe-mostlyclean-gnulib
c52c6897
PB
1991mostlyclean-host: maybe-mostlyclean-gdb
1992mostlyclean-host: maybe-mostlyclean-expect
1993mostlyclean-host: maybe-mostlyclean-guile
1994mostlyclean-host: maybe-mostlyclean-tk
1995mostlyclean-host: maybe-mostlyclean-libtermcap
1996mostlyclean-host: maybe-mostlyclean-utils
1997mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 1998mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
1999mostlyclean-host: maybe-mostlyclean-libcc1
2000mostlyclean-host: maybe-mostlyclean-gotools
0e65dfba 2001mostlyclean-host: maybe-mostlyclean-libctf
2a4cbe27 2002
4fa63067 2003.PHONY: mostlyclean-target
c52c6897
PB
2004
2005mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 2006mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 2007mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 2008mostlyclean-target: maybe-mostlyclean-target-libvtv
e3f56a99 2009mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 2010mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 2011mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2012mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2013mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2014mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2015mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2016mostlyclean-target: maybe-mostlyclean-target-libgfortran
2017mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2018mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2019mostlyclean-target: maybe-mostlyclean-target-libtermcap
2020mostlyclean-target: maybe-mostlyclean-target-winsup
2021mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897 2022mostlyclean-target: maybe-mostlyclean-target-libffi
c52c6897 2023mostlyclean-target: maybe-mostlyclean-target-zlib
c52c6897
PB
2024mostlyclean-target: maybe-mostlyclean-target-rda
2025mostlyclean-target: maybe-mostlyclean-target-libada
2026mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2027mostlyclean-target: maybe-mostlyclean-target-libitm
2028mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2029
4fa63067 2030.PHONY: do-clean
f70224b5 2031do-clean:
0aed8855 2032 @: $(MAKE); $(unstage)
e360f423
PB
2033 @r=`${PWD_COMMAND}`; export r; \
2034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2035 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2036 clean-target
f70224b5 2037
2a4cbe27 2038
4fa63067 2039.PHONY: clean-host
c52c6897 2040
c52c6897
PB
2041clean-host: maybe-clean-bfd
2042clean-host: maybe-clean-opcodes
2043clean-host: maybe-clean-binutils
2044clean-host: maybe-clean-bison
f9806fa5 2045clean-host: maybe-clean-cgen
c52c6897 2046clean-host: maybe-clean-dejagnu
c52c6897
PB
2047clean-host: maybe-clean-etc
2048clean-host: maybe-clean-fastjar
c52c6897
PB
2049clean-host: maybe-clean-fixincludes
2050clean-host: maybe-clean-flex
2051clean-host: maybe-clean-gas
2052clean-host: maybe-clean-gcc
4b900473
PB
2053clean-host: maybe-clean-gmp
2054clean-host: maybe-clean-mpfr
e8a5fa9c 2055clean-host: maybe-clean-mpc
7ec59b9e 2056clean-host: maybe-clean-isl
1f53ca9a 2057clean-host: maybe-clean-libelf
93f9b408 2058clean-host: maybe-clean-gold
c52c6897 2059clean-host: maybe-clean-gprof
c52c6897
PB
2060clean-host: maybe-clean-intl
2061clean-host: maybe-clean-tcl
2062clean-host: maybe-clean-itcl
2063clean-host: maybe-clean-ld
2bf680c4 2064clean-host: maybe-clean-libbacktrace
c52c6897
PB
2065clean-host: maybe-clean-libcpp
2066clean-host: maybe-clean-libdecnumber
2067clean-host: maybe-clean-libgui
2068clean-host: maybe-clean-libiberty
1b6c0831 2069clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2070clean-host: maybe-clean-libiconv
c52c6897 2071clean-host: maybe-clean-m4
c52c6897 2072clean-host: maybe-clean-readline
c52c6897
PB
2073clean-host: maybe-clean-sid
2074clean-host: maybe-clean-sim
c52c6897 2075clean-host: maybe-clean-texinfo
c52c6897 2076clean-host: maybe-clean-zlib
73cc7272 2077clean-host: maybe-clean-gnulib
c52c6897
PB
2078clean-host: maybe-clean-gdb
2079clean-host: maybe-clean-expect
2080clean-host: maybe-clean-guile
2081clean-host: maybe-clean-tk
2082clean-host: maybe-clean-libtermcap
2083clean-host: maybe-clean-utils
2084clean-host: maybe-clean-gnattools
700d40ca 2085clean-host: maybe-clean-lto-plugin
1b6c0831
L
2086clean-host: maybe-clean-libcc1
2087clean-host: maybe-clean-gotools
0e65dfba 2088clean-host: maybe-clean-libctf
2a4cbe27 2089
4fa63067 2090.PHONY: clean-target
c52c6897
PB
2091
2092clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2093clean-target: maybe-clean-target-libsanitizer
1b6c0831 2094clean-target: maybe-clean-target-libmpx
95e43135 2095clean-target: maybe-clean-target-libvtv
e3f56a99 2096clean-target: maybe-clean-target-libcilkrts
1b6c0831 2097clean-target: maybe-clean-target-liboffloadmic
c52c6897 2098clean-target: maybe-clean-target-libssp
c52c6897 2099clean-target: maybe-clean-target-newlib
6aa8ef82 2100clean-target: maybe-clean-target-libgcc
2bf680c4 2101clean-target: maybe-clean-target-libbacktrace
e552509b 2102clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2103clean-target: maybe-clean-target-libgfortran
2104clean-target: maybe-clean-target-libobjc
e552509b 2105clean-target: maybe-clean-target-libgo
c52c6897
PB
2106clean-target: maybe-clean-target-libtermcap
2107clean-target: maybe-clean-target-winsup
2108clean-target: maybe-clean-target-libgloss
c52c6897 2109clean-target: maybe-clean-target-libffi
c52c6897 2110clean-target: maybe-clean-target-zlib
c52c6897
PB
2111clean-target: maybe-clean-target-rda
2112clean-target: maybe-clean-target-libada
2113clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2114clean-target: maybe-clean-target-libitm
2115clean-target: maybe-clean-target-libatomic
2a4cbe27 2116
4fa63067 2117.PHONY: do-distclean
f70224b5 2118do-distclean:
0aed8855 2119 @: $(MAKE); $(unstage)
e360f423
PB
2120 @r=`${PWD_COMMAND}`; export r; \
2121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2122 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2123 distclean-target
f70224b5 2124
2a4cbe27 2125
4fa63067 2126.PHONY: distclean-host
c52c6897 2127
c52c6897
PB
2128distclean-host: maybe-distclean-bfd
2129distclean-host: maybe-distclean-opcodes
2130distclean-host: maybe-distclean-binutils
2131distclean-host: maybe-distclean-bison
f9806fa5 2132distclean-host: maybe-distclean-cgen
c52c6897 2133distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2134distclean-host: maybe-distclean-etc
2135distclean-host: maybe-distclean-fastjar
c52c6897
PB
2136distclean-host: maybe-distclean-fixincludes
2137distclean-host: maybe-distclean-flex
2138distclean-host: maybe-distclean-gas
2139distclean-host: maybe-distclean-gcc
4b900473
PB
2140distclean-host: maybe-distclean-gmp
2141distclean-host: maybe-distclean-mpfr
e8a5fa9c 2142distclean-host: maybe-distclean-mpc
7ec59b9e 2143distclean-host: maybe-distclean-isl
1f53ca9a 2144distclean-host: maybe-distclean-libelf
93f9b408 2145distclean-host: maybe-distclean-gold
c52c6897 2146distclean-host: maybe-distclean-gprof
c52c6897
PB
2147distclean-host: maybe-distclean-intl
2148distclean-host: maybe-distclean-tcl
2149distclean-host: maybe-distclean-itcl
2150distclean-host: maybe-distclean-ld
2bf680c4 2151distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2152distclean-host: maybe-distclean-libcpp
2153distclean-host: maybe-distclean-libdecnumber
2154distclean-host: maybe-distclean-libgui
2155distclean-host: maybe-distclean-libiberty
1b6c0831 2156distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2157distclean-host: maybe-distclean-libiconv
c52c6897 2158distclean-host: maybe-distclean-m4
c52c6897 2159distclean-host: maybe-distclean-readline
c52c6897
PB
2160distclean-host: maybe-distclean-sid
2161distclean-host: maybe-distclean-sim
c52c6897 2162distclean-host: maybe-distclean-texinfo
c52c6897 2163distclean-host: maybe-distclean-zlib
73cc7272 2164distclean-host: maybe-distclean-gnulib
c52c6897
PB
2165distclean-host: maybe-distclean-gdb
2166distclean-host: maybe-distclean-expect
2167distclean-host: maybe-distclean-guile
2168distclean-host: maybe-distclean-tk
2169distclean-host: maybe-distclean-libtermcap
2170distclean-host: maybe-distclean-utils
2171distclean-host: maybe-distclean-gnattools
700d40ca 2172distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2173distclean-host: maybe-distclean-libcc1
2174distclean-host: maybe-distclean-gotools
0e65dfba 2175distclean-host: maybe-distclean-libctf
2a4cbe27 2176
4fa63067 2177.PHONY: distclean-target
c52c6897
PB
2178
2179distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2180distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2181distclean-target: maybe-distclean-target-libmpx
95e43135 2182distclean-target: maybe-distclean-target-libvtv
e3f56a99 2183distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2184distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2185distclean-target: maybe-distclean-target-libssp
c52c6897 2186distclean-target: maybe-distclean-target-newlib
6aa8ef82 2187distclean-target: maybe-distclean-target-libgcc
2bf680c4 2188distclean-target: maybe-distclean-target-libbacktrace
e552509b 2189distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2190distclean-target: maybe-distclean-target-libgfortran
2191distclean-target: maybe-distclean-target-libobjc
e552509b 2192distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2193distclean-target: maybe-distclean-target-libtermcap
2194distclean-target: maybe-distclean-target-winsup
2195distclean-target: maybe-distclean-target-libgloss
c52c6897 2196distclean-target: maybe-distclean-target-libffi
c52c6897 2197distclean-target: maybe-distclean-target-zlib
c52c6897
PB
2198distclean-target: maybe-distclean-target-rda
2199distclean-target: maybe-distclean-target-libada
2200distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2201distclean-target: maybe-distclean-target-libitm
2202distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2203
4fa63067 2204.PHONY: do-maintainer-clean
f70224b5 2205do-maintainer-clean:
0aed8855 2206 @: $(MAKE); $(unstage)
e360f423
PB
2207 @r=`${PWD_COMMAND}`; export r; \
2208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2209 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2210 maintainer-clean-target
f70224b5 2211
2a4cbe27 2212
4fa63067 2213.PHONY: maintainer-clean-host
c52c6897 2214
c52c6897
PB
2215maintainer-clean-host: maybe-maintainer-clean-bfd
2216maintainer-clean-host: maybe-maintainer-clean-opcodes
2217maintainer-clean-host: maybe-maintainer-clean-binutils
2218maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2219maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2220maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2221maintainer-clean-host: maybe-maintainer-clean-etc
2222maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2223maintainer-clean-host: maybe-maintainer-clean-fixincludes
2224maintainer-clean-host: maybe-maintainer-clean-flex
2225maintainer-clean-host: maybe-maintainer-clean-gas
2226maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2227maintainer-clean-host: maybe-maintainer-clean-gmp
2228maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2229maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2230maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2231maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2232maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2233maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2234maintainer-clean-host: maybe-maintainer-clean-intl
2235maintainer-clean-host: maybe-maintainer-clean-tcl
2236maintainer-clean-host: maybe-maintainer-clean-itcl
2237maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2238maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2239maintainer-clean-host: maybe-maintainer-clean-libcpp
2240maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2241maintainer-clean-host: maybe-maintainer-clean-libgui
2242maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2243maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2244maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2245maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2246maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2247maintainer-clean-host: maybe-maintainer-clean-sid
2248maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2249maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897 2250maintainer-clean-host: maybe-maintainer-clean-zlib
73cc7272 2251maintainer-clean-host: maybe-maintainer-clean-gnulib
c52c6897
PB
2252maintainer-clean-host: maybe-maintainer-clean-gdb
2253maintainer-clean-host: maybe-maintainer-clean-expect
2254maintainer-clean-host: maybe-maintainer-clean-guile
2255maintainer-clean-host: maybe-maintainer-clean-tk
2256maintainer-clean-host: maybe-maintainer-clean-libtermcap
2257maintainer-clean-host: maybe-maintainer-clean-utils
2258maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2259maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2260maintainer-clean-host: maybe-maintainer-clean-libcc1
2261maintainer-clean-host: maybe-maintainer-clean-gotools
0e65dfba 2262maintainer-clean-host: maybe-maintainer-clean-libctf
2a4cbe27 2263
4fa63067 2264.PHONY: maintainer-clean-target
c52c6897
PB
2265
2266maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2267maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2268maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2269maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e3f56a99 2270maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2271maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2272maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2273maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2274maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2275maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2276maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2277maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2278maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2279maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2280maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2281maintainer-clean-target: maybe-maintainer-clean-target-winsup
2282maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897 2283maintainer-clean-target: maybe-maintainer-clean-target-libffi
c52c6897 2284maintainer-clean-target: maybe-maintainer-clean-target-zlib
c52c6897
PB
2285maintainer-clean-target: maybe-maintainer-clean-target-rda
2286maintainer-clean-target: maybe-maintainer-clean-target-libada
2287maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2288maintainer-clean-target: maybe-maintainer-clean-target-libitm
2289maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2290
2a4cbe27 2291
4fa63067 2292# Here are the targets which correspond to the do-X targets.
2a4cbe27 2293
a3ca38d2
DD
2294.PHONY: info installcheck dvi pdf html
2295.PHONY: install-info install-pdf install-html
4fa63067
NN
2296.PHONY: clean distclean mostlyclean maintainer-clean realclean
2297.PHONY: local-clean local-distclean local-maintainer-clean
2298info: do-info
2299installcheck: do-installcheck
2300dvi: do-dvi
56a8fe78 2301pdf: do-pdf
6d389afc 2302html: do-html
2a4cbe27 2303
4fa63067
NN
2304# Make sure makeinfo is built before we do a `make info', if we're
2305# in fact building texinfo.
2306do-info: maybe-all-texinfo
2a4cbe27 2307
4fa63067 2308install-info: do-install-info dir.info
b40e3958 2309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2310 if [ -f dir.info ]; then \
2311 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2312 else true; fi
2a4cbe27 2313
a3ca38d2
DD
2314install-pdf: do-install-pdf
2315
108a6f8e
CD
2316install-html: do-install-html
2317
4fa63067
NN
2318local-clean:
2319 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2320
4fa63067
NN
2321local-distclean:
2322 -rm -f Makefile config.status config.cache mh-frag mt-frag
bb7dc663 2323 -rm -f maybedep.tmp serdep.tmp stage_final
4fa63067
NN
2324 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2325 rm -rf $(TARGET_SUBDIR); \
2326 else true; fi
2327 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2328 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2329 rm -rf $(HOST_SUBDIR); \
2330 else true; fi
4fa63067
NN
2331 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2332 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2333 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2334 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
bb7dc663
NC
2335 -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
2336 -rmdir texinfo zlib 2>/dev/null
18fa8f9c 2337 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2338
4fa63067
NN
2339local-maintainer-clean:
2340 @echo "This command is intended for maintainers to use;"
2341 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2342
4fa63067
NN
2343clean: do-clean local-clean
2344mostlyclean: do-mostlyclean local-clean
2345distclean: do-distclean local-clean local-distclean
2346maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2347maintainer-clean: local-distclean
2348realclean: maintainer-clean
2a4cbe27 2349
4fa63067 2350# Check target.
2a4cbe27 2351
4fa63067
NN
2352.PHONY: check do-check
2353check: do-check
2a4cbe27 2354
4fa63067 2355# Only include modules actually being configured and built.
f70224b5
PB
2356.PHONY: check-host
2357check-host: \
4fa63067
NN
2358 maybe-check-bfd \
2359 maybe-check-opcodes \
2360 maybe-check-binutils \
2361 maybe-check-bison \
f9806fa5 2362 maybe-check-cgen \
4fa63067 2363 maybe-check-dejagnu \
4fa63067
NN
2364 maybe-check-etc \
2365 maybe-check-fastjar \
d3ed111c 2366 maybe-check-fixincludes \
4fa63067
NN
2367 maybe-check-flex \
2368 maybe-check-gas \
b813574b 2369 maybe-check-gcc \
4b900473
PB
2370 maybe-check-gmp \
2371 maybe-check-mpfr \
e8a5fa9c 2372 maybe-check-mpc \
7ec59b9e 2373 maybe-check-isl \
1f53ca9a 2374 maybe-check-libelf \
93f9b408 2375 maybe-check-gold \
4fa63067 2376 maybe-check-gprof \
4fa63067
NN
2377 maybe-check-intl \
2378 maybe-check-tcl \
2379 maybe-check-itcl \
2380 maybe-check-ld \
2bf680c4 2381 maybe-check-libbacktrace \
04cf1b77 2382 maybe-check-libcpp \
be01d343 2383 maybe-check-libdecnumber \
4fa63067
NN
2384 maybe-check-libgui \
2385 maybe-check-libiberty \
1b6c0831 2386 maybe-check-libiberty-linker-plugin \
dc448a7b 2387 maybe-check-libiconv \
4fa63067 2388 maybe-check-m4 \
4fa63067 2389 maybe-check-readline \
4fa63067
NN
2390 maybe-check-sid \
2391 maybe-check-sim \
4fa63067 2392 maybe-check-texinfo \
4fa63067 2393 maybe-check-zlib \
73cc7272 2394 maybe-check-gnulib \
4fa63067
NN
2395 maybe-check-gdb \
2396 maybe-check-expect \
2397 maybe-check-guile \
2398 maybe-check-tk \
4fa63067
NN
2399 maybe-check-libtermcap \
2400 maybe-check-utils \
700d40ca 2401 maybe-check-gnattools \
1b6c0831
L
2402 maybe-check-lto-plugin \
2403 maybe-check-libcc1 \
0e65dfba
NA
2404 maybe-check-gotools \
2405 maybe-check-libctf
f70224b5
PB
2406
2407.PHONY: check-target
2408check-target: \
4fa63067 2409 maybe-check-target-libstdc++-v3 \
5286fdef 2410 maybe-check-target-libsanitizer \
1b6c0831 2411 maybe-check-target-libmpx \
95e43135 2412 maybe-check-target-libvtv \
e3f56a99 2413 maybe-check-target-libcilkrts \
1b6c0831 2414 maybe-check-target-liboffloadmic \
064d0a7c 2415 maybe-check-target-libssp \
4fa63067 2416 maybe-check-target-newlib \
6aa8ef82 2417 maybe-check-target-libgcc \
2bf680c4 2418 maybe-check-target-libbacktrace \
e552509b 2419 maybe-check-target-libquadmath \
4b1cb4fe 2420 maybe-check-target-libgfortran \
4fa63067 2421 maybe-check-target-libobjc \
e552509b 2422 maybe-check-target-libgo \
4fa63067
NN
2423 maybe-check-target-libtermcap \
2424 maybe-check-target-winsup \
2425 maybe-check-target-libgloss \
4fa63067 2426 maybe-check-target-libffi \
4fa63067 2427 maybe-check-target-zlib \
4fa63067 2428 maybe-check-target-rda \
b3ded179 2429 maybe-check-target-libada \
7ec59b9e
L
2430 maybe-check-target-libgomp \
2431 maybe-check-target-libitm \
2432 maybe-check-target-libatomic
f70224b5
PB
2433
2434do-check:
0aed8855 2435 @: $(MAKE); $(unstage)
e360f423
PB
2436 @r=`${PWD_COMMAND}`; export r; \
2437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2438 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2439
4fa63067 2440# Automated reporting of test results.
2a4cbe27 2441
4fa63067
NN
2442warning.log: build.log
2443 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2444
4fa63067
NN
2445mail-report.log:
2446 if test x'$(BOOT_CFLAGS)' != x''; then \
2447 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2448 fi; \
2449 $(srcdir)/contrib/test_summary -t >$@
2450 chmod +x $@
2451 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2452
4fa63067
NN
2453mail-report-with-warnings.log: warning.log
2454 if test x'$(BOOT_CFLAGS)' != x''; then \
2455 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2456 fi; \
2457 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2458 chmod +x $@
2459 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2460
1b6c0831
L
2461# Local Vim config
2462
2463$(srcdir)/.local.vimrc:
22121df0 2464 $(LN_S) contrib/vimrc $@
1b6c0831
L
2465
2466$(srcdir)/.lvimrc:
22121df0 2467 $(LN_S) contrib/vimrc $@
1b6c0831
L
2468
2469vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2470
2471.PHONY: vimrc
2472
4849dfd8
NC
2473# clang-format config
2474
2475$(srcdir)/.clang-format:
2476 $(LN_S) contrib/clang-format $@
2477
2478clang-format: $(srcdir)/.clang-format
2479
2480.PHONY: clang-format
2481
4fa63067 2482# Installation targets.
2a4cbe27 2483
4fa63067 2484.PHONY: install uninstall
f70224b5 2485install:
0aed8855 2486 @: $(MAKE); $(unstage)
e360f423
PB
2487 @r=`${PWD_COMMAND}`; export r; \
2488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2489 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2490
4fa63067
NN
2491.PHONY: install-host-nogcc
2492install-host-nogcc: \
4fa63067
NN
2493 maybe-install-bfd \
2494 maybe-install-opcodes \
2495 maybe-install-binutils \
2496 maybe-install-bison \
f9806fa5 2497 maybe-install-cgen \
4fa63067 2498 maybe-install-dejagnu \
4fa63067
NN
2499 maybe-install-etc \
2500 maybe-install-fastjar \
d3ed111c 2501 maybe-install-fixincludes \
4fa63067
NN
2502 maybe-install-flex \
2503 maybe-install-gas \
4b900473
PB
2504 maybe-install-gmp \
2505 maybe-install-mpfr \
e8a5fa9c 2506 maybe-install-mpc \
7ec59b9e 2507 maybe-install-isl \
1f53ca9a 2508 maybe-install-libelf \
93f9b408 2509 maybe-install-gold \
4fa63067 2510 maybe-install-gprof \
4fa63067
NN
2511 maybe-install-intl \
2512 maybe-install-tcl \
2513 maybe-install-itcl \
2514 maybe-install-ld \
2bf680c4 2515 maybe-install-libbacktrace \
04cf1b77 2516 maybe-install-libcpp \
be01d343 2517 maybe-install-libdecnumber \
4fa63067
NN
2518 maybe-install-libgui \
2519 maybe-install-libiberty \
1b6c0831 2520 maybe-install-libiberty-linker-plugin \
dc448a7b 2521 maybe-install-libiconv \
4fa63067 2522 maybe-install-m4 \
4fa63067 2523 maybe-install-readline \
4fa63067
NN
2524 maybe-install-sid \
2525 maybe-install-sim \
4fa63067 2526 maybe-install-texinfo \
4fa63067 2527 maybe-install-zlib \
73cc7272 2528 maybe-install-gnulib \
4fa63067
NN
2529 maybe-install-gdb \
2530 maybe-install-expect \
2531 maybe-install-guile \
2532 maybe-install-tk \
4fa63067 2533 maybe-install-libtermcap \
b00612cc 2534 maybe-install-utils \
700d40ca 2535 maybe-install-gnattools \
1b6c0831
L
2536 maybe-install-lto-plugin \
2537 maybe-install-libcc1 \
0e65dfba
NA
2538 maybe-install-gotools \
2539 maybe-install-libctf
2a4cbe27 2540
4fa63067 2541.PHONY: install-host
b813574b 2542install-host: \
4fa63067
NN
2543 maybe-install-bfd \
2544 maybe-install-opcodes \
2545 maybe-install-binutils \
2546 maybe-install-bison \
f9806fa5 2547 maybe-install-cgen \
4fa63067 2548 maybe-install-dejagnu \
4fa63067
NN
2549 maybe-install-etc \
2550 maybe-install-fastjar \
d3ed111c 2551 maybe-install-fixincludes \
4fa63067
NN
2552 maybe-install-flex \
2553 maybe-install-gas \
b813574b 2554 maybe-install-gcc \
4b900473
PB
2555 maybe-install-gmp \
2556 maybe-install-mpfr \
e8a5fa9c 2557 maybe-install-mpc \
7ec59b9e 2558 maybe-install-isl \
1f53ca9a 2559 maybe-install-libelf \
93f9b408 2560 maybe-install-gold \
4fa63067 2561 maybe-install-gprof \
4fa63067
NN
2562 maybe-install-intl \
2563 maybe-install-tcl \
2564 maybe-install-itcl \
2565 maybe-install-ld \
2bf680c4 2566 maybe-install-libbacktrace \
04cf1b77 2567 maybe-install-libcpp \
be01d343 2568 maybe-install-libdecnumber \
4fa63067
NN
2569 maybe-install-libgui \
2570 maybe-install-libiberty \
1b6c0831 2571 maybe-install-libiberty-linker-plugin \
dc448a7b 2572 maybe-install-libiconv \
4fa63067 2573 maybe-install-m4 \
4fa63067 2574 maybe-install-readline \
4fa63067
NN
2575 maybe-install-sid \
2576 maybe-install-sim \
4fa63067 2577 maybe-install-texinfo \
4fa63067 2578 maybe-install-zlib \
73cc7272 2579 maybe-install-gnulib \
4fa63067
NN
2580 maybe-install-gdb \
2581 maybe-install-expect \
2582 maybe-install-guile \
2583 maybe-install-tk \
4fa63067 2584 maybe-install-libtermcap \
b00612cc 2585 maybe-install-utils \
700d40ca 2586 maybe-install-gnattools \
1b6c0831
L
2587 maybe-install-lto-plugin \
2588 maybe-install-libcc1 \
0e65dfba
NA
2589 maybe-install-gotools \
2590 maybe-install-libctf
2a4cbe27 2591
4fa63067
NN
2592.PHONY: install-target
2593install-target: \
2594 maybe-install-target-libstdc++-v3 \
5286fdef 2595 maybe-install-target-libsanitizer \
1b6c0831 2596 maybe-install-target-libmpx \
95e43135 2597 maybe-install-target-libvtv \
e3f56a99 2598 maybe-install-target-libcilkrts \
1b6c0831 2599 maybe-install-target-liboffloadmic \
064d0a7c 2600 maybe-install-target-libssp \
4fa63067 2601 maybe-install-target-newlib \
6aa8ef82 2602 maybe-install-target-libgcc \
2bf680c4 2603 maybe-install-target-libbacktrace \
e552509b 2604 maybe-install-target-libquadmath \
4b1cb4fe 2605 maybe-install-target-libgfortran \
4fa63067 2606 maybe-install-target-libobjc \
e552509b 2607 maybe-install-target-libgo \
4fa63067
NN
2608 maybe-install-target-libtermcap \
2609 maybe-install-target-winsup \
2610 maybe-install-target-libgloss \
4fa63067 2611 maybe-install-target-libffi \
4fa63067 2612 maybe-install-target-zlib \
4fa63067 2613 maybe-install-target-rda \
b3ded179 2614 maybe-install-target-libada \
7ec59b9e
L
2615 maybe-install-target-libgomp \
2616 maybe-install-target-libitm \
2617 maybe-install-target-libatomic
2a4cbe27 2618
4fa63067
NN
2619uninstall:
2620 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2621
4fa63067
NN
2622.PHONY: install.all
2623install.all: install-no-fixedincludes
22121df0
L
2624 @if [ -f ./gcc/Makefile ]; then \
2625 r=`${PWD_COMMAND}`; export r; \
0aed8855 2626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2627 $(HOST_EXPORTS) \
4fa63067 2628 (cd ./gcc && \
22121df0 2629 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2630 else \
22121df0 2631 true; \
4fa63067 2632 fi
2a4cbe27 2633
7ec59b9e
L
2634# install-no-fixedincludes is used to allow the elaboration of binary packages
2635# suitable for distribution, where we cannot include the fixed system header
2636# files.
4fa63067
NN
2637.PHONY: install-no-fixedincludes
2638install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2639 install-target gcc-install-no-fixedincludes
2a4cbe27 2640
9b980aa1
RW
2641.PHONY: install-strip
2642install-strip:
2643 @: $(MAKE); $(unstage)
2644 @r=`${PWD_COMMAND}`; export r; \
2645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2646 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2647
2648.PHONY: install-strip-host
2649install-strip-host: \
9b980aa1
RW
2650 maybe-install-strip-bfd \
2651 maybe-install-strip-opcodes \
2652 maybe-install-strip-binutils \
2653 maybe-install-strip-bison \
9b980aa1
RW
2654 maybe-install-strip-cgen \
2655 maybe-install-strip-dejagnu \
9b980aa1
RW
2656 maybe-install-strip-etc \
2657 maybe-install-strip-fastjar \
9b980aa1
RW
2658 maybe-install-strip-fixincludes \
2659 maybe-install-strip-flex \
2660 maybe-install-strip-gas \
2661 maybe-install-strip-gcc \
9b980aa1
RW
2662 maybe-install-strip-gmp \
2663 maybe-install-strip-mpfr \
2664 maybe-install-strip-mpc \
7ec59b9e 2665 maybe-install-strip-isl \
9b980aa1 2666 maybe-install-strip-libelf \
9b980aa1
RW
2667 maybe-install-strip-gold \
2668 maybe-install-strip-gprof \
9b980aa1
RW
2669 maybe-install-strip-intl \
2670 maybe-install-strip-tcl \
2671 maybe-install-strip-itcl \
2672 maybe-install-strip-ld \
2bf680c4 2673 maybe-install-strip-libbacktrace \
9b980aa1
RW
2674 maybe-install-strip-libcpp \
2675 maybe-install-strip-libdecnumber \
2676 maybe-install-strip-libgui \
2677 maybe-install-strip-libiberty \
1b6c0831 2678 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2679 maybe-install-strip-libiconv \
9b980aa1 2680 maybe-install-strip-m4 \
9b980aa1 2681 maybe-install-strip-readline \
9b980aa1
RW
2682 maybe-install-strip-sid \
2683 maybe-install-strip-sim \
9b980aa1 2684 maybe-install-strip-texinfo \
9b980aa1 2685 maybe-install-strip-zlib \
73cc7272 2686 maybe-install-strip-gnulib \
9b980aa1
RW
2687 maybe-install-strip-gdb \
2688 maybe-install-strip-expect \
2689 maybe-install-strip-guile \
2690 maybe-install-strip-tk \
2691 maybe-install-strip-libtermcap \
2692 maybe-install-strip-utils \
2693 maybe-install-strip-gnattools \
1b6c0831
L
2694 maybe-install-strip-lto-plugin \
2695 maybe-install-strip-libcc1 \
0e65dfba
NA
2696 maybe-install-strip-gotools \
2697 maybe-install-strip-libctf
9b980aa1
RW
2698
2699.PHONY: install-strip-target
2700install-strip-target: \
2701 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2702 maybe-install-strip-target-libsanitizer \
1b6c0831 2703 maybe-install-strip-target-libmpx \
95e43135 2704 maybe-install-strip-target-libvtv \
e3f56a99 2705 maybe-install-strip-target-libcilkrts \
1b6c0831 2706 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2707 maybe-install-strip-target-libssp \
2708 maybe-install-strip-target-newlib \
2709 maybe-install-strip-target-libgcc \
2bf680c4 2710 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2711 maybe-install-strip-target-libquadmath \
2712 maybe-install-strip-target-libgfortran \
2713 maybe-install-strip-target-libobjc \
2714 maybe-install-strip-target-libgo \
2715 maybe-install-strip-target-libtermcap \
2716 maybe-install-strip-target-winsup \
2717 maybe-install-strip-target-libgloss \
9b980aa1 2718 maybe-install-strip-target-libffi \
9b980aa1 2719 maybe-install-strip-target-zlib \
9b980aa1
RW
2720 maybe-install-strip-target-rda \
2721 maybe-install-strip-target-libada \
7ec59b9e
L
2722 maybe-install-strip-target-libgomp \
2723 maybe-install-strip-target-libitm \
2724 maybe-install-strip-target-libatomic
9b980aa1
RW
2725
2726
4fa63067 2727### other supporting targets
2a4cbe27 2728
4fa63067
NN
2729MAKEDIRS= \
2730 $(DESTDIR)$(prefix) \
2731 $(DESTDIR)$(exec_prefix)
2732.PHONY: installdirs
2733installdirs: mkinstalldirs
2734 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2735
4fa63067 2736dir.info: do-install-info
22121df0
L
2737 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2738 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2739 mv -f dir.info.new dir.info; \
2740 else true; \
4fa63067 2741 fi
2a4cbe27 2742
4fa63067
NN
2743dist:
2744 @echo "Building a full distribution of this tree isn't done"
2745 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2746
4fa63067 2747etags tags: TAGS
2a4cbe27 2748
4fa63067
NN
2749# Right now this just builds TAGS in each subdirectory. emacs19 has the
2750# ability to use several tags files at once, so there is probably no need
2751# to combine them into one big TAGS file (like CVS 1.3 does). We could
2752# (if we felt like it) have this Makefile write a piece of elisp which
2753# the user could load to tell emacs19 where all the TAGS files we just
2754# built are.
2755TAGS: do-TAGS
2a4cbe27 2756
a7254363
PB
2757# ------------------------------------
2758# Macros for configure and all targets
2759# ------------------------------------
2760
2761
2762
2763
2764
4fa63067
NN
2765# --------------------------------------
2766# Modules which run on the build machine
2767# --------------------------------------
2768
a7254363 2769
4fa63067
NN
2770.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2771maybe-configure-build-libiberty:
4f0ef2d8
CD
2772@if gcc-bootstrap
2773configure-build-libiberty: stage_current
2774@endif gcc-bootstrap
6bd3dfaa
PB
2775@if build-libiberty
2776maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2777configure-build-libiberty:
0aed8855 2778 @: $(MAKE); $(unstage)
c52c6897 2779 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2781 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2782 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2783 $(BUILD_EXPORTS) \
4fa63067
NN
2784 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2785 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2786 case $(srcdir) in \
b00612cc
PB
2787 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2788 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2789 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2790 esac; \
1b6c0831 2791 module_srcdir=libiberty; \
4fa63067 2792 rm -f no-such-file || : ; \
1b6c0831
L
2793 CONFIG_SITE=no-such-file $(SHELL) \
2794 $$s/$$module_srcdir/configure \
2795 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2796 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2797 --target=${target_alias} \
2a4cbe27 2798 || exit 1
6bd3dfaa 2799@endif build-libiberty
2a4cbe27 2800
a7254363
PB
2801
2802
d545f33b
PB
2803
2804
4fa63067
NN
2805.PHONY: all-build-libiberty maybe-all-build-libiberty
2806maybe-all-build-libiberty:
4f0ef2d8
CD
2807@if gcc-bootstrap
2808all-build-libiberty: stage_current
2809@endif gcc-bootstrap
6bd3dfaa 2810@if build-libiberty
72b2455a 2811TARGET-build-libiberty=all
6bd3dfaa 2812maybe-all-build-libiberty: all-build-libiberty
4fa63067 2813all-build-libiberty: configure-build-libiberty
0aed8855 2814 @: $(MAKE); $(unstage)
4fa63067 2815 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2817 $(BUILD_EXPORTS) \
72b2455a 2818 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2819 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2820 $(TARGET-build-libiberty))
6bd3dfaa 2821@endif build-libiberty
2a4cbe27 2822
a7254363
PB
2823
2824
d545f33b
PB
2825
2826
6a9cf61e
PB
2827.PHONY: configure-build-bison maybe-configure-build-bison
2828maybe-configure-build-bison:
4f0ef2d8
CD
2829@if gcc-bootstrap
2830configure-build-bison: stage_current
2831@endif gcc-bootstrap
6a9cf61e
PB
2832@if build-bison
2833maybe-configure-build-bison: configure-build-bison
c52c6897 2834configure-build-bison:
0aed8855 2835 @: $(MAKE); $(unstage)
c52c6897 2836 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2838 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2839 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2840 $(BUILD_EXPORTS) \
6a9cf61e
PB
2841 echo Configuring in $(BUILD_SUBDIR)/bison; \
2842 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2843 case $(srcdir) in \
b00612cc
PB
2844 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2845 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2846 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2847 esac; \
1b6c0831 2848 module_srcdir=bison; \
6a9cf61e 2849 rm -f no-such-file || : ; \
1b6c0831
L
2850 CONFIG_SITE=no-such-file $(SHELL) \
2851 $$s/$$module_srcdir/configure \
2852 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2853 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2854 --target=${target_alias} \
6a9cf61e
PB
2855 || exit 1
2856@endif build-bison
2857
a7254363
PB
2858
2859
d545f33b
PB
2860
2861
6a9cf61e
PB
2862.PHONY: all-build-bison maybe-all-build-bison
2863maybe-all-build-bison:
4f0ef2d8
CD
2864@if gcc-bootstrap
2865all-build-bison: stage_current
2866@endif gcc-bootstrap
6a9cf61e 2867@if build-bison
72b2455a 2868TARGET-build-bison=all
6a9cf61e
PB
2869maybe-all-build-bison: all-build-bison
2870all-build-bison: configure-build-bison
0aed8855 2871 @: $(MAKE); $(unstage)
6a9cf61e
PB
2872 @r=`${PWD_COMMAND}`; export r; \
2873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2874 $(BUILD_EXPORTS) \
72b2455a 2875 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2876 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2877 $(TARGET-build-bison))
6a9cf61e
PB
2878@endif build-bison
2879
a7254363
PB
2880
2881
d545f33b
PB
2882
2883
6a9cf61e
PB
2884.PHONY: configure-build-flex maybe-configure-build-flex
2885maybe-configure-build-flex:
4f0ef2d8
CD
2886@if gcc-bootstrap
2887configure-build-flex: stage_current
2888@endif gcc-bootstrap
6a9cf61e
PB
2889@if build-flex
2890maybe-configure-build-flex: configure-build-flex
c52c6897 2891configure-build-flex:
0aed8855 2892 @: $(MAKE); $(unstage)
c52c6897 2893 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2895 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2896 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2897 $(BUILD_EXPORTS) \
6a9cf61e
PB
2898 echo Configuring in $(BUILD_SUBDIR)/flex; \
2899 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2900 case $(srcdir) in \
b00612cc
PB
2901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2902 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2904 esac; \
1b6c0831 2905 module_srcdir=flex; \
6a9cf61e 2906 rm -f no-such-file || : ; \
1b6c0831
L
2907 CONFIG_SITE=no-such-file $(SHELL) \
2908 $$s/$$module_srcdir/configure \
2909 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2910 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2911 --target=${target_alias} \
6a9cf61e
PB
2912 || exit 1
2913@endif build-flex
2914
a7254363
PB
2915
2916
d545f33b
PB
2917
2918
6a9cf61e
PB
2919.PHONY: all-build-flex maybe-all-build-flex
2920maybe-all-build-flex:
4f0ef2d8
CD
2921@if gcc-bootstrap
2922all-build-flex: stage_current
2923@endif gcc-bootstrap
6a9cf61e 2924@if build-flex
72b2455a 2925TARGET-build-flex=all
6a9cf61e
PB
2926maybe-all-build-flex: all-build-flex
2927all-build-flex: configure-build-flex
0aed8855 2928 @: $(MAKE); $(unstage)
6a9cf61e
PB
2929 @r=`${PWD_COMMAND}`; export r; \
2930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2931 $(BUILD_EXPORTS) \
72b2455a 2932 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 2933 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2934 $(TARGET-build-flex))
6a9cf61e
PB
2935@endif build-flex
2936
a7254363
PB
2937
2938
d545f33b
PB
2939
2940
6a9cf61e
PB
2941.PHONY: configure-build-m4 maybe-configure-build-m4
2942maybe-configure-build-m4:
4f0ef2d8
CD
2943@if gcc-bootstrap
2944configure-build-m4: stage_current
2945@endif gcc-bootstrap
6a9cf61e
PB
2946@if build-m4
2947maybe-configure-build-m4: configure-build-m4
c52c6897 2948configure-build-m4:
0aed8855 2949 @: $(MAKE); $(unstage)
c52c6897 2950 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2952 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 2953 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 2954 $(BUILD_EXPORTS) \
6a9cf61e
PB
2955 echo Configuring in $(BUILD_SUBDIR)/m4; \
2956 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2957 case $(srcdir) in \
b00612cc
PB
2958 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2959 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2960 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2961 esac; \
1b6c0831 2962 module_srcdir=m4; \
6a9cf61e 2963 rm -f no-such-file || : ; \
1b6c0831
L
2964 CONFIG_SITE=no-such-file $(SHELL) \
2965 $$s/$$module_srcdir/configure \
2966 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2967 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2968 --target=${target_alias} \
6a9cf61e
PB
2969 || exit 1
2970@endif build-m4
2971
a7254363
PB
2972
2973
d545f33b
PB
2974
2975
6a9cf61e
PB
2976.PHONY: all-build-m4 maybe-all-build-m4
2977maybe-all-build-m4:
4f0ef2d8
CD
2978@if gcc-bootstrap
2979all-build-m4: stage_current
2980@endif gcc-bootstrap
6a9cf61e 2981@if build-m4
72b2455a 2982TARGET-build-m4=all
6a9cf61e
PB
2983maybe-all-build-m4: all-build-m4
2984all-build-m4: configure-build-m4
0aed8855 2985 @: $(MAKE); $(unstage)
6a9cf61e
PB
2986 @r=`${PWD_COMMAND}`; export r; \
2987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2988 $(BUILD_EXPORTS) \
72b2455a 2989 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 2990 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2991 $(TARGET-build-m4))
6a9cf61e
PB
2992@endif build-m4
2993
a7254363
PB
2994
2995
d545f33b
PB
2996
2997
6a9cf61e
PB
2998.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2999maybe-configure-build-texinfo:
4f0ef2d8
CD
3000@if gcc-bootstrap
3001configure-build-texinfo: stage_current
3002@endif gcc-bootstrap
6a9cf61e
PB
3003@if build-texinfo
3004maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 3005configure-build-texinfo:
0aed8855 3006 @: $(MAKE); $(unstage)
c52c6897 3007 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3009 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 3010 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 3011 $(BUILD_EXPORTS) \
6a9cf61e
PB
3012 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3013 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3014 case $(srcdir) in \
b00612cc
PB
3015 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3016 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3017 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3018 esac; \
1b6c0831 3019 module_srcdir=texinfo; \
6a9cf61e 3020 rm -f no-such-file || : ; \
1b6c0831
L
3021 CONFIG_SITE=no-such-file $(SHELL) \
3022 $$s/$$module_srcdir/configure \
3023 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3024 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3025 --target=${target_alias} \
6a9cf61e
PB
3026 || exit 1
3027@endif build-texinfo
3028
a7254363
PB
3029
3030
d545f33b
PB
3031
3032
6a9cf61e
PB
3033.PHONY: all-build-texinfo maybe-all-build-texinfo
3034maybe-all-build-texinfo:
4f0ef2d8
CD
3035@if gcc-bootstrap
3036all-build-texinfo: stage_current
3037@endif gcc-bootstrap
6a9cf61e 3038@if build-texinfo
72b2455a 3039TARGET-build-texinfo=all
6a9cf61e
PB
3040maybe-all-build-texinfo: all-build-texinfo
3041all-build-texinfo: configure-build-texinfo
0aed8855 3042 @: $(MAKE); $(unstage)
6a9cf61e
PB
3043 @r=`${PWD_COMMAND}`; export r; \
3044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3045 $(BUILD_EXPORTS) \
72b2455a 3046 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3047 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3048 $(TARGET-build-texinfo))
6a9cf61e
PB
3049@endif build-texinfo
3050
a7254363
PB
3051
3052
d545f33b
PB
3053
3054
ee025550
PB
3055.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3056maybe-configure-build-fixincludes:
4f0ef2d8
CD
3057@if gcc-bootstrap
3058configure-build-fixincludes: stage_current
3059@endif gcc-bootstrap
ee025550
PB
3060@if build-fixincludes
3061maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3062configure-build-fixincludes:
0aed8855 3063 @: $(MAKE); $(unstage)
c52c6897 3064 @r=`${PWD_COMMAND}`; export r; \
ee025550 3065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3066 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3067 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3068 $(BUILD_EXPORTS) \
ee025550
PB
3069 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3070 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3071 case $(srcdir) in \
b00612cc
PB
3072 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3073 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3074 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3075 esac; \
1b6c0831 3076 module_srcdir=fixincludes; \
ee025550 3077 rm -f no-such-file || : ; \
1b6c0831
L
3078 CONFIG_SITE=no-such-file $(SHELL) \
3079 $$s/$$module_srcdir/configure \
3080 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3081 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3082 --target=${target_alias} \
ee025550
PB
3083 || exit 1
3084@endif build-fixincludes
3085
a7254363
PB
3086
3087
d545f33b
PB
3088
3089
ee025550
PB
3090.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3091maybe-all-build-fixincludes:
4f0ef2d8
CD
3092@if gcc-bootstrap
3093all-build-fixincludes: stage_current
3094@endif gcc-bootstrap
ee025550
PB
3095@if build-fixincludes
3096TARGET-build-fixincludes=all
3097maybe-all-build-fixincludes: all-build-fixincludes
3098all-build-fixincludes: configure-build-fixincludes
0aed8855 3099 @: $(MAKE); $(unstage)
ee025550
PB
3100 @r=`${PWD_COMMAND}`; export r; \
3101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3102 $(BUILD_EXPORTS) \
ee025550 3103 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3104 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3105 $(TARGET-build-fixincludes))
ee025550
PB
3106@endif build-fixincludes
3107
2a4cbe27 3108
a7254363 3109
d545f33b
PB
3110
3111
1b6c0831
L
3112.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3113maybe-configure-build-libcpp:
3114@if gcc-bootstrap
3115configure-build-libcpp: stage_current
3116@endif gcc-bootstrap
3117@if build-libcpp
3118maybe-configure-build-libcpp: configure-build-libcpp
3119configure-build-libcpp:
3120 @: $(MAKE); $(unstage)
3121 @r=`${PWD_COMMAND}`; export r; \
3122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3123 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3124 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3125 $(BUILD_EXPORTS) \
3126 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3127 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3128 case $(srcdir) in \
3129 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3130 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3131 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3132 esac; \
3133 module_srcdir=libcpp; \
3134 rm -f no-such-file || : ; \
3135 CONFIG_SITE=no-such-file $(SHELL) \
3136 $$s/$$module_srcdir/configure \
3137 --srcdir=$${topdir}/$$module_srcdir \
3138 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3139 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3140 || exit 1
3141@endif build-libcpp
3142
3143
3144
3145
3146
3147.PHONY: all-build-libcpp maybe-all-build-libcpp
3148maybe-all-build-libcpp:
3149@if gcc-bootstrap
3150all-build-libcpp: stage_current
3151@endif gcc-bootstrap
3152@if build-libcpp
3153TARGET-build-libcpp=all
3154maybe-all-build-libcpp: all-build-libcpp
3155all-build-libcpp: configure-build-libcpp
3156 @: $(MAKE); $(unstage)
3157 @r=`${PWD_COMMAND}`; export r; \
3158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3159 $(BUILD_EXPORTS) \
3160 (cd $(BUILD_SUBDIR)/libcpp && \
3161 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3162 $(TARGET-build-libcpp))
3163@endif build-libcpp
3164
3165
3166
3167
3168
4fa63067
NN
3169# --------------------------------------
3170# Modules which run on the host machine
3171# --------------------------------------
2a4cbe27 3172
a7254363 3173
a90ef4bf
JM
3174.PHONY: configure-bfd maybe-configure-bfd
3175maybe-configure-bfd:
4f0ef2d8 3176@if gcc-bootstrap
a90ef4bf 3177configure-bfd: stage_current
4f0ef2d8 3178@endif gcc-bootstrap
a90ef4bf
JM
3179@if bfd
3180maybe-configure-bfd: configure-bfd
3181configure-bfd:
c52c6897 3182 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3184 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3185 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3186 $(HOST_EXPORTS) \
a90ef4bf
JM
3187 echo Configuring in $(HOST_SUBDIR)/bfd; \
3188 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3189 case $(srcdir) in \
b00612cc 3190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3191 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3193 esac; \
1b6c0831
L
3194 module_srcdir=bfd; \
3195 $(SHELL) \
3196 $$s/$$module_srcdir/configure \
3197 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3198 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3199 --target=${target_alias} \
2a4cbe27 3200 || exit 1
a90ef4bf 3201@endif bfd
a7254363 3202
d545f33b
PB
3203
3204
a90ef4bf
JM
3205.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3206maybe-configure-stage1-bfd:
3207@if bfd-bootstrap
3208maybe-configure-stage1-bfd: configure-stage1-bfd
3209configure-stage1-bfd:
3210 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3211 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3212 @r=`${PWD_COMMAND}`; export r; \
3213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3214 TFLAGS="$(STAGE1_TFLAGS)"; \
3215 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3216 $(HOST_EXPORTS) \
3217 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3218 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3219 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3220 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3221 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3222 cd $(HOST_SUBDIR)/bfd || exit 1; \
3223 case $(srcdir) in \
3224 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3225 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3226 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3227 esac; \
1b6c0831
L
3228 module_srcdir=bfd; \
3229 $(SHELL) $$s/$$module_srcdir/configure \
3230 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3231 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3232 --target=${target_alias} \
3233 \
a90ef4bf
JM
3234 $(STAGE1_CONFIGURE_FLAGS)
3235@endif bfd-bootstrap
2a4cbe27 3236
a90ef4bf
JM
3237.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3238maybe-configure-stage2-bfd:
3239@if bfd-bootstrap
3240maybe-configure-stage2-bfd: configure-stage2-bfd
3241configure-stage2-bfd:
3242 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3243 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3244 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3246 TFLAGS="$(STAGE2_TFLAGS)"; \
3247 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3248 $(HOST_EXPORTS) \
a90ef4bf
JM
3249 $(POSTSTAGE1_HOST_EXPORTS) \
3250 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3251 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3252 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3253 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3254 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3255 cd $(HOST_SUBDIR)/bfd || exit 1; \
3256 case $(srcdir) in \
3257 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3258 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3259 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3260 esac; \
1b6c0831
L
3261 module_srcdir=bfd; \
3262 $(SHELL) $$s/$$module_srcdir/configure \
3263 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3264 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3265 --target=${target_alias} \
22121df0 3266 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3267 $(STAGE2_CONFIGURE_FLAGS)
3268@endif bfd-bootstrap
2a4cbe27 3269
a90ef4bf
JM
3270.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3271maybe-configure-stage3-bfd:
3272@if bfd-bootstrap
3273maybe-configure-stage3-bfd: configure-stage3-bfd
3274configure-stage3-bfd:
3275 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3276 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3277 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3279 TFLAGS="$(STAGE3_TFLAGS)"; \
3280 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3281 $(HOST_EXPORTS) \
a90ef4bf
JM
3282 $(POSTSTAGE1_HOST_EXPORTS) \
3283 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3284 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3285 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3286 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3287 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3288 cd $(HOST_SUBDIR)/bfd || exit 1; \
3289 case $(srcdir) in \
3290 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3291 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3292 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3293 esac; \
1b6c0831
L
3294 module_srcdir=bfd; \
3295 $(SHELL) $$s/$$module_srcdir/configure \
3296 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3297 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3298 --target=${target_alias} \
22121df0 3299 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3300 $(STAGE3_CONFIGURE_FLAGS)
3301@endif bfd-bootstrap
9b980aa1 3302
a90ef4bf
JM
3303.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3304maybe-configure-stage4-bfd:
3305@if bfd-bootstrap
3306maybe-configure-stage4-bfd: configure-stage4-bfd
3307configure-stage4-bfd:
3308 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3309 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3310 @r=`${PWD_COMMAND}`; export r; \
3311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3312 TFLAGS="$(STAGE4_TFLAGS)"; \
3313 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3314 $(HOST_EXPORTS) \
a90ef4bf
JM
3315 $(POSTSTAGE1_HOST_EXPORTS) \
3316 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3317 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3318 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3319 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3320 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3321 cd $(HOST_SUBDIR)/bfd || exit 1; \
3322 case $(srcdir) in \
3323 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3324 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3325 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3326 esac; \
1b6c0831
L
3327 module_srcdir=bfd; \
3328 $(SHELL) $$s/$$module_srcdir/configure \
3329 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3330 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3331 --target=${target_alias} \
22121df0 3332 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3333 $(STAGE4_CONFIGURE_FLAGS)
3334@endif bfd-bootstrap
4fa63067 3335
a90ef4bf
JM
3336.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3337maybe-configure-stageprofile-bfd:
3338@if bfd-bootstrap
3339maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3340configure-stageprofile-bfd:
3341 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3342 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3343 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3345 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3346 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3347 $(HOST_EXPORTS) \
a90ef4bf
JM
3348 $(POSTSTAGE1_HOST_EXPORTS) \
3349 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3350 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3351 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3352 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3353 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3354 cd $(HOST_SUBDIR)/bfd || exit 1; \
3355 case $(srcdir) in \
3356 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3357 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3358 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3359 esac; \
1b6c0831
L
3360 module_srcdir=bfd; \
3361 $(SHELL) $$s/$$module_srcdir/configure \
3362 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3363 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3364 --target=${target_alias} \
22121df0 3365 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3366 $(STAGEprofile_CONFIGURE_FLAGS)
3367@endif bfd-bootstrap
2a4cbe27 3368
a90ef4bf
JM
3369.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3370maybe-configure-stagefeedback-bfd:
3371@if bfd-bootstrap
3372maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3373configure-stagefeedback-bfd:
3374 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3375 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3376 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3378 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3379 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3380 $(HOST_EXPORTS) \
a90ef4bf
JM
3381 $(POSTSTAGE1_HOST_EXPORTS) \
3382 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3383 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3384 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3385 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3386 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3387 cd $(HOST_SUBDIR)/bfd || exit 1; \
3388 case $(srcdir) in \
3389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3390 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3392 esac; \
1b6c0831
L
3393 module_srcdir=bfd; \
3394 $(SHELL) $$s/$$module_srcdir/configure \
3395 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3396 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3397 --target=${target_alias} \
22121df0 3398 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3399 $(STAGEfeedback_CONFIGURE_FLAGS)
3400@endif bfd-bootstrap
2a4cbe27 3401
56a8fe78 3402
56a8fe78 3403
56a8fe78 3404
6d389afc 3405
a90ef4bf
JM
3406.PHONY: all-bfd maybe-all-bfd
3407maybe-all-bfd:
3408@if gcc-bootstrap
3409all-bfd: stage_current
3410@endif gcc-bootstrap
3411@if bfd
3412TARGET-bfd=all
3413maybe-all-bfd: all-bfd
3414all-bfd: configure-bfd
3415 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3417 $(HOST_EXPORTS) \
3418 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3419 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3420 $(TARGET-bfd))
3421@endif bfd
6d389afc 3422
6d389afc 3423
2a4cbe27 3424
a90ef4bf
JM
3425.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3426.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3427maybe-all-stage1-bfd:
3428maybe-clean-stage1-bfd:
3429@if bfd-bootstrap
3430maybe-all-stage1-bfd: all-stage1-bfd
3431all-stage1: all-stage1-bfd
3432TARGET-stage1-bfd = $(TARGET-bfd)
3433all-stage1-bfd: configure-stage1-bfd
3434 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3435 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3437 TFLAGS="$(STAGE1_TFLAGS)"; \
3438 $(HOST_EXPORTS) \
3439 cd $(HOST_SUBDIR)/bfd && \
05a13254 3440 \
a90ef4bf
JM
3441 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3442 CFLAGS="$(STAGE1_CFLAGS)" \
3443 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3444 LIBCFLAGS="$(LIBCFLAGS)" \
3445 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3446 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3447 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3448 $(EXTRA_HOST_FLAGS) \
3449 $(STAGE1_FLAGS_TO_PASS) \
05a13254 3450 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 3451 $(TARGET-stage1-bfd)
2a4cbe27 3452
a90ef4bf
JM
3453maybe-clean-stage1-bfd: clean-stage1-bfd
3454clean-stage1: clean-stage1-bfd
3455clean-stage1-bfd:
3456 @if [ $(current_stage) = stage1 ]; then \
3457 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3458 else \
3459 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3460 $(MAKE) stage1-start; \
3461 fi; \
3462 cd $(HOST_SUBDIR)/bfd && \
3463 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3464 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3465@endif bfd-bootstrap
2a4cbe27 3466
2a4cbe27 3467
a90ef4bf
JM
3468.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3469.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3470maybe-all-stage2-bfd:
3471maybe-clean-stage2-bfd:
3472@if bfd-bootstrap
3473maybe-all-stage2-bfd: all-stage2-bfd
3474all-stage2: all-stage2-bfd
3475TARGET-stage2-bfd = $(TARGET-bfd)
3476all-stage2-bfd: configure-stage2-bfd
3477 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3478 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3480 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3481 $(HOST_EXPORTS) \
a90ef4bf
JM
3482 $(POSTSTAGE1_HOST_EXPORTS) \
3483 cd $(HOST_SUBDIR)/bfd && \
05a13254 3484 \
a90ef4bf
JM
3485 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3486 CFLAGS="$(STAGE2_CFLAGS)" \
3487 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3488 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3489 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3490 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3491 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3492 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3493 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 3494 $(TARGET-stage2-bfd)
2a4cbe27 3495
a90ef4bf
JM
3496maybe-clean-stage2-bfd: clean-stage2-bfd
3497clean-stage2: clean-stage2-bfd
3498clean-stage2-bfd:
3499 @if [ $(current_stage) = stage2 ]; then \
3500 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3501 else \
3502 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3503 $(MAKE) stage2-start; \
3504 fi; \
3505 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3506 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3507@endif bfd-bootstrap
2a4cbe27 3508
a3ca38d2 3509
a90ef4bf
JM
3510.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3511.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3512maybe-all-stage3-bfd:
3513maybe-clean-stage3-bfd:
3514@if bfd-bootstrap
3515maybe-all-stage3-bfd: all-stage3-bfd
3516all-stage3: all-stage3-bfd
3517TARGET-stage3-bfd = $(TARGET-bfd)
3518all-stage3-bfd: configure-stage3-bfd
3519 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3520 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3522 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3523 $(HOST_EXPORTS) \
a90ef4bf
JM
3524 $(POSTSTAGE1_HOST_EXPORTS) \
3525 cd $(HOST_SUBDIR)/bfd && \
05a13254 3526 \
a90ef4bf
JM
3527 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3528 CFLAGS="$(STAGE3_CFLAGS)" \
3529 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3530 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3531 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3532 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3533 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3534 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3535 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 3536 $(TARGET-stage3-bfd)
a3ca38d2 3537
a90ef4bf
JM
3538maybe-clean-stage3-bfd: clean-stage3-bfd
3539clean-stage3: clean-stage3-bfd
3540clean-stage3-bfd:
3541 @if [ $(current_stage) = stage3 ]; then \
3542 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3543 else \
3544 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3545 $(MAKE) stage3-start; \
3546 fi; \
3547 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3548 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3549@endif bfd-bootstrap
a3ca38d2 3550
108a6f8e 3551
a90ef4bf
JM
3552.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3553.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3554maybe-all-stage4-bfd:
3555maybe-clean-stage4-bfd:
3556@if bfd-bootstrap
3557maybe-all-stage4-bfd: all-stage4-bfd
3558all-stage4: all-stage4-bfd
3559TARGET-stage4-bfd = $(TARGET-bfd)
3560all-stage4-bfd: configure-stage4-bfd
3561 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3562 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3564 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3565 $(HOST_EXPORTS) \
a90ef4bf
JM
3566 $(POSTSTAGE1_HOST_EXPORTS) \
3567 cd $(HOST_SUBDIR)/bfd && \
05a13254 3568 \
a90ef4bf
JM
3569 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3570 CFLAGS="$(STAGE4_CFLAGS)" \
3571 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3572 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3573 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3574 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3575 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3576 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3577 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 3578 $(TARGET-stage4-bfd)
108a6f8e 3579
a90ef4bf
JM
3580maybe-clean-stage4-bfd: clean-stage4-bfd
3581clean-stage4: clean-stage4-bfd
3582clean-stage4-bfd:
3583 @if [ $(current_stage) = stage4 ]; then \
3584 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3585 else \
3586 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3587 $(MAKE) stage4-start; \
3588 fi; \
3589 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3590 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3591@endif bfd-bootstrap
108a6f8e 3592
2a4cbe27 3593
a90ef4bf
JM
3594.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3595.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3596maybe-all-stageprofile-bfd:
3597maybe-clean-stageprofile-bfd:
3598@if bfd-bootstrap
3599maybe-all-stageprofile-bfd: all-stageprofile-bfd
3600all-stageprofile: all-stageprofile-bfd
3601TARGET-stageprofile-bfd = $(TARGET-bfd)
3602all-stageprofile-bfd: configure-stageprofile-bfd
3603 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3604 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3606 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3607 $(HOST_EXPORTS) \
a90ef4bf
JM
3608 $(POSTSTAGE1_HOST_EXPORTS) \
3609 cd $(HOST_SUBDIR)/bfd && \
05a13254 3610 \
a90ef4bf
JM
3611 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3612 CFLAGS="$(STAGEprofile_CFLAGS)" \
3613 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3614 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3615 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3616 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3617 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3618 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3619 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 3620 $(TARGET-stageprofile-bfd)
2a4cbe27 3621
a90ef4bf
JM
3622maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3623clean-stageprofile: clean-stageprofile-bfd
3624clean-stageprofile-bfd:
3625 @if [ $(current_stage) = stageprofile ]; then \
3626 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3627 else \
3628 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3629 $(MAKE) stageprofile-start; \
3630 fi; \
3631 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3632 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3633@endif bfd-bootstrap
2a4cbe27 3634
a7254363 3635
a90ef4bf
JM
3636.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3637.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3638maybe-all-stagefeedback-bfd:
3639maybe-clean-stagefeedback-bfd:
3640@if bfd-bootstrap
3641maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3642all-stagefeedback: all-stagefeedback-bfd
3643TARGET-stagefeedback-bfd = $(TARGET-bfd)
3644all-stagefeedback-bfd: configure-stagefeedback-bfd
3645 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3646 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3648 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3649 $(HOST_EXPORTS) \
3650 $(POSTSTAGE1_HOST_EXPORTS) \
3651 cd $(HOST_SUBDIR)/bfd && \
05a13254 3652 \
a90ef4bf
JM
3653 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3654 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3655 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3656 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3657 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3658 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3659 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3660 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3661 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 3662 $(TARGET-stagefeedback-bfd)
d545f33b 3663
a90ef4bf
JM
3664maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3665clean-stagefeedback: clean-stagefeedback-bfd
3666clean-stagefeedback-bfd:
3667 @if [ $(current_stage) = stagefeedback ]; then \
3668 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3669 else \
3670 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3671 $(MAKE) stagefeedback-start; \
3672 fi; \
3673 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3674 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3675@endif bfd-bootstrap
d545f33b 3676
2a4cbe27 3677
a7254363 3678
d545f33b
PB
3679
3680
a90ef4bf
JM
3681.PHONY: check-bfd maybe-check-bfd
3682maybe-check-bfd:
3683@if bfd
3684maybe-check-bfd: check-bfd
2a4cbe27 3685
a90ef4bf 3686check-bfd:
0aed8855 3687 @: $(MAKE); $(unstage)
4fa63067 3688 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3690 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3691 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3692 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3693
a90ef4bf 3694@endif bfd
2a4cbe27 3695
a90ef4bf
JM
3696.PHONY: install-bfd maybe-install-bfd
3697maybe-install-bfd:
3698@if bfd
3699maybe-install-bfd: install-bfd
2a4cbe27 3700
a90ef4bf 3701install-bfd: installdirs
0aed8855 3702 @: $(MAKE); $(unstage)
4fa63067 3703 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3705 $(HOST_EXPORTS) \
a90ef4bf 3706 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3707 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3708
a90ef4bf 3709@endif bfd
2a4cbe27 3710
a90ef4bf
JM
3711.PHONY: install-strip-bfd maybe-install-strip-bfd
3712maybe-install-strip-bfd:
3713@if bfd
3714maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3715
a90ef4bf 3716install-strip-bfd: installdirs
9b980aa1
RW
3717 @: $(MAKE); $(unstage)
3718 @r=`${PWD_COMMAND}`; export r; \
3719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3720 $(HOST_EXPORTS) \
a90ef4bf 3721 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3722 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3723
a90ef4bf 3724@endif bfd
9b980aa1 3725
56a8fe78 3726# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3727
a90ef4bf
JM
3728.PHONY: maybe-info-bfd info-bfd
3729maybe-info-bfd:
3730@if bfd
3731maybe-info-bfd: info-bfd
4fa63067 3732
a90ef4bf
JM
3733info-bfd: \
3734 configure-bfd
3735 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3736 r=`${PWD_COMMAND}`; export r; \
3737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3738 $(HOST_EXPORTS) \
b813574b 3739 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3741 done; \
22121df0 3742 echo "Doing info in bfd"; \
a90ef4bf 3743 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3746 "RANLIB=$${RANLIB}" \
0c24b341 3747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3748 info) \
2a4cbe27
NN
3749 || exit 1
3750
a90ef4bf 3751@endif bfd
2a4cbe27 3752
a90ef4bf
JM
3753.PHONY: maybe-dvi-bfd dvi-bfd
3754maybe-dvi-bfd:
3755@if bfd
3756maybe-dvi-bfd: dvi-bfd
2a4cbe27 3757
a90ef4bf
JM
3758dvi-bfd: \
3759 configure-bfd
3760 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3761 r=`${PWD_COMMAND}`; export r; \
3762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3763 $(HOST_EXPORTS) \
b813574b 3764 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3766 done; \
22121df0 3767 echo "Doing dvi in bfd"; \
a90ef4bf 3768 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3771 "RANLIB=$${RANLIB}" \
0c24b341 3772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3773 dvi) \
2a4cbe27
NN
3774 || exit 1
3775
a90ef4bf 3776@endif bfd
2a4cbe27 3777
a90ef4bf
JM
3778.PHONY: maybe-pdf-bfd pdf-bfd
3779maybe-pdf-bfd:
3780@if bfd
3781maybe-pdf-bfd: pdf-bfd
56a8fe78 3782
a90ef4bf
JM
3783pdf-bfd: \
3784 configure-bfd
3785 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3786 r=`${PWD_COMMAND}`; export r; \
3787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3788 $(HOST_EXPORTS) \
3789 for flag in $(EXTRA_HOST_FLAGS) ; do \
3790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3791 done; \
22121df0 3792 echo "Doing pdf in bfd"; \
a90ef4bf 3793 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3796 "RANLIB=$${RANLIB}" \
0c24b341 3797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3798 pdf) \
3799 || exit 1
3800
a90ef4bf 3801@endif bfd
56a8fe78 3802
a90ef4bf
JM
3803.PHONY: maybe-html-bfd html-bfd
3804maybe-html-bfd:
3805@if bfd
3806maybe-html-bfd: html-bfd
6d389afc 3807
a90ef4bf
JM
3808html-bfd: \
3809 configure-bfd
3810 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3811 r=`${PWD_COMMAND}`; export r; \
3812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3813 $(HOST_EXPORTS) \
3814 for flag in $(EXTRA_HOST_FLAGS) ; do \
3815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3816 done; \
22121df0 3817 echo "Doing html in bfd"; \
a90ef4bf 3818 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3821 "RANLIB=$${RANLIB}" \
0c24b341 3822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3823 html) \
3824 || exit 1
3825
a90ef4bf 3826@endif bfd
6d389afc 3827
a90ef4bf
JM
3828.PHONY: maybe-TAGS-bfd TAGS-bfd
3829maybe-TAGS-bfd:
3830@if bfd
3831maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3832
a90ef4bf
JM
3833TAGS-bfd: \
3834 configure-bfd
3835 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3836 r=`${PWD_COMMAND}`; export r; \
3837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3838 $(HOST_EXPORTS) \
b813574b 3839 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3841 done; \
22121df0 3842 echo "Doing TAGS in bfd"; \
a90ef4bf 3843 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3846 "RANLIB=$${RANLIB}" \
0c24b341 3847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3848 TAGS) \
2a4cbe27
NN
3849 || exit 1
3850
a90ef4bf 3851@endif bfd
2a4cbe27 3852
a90ef4bf
JM
3853.PHONY: maybe-install-info-bfd install-info-bfd
3854maybe-install-info-bfd:
3855@if bfd
3856maybe-install-info-bfd: install-info-bfd
2a4cbe27 3857
a90ef4bf
JM
3858install-info-bfd: \
3859 configure-bfd \
3860 info-bfd
3861 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3862 r=`${PWD_COMMAND}`; export r; \
3863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3864 $(HOST_EXPORTS) \
b813574b 3865 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3867 done; \
22121df0 3868 echo "Doing install-info in bfd"; \
a90ef4bf 3869 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3872 "RANLIB=$${RANLIB}" \
0c24b341 3873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3874 install-info) \
2a4cbe27
NN
3875 || exit 1
3876
a90ef4bf 3877@endif bfd
2a4cbe27 3878
a90ef4bf
JM
3879.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3880maybe-install-pdf-bfd:
3881@if bfd
3882maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3883
a90ef4bf
JM
3884install-pdf-bfd: \
3885 configure-bfd \
3886 pdf-bfd
3887 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3888 r=`${PWD_COMMAND}`; export r; \
3889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3890 $(HOST_EXPORTS) \
3891 for flag in $(EXTRA_HOST_FLAGS) ; do \
3892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3893 done; \
22121df0 3894 echo "Doing install-pdf in bfd"; \
a90ef4bf 3895 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3898 "RANLIB=$${RANLIB}" \
0c24b341 3899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3900 install-pdf) \
3901 || exit 1
3902
a90ef4bf 3903@endif bfd
a3ca38d2 3904
a90ef4bf
JM
3905.PHONY: maybe-install-html-bfd install-html-bfd
3906maybe-install-html-bfd:
3907@if bfd
3908maybe-install-html-bfd: install-html-bfd
108a6f8e 3909
a90ef4bf
JM
3910install-html-bfd: \
3911 configure-bfd \
3912 html-bfd
3913 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
3914 r=`${PWD_COMMAND}`; export r; \
3915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3916 $(HOST_EXPORTS) \
3917 for flag in $(EXTRA_HOST_FLAGS) ; do \
3918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3919 done; \
22121df0 3920 echo "Doing install-html in bfd"; \
a90ef4bf 3921 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
3922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3924 "RANLIB=$${RANLIB}" \
0c24b341 3925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
3926 install-html) \
3927 || exit 1
3928
a90ef4bf 3929@endif bfd
108a6f8e 3930
a90ef4bf
JM
3931.PHONY: maybe-installcheck-bfd installcheck-bfd
3932maybe-installcheck-bfd:
3933@if bfd
3934maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 3935
a90ef4bf
JM
3936installcheck-bfd: \
3937 configure-bfd
3938 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3939 r=`${PWD_COMMAND}`; export r; \
3940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3941 $(HOST_EXPORTS) \
b813574b 3942 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3944 done; \
22121df0 3945 echo "Doing installcheck in bfd"; \
a90ef4bf 3946 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3949 "RANLIB=$${RANLIB}" \
0c24b341 3950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3951 installcheck) \
2a4cbe27
NN
3952 || exit 1
3953
a90ef4bf 3954@endif bfd
2a4cbe27 3955
a90ef4bf
JM
3956.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3957maybe-mostlyclean-bfd:
3958@if bfd
3959maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 3960
a90ef4bf
JM
3961mostlyclean-bfd:
3962 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3963 r=`${PWD_COMMAND}`; export r; \
3964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3965 $(HOST_EXPORTS) \
b813574b 3966 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3968 done; \
22121df0 3969 echo "Doing mostlyclean in bfd"; \
a90ef4bf 3970 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3973 "RANLIB=$${RANLIB}" \
0c24b341 3974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3975 mostlyclean) \
2a4cbe27
NN
3976 || exit 1
3977
a90ef4bf 3978@endif bfd
2a4cbe27 3979
a90ef4bf
JM
3980.PHONY: maybe-clean-bfd clean-bfd
3981maybe-clean-bfd:
3982@if bfd
3983maybe-clean-bfd: clean-bfd
2a4cbe27 3984
a90ef4bf
JM
3985clean-bfd:
3986 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3987 r=`${PWD_COMMAND}`; export r; \
3988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3989 $(HOST_EXPORTS) \
b813574b 3990 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3992 done; \
22121df0 3993 echo "Doing clean in bfd"; \
a90ef4bf 3994 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3997 "RANLIB=$${RANLIB}" \
0c24b341 3998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3999 clean) \
2a4cbe27
NN
4000 || exit 1
4001
a90ef4bf 4002@endif bfd
2a4cbe27 4003
a90ef4bf
JM
4004.PHONY: maybe-distclean-bfd distclean-bfd
4005maybe-distclean-bfd:
4006@if bfd
4007maybe-distclean-bfd: distclean-bfd
2a4cbe27 4008
a90ef4bf
JM
4009distclean-bfd:
4010 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4011 r=`${PWD_COMMAND}`; export r; \
4012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4013 $(HOST_EXPORTS) \
b813574b 4014 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4016 done; \
22121df0 4017 echo "Doing distclean in bfd"; \
a90ef4bf 4018 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4021 "RANLIB=$${RANLIB}" \
0c24b341 4022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4023 distclean) \
2a4cbe27
NN
4024 || exit 1
4025
a90ef4bf 4026@endif bfd
2a4cbe27 4027
a90ef4bf
JM
4028.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4029maybe-maintainer-clean-bfd:
4030@if bfd
4031maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4032
a90ef4bf
JM
4033maintainer-clean-bfd:
4034 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4035 r=`${PWD_COMMAND}`; export r; \
4036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4037 $(HOST_EXPORTS) \
b813574b 4038 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4040 done; \
22121df0 4041 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4042 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4045 "RANLIB=$${RANLIB}" \
0c24b341 4046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4047 maintainer-clean) \
2a4cbe27
NN
4048 || exit 1
4049
a90ef4bf 4050@endif bfd
2a4cbe27 4051
2a4cbe27 4052
a7254363 4053
a90ef4bf
JM
4054.PHONY: configure-opcodes maybe-configure-opcodes
4055maybe-configure-opcodes:
4f0ef2d8 4056@if gcc-bootstrap
a90ef4bf 4057configure-opcodes: stage_current
4f0ef2d8 4058@endif gcc-bootstrap
a90ef4bf
JM
4059@if opcodes
4060maybe-configure-opcodes: configure-opcodes
4061configure-opcodes:
c52c6897 4062 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4064 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4065 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4066 $(HOST_EXPORTS) \
a90ef4bf
JM
4067 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4068 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4069 case $(srcdir) in \
b00612cc 4070 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4071 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4072 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4073 esac; \
1b6c0831
L
4074 module_srcdir=opcodes; \
4075 $(SHELL) \
4076 $$s/$$module_srcdir/configure \
4077 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4078 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4079 --target=${target_alias} \
2a4cbe27 4080 || exit 1
a90ef4bf 4081@endif opcodes
a7254363 4082
d545f33b
PB
4083
4084
a90ef4bf
JM
4085.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4086maybe-configure-stage1-opcodes:
4087@if opcodes-bootstrap
4088maybe-configure-stage1-opcodes: configure-stage1-opcodes
4089configure-stage1-opcodes:
4090 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4091 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4092 @r=`${PWD_COMMAND}`; export r; \
4093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4094 TFLAGS="$(STAGE1_TFLAGS)"; \
4095 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4096 $(HOST_EXPORTS) \
4097 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4098 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4099 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4100 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4101 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4102 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4103 case $(srcdir) in \
4104 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4105 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4106 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4107 esac; \
1b6c0831
L
4108 module_srcdir=opcodes; \
4109 $(SHELL) $$s/$$module_srcdir/configure \
4110 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4111 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4112 --target=${target_alias} \
4113 \
a90ef4bf
JM
4114 $(STAGE1_CONFIGURE_FLAGS)
4115@endif opcodes-bootstrap
2a4cbe27 4116
a90ef4bf
JM
4117.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4118maybe-configure-stage2-opcodes:
4119@if opcodes-bootstrap
4120maybe-configure-stage2-opcodes: configure-stage2-opcodes
4121configure-stage2-opcodes:
4122 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4123 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4124 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4126 TFLAGS="$(STAGE2_TFLAGS)"; \
4127 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4128 $(HOST_EXPORTS) \
a90ef4bf
JM
4129 $(POSTSTAGE1_HOST_EXPORTS) \
4130 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4131 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4132 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4133 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4134 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4135 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4136 case $(srcdir) in \
4137 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4138 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4139 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4140 esac; \
1b6c0831
L
4141 module_srcdir=opcodes; \
4142 $(SHELL) $$s/$$module_srcdir/configure \
4143 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4144 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4145 --target=${target_alias} \
22121df0 4146 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4147 $(STAGE2_CONFIGURE_FLAGS)
4148@endif opcodes-bootstrap
2a4cbe27 4149
a90ef4bf
JM
4150.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4151maybe-configure-stage3-opcodes:
4152@if opcodes-bootstrap
4153maybe-configure-stage3-opcodes: configure-stage3-opcodes
4154configure-stage3-opcodes:
4155 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4156 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4157 @r=`${PWD_COMMAND}`; export r; \
4158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4159 TFLAGS="$(STAGE3_TFLAGS)"; \
4160 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4161 $(HOST_EXPORTS) \
a90ef4bf
JM
4162 $(POSTSTAGE1_HOST_EXPORTS) \
4163 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4164 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4165 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4166 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4167 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4168 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4169 case $(srcdir) in \
4170 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4171 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4172 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4173 esac; \
1b6c0831
L
4174 module_srcdir=opcodes; \
4175 $(SHELL) $$s/$$module_srcdir/configure \
4176 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4177 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4178 --target=${target_alias} \
22121df0 4179 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4180 $(STAGE3_CONFIGURE_FLAGS)
4181@endif opcodes-bootstrap
9b980aa1 4182
a90ef4bf
JM
4183.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4184maybe-configure-stage4-opcodes:
4185@if opcodes-bootstrap
4186maybe-configure-stage4-opcodes: configure-stage4-opcodes
4187configure-stage4-opcodes:
4188 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4189 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4190 @r=`${PWD_COMMAND}`; export r; \
4191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4192 TFLAGS="$(STAGE4_TFLAGS)"; \
4193 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4194 $(HOST_EXPORTS) \
a90ef4bf
JM
4195 $(POSTSTAGE1_HOST_EXPORTS) \
4196 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4197 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4198 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4199 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4200 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4201 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4202 case $(srcdir) in \
4203 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4204 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4205 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4206 esac; \
1b6c0831
L
4207 module_srcdir=opcodes; \
4208 $(SHELL) $$s/$$module_srcdir/configure \
4209 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4210 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4211 --target=${target_alias} \
22121df0 4212 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4213 $(STAGE4_CONFIGURE_FLAGS)
4214@endif opcodes-bootstrap
4fa63067 4215
a90ef4bf
JM
4216.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4217maybe-configure-stageprofile-opcodes:
4218@if opcodes-bootstrap
4219maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4220configure-stageprofile-opcodes:
4221 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4222 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4223 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4225 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4226 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4227 $(HOST_EXPORTS) \
a90ef4bf
JM
4228 $(POSTSTAGE1_HOST_EXPORTS) \
4229 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4230 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4231 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4232 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4233 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4234 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4235 case $(srcdir) in \
4236 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4237 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4238 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4239 esac; \
1b6c0831
L
4240 module_srcdir=opcodes; \
4241 $(SHELL) $$s/$$module_srcdir/configure \
4242 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4243 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4244 --target=${target_alias} \
22121df0 4245 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4246 $(STAGEprofile_CONFIGURE_FLAGS)
4247@endif opcodes-bootstrap
4248
4249.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4250maybe-configure-stagefeedback-opcodes:
4251@if opcodes-bootstrap
4252maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4253configure-stagefeedback-opcodes:
4254 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4255 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4256 @r=`${PWD_COMMAND}`; export r; \
4257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4258 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4259 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4260 $(HOST_EXPORTS) \
4261 $(POSTSTAGE1_HOST_EXPORTS) \
4262 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4263 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4264 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4265 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4266 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4267 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4268 case $(srcdir) in \
4269 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4270 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4271 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4272 esac; \
1b6c0831
L
4273 module_srcdir=opcodes; \
4274 $(SHELL) $$s/$$module_srcdir/configure \
4275 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4276 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4277 --target=${target_alias} \
22121df0 4278 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4279 $(STAGEfeedback_CONFIGURE_FLAGS)
4280@endif opcodes-bootstrap
4281
4282
4283
4284
4285
4286.PHONY: all-opcodes maybe-all-opcodes
4287maybe-all-opcodes:
4288@if gcc-bootstrap
4289all-opcodes: stage_current
4290@endif gcc-bootstrap
4291@if opcodes
4292TARGET-opcodes=all
4293maybe-all-opcodes: all-opcodes
4294all-opcodes: configure-opcodes
4295 @r=`${PWD_COMMAND}`; export r; \
4296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4297 $(HOST_EXPORTS) \
4298 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4299 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4300 $(TARGET-opcodes))
4301@endif opcodes
4302
4303
4304
4305.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4306.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4307maybe-all-stage1-opcodes:
4308maybe-clean-stage1-opcodes:
4309@if opcodes-bootstrap
4310maybe-all-stage1-opcodes: all-stage1-opcodes
4311all-stage1: all-stage1-opcodes
4312TARGET-stage1-opcodes = $(TARGET-opcodes)
4313all-stage1-opcodes: configure-stage1-opcodes
4314 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4315 @r=`${PWD_COMMAND}`; export r; \
4316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4317 TFLAGS="$(STAGE1_TFLAGS)"; \
4318 $(HOST_EXPORTS) \
4319 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4320 \
a90ef4bf
JM
4321 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4322 CFLAGS="$(STAGE1_CFLAGS)" \
4323 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4324 LIBCFLAGS="$(LIBCFLAGS)" \
4325 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4326 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4327 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4328 $(EXTRA_HOST_FLAGS) \
4329 $(STAGE1_FLAGS_TO_PASS) \
05a13254 4330 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
4331 $(TARGET-stage1-opcodes)
4332
4333maybe-clean-stage1-opcodes: clean-stage1-opcodes
4334clean-stage1: clean-stage1-opcodes
4335clean-stage1-opcodes:
4336 @if [ $(current_stage) = stage1 ]; then \
4337 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4338 else \
4339 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4340 $(MAKE) stage1-start; \
4341 fi; \
4342 cd $(HOST_SUBDIR)/opcodes && \
4343 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4344 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4345@endif opcodes-bootstrap
4346
4347
4348.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4349.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4350maybe-all-stage2-opcodes:
4351maybe-clean-stage2-opcodes:
4352@if opcodes-bootstrap
4353maybe-all-stage2-opcodes: all-stage2-opcodes
4354all-stage2: all-stage2-opcodes
4355TARGET-stage2-opcodes = $(TARGET-opcodes)
4356all-stage2-opcodes: configure-stage2-opcodes
4357 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4358 @r=`${PWD_COMMAND}`; export r; \
4359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4360 TFLAGS="$(STAGE2_TFLAGS)"; \
4361 $(HOST_EXPORTS) \
4362 $(POSTSTAGE1_HOST_EXPORTS) \
4363 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4364 \
a90ef4bf
JM
4365 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4366 CFLAGS="$(STAGE2_CFLAGS)" \
4367 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4368 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4369 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4370 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4371 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4372 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4373 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
4374 $(TARGET-stage2-opcodes)
4375
4376maybe-clean-stage2-opcodes: clean-stage2-opcodes
4377clean-stage2: clean-stage2-opcodes
4378clean-stage2-opcodes:
4379 @if [ $(current_stage) = stage2 ]; then \
4380 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4381 else \
4382 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4383 $(MAKE) stage2-start; \
4384 fi; \
4385 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4386 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4387@endif opcodes-bootstrap
4388
4389
4390.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4391.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4392maybe-all-stage3-opcodes:
4393maybe-clean-stage3-opcodes:
4394@if opcodes-bootstrap
4395maybe-all-stage3-opcodes: all-stage3-opcodes
4396all-stage3: all-stage3-opcodes
4397TARGET-stage3-opcodes = $(TARGET-opcodes)
4398all-stage3-opcodes: configure-stage3-opcodes
4399 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4400 @r=`${PWD_COMMAND}`; export r; \
4401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4402 TFLAGS="$(STAGE3_TFLAGS)"; \
4403 $(HOST_EXPORTS) \
4404 $(POSTSTAGE1_HOST_EXPORTS) \
4405 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4406 \
a90ef4bf
JM
4407 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4408 CFLAGS="$(STAGE3_CFLAGS)" \
4409 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4410 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4411 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4412 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4413 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4414 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4415 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
4416 $(TARGET-stage3-opcodes)
4417
4418maybe-clean-stage3-opcodes: clean-stage3-opcodes
4419clean-stage3: clean-stage3-opcodes
4420clean-stage3-opcodes:
4421 @if [ $(current_stage) = stage3 ]; then \
4422 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4423 else \
4424 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4425 $(MAKE) stage3-start; \
4426 fi; \
4427 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4428 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4429@endif opcodes-bootstrap
4430
4431
4432.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4433.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4434maybe-all-stage4-opcodes:
4435maybe-clean-stage4-opcodes:
4436@if opcodes-bootstrap
4437maybe-all-stage4-opcodes: all-stage4-opcodes
4438all-stage4: all-stage4-opcodes
4439TARGET-stage4-opcodes = $(TARGET-opcodes)
4440all-stage4-opcodes: configure-stage4-opcodes
4441 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4442 @r=`${PWD_COMMAND}`; export r; \
4443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4444 TFLAGS="$(STAGE4_TFLAGS)"; \
4445 $(HOST_EXPORTS) \
4446 $(POSTSTAGE1_HOST_EXPORTS) \
4447 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4448 \
a90ef4bf
JM
4449 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4450 CFLAGS="$(STAGE4_CFLAGS)" \
4451 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4452 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4453 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4454 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4455 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4456 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4457 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
4458 $(TARGET-stage4-opcodes)
4459
4460maybe-clean-stage4-opcodes: clean-stage4-opcodes
4461clean-stage4: clean-stage4-opcodes
4462clean-stage4-opcodes:
4463 @if [ $(current_stage) = stage4 ]; then \
4464 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4465 else \
4466 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4467 $(MAKE) stage4-start; \
4468 fi; \
4469 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4470 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4471@endif opcodes-bootstrap
4472
4473
4474.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4475.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4476maybe-all-stageprofile-opcodes:
4477maybe-clean-stageprofile-opcodes:
4478@if opcodes-bootstrap
4479maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4480all-stageprofile: all-stageprofile-opcodes
4481TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4482all-stageprofile-opcodes: configure-stageprofile-opcodes
4483 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4484 @r=`${PWD_COMMAND}`; export r; \
4485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4486 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4487 $(HOST_EXPORTS) \
4488 $(POSTSTAGE1_HOST_EXPORTS) \
4489 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4490 \
a90ef4bf
JM
4491 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4492 CFLAGS="$(STAGEprofile_CFLAGS)" \
4493 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4494 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4495 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4496 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4497 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4498 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4499 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
4500 $(TARGET-stageprofile-opcodes)
4501
4502maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4503clean-stageprofile: clean-stageprofile-opcodes
4504clean-stageprofile-opcodes:
4505 @if [ $(current_stage) = stageprofile ]; then \
4506 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4507 else \
4508 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4509 $(MAKE) stageprofile-start; \
4510 fi; \
4511 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4512 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4513@endif opcodes-bootstrap
4514
4515
4516.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4517.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4518maybe-all-stagefeedback-opcodes:
4519maybe-clean-stagefeedback-opcodes:
4520@if opcodes-bootstrap
4521maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4522all-stagefeedback: all-stagefeedback-opcodes
4523TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4524all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4525 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4526 @r=`${PWD_COMMAND}`; export r; \
4527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4528 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4529 $(HOST_EXPORTS) \
4530 $(POSTSTAGE1_HOST_EXPORTS) \
4531 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4532 \
a90ef4bf
JM
4533 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4534 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4535 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4536 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4537 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4538 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4539 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4540 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4541 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
4542 $(TARGET-stagefeedback-opcodes)
4543
4544maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4545clean-stagefeedback: clean-stagefeedback-opcodes
4546clean-stagefeedback-opcodes:
4547 @if [ $(current_stage) = stagefeedback ]; then \
4548 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4549 else \
4550 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4551 $(MAKE) stagefeedback-start; \
4552 fi; \
4553 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4554 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4555@endif opcodes-bootstrap
4556
4557
4558
4559
4560
4561.PHONY: check-opcodes maybe-check-opcodes
4562maybe-check-opcodes:
4563@if opcodes
4564maybe-check-opcodes: check-opcodes
4565
4566check-opcodes:
0aed8855 4567 @: $(MAKE); $(unstage)
a90ef4bf 4568 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4570 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4571 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4572 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4573
a90ef4bf 4574@endif opcodes
2a4cbe27 4575
a90ef4bf
JM
4576.PHONY: install-opcodes maybe-install-opcodes
4577maybe-install-opcodes:
4578@if opcodes
4579maybe-install-opcodes: install-opcodes
56a8fe78 4580
a90ef4bf 4581install-opcodes: installdirs
56a8fe78 4582 @: $(MAKE); $(unstage)
a90ef4bf 4583 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4585 $(HOST_EXPORTS) \
a90ef4bf
JM
4586 (cd $(HOST_SUBDIR)/opcodes && \
4587 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4588
a90ef4bf 4589@endif opcodes
56a8fe78 4590
a90ef4bf
JM
4591.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4592maybe-install-strip-opcodes:
4593@if opcodes
4594maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4595
a90ef4bf 4596install-strip-opcodes: installdirs
0aed8855 4597 @: $(MAKE); $(unstage)
a90ef4bf
JM
4598 @r=`${PWD_COMMAND}`; export r; \
4599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4600 $(HOST_EXPORTS) \
4601 (cd $(HOST_SUBDIR)/opcodes && \
4602 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4603
4604@endif opcodes
4605
4606# Other targets (info, dvi, pdf, etc.)
4607
4608.PHONY: maybe-info-opcodes info-opcodes
4609maybe-info-opcodes:
4610@if opcodes
4611maybe-info-opcodes: info-opcodes
4612
4613info-opcodes: \
4614 configure-opcodes
4615 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4616 r=`${PWD_COMMAND}`; export r; \
4617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4618 $(HOST_EXPORTS) \
4619 for flag in $(EXTRA_HOST_FLAGS) ; do \
4620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4621 done; \
22121df0 4622 echo "Doing info in opcodes"; \
a90ef4bf 4623 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4626 "RANLIB=$${RANLIB}" \
0c24b341 4627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4628 info) \
6d389afc
MS
4629 || exit 1
4630
a90ef4bf 4631@endif opcodes
6d389afc 4632
a90ef4bf
JM
4633.PHONY: maybe-dvi-opcodes dvi-opcodes
4634maybe-dvi-opcodes:
4635@if opcodes
4636maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4637
a90ef4bf
JM
4638dvi-opcodes: \
4639 configure-opcodes
4640 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4641 r=`${PWD_COMMAND}`; export r; \
4642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4643 $(HOST_EXPORTS) \
b813574b 4644 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4646 done; \
22121df0 4647 echo "Doing dvi in opcodes"; \
a90ef4bf 4648 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4651 "RANLIB=$${RANLIB}" \
0c24b341 4652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4653 dvi) \
2a4cbe27
NN
4654 || exit 1
4655
a90ef4bf 4656@endif opcodes
2a4cbe27 4657
a90ef4bf
JM
4658.PHONY: maybe-pdf-opcodes pdf-opcodes
4659maybe-pdf-opcodes:
4660@if opcodes
4661maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4662
a90ef4bf
JM
4663pdf-opcodes: \
4664 configure-opcodes
4665 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4666 r=`${PWD_COMMAND}`; export r; \
4667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4668 $(HOST_EXPORTS) \
b813574b 4669 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4671 done; \
22121df0 4672 echo "Doing pdf in opcodes"; \
a90ef4bf 4673 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4676 "RANLIB=$${RANLIB}" \
0c24b341 4677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4678 pdf) \
2a4cbe27
NN
4679 || exit 1
4680
a90ef4bf 4681@endif opcodes
2a4cbe27 4682
a90ef4bf
JM
4683.PHONY: maybe-html-opcodes html-opcodes
4684maybe-html-opcodes:
4685@if opcodes
4686maybe-html-opcodes: html-opcodes
a3ca38d2 4687
a90ef4bf
JM
4688html-opcodes: \
4689 configure-opcodes
4690 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4691 r=`${PWD_COMMAND}`; export r; \
4692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4693 $(HOST_EXPORTS) \
4694 for flag in $(EXTRA_HOST_FLAGS) ; do \
4695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4696 done; \
22121df0 4697 echo "Doing html in opcodes"; \
a90ef4bf 4698 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4701 "RANLIB=$${RANLIB}" \
0c24b341 4702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4703 html) \
a3ca38d2
DD
4704 || exit 1
4705
a90ef4bf 4706@endif opcodes
a3ca38d2 4707
a90ef4bf
JM
4708.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4709maybe-TAGS-opcodes:
4710@if opcodes
4711maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4712
a90ef4bf
JM
4713TAGS-opcodes: \
4714 configure-opcodes
4715 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4716 r=`${PWD_COMMAND}`; export r; \
4717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4718 $(HOST_EXPORTS) \
4719 for flag in $(EXTRA_HOST_FLAGS) ; do \
4720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4721 done; \
22121df0 4722 echo "Doing TAGS in opcodes"; \
a90ef4bf 4723 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4726 "RANLIB=$${RANLIB}" \
0c24b341 4727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4728 TAGS) \
108a6f8e
CD
4729 || exit 1
4730
a90ef4bf 4731@endif opcodes
108a6f8e 4732
a90ef4bf
JM
4733.PHONY: maybe-install-info-opcodes install-info-opcodes
4734maybe-install-info-opcodes:
4735@if opcodes
4736maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4737
a90ef4bf
JM
4738install-info-opcodes: \
4739 configure-opcodes \
4740 info-opcodes
4741 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4742 r=`${PWD_COMMAND}`; export r; \
4743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4744 $(HOST_EXPORTS) \
b813574b 4745 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4747 done; \
22121df0 4748 echo "Doing install-info in opcodes"; \
a90ef4bf 4749 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4752 "RANLIB=$${RANLIB}" \
0c24b341 4753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4754 install-info) \
2a4cbe27
NN
4755 || exit 1
4756
a90ef4bf 4757@endif opcodes
2a4cbe27 4758
a90ef4bf
JM
4759.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4760maybe-install-pdf-opcodes:
4761@if opcodes
4762maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4763
a90ef4bf
JM
4764install-pdf-opcodes: \
4765 configure-opcodes \
4766 pdf-opcodes
4767 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4768 r=`${PWD_COMMAND}`; export r; \
4769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4770 $(HOST_EXPORTS) \
b813574b 4771 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4773 done; \
22121df0 4774 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4775 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4778 "RANLIB=$${RANLIB}" \
0c24b341 4779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4780 install-pdf) \
2a4cbe27
NN
4781 || exit 1
4782
a90ef4bf 4783@endif opcodes
2a4cbe27 4784
a90ef4bf
JM
4785.PHONY: maybe-install-html-opcodes install-html-opcodes
4786maybe-install-html-opcodes:
4787@if opcodes
4788maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4789
a90ef4bf
JM
4790install-html-opcodes: \
4791 configure-opcodes \
4792 html-opcodes
4793 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4794 r=`${PWD_COMMAND}`; export r; \
4795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4796 $(HOST_EXPORTS) \
b813574b 4797 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4799 done; \
22121df0 4800 echo "Doing install-html in opcodes"; \
a90ef4bf 4801 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4804 "RANLIB=$${RANLIB}" \
0c24b341 4805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4806 install-html) \
2a4cbe27
NN
4807 || exit 1
4808
a90ef4bf 4809@endif opcodes
2a4cbe27 4810
a90ef4bf
JM
4811.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4812maybe-installcheck-opcodes:
4813@if opcodes
4814maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4815
a90ef4bf
JM
4816installcheck-opcodes: \
4817 configure-opcodes
4818 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4819 r=`${PWD_COMMAND}`; export r; \
4820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4821 $(HOST_EXPORTS) \
b813574b 4822 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4824 done; \
22121df0 4825 echo "Doing installcheck in opcodes"; \
a90ef4bf 4826 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4829 "RANLIB=$${RANLIB}" \
0c24b341 4830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4831 installcheck) \
2a4cbe27
NN
4832 || exit 1
4833
a90ef4bf 4834@endif opcodes
2a4cbe27 4835
a90ef4bf
JM
4836.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4837maybe-mostlyclean-opcodes:
4838@if opcodes
4839maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4840
a90ef4bf
JM
4841mostlyclean-opcodes:
4842 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4843 r=`${PWD_COMMAND}`; export r; \
4844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4845 $(HOST_EXPORTS) \
b813574b 4846 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4848 done; \
22121df0 4849 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4850 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4853 "RANLIB=$${RANLIB}" \
0c24b341 4854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4855 mostlyclean) \
2a4cbe27
NN
4856 || exit 1
4857
a90ef4bf 4858@endif opcodes
2a4cbe27 4859
a90ef4bf
JM
4860.PHONY: maybe-clean-opcodes clean-opcodes
4861maybe-clean-opcodes:
4862@if opcodes
4863maybe-clean-opcodes: clean-opcodes
2a4cbe27 4864
a90ef4bf
JM
4865clean-opcodes:
4866 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4867 r=`${PWD_COMMAND}`; export r; \
4868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4869 $(HOST_EXPORTS) \
b813574b 4870 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4872 done; \
22121df0 4873 echo "Doing clean in opcodes"; \
a90ef4bf 4874 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4877 "RANLIB=$${RANLIB}" \
0c24b341 4878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4879 clean) \
2a4cbe27
NN
4880 || exit 1
4881
a90ef4bf 4882@endif opcodes
2a4cbe27 4883
a90ef4bf
JM
4884.PHONY: maybe-distclean-opcodes distclean-opcodes
4885maybe-distclean-opcodes:
4886@if opcodes
4887maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4888
a90ef4bf
JM
4889distclean-opcodes:
4890 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4891 r=`${PWD_COMMAND}`; export r; \
4892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4893 $(HOST_EXPORTS) \
b813574b 4894 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4896 done; \
22121df0 4897 echo "Doing distclean in opcodes"; \
a90ef4bf 4898 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4901 "RANLIB=$${RANLIB}" \
0c24b341 4902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4903 distclean) \
2a4cbe27
NN
4904 || exit 1
4905
a90ef4bf 4906@endif opcodes
2a4cbe27 4907
a90ef4bf
JM
4908.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
4909maybe-maintainer-clean-opcodes:
4910@if opcodes
4911maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 4912
a90ef4bf
JM
4913maintainer-clean-opcodes:
4914 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4915 r=`${PWD_COMMAND}`; export r; \
4916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4917 $(HOST_EXPORTS) \
b813574b 4918 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4920 done; \
22121df0 4921 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 4922 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4925 "RANLIB=$${RANLIB}" \
0c24b341 4926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4927 maintainer-clean) \
2a4cbe27
NN
4928 || exit 1
4929
a90ef4bf 4930@endif opcodes
2a4cbe27 4931
2a4cbe27 4932
a7254363 4933
a90ef4bf
JM
4934.PHONY: configure-binutils maybe-configure-binutils
4935maybe-configure-binutils:
4f0ef2d8 4936@if gcc-bootstrap
a90ef4bf 4937configure-binutils: stage_current
4f0ef2d8 4938@endif gcc-bootstrap
a90ef4bf
JM
4939@if binutils
4940maybe-configure-binutils: configure-binutils
4941configure-binutils:
c52c6897
PB
4942 @r=`${PWD_COMMAND}`; export r; \
4943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4944 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 4945 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 4946 $(HOST_EXPORTS) \
a90ef4bf
JM
4947 echo Configuring in $(HOST_SUBDIR)/binutils; \
4948 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 4949 case $(srcdir) in \
b00612cc 4950 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4951 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 4952 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4953 esac; \
1b6c0831
L
4954 module_srcdir=binutils; \
4955 $(SHELL) \
4956 $$s/$$module_srcdir/configure \
4957 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4958 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4959 --target=${target_alias} \
2a4cbe27 4960 || exit 1
a90ef4bf 4961@endif binutils
2a4cbe27 4962
a7254363
PB
4963
4964
a90ef4bf
JM
4965.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
4966maybe-configure-stage1-binutils:
4967@if binutils-bootstrap
4968maybe-configure-stage1-binutils: configure-stage1-binutils
4969configure-stage1-binutils:
c52c6897 4970 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 4971 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
4972 @r=`${PWD_COMMAND}`; export r; \
4973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 4974 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 4975 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 4976 $(HOST_EXPORTS) \
8ee82aff 4977 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
4978 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4979 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4980 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
4981 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 4982 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
4983 case $(srcdir) in \
4984 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4985 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
4986 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4987 esac; \
1b6c0831
L
4988 module_srcdir=binutils; \
4989 $(SHELL) $$s/$$module_srcdir/configure \
4990 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4991 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4992 --target=${target_alias} \
4993 \
1b05fbbd 4994 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 4995@endif binutils-bootstrap
d545f33b 4996
a90ef4bf
JM
4997.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
4998maybe-configure-stage2-binutils:
4999@if binutils-bootstrap
5000maybe-configure-stage2-binutils: configure-stage2-binutils
5001configure-stage2-binutils:
c52c6897 5002 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 5003 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5004 @r=`${PWD_COMMAND}`; export r; \
5005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5006 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 5007 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5008 $(HOST_EXPORTS) \
1b05fbbd 5009 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5010 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5011 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
5012 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5013 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
5014 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5015 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5016 case $(srcdir) in \
5017 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5018 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5019 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5020 esac; \
1b6c0831
L
5021 module_srcdir=binutils; \
5022 $(SHELL) $$s/$$module_srcdir/configure \
5023 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5024 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5025 --target=${target_alias} \
22121df0 5026 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5027 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5028@endif binutils-bootstrap
8520c408 5029
a90ef4bf
JM
5030.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5031maybe-configure-stage3-binutils:
5032@if binutils-bootstrap
5033maybe-configure-stage3-binutils: configure-stage3-binutils
5034configure-stage3-binutils:
c52c6897 5035 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5036 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5037 @r=`${PWD_COMMAND}`; export r; \
5038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5039 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5040 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5041 $(HOST_EXPORTS) \
1b05fbbd 5042 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5043 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5044 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5045 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5046 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5047 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5048 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5049 case $(srcdir) in \
5050 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5051 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5052 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5053 esac; \
1b6c0831
L
5054 module_srcdir=binutils; \
5055 $(SHELL) $$s/$$module_srcdir/configure \
5056 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5057 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5058 --target=${target_alias} \
22121df0 5059 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5060 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5061@endif binutils-bootstrap
8520c408 5062
a90ef4bf
JM
5063.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5064maybe-configure-stage4-binutils:
5065@if binutils-bootstrap
5066maybe-configure-stage4-binutils: configure-stage4-binutils
5067configure-stage4-binutils:
c52c6897 5068 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5069 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5070 @r=`${PWD_COMMAND}`; export r; \
5071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5072 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5073 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5074 $(HOST_EXPORTS) \
1b05fbbd 5075 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5076 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5077 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5078 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5079 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5080 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5081 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5082 case $(srcdir) in \
5083 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5084 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5085 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5086 esac; \
1b6c0831
L
5087 module_srcdir=binutils; \
5088 $(SHELL) $$s/$$module_srcdir/configure \
5089 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5090 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5091 --target=${target_alias} \
22121df0 5092 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5093 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5094@endif binutils-bootstrap
d545f33b 5095
a90ef4bf
JM
5096.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5097maybe-configure-stageprofile-binutils:
5098@if binutils-bootstrap
5099maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5100configure-stageprofile-binutils:
c52c6897 5101 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5102 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5103 @r=`${PWD_COMMAND}`; export r; \
5104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5105 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5106 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5107 $(HOST_EXPORTS) \
1b05fbbd
AO
5108 $(POSTSTAGE1_HOST_EXPORTS) \
5109 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5110 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5111 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5112 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5113 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5114 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5115 case $(srcdir) in \
5116 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5117 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5118 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5119 esac; \
1b6c0831
L
5120 module_srcdir=binutils; \
5121 $(SHELL) $$s/$$module_srcdir/configure \
5122 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5123 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5124 --target=${target_alias} \
22121df0 5125 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5126 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5127@endif binutils-bootstrap
d545f33b 5128
a90ef4bf
JM
5129.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5130maybe-configure-stagefeedback-binutils:
5131@if binutils-bootstrap
5132maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5133configure-stagefeedback-binutils:
c52c6897 5134 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5135 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5136 @r=`${PWD_COMMAND}`; export r; \
5137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5138 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5139 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5140 $(HOST_EXPORTS) \
1b05fbbd
AO
5141 $(POSTSTAGE1_HOST_EXPORTS) \
5142 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5143 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5144 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5145 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5146 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5147 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5148 case $(srcdir) in \
5149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5150 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5152 esac; \
1b6c0831
L
5153 module_srcdir=binutils; \
5154 $(SHELL) $$s/$$module_srcdir/configure \
5155 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5156 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5157 --target=${target_alias} \
22121df0 5158 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5159 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5160@endif binutils-bootstrap
d545f33b
PB
5161
5162
5163
5164
5165
a90ef4bf
JM
5166.PHONY: all-binutils maybe-all-binutils
5167maybe-all-binutils:
4f0ef2d8 5168@if gcc-bootstrap
a90ef4bf 5169all-binutils: stage_current
4f0ef2d8 5170@endif gcc-bootstrap
a90ef4bf
JM
5171@if binutils
5172TARGET-binutils=all
5173maybe-all-binutils: all-binutils
5174all-binutils: configure-binutils
c52c6897 5175 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5177 $(HOST_EXPORTS) \
a90ef4bf 5178 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5179 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5180 $(TARGET-binutils))
5181@endif binutils
2a4cbe27 5182
a7254363 5183
d545f33b 5184
a90ef4bf
JM
5185.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5186.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5187maybe-all-stage1-binutils:
5188maybe-clean-stage1-binutils:
5189@if binutils-bootstrap
5190maybe-all-stage1-binutils: all-stage1-binutils
5191all-stage1: all-stage1-binutils
5192TARGET-stage1-binutils = $(TARGET-binutils)
5193all-stage1-binutils: configure-stage1-binutils
c52c6897 5194 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5195 @r=`${PWD_COMMAND}`; export r; \
5196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5197 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5198 $(HOST_EXPORTS) \
a90ef4bf 5199 cd $(HOST_SUBDIR)/binutils && \
05a13254 5200 \
7f6ef0c0 5201 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5202 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5203 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5204 LIBCFLAGS="$(LIBCFLAGS)" \
5205 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5206 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5207 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5208 $(EXTRA_HOST_FLAGS) \
5209 $(STAGE1_FLAGS_TO_PASS) \
05a13254 5210 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5211 $(TARGET-stage1-binutils)
d545f33b 5212
a90ef4bf
JM
5213maybe-clean-stage1-binutils: clean-stage1-binutils
5214clean-stage1: clean-stage1-binutils
5215clean-stage1-binutils:
9dbaa842 5216 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5217 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5218 else \
a90ef4bf 5219 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5220 $(MAKE) stage1-start; \
5221 fi; \
a90ef4bf 5222 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5223 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5224 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5225@endif binutils-bootstrap
d545f33b
PB
5226
5227
a90ef4bf
JM
5228.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5229.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5230maybe-all-stage2-binutils:
5231maybe-clean-stage2-binutils:
5232@if binutils-bootstrap
5233maybe-all-stage2-binutils: all-stage2-binutils
5234all-stage2: all-stage2-binutils
5235TARGET-stage2-binutils = $(TARGET-binutils)
5236all-stage2-binutils: configure-stage2-binutils
c52c6897 5237 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5238 @r=`${PWD_COMMAND}`; export r; \
5239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5240 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5241 $(HOST_EXPORTS) \
1f53ca9a 5242 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5243 cd $(HOST_SUBDIR)/binutils && \
05a13254 5244 \
7f6ef0c0 5245 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5246 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5247 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5248 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5249 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5250 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5251 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5252 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5253 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5254 $(TARGET-stage2-binutils)
d545f33b 5255
a90ef4bf
JM
5256maybe-clean-stage2-binutils: clean-stage2-binutils
5257clean-stage2: clean-stage2-binutils
5258clean-stage2-binutils:
9dbaa842 5259 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5260 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5261 else \
a90ef4bf 5262 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5263 $(MAKE) stage2-start; \
5264 fi; \
a90ef4bf 5265 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5266 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5267@endif binutils-bootstrap
d545f33b
PB
5268
5269
a90ef4bf
JM
5270.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5271.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5272maybe-all-stage3-binutils:
5273maybe-clean-stage3-binutils:
5274@if binutils-bootstrap
5275maybe-all-stage3-binutils: all-stage3-binutils
5276all-stage3: all-stage3-binutils
5277TARGET-stage3-binutils = $(TARGET-binutils)
5278all-stage3-binutils: configure-stage3-binutils
c52c6897 5279 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5280 @r=`${PWD_COMMAND}`; export r; \
5281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5282 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5283 $(HOST_EXPORTS) \
1f53ca9a 5284 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5285 cd $(HOST_SUBDIR)/binutils && \
05a13254 5286 \
7f6ef0c0 5287 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5288 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5289 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5290 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5291 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5292 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5293 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5294 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5295 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5296 $(TARGET-stage3-binutils)
d545f33b 5297
a90ef4bf
JM
5298maybe-clean-stage3-binutils: clean-stage3-binutils
5299clean-stage3: clean-stage3-binutils
5300clean-stage3-binutils:
9dbaa842 5301 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5302 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5303 else \
a90ef4bf 5304 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5305 $(MAKE) stage3-start; \
5306 fi; \
a90ef4bf 5307 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5308 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5309@endif binutils-bootstrap
d545f33b
PB
5310
5311
a90ef4bf
JM
5312.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5313.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5314maybe-all-stage4-binutils:
5315maybe-clean-stage4-binutils:
5316@if binutils-bootstrap
5317maybe-all-stage4-binutils: all-stage4-binutils
5318all-stage4: all-stage4-binutils
5319TARGET-stage4-binutils = $(TARGET-binutils)
5320all-stage4-binutils: configure-stage4-binutils
c52c6897 5321 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5322 @r=`${PWD_COMMAND}`; export r; \
5323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5324 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5325 $(HOST_EXPORTS) \
1f53ca9a 5326 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5327 cd $(HOST_SUBDIR)/binutils && \
05a13254 5328 \
7f6ef0c0 5329 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5330 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5331 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5332 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5333 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5334 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5335 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5336 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5337 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5338 $(TARGET-stage4-binutils)
d545f33b 5339
a90ef4bf
JM
5340maybe-clean-stage4-binutils: clean-stage4-binutils
5341clean-stage4: clean-stage4-binutils
5342clean-stage4-binutils:
9dbaa842 5343 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5344 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5345 else \
a90ef4bf 5346 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5347 $(MAKE) stage4-start; \
5348 fi; \
a90ef4bf 5349 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5350 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5351@endif binutils-bootstrap
d545f33b
PB
5352
5353
a90ef4bf
JM
5354.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5355.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5356maybe-all-stageprofile-binutils:
5357maybe-clean-stageprofile-binutils:
5358@if binutils-bootstrap
5359maybe-all-stageprofile-binutils: all-stageprofile-binutils
5360all-stageprofile: all-stageprofile-binutils
5361TARGET-stageprofile-binutils = $(TARGET-binutils)
5362all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5363 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5364 @r=`${PWD_COMMAND}`; export r; \
5365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5366 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5367 $(HOST_EXPORTS) \
1f53ca9a 5368 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5369 cd $(HOST_SUBDIR)/binutils && \
05a13254 5370 \
7f6ef0c0 5371 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5372 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5373 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5374 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5375 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5376 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5377 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5378 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5379 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5380 $(TARGET-stageprofile-binutils)
d545f33b 5381
a90ef4bf
JM
5382maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5383clean-stageprofile: clean-stageprofile-binutils
5384clean-stageprofile-binutils:
9dbaa842 5385 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5386 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5387 else \
a90ef4bf 5388 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5389 $(MAKE) stageprofile-start; \
5390 fi; \
a90ef4bf 5391 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5392 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5393@endif binutils-bootstrap
d545f33b
PB
5394
5395
a90ef4bf
JM
5396.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5397.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5398maybe-all-stagefeedback-binutils:
5399maybe-clean-stagefeedback-binutils:
5400@if binutils-bootstrap
5401maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5402all-stagefeedback: all-stagefeedback-binutils
5403TARGET-stagefeedback-binutils = $(TARGET-binutils)
5404all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5405 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5406 @r=`${PWD_COMMAND}`; export r; \
5407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5408 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5409 $(HOST_EXPORTS) \
1f53ca9a 5410 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5411 cd $(HOST_SUBDIR)/binutils && \
05a13254 5412 \
7f6ef0c0 5413 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5414 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5415 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5416 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5417 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5418 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5419 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5420 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5421 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5422 $(TARGET-stagefeedback-binutils)
d545f33b 5423
a90ef4bf
JM
5424maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5425clean-stagefeedback: clean-stagefeedback-binutils
5426clean-stagefeedback-binutils:
9dbaa842 5427 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5428 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5429 else \
a90ef4bf 5430 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5431 $(MAKE) stagefeedback-start; \
5432 fi; \
a90ef4bf 5433 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5434 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5435@endif binutils-bootstrap
d545f33b
PB
5436
5437
5438
5439
5440
a90ef4bf
JM
5441.PHONY: check-binutils maybe-check-binutils
5442maybe-check-binutils:
5443@if binutils
5444maybe-check-binutils: check-binutils
2a4cbe27 5445
a90ef4bf 5446check-binutils:
0aed8855 5447 @: $(MAKE); $(unstage)
4fa63067 5448 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5450 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5451 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5452 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5453
a90ef4bf 5454@endif binutils
2a4cbe27 5455
a90ef4bf
JM
5456.PHONY: install-binutils maybe-install-binutils
5457maybe-install-binutils:
5458@if binutils
5459maybe-install-binutils: install-binutils
2a4cbe27 5460
a90ef4bf 5461install-binutils: installdirs
0aed8855 5462 @: $(MAKE); $(unstage)
4fa63067 5463 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5465 $(HOST_EXPORTS) \
a90ef4bf 5466 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5467 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5468
a90ef4bf 5469@endif binutils
2a4cbe27 5470
a90ef4bf
JM
5471.PHONY: install-strip-binutils maybe-install-strip-binutils
5472maybe-install-strip-binutils:
5473@if binutils
5474maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5475
a90ef4bf 5476install-strip-binutils: installdirs
9b980aa1
RW
5477 @: $(MAKE); $(unstage)
5478 @r=`${PWD_COMMAND}`; export r; \
5479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5480 $(HOST_EXPORTS) \
a90ef4bf 5481 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5482 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5483
a90ef4bf 5484@endif binutils
9b980aa1 5485
56a8fe78 5486# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5487
a90ef4bf
JM
5488.PHONY: maybe-info-binutils info-binutils
5489maybe-info-binutils:
5490@if binutils
5491maybe-info-binutils: info-binutils
4fa63067 5492
a90ef4bf
JM
5493info-binutils: \
5494 configure-binutils
5495 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5496 r=`${PWD_COMMAND}`; export r; \
5497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5498 $(HOST_EXPORTS) \
b813574b 5499 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5501 done; \
22121df0 5502 echo "Doing info in binutils"; \
a90ef4bf 5503 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5506 "RANLIB=$${RANLIB}" \
0c24b341 5507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5508 info) \
2a4cbe27
NN
5509 || exit 1
5510
a90ef4bf 5511@endif binutils
2a4cbe27 5512
a90ef4bf
JM
5513.PHONY: maybe-dvi-binutils dvi-binutils
5514maybe-dvi-binutils:
5515@if binutils
5516maybe-dvi-binutils: dvi-binutils
2a4cbe27 5517
a90ef4bf
JM
5518dvi-binutils: \
5519 configure-binutils
5520 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5521 r=`${PWD_COMMAND}`; export r; \
5522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5523 $(HOST_EXPORTS) \
b813574b 5524 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5526 done; \
22121df0 5527 echo "Doing dvi in binutils"; \
a90ef4bf 5528 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5531 "RANLIB=$${RANLIB}" \
0c24b341 5532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5533 dvi) \
2a4cbe27
NN
5534 || exit 1
5535
a90ef4bf 5536@endif binutils
2a4cbe27 5537
a90ef4bf
JM
5538.PHONY: maybe-pdf-binutils pdf-binutils
5539maybe-pdf-binutils:
5540@if binutils
5541maybe-pdf-binutils: pdf-binutils
56a8fe78 5542
a90ef4bf
JM
5543pdf-binutils: \
5544 configure-binutils
5545 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5546 r=`${PWD_COMMAND}`; export r; \
5547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5548 $(HOST_EXPORTS) \
5549 for flag in $(EXTRA_HOST_FLAGS) ; do \
5550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5551 done; \
22121df0 5552 echo "Doing pdf in binutils"; \
a90ef4bf 5553 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5556 "RANLIB=$${RANLIB}" \
0c24b341 5557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5558 pdf) \
5559 || exit 1
5560
a90ef4bf 5561@endif binutils
56a8fe78 5562
a90ef4bf
JM
5563.PHONY: maybe-html-binutils html-binutils
5564maybe-html-binutils:
5565@if binutils
5566maybe-html-binutils: html-binutils
6d389afc 5567
a90ef4bf
JM
5568html-binutils: \
5569 configure-binutils
5570 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5571 r=`${PWD_COMMAND}`; export r; \
5572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5573 $(HOST_EXPORTS) \
5574 for flag in $(EXTRA_HOST_FLAGS) ; do \
5575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5576 done; \
22121df0 5577 echo "Doing html in binutils"; \
a90ef4bf 5578 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5581 "RANLIB=$${RANLIB}" \
0c24b341 5582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5583 html) \
5584 || exit 1
5585
a90ef4bf 5586@endif binutils
6d389afc 5587
a90ef4bf
JM
5588.PHONY: maybe-TAGS-binutils TAGS-binutils
5589maybe-TAGS-binutils:
5590@if binutils
5591maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5592
a90ef4bf
JM
5593TAGS-binutils: \
5594 configure-binutils
5595 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5596 r=`${PWD_COMMAND}`; export r; \
5597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5598 $(HOST_EXPORTS) \
b813574b 5599 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5601 done; \
22121df0 5602 echo "Doing TAGS in binutils"; \
a90ef4bf 5603 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5606 "RANLIB=$${RANLIB}" \
0c24b341 5607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5608 TAGS) \
2a4cbe27
NN
5609 || exit 1
5610
a90ef4bf 5611@endif binutils
2a4cbe27 5612
a90ef4bf
JM
5613.PHONY: maybe-install-info-binutils install-info-binutils
5614maybe-install-info-binutils:
5615@if binutils
5616maybe-install-info-binutils: install-info-binutils
2a4cbe27 5617
a90ef4bf
JM
5618install-info-binutils: \
5619 configure-binutils \
5620 info-binutils
5621 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5622 r=`${PWD_COMMAND}`; export r; \
5623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5624 $(HOST_EXPORTS) \
b813574b 5625 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5627 done; \
22121df0 5628 echo "Doing install-info in binutils"; \
a90ef4bf 5629 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5632 "RANLIB=$${RANLIB}" \
0c24b341 5633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5634 install-info) \
2a4cbe27
NN
5635 || exit 1
5636
a90ef4bf 5637@endif binutils
2a4cbe27 5638
a90ef4bf
JM
5639.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5640maybe-install-pdf-binutils:
5641@if binutils
5642maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5643
a90ef4bf
JM
5644install-pdf-binutils: \
5645 configure-binutils \
5646 pdf-binutils
5647 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5648 r=`${PWD_COMMAND}`; export r; \
5649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5650 $(HOST_EXPORTS) \
5651 for flag in $(EXTRA_HOST_FLAGS) ; do \
5652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5653 done; \
22121df0 5654 echo "Doing install-pdf in binutils"; \
a90ef4bf 5655 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5658 "RANLIB=$${RANLIB}" \
0c24b341 5659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5660 install-pdf) \
5661 || exit 1
5662
a90ef4bf 5663@endif binutils
a3ca38d2 5664
a90ef4bf
JM
5665.PHONY: maybe-install-html-binutils install-html-binutils
5666maybe-install-html-binutils:
5667@if binutils
5668maybe-install-html-binutils: install-html-binutils
108a6f8e 5669
a90ef4bf
JM
5670install-html-binutils: \
5671 configure-binutils \
5672 html-binutils
5673 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5674 r=`${PWD_COMMAND}`; export r; \
5675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5676 $(HOST_EXPORTS) \
5677 for flag in $(EXTRA_HOST_FLAGS) ; do \
5678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5679 done; \
22121df0 5680 echo "Doing install-html in binutils"; \
a90ef4bf 5681 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
5682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5684 "RANLIB=$${RANLIB}" \
0c24b341 5685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
5686 install-html) \
5687 || exit 1
5688
a90ef4bf 5689@endif binutils
108a6f8e 5690
a90ef4bf
JM
5691.PHONY: maybe-installcheck-binutils installcheck-binutils
5692maybe-installcheck-binutils:
5693@if binutils
5694maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5695
a90ef4bf
JM
5696installcheck-binutils: \
5697 configure-binutils
5698 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5699 r=`${PWD_COMMAND}`; export r; \
5700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5701 $(HOST_EXPORTS) \
b813574b 5702 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5704 done; \
22121df0 5705 echo "Doing installcheck in binutils"; \
a90ef4bf 5706 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5709 "RANLIB=$${RANLIB}" \
0c24b341 5710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5711 installcheck) \
2a4cbe27
NN
5712 || exit 1
5713
a90ef4bf 5714@endif binutils
2a4cbe27 5715
a90ef4bf
JM
5716.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5717maybe-mostlyclean-binutils:
5718@if binutils
5719maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5720
a90ef4bf
JM
5721mostlyclean-binutils:
5722 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5723 r=`${PWD_COMMAND}`; export r; \
5724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5725 $(HOST_EXPORTS) \
b813574b 5726 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5728 done; \
22121df0 5729 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5730 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5733 "RANLIB=$${RANLIB}" \
0c24b341 5734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5735 mostlyclean) \
2a4cbe27
NN
5736 || exit 1
5737
a90ef4bf 5738@endif binutils
2a4cbe27 5739
a90ef4bf
JM
5740.PHONY: maybe-clean-binutils clean-binutils
5741maybe-clean-binutils:
5742@if binutils
5743maybe-clean-binutils: clean-binutils
2a4cbe27 5744
a90ef4bf
JM
5745clean-binutils:
5746 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5747 r=`${PWD_COMMAND}`; export r; \
5748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5749 $(HOST_EXPORTS) \
b813574b 5750 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5752 done; \
22121df0 5753 echo "Doing clean in binutils"; \
a90ef4bf 5754 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5757 "RANLIB=$${RANLIB}" \
0c24b341 5758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5759 clean) \
2a4cbe27
NN
5760 || exit 1
5761
a90ef4bf 5762@endif binutils
2a4cbe27 5763
a90ef4bf
JM
5764.PHONY: maybe-distclean-binutils distclean-binutils
5765maybe-distclean-binutils:
5766@if binutils
5767maybe-distclean-binutils: distclean-binutils
2a4cbe27 5768
a90ef4bf
JM
5769distclean-binutils:
5770 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5771 r=`${PWD_COMMAND}`; export r; \
5772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5773 $(HOST_EXPORTS) \
b813574b 5774 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5776 done; \
22121df0 5777 echo "Doing distclean in binutils"; \
a90ef4bf 5778 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5781 "RANLIB=$${RANLIB}" \
0c24b341 5782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5783 distclean) \
2a4cbe27
NN
5784 || exit 1
5785
a90ef4bf 5786@endif binutils
2a4cbe27 5787
a90ef4bf
JM
5788.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5789maybe-maintainer-clean-binutils:
5790@if binutils
5791maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5792
a90ef4bf
JM
5793maintainer-clean-binutils:
5794 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5795 r=`${PWD_COMMAND}`; export r; \
5796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5797 $(HOST_EXPORTS) \
b813574b 5798 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5800 done; \
22121df0 5801 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5802 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5805 "RANLIB=$${RANLIB}" \
0c24b341 5806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5807 maintainer-clean) \
a2592b1b
DD
5808 || exit 1
5809
a90ef4bf 5810@endif binutils
a2592b1b 5811
2a4cbe27 5812
a7254363 5813
a90ef4bf
JM
5814.PHONY: configure-bison maybe-configure-bison
5815maybe-configure-bison:
4f0ef2d8 5816@if gcc-bootstrap
a90ef4bf 5817configure-bison: stage_current
4f0ef2d8 5818@endif gcc-bootstrap
a90ef4bf
JM
5819@if bison
5820maybe-configure-bison: configure-bison
5821configure-bison:
5822 @: $(MAKE); $(unstage)
c52c6897
PB
5823 @r=`${PWD_COMMAND}`; export r; \
5824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5825 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5826 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5827 $(HOST_EXPORTS) \
a90ef4bf
JM
5828 echo Configuring in $(HOST_SUBDIR)/bison; \
5829 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5830 case $(srcdir) in \
b00612cc 5831 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5832 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5833 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5834 esac; \
1b6c0831
L
5835 module_srcdir=bison; \
5836 $(SHELL) \
5837 $$s/$$module_srcdir/configure \
5838 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5839 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5840 --target=${target_alias} \
4fa63067 5841 || exit 1
a90ef4bf 5842@endif bison
2a4cbe27 5843
a7254363
PB
5844
5845
d545f33b 5846
8520c408 5847
a90ef4bf
JM
5848.PHONY: all-bison maybe-all-bison
5849maybe-all-bison:
5850@if gcc-bootstrap
5851all-bison: stage_current
5852@endif gcc-bootstrap
5853@if bison
5854TARGET-bison=all
5855maybe-all-bison: all-bison
5856all-bison: configure-bison
5857 @: $(MAKE); $(unstage)
c52c6897
PB
5858 @r=`${PWD_COMMAND}`; export r; \
5859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5860 $(HOST_EXPORTS) \
5861 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5862 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5863 $(TARGET-bison))
5864@endif bison
8520c408 5865
d545f33b 5866
d545f33b 5867
d545f33b 5868
a90ef4bf
JM
5869.PHONY: check-bison maybe-check-bison
5870maybe-check-bison:
5871@if bison
5872maybe-check-bison: check-bison
d545f33b 5873
a90ef4bf
JM
5874# This module is only tested in a native toolchain.
5875check-bison:
5876 @: $(MAKE); $(unstage)
22121df0 5877 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5878 r=`${PWD_COMMAND}`; export r; \
5879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5880 $(HOST_EXPORTS) \
a90ef4bf 5881 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5882 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5883 fi
d545f33b 5884
a90ef4bf 5885@endif bison
d545f33b 5886
a90ef4bf
JM
5887.PHONY: install-bison maybe-install-bison
5888maybe-install-bison:
5889@if bison
5890maybe-install-bison: install-bison
d545f33b 5891
a90ef4bf
JM
5892install-bison: installdirs
5893 @: $(MAKE); $(unstage)
c52c6897 5894 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5896 $(HOST_EXPORTS) \
5897 (cd $(HOST_SUBDIR)/bison && \
5898 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5899
a90ef4bf 5900@endif bison
a7254363 5901
a90ef4bf
JM
5902.PHONY: install-strip-bison maybe-install-strip-bison
5903maybe-install-strip-bison:
5904@if bison
5905maybe-install-strip-bison: install-strip-bison
d545f33b 5906
a90ef4bf
JM
5907install-strip-bison: installdirs
5908 @: $(MAKE); $(unstage)
d545f33b
PB
5909 @r=`${PWD_COMMAND}`; export r; \
5910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5911 $(HOST_EXPORTS) \
5912 (cd $(HOST_SUBDIR)/bison && \
5913 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 5914
a90ef4bf 5915@endif bison
d545f33b 5916
a90ef4bf 5917# Other targets (info, dvi, pdf, etc.)
d545f33b 5918
a90ef4bf
JM
5919.PHONY: maybe-info-bison info-bison
5920maybe-info-bison:
5921@if bison
5922maybe-info-bison: info-bison
5923
5924info-bison: \
5925 configure-bison
5926 @: $(MAKE); $(unstage)
5927 @[ -f ./bison/Makefile ] || exit 0; \
5928 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5930 $(HOST_EXPORTS) \
a90ef4bf
JM
5931 for flag in $(EXTRA_HOST_FLAGS) ; do \
5932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5933 done; \
22121df0 5934 echo "Doing info in bison"; \
a90ef4bf
JM
5935 (cd $(HOST_SUBDIR)/bison && \
5936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5938 "RANLIB=$${RANLIB}" \
5939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5940 info) \
5941 || exit 1
d545f33b 5942
a90ef4bf 5943@endif bison
d545f33b 5944
a90ef4bf
JM
5945.PHONY: maybe-dvi-bison dvi-bison
5946maybe-dvi-bison:
5947@if bison
5948maybe-dvi-bison: dvi-bison
d545f33b 5949
a90ef4bf
JM
5950dvi-bison: \
5951 configure-bison
5952 @: $(MAKE); $(unstage)
5953 @[ -f ./bison/Makefile ] || exit 0; \
5954 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5956 $(HOST_EXPORTS) \
a90ef4bf
JM
5957 for flag in $(EXTRA_HOST_FLAGS) ; do \
5958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5959 done; \
22121df0 5960 echo "Doing dvi in bison"; \
a90ef4bf
JM
5961 (cd $(HOST_SUBDIR)/bison && \
5962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5964 "RANLIB=$${RANLIB}" \
5965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5966 dvi) \
5967 || exit 1
d545f33b 5968
a90ef4bf 5969@endif bison
d545f33b 5970
a90ef4bf
JM
5971.PHONY: maybe-pdf-bison pdf-bison
5972maybe-pdf-bison:
5973@if bison
5974maybe-pdf-bison: pdf-bison
d545f33b 5975
a90ef4bf
JM
5976pdf-bison: \
5977 configure-bison
5978 @: $(MAKE); $(unstage)
5979 @[ -f ./bison/Makefile ] || exit 0; \
5980 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
5981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5982 $(HOST_EXPORTS) \
a90ef4bf
JM
5983 for flag in $(EXTRA_HOST_FLAGS) ; do \
5984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5985 done; \
22121df0 5986 echo "Doing pdf in bison"; \
a90ef4bf
JM
5987 (cd $(HOST_SUBDIR)/bison && \
5988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5990 "RANLIB=$${RANLIB}" \
5991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
5992 pdf) \
5993 || exit 1
d545f33b 5994
a90ef4bf 5995@endif bison
d545f33b 5996
a90ef4bf
JM
5997.PHONY: maybe-html-bison html-bison
5998maybe-html-bison:
5999@if bison
6000maybe-html-bison: html-bison
d545f33b 6001
a90ef4bf
JM
6002html-bison: \
6003 configure-bison
6004 @: $(MAKE); $(unstage)
6005 @[ -f ./bison/Makefile ] || exit 0; \
6006 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6008 $(HOST_EXPORTS) \
a90ef4bf
JM
6009 for flag in $(EXTRA_HOST_FLAGS) ; do \
6010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6011 done; \
22121df0 6012 echo "Doing html in bison"; \
a90ef4bf
JM
6013 (cd $(HOST_SUBDIR)/bison && \
6014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6016 "RANLIB=$${RANLIB}" \
6017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6018 html) \
6019 || exit 1
d545f33b 6020
a90ef4bf 6021@endif bison
2a4cbe27 6022
a90ef4bf
JM
6023.PHONY: maybe-TAGS-bison TAGS-bison
6024maybe-TAGS-bison:
6025@if bison
6026maybe-TAGS-bison: TAGS-bison
2a4cbe27 6027
a90ef4bf
JM
6028TAGS-bison: \
6029 configure-bison
0aed8855 6030 @: $(MAKE); $(unstage)
a90ef4bf
JM
6031 @[ -f ./bison/Makefile ] || exit 0; \
6032 r=`${PWD_COMMAND}`; export r; \
4fa63067 6033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6034 $(HOST_EXPORTS) \
a90ef4bf
JM
6035 for flag in $(EXTRA_HOST_FLAGS) ; do \
6036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6037 done; \
22121df0 6038 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6039 (cd $(HOST_SUBDIR)/bison && \
6040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6042 "RANLIB=$${RANLIB}" \
6043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6044 TAGS) \
6045 || exit 1
4fa63067 6046
a90ef4bf 6047@endif bison
4fa63067 6048
a90ef4bf
JM
6049.PHONY: maybe-install-info-bison install-info-bison
6050maybe-install-info-bison:
6051@if bison
6052maybe-install-info-bison: install-info-bison
9b980aa1 6053
a90ef4bf
JM
6054install-info-bison: \
6055 configure-bison \
6056 info-bison
9b980aa1 6057 @: $(MAKE); $(unstage)
a90ef4bf 6058 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6059 r=`${PWD_COMMAND}`; export r; \
6060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6061 $(HOST_EXPORTS) \
b813574b 6062 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6064 done; \
22121df0 6065 echo "Doing install-info in bison"; \
a90ef4bf 6066 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6069 "RANLIB=$${RANLIB}" \
0c24b341 6070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6071 install-info) \
2a4cbe27
NN
6072 || exit 1
6073
a90ef4bf 6074@endif bison
2a4cbe27 6075
a90ef4bf
JM
6076.PHONY: maybe-install-pdf-bison install-pdf-bison
6077maybe-install-pdf-bison:
6078@if bison
6079maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6080
a90ef4bf
JM
6081install-pdf-bison: \
6082 configure-bison \
6083 pdf-bison
6084 @: $(MAKE); $(unstage)
6085 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6086 r=`${PWD_COMMAND}`; export r; \
6087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6088 $(HOST_EXPORTS) \
b813574b 6089 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6091 done; \
22121df0 6092 echo "Doing install-pdf in bison"; \
a90ef4bf 6093 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6096 "RANLIB=$${RANLIB}" \
0c24b341 6097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6098 install-pdf) \
2a4cbe27
NN
6099 || exit 1
6100
a90ef4bf 6101@endif bison
2a4cbe27 6102
a90ef4bf
JM
6103.PHONY: maybe-install-html-bison install-html-bison
6104maybe-install-html-bison:
6105@if bison
6106maybe-install-html-bison: install-html-bison
56a8fe78 6107
a90ef4bf
JM
6108install-html-bison: \
6109 configure-bison \
6110 html-bison
6111 @: $(MAKE); $(unstage)
6112 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6113 r=`${PWD_COMMAND}`; export r; \
6114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6115 $(HOST_EXPORTS) \
6116 for flag in $(EXTRA_HOST_FLAGS) ; do \
6117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6118 done; \
22121df0 6119 echo "Doing install-html in bison"; \
a90ef4bf 6120 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6123 "RANLIB=$${RANLIB}" \
0c24b341 6124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6125 install-html) \
56a8fe78
DD
6126 || exit 1
6127
a90ef4bf 6128@endif bison
56a8fe78 6129
a90ef4bf
JM
6130.PHONY: maybe-installcheck-bison installcheck-bison
6131maybe-installcheck-bison:
6132@if bison
6133maybe-installcheck-bison: installcheck-bison
6d389afc 6134
a90ef4bf
JM
6135installcheck-bison: \
6136 configure-bison
6137 @: $(MAKE); $(unstage)
6138 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6139 r=`${PWD_COMMAND}`; export r; \
6140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6141 $(HOST_EXPORTS) \
6142 for flag in $(EXTRA_HOST_FLAGS) ; do \
6143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6144 done; \
22121df0 6145 echo "Doing installcheck in bison"; \
a90ef4bf 6146 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6149 "RANLIB=$${RANLIB}" \
0c24b341 6150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6151 installcheck) \
6d389afc
MS
6152 || exit 1
6153
a90ef4bf 6154@endif bison
6d389afc 6155
a90ef4bf
JM
6156.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6157maybe-mostlyclean-bison:
6158@if bison
6159maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6160
a90ef4bf
JM
6161mostlyclean-bison:
6162 @: $(MAKE); $(unstage)
6163 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6164 r=`${PWD_COMMAND}`; export r; \
6165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6166 $(HOST_EXPORTS) \
b813574b 6167 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6169 done; \
22121df0 6170 echo "Doing mostlyclean in bison"; \
a90ef4bf 6171 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6174 "RANLIB=$${RANLIB}" \
0c24b341 6175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6176 mostlyclean) \
2a4cbe27
NN
6177 || exit 1
6178
a90ef4bf 6179@endif bison
2a4cbe27 6180
a90ef4bf
JM
6181.PHONY: maybe-clean-bison clean-bison
6182maybe-clean-bison:
6183@if bison
6184maybe-clean-bison: clean-bison
2a4cbe27 6185
a90ef4bf
JM
6186clean-bison:
6187 @: $(MAKE); $(unstage)
6188 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6189 r=`${PWD_COMMAND}`; export r; \
6190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6191 $(HOST_EXPORTS) \
b813574b 6192 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6194 done; \
22121df0 6195 echo "Doing clean in bison"; \
a90ef4bf 6196 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6199 "RANLIB=$${RANLIB}" \
0c24b341 6200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6201 clean) \
2a4cbe27
NN
6202 || exit 1
6203
a90ef4bf 6204@endif bison
2a4cbe27 6205
a90ef4bf
JM
6206.PHONY: maybe-distclean-bison distclean-bison
6207maybe-distclean-bison:
6208@if bison
6209maybe-distclean-bison: distclean-bison
a3ca38d2 6210
a90ef4bf
JM
6211distclean-bison:
6212 @: $(MAKE); $(unstage)
6213 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6214 r=`${PWD_COMMAND}`; export r; \
6215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6216 $(HOST_EXPORTS) \
6217 for flag in $(EXTRA_HOST_FLAGS) ; do \
6218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6219 done; \
22121df0 6220 echo "Doing distclean in bison"; \
a90ef4bf 6221 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6224 "RANLIB=$${RANLIB}" \
0c24b341 6225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6226 distclean) \
a3ca38d2
DD
6227 || exit 1
6228
a90ef4bf 6229@endif bison
a3ca38d2 6230
a90ef4bf
JM
6231.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6232maybe-maintainer-clean-bison:
6233@if bison
6234maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6235
a90ef4bf
JM
6236maintainer-clean-bison:
6237 @: $(MAKE); $(unstage)
6238 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6239 r=`${PWD_COMMAND}`; export r; \
6240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6241 $(HOST_EXPORTS) \
6242 for flag in $(EXTRA_HOST_FLAGS) ; do \
6243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6244 done; \
22121df0 6245 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6246 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6249 "RANLIB=$${RANLIB}" \
0c24b341 6250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6251 maintainer-clean) \
108a6f8e
CD
6252 || exit 1
6253
a90ef4bf 6254@endif bison
108a6f8e 6255
2a4cbe27 6256
a90ef4bf
JM
6257
6258.PHONY: configure-cgen maybe-configure-cgen
6259maybe-configure-cgen:
6260@if gcc-bootstrap
6261configure-cgen: stage_current
6262@endif gcc-bootstrap
6263@if cgen
6264maybe-configure-cgen: configure-cgen
6265configure-cgen:
6266 @: $(MAKE); $(unstage)
6267 @r=`${PWD_COMMAND}`; export r; \
6268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6269 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6270 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6271 $(HOST_EXPORTS) \
6272 echo Configuring in $(HOST_SUBDIR)/cgen; \
6273 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6274 case $(srcdir) in \
6275 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6276 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6277 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6278 esac; \
1b6c0831
L
6279 module_srcdir=cgen; \
6280 $(SHELL) \
6281 $$s/$$module_srcdir/configure \
6282 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6283 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6284 --target=${target_alias} \
a90ef4bf
JM
6285 || exit 1
6286@endif cgen
6287
6288
6289
6290
6291
6292.PHONY: all-cgen maybe-all-cgen
6293maybe-all-cgen:
6294@if gcc-bootstrap
6295all-cgen: stage_current
6296@endif gcc-bootstrap
6297@if cgen
6298TARGET-cgen=all
6299maybe-all-cgen: all-cgen
6300all-cgen: configure-cgen
6301 @: $(MAKE); $(unstage)
6302 @r=`${PWD_COMMAND}`; export r; \
6303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6304 $(HOST_EXPORTS) \
6305 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6306 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6307 $(TARGET-cgen))
6308@endif cgen
6309
6310
6311
6312
6313.PHONY: check-cgen maybe-check-cgen
6314maybe-check-cgen:
6315@if cgen
6316maybe-check-cgen: check-cgen
6317
6318check-cgen:
6319 @: $(MAKE); $(unstage)
6320 @r=`${PWD_COMMAND}`; export r; \
6321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6322 $(HOST_EXPORTS) \
a90ef4bf
JM
6323 (cd $(HOST_SUBDIR)/cgen && \
6324 $(MAKE) $(FLAGS_TO_PASS) check)
6325
6326@endif cgen
6327
6328.PHONY: install-cgen maybe-install-cgen
6329maybe-install-cgen:
6330@if cgen
6331maybe-install-cgen: install-cgen
6332
6333install-cgen: installdirs
6334 @: $(MAKE); $(unstage)
6335 @r=`${PWD_COMMAND}`; export r; \
6336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6337 $(HOST_EXPORTS) \
6338 (cd $(HOST_SUBDIR)/cgen && \
6339 $(MAKE) $(FLAGS_TO_PASS) install)
6340
6341@endif cgen
6342
6343.PHONY: install-strip-cgen maybe-install-strip-cgen
6344maybe-install-strip-cgen:
6345@if cgen
6346maybe-install-strip-cgen: install-strip-cgen
6347
6348install-strip-cgen: installdirs
6349 @: $(MAKE); $(unstage)
6350 @r=`${PWD_COMMAND}`; export r; \
6351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6352 $(HOST_EXPORTS) \
6353 (cd $(HOST_SUBDIR)/cgen && \
6354 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6355
6356@endif cgen
6357
6358# Other targets (info, dvi, pdf, etc.)
6359
6360.PHONY: maybe-info-cgen info-cgen
6361maybe-info-cgen:
6362@if cgen
6363maybe-info-cgen: info-cgen
6364
6365info-cgen: \
6366 configure-cgen
6367 @: $(MAKE); $(unstage)
6368 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6369 r=`${PWD_COMMAND}`; export r; \
6370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6371 $(HOST_EXPORTS) \
b813574b 6372 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6374 done; \
22121df0 6375 echo "Doing info in cgen"; \
a90ef4bf 6376 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6379 "RANLIB=$${RANLIB}" \
0c24b341 6380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6381 info) \
2a4cbe27
NN
6382 || exit 1
6383
a90ef4bf 6384@endif cgen
2a4cbe27 6385
a90ef4bf
JM
6386.PHONY: maybe-dvi-cgen dvi-cgen
6387maybe-dvi-cgen:
6388@if cgen
6389maybe-dvi-cgen: dvi-cgen
2a4cbe27 6390
a90ef4bf
JM
6391dvi-cgen: \
6392 configure-cgen
6393 @: $(MAKE); $(unstage)
6394 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6395 r=`${PWD_COMMAND}`; export r; \
6396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6397 $(HOST_EXPORTS) \
b813574b 6398 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6400 done; \
22121df0 6401 echo "Doing dvi in cgen"; \
a90ef4bf 6402 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6405 "RANLIB=$${RANLIB}" \
0c24b341 6406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6407 dvi) \
2a4cbe27
NN
6408 || exit 1
6409
a90ef4bf 6410@endif cgen
2a4cbe27 6411
a90ef4bf
JM
6412.PHONY: maybe-pdf-cgen pdf-cgen
6413maybe-pdf-cgen:
6414@if cgen
6415maybe-pdf-cgen: pdf-cgen
2a4cbe27 6416
a90ef4bf
JM
6417pdf-cgen: \
6418 configure-cgen
6419 @: $(MAKE); $(unstage)
6420 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6421 r=`${PWD_COMMAND}`; export r; \
6422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6423 $(HOST_EXPORTS) \
b813574b 6424 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6426 done; \
22121df0 6427 echo "Doing pdf in cgen"; \
a90ef4bf 6428 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6431 "RANLIB=$${RANLIB}" \
0c24b341 6432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6433 pdf) \
2a4cbe27
NN
6434 || exit 1
6435
a90ef4bf 6436@endif cgen
2a4cbe27 6437
a90ef4bf
JM
6438.PHONY: maybe-html-cgen html-cgen
6439maybe-html-cgen:
6440@if cgen
6441maybe-html-cgen: html-cgen
2a4cbe27 6442
a90ef4bf
JM
6443html-cgen: \
6444 configure-cgen
6445 @: $(MAKE); $(unstage)
6446 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6447 r=`${PWD_COMMAND}`; export r; \
6448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6449 $(HOST_EXPORTS) \
b813574b 6450 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6452 done; \
22121df0 6453 echo "Doing html in cgen"; \
a90ef4bf 6454 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6457 "RANLIB=$${RANLIB}" \
0c24b341 6458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6459 html) \
2a4cbe27
NN
6460 || exit 1
6461
a90ef4bf 6462@endif cgen
2a4cbe27 6463
a90ef4bf
JM
6464.PHONY: maybe-TAGS-cgen TAGS-cgen
6465maybe-TAGS-cgen:
6466@if cgen
6467maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6468
a90ef4bf
JM
6469TAGS-cgen: \
6470 configure-cgen
6471 @: $(MAKE); $(unstage)
6472 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6473 r=`${PWD_COMMAND}`; export r; \
6474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6475 $(HOST_EXPORTS) \
b813574b 6476 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6478 done; \
22121df0 6479 echo "Doing TAGS in cgen"; \
a90ef4bf 6480 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6483 "RANLIB=$${RANLIB}" \
0c24b341 6484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6485 TAGS) \
2a4cbe27
NN
6486 || exit 1
6487
a90ef4bf 6488@endif cgen
2a4cbe27 6489
a90ef4bf
JM
6490.PHONY: maybe-install-info-cgen install-info-cgen
6491maybe-install-info-cgen:
6492@if cgen
6493maybe-install-info-cgen: install-info-cgen
2a4cbe27 6494
a90ef4bf
JM
6495install-info-cgen: \
6496 configure-cgen \
6497 info-cgen
6498 @: $(MAKE); $(unstage)
6499 @[ -f ./cgen/Makefile ] || exit 0; \
6500 r=`${PWD_COMMAND}`; export r; \
6501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6502 $(HOST_EXPORTS) \
6503 for flag in $(EXTRA_HOST_FLAGS) ; do \
6504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6505 done; \
22121df0 6506 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6507 (cd $(HOST_SUBDIR)/cgen && \
6508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6510 "RANLIB=$${RANLIB}" \
6511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6512 install-info) \
6513 || exit 1
a7254363 6514
a90ef4bf
JM
6515@endif cgen
6516
6517.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6518maybe-install-pdf-cgen:
6519@if cgen
6520maybe-install-pdf-cgen: install-pdf-cgen
6521
6522install-pdf-cgen: \
6523 configure-cgen \
6524 pdf-cgen
6525 @: $(MAKE); $(unstage)
6526 @[ -f ./cgen/Makefile ] || exit 0; \
6527 r=`${PWD_COMMAND}`; export r; \
c52c6897 6528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6529 $(HOST_EXPORTS) \
6530 for flag in $(EXTRA_HOST_FLAGS) ; do \
6531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6532 done; \
22121df0 6533 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6534 (cd $(HOST_SUBDIR)/cgen && \
6535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6537 "RANLIB=$${RANLIB}" \
6538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6539 install-pdf) \
2a4cbe27
NN
6540 || exit 1
6541
a90ef4bf 6542@endif cgen
a7254363 6543
a90ef4bf
JM
6544.PHONY: maybe-install-html-cgen install-html-cgen
6545maybe-install-html-cgen:
6546@if cgen
6547maybe-install-html-cgen: install-html-cgen
a7254363 6548
a90ef4bf
JM
6549install-html-cgen: \
6550 configure-cgen \
6551 html-cgen
6552 @: $(MAKE); $(unstage)
6553 @[ -f ./cgen/Makefile ] || exit 0; \
6554 r=`${PWD_COMMAND}`; export r; \
c52c6897 6555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6556 $(HOST_EXPORTS) \
a90ef4bf
JM
6557 for flag in $(EXTRA_HOST_FLAGS) ; do \
6558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6559 done; \
22121df0 6560 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6561 (cd $(HOST_SUBDIR)/cgen && \
6562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6564 "RANLIB=$${RANLIB}" \
6565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6566 install-html) \
6567 || exit 1
d545f33b 6568
a90ef4bf
JM
6569@endif cgen
6570
6571.PHONY: maybe-installcheck-cgen installcheck-cgen
6572maybe-installcheck-cgen:
6573@if cgen
6574maybe-installcheck-cgen: installcheck-cgen
6575
6576installcheck-cgen: \
6577 configure-cgen
6578 @: $(MAKE); $(unstage)
6579 @[ -f ./cgen/Makefile ] || exit 0; \
6580 r=`${PWD_COMMAND}`; export r; \
c52c6897 6581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6582 $(HOST_EXPORTS) \
a90ef4bf
JM
6583 for flag in $(EXTRA_HOST_FLAGS) ; do \
6584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6585 done; \
22121df0 6586 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6587 (cd $(HOST_SUBDIR)/cgen && \
6588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6590 "RANLIB=$${RANLIB}" \
6591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6592 installcheck) \
6593 || exit 1
8520c408 6594
a90ef4bf
JM
6595@endif cgen
6596
6597.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6598maybe-mostlyclean-cgen:
6599@if cgen
6600maybe-mostlyclean-cgen: mostlyclean-cgen
6601
6602mostlyclean-cgen:
6603 @: $(MAKE); $(unstage)
6604 @[ -f ./cgen/Makefile ] || exit 0; \
6605 r=`${PWD_COMMAND}`; export r; \
c52c6897 6606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6607 $(HOST_EXPORTS) \
a90ef4bf
JM
6608 for flag in $(EXTRA_HOST_FLAGS) ; do \
6609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6610 done; \
22121df0 6611 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6612 (cd $(HOST_SUBDIR)/cgen && \
6613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6615 "RANLIB=$${RANLIB}" \
6616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6617 mostlyclean) \
6618 || exit 1
8520c408 6619
a90ef4bf
JM
6620@endif cgen
6621
6622.PHONY: maybe-clean-cgen clean-cgen
6623maybe-clean-cgen:
6624@if cgen
6625maybe-clean-cgen: clean-cgen
6626
6627clean-cgen:
6628 @: $(MAKE); $(unstage)
6629 @[ -f ./cgen/Makefile ] || exit 0; \
6630 r=`${PWD_COMMAND}`; export r; \
c52c6897 6631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6632 $(HOST_EXPORTS) \
a90ef4bf
JM
6633 for flag in $(EXTRA_HOST_FLAGS) ; do \
6634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6635 done; \
22121df0 6636 echo "Doing clean in cgen"; \
a90ef4bf
JM
6637 (cd $(HOST_SUBDIR)/cgen && \
6638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6640 "RANLIB=$${RANLIB}" \
6641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6642 clean) \
6643 || exit 1
d545f33b 6644
a90ef4bf
JM
6645@endif cgen
6646
6647.PHONY: maybe-distclean-cgen distclean-cgen
6648maybe-distclean-cgen:
6649@if cgen
6650maybe-distclean-cgen: distclean-cgen
6651
6652distclean-cgen:
6653 @: $(MAKE); $(unstage)
6654 @[ -f ./cgen/Makefile ] || exit 0; \
6655 r=`${PWD_COMMAND}`; export r; \
c52c6897 6656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6657 $(HOST_EXPORTS) \
a90ef4bf
JM
6658 for flag in $(EXTRA_HOST_FLAGS) ; do \
6659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6660 done; \
22121df0 6661 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6662 (cd $(HOST_SUBDIR)/cgen && \
6663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6665 "RANLIB=$${RANLIB}" \
6666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6667 distclean) \
6668 || exit 1
d545f33b 6669
a90ef4bf
JM
6670@endif cgen
6671
6672.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6673maybe-maintainer-clean-cgen:
6674@if cgen
6675maybe-maintainer-clean-cgen: maintainer-clean-cgen
6676
6677maintainer-clean-cgen:
6678 @: $(MAKE); $(unstage)
6679 @[ -f ./cgen/Makefile ] || exit 0; \
6680 r=`${PWD_COMMAND}`; export r; \
c52c6897 6681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6682 $(HOST_EXPORTS) \
a90ef4bf
JM
6683 for flag in $(EXTRA_HOST_FLAGS) ; do \
6684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6685 done; \
22121df0 6686 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6687 (cd $(HOST_SUBDIR)/cgen && \
6688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6690 "RANLIB=$${RANLIB}" \
6691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6692 maintainer-clean) \
6693 || exit 1
6694
6695@endif cgen
6696
6697
6698
6699.PHONY: configure-dejagnu maybe-configure-dejagnu
6700maybe-configure-dejagnu:
6701@if gcc-bootstrap
6702configure-dejagnu: stage_current
6703@endif gcc-bootstrap
6704@if dejagnu
6705maybe-configure-dejagnu: configure-dejagnu
6706configure-dejagnu:
6707 @: $(MAKE); $(unstage)
6708 @r=`${PWD_COMMAND}`; export r; \
6709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6710 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6711 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6712 $(HOST_EXPORTS) \
6713 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6714 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6715 case $(srcdir) in \
6716 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6717 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6718 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6719 esac; \
1b6c0831
L
6720 module_srcdir=dejagnu; \
6721 $(SHELL) \
6722 $$s/$$module_srcdir/configure \
6723 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6724 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6725 --target=${target_alias} \
a90ef4bf
JM
6726 || exit 1
6727@endif dejagnu
d545f33b
PB
6728
6729
6730
6731
6732
a90ef4bf
JM
6733.PHONY: all-dejagnu maybe-all-dejagnu
6734maybe-all-dejagnu:
4f0ef2d8 6735@if gcc-bootstrap
a90ef4bf 6736all-dejagnu: stage_current
4f0ef2d8 6737@endif gcc-bootstrap
a90ef4bf
JM
6738@if dejagnu
6739TARGET-dejagnu=all
6740maybe-all-dejagnu: all-dejagnu
6741all-dejagnu: configure-dejagnu
6742 @: $(MAKE); $(unstage)
c52c6897 6743 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6745 $(HOST_EXPORTS) \
a90ef4bf 6746 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6747 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6748 $(TARGET-dejagnu))
6749@endif dejagnu
4fa63067 6750
a7254363 6751
4fa63067 6752
a90ef4bf
JM
6753
6754.PHONY: check-dejagnu maybe-check-dejagnu
6755maybe-check-dejagnu:
6756@if dejagnu
6757maybe-check-dejagnu: check-dejagnu
6758
6759check-dejagnu:
6760 @: $(MAKE); $(unstage)
4fa63067
NN
6761 @r=`${PWD_COMMAND}`; export r; \
6762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6763 $(HOST_EXPORTS) \
a90ef4bf
JM
6764 (cd $(HOST_SUBDIR)/dejagnu && \
6765 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6766
a90ef4bf 6767@endif dejagnu
2a4cbe27 6768
a90ef4bf
JM
6769.PHONY: install-dejagnu maybe-install-dejagnu
6770maybe-install-dejagnu:
6771@if dejagnu
6772maybe-install-dejagnu: install-dejagnu
2a4cbe27 6773
a90ef4bf
JM
6774install-dejagnu: installdirs
6775 @: $(MAKE); $(unstage)
4fa63067 6776 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6778 $(HOST_EXPORTS) \
a90ef4bf
JM
6779 (cd $(HOST_SUBDIR)/dejagnu && \
6780 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6781
a90ef4bf 6782@endif dejagnu
d545f33b 6783
a90ef4bf
JM
6784.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6785maybe-install-strip-dejagnu:
6786@if dejagnu
6787maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6788
a90ef4bf 6789install-strip-dejagnu: installdirs
9b980aa1
RW
6790 @: $(MAKE); $(unstage)
6791 @r=`${PWD_COMMAND}`; export r; \
6792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6793 $(HOST_EXPORTS) \
a90ef4bf 6794 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6795 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6796
a90ef4bf 6797@endif dejagnu
9b980aa1 6798
56a8fe78 6799# Other targets (info, dvi, pdf, etc.)
d545f33b 6800
a90ef4bf
JM
6801.PHONY: maybe-info-dejagnu info-dejagnu
6802maybe-info-dejagnu:
6803@if dejagnu
6804maybe-info-dejagnu: info-dejagnu
d545f33b 6805
a90ef4bf
JM
6806info-dejagnu: \
6807 configure-dejagnu
6808 @: $(MAKE); $(unstage)
6809 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6810 r=`${PWD_COMMAND}`; export r; \
6811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6812 $(HOST_EXPORTS) \
6813 for flag in $(EXTRA_HOST_FLAGS) ; do \
6814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6815 done; \
22121df0 6816 echo "Doing info in dejagnu"; \
a90ef4bf 6817 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6820 "RANLIB=$${RANLIB}" \
0c24b341 6821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6822 info) \
6823 || exit 1
6824
a90ef4bf 6825@endif dejagnu
d545f33b 6826
a90ef4bf
JM
6827.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6828maybe-dvi-dejagnu:
6829@if dejagnu
6830maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6831
a90ef4bf
JM
6832dvi-dejagnu: \
6833 configure-dejagnu
6834 @: $(MAKE); $(unstage)
6835 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6836 r=`${PWD_COMMAND}`; export r; \
6837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6838 $(HOST_EXPORTS) \
6839 for flag in $(EXTRA_HOST_FLAGS) ; do \
6840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6841 done; \
22121df0 6842 echo "Doing dvi in dejagnu"; \
a90ef4bf 6843 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6846 "RANLIB=$${RANLIB}" \
0c24b341 6847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6848 dvi) \
2a4cbe27
NN
6849 || exit 1
6850
a90ef4bf 6851@endif dejagnu
2a4cbe27 6852
a90ef4bf
JM
6853.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6854maybe-pdf-dejagnu:
6855@if dejagnu
6856maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6857
a90ef4bf
JM
6858pdf-dejagnu: \
6859 configure-dejagnu
6860 @: $(MAKE); $(unstage)
6861 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6862 r=`${PWD_COMMAND}`; export r; \
6863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6864 $(HOST_EXPORTS) \
6865 for flag in $(EXTRA_HOST_FLAGS) ; do \
6866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6867 done; \
22121df0 6868 echo "Doing pdf in dejagnu"; \
a90ef4bf 6869 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6872 "RANLIB=$${RANLIB}" \
0c24b341 6873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6874 pdf) \
6875 || exit 1
6876
a90ef4bf 6877@endif dejagnu
56a8fe78 6878
a90ef4bf
JM
6879.PHONY: maybe-html-dejagnu html-dejagnu
6880maybe-html-dejagnu:
6881@if dejagnu
6882maybe-html-dejagnu: html-dejagnu
6d389afc 6883
a90ef4bf
JM
6884html-dejagnu: \
6885 configure-dejagnu
6886 @: $(MAKE); $(unstage)
6887 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6888 r=`${PWD_COMMAND}`; export r; \
6889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6890 $(HOST_EXPORTS) \
6891 for flag in $(EXTRA_HOST_FLAGS) ; do \
6892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6893 done; \
22121df0 6894 echo "Doing html in dejagnu"; \
a90ef4bf 6895 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6898 "RANLIB=$${RANLIB}" \
0c24b341 6899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6900 html) \
6901 || exit 1
6902
a90ef4bf 6903@endif dejagnu
6d389afc 6904
a90ef4bf
JM
6905.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
6906maybe-TAGS-dejagnu:
6907@if dejagnu
6908maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 6909
a90ef4bf
JM
6910TAGS-dejagnu: \
6911 configure-dejagnu
6912 @: $(MAKE); $(unstage)
6913 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6914 r=`${PWD_COMMAND}`; export r; \
6915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6916 $(HOST_EXPORTS) \
b813574b 6917 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6919 done; \
22121df0 6920 echo "Doing TAGS in dejagnu"; \
a90ef4bf 6921 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6924 "RANLIB=$${RANLIB}" \
0c24b341 6925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6926 TAGS) \
2a4cbe27
NN
6927 || exit 1
6928
a90ef4bf 6929@endif dejagnu
2a4cbe27 6930
a90ef4bf
JM
6931.PHONY: maybe-install-info-dejagnu install-info-dejagnu
6932maybe-install-info-dejagnu:
6933@if dejagnu
6934maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 6935
a90ef4bf
JM
6936install-info-dejagnu: \
6937 configure-dejagnu \
6938 info-dejagnu
6939 @: $(MAKE); $(unstage)
6940 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
6941 r=`${PWD_COMMAND}`; export r; \
6942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6943 $(HOST_EXPORTS) \
b813574b 6944 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6946 done; \
22121df0 6947 echo "Doing install-info in dejagnu"; \
a90ef4bf 6948 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6951 "RANLIB=$${RANLIB}" \
0c24b341 6952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6953 install-info) \
2a4cbe27
NN
6954 || exit 1
6955
a90ef4bf 6956@endif dejagnu
2a4cbe27 6957
a90ef4bf
JM
6958.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
6959maybe-install-pdf-dejagnu:
6960@if dejagnu
6961maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 6962
a90ef4bf
JM
6963install-pdf-dejagnu: \
6964 configure-dejagnu \
6965 pdf-dejagnu
6966 @: $(MAKE); $(unstage)
6967 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
6968 r=`${PWD_COMMAND}`; export r; \
6969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6970 $(HOST_EXPORTS) \
6971 for flag in $(EXTRA_HOST_FLAGS) ; do \
6972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6973 done; \
22121df0 6974 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 6975 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
6976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6978 "RANLIB=$${RANLIB}" \
0c24b341 6979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
6980 install-pdf) \
6981 || exit 1
6982
a90ef4bf 6983@endif dejagnu
a3ca38d2 6984
a90ef4bf
JM
6985.PHONY: maybe-install-html-dejagnu install-html-dejagnu
6986maybe-install-html-dejagnu:
6987@if dejagnu
6988maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 6989
a90ef4bf
JM
6990install-html-dejagnu: \
6991 configure-dejagnu \
6992 html-dejagnu
6993 @: $(MAKE); $(unstage)
6994 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
6995 r=`${PWD_COMMAND}`; export r; \
6996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6997 $(HOST_EXPORTS) \
6998 for flag in $(EXTRA_HOST_FLAGS) ; do \
6999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7000 done; \
22121df0 7001 echo "Doing install-html in dejagnu"; \
a90ef4bf 7002 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
7003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7005 "RANLIB=$${RANLIB}" \
0c24b341 7006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7007 install-html) \
7008 || exit 1
7009
a90ef4bf 7010@endif dejagnu
108a6f8e 7011
a90ef4bf
JM
7012.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
7013maybe-installcheck-dejagnu:
7014@if dejagnu
7015maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 7016
a90ef4bf
JM
7017installcheck-dejagnu: \
7018 configure-dejagnu
7019 @: $(MAKE); $(unstage)
7020 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7021 r=`${PWD_COMMAND}`; export r; \
7022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7023 $(HOST_EXPORTS) \
b813574b 7024 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7026 done; \
22121df0 7027 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7028 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7031 "RANLIB=$${RANLIB}" \
0c24b341 7032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7033 installcheck) \
2a4cbe27
NN
7034 || exit 1
7035
a90ef4bf 7036@endif dejagnu
2a4cbe27 7037
a90ef4bf
JM
7038.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7039maybe-mostlyclean-dejagnu:
7040@if dejagnu
7041maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7042
a90ef4bf
JM
7043mostlyclean-dejagnu:
7044 @: $(MAKE); $(unstage)
7045 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7046 r=`${PWD_COMMAND}`; export r; \
7047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7048 $(HOST_EXPORTS) \
b813574b 7049 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7051 done; \
22121df0 7052 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7053 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7056 "RANLIB=$${RANLIB}" \
0c24b341 7057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7058 mostlyclean) \
2a4cbe27
NN
7059 || exit 1
7060
a90ef4bf 7061@endif dejagnu
2a4cbe27 7062
a90ef4bf
JM
7063.PHONY: maybe-clean-dejagnu clean-dejagnu
7064maybe-clean-dejagnu:
7065@if dejagnu
7066maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7067
a90ef4bf
JM
7068clean-dejagnu:
7069 @: $(MAKE); $(unstage)
7070 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7071 r=`${PWD_COMMAND}`; export r; \
7072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7073 $(HOST_EXPORTS) \
b813574b 7074 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7076 done; \
22121df0 7077 echo "Doing clean in dejagnu"; \
a90ef4bf 7078 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7081 "RANLIB=$${RANLIB}" \
0c24b341 7082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7083 clean) \
2a4cbe27
NN
7084 || exit 1
7085
a90ef4bf 7086@endif dejagnu
2a4cbe27 7087
a90ef4bf
JM
7088.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7089maybe-distclean-dejagnu:
7090@if dejagnu
7091maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7092
a90ef4bf
JM
7093distclean-dejagnu:
7094 @: $(MAKE); $(unstage)
7095 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7096 r=`${PWD_COMMAND}`; export r; \
7097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7098 $(HOST_EXPORTS) \
b813574b 7099 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7101 done; \
22121df0 7102 echo "Doing distclean in dejagnu"; \
a90ef4bf 7103 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7106 "RANLIB=$${RANLIB}" \
0c24b341 7107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7108 distclean) \
2a4cbe27
NN
7109 || exit 1
7110
a90ef4bf 7111@endif dejagnu
2a4cbe27 7112
a90ef4bf
JM
7113.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7114maybe-maintainer-clean-dejagnu:
7115@if dejagnu
7116maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7117
a90ef4bf
JM
7118maintainer-clean-dejagnu:
7119 @: $(MAKE); $(unstage)
7120 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7121 r=`${PWD_COMMAND}`; export r; \
7122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7123 $(HOST_EXPORTS) \
b813574b 7124 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7126 done; \
22121df0 7127 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7128 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7131 "RANLIB=$${RANLIB}" \
0c24b341 7132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7133 maintainer-clean) \
2a4cbe27
NN
7134 || exit 1
7135
a90ef4bf 7136@endif dejagnu
2a4cbe27 7137
2a4cbe27 7138
a7254363 7139
a90ef4bf
JM
7140.PHONY: configure-etc maybe-configure-etc
7141maybe-configure-etc:
4f0ef2d8 7142@if gcc-bootstrap
a90ef4bf 7143configure-etc: stage_current
4f0ef2d8 7144@endif gcc-bootstrap
a90ef4bf
JM
7145@if etc
7146maybe-configure-etc: configure-etc
7147configure-etc:
0aed8855 7148 @: $(MAKE); $(unstage)
c52c6897 7149 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7151 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7152 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7153 $(HOST_EXPORTS) \
a90ef4bf
JM
7154 echo Configuring in $(HOST_SUBDIR)/etc; \
7155 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7156 case $(srcdir) in \
b00612cc 7157 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7158 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7159 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7160 esac; \
1b6c0831
L
7161 module_srcdir=etc; \
7162 $(SHELL) \
7163 $$s/$$module_srcdir/configure \
7164 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7165 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7166 --target=${target_alias} \
2a4cbe27 7167 || exit 1
a90ef4bf 7168@endif etc
2a4cbe27 7169
a7254363
PB
7170
7171
d545f33b
PB
7172
7173
a90ef4bf
JM
7174.PHONY: all-etc maybe-all-etc
7175maybe-all-etc:
4f0ef2d8 7176@if gcc-bootstrap
a90ef4bf 7177all-etc: stage_current
4f0ef2d8 7178@endif gcc-bootstrap
a90ef4bf
JM
7179@if etc
7180TARGET-etc=all
7181maybe-all-etc: all-etc
7182all-etc: configure-etc
0aed8855 7183 @: $(MAKE); $(unstage)
4fa63067
NN
7184 @r=`${PWD_COMMAND}`; export r; \
7185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7186 $(HOST_EXPORTS) \
a90ef4bf 7187 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7188 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7189 $(TARGET-etc))
7190@endif etc
2a4cbe27 7191
a7254363 7192
d545f33b
PB
7193
7194
a90ef4bf
JM
7195.PHONY: check-etc maybe-check-etc
7196maybe-check-etc:
7197@if etc
7198maybe-check-etc: check-etc
2a4cbe27 7199
a90ef4bf 7200check-etc:
0aed8855 7201 @: $(MAKE); $(unstage)
a90ef4bf
JM
7202 @r=`${PWD_COMMAND}`; export r; \
7203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7204 $(HOST_EXPORTS) \
a90ef4bf
JM
7205 (cd $(HOST_SUBDIR)/etc && \
7206 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7207
a90ef4bf 7208@endif etc
4fa63067 7209
a90ef4bf
JM
7210.PHONY: install-etc maybe-install-etc
7211maybe-install-etc:
7212@if etc
7213maybe-install-etc: install-etc
4fa63067 7214
a90ef4bf 7215install-etc: installdirs
0aed8855 7216 @: $(MAKE); $(unstage)
4fa63067 7217 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7219 $(HOST_EXPORTS) \
a90ef4bf 7220 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7221 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7222
a90ef4bf 7223@endif etc
2a4cbe27 7224
a90ef4bf
JM
7225.PHONY: install-strip-etc maybe-install-strip-etc
7226maybe-install-strip-etc:
7227@if etc
7228maybe-install-strip-etc: install-strip-etc
9b980aa1 7229
a90ef4bf 7230install-strip-etc: installdirs
9b980aa1
RW
7231 @: $(MAKE); $(unstage)
7232 @r=`${PWD_COMMAND}`; export r; \
7233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7234 $(HOST_EXPORTS) \
a90ef4bf 7235 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7236 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7237
a90ef4bf 7238@endif etc
9b980aa1 7239
56a8fe78 7240# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7241
a90ef4bf
JM
7242.PHONY: maybe-info-etc info-etc
7243maybe-info-etc:
7244@if etc
7245maybe-info-etc: info-etc
4fa63067 7246
a90ef4bf
JM
7247info-etc: \
7248 configure-etc
0aed8855 7249 @: $(MAKE); $(unstage)
a90ef4bf 7250 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7251 r=`${PWD_COMMAND}`; export r; \
7252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7253 $(HOST_EXPORTS) \
b813574b 7254 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7256 done; \
22121df0 7257 echo "Doing info in etc"; \
a90ef4bf 7258 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7261 "RANLIB=$${RANLIB}" \
0c24b341 7262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7263 info) \
2a4cbe27
NN
7264 || exit 1
7265
a90ef4bf 7266@endif etc
2a4cbe27 7267
a90ef4bf
JM
7268.PHONY: maybe-dvi-etc dvi-etc
7269maybe-dvi-etc:
7270@if etc
7271maybe-dvi-etc: dvi-etc
2a4cbe27 7272
a90ef4bf
JM
7273dvi-etc: \
7274 configure-etc
0aed8855 7275 @: $(MAKE); $(unstage)
a90ef4bf 7276 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7277 r=`${PWD_COMMAND}`; export r; \
7278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7279 $(HOST_EXPORTS) \
b813574b 7280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7282 done; \
22121df0 7283 echo "Doing dvi in etc"; \
a90ef4bf 7284 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7287 "RANLIB=$${RANLIB}" \
0c24b341 7288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7289 dvi) \
2a4cbe27
NN
7290 || exit 1
7291
a90ef4bf 7292@endif etc
2a4cbe27 7293
a90ef4bf
JM
7294.PHONY: maybe-pdf-etc pdf-etc
7295maybe-pdf-etc:
7296@if etc
7297maybe-pdf-etc: pdf-etc
56a8fe78 7298
a90ef4bf
JM
7299pdf-etc: \
7300 configure-etc
56a8fe78 7301 @: $(MAKE); $(unstage)
a90ef4bf 7302 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7303 r=`${PWD_COMMAND}`; export r; \
7304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7305 $(HOST_EXPORTS) \
7306 for flag in $(EXTRA_HOST_FLAGS) ; do \
7307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7308 done; \
22121df0 7309 echo "Doing pdf in etc"; \
a90ef4bf 7310 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7313 "RANLIB=$${RANLIB}" \
0c24b341 7314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7315 pdf) \
7316 || exit 1
7317
a90ef4bf 7318@endif etc
56a8fe78 7319
a90ef4bf
JM
7320.PHONY: maybe-html-etc html-etc
7321maybe-html-etc:
7322@if etc
7323maybe-html-etc: html-etc
6d389afc 7324
a90ef4bf
JM
7325html-etc: \
7326 configure-etc
0aed8855 7327 @: $(MAKE); $(unstage)
a90ef4bf 7328 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7329 r=`${PWD_COMMAND}`; export r; \
7330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7331 $(HOST_EXPORTS) \
7332 for flag in $(EXTRA_HOST_FLAGS) ; do \
7333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7334 done; \
22121df0 7335 echo "Doing html in etc"; \
a90ef4bf 7336 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7339 "RANLIB=$${RANLIB}" \
0c24b341 7340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7341 html) \
7342 || exit 1
7343
a90ef4bf 7344@endif etc
6d389afc 7345
a90ef4bf
JM
7346.PHONY: maybe-TAGS-etc TAGS-etc
7347maybe-TAGS-etc:
7348@if etc
7349maybe-TAGS-etc: TAGS-etc
2a4cbe27 7350
a90ef4bf
JM
7351TAGS-etc: \
7352 configure-etc
0aed8855 7353 @: $(MAKE); $(unstage)
a90ef4bf 7354 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7355 r=`${PWD_COMMAND}`; export r; \
7356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7357 $(HOST_EXPORTS) \
b813574b 7358 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7360 done; \
22121df0 7361 echo "Doing TAGS in etc"; \
a90ef4bf 7362 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7365 "RANLIB=$${RANLIB}" \
0c24b341 7366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7367 TAGS) \
2a4cbe27
NN
7368 || exit 1
7369
a90ef4bf 7370@endif etc
2a4cbe27 7371
a90ef4bf
JM
7372.PHONY: maybe-install-info-etc install-info-etc
7373maybe-install-info-etc:
7374@if etc
7375maybe-install-info-etc: install-info-etc
2a4cbe27 7376
a90ef4bf
JM
7377install-info-etc: \
7378 configure-etc \
7379 info-etc
0aed8855 7380 @: $(MAKE); $(unstage)
a90ef4bf 7381 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7382 r=`${PWD_COMMAND}`; export r; \
7383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7384 $(HOST_EXPORTS) \
b813574b 7385 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7387 done; \
22121df0 7388 echo "Doing install-info in etc"; \
a90ef4bf 7389 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7392 "RANLIB=$${RANLIB}" \
0c24b341 7393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7394 install-info) \
2a4cbe27
NN
7395 || exit 1
7396
a90ef4bf 7397@endif etc
2a4cbe27 7398
a90ef4bf
JM
7399.PHONY: maybe-install-pdf-etc install-pdf-etc
7400maybe-install-pdf-etc:
7401@if etc
7402maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7403
a90ef4bf
JM
7404install-pdf-etc: \
7405 configure-etc \
7406 pdf-etc
a3ca38d2 7407 @: $(MAKE); $(unstage)
a90ef4bf 7408 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7409 r=`${PWD_COMMAND}`; export r; \
7410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7411 $(HOST_EXPORTS) \
7412 for flag in $(EXTRA_HOST_FLAGS) ; do \
7413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7414 done; \
22121df0 7415 echo "Doing install-pdf in etc"; \
a90ef4bf 7416 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7419 "RANLIB=$${RANLIB}" \
0c24b341 7420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7421 install-pdf) \
7422 || exit 1
7423
a90ef4bf 7424@endif etc
a3ca38d2 7425
a90ef4bf
JM
7426.PHONY: maybe-install-html-etc install-html-etc
7427maybe-install-html-etc:
7428@if etc
7429maybe-install-html-etc: install-html-etc
108a6f8e 7430
a90ef4bf
JM
7431install-html-etc: \
7432 configure-etc \
7433 html-etc
108a6f8e 7434 @: $(MAKE); $(unstage)
a90ef4bf 7435 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7436 r=`${PWD_COMMAND}`; export r; \
7437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7438 $(HOST_EXPORTS) \
7439 for flag in $(EXTRA_HOST_FLAGS) ; do \
7440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7441 done; \
22121df0 7442 echo "Doing install-html in etc"; \
a90ef4bf 7443 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7446 "RANLIB=$${RANLIB}" \
0c24b341 7447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7448 install-html) \
7449 || exit 1
7450
a90ef4bf 7451@endif etc
108a6f8e 7452
a90ef4bf
JM
7453.PHONY: maybe-installcheck-etc installcheck-etc
7454maybe-installcheck-etc:
7455@if etc
7456maybe-installcheck-etc: installcheck-etc
2a4cbe27 7457
a90ef4bf
JM
7458installcheck-etc: \
7459 configure-etc
0aed8855 7460 @: $(MAKE); $(unstage)
a90ef4bf 7461 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7462 r=`${PWD_COMMAND}`; export r; \
7463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7464 $(HOST_EXPORTS) \
b813574b 7465 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7467 done; \
22121df0 7468 echo "Doing installcheck in etc"; \
a90ef4bf 7469 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7472 "RANLIB=$${RANLIB}" \
0c24b341 7473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7474 installcheck) \
2a4cbe27
NN
7475 || exit 1
7476
a90ef4bf 7477@endif etc
2a4cbe27 7478
a90ef4bf
JM
7479.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7480maybe-mostlyclean-etc:
7481@if etc
7482maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7483
a90ef4bf 7484mostlyclean-etc:
0aed8855 7485 @: $(MAKE); $(unstage)
a90ef4bf 7486 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7487 r=`${PWD_COMMAND}`; export r; \
7488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7489 $(HOST_EXPORTS) \
b813574b 7490 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7492 done; \
22121df0 7493 echo "Doing mostlyclean in etc"; \
a90ef4bf 7494 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7497 "RANLIB=$${RANLIB}" \
0c24b341 7498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7499 mostlyclean) \
2a4cbe27
NN
7500 || exit 1
7501
a90ef4bf 7502@endif etc
2a4cbe27 7503
a90ef4bf
JM
7504.PHONY: maybe-clean-etc clean-etc
7505maybe-clean-etc:
7506@if etc
7507maybe-clean-etc: clean-etc
2a4cbe27 7508
a90ef4bf 7509clean-etc:
0aed8855 7510 @: $(MAKE); $(unstage)
a90ef4bf 7511 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7512 r=`${PWD_COMMAND}`; export r; \
7513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7514 $(HOST_EXPORTS) \
b813574b 7515 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7517 done; \
22121df0 7518 echo "Doing clean in etc"; \
a90ef4bf 7519 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7522 "RANLIB=$${RANLIB}" \
0c24b341 7523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7524 clean) \
2a4cbe27
NN
7525 || exit 1
7526
a90ef4bf 7527@endif etc
2a4cbe27 7528
a90ef4bf
JM
7529.PHONY: maybe-distclean-etc distclean-etc
7530maybe-distclean-etc:
7531@if etc
7532maybe-distclean-etc: distclean-etc
2a4cbe27 7533
a90ef4bf 7534distclean-etc:
0aed8855 7535 @: $(MAKE); $(unstage)
a90ef4bf 7536 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7537 r=`${PWD_COMMAND}`; export r; \
7538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7539 $(HOST_EXPORTS) \
b813574b 7540 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7542 done; \
22121df0 7543 echo "Doing distclean in etc"; \
a90ef4bf 7544 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7547 "RANLIB=$${RANLIB}" \
0c24b341 7548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7549 distclean) \
2a4cbe27
NN
7550 || exit 1
7551
a90ef4bf 7552@endif etc
2a4cbe27 7553
a90ef4bf
JM
7554.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7555maybe-maintainer-clean-etc:
7556@if etc
7557maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7558
a90ef4bf 7559maintainer-clean-etc:
0aed8855 7560 @: $(MAKE); $(unstage)
a90ef4bf 7561 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7562 r=`${PWD_COMMAND}`; export r; \
7563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7564 $(HOST_EXPORTS) \
b813574b 7565 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7567 done; \
22121df0 7568 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7569 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7572 "RANLIB=$${RANLIB}" \
0c24b341 7573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7574 maintainer-clean) \
2a4cbe27
NN
7575 || exit 1
7576
a90ef4bf 7577@endif etc
2a4cbe27 7578
2a4cbe27 7579
a7254363 7580
a90ef4bf
JM
7581.PHONY: configure-fastjar maybe-configure-fastjar
7582maybe-configure-fastjar:
4f0ef2d8 7583@if gcc-bootstrap
a90ef4bf 7584configure-fastjar: stage_current
4f0ef2d8 7585@endif gcc-bootstrap
a90ef4bf
JM
7586@if fastjar
7587maybe-configure-fastjar: configure-fastjar
7588configure-fastjar:
0aed8855 7589 @: $(MAKE); $(unstage)
c52c6897 7590 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7592 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7593 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7594 $(HOST_EXPORTS) \
a90ef4bf
JM
7595 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7596 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7597 case $(srcdir) in \
b00612cc 7598 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7599 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7600 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7601 esac; \
1b6c0831
L
7602 module_srcdir=fastjar; \
7603 $(SHELL) \
7604 $$s/$$module_srcdir/configure \
7605 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7606 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7607 --target=${target_alias} \
4fa63067 7608 || exit 1
a90ef4bf 7609@endif fastjar
4fa63067 7610
a7254363
PB
7611
7612
d545f33b
PB
7613
7614
a90ef4bf
JM
7615.PHONY: all-fastjar maybe-all-fastjar
7616maybe-all-fastjar:
4f0ef2d8 7617@if gcc-bootstrap
a90ef4bf 7618all-fastjar: stage_current
4f0ef2d8 7619@endif gcc-bootstrap
a90ef4bf
JM
7620@if fastjar
7621TARGET-fastjar=all
7622maybe-all-fastjar: all-fastjar
7623all-fastjar: configure-fastjar
0aed8855 7624 @: $(MAKE); $(unstage)
4fa63067
NN
7625 @r=`${PWD_COMMAND}`; export r; \
7626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7627 $(HOST_EXPORTS) \
a90ef4bf 7628 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7629 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7630 $(TARGET-fastjar))
7631@endif fastjar
4fa63067 7632
a7254363 7633
d545f33b
PB
7634
7635
a90ef4bf
JM
7636.PHONY: check-fastjar maybe-check-fastjar
7637maybe-check-fastjar:
7638@if fastjar
7639maybe-check-fastjar: check-fastjar
4fa63067
NN
7640
7641# This module is only tested in a native toolchain.
a90ef4bf 7642check-fastjar:
0aed8855 7643 @: $(MAKE); $(unstage)
22121df0 7644 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7645 r=`${PWD_COMMAND}`; export r; \
7646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7647 $(HOST_EXPORTS) \
a90ef4bf 7648 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7649 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7650 fi
7651
a90ef4bf 7652@endif fastjar
4fa63067 7653
a90ef4bf
JM
7654.PHONY: install-fastjar maybe-install-fastjar
7655maybe-install-fastjar:
7656@if fastjar
7657maybe-install-fastjar: install-fastjar
4fa63067 7658
a90ef4bf 7659install-fastjar: installdirs
0aed8855 7660 @: $(MAKE); $(unstage)
4fa63067
NN
7661 @r=`${PWD_COMMAND}`; export r; \
7662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7663 $(HOST_EXPORTS) \
a90ef4bf 7664 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7665 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7666
a90ef4bf 7667@endif fastjar
4fa63067 7668
a90ef4bf
JM
7669.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7670maybe-install-strip-fastjar:
7671@if fastjar
7672maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7673
a90ef4bf 7674install-strip-fastjar: installdirs
9b980aa1
RW
7675 @: $(MAKE); $(unstage)
7676 @r=`${PWD_COMMAND}`; export r; \
7677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7678 $(HOST_EXPORTS) \
a90ef4bf 7679 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7680 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7681
a90ef4bf 7682@endif fastjar
9b980aa1 7683
56a8fe78 7684# Other targets (info, dvi, pdf, etc.)
4fa63067 7685
a90ef4bf
JM
7686.PHONY: maybe-info-fastjar info-fastjar
7687maybe-info-fastjar:
7688@if fastjar
7689maybe-info-fastjar: info-fastjar
4fa63067 7690
a90ef4bf
JM
7691info-fastjar: \
7692 configure-fastjar
0aed8855 7693 @: $(MAKE); $(unstage)
a90ef4bf 7694 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7695 r=`${PWD_COMMAND}`; export r; \
7696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7697 $(HOST_EXPORTS) \
b813574b 7698 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7700 done; \
22121df0 7701 echo "Doing info in fastjar"; \
a90ef4bf 7702 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7705 "RANLIB=$${RANLIB}" \
0c24b341 7706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7707 info) \
2a4cbe27
NN
7708 || exit 1
7709
a90ef4bf 7710@endif fastjar
2a4cbe27 7711
a90ef4bf
JM
7712.PHONY: maybe-dvi-fastjar dvi-fastjar
7713maybe-dvi-fastjar:
7714@if fastjar
7715maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7716
a90ef4bf
JM
7717dvi-fastjar: \
7718 configure-fastjar
0aed8855 7719 @: $(MAKE); $(unstage)
a90ef4bf 7720 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7721 r=`${PWD_COMMAND}`; export r; \
7722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7723 $(HOST_EXPORTS) \
b813574b 7724 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7726 done; \
22121df0 7727 echo "Doing dvi in fastjar"; \
a90ef4bf 7728 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7731 "RANLIB=$${RANLIB}" \
0c24b341 7732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7733 dvi) \
2a4cbe27
NN
7734 || exit 1
7735
a90ef4bf 7736@endif fastjar
2a4cbe27 7737
a90ef4bf
JM
7738.PHONY: maybe-pdf-fastjar pdf-fastjar
7739maybe-pdf-fastjar:
7740@if fastjar
7741maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7742
a90ef4bf
JM
7743pdf-fastjar: \
7744 configure-fastjar
56a8fe78 7745 @: $(MAKE); $(unstage)
a90ef4bf 7746 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7747 r=`${PWD_COMMAND}`; export r; \
7748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7749 $(HOST_EXPORTS) \
7750 for flag in $(EXTRA_HOST_FLAGS) ; do \
7751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7752 done; \
22121df0 7753 echo "Doing pdf in fastjar"; \
a90ef4bf 7754 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7757 "RANLIB=$${RANLIB}" \
0c24b341 7758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7759 pdf) \
7760 || exit 1
7761
a90ef4bf 7762@endif fastjar
56a8fe78 7763
a90ef4bf
JM
7764.PHONY: maybe-html-fastjar html-fastjar
7765maybe-html-fastjar:
7766@if fastjar
7767maybe-html-fastjar: html-fastjar
6d389afc 7768
a90ef4bf
JM
7769html-fastjar: \
7770 configure-fastjar
0aed8855 7771 @: $(MAKE); $(unstage)
a90ef4bf 7772 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7773 r=`${PWD_COMMAND}`; export r; \
7774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7775 $(HOST_EXPORTS) \
7776 for flag in $(EXTRA_HOST_FLAGS) ; do \
7777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7778 done; \
22121df0 7779 echo "Doing html in fastjar"; \
a90ef4bf 7780 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7783 "RANLIB=$${RANLIB}" \
0c24b341 7784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7785 html) \
7786 || exit 1
7787
a90ef4bf 7788@endif fastjar
6d389afc 7789
a90ef4bf
JM
7790.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7791maybe-TAGS-fastjar:
7792@if fastjar
7793maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7794
a90ef4bf
JM
7795TAGS-fastjar: \
7796 configure-fastjar
0aed8855 7797 @: $(MAKE); $(unstage)
a90ef4bf 7798 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7799 r=`${PWD_COMMAND}`; export r; \
7800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7801 $(HOST_EXPORTS) \
b813574b 7802 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7804 done; \
22121df0 7805 echo "Doing TAGS in fastjar"; \
a90ef4bf 7806 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7809 "RANLIB=$${RANLIB}" \
0c24b341 7810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7811 TAGS) \
2a4cbe27
NN
7812 || exit 1
7813
a90ef4bf 7814@endif fastjar
2a4cbe27 7815
a90ef4bf
JM
7816.PHONY: maybe-install-info-fastjar install-info-fastjar
7817maybe-install-info-fastjar:
7818@if fastjar
7819maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7820
a90ef4bf
JM
7821install-info-fastjar: \
7822 configure-fastjar \
7823 info-fastjar
0aed8855 7824 @: $(MAKE); $(unstage)
a90ef4bf 7825 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7826 r=`${PWD_COMMAND}`; export r; \
7827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7828 $(HOST_EXPORTS) \
b813574b 7829 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7831 done; \
22121df0 7832 echo "Doing install-info in fastjar"; \
a90ef4bf 7833 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7836 "RANLIB=$${RANLIB}" \
0c24b341 7837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7838 install-info) \
2a4cbe27
NN
7839 || exit 1
7840
a90ef4bf 7841@endif fastjar
2a4cbe27 7842
a90ef4bf
JM
7843.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7844maybe-install-pdf-fastjar:
7845@if fastjar
7846maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7847
a90ef4bf
JM
7848install-pdf-fastjar: \
7849 configure-fastjar \
7850 pdf-fastjar
a3ca38d2 7851 @: $(MAKE); $(unstage)
a90ef4bf 7852 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7853 r=`${PWD_COMMAND}`; export r; \
7854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7855 $(HOST_EXPORTS) \
7856 for flag in $(EXTRA_HOST_FLAGS) ; do \
7857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7858 done; \
22121df0 7859 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7860 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7863 "RANLIB=$${RANLIB}" \
0c24b341 7864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7865 install-pdf) \
7866 || exit 1
7867
a90ef4bf 7868@endif fastjar
a3ca38d2 7869
a90ef4bf
JM
7870.PHONY: maybe-install-html-fastjar install-html-fastjar
7871maybe-install-html-fastjar:
7872@if fastjar
7873maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7874
a90ef4bf
JM
7875install-html-fastjar: \
7876 configure-fastjar \
7877 html-fastjar
108a6f8e 7878 @: $(MAKE); $(unstage)
a90ef4bf 7879 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7880 r=`${PWD_COMMAND}`; export r; \
7881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7882 $(HOST_EXPORTS) \
7883 for flag in $(EXTRA_HOST_FLAGS) ; do \
7884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7885 done; \
22121df0 7886 echo "Doing install-html in fastjar"; \
a90ef4bf 7887 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7890 "RANLIB=$${RANLIB}" \
0c24b341 7891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7892 install-html) \
7893 || exit 1
7894
a90ef4bf 7895@endif fastjar
108a6f8e 7896
a90ef4bf
JM
7897.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7898maybe-installcheck-fastjar:
7899@if fastjar
7900maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7901
a90ef4bf
JM
7902installcheck-fastjar: \
7903 configure-fastjar
0aed8855 7904 @: $(MAKE); $(unstage)
a90ef4bf 7905 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7906 r=`${PWD_COMMAND}`; export r; \
7907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7908 $(HOST_EXPORTS) \
b813574b 7909 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7911 done; \
22121df0 7912 echo "Doing installcheck in fastjar"; \
a90ef4bf 7913 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7916 "RANLIB=$${RANLIB}" \
0c24b341 7917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7918 installcheck) \
2a4cbe27
NN
7919 || exit 1
7920
a90ef4bf 7921@endif fastjar
2a4cbe27 7922
a90ef4bf
JM
7923.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
7924maybe-mostlyclean-fastjar:
7925@if fastjar
7926maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 7927
a90ef4bf 7928mostlyclean-fastjar:
0aed8855 7929 @: $(MAKE); $(unstage)
a90ef4bf 7930 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7931 r=`${PWD_COMMAND}`; export r; \
7932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7933 $(HOST_EXPORTS) \
b813574b 7934 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7936 done; \
22121df0 7937 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 7938 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7941 "RANLIB=$${RANLIB}" \
0c24b341 7942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7943 mostlyclean) \
2a4cbe27
NN
7944 || exit 1
7945
a90ef4bf 7946@endif fastjar
2a4cbe27 7947
a90ef4bf
JM
7948.PHONY: maybe-clean-fastjar clean-fastjar
7949maybe-clean-fastjar:
7950@if fastjar
7951maybe-clean-fastjar: clean-fastjar
2a4cbe27 7952
a90ef4bf 7953clean-fastjar:
0aed8855 7954 @: $(MAKE); $(unstage)
a90ef4bf 7955 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7956 r=`${PWD_COMMAND}`; export r; \
7957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7958 $(HOST_EXPORTS) \
b813574b 7959 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7961 done; \
22121df0 7962 echo "Doing clean in fastjar"; \
a90ef4bf 7963 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7966 "RANLIB=$${RANLIB}" \
0c24b341 7967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7968 clean) \
2a4cbe27
NN
7969 || exit 1
7970
a90ef4bf 7971@endif fastjar
2a4cbe27 7972
a90ef4bf
JM
7973.PHONY: maybe-distclean-fastjar distclean-fastjar
7974maybe-distclean-fastjar:
7975@if fastjar
7976maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 7977
a90ef4bf 7978distclean-fastjar:
0aed8855 7979 @: $(MAKE); $(unstage)
a90ef4bf 7980 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7981 r=`${PWD_COMMAND}`; export r; \
7982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7983 $(HOST_EXPORTS) \
b813574b 7984 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7986 done; \
22121df0 7987 echo "Doing distclean in fastjar"; \
a90ef4bf 7988 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7991 "RANLIB=$${RANLIB}" \
0c24b341 7992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7993 distclean) \
2a4cbe27
NN
7994 || exit 1
7995
a90ef4bf 7996@endif fastjar
2a4cbe27 7997
a90ef4bf
JM
7998.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
7999maybe-maintainer-clean-fastjar:
8000@if fastjar
8001maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
8002
8003maintainer-clean-fastjar:
0aed8855 8004 @: $(MAKE); $(unstage)
a90ef4bf 8005 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8006 r=`${PWD_COMMAND}`; export r; \
8007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8008 $(HOST_EXPORTS) \
b813574b 8009 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8011 done; \
22121df0 8012 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 8013 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8016 "RANLIB=$${RANLIB}" \
0c24b341 8017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8018 maintainer-clean) \
2a4cbe27
NN
8019 || exit 1
8020
a90ef4bf 8021@endif fastjar
2a4cbe27 8022
2a4cbe27 8023
a7254363 8024
a90ef4bf
JM
8025.PHONY: configure-fixincludes maybe-configure-fixincludes
8026maybe-configure-fixincludes:
4f0ef2d8 8027@if gcc-bootstrap
a90ef4bf 8028configure-fixincludes: stage_current
4f0ef2d8 8029@endif gcc-bootstrap
a90ef4bf
JM
8030@if fixincludes
8031maybe-configure-fixincludes: configure-fixincludes
8032configure-fixincludes:
c52c6897 8033 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8035 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8036 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8037 $(HOST_EXPORTS) \
a90ef4bf
JM
8038 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8039 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8040 case $(srcdir) in \
b00612cc 8041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8042 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8044 esac; \
1b6c0831
L
8045 module_srcdir=fixincludes; \
8046 $(SHELL) \
8047 $$s/$$module_srcdir/configure \
8048 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8049 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8050 --target=${target_alias} \
4fa63067 8051 || exit 1
a90ef4bf 8052@endif fixincludes
4fa63067 8053
a7254363
PB
8054
8055
201f096f 8056.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8057maybe-configure-stage1-fixincludes:
8058@if fixincludes-bootstrap
8059maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8060configure-stage1-fixincludes:
8061 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8062 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8063 @r=`${PWD_COMMAND}`; export r; \
8064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8065 TFLAGS="$(STAGE1_TFLAGS)"; \
8066 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8067 $(HOST_EXPORTS) \
8068 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8069 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8070 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8071 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8072 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8073 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8074 case $(srcdir) in \
8075 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8076 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8077 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8078 esac; \
1b6c0831
L
8079 module_srcdir=fixincludes; \
8080 $(SHELL) $$s/$$module_srcdir/configure \
8081 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8082 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8083 --target=${target_alias} \
8084 \
201f096f 8085 $(STAGE1_CONFIGURE_FLAGS)
8086@endif fixincludes-bootstrap
8087
8088.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8089maybe-configure-stage2-fixincludes:
8090@if fixincludes-bootstrap
8091maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8092configure-stage2-fixincludes:
8093 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8094 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8095 @r=`${PWD_COMMAND}`; export r; \
8096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8097 TFLAGS="$(STAGE2_TFLAGS)"; \
8098 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8099 $(HOST_EXPORTS) \
8100 $(POSTSTAGE1_HOST_EXPORTS) \
8101 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8102 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8103 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8104 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8105 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8106 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8107 case $(srcdir) in \
8108 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8109 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8110 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8111 esac; \
1b6c0831
L
8112 module_srcdir=fixincludes; \
8113 $(SHELL) $$s/$$module_srcdir/configure \
8114 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8115 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8116 --target=${target_alias} \
22121df0 8117 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8118 $(STAGE2_CONFIGURE_FLAGS)
8119@endif fixincludes-bootstrap
8120
8121.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8122maybe-configure-stage3-fixincludes:
8123@if fixincludes-bootstrap
8124maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8125configure-stage3-fixincludes:
8126 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8127 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8128 @r=`${PWD_COMMAND}`; export r; \
8129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8130 TFLAGS="$(STAGE3_TFLAGS)"; \
8131 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8132 $(HOST_EXPORTS) \
8133 $(POSTSTAGE1_HOST_EXPORTS) \
8134 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8135 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8136 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8137 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8138 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8139 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8140 case $(srcdir) in \
8141 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8142 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8143 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8144 esac; \
1b6c0831
L
8145 module_srcdir=fixincludes; \
8146 $(SHELL) $$s/$$module_srcdir/configure \
8147 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8148 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8149 --target=${target_alias} \
22121df0 8150 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8151 $(STAGE3_CONFIGURE_FLAGS)
8152@endif fixincludes-bootstrap
8153
8154.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8155maybe-configure-stage4-fixincludes:
8156@if fixincludes-bootstrap
8157maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8158configure-stage4-fixincludes:
8159 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8160 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8161 @r=`${PWD_COMMAND}`; export r; \
8162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8163 TFLAGS="$(STAGE4_TFLAGS)"; \
8164 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8165 $(HOST_EXPORTS) \
8166 $(POSTSTAGE1_HOST_EXPORTS) \
8167 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8168 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8169 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8170 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8171 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8172 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8173 case $(srcdir) in \
8174 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8175 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8176 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8177 esac; \
1b6c0831
L
8178 module_srcdir=fixincludes; \
8179 $(SHELL) $$s/$$module_srcdir/configure \
8180 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8181 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8182 --target=${target_alias} \
22121df0 8183 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8184 $(STAGE4_CONFIGURE_FLAGS)
8185@endif fixincludes-bootstrap
8186
8187.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8188maybe-configure-stageprofile-fixincludes:
8189@if fixincludes-bootstrap
8190maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8191configure-stageprofile-fixincludes:
8192 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8193 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8194 @r=`${PWD_COMMAND}`; export r; \
8195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8196 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8197 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8198 $(HOST_EXPORTS) \
8199 $(POSTSTAGE1_HOST_EXPORTS) \
8200 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8201 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8202 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8203 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8204 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8205 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8206 case $(srcdir) in \
8207 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8208 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8209 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8210 esac; \
1b6c0831
L
8211 module_srcdir=fixincludes; \
8212 $(SHELL) $$s/$$module_srcdir/configure \
8213 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8214 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8215 --target=${target_alias} \
22121df0 8216 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8217 $(STAGEprofile_CONFIGURE_FLAGS)
8218@endif fixincludes-bootstrap
8219
8220.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8221maybe-configure-stagefeedback-fixincludes:
8222@if fixincludes-bootstrap
8223maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8224configure-stagefeedback-fixincludes:
8225 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8226 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8227 @r=`${PWD_COMMAND}`; export r; \
8228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8229 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8230 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8231 $(HOST_EXPORTS) \
8232 $(POSTSTAGE1_HOST_EXPORTS) \
8233 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8234 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8235 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8236 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8237 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8238 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8239 case $(srcdir) in \
8240 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8241 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8242 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8243 esac; \
1b6c0831
L
8244 module_srcdir=fixincludes; \
8245 $(SHELL) $$s/$$module_srcdir/configure \
8246 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8247 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8248 --target=${target_alias} \
22121df0 8249 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8250 $(STAGEfeedback_CONFIGURE_FLAGS)
8251@endif fixincludes-bootstrap
8252
8253
8254
d545f33b
PB
8255
8256
a90ef4bf
JM
8257.PHONY: all-fixincludes maybe-all-fixincludes
8258maybe-all-fixincludes:
4f0ef2d8 8259@if gcc-bootstrap
a90ef4bf 8260all-fixincludes: stage_current
4f0ef2d8 8261@endif gcc-bootstrap
a90ef4bf
JM
8262@if fixincludes
8263TARGET-fixincludes=all
8264maybe-all-fixincludes: all-fixincludes
8265all-fixincludes: configure-fixincludes
4fa63067
NN
8266 @r=`${PWD_COMMAND}`; export r; \
8267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8268 $(HOST_EXPORTS) \
a90ef4bf 8269 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8270 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8271 $(TARGET-fixincludes))
8272@endif fixincludes
4fa63067 8273
a7254363 8274
d545f33b 8275
201f096f 8276.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8277.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8278maybe-all-stage1-fixincludes:
8279maybe-clean-stage1-fixincludes:
8280@if fixincludes-bootstrap
8281maybe-all-stage1-fixincludes: all-stage1-fixincludes
8282all-stage1: all-stage1-fixincludes
8283TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8284all-stage1-fixincludes: configure-stage1-fixincludes
8285 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8286 @r=`${PWD_COMMAND}`; export r; \
8287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8288 TFLAGS="$(STAGE1_TFLAGS)"; \
8289 $(HOST_EXPORTS) \
8290 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8291 \
201f096f 8292 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8293 CFLAGS="$(STAGE1_CFLAGS)" \
8294 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8295 LIBCFLAGS="$(LIBCFLAGS)" \
8296 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8297 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8298 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8299 $(EXTRA_HOST_FLAGS) \
8300 $(STAGE1_FLAGS_TO_PASS) \
05a13254 8301 TFLAGS="$(STAGE1_TFLAGS)" \
201f096f 8302 $(TARGET-stage1-fixincludes)
8303
8304maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8305clean-stage1: clean-stage1-fixincludes
8306clean-stage1-fixincludes:
8307 @if [ $(current_stage) = stage1 ]; then \
8308 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8309 else \
8310 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8311 $(MAKE) stage1-start; \
8312 fi; \
8313 cd $(HOST_SUBDIR)/fixincludes && \
8314 $(MAKE) $(EXTRA_HOST_FLAGS) \
8315 $(STAGE1_FLAGS_TO_PASS) clean
8316@endif fixincludes-bootstrap
8317
8318
8319.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8320.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8321maybe-all-stage2-fixincludes:
8322maybe-clean-stage2-fixincludes:
8323@if fixincludes-bootstrap
8324maybe-all-stage2-fixincludes: all-stage2-fixincludes
8325all-stage2: all-stage2-fixincludes
8326TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8327all-stage2-fixincludes: configure-stage2-fixincludes
8328 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8329 @r=`${PWD_COMMAND}`; export r; \
8330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8331 TFLAGS="$(STAGE2_TFLAGS)"; \
8332 $(HOST_EXPORTS) \
8333 $(POSTSTAGE1_HOST_EXPORTS) \
8334 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8335 \
201f096f 8336 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8337 CFLAGS="$(STAGE2_CFLAGS)" \
8338 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8339 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8340 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8341 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8342 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8343 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8344 TFLAGS="$(STAGE2_TFLAGS)" \
201f096f 8345 $(TARGET-stage2-fixincludes)
8346
8347maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8348clean-stage2: clean-stage2-fixincludes
8349clean-stage2-fixincludes:
8350 @if [ $(current_stage) = stage2 ]; then \
8351 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8352 else \
8353 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8354 $(MAKE) stage2-start; \
8355 fi; \
8356 cd $(HOST_SUBDIR)/fixincludes && \
8357 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8358@endif fixincludes-bootstrap
8359
8360
8361.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8362.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8363maybe-all-stage3-fixincludes:
8364maybe-clean-stage3-fixincludes:
8365@if fixincludes-bootstrap
8366maybe-all-stage3-fixincludes: all-stage3-fixincludes
8367all-stage3: all-stage3-fixincludes
8368TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8369all-stage3-fixincludes: configure-stage3-fixincludes
8370 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8371 @r=`${PWD_COMMAND}`; export r; \
8372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8373 TFLAGS="$(STAGE3_TFLAGS)"; \
8374 $(HOST_EXPORTS) \
8375 $(POSTSTAGE1_HOST_EXPORTS) \
8376 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8377 \
201f096f 8378 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8379 CFLAGS="$(STAGE3_CFLAGS)" \
8380 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8381 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8382 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8383 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8384 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8385 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8386 TFLAGS="$(STAGE3_TFLAGS)" \
201f096f 8387 $(TARGET-stage3-fixincludes)
8388
8389maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8390clean-stage3: clean-stage3-fixincludes
8391clean-stage3-fixincludes:
8392 @if [ $(current_stage) = stage3 ]; then \
8393 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8394 else \
8395 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8396 $(MAKE) stage3-start; \
8397 fi; \
8398 cd $(HOST_SUBDIR)/fixincludes && \
8399 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8400@endif fixincludes-bootstrap
8401
8402
8403.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8404.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8405maybe-all-stage4-fixincludes:
8406maybe-clean-stage4-fixincludes:
8407@if fixincludes-bootstrap
8408maybe-all-stage4-fixincludes: all-stage4-fixincludes
8409all-stage4: all-stage4-fixincludes
8410TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8411all-stage4-fixincludes: configure-stage4-fixincludes
8412 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8413 @r=`${PWD_COMMAND}`; export r; \
8414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8415 TFLAGS="$(STAGE4_TFLAGS)"; \
8416 $(HOST_EXPORTS) \
8417 $(POSTSTAGE1_HOST_EXPORTS) \
8418 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8419 \
201f096f 8420 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8421 CFLAGS="$(STAGE4_CFLAGS)" \
8422 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8423 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8424 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8425 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8426 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8427 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8428 TFLAGS="$(STAGE4_TFLAGS)" \
201f096f 8429 $(TARGET-stage4-fixincludes)
8430
8431maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8432clean-stage4: clean-stage4-fixincludes
8433clean-stage4-fixincludes:
8434 @if [ $(current_stage) = stage4 ]; then \
8435 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8436 else \
8437 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8438 $(MAKE) stage4-start; \
8439 fi; \
8440 cd $(HOST_SUBDIR)/fixincludes && \
8441 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8442@endif fixincludes-bootstrap
8443
8444
8445.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8446.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8447maybe-all-stageprofile-fixincludes:
8448maybe-clean-stageprofile-fixincludes:
8449@if fixincludes-bootstrap
8450maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8451all-stageprofile: all-stageprofile-fixincludes
8452TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8453all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8454 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8455 @r=`${PWD_COMMAND}`; export r; \
8456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8457 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8458 $(HOST_EXPORTS) \
8459 $(POSTSTAGE1_HOST_EXPORTS) \
8460 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8461 \
201f096f 8462 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8463 CFLAGS="$(STAGEprofile_CFLAGS)" \
8464 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8465 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8466 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8467 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8468 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8469 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8470 TFLAGS="$(STAGEprofile_TFLAGS)" \
201f096f 8471 $(TARGET-stageprofile-fixincludes)
8472
8473maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8474clean-stageprofile: clean-stageprofile-fixincludes
8475clean-stageprofile-fixincludes:
8476 @if [ $(current_stage) = stageprofile ]; then \
8477 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8478 else \
8479 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8480 $(MAKE) stageprofile-start; \
8481 fi; \
8482 cd $(HOST_SUBDIR)/fixincludes && \
8483 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8484@endif fixincludes-bootstrap
8485
8486
8487.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8488.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8489maybe-all-stagefeedback-fixincludes:
8490maybe-clean-stagefeedback-fixincludes:
8491@if fixincludes-bootstrap
8492maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8493all-stagefeedback: all-stagefeedback-fixincludes
8494TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8495all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8496 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8497 @r=`${PWD_COMMAND}`; export r; \
8498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8499 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8500 $(HOST_EXPORTS) \
8501 $(POSTSTAGE1_HOST_EXPORTS) \
8502 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8503 \
201f096f 8504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8505 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8506 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8507 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8508 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8509 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8510 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8511 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8512 TFLAGS="$(STAGEfeedback_TFLAGS)" \
201f096f 8513 $(TARGET-stagefeedback-fixincludes)
8514
8515maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8516clean-stagefeedback: clean-stagefeedback-fixincludes
8517clean-stagefeedback-fixincludes:
8518 @if [ $(current_stage) = stagefeedback ]; then \
8519 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8520 else \
8521 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8522 $(MAKE) stagefeedback-start; \
8523 fi; \
8524 cd $(HOST_SUBDIR)/fixincludes && \
8525 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8526@endif fixincludes-bootstrap
8527
8528
8529
8530
d545f33b 8531
a90ef4bf
JM
8532.PHONY: check-fixincludes maybe-check-fixincludes
8533maybe-check-fixincludes:
8534@if fixincludes
8535maybe-check-fixincludes: check-fixincludes
4fa63067 8536
a90ef4bf 8537check-fixincludes:
0aed8855 8538 @: $(MAKE); $(unstage)
4fa63067
NN
8539 @r=`${PWD_COMMAND}`; export r; \
8540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8541 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8542 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8543 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8544
a90ef4bf 8545@endif fixincludes
4fa63067 8546
a90ef4bf
JM
8547.PHONY: install-fixincludes maybe-install-fixincludes
8548maybe-install-fixincludes:
8549@if fixincludes
8550maybe-install-fixincludes: install-fixincludes
4fa63067 8551
a90ef4bf 8552install-fixincludes: installdirs
0aed8855 8553 @: $(MAKE); $(unstage)
4fa63067
NN
8554 @r=`${PWD_COMMAND}`; export r; \
8555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8556 $(HOST_EXPORTS) \
a90ef4bf 8557 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8558 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8559
a90ef4bf 8560@endif fixincludes
4fa63067 8561
a90ef4bf
JM
8562.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8563maybe-install-strip-fixincludes:
8564@if fixincludes
8565maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8566
a90ef4bf 8567install-strip-fixincludes: installdirs
9b980aa1
RW
8568 @: $(MAKE); $(unstage)
8569 @r=`${PWD_COMMAND}`; export r; \
8570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8571 $(HOST_EXPORTS) \
a90ef4bf 8572 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8573 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8574
a90ef4bf 8575@endif fixincludes
9b980aa1 8576
56a8fe78 8577# Other targets (info, dvi, pdf, etc.)
4fa63067 8578
a90ef4bf
JM
8579.PHONY: maybe-info-fixincludes info-fixincludes
8580maybe-info-fixincludes:
8581@if fixincludes
8582maybe-info-fixincludes: info-fixincludes
4fa63067 8583
a90ef4bf
JM
8584info-fixincludes: \
8585 configure-fixincludes
a90ef4bf 8586 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8587 r=`${PWD_COMMAND}`; export r; \
8588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8589 $(HOST_EXPORTS) \
b813574b 8590 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8592 done; \
22121df0 8593 echo "Doing info in fixincludes"; \
a90ef4bf 8594 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8597 "RANLIB=$${RANLIB}" \
0c24b341 8598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8599 info) \
2a4cbe27
NN
8600 || exit 1
8601
a90ef4bf 8602@endif fixincludes
2a4cbe27 8603
a90ef4bf
JM
8604.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8605maybe-dvi-fixincludes:
8606@if fixincludes
8607maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8608
a90ef4bf
JM
8609dvi-fixincludes: \
8610 configure-fixincludes
a90ef4bf 8611 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8612 r=`${PWD_COMMAND}`; export r; \
8613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8614 $(HOST_EXPORTS) \
b813574b 8615 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8617 done; \
22121df0 8618 echo "Doing dvi in fixincludes"; \
a90ef4bf 8619 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8622 "RANLIB=$${RANLIB}" \
0c24b341 8623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8624 dvi) \
2a4cbe27
NN
8625 || exit 1
8626
a90ef4bf 8627@endif fixincludes
2a4cbe27 8628
a90ef4bf
JM
8629.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8630maybe-pdf-fixincludes:
8631@if fixincludes
8632maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8633
a90ef4bf
JM
8634pdf-fixincludes: \
8635 configure-fixincludes
a90ef4bf 8636 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8637 r=`${PWD_COMMAND}`; export r; \
8638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8639 $(HOST_EXPORTS) \
8640 for flag in $(EXTRA_HOST_FLAGS) ; do \
8641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8642 done; \
22121df0 8643 echo "Doing pdf in fixincludes"; \
a90ef4bf 8644 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8647 "RANLIB=$${RANLIB}" \
0c24b341 8648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8649 pdf) \
8650 || exit 1
8651
a90ef4bf 8652@endif fixincludes
56a8fe78 8653
a90ef4bf
JM
8654.PHONY: maybe-html-fixincludes html-fixincludes
8655maybe-html-fixincludes:
8656@if fixincludes
8657maybe-html-fixincludes: html-fixincludes
6d389afc 8658
a90ef4bf
JM
8659html-fixincludes: \
8660 configure-fixincludes
a90ef4bf 8661 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8662 r=`${PWD_COMMAND}`; export r; \
8663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8664 $(HOST_EXPORTS) \
8665 for flag in $(EXTRA_HOST_FLAGS) ; do \
8666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8667 done; \
22121df0 8668 echo "Doing html in fixincludes"; \
a90ef4bf 8669 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8672 "RANLIB=$${RANLIB}" \
0c24b341 8673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8674 html) \
8675 || exit 1
8676
a90ef4bf 8677@endif fixincludes
6d389afc 8678
a90ef4bf
JM
8679.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8680maybe-TAGS-fixincludes:
8681@if fixincludes
8682maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8683
a90ef4bf
JM
8684# fixincludes doesn't support TAGS.
8685TAGS-fixincludes:
2a4cbe27 8686
a90ef4bf 8687@endif fixincludes
2a4cbe27 8688
a90ef4bf
JM
8689.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8690maybe-install-info-fixincludes:
8691@if fixincludes
8692maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8693
a90ef4bf
JM
8694install-info-fixincludes: \
8695 configure-fixincludes \
8696 info-fixincludes
a90ef4bf 8697 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8698 r=`${PWD_COMMAND}`; export r; \
8699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8700 $(HOST_EXPORTS) \
b813574b 8701 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8703 done; \
22121df0 8704 echo "Doing install-info in fixincludes"; \
a90ef4bf 8705 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8708 "RANLIB=$${RANLIB}" \
0c24b341 8709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8710 install-info) \
2a4cbe27
NN
8711 || exit 1
8712
a90ef4bf 8713@endif fixincludes
2a4cbe27 8714
a90ef4bf
JM
8715.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8716maybe-install-pdf-fixincludes:
8717@if fixincludes
8718maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8719
a90ef4bf
JM
8720install-pdf-fixincludes: \
8721 configure-fixincludes \
8722 pdf-fixincludes
a90ef4bf 8723 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8724 r=`${PWD_COMMAND}`; export r; \
8725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8726 $(HOST_EXPORTS) \
8727 for flag in $(EXTRA_HOST_FLAGS) ; do \
8728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8729 done; \
22121df0 8730 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8731 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8734 "RANLIB=$${RANLIB}" \
0c24b341 8735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8736 install-pdf) \
8737 || exit 1
8738
a90ef4bf 8739@endif fixincludes
a3ca38d2 8740
a90ef4bf
JM
8741.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8742maybe-install-html-fixincludes:
8743@if fixincludes
8744maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8745
a90ef4bf
JM
8746install-html-fixincludes: \
8747 configure-fixincludes \
8748 html-fixincludes
a90ef4bf 8749 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8750 r=`${PWD_COMMAND}`; export r; \
8751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8752 $(HOST_EXPORTS) \
8753 for flag in $(EXTRA_HOST_FLAGS) ; do \
8754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8755 done; \
22121df0 8756 echo "Doing install-html in fixincludes"; \
a90ef4bf 8757 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
8758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8760 "RANLIB=$${RANLIB}" \
0c24b341 8761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
8762 install-html) \
8763 || exit 1
8764
a90ef4bf 8765@endif fixincludes
108a6f8e 8766
a90ef4bf
JM
8767.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8768maybe-installcheck-fixincludes:
8769@if fixincludes
8770maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8771
a90ef4bf
JM
8772installcheck-fixincludes: \
8773 configure-fixincludes
a90ef4bf 8774 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8775 r=`${PWD_COMMAND}`; export r; \
8776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8777 $(HOST_EXPORTS) \
b813574b 8778 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8780 done; \
22121df0 8781 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8782 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8785 "RANLIB=$${RANLIB}" \
0c24b341 8786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8787 installcheck) \
2a4cbe27
NN
8788 || exit 1
8789
a90ef4bf 8790@endif fixincludes
2a4cbe27 8791
a90ef4bf
JM
8792.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8793maybe-mostlyclean-fixincludes:
8794@if fixincludes
8795maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8796
a90ef4bf 8797mostlyclean-fixincludes:
a90ef4bf 8798 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8799 r=`${PWD_COMMAND}`; export r; \
8800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8801 $(HOST_EXPORTS) \
b813574b 8802 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8804 done; \
22121df0 8805 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8806 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8809 "RANLIB=$${RANLIB}" \
0c24b341 8810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8811 mostlyclean) \
2a4cbe27
NN
8812 || exit 1
8813
a90ef4bf 8814@endif fixincludes
2a4cbe27 8815
a90ef4bf
JM
8816.PHONY: maybe-clean-fixincludes clean-fixincludes
8817maybe-clean-fixincludes:
8818@if fixincludes
8819maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8820
a90ef4bf 8821clean-fixincludes:
a90ef4bf 8822 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8823 r=`${PWD_COMMAND}`; export r; \
8824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8825 $(HOST_EXPORTS) \
b813574b 8826 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8828 done; \
22121df0 8829 echo "Doing clean in fixincludes"; \
a90ef4bf 8830 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8833 "RANLIB=$${RANLIB}" \
0c24b341 8834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8835 clean) \
2a4cbe27
NN
8836 || exit 1
8837
a90ef4bf 8838@endif fixincludes
2a4cbe27 8839
a90ef4bf
JM
8840.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8841maybe-distclean-fixincludes:
8842@if fixincludes
8843maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8844
a90ef4bf 8845distclean-fixincludes:
a90ef4bf 8846 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8847 r=`${PWD_COMMAND}`; export r; \
8848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8849 $(HOST_EXPORTS) \
b813574b 8850 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8852 done; \
22121df0 8853 echo "Doing distclean in fixincludes"; \
a90ef4bf 8854 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8857 "RANLIB=$${RANLIB}" \
0c24b341 8858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8859 distclean) \
2a4cbe27
NN
8860 || exit 1
8861
a90ef4bf 8862@endif fixincludes
2a4cbe27 8863
a90ef4bf
JM
8864.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8865maybe-maintainer-clean-fixincludes:
8866@if fixincludes
8867maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8868
a90ef4bf 8869maintainer-clean-fixincludes:
a90ef4bf 8870 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8871 r=`${PWD_COMMAND}`; export r; \
8872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8873 $(HOST_EXPORTS) \
b813574b 8874 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8876 done; \
22121df0 8877 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8878 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8881 "RANLIB=$${RANLIB}" \
0c24b341 8882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8883 maintainer-clean) \
2a4cbe27
NN
8884 || exit 1
8885
a90ef4bf 8886@endif fixincludes
2a4cbe27 8887
2a4cbe27 8888
a7254363 8889
a90ef4bf
JM
8890.PHONY: configure-flex maybe-configure-flex
8891maybe-configure-flex:
f9806fa5 8892@if gcc-bootstrap
a90ef4bf 8893configure-flex: stage_current
f9806fa5 8894@endif gcc-bootstrap
a90ef4bf
JM
8895@if flex
8896maybe-configure-flex: configure-flex
8897configure-flex:
f9806fa5
DE
8898 @: $(MAKE); $(unstage)
8899 @r=`${PWD_COMMAND}`; export r; \
8900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8901 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8902 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 8903 $(HOST_EXPORTS) \
a90ef4bf
JM
8904 echo Configuring in $(HOST_SUBDIR)/flex; \
8905 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
8906 case $(srcdir) in \
8907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8908 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
8909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8910 esac; \
1b6c0831
L
8911 module_srcdir=flex; \
8912 $(SHELL) \
8913 $$s/$$module_srcdir/configure \
8914 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 8915 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8916 --target=${target_alias} \
f9806fa5 8917 || exit 1
a90ef4bf 8918@endif flex
f9806fa5
DE
8919
8920
8921
8922
8923
a90ef4bf
JM
8924.PHONY: all-flex maybe-all-flex
8925maybe-all-flex:
f9806fa5 8926@if gcc-bootstrap
a90ef4bf 8927all-flex: stage_current
f9806fa5 8928@endif gcc-bootstrap
a90ef4bf
JM
8929@if flex
8930TARGET-flex=all
8931maybe-all-flex: all-flex
8932all-flex: configure-flex
f9806fa5
DE
8933 @: $(MAKE); $(unstage)
8934 @r=`${PWD_COMMAND}`; export r; \
8935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8936 $(HOST_EXPORTS) \
a90ef4bf 8937 (cd $(HOST_SUBDIR)/flex && \
b3676d82 8938 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8939 $(TARGET-flex))
8940@endif flex
f9806fa5
DE
8941
8942
8943
8944
a90ef4bf
JM
8945.PHONY: check-flex maybe-check-flex
8946maybe-check-flex:
8947@if flex
8948maybe-check-flex: check-flex
f9806fa5 8949
a90ef4bf
JM
8950# This module is only tested in a native toolchain.
8951check-flex:
f9806fa5 8952 @: $(MAKE); $(unstage)
22121df0 8953 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
8954 r=`${PWD_COMMAND}`; export r; \
8955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8956 $(HOST_EXPORTS) \
a90ef4bf 8957 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 8958 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 8959 fi
f9806fa5 8960
a90ef4bf 8961@endif flex
f9806fa5 8962
a90ef4bf
JM
8963.PHONY: install-flex maybe-install-flex
8964maybe-install-flex:
8965@if flex
8966maybe-install-flex: install-flex
f9806fa5 8967
a90ef4bf 8968install-flex: installdirs
f9806fa5
DE
8969 @: $(MAKE); $(unstage)
8970 @r=`${PWD_COMMAND}`; export r; \
8971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8972 $(HOST_EXPORTS) \
a90ef4bf 8973 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
8974 $(MAKE) $(FLAGS_TO_PASS) install)
8975
a90ef4bf 8976@endif flex
f9806fa5 8977
a90ef4bf
JM
8978.PHONY: install-strip-flex maybe-install-strip-flex
8979maybe-install-strip-flex:
8980@if flex
8981maybe-install-strip-flex: install-strip-flex
9b980aa1 8982
a90ef4bf 8983install-strip-flex: installdirs
9b980aa1
RW
8984 @: $(MAKE); $(unstage)
8985 @r=`${PWD_COMMAND}`; export r; \
8986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8987 $(HOST_EXPORTS) \
a90ef4bf 8988 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
8989 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8990
a90ef4bf 8991@endif flex
9b980aa1 8992
f9806fa5
DE
8993# Other targets (info, dvi, pdf, etc.)
8994
a90ef4bf
JM
8995.PHONY: maybe-info-flex info-flex
8996maybe-info-flex:
8997@if flex
8998maybe-info-flex: info-flex
f9806fa5 8999
a90ef4bf
JM
9000info-flex: \
9001 configure-flex
f9806fa5 9002 @: $(MAKE); $(unstage)
a90ef4bf 9003 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9004 r=`${PWD_COMMAND}`; export r; \
9005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9006 $(HOST_EXPORTS) \
9007 for flag in $(EXTRA_HOST_FLAGS) ; do \
9008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9009 done; \
22121df0 9010 echo "Doing info in flex"; \
a90ef4bf 9011 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9014 "RANLIB=$${RANLIB}" \
9015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9016 info) \
9017 || exit 1
9018
a90ef4bf 9019@endif flex
f9806fa5 9020
a90ef4bf
JM
9021.PHONY: maybe-dvi-flex dvi-flex
9022maybe-dvi-flex:
9023@if flex
9024maybe-dvi-flex: dvi-flex
f9806fa5 9025
a90ef4bf
JM
9026dvi-flex: \
9027 configure-flex
f9806fa5 9028 @: $(MAKE); $(unstage)
a90ef4bf 9029 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9030 r=`${PWD_COMMAND}`; export r; \
9031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9032 $(HOST_EXPORTS) \
9033 for flag in $(EXTRA_HOST_FLAGS) ; do \
9034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9035 done; \
22121df0 9036 echo "Doing dvi in flex"; \
a90ef4bf 9037 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9040 "RANLIB=$${RANLIB}" \
9041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9042 dvi) \
9043 || exit 1
9044
a90ef4bf 9045@endif flex
f9806fa5 9046
a90ef4bf
JM
9047.PHONY: maybe-pdf-flex pdf-flex
9048maybe-pdf-flex:
9049@if flex
9050maybe-pdf-flex: pdf-flex
f9806fa5 9051
a90ef4bf
JM
9052pdf-flex: \
9053 configure-flex
f9806fa5 9054 @: $(MAKE); $(unstage)
a90ef4bf 9055 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9056 r=`${PWD_COMMAND}`; export r; \
9057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9058 $(HOST_EXPORTS) \
9059 for flag in $(EXTRA_HOST_FLAGS) ; do \
9060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9061 done; \
22121df0 9062 echo "Doing pdf in flex"; \
a90ef4bf 9063 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9066 "RANLIB=$${RANLIB}" \
9067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9068 pdf) \
9069 || exit 1
9070
a90ef4bf 9071@endif flex
f9806fa5 9072
a90ef4bf
JM
9073.PHONY: maybe-html-flex html-flex
9074maybe-html-flex:
9075@if flex
9076maybe-html-flex: html-flex
f9806fa5 9077
a90ef4bf
JM
9078html-flex: \
9079 configure-flex
f9806fa5 9080 @: $(MAKE); $(unstage)
a90ef4bf 9081 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9082 r=`${PWD_COMMAND}`; export r; \
9083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9084 $(HOST_EXPORTS) \
9085 for flag in $(EXTRA_HOST_FLAGS) ; do \
9086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9087 done; \
22121df0 9088 echo "Doing html in flex"; \
a90ef4bf 9089 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9092 "RANLIB=$${RANLIB}" \
9093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9094 html) \
9095 || exit 1
9096
a90ef4bf 9097@endif flex
f9806fa5 9098
a90ef4bf
JM
9099.PHONY: maybe-TAGS-flex TAGS-flex
9100maybe-TAGS-flex:
9101@if flex
9102maybe-TAGS-flex: TAGS-flex
f9806fa5 9103
a90ef4bf
JM
9104TAGS-flex: \
9105 configure-flex
f9806fa5 9106 @: $(MAKE); $(unstage)
a90ef4bf 9107 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9108 r=`${PWD_COMMAND}`; export r; \
9109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9110 $(HOST_EXPORTS) \
9111 for flag in $(EXTRA_HOST_FLAGS) ; do \
9112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9113 done; \
22121df0 9114 echo "Doing TAGS in flex"; \
a90ef4bf 9115 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9118 "RANLIB=$${RANLIB}" \
9119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9120 TAGS) \
9121 || exit 1
9122
a90ef4bf 9123@endif flex
f9806fa5 9124
a90ef4bf
JM
9125.PHONY: maybe-install-info-flex install-info-flex
9126maybe-install-info-flex:
9127@if flex
9128maybe-install-info-flex: install-info-flex
f9806fa5 9129
a90ef4bf
JM
9130install-info-flex: \
9131 configure-flex \
9132 info-flex
f9806fa5 9133 @: $(MAKE); $(unstage)
a90ef4bf 9134 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9135 r=`${PWD_COMMAND}`; export r; \
9136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9137 $(HOST_EXPORTS) \
9138 for flag in $(EXTRA_HOST_FLAGS) ; do \
9139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9140 done; \
22121df0 9141 echo "Doing install-info in flex"; \
a90ef4bf 9142 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9145 "RANLIB=$${RANLIB}" \
9146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9147 install-info) \
9148 || exit 1
9149
a90ef4bf 9150@endif flex
f9806fa5 9151
a90ef4bf
JM
9152.PHONY: maybe-install-pdf-flex install-pdf-flex
9153maybe-install-pdf-flex:
9154@if flex
9155maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9156
a90ef4bf
JM
9157install-pdf-flex: \
9158 configure-flex \
9159 pdf-flex
f9806fa5 9160 @: $(MAKE); $(unstage)
a90ef4bf 9161 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9162 r=`${PWD_COMMAND}`; export r; \
9163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9164 $(HOST_EXPORTS) \
9165 for flag in $(EXTRA_HOST_FLAGS) ; do \
9166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9167 done; \
22121df0 9168 echo "Doing install-pdf in flex"; \
a90ef4bf 9169 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9172 "RANLIB=$${RANLIB}" \
9173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9174 install-pdf) \
9175 || exit 1
9176
a90ef4bf 9177@endif flex
f9806fa5 9178
a90ef4bf
JM
9179.PHONY: maybe-install-html-flex install-html-flex
9180maybe-install-html-flex:
9181@if flex
9182maybe-install-html-flex: install-html-flex
f9806fa5 9183
a90ef4bf
JM
9184install-html-flex: \
9185 configure-flex \
9186 html-flex
f9806fa5 9187 @: $(MAKE); $(unstage)
a90ef4bf 9188 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9189 r=`${PWD_COMMAND}`; export r; \
9190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9191 $(HOST_EXPORTS) \
9192 for flag in $(EXTRA_HOST_FLAGS) ; do \
9193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9194 done; \
22121df0 9195 echo "Doing install-html in flex"; \
a90ef4bf 9196 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9199 "RANLIB=$${RANLIB}" \
9200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9201 install-html) \
9202 || exit 1
9203
a90ef4bf 9204@endif flex
f9806fa5 9205
a90ef4bf
JM
9206.PHONY: maybe-installcheck-flex installcheck-flex
9207maybe-installcheck-flex:
9208@if flex
9209maybe-installcheck-flex: installcheck-flex
f9806fa5 9210
a90ef4bf
JM
9211installcheck-flex: \
9212 configure-flex
f9806fa5 9213 @: $(MAKE); $(unstage)
a90ef4bf 9214 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9215 r=`${PWD_COMMAND}`; export r; \
9216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9217 $(HOST_EXPORTS) \
9218 for flag in $(EXTRA_HOST_FLAGS) ; do \
9219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9220 done; \
22121df0 9221 echo "Doing installcheck in flex"; \
a90ef4bf 9222 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9225 "RANLIB=$${RANLIB}" \
9226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9227 installcheck) \
9228 || exit 1
9229
a90ef4bf 9230@endif flex
f9806fa5 9231
a90ef4bf
JM
9232.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9233maybe-mostlyclean-flex:
9234@if flex
9235maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9236
a90ef4bf 9237mostlyclean-flex:
f9806fa5 9238 @: $(MAKE); $(unstage)
a90ef4bf 9239 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9240 r=`${PWD_COMMAND}`; export r; \
9241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9242 $(HOST_EXPORTS) \
9243 for flag in $(EXTRA_HOST_FLAGS) ; do \
9244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9245 done; \
22121df0 9246 echo "Doing mostlyclean in flex"; \
a90ef4bf 9247 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9250 "RANLIB=$${RANLIB}" \
9251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9252 mostlyclean) \
9253 || exit 1
9254
a90ef4bf 9255@endif flex
f9806fa5 9256
a90ef4bf
JM
9257.PHONY: maybe-clean-flex clean-flex
9258maybe-clean-flex:
9259@if flex
9260maybe-clean-flex: clean-flex
f9806fa5 9261
a90ef4bf 9262clean-flex:
f9806fa5 9263 @: $(MAKE); $(unstage)
a90ef4bf 9264 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9265 r=`${PWD_COMMAND}`; export r; \
9266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9267 $(HOST_EXPORTS) \
9268 for flag in $(EXTRA_HOST_FLAGS) ; do \
9269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9270 done; \
22121df0 9271 echo "Doing clean in flex"; \
a90ef4bf 9272 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9275 "RANLIB=$${RANLIB}" \
9276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9277 clean) \
9278 || exit 1
9279
a90ef4bf 9280@endif flex
f9806fa5 9281
a90ef4bf
JM
9282.PHONY: maybe-distclean-flex distclean-flex
9283maybe-distclean-flex:
9284@if flex
9285maybe-distclean-flex: distclean-flex
f9806fa5 9286
a90ef4bf 9287distclean-flex:
f9806fa5 9288 @: $(MAKE); $(unstage)
a90ef4bf 9289 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9290 r=`${PWD_COMMAND}`; export r; \
9291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9292 $(HOST_EXPORTS) \
9293 for flag in $(EXTRA_HOST_FLAGS) ; do \
9294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9295 done; \
22121df0 9296 echo "Doing distclean in flex"; \
a90ef4bf 9297 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9300 "RANLIB=$${RANLIB}" \
9301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9302 distclean) \
9303 || exit 1
9304
a90ef4bf 9305@endif flex
f9806fa5 9306
a90ef4bf
JM
9307.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9308maybe-maintainer-clean-flex:
9309@if flex
9310maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9311
a90ef4bf 9312maintainer-clean-flex:
f9806fa5 9313 @: $(MAKE); $(unstage)
a90ef4bf 9314 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9315 r=`${PWD_COMMAND}`; export r; \
9316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9317 $(HOST_EXPORTS) \
9318 for flag in $(EXTRA_HOST_FLAGS) ; do \
9319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9320 done; \
22121df0 9321 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9322 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9325 "RANLIB=$${RANLIB}" \
9326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9327 maintainer-clean) \
9328 || exit 1
9329
a90ef4bf 9330@endif flex
f9806fa5
DE
9331
9332
9333
a90ef4bf
JM
9334.PHONY: configure-gas maybe-configure-gas
9335maybe-configure-gas:
4f0ef2d8 9336@if gcc-bootstrap
a90ef4bf 9337configure-gas: stage_current
4f0ef2d8 9338@endif gcc-bootstrap
a90ef4bf
JM
9339@if gas
9340maybe-configure-gas: configure-gas
9341configure-gas:
c52c6897 9342 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9344 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9345 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9346 $(HOST_EXPORTS) \
a90ef4bf
JM
9347 echo Configuring in $(HOST_SUBDIR)/gas; \
9348 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9349 case $(srcdir) in \
b00612cc 9350 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9351 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9352 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9353 esac; \
1b6c0831
L
9354 module_srcdir=gas; \
9355 $(SHELL) \
9356 $$s/$$module_srcdir/configure \
9357 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9358 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9359 --target=${target_alias} \
4fa63067 9360 || exit 1
a90ef4bf 9361@endif gas
a7254363 9362
d545f33b
PB
9363
9364
a90ef4bf
JM
9365.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9366maybe-configure-stage1-gas:
9367@if gas-bootstrap
9368maybe-configure-stage1-gas: configure-stage1-gas
9369configure-stage1-gas:
9370 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9371 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9372 @r=`${PWD_COMMAND}`; export r; \
9373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9374 TFLAGS="$(STAGE1_TFLAGS)"; \
9375 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9376 $(HOST_EXPORTS) \
9377 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9378 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9379 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9380 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9381 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9382 cd $(HOST_SUBDIR)/gas || exit 1; \
9383 case $(srcdir) in \
9384 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9385 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9386 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9387 esac; \
1b6c0831
L
9388 module_srcdir=gas; \
9389 $(SHELL) $$s/$$module_srcdir/configure \
9390 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9391 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9392 --target=${target_alias} \
9393 \
a90ef4bf
JM
9394 $(STAGE1_CONFIGURE_FLAGS)
9395@endif gas-bootstrap
4fa63067 9396
a90ef4bf
JM
9397.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9398maybe-configure-stage2-gas:
9399@if gas-bootstrap
9400maybe-configure-stage2-gas: configure-stage2-gas
9401configure-stage2-gas:
9402 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9403 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9404 @r=`${PWD_COMMAND}`; export r; \
9405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9406 TFLAGS="$(STAGE2_TFLAGS)"; \
9407 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9408 $(HOST_EXPORTS) \
a90ef4bf
JM
9409 $(POSTSTAGE1_HOST_EXPORTS) \
9410 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9411 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9412 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9413 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9414 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9415 cd $(HOST_SUBDIR)/gas || exit 1; \
9416 case $(srcdir) in \
9417 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9418 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9419 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9420 esac; \
1b6c0831
L
9421 module_srcdir=gas; \
9422 $(SHELL) $$s/$$module_srcdir/configure \
9423 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9424 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9425 --target=${target_alias} \
22121df0 9426 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9427 $(STAGE2_CONFIGURE_FLAGS)
9428@endif gas-bootstrap
4fa63067 9429
a90ef4bf
JM
9430.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9431maybe-configure-stage3-gas:
9432@if gas-bootstrap
9433maybe-configure-stage3-gas: configure-stage3-gas
9434configure-stage3-gas:
9435 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9436 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9437 @r=`${PWD_COMMAND}`; export r; \
9438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9439 TFLAGS="$(STAGE3_TFLAGS)"; \
9440 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9441 $(HOST_EXPORTS) \
a90ef4bf
JM
9442 $(POSTSTAGE1_HOST_EXPORTS) \
9443 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9444 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9445 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9446 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9447 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9448 cd $(HOST_SUBDIR)/gas || exit 1; \
9449 case $(srcdir) in \
9450 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9451 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9452 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9453 esac; \
1b6c0831
L
9454 module_srcdir=gas; \
9455 $(SHELL) $$s/$$module_srcdir/configure \
9456 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9457 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9458 --target=${target_alias} \
22121df0 9459 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9460 $(STAGE3_CONFIGURE_FLAGS)
9461@endif gas-bootstrap
9b980aa1 9462
a90ef4bf
JM
9463.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9464maybe-configure-stage4-gas:
9465@if gas-bootstrap
9466maybe-configure-stage4-gas: configure-stage4-gas
9467configure-stage4-gas:
9468 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9469 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9470 @r=`${PWD_COMMAND}`; export r; \
9471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9472 TFLAGS="$(STAGE4_TFLAGS)"; \
9473 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9474 $(HOST_EXPORTS) \
a90ef4bf
JM
9475 $(POSTSTAGE1_HOST_EXPORTS) \
9476 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9477 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9478 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9479 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9480 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9481 cd $(HOST_SUBDIR)/gas || exit 1; \
9482 case $(srcdir) in \
9483 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9484 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9485 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9486 esac; \
1b6c0831
L
9487 module_srcdir=gas; \
9488 $(SHELL) $$s/$$module_srcdir/configure \
9489 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9490 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9491 --target=${target_alias} \
22121df0 9492 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9493 $(STAGE4_CONFIGURE_FLAGS)
9494@endif gas-bootstrap
4fa63067 9495
a90ef4bf
JM
9496.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9497maybe-configure-stageprofile-gas:
9498@if gas-bootstrap
9499maybe-configure-stageprofile-gas: configure-stageprofile-gas
9500configure-stageprofile-gas:
9501 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9502 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9503 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9505 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9506 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9507 $(HOST_EXPORTS) \
a90ef4bf
JM
9508 $(POSTSTAGE1_HOST_EXPORTS) \
9509 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9510 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9511 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9512 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9513 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9514 cd $(HOST_SUBDIR)/gas || exit 1; \
9515 case $(srcdir) in \
9516 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9517 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9518 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9519 esac; \
1b6c0831
L
9520 module_srcdir=gas; \
9521 $(SHELL) $$s/$$module_srcdir/configure \
9522 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9523 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9524 --target=${target_alias} \
22121df0 9525 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9526 $(STAGEprofile_CONFIGURE_FLAGS)
9527@endif gas-bootstrap
2a4cbe27 9528
a90ef4bf
JM
9529.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9530maybe-configure-stagefeedback-gas:
9531@if gas-bootstrap
9532maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9533configure-stagefeedback-gas:
9534 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9535 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9536 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9538 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9539 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9540 $(HOST_EXPORTS) \
a90ef4bf
JM
9541 $(POSTSTAGE1_HOST_EXPORTS) \
9542 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9543 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9544 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9545 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9546 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9547 cd $(HOST_SUBDIR)/gas || exit 1; \
9548 case $(srcdir) in \
9549 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9550 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9551 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9552 esac; \
1b6c0831
L
9553 module_srcdir=gas; \
9554 $(SHELL) $$s/$$module_srcdir/configure \
9555 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9556 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9557 --target=${target_alias} \
22121df0 9558 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9559 $(STAGEfeedback_CONFIGURE_FLAGS)
9560@endif gas-bootstrap
2a4cbe27 9561
56a8fe78 9562
56a8fe78 9563
56a8fe78 9564
6d389afc 9565
a90ef4bf
JM
9566.PHONY: all-gas maybe-all-gas
9567maybe-all-gas:
9568@if gcc-bootstrap
9569all-gas: stage_current
9570@endif gcc-bootstrap
9571@if gas
9572TARGET-gas=all
9573maybe-all-gas: all-gas
9574all-gas: configure-gas
9575 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9577 $(HOST_EXPORTS) \
9578 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9579 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9580 $(TARGET-gas))
9581@endif gas
6d389afc 9582
6d389afc 9583
2a4cbe27 9584
a90ef4bf
JM
9585.PHONY: all-stage1-gas maybe-all-stage1-gas
9586.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9587maybe-all-stage1-gas:
9588maybe-clean-stage1-gas:
9589@if gas-bootstrap
9590maybe-all-stage1-gas: all-stage1-gas
9591all-stage1: all-stage1-gas
9592TARGET-stage1-gas = $(TARGET-gas)
9593all-stage1-gas: configure-stage1-gas
9594 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9595 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9597 TFLAGS="$(STAGE1_TFLAGS)"; \
9598 $(HOST_EXPORTS) \
9599 cd $(HOST_SUBDIR)/gas && \
05a13254 9600 \
a90ef4bf
JM
9601 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9602 CFLAGS="$(STAGE1_CFLAGS)" \
9603 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9604 LIBCFLAGS="$(LIBCFLAGS)" \
9605 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9606 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9607 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9608 $(EXTRA_HOST_FLAGS) \
9609 $(STAGE1_FLAGS_TO_PASS) \
05a13254 9610 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 9611 $(TARGET-stage1-gas)
2a4cbe27 9612
a90ef4bf
JM
9613maybe-clean-stage1-gas: clean-stage1-gas
9614clean-stage1: clean-stage1-gas
9615clean-stage1-gas:
9616 @if [ $(current_stage) = stage1 ]; then \
9617 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9618 else \
9619 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9620 $(MAKE) stage1-start; \
9621 fi; \
9622 cd $(HOST_SUBDIR)/gas && \
9623 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9624 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9625@endif gas-bootstrap
2a4cbe27 9626
2a4cbe27 9627
a90ef4bf
JM
9628.PHONY: all-stage2-gas maybe-all-stage2-gas
9629.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9630maybe-all-stage2-gas:
9631maybe-clean-stage2-gas:
9632@if gas-bootstrap
9633maybe-all-stage2-gas: all-stage2-gas
9634all-stage2: all-stage2-gas
9635TARGET-stage2-gas = $(TARGET-gas)
9636all-stage2-gas: configure-stage2-gas
9637 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9638 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9640 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9641 $(HOST_EXPORTS) \
a90ef4bf
JM
9642 $(POSTSTAGE1_HOST_EXPORTS) \
9643 cd $(HOST_SUBDIR)/gas && \
05a13254 9644 \
a90ef4bf
JM
9645 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9646 CFLAGS="$(STAGE2_CFLAGS)" \
9647 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9648 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9649 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9650 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9651 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9652 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9653 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 9654 $(TARGET-stage2-gas)
2a4cbe27 9655
a90ef4bf
JM
9656maybe-clean-stage2-gas: clean-stage2-gas
9657clean-stage2: clean-stage2-gas
9658clean-stage2-gas:
9659 @if [ $(current_stage) = stage2 ]; then \
9660 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9661 else \
9662 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9663 $(MAKE) stage2-start; \
9664 fi; \
9665 cd $(HOST_SUBDIR)/gas && \
b3676d82 9666 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9667@endif gas-bootstrap
2a4cbe27 9668
2a4cbe27 9669
a90ef4bf
JM
9670.PHONY: all-stage3-gas maybe-all-stage3-gas
9671.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9672maybe-all-stage3-gas:
9673maybe-clean-stage3-gas:
9674@if gas-bootstrap
9675maybe-all-stage3-gas: all-stage3-gas
9676all-stage3: all-stage3-gas
9677TARGET-stage3-gas = $(TARGET-gas)
9678all-stage3-gas: configure-stage3-gas
9679 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9680 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9682 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9683 $(HOST_EXPORTS) \
a90ef4bf
JM
9684 $(POSTSTAGE1_HOST_EXPORTS) \
9685 cd $(HOST_SUBDIR)/gas && \
05a13254 9686 \
a90ef4bf
JM
9687 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9688 CFLAGS="$(STAGE3_CFLAGS)" \
9689 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9690 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9691 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9692 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9693 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9694 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9695 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 9696 $(TARGET-stage3-gas)
2a4cbe27 9697
a90ef4bf
JM
9698maybe-clean-stage3-gas: clean-stage3-gas
9699clean-stage3: clean-stage3-gas
9700clean-stage3-gas:
9701 @if [ $(current_stage) = stage3 ]; then \
9702 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9703 else \
9704 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9705 $(MAKE) stage3-start; \
9706 fi; \
9707 cd $(HOST_SUBDIR)/gas && \
b3676d82 9708 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9709@endif gas-bootstrap
2a4cbe27 9710
2a4cbe27 9711
a90ef4bf
JM
9712.PHONY: all-stage4-gas maybe-all-stage4-gas
9713.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9714maybe-all-stage4-gas:
9715maybe-clean-stage4-gas:
9716@if gas-bootstrap
9717maybe-all-stage4-gas: all-stage4-gas
9718all-stage4: all-stage4-gas
9719TARGET-stage4-gas = $(TARGET-gas)
9720all-stage4-gas: configure-stage4-gas
9721 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9722 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9724 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9725 $(HOST_EXPORTS) \
a90ef4bf
JM
9726 $(POSTSTAGE1_HOST_EXPORTS) \
9727 cd $(HOST_SUBDIR)/gas && \
05a13254 9728 \
a90ef4bf
JM
9729 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9730 CFLAGS="$(STAGE4_CFLAGS)" \
9731 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9732 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9733 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9734 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9735 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9736 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9737 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 9738 $(TARGET-stage4-gas)
2a4cbe27 9739
a90ef4bf
JM
9740maybe-clean-stage4-gas: clean-stage4-gas
9741clean-stage4: clean-stage4-gas
9742clean-stage4-gas:
9743 @if [ $(current_stage) = stage4 ]; then \
9744 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9745 else \
9746 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9747 $(MAKE) stage4-start; \
9748 fi; \
9749 cd $(HOST_SUBDIR)/gas && \
b3676d82 9750 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9751@endif gas-bootstrap
2a4cbe27 9752
2a4cbe27 9753
a90ef4bf
JM
9754.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9755.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9756maybe-all-stageprofile-gas:
9757maybe-clean-stageprofile-gas:
9758@if gas-bootstrap
9759maybe-all-stageprofile-gas: all-stageprofile-gas
9760all-stageprofile: all-stageprofile-gas
9761TARGET-stageprofile-gas = $(TARGET-gas)
9762all-stageprofile-gas: configure-stageprofile-gas
9763 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9764 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9766 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9767 $(HOST_EXPORTS) \
a90ef4bf
JM
9768 $(POSTSTAGE1_HOST_EXPORTS) \
9769 cd $(HOST_SUBDIR)/gas && \
05a13254 9770 \
a90ef4bf
JM
9771 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9772 CFLAGS="$(STAGEprofile_CFLAGS)" \
9773 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9774 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9775 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9776 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9777 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9778 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9779 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 9780 $(TARGET-stageprofile-gas)
4fa63067 9781
a90ef4bf
JM
9782maybe-clean-stageprofile-gas: clean-stageprofile-gas
9783clean-stageprofile: clean-stageprofile-gas
9784clean-stageprofile-gas:
9785 @if [ $(current_stage) = stageprofile ]; then \
9786 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9787 else \
9788 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9789 $(MAKE) stageprofile-start; \
9790 fi; \
9791 cd $(HOST_SUBDIR)/gas && \
b3676d82 9792 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9793@endif gas-bootstrap
4fa63067 9794
a7254363 9795
a90ef4bf
JM
9796.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9797.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9798maybe-all-stagefeedback-gas:
9799maybe-clean-stagefeedback-gas:
9800@if gas-bootstrap
9801maybe-all-stagefeedback-gas: all-stagefeedback-gas
9802all-stagefeedback: all-stagefeedback-gas
9803TARGET-stagefeedback-gas = $(TARGET-gas)
9804all-stagefeedback-gas: configure-stagefeedback-gas
9805 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9806 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9808 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9809 $(HOST_EXPORTS) \
9810 $(POSTSTAGE1_HOST_EXPORTS) \
9811 cd $(HOST_SUBDIR)/gas && \
05a13254 9812 \
a90ef4bf
JM
9813 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9814 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9815 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9816 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9817 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9818 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9819 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9820 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9821 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 9822 $(TARGET-stagefeedback-gas)
d545f33b 9823
a90ef4bf
JM
9824maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9825clean-stagefeedback: clean-stagefeedback-gas
9826clean-stagefeedback-gas:
9827 @if [ $(current_stage) = stagefeedback ]; then \
9828 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9829 else \
9830 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9831 $(MAKE) stagefeedback-start; \
9832 fi; \
9833 cd $(HOST_SUBDIR)/gas && \
b3676d82 9834 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9835@endif gas-bootstrap
d545f33b 9836
2a4cbe27 9837
a7254363 9838
d545f33b
PB
9839
9840
a90ef4bf
JM
9841.PHONY: check-gas maybe-check-gas
9842maybe-check-gas:
9843@if gas
9844maybe-check-gas: check-gas
2a4cbe27 9845
a90ef4bf 9846check-gas:
0aed8855 9847 @: $(MAKE); $(unstage)
4fa63067 9848 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9850 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9851 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9852 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9853
a90ef4bf 9854@endif gas
2a4cbe27 9855
a90ef4bf
JM
9856.PHONY: install-gas maybe-install-gas
9857maybe-install-gas:
9858@if gas
9859maybe-install-gas: install-gas
2a4cbe27 9860
a90ef4bf 9861install-gas: installdirs
0aed8855 9862 @: $(MAKE); $(unstage)
4fa63067 9863 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9865 $(HOST_EXPORTS) \
a90ef4bf 9866 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9867 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9868
a90ef4bf 9869@endif gas
2a4cbe27 9870
a90ef4bf
JM
9871.PHONY: install-strip-gas maybe-install-strip-gas
9872maybe-install-strip-gas:
9873@if gas
9874maybe-install-strip-gas: install-strip-gas
9b980aa1 9875
a90ef4bf 9876install-strip-gas: installdirs
9b980aa1
RW
9877 @: $(MAKE); $(unstage)
9878 @r=`${PWD_COMMAND}`; export r; \
9879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9880 $(HOST_EXPORTS) \
a90ef4bf 9881 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9882 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9883
a90ef4bf 9884@endif gas
9b980aa1 9885
56a8fe78 9886# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9887
a90ef4bf
JM
9888.PHONY: maybe-info-gas info-gas
9889maybe-info-gas:
9890@if gas
9891maybe-info-gas: info-gas
2a4cbe27 9892
a90ef4bf
JM
9893info-gas: \
9894 configure-gas
9895 @[ -f ./gas/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 info in gas"; \
a90ef4bf 9903 (cd $(HOST_SUBDIR)/gas && \
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 info) \
2a4cbe27
NN
9909 || exit 1
9910
a90ef4bf 9911@endif gas
2a4cbe27 9912
a90ef4bf
JM
9913.PHONY: maybe-dvi-gas dvi-gas
9914maybe-dvi-gas:
9915@if gas
9916maybe-dvi-gas: dvi-gas
2a4cbe27 9917
a90ef4bf
JM
9918dvi-gas: \
9919 configure-gas
9920 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9921 r=`${PWD_COMMAND}`; export r; \
9922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9923 $(HOST_EXPORTS) \
b813574b 9924 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9926 done; \
22121df0 9927 echo "Doing dvi in gas"; \
a90ef4bf 9928 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
9929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9931 "RANLIB=$${RANLIB}" \
0c24b341 9932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 9933 dvi) \
2a4cbe27
NN
9934 || exit 1
9935
a90ef4bf 9936@endif gas
2a4cbe27 9937
a90ef4bf
JM
9938.PHONY: maybe-pdf-gas pdf-gas
9939maybe-pdf-gas:
9940@if gas
9941maybe-pdf-gas: pdf-gas
56a8fe78 9942
a90ef4bf
JM
9943pdf-gas: \
9944 configure-gas
9945 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
9946 r=`${PWD_COMMAND}`; export r; \
9947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9948 $(HOST_EXPORTS) \
9949 for flag in $(EXTRA_HOST_FLAGS) ; do \
9950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9951 done; \
22121df0 9952 echo "Doing pdf in gas"; \
a90ef4bf 9953 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
9954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9956 "RANLIB=$${RANLIB}" \
0c24b341 9957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
9958 pdf) \
9959 || exit 1
9960
a90ef4bf 9961@endif gas
56a8fe78 9962
a90ef4bf
JM
9963.PHONY: maybe-html-gas html-gas
9964maybe-html-gas:
9965@if gas
9966maybe-html-gas: html-gas
6d389afc 9967
a90ef4bf
JM
9968html-gas: \
9969 configure-gas
9970 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
9971 r=`${PWD_COMMAND}`; export r; \
9972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
9973 $(HOST_EXPORTS) \
9974 for flag in $(EXTRA_HOST_FLAGS) ; do \
9975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9976 done; \
22121df0 9977 echo "Doing html in gas"; \
a90ef4bf 9978 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
9979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9981 "RANLIB=$${RANLIB}" \
0c24b341 9982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
9983 html) \
9984 || exit 1
9985
a90ef4bf 9986@endif gas
6d389afc 9987
a90ef4bf
JM
9988.PHONY: maybe-TAGS-gas TAGS-gas
9989maybe-TAGS-gas:
9990@if gas
9991maybe-TAGS-gas: TAGS-gas
2a4cbe27 9992
a90ef4bf
JM
9993TAGS-gas: \
9994 configure-gas
9995 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9996 r=`${PWD_COMMAND}`; export r; \
9997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9998 $(HOST_EXPORTS) \
b813574b 9999 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10001 done; \
22121df0 10002 echo "Doing TAGS in gas"; \
a90ef4bf 10003 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10006 "RANLIB=$${RANLIB}" \
0c24b341 10007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10008 TAGS) \
2a4cbe27
NN
10009 || exit 1
10010
a90ef4bf 10011@endif gas
2a4cbe27 10012
a90ef4bf
JM
10013.PHONY: maybe-install-info-gas install-info-gas
10014maybe-install-info-gas:
10015@if gas
10016maybe-install-info-gas: install-info-gas
2a4cbe27 10017
a90ef4bf
JM
10018install-info-gas: \
10019 configure-gas \
10020 info-gas
10021 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10022 r=`${PWD_COMMAND}`; export r; \
10023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10024 $(HOST_EXPORTS) \
b813574b 10025 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10027 done; \
22121df0 10028 echo "Doing install-info in gas"; \
a90ef4bf 10029 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10032 "RANLIB=$${RANLIB}" \
0c24b341 10033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10034 install-info) \
2a4cbe27
NN
10035 || exit 1
10036
a90ef4bf 10037@endif gas
2a4cbe27 10038
a90ef4bf
JM
10039.PHONY: maybe-install-pdf-gas install-pdf-gas
10040maybe-install-pdf-gas:
10041@if gas
10042maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 10043
a90ef4bf
JM
10044install-pdf-gas: \
10045 configure-gas \
10046 pdf-gas
10047 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
10048 r=`${PWD_COMMAND}`; export r; \
10049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10050 $(HOST_EXPORTS) \
10051 for flag in $(EXTRA_HOST_FLAGS) ; do \
10052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10053 done; \
22121df0 10054 echo "Doing install-pdf in gas"; \
a90ef4bf 10055 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10058 "RANLIB=$${RANLIB}" \
0c24b341 10059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10060 install-pdf) \
10061 || exit 1
10062
a90ef4bf 10063@endif gas
a3ca38d2 10064
a90ef4bf
JM
10065.PHONY: maybe-install-html-gas install-html-gas
10066maybe-install-html-gas:
10067@if gas
10068maybe-install-html-gas: install-html-gas
108a6f8e 10069
a90ef4bf
JM
10070install-html-gas: \
10071 configure-gas \
10072 html-gas
10073 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10074 r=`${PWD_COMMAND}`; export r; \
10075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10076 $(HOST_EXPORTS) \
10077 for flag in $(EXTRA_HOST_FLAGS) ; do \
10078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10079 done; \
22121df0 10080 echo "Doing install-html in gas"; \
a90ef4bf 10081 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
10082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10084 "RANLIB=$${RANLIB}" \
0c24b341 10085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10086 install-html) \
10087 || exit 1
10088
a90ef4bf 10089@endif gas
108a6f8e 10090
a90ef4bf
JM
10091.PHONY: maybe-installcheck-gas installcheck-gas
10092maybe-installcheck-gas:
10093@if gas
10094maybe-installcheck-gas: installcheck-gas
2a4cbe27 10095
a90ef4bf
JM
10096installcheck-gas: \
10097 configure-gas
10098 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10099 r=`${PWD_COMMAND}`; export r; \
10100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10101 $(HOST_EXPORTS) \
b813574b 10102 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10104 done; \
22121df0 10105 echo "Doing installcheck in gas"; \
a90ef4bf 10106 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10109 "RANLIB=$${RANLIB}" \
0c24b341 10110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10111 installcheck) \
2a4cbe27
NN
10112 || exit 1
10113
a90ef4bf 10114@endif gas
2a4cbe27 10115
a90ef4bf
JM
10116.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10117maybe-mostlyclean-gas:
10118@if gas
10119maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10120
a90ef4bf
JM
10121mostlyclean-gas:
10122 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10123 r=`${PWD_COMMAND}`; export r; \
10124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10125 $(HOST_EXPORTS) \
b813574b 10126 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10128 done; \
22121df0 10129 echo "Doing mostlyclean in gas"; \
a90ef4bf 10130 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10133 "RANLIB=$${RANLIB}" \
0c24b341 10134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10135 mostlyclean) \
2a4cbe27
NN
10136 || exit 1
10137
a90ef4bf 10138@endif gas
2a4cbe27 10139
a90ef4bf
JM
10140.PHONY: maybe-clean-gas clean-gas
10141maybe-clean-gas:
10142@if gas
10143maybe-clean-gas: clean-gas
2a4cbe27 10144
a90ef4bf
JM
10145clean-gas:
10146 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10147 r=`${PWD_COMMAND}`; export r; \
10148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10149 $(HOST_EXPORTS) \
b813574b 10150 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10152 done; \
22121df0 10153 echo "Doing clean in gas"; \
a90ef4bf 10154 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10157 "RANLIB=$${RANLIB}" \
0c24b341 10158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10159 clean) \
2a4cbe27
NN
10160 || exit 1
10161
a90ef4bf 10162@endif gas
2a4cbe27 10163
a90ef4bf
JM
10164.PHONY: maybe-distclean-gas distclean-gas
10165maybe-distclean-gas:
10166@if gas
10167maybe-distclean-gas: distclean-gas
2a4cbe27 10168
a90ef4bf
JM
10169distclean-gas:
10170 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10171 r=`${PWD_COMMAND}`; export r; \
10172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10173 $(HOST_EXPORTS) \
b813574b 10174 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10176 done; \
22121df0 10177 echo "Doing distclean in gas"; \
a90ef4bf 10178 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10181 "RANLIB=$${RANLIB}" \
0c24b341 10182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10183 distclean) \
2a4cbe27
NN
10184 || exit 1
10185
a90ef4bf 10186@endif gas
2a4cbe27 10187
a90ef4bf
JM
10188.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10189maybe-maintainer-clean-gas:
10190@if gas
10191maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10192
a90ef4bf
JM
10193maintainer-clean-gas:
10194 @[ -f ./gas/Makefile ] || exit 0; \
10195 r=`${PWD_COMMAND}`; export r; \
b40e3958 10196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10197 $(HOST_EXPORTS) \
b813574b 10198 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10200 done; \
22121df0 10201 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10202 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10205 "RANLIB=$${RANLIB}" \
0c24b341 10206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10207 maintainer-clean) \
2a4cbe27
NN
10208 || exit 1
10209
a90ef4bf 10210@endif gas
2a4cbe27 10211
2a4cbe27 10212
a7254363 10213
a90ef4bf
JM
10214.PHONY: configure-gcc maybe-configure-gcc
10215maybe-configure-gcc:
4f0ef2d8 10216@if gcc-bootstrap
a90ef4bf 10217configure-gcc: stage_current
4f0ef2d8 10218@endif gcc-bootstrap
a90ef4bf
JM
10219@if gcc
10220maybe-configure-gcc: configure-gcc
10221configure-gcc:
c52c6897 10222 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10224 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10225 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10226 $(HOST_EXPORTS) \
a90ef4bf
JM
10227 echo Configuring in $(HOST_SUBDIR)/gcc; \
10228 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10229 case $(srcdir) in \
b00612cc 10230 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10231 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10232 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10233 esac; \
1b6c0831
L
10234 module_srcdir=gcc; \
10235 $(SHELL) \
10236 $$s/$$module_srcdir/configure \
10237 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10238 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10239 --target=${target_alias} \
4fa63067 10240 || exit 1
a90ef4bf 10241@endif gcc
a7254363 10242
d545f33b
PB
10243
10244
a90ef4bf
JM
10245.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10246maybe-configure-stage1-gcc:
4f0ef2d8 10247@if gcc-bootstrap
a90ef4bf
JM
10248maybe-configure-stage1-gcc: configure-stage1-gcc
10249configure-stage1-gcc:
10250 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10251 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10252 @r=`${PWD_COMMAND}`; export r; \
10253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10254 TFLAGS="$(STAGE1_TFLAGS)"; \
10255 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10256 $(HOST_EXPORTS) \
10257 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10258 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10259 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10260 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10261 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10262 cd $(HOST_SUBDIR)/gcc || exit 1; \
10263 case $(srcdir) in \
10264 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10265 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10266 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10267 esac; \
1b6c0831
L
10268 module_srcdir=gcc; \
10269 $(SHELL) $$s/$$module_srcdir/configure \
10270 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10271 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10272 --target=${target_alias} \
10273 \
a90ef4bf
JM
10274 $(STAGE1_CONFIGURE_FLAGS)
10275@endif gcc-bootstrap
4fa63067 10276
a90ef4bf
JM
10277.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10278maybe-configure-stage2-gcc:
10279@if gcc-bootstrap
10280maybe-configure-stage2-gcc: configure-stage2-gcc
10281configure-stage2-gcc:
10282 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10283 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10284 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10286 TFLAGS="$(STAGE2_TFLAGS)"; \
10287 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10288 $(HOST_EXPORTS) \
a90ef4bf
JM
10289 $(POSTSTAGE1_HOST_EXPORTS) \
10290 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10291 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10292 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10293 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10294 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10295 cd $(HOST_SUBDIR)/gcc || exit 1; \
10296 case $(srcdir) in \
10297 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10298 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10299 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10300 esac; \
1b6c0831
L
10301 module_srcdir=gcc; \
10302 $(SHELL) $$s/$$module_srcdir/configure \
10303 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10304 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10305 --target=${target_alias} \
22121df0 10306 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10307 $(STAGE2_CONFIGURE_FLAGS)
10308@endif gcc-bootstrap
9b980aa1 10309
a90ef4bf
JM
10310.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10311maybe-configure-stage3-gcc:
10312@if gcc-bootstrap
10313maybe-configure-stage3-gcc: configure-stage3-gcc
10314configure-stage3-gcc:
10315 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10316 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10317 @r=`${PWD_COMMAND}`; export r; \
10318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10319 TFLAGS="$(STAGE3_TFLAGS)"; \
10320 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10321 $(HOST_EXPORTS) \
a90ef4bf
JM
10322 $(POSTSTAGE1_HOST_EXPORTS) \
10323 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10324 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10325 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10326 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10327 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10328 cd $(HOST_SUBDIR)/gcc || exit 1; \
10329 case $(srcdir) in \
10330 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10331 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10332 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10333 esac; \
1b6c0831
L
10334 module_srcdir=gcc; \
10335 $(SHELL) $$s/$$module_srcdir/configure \
10336 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10337 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10338 --target=${target_alias} \
22121df0 10339 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10340 $(STAGE3_CONFIGURE_FLAGS)
10341@endif gcc-bootstrap
4fa63067 10342
a90ef4bf
JM
10343.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10344maybe-configure-stage4-gcc:
10345@if gcc-bootstrap
10346maybe-configure-stage4-gcc: configure-stage4-gcc
10347configure-stage4-gcc:
10348 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10349 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10350 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10352 TFLAGS="$(STAGE4_TFLAGS)"; \
10353 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10354 $(HOST_EXPORTS) \
a90ef4bf
JM
10355 $(POSTSTAGE1_HOST_EXPORTS) \
10356 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10357 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10358 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10359 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10360 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10361 cd $(HOST_SUBDIR)/gcc || exit 1; \
10362 case $(srcdir) in \
10363 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10364 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10365 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10366 esac; \
1b6c0831
L
10367 module_srcdir=gcc; \
10368 $(SHELL) $$s/$$module_srcdir/configure \
10369 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10370 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10371 --target=${target_alias} \
22121df0 10372 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10373 $(STAGE4_CONFIGURE_FLAGS)
10374@endif gcc-bootstrap
2a4cbe27 10375
a90ef4bf
JM
10376.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10377maybe-configure-stageprofile-gcc:
10378@if gcc-bootstrap
10379maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10380configure-stageprofile-gcc:
10381 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10382 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10383 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10385 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10386 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10387 $(HOST_EXPORTS) \
a90ef4bf
JM
10388 $(POSTSTAGE1_HOST_EXPORTS) \
10389 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10390 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10391 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10392 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10393 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10394 cd $(HOST_SUBDIR)/gcc || exit 1; \
10395 case $(srcdir) in \
10396 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10397 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10398 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10399 esac; \
1b6c0831
L
10400 module_srcdir=gcc; \
10401 $(SHELL) $$s/$$module_srcdir/configure \
10402 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10403 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10404 --target=${target_alias} \
22121df0 10405 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10406 $(STAGEprofile_CONFIGURE_FLAGS)
10407@endif gcc-bootstrap
56a8fe78 10408
a90ef4bf
JM
10409.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10410maybe-configure-stagefeedback-gcc:
10411@if gcc-bootstrap
10412maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10413configure-stagefeedback-gcc:
10414 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10415 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10416 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10418 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10419 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10420 $(HOST_EXPORTS) \
a90ef4bf
JM
10421 $(POSTSTAGE1_HOST_EXPORTS) \
10422 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10423 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10424 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10425 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10427 cd $(HOST_SUBDIR)/gcc || exit 1; \
10428 case $(srcdir) in \
10429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10430 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10432 esac; \
1b6c0831
L
10433 module_srcdir=gcc; \
10434 $(SHELL) $$s/$$module_srcdir/configure \
10435 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10437 --target=${target_alias} \
22121df0 10438 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10439 $(STAGEfeedback_CONFIGURE_FLAGS)
10440@endif gcc-bootstrap
56a8fe78 10441
2a4cbe27 10442
2a4cbe27
NN
10443
10444
2a4cbe27 10445
a90ef4bf
JM
10446.PHONY: all-gcc maybe-all-gcc
10447maybe-all-gcc:
10448@if gcc-bootstrap
10449all-gcc: stage_current
10450@endif gcc-bootstrap
10451@if gcc
10452TARGET-gcc=all
10453maybe-all-gcc: all-gcc
10454all-gcc: configure-gcc
10455 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10457 $(HOST_EXPORTS) \
10458 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10459 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10460 $(TARGET-gcc))
10461@endif gcc
6d389afc 10462
6d389afc 10463
6d389afc 10464
a90ef4bf
JM
10465.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10466.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10467maybe-all-stage1-gcc:
10468maybe-clean-stage1-gcc:
10469@if gcc-bootstrap
10470maybe-all-stage1-gcc: all-stage1-gcc
10471all-stage1: all-stage1-gcc
10472TARGET-stage1-gcc = $(TARGET-gcc)
10473all-stage1-gcc: configure-stage1-gcc
10474 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10475 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10477 TFLAGS="$(STAGE1_TFLAGS)"; \
10478 $(HOST_EXPORTS) \
10479 cd $(HOST_SUBDIR)/gcc && \
05a13254 10480 \
a90ef4bf
JM
10481 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10482 CFLAGS="$(STAGE1_CFLAGS)" \
10483 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10484 LIBCFLAGS="$(LIBCFLAGS)" \
10485 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10486 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10487 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10488 $(EXTRA_HOST_FLAGS) \
10489 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10490 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 10491 $(TARGET-stage1-gcc)
2a4cbe27 10492
a90ef4bf
JM
10493maybe-clean-stage1-gcc: clean-stage1-gcc
10494clean-stage1: clean-stage1-gcc
10495clean-stage1-gcc:
10496 @if [ $(current_stage) = stage1 ]; then \
10497 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10498 else \
10499 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10500 $(MAKE) stage1-start; \
10501 fi; \
10502 cd $(HOST_SUBDIR)/gcc && \
10503 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10504 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10505@endif gcc-bootstrap
2a4cbe27 10506
a3ca38d2 10507
a90ef4bf
JM
10508.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10509.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10510maybe-all-stage2-gcc:
10511maybe-clean-stage2-gcc:
10512@if gcc-bootstrap
10513maybe-all-stage2-gcc: all-stage2-gcc
10514all-stage2: all-stage2-gcc
10515TARGET-stage2-gcc = $(TARGET-gcc)
10516all-stage2-gcc: configure-stage2-gcc
10517 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10518 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10520 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10521 $(HOST_EXPORTS) \
a90ef4bf
JM
10522 $(POSTSTAGE1_HOST_EXPORTS) \
10523 cd $(HOST_SUBDIR)/gcc && \
05a13254 10524 \
a90ef4bf
JM
10525 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10526 CFLAGS="$(STAGE2_CFLAGS)" \
10527 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10528 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10529 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10530 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10531 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10532 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10533 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 10534 $(TARGET-stage2-gcc)
a3ca38d2 10535
a90ef4bf
JM
10536maybe-clean-stage2-gcc: clean-stage2-gcc
10537clean-stage2: clean-stage2-gcc
10538clean-stage2-gcc:
10539 @if [ $(current_stage) = stage2 ]; then \
10540 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10541 else \
10542 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10543 $(MAKE) stage2-start; \
10544 fi; \
10545 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10546 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10547@endif gcc-bootstrap
a3ca38d2 10548
108a6f8e 10549
a90ef4bf
JM
10550.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10551.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10552maybe-all-stage3-gcc:
10553maybe-clean-stage3-gcc:
10554@if gcc-bootstrap
10555maybe-all-stage3-gcc: all-stage3-gcc
10556all-stage3: all-stage3-gcc
10557TARGET-stage3-gcc = $(TARGET-gcc)
10558all-stage3-gcc: configure-stage3-gcc
10559 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10560 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10562 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10563 $(HOST_EXPORTS) \
a90ef4bf
JM
10564 $(POSTSTAGE1_HOST_EXPORTS) \
10565 cd $(HOST_SUBDIR)/gcc && \
05a13254 10566 \
a90ef4bf
JM
10567 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10568 CFLAGS="$(STAGE3_CFLAGS)" \
10569 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10570 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10571 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10572 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10573 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10574 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10575 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 10576 $(TARGET-stage3-gcc)
108a6f8e 10577
a90ef4bf
JM
10578maybe-clean-stage3-gcc: clean-stage3-gcc
10579clean-stage3: clean-stage3-gcc
10580clean-stage3-gcc:
10581 @if [ $(current_stage) = stage3 ]; then \
10582 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10583 else \
10584 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10585 $(MAKE) stage3-start; \
10586 fi; \
10587 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10588 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10589@endif gcc-bootstrap
108a6f8e 10590
2a4cbe27 10591
a90ef4bf
JM
10592.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10593.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10594maybe-all-stage4-gcc:
10595maybe-clean-stage4-gcc:
10596@if gcc-bootstrap
10597maybe-all-stage4-gcc: all-stage4-gcc
10598all-stage4: all-stage4-gcc
10599TARGET-stage4-gcc = $(TARGET-gcc)
10600all-stage4-gcc: configure-stage4-gcc
10601 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10602 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10604 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10605 $(HOST_EXPORTS) \
a90ef4bf
JM
10606 $(POSTSTAGE1_HOST_EXPORTS) \
10607 cd $(HOST_SUBDIR)/gcc && \
05a13254 10608 \
a90ef4bf
JM
10609 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10610 CFLAGS="$(STAGE4_CFLAGS)" \
10611 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10612 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10613 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10614 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10615 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10616 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10617 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 10618 $(TARGET-stage4-gcc)
2a4cbe27 10619
a90ef4bf
JM
10620maybe-clean-stage4-gcc: clean-stage4-gcc
10621clean-stage4: clean-stage4-gcc
10622clean-stage4-gcc:
10623 @if [ $(current_stage) = stage4 ]; then \
10624 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10625 else \
10626 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10627 $(MAKE) stage4-start; \
10628 fi; \
10629 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10630 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10631@endif gcc-bootstrap
2a4cbe27 10632
a2592b1b 10633
a90ef4bf
JM
10634.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10635.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10636maybe-all-stageprofile-gcc:
10637maybe-clean-stageprofile-gcc:
10638@if gcc-bootstrap
10639maybe-all-stageprofile-gcc: all-stageprofile-gcc
10640all-stageprofile: all-stageprofile-gcc
10641TARGET-stageprofile-gcc = $(TARGET-gcc)
10642all-stageprofile-gcc: configure-stageprofile-gcc
10643 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10644 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10646 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10647 $(HOST_EXPORTS) \
a90ef4bf
JM
10648 $(POSTSTAGE1_HOST_EXPORTS) \
10649 cd $(HOST_SUBDIR)/gcc && \
05a13254 10650 \
a90ef4bf
JM
10651 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10652 CFLAGS="$(STAGEprofile_CFLAGS)" \
10653 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10654 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10655 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10656 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10657 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10658 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10659 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 10660 $(TARGET-stageprofile-gcc)
2a4cbe27 10661
a90ef4bf
JM
10662maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10663clean-stageprofile: clean-stageprofile-gcc
10664clean-stageprofile-gcc:
10665 @if [ $(current_stage) = stageprofile ]; then \
10666 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10667 else \
10668 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10669 $(MAKE) stageprofile-start; \
10670 fi; \
10671 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10672 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10673@endif gcc-bootstrap
2a4cbe27 10674
a7254363 10675
a90ef4bf
JM
10676.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10677.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10678maybe-all-stagefeedback-gcc:
10679maybe-clean-stagefeedback-gcc:
4f0ef2d8 10680@if gcc-bootstrap
a90ef4bf
JM
10681maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10682all-stagefeedback: all-stagefeedback-gcc
10683TARGET-stagefeedback-gcc = $(TARGET-gcc)
10684all-stagefeedback-gcc: configure-stagefeedback-gcc
10685 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10686 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10688 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10689 $(HOST_EXPORTS) \
10690 $(POSTSTAGE1_HOST_EXPORTS) \
10691 cd $(HOST_SUBDIR)/gcc && \
05a13254 10692 \
a90ef4bf
JM
10693 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10694 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10695 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10696 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10697 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10698 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10699 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10700 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10701 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 10702 $(TARGET-stagefeedback-gcc)
d545f33b 10703
a90ef4bf
JM
10704maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10705clean-stagefeedback: clean-stagefeedback-gcc
10706clean-stagefeedback-gcc:
10707 @if [ $(current_stage) = stagefeedback ]; then \
10708 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10709 else \
10710 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10711 $(MAKE) stagefeedback-start; \
10712 fi; \
10713 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10714 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10715@endif gcc-bootstrap
4fa63067 10716
a7254363 10717
d545f33b
PB
10718
10719
4fa63067 10720
a90ef4bf
JM
10721.PHONY: check-gcc maybe-check-gcc
10722maybe-check-gcc:
10723@if gcc
10724maybe-check-gcc: check-gcc
10725
10726check-gcc:
0aed8855 10727 @: $(MAKE); $(unstage)
4fa63067
NN
10728 @r=`${PWD_COMMAND}`; export r; \
10729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10730 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10731 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10732 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10733
a90ef4bf 10734@endif gcc
4fa63067 10735
a90ef4bf
JM
10736.PHONY: install-gcc maybe-install-gcc
10737maybe-install-gcc:
10738@if gcc
10739maybe-install-gcc: install-gcc
4fa63067 10740
a90ef4bf 10741install-gcc: installdirs
0aed8855 10742 @: $(MAKE); $(unstage)
4fa63067
NN
10743 @r=`${PWD_COMMAND}`; export r; \
10744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10745 $(HOST_EXPORTS) \
a90ef4bf
JM
10746 (cd $(HOST_SUBDIR)/gcc && \
10747 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10748
a90ef4bf 10749@endif gcc
4fa63067 10750
a90ef4bf
JM
10751.PHONY: install-strip-gcc maybe-install-strip-gcc
10752maybe-install-strip-gcc:
10753@if gcc
10754maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10755
a90ef4bf 10756install-strip-gcc: installdirs
9b980aa1
RW
10757 @: $(MAKE); $(unstage)
10758 @r=`${PWD_COMMAND}`; export r; \
10759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10760 $(HOST_EXPORTS) \
a90ef4bf
JM
10761 (cd $(HOST_SUBDIR)/gcc && \
10762 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10763
a90ef4bf 10764@endif gcc
9b980aa1 10765
56a8fe78 10766# Other targets (info, dvi, pdf, etc.)
4fa63067 10767
a90ef4bf
JM
10768.PHONY: maybe-info-gcc info-gcc
10769maybe-info-gcc:
10770@if gcc
10771maybe-info-gcc: info-gcc
4fa63067 10772
a90ef4bf
JM
10773info-gcc: \
10774 configure-gcc
10775 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10776 r=`${PWD_COMMAND}`; export r; \
10777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10778 $(HOST_EXPORTS) \
a90ef4bf 10779 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10781 done; \
22121df0 10782 echo "Doing info in gcc"; \
a90ef4bf 10783 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10786 "RANLIB=$${RANLIB}" \
0c24b341 10787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10788 info) \
2a4cbe27
NN
10789 || exit 1
10790
a90ef4bf 10791@endif gcc
2a4cbe27 10792
a90ef4bf
JM
10793.PHONY: maybe-dvi-gcc dvi-gcc
10794maybe-dvi-gcc:
10795@if gcc
10796maybe-dvi-gcc: dvi-gcc
2a4cbe27 10797
a90ef4bf
JM
10798dvi-gcc: \
10799 configure-gcc
10800 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10801 r=`${PWD_COMMAND}`; export r; \
10802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10803 $(HOST_EXPORTS) \
a90ef4bf 10804 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10806 done; \
22121df0 10807 echo "Doing dvi in gcc"; \
a90ef4bf 10808 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10811 "RANLIB=$${RANLIB}" \
0c24b341 10812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10813 dvi) \
2a4cbe27
NN
10814 || exit 1
10815
a90ef4bf 10816@endif gcc
2a4cbe27 10817
a90ef4bf
JM
10818.PHONY: maybe-pdf-gcc pdf-gcc
10819maybe-pdf-gcc:
10820@if gcc
10821maybe-pdf-gcc: pdf-gcc
56a8fe78 10822
a90ef4bf
JM
10823pdf-gcc: \
10824 configure-gcc
10825 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10826 r=`${PWD_COMMAND}`; export r; \
10827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10828 $(HOST_EXPORTS) \
a90ef4bf 10829 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10831 done; \
22121df0 10832 echo "Doing pdf in gcc"; \
a90ef4bf 10833 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10836 "RANLIB=$${RANLIB}" \
0c24b341 10837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10838 pdf) \
10839 || exit 1
10840
a90ef4bf 10841@endif gcc
56a8fe78 10842
a90ef4bf
JM
10843.PHONY: maybe-html-gcc html-gcc
10844maybe-html-gcc:
10845@if gcc
10846maybe-html-gcc: html-gcc
6d389afc 10847
a90ef4bf
JM
10848html-gcc: \
10849 configure-gcc
10850 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10851 r=`${PWD_COMMAND}`; export r; \
10852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10853 $(HOST_EXPORTS) \
a90ef4bf 10854 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10856 done; \
22121df0 10857 echo "Doing html in gcc"; \
a90ef4bf 10858 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10861 "RANLIB=$${RANLIB}" \
0c24b341 10862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10863 html) \
10864 || exit 1
10865
a90ef4bf 10866@endif gcc
6d389afc 10867
a90ef4bf
JM
10868.PHONY: maybe-TAGS-gcc TAGS-gcc
10869maybe-TAGS-gcc:
10870@if gcc
10871maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10872
a90ef4bf
JM
10873TAGS-gcc: \
10874 configure-gcc
10875 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10876 r=`${PWD_COMMAND}`; export r; \
10877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10878 $(HOST_EXPORTS) \
a90ef4bf 10879 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10881 done; \
22121df0 10882 echo "Doing TAGS in gcc"; \
a90ef4bf 10883 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10886 "RANLIB=$${RANLIB}" \
0c24b341 10887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10888 TAGS) \
2a4cbe27
NN
10889 || exit 1
10890
a90ef4bf 10891@endif gcc
2a4cbe27 10892
a90ef4bf
JM
10893.PHONY: maybe-install-info-gcc install-info-gcc
10894maybe-install-info-gcc:
10895@if gcc
10896maybe-install-info-gcc: install-info-gcc
2a4cbe27 10897
a90ef4bf
JM
10898install-info-gcc: \
10899 configure-gcc \
10900 info-gcc
10901 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10902 r=`${PWD_COMMAND}`; export r; \
10903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10904 $(HOST_EXPORTS) \
a90ef4bf 10905 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10907 done; \
22121df0 10908 echo "Doing install-info in gcc"; \
a90ef4bf 10909 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10912 "RANLIB=$${RANLIB}" \
0c24b341 10913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10914 install-info) \
2a4cbe27
NN
10915 || exit 1
10916
a90ef4bf 10917@endif gcc
2a4cbe27 10918
a90ef4bf
JM
10919.PHONY: maybe-install-pdf-gcc install-pdf-gcc
10920maybe-install-pdf-gcc:
10921@if gcc
10922maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 10923
a90ef4bf
JM
10924install-pdf-gcc: \
10925 configure-gcc \
10926 pdf-gcc
10927 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
10928 r=`${PWD_COMMAND}`; export r; \
10929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10930 $(HOST_EXPORTS) \
a90ef4bf 10931 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
10932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10933 done; \
22121df0 10934 echo "Doing install-pdf in gcc"; \
a90ef4bf 10935 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
10936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10938 "RANLIB=$${RANLIB}" \
0c24b341 10939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10940 install-pdf) \
10941 || exit 1
10942
a90ef4bf 10943@endif gcc
a3ca38d2 10944
a90ef4bf
JM
10945.PHONY: maybe-install-html-gcc install-html-gcc
10946maybe-install-html-gcc:
10947@if gcc
10948maybe-install-html-gcc: install-html-gcc
108a6f8e 10949
a90ef4bf
JM
10950install-html-gcc: \
10951 configure-gcc \
10952 html-gcc
10953 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
10954 r=`${PWD_COMMAND}`; export r; \
10955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10956 $(HOST_EXPORTS) \
a90ef4bf 10957 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
10958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10959 done; \
22121df0 10960 echo "Doing install-html in gcc"; \
a90ef4bf 10961 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
10962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10964 "RANLIB=$${RANLIB}" \
0c24b341 10965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
10966 install-html) \
10967 || exit 1
10968
a90ef4bf 10969@endif gcc
108a6f8e 10970
a90ef4bf
JM
10971.PHONY: maybe-installcheck-gcc installcheck-gcc
10972maybe-installcheck-gcc:
10973@if gcc
10974maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 10975
a90ef4bf
JM
10976installcheck-gcc: \
10977 configure-gcc
10978 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10979 r=`${PWD_COMMAND}`; export r; \
10980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10981 $(HOST_EXPORTS) \
a90ef4bf 10982 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10984 done; \
22121df0 10985 echo "Doing installcheck in gcc"; \
a90ef4bf 10986 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10989 "RANLIB=$${RANLIB}" \
0c24b341 10990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10991 installcheck) \
2a4cbe27
NN
10992 || exit 1
10993
a90ef4bf 10994@endif gcc
2a4cbe27 10995
a90ef4bf
JM
10996.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
10997maybe-mostlyclean-gcc:
10998@if gcc
10999maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 11000
a90ef4bf
JM
11001mostlyclean-gcc:
11002 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11003 r=`${PWD_COMMAND}`; export r; \
11004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11005 $(HOST_EXPORTS) \
a90ef4bf 11006 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11008 done; \
22121df0 11009 echo "Doing mostlyclean in gcc"; \
a90ef4bf 11010 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11013 "RANLIB=$${RANLIB}" \
0c24b341 11014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11015 mostlyclean) \
2a4cbe27
NN
11016 || exit 1
11017
a90ef4bf 11018@endif gcc
2a4cbe27 11019
a90ef4bf
JM
11020.PHONY: maybe-clean-gcc clean-gcc
11021maybe-clean-gcc:
11022@if gcc
11023maybe-clean-gcc: clean-gcc
2a4cbe27 11024
a90ef4bf
JM
11025clean-gcc:
11026 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11027 r=`${PWD_COMMAND}`; export r; \
11028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11029 $(HOST_EXPORTS) \
a90ef4bf 11030 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11032 done; \
22121df0 11033 echo "Doing clean in gcc"; \
a90ef4bf 11034 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11037 "RANLIB=$${RANLIB}" \
0c24b341 11038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11039 clean) \
2a4cbe27
NN
11040 || exit 1
11041
a90ef4bf 11042@endif gcc
2a4cbe27 11043
a90ef4bf
JM
11044.PHONY: maybe-distclean-gcc distclean-gcc
11045maybe-distclean-gcc:
11046@if gcc
11047maybe-distclean-gcc: distclean-gcc
2a4cbe27 11048
a90ef4bf
JM
11049distclean-gcc:
11050 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11051 r=`${PWD_COMMAND}`; export r; \
11052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11053 $(HOST_EXPORTS) \
a90ef4bf 11054 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11056 done; \
22121df0 11057 echo "Doing distclean in gcc"; \
a90ef4bf 11058 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11061 "RANLIB=$${RANLIB}" \
0c24b341 11062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11063 distclean) \
2a4cbe27
NN
11064 || exit 1
11065
a90ef4bf 11066@endif gcc
2a4cbe27 11067
a90ef4bf
JM
11068.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11069maybe-maintainer-clean-gcc:
11070@if gcc
11071maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11072
a90ef4bf
JM
11073maintainer-clean-gcc:
11074 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11075 r=`${PWD_COMMAND}`; export r; \
11076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11077 $(HOST_EXPORTS) \
a90ef4bf 11078 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11080 done; \
22121df0 11081 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11082 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11085 "RANLIB=$${RANLIB}" \
0c24b341 11086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11087 maintainer-clean) \
2a4cbe27
NN
11088 || exit 1
11089
a90ef4bf 11090@endif gcc
2a4cbe27 11091
2a4cbe27 11092
a7254363 11093
a90ef4bf
JM
11094.PHONY: configure-gmp maybe-configure-gmp
11095maybe-configure-gmp:
4f0ef2d8 11096@if gcc-bootstrap
a90ef4bf 11097configure-gmp: stage_current
4f0ef2d8 11098@endif gcc-bootstrap
a90ef4bf
JM
11099@if gmp
11100maybe-configure-gmp: configure-gmp
11101configure-gmp:
c52c6897 11102 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11104 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11105 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11106 $(HOST_EXPORTS) \
a90ef4bf
JM
11107 echo Configuring in $(HOST_SUBDIR)/gmp; \
11108 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11109 case $(srcdir) in \
b00612cc 11110 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11111 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11112 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11113 esac; \
1b6c0831
L
11114 module_srcdir=gmp; \
11115 $(SHELL) \
11116 $$s/$$module_srcdir/configure \
11117 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11118 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11119 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11120 || exit 1
a90ef4bf 11121@endif gmp
a7254363 11122
d545f33b
PB
11123
11124
a90ef4bf
JM
11125.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11126maybe-configure-stage1-gmp:
11127@if gmp-bootstrap
11128maybe-configure-stage1-gmp: configure-stage1-gmp
11129configure-stage1-gmp:
11130 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11131 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11132 @r=`${PWD_COMMAND}`; export r; \
11133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11134 TFLAGS="$(STAGE1_TFLAGS)"; \
11135 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11136 $(HOST_EXPORTS) \
11137 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11138 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11139 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11140 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11141 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11142 cd $(HOST_SUBDIR)/gmp || exit 1; \
11143 case $(srcdir) in \
11144 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11145 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11146 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11147 esac; \
1b6c0831
L
11148 module_srcdir=gmp; \
11149 $(SHELL) $$s/$$module_srcdir/configure \
11150 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11151 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11152 --target=none-${host_vendor}-${host_os} \
11153 \
a90ef4bf 11154 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11155 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11156@endif gmp-bootstrap
4fa63067 11157
a90ef4bf
JM
11158.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11159maybe-configure-stage2-gmp:
11160@if gmp-bootstrap
11161maybe-configure-stage2-gmp: configure-stage2-gmp
11162configure-stage2-gmp:
11163 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11164 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11165 @r=`${PWD_COMMAND}`; export r; \
11166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11167 TFLAGS="$(STAGE2_TFLAGS)"; \
11168 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11169 $(HOST_EXPORTS) \
11170 $(POSTSTAGE1_HOST_EXPORTS) \
11171 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11172 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11173 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11174 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11175 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11176 cd $(HOST_SUBDIR)/gmp || exit 1; \
11177 case $(srcdir) in \
11178 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11179 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11180 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11181 esac; \
1b6c0831
L
11182 module_srcdir=gmp; \
11183 $(SHELL) $$s/$$module_srcdir/configure \
11184 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11185 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11186 --target=none-${host_vendor}-${host_os} \
22121df0 11187 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11188 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11189 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11190@endif gmp-bootstrap
4fa63067 11191
a90ef4bf
JM
11192.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11193maybe-configure-stage3-gmp:
11194@if gmp-bootstrap
11195maybe-configure-stage3-gmp: configure-stage3-gmp
11196configure-stage3-gmp:
11197 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11198 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11199 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11201 TFLAGS="$(STAGE3_TFLAGS)"; \
11202 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11203 $(HOST_EXPORTS) \
a90ef4bf
JM
11204 $(POSTSTAGE1_HOST_EXPORTS) \
11205 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11206 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11207 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11208 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11209 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11210 cd $(HOST_SUBDIR)/gmp || exit 1; \
11211 case $(srcdir) in \
11212 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11213 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11214 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11215 esac; \
1b6c0831
L
11216 module_srcdir=gmp; \
11217 $(SHELL) $$s/$$module_srcdir/configure \
11218 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11219 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11220 --target=none-${host_vendor}-${host_os} \
22121df0 11221 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11222 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11223 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11224@endif gmp-bootstrap
2a4cbe27 11225
a90ef4bf
JM
11226.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11227maybe-configure-stage4-gmp:
11228@if gmp-bootstrap
11229maybe-configure-stage4-gmp: configure-stage4-gmp
11230configure-stage4-gmp:
11231 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11232 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11233 @r=`${PWD_COMMAND}`; export r; \
11234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11235 TFLAGS="$(STAGE4_TFLAGS)"; \
11236 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11237 $(HOST_EXPORTS) \
11238 $(POSTSTAGE1_HOST_EXPORTS) \
11239 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11240 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11241 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11242 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11243 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11244 cd $(HOST_SUBDIR)/gmp || exit 1; \
11245 case $(srcdir) in \
11246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11247 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11249 esac; \
1b6c0831
L
11250 module_srcdir=gmp; \
11251 $(SHELL) $$s/$$module_srcdir/configure \
11252 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11253 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11254 --target=none-${host_vendor}-${host_os} \
22121df0 11255 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11256 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11257 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11258@endif gmp-bootstrap
2a4cbe27 11259
a90ef4bf
JM
11260.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11261maybe-configure-stageprofile-gmp:
11262@if gmp-bootstrap
11263maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11264configure-stageprofile-gmp:
11265 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11266 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11267 @r=`${PWD_COMMAND}`; export r; \
11268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11269 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11270 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11271 $(HOST_EXPORTS) \
11272 $(POSTSTAGE1_HOST_EXPORTS) \
11273 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11274 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11275 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11276 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11277 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11278 cd $(HOST_SUBDIR)/gmp || exit 1; \
11279 case $(srcdir) in \
11280 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11281 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11282 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11283 esac; \
1b6c0831
L
11284 module_srcdir=gmp; \
11285 $(SHELL) $$s/$$module_srcdir/configure \
11286 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11287 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11288 --target=none-${host_vendor}-${host_os} \
22121df0 11289 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11290 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11291 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11292@endif gmp-bootstrap
9b980aa1 11293
a90ef4bf
JM
11294.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11295maybe-configure-stagefeedback-gmp:
11296@if gmp-bootstrap
11297maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11298configure-stagefeedback-gmp:
11299 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11300 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11301 @r=`${PWD_COMMAND}`; export r; \
11302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11303 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11304 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11305 $(HOST_EXPORTS) \
a90ef4bf
JM
11306 $(POSTSTAGE1_HOST_EXPORTS) \
11307 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11308 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11309 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11310 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11311 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11312 cd $(HOST_SUBDIR)/gmp || exit 1; \
11313 case $(srcdir) in \
11314 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11315 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11316 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11317 esac; \
1b6c0831
L
11318 module_srcdir=gmp; \
11319 $(SHELL) $$s/$$module_srcdir/configure \
11320 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11321 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11322 --target=none-${host_vendor}-${host_os} \
22121df0 11323 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11324 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11325 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11326@endif gmp-bootstrap
9b980aa1 11327
9b980aa1 11328
2a4cbe27 11329
4fa63067 11330
a90ef4bf
JM
11331
11332.PHONY: all-gmp maybe-all-gmp
11333maybe-all-gmp:
11334@if gcc-bootstrap
11335all-gmp: stage_current
11336@endif gcc-bootstrap
11337@if gmp
11338TARGET-gmp=all
11339maybe-all-gmp: all-gmp
11340all-gmp: configure-gmp
11341 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11343 $(HOST_EXPORTS) \
11344 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11345 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
11346 $(TARGET-gmp))
11347@endif gmp
2a4cbe27
NN
11348
11349
2a4cbe27 11350
a90ef4bf
JM
11351.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11352.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11353maybe-all-stage1-gmp:
11354maybe-clean-stage1-gmp:
11355@if gmp-bootstrap
11356maybe-all-stage1-gmp: all-stage1-gmp
11357all-stage1: all-stage1-gmp
11358TARGET-stage1-gmp = $(TARGET-gmp)
11359all-stage1-gmp: configure-stage1-gmp
11360 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11361 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11363 TFLAGS="$(STAGE1_TFLAGS)"; \
11364 $(HOST_EXPORTS) \
11365 cd $(HOST_SUBDIR)/gmp && \
05a13254 11366 \
a90ef4bf
JM
11367 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11368 CFLAGS="$(STAGE1_CFLAGS)" \
11369 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11370 LIBCFLAGS="$(LIBCFLAGS)" \
11371 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11372 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11373 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 11374 $(EXTRA_HOST_FLAGS) \
05a13254
NC
11375 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11376 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 11377 $(TARGET-stage1-gmp)
2a4cbe27 11378
a90ef4bf
JM
11379maybe-clean-stage1-gmp: clean-stage1-gmp
11380clean-stage1: clean-stage1-gmp
11381clean-stage1-gmp:
11382 @if [ $(current_stage) = stage1 ]; then \
11383 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11384 else \
11385 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11386 $(MAKE) stage1-start; \
11387 fi; \
11388 cd $(HOST_SUBDIR)/gmp && \
11389 $(MAKE) $(EXTRA_HOST_FLAGS) \
05a13254 11390 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11391@endif gmp-bootstrap
2a4cbe27 11392
56a8fe78 11393
a90ef4bf
JM
11394.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11395.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11396maybe-all-stage2-gmp:
11397maybe-clean-stage2-gmp:
11398@if gmp-bootstrap
11399maybe-all-stage2-gmp: all-stage2-gmp
11400all-stage2: all-stage2-gmp
11401TARGET-stage2-gmp = $(TARGET-gmp)
11402all-stage2-gmp: configure-stage2-gmp
11403 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11404 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11406 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11407 $(HOST_EXPORTS) \
a90ef4bf
JM
11408 $(POSTSTAGE1_HOST_EXPORTS) \
11409 cd $(HOST_SUBDIR)/gmp && \
05a13254 11410 \
a90ef4bf
JM
11411 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11412 CFLAGS="$(STAGE2_CFLAGS)" \
11413 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11414 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11415 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11416 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11417 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11418 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11419 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 11420 $(TARGET-stage2-gmp)
56a8fe78 11421
a90ef4bf
JM
11422maybe-clean-stage2-gmp: clean-stage2-gmp
11423clean-stage2: clean-stage2-gmp
11424clean-stage2-gmp:
11425 @if [ $(current_stage) = stage2 ]; then \
11426 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11427 else \
11428 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11429 $(MAKE) stage2-start; \
11430 fi; \
11431 cd $(HOST_SUBDIR)/gmp && \
05a13254 11432 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11433@endif gmp-bootstrap
56a8fe78 11434
6d389afc 11435
a90ef4bf
JM
11436.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11437.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11438maybe-all-stage3-gmp:
11439maybe-clean-stage3-gmp:
11440@if gmp-bootstrap
11441maybe-all-stage3-gmp: all-stage3-gmp
11442all-stage3: all-stage3-gmp
11443TARGET-stage3-gmp = $(TARGET-gmp)
11444all-stage3-gmp: configure-stage3-gmp
11445 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11446 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11448 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11449 $(HOST_EXPORTS) \
a90ef4bf
JM
11450 $(POSTSTAGE1_HOST_EXPORTS) \
11451 cd $(HOST_SUBDIR)/gmp && \
05a13254 11452 \
a90ef4bf
JM
11453 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11454 CFLAGS="$(STAGE3_CFLAGS)" \
11455 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11456 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11457 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11458 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11459 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11460 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11461 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 11462 $(TARGET-stage3-gmp)
6d389afc 11463
a90ef4bf
JM
11464maybe-clean-stage3-gmp: clean-stage3-gmp
11465clean-stage3: clean-stage3-gmp
11466clean-stage3-gmp:
11467 @if [ $(current_stage) = stage3 ]; then \
11468 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11469 else \
11470 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11471 $(MAKE) stage3-start; \
11472 fi; \
11473 cd $(HOST_SUBDIR)/gmp && \
05a13254 11474 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11475@endif gmp-bootstrap
6d389afc 11476
2a4cbe27 11477
a90ef4bf
JM
11478.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11479.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11480maybe-all-stage4-gmp:
11481maybe-clean-stage4-gmp:
11482@if gmp-bootstrap
11483maybe-all-stage4-gmp: all-stage4-gmp
11484all-stage4: all-stage4-gmp
11485TARGET-stage4-gmp = $(TARGET-gmp)
11486all-stage4-gmp: configure-stage4-gmp
11487 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11488 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11490 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11491 $(HOST_EXPORTS) \
a90ef4bf
JM
11492 $(POSTSTAGE1_HOST_EXPORTS) \
11493 cd $(HOST_SUBDIR)/gmp && \
05a13254 11494 \
a90ef4bf
JM
11495 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11496 CFLAGS="$(STAGE4_CFLAGS)" \
11497 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11498 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11499 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11500 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11501 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11502 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11503 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 11504 $(TARGET-stage4-gmp)
2a4cbe27 11505
a90ef4bf
JM
11506maybe-clean-stage4-gmp: clean-stage4-gmp
11507clean-stage4: clean-stage4-gmp
11508clean-stage4-gmp:
11509 @if [ $(current_stage) = stage4 ]; then \
11510 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11511 else \
11512 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11513 $(MAKE) stage4-start; \
11514 fi; \
11515 cd $(HOST_SUBDIR)/gmp && \
05a13254 11516 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11517@endif gmp-bootstrap
2a4cbe27 11518
2a4cbe27 11519
a90ef4bf
JM
11520.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11521.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11522maybe-all-stageprofile-gmp:
11523maybe-clean-stageprofile-gmp:
11524@if gmp-bootstrap
11525maybe-all-stageprofile-gmp: all-stageprofile-gmp
11526all-stageprofile: all-stageprofile-gmp
11527TARGET-stageprofile-gmp = $(TARGET-gmp)
11528all-stageprofile-gmp: configure-stageprofile-gmp
11529 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11530 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11532 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11533 $(HOST_EXPORTS) \
a90ef4bf
JM
11534 $(POSTSTAGE1_HOST_EXPORTS) \
11535 cd $(HOST_SUBDIR)/gmp && \
05a13254 11536 \
a90ef4bf
JM
11537 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11538 CFLAGS="$(STAGEprofile_CFLAGS)" \
11539 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11540 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11541 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11542 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11543 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11544 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11545 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 11546 $(TARGET-stageprofile-gmp)
2a4cbe27 11547
a90ef4bf
JM
11548maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11549clean-stageprofile: clean-stageprofile-gmp
11550clean-stageprofile-gmp:
11551 @if [ $(current_stage) = stageprofile ]; then \
11552 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11553 else \
11554 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11555 $(MAKE) stageprofile-start; \
11556 fi; \
11557 cd $(HOST_SUBDIR)/gmp && \
05a13254 11558 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11559@endif gmp-bootstrap
2a4cbe27 11560
a7254363 11561
a90ef4bf
JM
11562.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11563.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11564maybe-all-stagefeedback-gmp:
11565maybe-clean-stagefeedback-gmp:
11566@if gmp-bootstrap
11567maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11568all-stagefeedback: all-stagefeedback-gmp
11569TARGET-stagefeedback-gmp = $(TARGET-gmp)
11570all-stagefeedback-gmp: configure-stagefeedback-gmp
11571 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11572 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11574 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11575 $(HOST_EXPORTS) \
11576 $(POSTSTAGE1_HOST_EXPORTS) \
11577 cd $(HOST_SUBDIR)/gmp && \
05a13254 11578 \
a90ef4bf
JM
11579 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11580 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11581 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11582 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11583 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11584 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11585 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11586 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11587 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 11588 $(TARGET-stagefeedback-gmp)
d545f33b 11589
a90ef4bf
JM
11590maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11591clean-stagefeedback: clean-stagefeedback-gmp
11592clean-stagefeedback-gmp:
11593 @if [ $(current_stage) = stagefeedback ]; then \
11594 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11595 else \
11596 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11597 $(MAKE) stagefeedback-start; \
11598 fi; \
11599 cd $(HOST_SUBDIR)/gmp && \
05a13254 11600 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11601@endif gmp-bootstrap
d545f33b 11602
4fa63067 11603
a7254363 11604
d545f33b
PB
11605
11606
a90ef4bf
JM
11607.PHONY: check-gmp maybe-check-gmp
11608maybe-check-gmp:
11609@if gmp
11610maybe-check-gmp: check-gmp
4fa63067 11611
a90ef4bf 11612check-gmp:
0aed8855 11613 @: $(MAKE); $(unstage)
4fa63067
NN
11614 @r=`${PWD_COMMAND}`; export r; \
11615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11616 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11617 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11618 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11619
a90ef4bf 11620@endif gmp
2a4cbe27 11621
a90ef4bf
JM
11622.PHONY: install-gmp maybe-install-gmp
11623maybe-install-gmp:
11624@if gmp
11625maybe-install-gmp: install-gmp
2a4cbe27 11626
a90ef4bf 11627install-gmp:
2a4cbe27 11628
a90ef4bf 11629@endif gmp
2a4cbe27 11630
a90ef4bf
JM
11631.PHONY: install-strip-gmp maybe-install-strip-gmp
11632maybe-install-strip-gmp:
11633@if gmp
11634maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11635
a90ef4bf 11636install-strip-gmp:
9b980aa1 11637
a90ef4bf 11638@endif gmp
9b980aa1 11639
56a8fe78 11640# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11641
a90ef4bf
JM
11642.PHONY: maybe-info-gmp info-gmp
11643maybe-info-gmp:
11644@if gmp
11645maybe-info-gmp: info-gmp
4fa63067 11646
a90ef4bf
JM
11647info-gmp: \
11648 configure-gmp
11649 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11650 r=`${PWD_COMMAND}`; export r; \
11651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11652 $(HOST_EXPORTS) \
05a13254 11653 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11655 done; \
22121df0 11656 echo "Doing info in gmp"; \
a90ef4bf 11657 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11660 "RANLIB=$${RANLIB}" \
0c24b341 11661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11662 info) \
2a4cbe27
NN
11663 || exit 1
11664
a90ef4bf 11665@endif gmp
2a4cbe27 11666
a90ef4bf
JM
11667.PHONY: maybe-dvi-gmp dvi-gmp
11668maybe-dvi-gmp:
11669@if gmp
11670maybe-dvi-gmp: dvi-gmp
2a4cbe27 11671
a90ef4bf
JM
11672dvi-gmp: \
11673 configure-gmp
11674 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11675 r=`${PWD_COMMAND}`; export r; \
11676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11677 $(HOST_EXPORTS) \
05a13254 11678 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11680 done; \
22121df0 11681 echo "Doing dvi in gmp"; \
a90ef4bf 11682 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11685 "RANLIB=$${RANLIB}" \
0c24b341 11686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11687 dvi) \
2a4cbe27
NN
11688 || exit 1
11689
a90ef4bf 11690@endif gmp
2a4cbe27 11691
a90ef4bf
JM
11692.PHONY: maybe-pdf-gmp pdf-gmp
11693maybe-pdf-gmp:
11694@if gmp
11695maybe-pdf-gmp: pdf-gmp
56a8fe78 11696
a90ef4bf
JM
11697pdf-gmp: \
11698 configure-gmp
11699 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11700 r=`${PWD_COMMAND}`; export r; \
11701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11702 $(HOST_EXPORTS) \
05a13254 11703 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
11704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11705 done; \
22121df0 11706 echo "Doing pdf in gmp"; \
a90ef4bf 11707 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11710 "RANLIB=$${RANLIB}" \
0c24b341 11711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11712 pdf) \
11713 || exit 1
11714
a90ef4bf 11715@endif gmp
56a8fe78 11716
a90ef4bf
JM
11717.PHONY: maybe-html-gmp html-gmp
11718maybe-html-gmp:
11719@if gmp
11720maybe-html-gmp: html-gmp
6d389afc 11721
a90ef4bf
JM
11722html-gmp: \
11723 configure-gmp
11724 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11725 r=`${PWD_COMMAND}`; export r; \
11726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 11727 $(HOST_EXPORTS) \
05a13254 11728 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
11729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11730 done; \
22121df0 11731 echo "Doing html in gmp"; \
a90ef4bf 11732 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11735 "RANLIB=$${RANLIB}" \
0c24b341 11736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11737 html) \
11738 || exit 1
11739
a90ef4bf 11740@endif gmp
6d389afc 11741
a90ef4bf
JM
11742.PHONY: maybe-TAGS-gmp TAGS-gmp
11743maybe-TAGS-gmp:
11744@if gmp
11745maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11746
a90ef4bf
JM
11747TAGS-gmp: \
11748 configure-gmp
11749 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11750 r=`${PWD_COMMAND}`; export r; \
11751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11752 $(HOST_EXPORTS) \
05a13254 11753 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11755 done; \
22121df0 11756 echo "Doing TAGS in gmp"; \
a90ef4bf 11757 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11760 "RANLIB=$${RANLIB}" \
0c24b341 11761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11762 TAGS) \
2a4cbe27
NN
11763 || exit 1
11764
a90ef4bf 11765@endif gmp
2a4cbe27 11766
a90ef4bf
JM
11767.PHONY: maybe-install-info-gmp install-info-gmp
11768maybe-install-info-gmp:
11769@if gmp
11770maybe-install-info-gmp: install-info-gmp
2a4cbe27 11771
a90ef4bf
JM
11772install-info-gmp: \
11773 configure-gmp \
11774 info-gmp
11775 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11776 r=`${PWD_COMMAND}`; export r; \
11777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11778 $(HOST_EXPORTS) \
05a13254 11779 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11781 done; \
22121df0 11782 echo "Doing install-info in gmp"; \
a90ef4bf 11783 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11786 "RANLIB=$${RANLIB}" \
0c24b341 11787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11788 install-info) \
2a4cbe27
NN
11789 || exit 1
11790
a90ef4bf 11791@endif gmp
2a4cbe27 11792
a90ef4bf
JM
11793.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11794maybe-install-pdf-gmp:
11795@if gmp
11796maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11797
a90ef4bf
JM
11798install-pdf-gmp: \
11799 configure-gmp \
11800 pdf-gmp
11801 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11802 r=`${PWD_COMMAND}`; export r; \
11803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11804 $(HOST_EXPORTS) \
05a13254 11805 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
11806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11807 done; \
22121df0 11808 echo "Doing install-pdf in gmp"; \
a90ef4bf 11809 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11812 "RANLIB=$${RANLIB}" \
0c24b341 11813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11814 install-pdf) \
11815 || exit 1
11816
a90ef4bf 11817@endif gmp
a3ca38d2 11818
a90ef4bf
JM
11819.PHONY: maybe-install-html-gmp install-html-gmp
11820maybe-install-html-gmp:
11821@if gmp
11822maybe-install-html-gmp: install-html-gmp
108a6f8e 11823
a90ef4bf
JM
11824install-html-gmp: \
11825 configure-gmp \
11826 html-gmp
11827 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11828 r=`${PWD_COMMAND}`; export r; \
11829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11830 $(HOST_EXPORTS) \
05a13254 11831 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
11832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11833 done; \
22121df0 11834 echo "Doing install-html in gmp"; \
a90ef4bf 11835 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
11836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11838 "RANLIB=$${RANLIB}" \
0c24b341 11839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
11840 install-html) \
11841 || exit 1
11842
a90ef4bf 11843@endif gmp
108a6f8e 11844
a90ef4bf
JM
11845.PHONY: maybe-installcheck-gmp installcheck-gmp
11846maybe-installcheck-gmp:
11847@if gmp
11848maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11849
a90ef4bf
JM
11850installcheck-gmp: \
11851 configure-gmp
11852 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11853 r=`${PWD_COMMAND}`; export r; \
11854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11855 $(HOST_EXPORTS) \
05a13254 11856 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11858 done; \
22121df0 11859 echo "Doing installcheck in gmp"; \
a90ef4bf 11860 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11863 "RANLIB=$${RANLIB}" \
0c24b341 11864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11865 installcheck) \
2a4cbe27
NN
11866 || exit 1
11867
a90ef4bf 11868@endif gmp
2a4cbe27 11869
a90ef4bf
JM
11870.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11871maybe-mostlyclean-gmp:
11872@if gmp
11873maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11874
a90ef4bf
JM
11875mostlyclean-gmp:
11876 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11877 r=`${PWD_COMMAND}`; export r; \
11878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11879 $(HOST_EXPORTS) \
05a13254 11880 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11882 done; \
22121df0 11883 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11884 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11887 "RANLIB=$${RANLIB}" \
0c24b341 11888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11889 mostlyclean) \
2a4cbe27
NN
11890 || exit 1
11891
a90ef4bf 11892@endif gmp
2a4cbe27 11893
a90ef4bf
JM
11894.PHONY: maybe-clean-gmp clean-gmp
11895maybe-clean-gmp:
11896@if gmp
11897maybe-clean-gmp: clean-gmp
2a4cbe27 11898
a90ef4bf
JM
11899clean-gmp:
11900 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11901 r=`${PWD_COMMAND}`; export r; \
11902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11903 $(HOST_EXPORTS) \
05a13254 11904 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11906 done; \
22121df0 11907 echo "Doing clean in gmp"; \
a90ef4bf 11908 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11911 "RANLIB=$${RANLIB}" \
0c24b341 11912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11913 clean) \
2a4cbe27
NN
11914 || exit 1
11915
a90ef4bf 11916@endif gmp
2a4cbe27 11917
a90ef4bf
JM
11918.PHONY: maybe-distclean-gmp distclean-gmp
11919maybe-distclean-gmp:
11920@if gmp
11921maybe-distclean-gmp: distclean-gmp
2a4cbe27 11922
a90ef4bf
JM
11923distclean-gmp:
11924 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11925 r=`${PWD_COMMAND}`; export r; \
11926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11927 $(HOST_EXPORTS) \
05a13254 11928 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11930 done; \
22121df0 11931 echo "Doing distclean in gmp"; \
a90ef4bf 11932 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11935 "RANLIB=$${RANLIB}" \
0c24b341 11936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11937 distclean) \
2a4cbe27
NN
11938 || exit 1
11939
a90ef4bf 11940@endif gmp
2a4cbe27 11941
a90ef4bf
JM
11942.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
11943maybe-maintainer-clean-gmp:
11944@if gmp
11945maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 11946
a90ef4bf
JM
11947maintainer-clean-gmp:
11948 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11949 r=`${PWD_COMMAND}`; export r; \
11950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11951 $(HOST_EXPORTS) \
05a13254 11952 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11954 done; \
22121df0 11955 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 11956 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11959 "RANLIB=$${RANLIB}" \
0c24b341 11960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11961 maintainer-clean) \
2a4cbe27
NN
11962 || exit 1
11963
a90ef4bf 11964@endif gmp
2a4cbe27 11965
2a4cbe27 11966
a7254363 11967
a90ef4bf
JM
11968.PHONY: configure-mpfr maybe-configure-mpfr
11969maybe-configure-mpfr:
4f0ef2d8 11970@if gcc-bootstrap
a90ef4bf 11971configure-mpfr: stage_current
4f0ef2d8 11972@endif gcc-bootstrap
a90ef4bf
JM
11973@if mpfr
11974maybe-configure-mpfr: configure-mpfr
11975configure-mpfr:
11976 @r=`${PWD_COMMAND}`; export r; \
11977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11978 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 11979 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 11980 $(HOST_EXPORTS) \
a90ef4bf
JM
11981 echo Configuring in $(HOST_SUBDIR)/mpfr; \
11982 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 11983 case $(srcdir) in \
b00612cc 11984 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11985 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 11986 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11987 esac; \
1b6c0831
L
11988 module_srcdir=mpfr; \
11989 $(SHELL) \
11990 $$s/$$module_srcdir/configure \
11991 --srcdir=$${topdir}/$$module_srcdir \
4b900473 11992 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 11993 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 11994 || exit 1
a90ef4bf 11995@endif mpfr
d545f33b
PB
11996
11997
2a4cbe27 11998
a90ef4bf
JM
11999.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
12000maybe-configure-stage1-mpfr:
12001@if mpfr-bootstrap
12002maybe-configure-stage1-mpfr: configure-stage1-mpfr
12003configure-stage1-mpfr:
12004 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12005 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12006 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12008 TFLAGS="$(STAGE1_TFLAGS)"; \
12009 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12010 $(HOST_EXPORTS) \
a90ef4bf
JM
12011 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12012 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12013 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12014 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
12015 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12016 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12017 case $(srcdir) in \
12018 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12019 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12020 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12021 esac; \
1b6c0831
L
12022 module_srcdir=mpfr; \
12023 $(SHELL) $$s/$$module_srcdir/configure \
12024 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12025 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12026 --target=${target_alias} \
12027 \
a90ef4bf
JM
12028 $(STAGE1_CONFIGURE_FLAGS) \
12029 --disable-shared @extra_mpfr_configure_flags@
12030@endif mpfr-bootstrap
2a4cbe27 12031
a90ef4bf
JM
12032.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
12033maybe-configure-stage2-mpfr:
12034@if mpfr-bootstrap
12035maybe-configure-stage2-mpfr: configure-stage2-mpfr
12036configure-stage2-mpfr:
12037 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12038 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12039 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12041 TFLAGS="$(STAGE2_TFLAGS)"; \
12042 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12043 $(HOST_EXPORTS) \
a90ef4bf
JM
12044 $(POSTSTAGE1_HOST_EXPORTS) \
12045 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12046 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12047 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12048 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
12049 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12050 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12051 case $(srcdir) in \
12052 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12053 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12054 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12055 esac; \
1b6c0831
L
12056 module_srcdir=mpfr; \
12057 $(SHELL) $$s/$$module_srcdir/configure \
12058 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12059 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12060 --target=${target_alias} \
22121df0 12061 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12062 $(STAGE2_CONFIGURE_FLAGS) \
12063 --disable-shared @extra_mpfr_configure_flags@
12064@endif mpfr-bootstrap
9b980aa1 12065
a90ef4bf
JM
12066.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12067maybe-configure-stage3-mpfr:
12068@if mpfr-bootstrap
12069maybe-configure-stage3-mpfr: configure-stage3-mpfr
12070configure-stage3-mpfr:
12071 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12072 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12073 @r=`${PWD_COMMAND}`; export r; \
12074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12075 TFLAGS="$(STAGE3_TFLAGS)"; \
12076 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12077 $(HOST_EXPORTS) \
a90ef4bf
JM
12078 $(POSTSTAGE1_HOST_EXPORTS) \
12079 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12080 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12081 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12082 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12083 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12084 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12085 case $(srcdir) in \
12086 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12087 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12088 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12089 esac; \
1b6c0831
L
12090 module_srcdir=mpfr; \
12091 $(SHELL) $$s/$$module_srcdir/configure \
12092 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12093 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12094 --target=${target_alias} \
22121df0 12095 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12096 $(STAGE3_CONFIGURE_FLAGS) \
12097 --disable-shared @extra_mpfr_configure_flags@
12098@endif mpfr-bootstrap
2a4cbe27 12099
a90ef4bf
JM
12100.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12101maybe-configure-stage4-mpfr:
12102@if mpfr-bootstrap
12103maybe-configure-stage4-mpfr: configure-stage4-mpfr
12104configure-stage4-mpfr:
12105 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12106 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12107 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12109 TFLAGS="$(STAGE4_TFLAGS)"; \
12110 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12111 $(HOST_EXPORTS) \
a90ef4bf
JM
12112 $(POSTSTAGE1_HOST_EXPORTS) \
12113 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12114 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12115 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12116 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12117 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12118 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12119 case $(srcdir) in \
12120 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12121 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12122 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12123 esac; \
1b6c0831
L
12124 module_srcdir=mpfr; \
12125 $(SHELL) $$s/$$module_srcdir/configure \
12126 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12127 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12128 --target=${target_alias} \
22121df0 12129 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12130 $(STAGE4_CONFIGURE_FLAGS) \
12131 --disable-shared @extra_mpfr_configure_flags@
12132@endif mpfr-bootstrap
2a4cbe27 12133
a90ef4bf
JM
12134.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12135maybe-configure-stageprofile-mpfr:
12136@if mpfr-bootstrap
12137maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12138configure-stageprofile-mpfr:
12139 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12140 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12141 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12143 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12144 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12145 $(HOST_EXPORTS) \
a90ef4bf
JM
12146 $(POSTSTAGE1_HOST_EXPORTS) \
12147 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12148 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12149 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12150 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12151 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12152 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12153 case $(srcdir) in \
12154 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12155 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12156 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12157 esac; \
1b6c0831
L
12158 module_srcdir=mpfr; \
12159 $(SHELL) $$s/$$module_srcdir/configure \
12160 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12161 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12162 --target=${target_alias} \
22121df0 12163 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12164 $(STAGEprofile_CONFIGURE_FLAGS) \
12165 --disable-shared @extra_mpfr_configure_flags@
12166@endif mpfr-bootstrap
56a8fe78 12167
a90ef4bf
JM
12168.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12169maybe-configure-stagefeedback-mpfr:
12170@if mpfr-bootstrap
12171maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12172configure-stagefeedback-mpfr:
12173 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12174 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12175 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12177 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12178 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12179 $(HOST_EXPORTS) \
a90ef4bf
JM
12180 $(POSTSTAGE1_HOST_EXPORTS) \
12181 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12182 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12183 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12184 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12185 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12186 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12187 case $(srcdir) in \
12188 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12189 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12190 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12191 esac; \
1b6c0831
L
12192 module_srcdir=mpfr; \
12193 $(SHELL) $$s/$$module_srcdir/configure \
12194 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12195 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12196 --target=${target_alias} \
22121df0 12197 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12198 $(STAGEfeedback_CONFIGURE_FLAGS) \
12199 --disable-shared @extra_mpfr_configure_flags@
12200@endif mpfr-bootstrap
56a8fe78 12201
6d389afc 12202
6d389afc 12203
6d389afc 12204
2a4cbe27 12205
a90ef4bf
JM
12206.PHONY: all-mpfr maybe-all-mpfr
12207maybe-all-mpfr:
12208@if gcc-bootstrap
12209all-mpfr: stage_current
12210@endif gcc-bootstrap
12211@if mpfr
12212TARGET-mpfr=all
12213maybe-all-mpfr: all-mpfr
12214all-mpfr: configure-mpfr
12215 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12217 $(HOST_EXPORTS) \
12218 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12219 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12220 $(TARGET-mpfr))
12221@endif mpfr
2a4cbe27
NN
12222
12223
2a4cbe27 12224
a90ef4bf
JM
12225.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12226.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12227maybe-all-stage1-mpfr:
12228maybe-clean-stage1-mpfr:
12229@if mpfr-bootstrap
12230maybe-all-stage1-mpfr: all-stage1-mpfr
12231all-stage1: all-stage1-mpfr
12232TARGET-stage1-mpfr = $(TARGET-mpfr)
12233all-stage1-mpfr: configure-stage1-mpfr
12234 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12235 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12237 TFLAGS="$(STAGE1_TFLAGS)"; \
12238 $(HOST_EXPORTS) \
12239 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12240 \
a90ef4bf
JM
12241 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12242 CFLAGS="$(STAGE1_CFLAGS)" \
12243 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12244 LIBCFLAGS="$(LIBCFLAGS)" \
12245 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12246 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12247 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 12248 $(EXTRA_HOST_FLAGS) \
ce5e165e 12249 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12250 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 12251 $(TARGET-stage1-mpfr)
2a4cbe27 12252
a90ef4bf
JM
12253maybe-clean-stage1-mpfr: clean-stage1-mpfr
12254clean-stage1: clean-stage1-mpfr
12255clean-stage1-mpfr:
12256 @if [ $(current_stage) = stage1 ]; then \
12257 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12258 else \
12259 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12260 $(MAKE) stage1-start; \
12261 fi; \
12262 cd $(HOST_SUBDIR)/mpfr && \
12263 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce5e165e 12264 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12265@endif mpfr-bootstrap
2a4cbe27 12266
a3ca38d2 12267
a90ef4bf
JM
12268.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12269.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12270maybe-all-stage2-mpfr:
12271maybe-clean-stage2-mpfr:
12272@if mpfr-bootstrap
12273maybe-all-stage2-mpfr: all-stage2-mpfr
12274all-stage2: all-stage2-mpfr
12275TARGET-stage2-mpfr = $(TARGET-mpfr)
12276all-stage2-mpfr: configure-stage2-mpfr
12277 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12278 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12280 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12281 $(HOST_EXPORTS) \
a90ef4bf
JM
12282 $(POSTSTAGE1_HOST_EXPORTS) \
12283 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12284 \
a90ef4bf
JM
12285 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12286 CFLAGS="$(STAGE2_CFLAGS)" \
12287 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12288 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12289 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12290 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12291 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12292 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12293 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 12294 $(TARGET-stage2-mpfr)
a3ca38d2 12295
a90ef4bf
JM
12296maybe-clean-stage2-mpfr: clean-stage2-mpfr
12297clean-stage2: clean-stage2-mpfr
12298clean-stage2-mpfr:
12299 @if [ $(current_stage) = stage2 ]; then \
12300 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12301 else \
12302 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12303 $(MAKE) stage2-start; \
12304 fi; \
12305 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12306 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12307@endif mpfr-bootstrap
a3ca38d2 12308
108a6f8e 12309
a90ef4bf
JM
12310.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12311.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12312maybe-all-stage3-mpfr:
12313maybe-clean-stage3-mpfr:
12314@if mpfr-bootstrap
12315maybe-all-stage3-mpfr: all-stage3-mpfr
12316all-stage3: all-stage3-mpfr
12317TARGET-stage3-mpfr = $(TARGET-mpfr)
12318all-stage3-mpfr: configure-stage3-mpfr
12319 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12320 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12322 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12323 $(HOST_EXPORTS) \
a90ef4bf
JM
12324 $(POSTSTAGE1_HOST_EXPORTS) \
12325 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12326 \
a90ef4bf
JM
12327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12328 CFLAGS="$(STAGE3_CFLAGS)" \
12329 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12330 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12331 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12332 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12333 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12334 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12335 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 12336 $(TARGET-stage3-mpfr)
108a6f8e 12337
a90ef4bf
JM
12338maybe-clean-stage3-mpfr: clean-stage3-mpfr
12339clean-stage3: clean-stage3-mpfr
12340clean-stage3-mpfr:
12341 @if [ $(current_stage) = stage3 ]; then \
12342 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12343 else \
12344 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12345 $(MAKE) stage3-start; \
12346 fi; \
12347 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12348 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12349@endif mpfr-bootstrap
108a6f8e 12350
2a4cbe27 12351
a90ef4bf
JM
12352.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12353.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12354maybe-all-stage4-mpfr:
12355maybe-clean-stage4-mpfr:
12356@if mpfr-bootstrap
12357maybe-all-stage4-mpfr: all-stage4-mpfr
12358all-stage4: all-stage4-mpfr
12359TARGET-stage4-mpfr = $(TARGET-mpfr)
12360all-stage4-mpfr: configure-stage4-mpfr
12361 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12362 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12364 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12365 $(HOST_EXPORTS) \
a90ef4bf
JM
12366 $(POSTSTAGE1_HOST_EXPORTS) \
12367 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12368 \
a90ef4bf
JM
12369 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12370 CFLAGS="$(STAGE4_CFLAGS)" \
12371 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12372 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12373 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12374 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12375 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12376 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12377 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 12378 $(TARGET-stage4-mpfr)
2a4cbe27 12379
a90ef4bf
JM
12380maybe-clean-stage4-mpfr: clean-stage4-mpfr
12381clean-stage4: clean-stage4-mpfr
12382clean-stage4-mpfr:
12383 @if [ $(current_stage) = stage4 ]; then \
12384 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12385 else \
12386 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12387 $(MAKE) stage4-start; \
12388 fi; \
12389 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12390 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12391@endif mpfr-bootstrap
2a4cbe27 12392
2a4cbe27 12393
a90ef4bf
JM
12394.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12395.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12396maybe-all-stageprofile-mpfr:
12397maybe-clean-stageprofile-mpfr:
12398@if mpfr-bootstrap
12399maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12400all-stageprofile: all-stageprofile-mpfr
12401TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12402all-stageprofile-mpfr: configure-stageprofile-mpfr
12403 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12404 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12406 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12407 $(HOST_EXPORTS) \
a90ef4bf
JM
12408 $(POSTSTAGE1_HOST_EXPORTS) \
12409 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12410 \
a90ef4bf
JM
12411 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12412 CFLAGS="$(STAGEprofile_CFLAGS)" \
12413 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12414 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12415 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12416 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12417 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12418 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12419 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 12420 $(TARGET-stageprofile-mpfr)
2a4cbe27 12421
a90ef4bf
JM
12422maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12423clean-stageprofile: clean-stageprofile-mpfr
12424clean-stageprofile-mpfr:
12425 @if [ $(current_stage) = stageprofile ]; then \
12426 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12427 else \
12428 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12429 $(MAKE) stageprofile-start; \
12430 fi; \
12431 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12432 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12433@endif mpfr-bootstrap
2a4cbe27 12434
a7254363 12435
a90ef4bf
JM
12436.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12437.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12438maybe-all-stagefeedback-mpfr:
12439maybe-clean-stagefeedback-mpfr:
12440@if mpfr-bootstrap
12441maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12442all-stagefeedback: all-stagefeedback-mpfr
12443TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12444all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12445 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12446 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12448 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12449 $(HOST_EXPORTS) \
12450 $(POSTSTAGE1_HOST_EXPORTS) \
12451 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12452 \
a90ef4bf
JM
12453 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12454 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12455 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12456 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12457 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12458 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12459 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12460 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12461 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 12462 $(TARGET-stagefeedback-mpfr)
d545f33b 12463
a90ef4bf
JM
12464maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12465clean-stagefeedback: clean-stagefeedback-mpfr
12466clean-stagefeedback-mpfr:
12467 @if [ $(current_stage) = stagefeedback ]; then \
12468 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12469 else \
12470 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12471 $(MAKE) stagefeedback-start; \
12472 fi; \
12473 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12474 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12475@endif mpfr-bootstrap
d545f33b 12476
2a4cbe27 12477
a7254363 12478
d545f33b
PB
12479
12480
a90ef4bf
JM
12481.PHONY: check-mpfr maybe-check-mpfr
12482maybe-check-mpfr:
12483@if mpfr
12484maybe-check-mpfr: check-mpfr
2a4cbe27 12485
a90ef4bf 12486check-mpfr:
0aed8855 12487 @: $(MAKE); $(unstage)
4fa63067 12488 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12490 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12491 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12492 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12493
a90ef4bf 12494@endif mpfr
2a4cbe27 12495
a90ef4bf
JM
12496.PHONY: install-mpfr maybe-install-mpfr
12497maybe-install-mpfr:
12498@if mpfr
12499maybe-install-mpfr: install-mpfr
2a4cbe27 12500
a90ef4bf 12501install-mpfr:
4fa63067 12502
a90ef4bf 12503@endif mpfr
4fa63067 12504
a90ef4bf
JM
12505.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12506maybe-install-strip-mpfr:
12507@if mpfr
12508maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12509
a90ef4bf 12510install-strip-mpfr:
9b980aa1 12511
a90ef4bf 12512@endif mpfr
9b980aa1 12513
56a8fe78 12514# Other targets (info, dvi, pdf, etc.)
4fa63067 12515
a90ef4bf
JM
12516.PHONY: maybe-info-mpfr info-mpfr
12517maybe-info-mpfr:
12518@if mpfr
12519maybe-info-mpfr: info-mpfr
4fa63067 12520
a90ef4bf
JM
12521info-mpfr: \
12522 configure-mpfr
12523 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12524 r=`${PWD_COMMAND}`; export r; \
12525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12526 $(HOST_EXPORTS) \
ce5e165e 12527 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12529 done; \
22121df0 12530 echo "Doing info in mpfr"; \
a90ef4bf 12531 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12534 "RANLIB=$${RANLIB}" \
0c24b341 12535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12536 info) \
2a4cbe27
NN
12537 || exit 1
12538
a90ef4bf 12539@endif mpfr
2a4cbe27 12540
a90ef4bf
JM
12541.PHONY: maybe-dvi-mpfr dvi-mpfr
12542maybe-dvi-mpfr:
12543@if mpfr
12544maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12545
a90ef4bf
JM
12546dvi-mpfr: \
12547 configure-mpfr
12548 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12549 r=`${PWD_COMMAND}`; export r; \
12550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12551 $(HOST_EXPORTS) \
ce5e165e 12552 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12554 done; \
22121df0 12555 echo "Doing dvi in mpfr"; \
a90ef4bf 12556 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12559 "RANLIB=$${RANLIB}" \
0c24b341 12560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12561 dvi) \
2a4cbe27
NN
12562 || exit 1
12563
a90ef4bf 12564@endif mpfr
2a4cbe27 12565
a90ef4bf
JM
12566.PHONY: maybe-pdf-mpfr pdf-mpfr
12567maybe-pdf-mpfr:
12568@if mpfr
12569maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12570
a90ef4bf
JM
12571pdf-mpfr: \
12572 configure-mpfr
12573 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12574 r=`${PWD_COMMAND}`; export r; \
12575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12576 $(HOST_EXPORTS) \
ce5e165e 12577 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
12578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12579 done; \
22121df0 12580 echo "Doing pdf in mpfr"; \
a90ef4bf 12581 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12584 "RANLIB=$${RANLIB}" \
0c24b341 12585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12586 pdf) \
12587 || exit 1
12588
a90ef4bf 12589@endif mpfr
56a8fe78 12590
a90ef4bf
JM
12591.PHONY: maybe-html-mpfr html-mpfr
12592maybe-html-mpfr:
12593@if mpfr
12594maybe-html-mpfr: html-mpfr
6d389afc 12595
a90ef4bf
JM
12596html-mpfr: \
12597 configure-mpfr
12598 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12599 r=`${PWD_COMMAND}`; export r; \
12600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 12601 $(HOST_EXPORTS) \
ce5e165e 12602 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
12603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12604 done; \
22121df0 12605 echo "Doing html in mpfr"; \
a90ef4bf 12606 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12609 "RANLIB=$${RANLIB}" \
0c24b341 12610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12611 html) \
12612 || exit 1
12613
a90ef4bf 12614@endif mpfr
6d389afc 12615
a90ef4bf
JM
12616.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12617maybe-TAGS-mpfr:
12618@if mpfr
12619maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12620
a90ef4bf
JM
12621TAGS-mpfr: \
12622 configure-mpfr
12623 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12624 r=`${PWD_COMMAND}`; export r; \
12625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12626 $(HOST_EXPORTS) \
ce5e165e 12627 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12629 done; \
22121df0 12630 echo "Doing TAGS in mpfr"; \
a90ef4bf 12631 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12634 "RANLIB=$${RANLIB}" \
0c24b341 12635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12636 TAGS) \
2a4cbe27
NN
12637 || exit 1
12638
a90ef4bf 12639@endif mpfr
2a4cbe27 12640
a90ef4bf
JM
12641.PHONY: maybe-install-info-mpfr install-info-mpfr
12642maybe-install-info-mpfr:
12643@if mpfr
12644maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12645
a90ef4bf
JM
12646install-info-mpfr: \
12647 configure-mpfr \
12648 info-mpfr
12649 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12650 r=`${PWD_COMMAND}`; export r; \
12651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12652 $(HOST_EXPORTS) \
ce5e165e 12653 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12655 done; \
22121df0 12656 echo "Doing install-info in mpfr"; \
a90ef4bf 12657 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12660 "RANLIB=$${RANLIB}" \
0c24b341 12661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12662 install-info) \
2a4cbe27
NN
12663 || exit 1
12664
a90ef4bf 12665@endif mpfr
2a4cbe27 12666
a90ef4bf
JM
12667.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12668maybe-install-pdf-mpfr:
12669@if mpfr
12670maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12671
a90ef4bf
JM
12672install-pdf-mpfr: \
12673 configure-mpfr \
12674 pdf-mpfr
12675 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12676 r=`${PWD_COMMAND}`; export r; \
12677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12678 $(HOST_EXPORTS) \
ce5e165e 12679 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
12680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12681 done; \
22121df0 12682 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12683 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12686 "RANLIB=$${RANLIB}" \
0c24b341 12687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12688 install-pdf) \
12689 || exit 1
12690
a90ef4bf 12691@endif mpfr
a3ca38d2 12692
a90ef4bf
JM
12693.PHONY: maybe-install-html-mpfr install-html-mpfr
12694maybe-install-html-mpfr:
12695@if mpfr
12696maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12697
a90ef4bf
JM
12698install-html-mpfr: \
12699 configure-mpfr \
12700 html-mpfr
12701 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12702 r=`${PWD_COMMAND}`; export r; \
12703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12704 $(HOST_EXPORTS) \
ce5e165e 12705 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
12706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12707 done; \
22121df0 12708 echo "Doing install-html in mpfr"; \
a90ef4bf 12709 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
12710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12712 "RANLIB=$${RANLIB}" \
0c24b341 12713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
12714 install-html) \
12715 || exit 1
12716
a90ef4bf 12717@endif mpfr
108a6f8e 12718
a90ef4bf
JM
12719.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12720maybe-installcheck-mpfr:
12721@if mpfr
12722maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12723
a90ef4bf
JM
12724installcheck-mpfr: \
12725 configure-mpfr
12726 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12727 r=`${PWD_COMMAND}`; export r; \
12728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12729 $(HOST_EXPORTS) \
ce5e165e 12730 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12732 done; \
22121df0 12733 echo "Doing installcheck in mpfr"; \
a90ef4bf 12734 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12737 "RANLIB=$${RANLIB}" \
0c24b341 12738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12739 installcheck) \
2a4cbe27
NN
12740 || exit 1
12741
a90ef4bf 12742@endif mpfr
2a4cbe27 12743
a90ef4bf
JM
12744.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12745maybe-mostlyclean-mpfr:
12746@if mpfr
12747maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12748
a90ef4bf
JM
12749mostlyclean-mpfr:
12750 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12751 r=`${PWD_COMMAND}`; export r; \
12752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12753 $(HOST_EXPORTS) \
ce5e165e 12754 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12756 done; \
22121df0 12757 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12758 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12761 "RANLIB=$${RANLIB}" \
0c24b341 12762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12763 mostlyclean) \
2a4cbe27
NN
12764 || exit 1
12765
a90ef4bf 12766@endif mpfr
2a4cbe27 12767
a90ef4bf
JM
12768.PHONY: maybe-clean-mpfr clean-mpfr
12769maybe-clean-mpfr:
12770@if mpfr
12771maybe-clean-mpfr: clean-mpfr
2a4cbe27 12772
a90ef4bf
JM
12773clean-mpfr:
12774 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12775 r=`${PWD_COMMAND}`; export r; \
12776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12777 $(HOST_EXPORTS) \
ce5e165e 12778 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12780 done; \
22121df0 12781 echo "Doing clean in mpfr"; \
a90ef4bf 12782 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12785 "RANLIB=$${RANLIB}" \
0c24b341 12786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12787 clean) \
2a4cbe27
NN
12788 || exit 1
12789
a90ef4bf 12790@endif mpfr
2a4cbe27 12791
a90ef4bf
JM
12792.PHONY: maybe-distclean-mpfr distclean-mpfr
12793maybe-distclean-mpfr:
12794@if mpfr
12795maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12796
a90ef4bf
JM
12797distclean-mpfr:
12798 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12799 r=`${PWD_COMMAND}`; export r; \
12800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12801 $(HOST_EXPORTS) \
ce5e165e 12802 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12804 done; \
22121df0 12805 echo "Doing distclean in mpfr"; \
a90ef4bf 12806 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12809 "RANLIB=$${RANLIB}" \
0c24b341 12810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12811 distclean) \
2a4cbe27
NN
12812 || exit 1
12813
a90ef4bf 12814@endif mpfr
2a4cbe27 12815
a90ef4bf
JM
12816.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12817maybe-maintainer-clean-mpfr:
12818@if mpfr
12819maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12820
a90ef4bf
JM
12821maintainer-clean-mpfr:
12822 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12823 r=`${PWD_COMMAND}`; export r; \
12824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12825 $(HOST_EXPORTS) \
ce5e165e 12826 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12828 done; \
22121df0 12829 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12830 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12833 "RANLIB=$${RANLIB}" \
0c24b341 12834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12835 maintainer-clean) \
2a4cbe27
NN
12836 || exit 1
12837
a90ef4bf 12838@endif mpfr
2a4cbe27 12839
2a4cbe27 12840
a7254363 12841
a90ef4bf
JM
12842.PHONY: configure-mpc maybe-configure-mpc
12843maybe-configure-mpc:
4f0ef2d8 12844@if gcc-bootstrap
a90ef4bf 12845configure-mpc: stage_current
4f0ef2d8 12846@endif gcc-bootstrap
a90ef4bf
JM
12847@if mpc
12848maybe-configure-mpc: configure-mpc
12849configure-mpc:
c52c6897 12850 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12852 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12853 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12854 $(HOST_EXPORTS) \
a90ef4bf
JM
12855 echo Configuring in $(HOST_SUBDIR)/mpc; \
12856 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12857 case $(srcdir) in \
b00612cc 12858 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12859 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12860 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12861 esac; \
1b6c0831
L
12862 module_srcdir=mpc; \
12863 $(SHELL) \
12864 $$s/$$module_srcdir/configure \
12865 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12866 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e3f56a99 12867 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12868 || exit 1
a90ef4bf 12869@endif mpc
d545f33b
PB
12870
12871
d3ed111c 12872
a90ef4bf
JM
12873.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12874maybe-configure-stage1-mpc:
12875@if mpc-bootstrap
12876maybe-configure-stage1-mpc: configure-stage1-mpc
12877configure-stage1-mpc:
12878 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12879 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12880 @r=`${PWD_COMMAND}`; export r; \
12881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12882 TFLAGS="$(STAGE1_TFLAGS)"; \
12883 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12884 $(HOST_EXPORTS) \
a90ef4bf
JM
12885 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12886 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12887 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12888 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12889 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12890 cd $(HOST_SUBDIR)/mpc || exit 1; \
12891 case $(srcdir) in \
12892 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12893 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12894 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12895 esac; \
1b6c0831
L
12896 module_srcdir=mpc; \
12897 $(SHELL) $$s/$$module_srcdir/configure \
12898 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12899 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12900 --target=${target_alias} \
12901 \
a90ef4bf 12902 $(STAGE1_CONFIGURE_FLAGS) \
e3f56a99 12903 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12904@endif mpc-bootstrap
d3ed111c 12905
a90ef4bf
JM
12906.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
12907maybe-configure-stage2-mpc:
12908@if mpc-bootstrap
12909maybe-configure-stage2-mpc: configure-stage2-mpc
12910configure-stage2-mpc:
12911 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12912 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12913 @r=`${PWD_COMMAND}`; export r; \
12914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12915 TFLAGS="$(STAGE2_TFLAGS)"; \
12916 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12917 $(HOST_EXPORTS) \
a90ef4bf
JM
12918 $(POSTSTAGE1_HOST_EXPORTS) \
12919 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12920 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12921 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12922 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
12923 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12924 cd $(HOST_SUBDIR)/mpc || exit 1; \
12925 case $(srcdir) in \
12926 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12927 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12928 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12929 esac; \
1b6c0831
L
12930 module_srcdir=mpc; \
12931 $(SHELL) $$s/$$module_srcdir/configure \
12932 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12933 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12934 --target=${target_alias} \
22121df0 12935 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12936 $(STAGE2_CONFIGURE_FLAGS) \
e3f56a99 12937 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12938@endif mpc-bootstrap
9b980aa1 12939
a90ef4bf
JM
12940.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
12941maybe-configure-stage3-mpc:
12942@if mpc-bootstrap
12943maybe-configure-stage3-mpc: configure-stage3-mpc
12944configure-stage3-mpc:
12945 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12946 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
12947 @r=`${PWD_COMMAND}`; export r; \
12948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12949 TFLAGS="$(STAGE3_TFLAGS)"; \
12950 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 12951 $(HOST_EXPORTS) \
a90ef4bf
JM
12952 $(POSTSTAGE1_HOST_EXPORTS) \
12953 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12954 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12955 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12956 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
12957 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12958 cd $(HOST_SUBDIR)/mpc || exit 1; \
12959 case $(srcdir) in \
12960 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12961 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12962 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12963 esac; \
1b6c0831
L
12964 module_srcdir=mpc; \
12965 $(SHELL) $$s/$$module_srcdir/configure \
12966 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12967 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12968 --target=${target_alias} \
22121df0 12969 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 12970 $(STAGE3_CONFIGURE_FLAGS) \
e3f56a99 12971 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 12972@endif mpc-bootstrap
d3ed111c 12973
a90ef4bf
JM
12974.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
12975maybe-configure-stage4-mpc:
12976@if mpc-bootstrap
12977maybe-configure-stage4-mpc: configure-stage4-mpc
12978configure-stage4-mpc:
12979 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12980 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
12981 @r=`${PWD_COMMAND}`; export r; \
12982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12983 TFLAGS="$(STAGE4_TFLAGS)"; \
12984 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
12985 $(HOST_EXPORTS) \
12986 $(POSTSTAGE1_HOST_EXPORTS) \
12987 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12988 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12989 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12990 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
12991 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12992 cd $(HOST_SUBDIR)/mpc || exit 1; \
12993 case $(srcdir) in \
12994 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12995 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12996 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12997 esac; \
1b6c0831
L
12998 module_srcdir=mpc; \
12999 $(SHELL) $$s/$$module_srcdir/configure \
13000 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13001 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13002 --target=${target_alias} \
22121df0 13003 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13004 $(STAGE4_CONFIGURE_FLAGS) \
e3f56a99 13005 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13006@endif mpc-bootstrap
13007
13008.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
13009maybe-configure-stageprofile-mpc:
13010@if mpc-bootstrap
13011maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
13012configure-stageprofile-mpc:
13013 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13014 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13015 @r=`${PWD_COMMAND}`; export r; \
13016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13017 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13018 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13019 $(HOST_EXPORTS) \
13020 $(POSTSTAGE1_HOST_EXPORTS) \
13021 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13022 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13023 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13024 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
13025 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13026 cd $(HOST_SUBDIR)/mpc || exit 1; \
13027 case $(srcdir) in \
13028 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13029 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13030 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13031 esac; \
1b6c0831
L
13032 module_srcdir=mpc; \
13033 $(SHELL) $$s/$$module_srcdir/configure \
13034 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13035 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13036 --target=${target_alias} \
22121df0 13037 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13038 $(STAGEprofile_CONFIGURE_FLAGS) \
e3f56a99 13039 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13040@endif mpc-bootstrap
13041
13042.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
13043maybe-configure-stagefeedback-mpc:
13044@if mpc-bootstrap
13045maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
13046configure-stagefeedback-mpc:
13047 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13048 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13049 @r=`${PWD_COMMAND}`; export r; \
13050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13051 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13052 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13053 $(HOST_EXPORTS) \
13054 $(POSTSTAGE1_HOST_EXPORTS) \
13055 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13056 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13057 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13058 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
13059 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13060 cd $(HOST_SUBDIR)/mpc || exit 1; \
13061 case $(srcdir) in \
13062 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13063 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13064 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13065 esac; \
1b6c0831
L
13066 module_srcdir=mpc; \
13067 $(SHELL) $$s/$$module_srcdir/configure \
13068 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13069 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13070 --target=${target_alias} \
22121df0 13071 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13072 $(STAGEfeedback_CONFIGURE_FLAGS) \
e3f56a99 13073 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13074@endif mpc-bootstrap
13075
13076
13077
13078
13079
13080.PHONY: all-mpc maybe-all-mpc
13081maybe-all-mpc:
13082@if gcc-bootstrap
13083all-mpc: stage_current
13084@endif gcc-bootstrap
13085@if mpc
13086TARGET-mpc=all
13087maybe-all-mpc: all-mpc
13088all-mpc: configure-mpc
13089 @r=`${PWD_COMMAND}`; export r; \
13090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13091 $(HOST_EXPORTS) \
13092 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13093 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13094 $(TARGET-mpc))
13095@endif mpc
13096
13097
13098
13099.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13100.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13101maybe-all-stage1-mpc:
13102maybe-clean-stage1-mpc:
13103@if mpc-bootstrap
13104maybe-all-stage1-mpc: all-stage1-mpc
13105all-stage1: all-stage1-mpc
13106TARGET-stage1-mpc = $(TARGET-mpc)
13107all-stage1-mpc: configure-stage1-mpc
13108 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13109 @r=`${PWD_COMMAND}`; export r; \
13110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13111 TFLAGS="$(STAGE1_TFLAGS)"; \
13112 $(HOST_EXPORTS) \
13113 cd $(HOST_SUBDIR)/mpc && \
05a13254 13114 \
a90ef4bf
JM
13115 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13116 CFLAGS="$(STAGE1_CFLAGS)" \
13117 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13118 LIBCFLAGS="$(LIBCFLAGS)" \
13119 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13120 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13121 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13122 $(EXTRA_HOST_FLAGS) \
13123 $(STAGE1_FLAGS_TO_PASS) \
05a13254 13124 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
13125 $(TARGET-stage1-mpc)
13126
13127maybe-clean-stage1-mpc: clean-stage1-mpc
13128clean-stage1: clean-stage1-mpc
13129clean-stage1-mpc:
13130 @if [ $(current_stage) = stage1 ]; then \
13131 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13132 else \
13133 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13134 $(MAKE) stage1-start; \
13135 fi; \
13136 cd $(HOST_SUBDIR)/mpc && \
13137 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13138 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13139@endif mpc-bootstrap
13140
13141
13142.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13143.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13144maybe-all-stage2-mpc:
13145maybe-clean-stage2-mpc:
13146@if mpc-bootstrap
13147maybe-all-stage2-mpc: all-stage2-mpc
13148all-stage2: all-stage2-mpc
13149TARGET-stage2-mpc = $(TARGET-mpc)
13150all-stage2-mpc: configure-stage2-mpc
13151 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13152 @r=`${PWD_COMMAND}`; export r; \
13153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13154 TFLAGS="$(STAGE2_TFLAGS)"; \
13155 $(HOST_EXPORTS) \
13156 $(POSTSTAGE1_HOST_EXPORTS) \
13157 cd $(HOST_SUBDIR)/mpc && \
05a13254 13158 \
a90ef4bf
JM
13159 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13160 CFLAGS="$(STAGE2_CFLAGS)" \
13161 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13162 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13163 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13164 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13165 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13166 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13167 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
13168 $(TARGET-stage2-mpc)
13169
13170maybe-clean-stage2-mpc: clean-stage2-mpc
13171clean-stage2: clean-stage2-mpc
13172clean-stage2-mpc:
13173 @if [ $(current_stage) = stage2 ]; then \
13174 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13175 else \
13176 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13177 $(MAKE) stage2-start; \
13178 fi; \
13179 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13180 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13181@endif mpc-bootstrap
13182
13183
13184.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13185.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13186maybe-all-stage3-mpc:
13187maybe-clean-stage3-mpc:
13188@if mpc-bootstrap
13189maybe-all-stage3-mpc: all-stage3-mpc
13190all-stage3: all-stage3-mpc
13191TARGET-stage3-mpc = $(TARGET-mpc)
13192all-stage3-mpc: configure-stage3-mpc
13193 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13194 @r=`${PWD_COMMAND}`; export r; \
13195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13196 TFLAGS="$(STAGE3_TFLAGS)"; \
13197 $(HOST_EXPORTS) \
13198 $(POSTSTAGE1_HOST_EXPORTS) \
13199 cd $(HOST_SUBDIR)/mpc && \
05a13254 13200 \
a90ef4bf
JM
13201 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13202 CFLAGS="$(STAGE3_CFLAGS)" \
13203 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13204 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13205 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13206 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13207 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13208 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13209 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
13210 $(TARGET-stage3-mpc)
13211
13212maybe-clean-stage3-mpc: clean-stage3-mpc
13213clean-stage3: clean-stage3-mpc
13214clean-stage3-mpc:
13215 @if [ $(current_stage) = stage3 ]; then \
13216 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13217 else \
13218 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13219 $(MAKE) stage3-start; \
13220 fi; \
13221 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13222 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13223@endif mpc-bootstrap
13224
13225
13226.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13227.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13228maybe-all-stage4-mpc:
13229maybe-clean-stage4-mpc:
13230@if mpc-bootstrap
13231maybe-all-stage4-mpc: all-stage4-mpc
13232all-stage4: all-stage4-mpc
13233TARGET-stage4-mpc = $(TARGET-mpc)
13234all-stage4-mpc: configure-stage4-mpc
13235 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13236 @r=`${PWD_COMMAND}`; export r; \
13237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13238 TFLAGS="$(STAGE4_TFLAGS)"; \
13239 $(HOST_EXPORTS) \
13240 $(POSTSTAGE1_HOST_EXPORTS) \
13241 cd $(HOST_SUBDIR)/mpc && \
05a13254 13242 \
a90ef4bf
JM
13243 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13244 CFLAGS="$(STAGE4_CFLAGS)" \
13245 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13246 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13247 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13248 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13249 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13250 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13251 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
13252 $(TARGET-stage4-mpc)
13253
13254maybe-clean-stage4-mpc: clean-stage4-mpc
13255clean-stage4: clean-stage4-mpc
13256clean-stage4-mpc:
13257 @if [ $(current_stage) = stage4 ]; then \
13258 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13259 else \
13260 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13261 $(MAKE) stage4-start; \
13262 fi; \
13263 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13264 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13265@endif mpc-bootstrap
13266
13267
13268.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13269.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13270maybe-all-stageprofile-mpc:
13271maybe-clean-stageprofile-mpc:
13272@if mpc-bootstrap
13273maybe-all-stageprofile-mpc: all-stageprofile-mpc
13274all-stageprofile: all-stageprofile-mpc
13275TARGET-stageprofile-mpc = $(TARGET-mpc)
13276all-stageprofile-mpc: configure-stageprofile-mpc
13277 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13278 @r=`${PWD_COMMAND}`; export r; \
13279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13280 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13281 $(HOST_EXPORTS) \
13282 $(POSTSTAGE1_HOST_EXPORTS) \
13283 cd $(HOST_SUBDIR)/mpc && \
05a13254 13284 \
a90ef4bf
JM
13285 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13286 CFLAGS="$(STAGEprofile_CFLAGS)" \
13287 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13288 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13289 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13290 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13291 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13292 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13293 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
13294 $(TARGET-stageprofile-mpc)
13295
13296maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13297clean-stageprofile: clean-stageprofile-mpc
13298clean-stageprofile-mpc:
13299 @if [ $(current_stage) = stageprofile ]; then \
13300 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13301 else \
13302 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13303 $(MAKE) stageprofile-start; \
13304 fi; \
13305 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13306 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13307@endif mpc-bootstrap
13308
13309
13310.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13311.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13312maybe-all-stagefeedback-mpc:
13313maybe-clean-stagefeedback-mpc:
13314@if mpc-bootstrap
13315maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13316all-stagefeedback: all-stagefeedback-mpc
13317TARGET-stagefeedback-mpc = $(TARGET-mpc)
13318all-stagefeedback-mpc: configure-stagefeedback-mpc
13319 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13320 @r=`${PWD_COMMAND}`; export r; \
13321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13322 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13323 $(HOST_EXPORTS) \
13324 $(POSTSTAGE1_HOST_EXPORTS) \
13325 cd $(HOST_SUBDIR)/mpc && \
05a13254 13326 \
a90ef4bf
JM
13327 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13328 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13329 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13330 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13331 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13332 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13333 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13334 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13335 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
13336 $(TARGET-stagefeedback-mpc)
13337
13338maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13339clean-stagefeedback: clean-stagefeedback-mpc
13340clean-stagefeedback-mpc:
13341 @if [ $(current_stage) = stagefeedback ]; then \
13342 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13343 else \
13344 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13345 $(MAKE) stagefeedback-start; \
13346 fi; \
13347 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13348 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13349@endif mpc-bootstrap
13350
13351
13352
13353
13354
13355.PHONY: check-mpc maybe-check-mpc
13356maybe-check-mpc:
13357@if mpc
13358maybe-check-mpc: check-mpc
13359
13360check-mpc:
13361 @: $(MAKE); $(unstage)
13362 @r=`${PWD_COMMAND}`; export r; \
13363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13364 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13365 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13366 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13367
13368@endif mpc
13369
13370.PHONY: install-mpc maybe-install-mpc
13371maybe-install-mpc:
13372@if mpc
13373maybe-install-mpc: install-mpc
13374
13375install-mpc:
13376
13377@endif mpc
13378
13379.PHONY: install-strip-mpc maybe-install-strip-mpc
13380maybe-install-strip-mpc:
13381@if mpc
13382maybe-install-strip-mpc: install-strip-mpc
13383
13384install-strip-mpc:
13385
13386@endif mpc
13387
13388# Other targets (info, dvi, pdf, etc.)
13389
13390.PHONY: maybe-info-mpc info-mpc
13391maybe-info-mpc:
13392@if mpc
13393maybe-info-mpc: info-mpc
13394
13395info-mpc: \
13396 configure-mpc
13397 @[ -f ./mpc/Makefile ] || exit 0; \
13398 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13400 $(HOST_EXPORTS) \
13401 for flag in $(EXTRA_HOST_FLAGS) ; do \
13402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13403 done; \
22121df0 13404 echo "Doing info in mpc"; \
a90ef4bf 13405 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13408 "RANLIB=$${RANLIB}" \
0c24b341 13409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13410 info) \
13411 || exit 1
d3ed111c 13412
a90ef4bf 13413@endif mpc
d3ed111c 13414
a90ef4bf
JM
13415.PHONY: maybe-dvi-mpc dvi-mpc
13416maybe-dvi-mpc:
13417@if mpc
13418maybe-dvi-mpc: dvi-mpc
d3ed111c 13419
a90ef4bf
JM
13420dvi-mpc: \
13421 configure-mpc
13422 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13423 r=`${PWD_COMMAND}`; export r; \
13424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13425 $(HOST_EXPORTS) \
13426 for flag in $(EXTRA_HOST_FLAGS) ; do \
13427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13428 done; \
22121df0 13429 echo "Doing dvi in mpc"; \
a90ef4bf 13430 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13433 "RANLIB=$${RANLIB}" \
0c24b341 13434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13435 dvi) \
13436 || exit 1
d3ed111c 13437
a90ef4bf 13438@endif mpc
d3ed111c 13439
a90ef4bf
JM
13440.PHONY: maybe-pdf-mpc pdf-mpc
13441maybe-pdf-mpc:
13442@if mpc
13443maybe-pdf-mpc: pdf-mpc
56a8fe78 13444
a90ef4bf
JM
13445pdf-mpc: \
13446 configure-mpc
13447 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13448 r=`${PWD_COMMAND}`; export r; \
13449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13450 $(HOST_EXPORTS) \
13451 for flag in $(EXTRA_HOST_FLAGS) ; do \
13452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13453 done; \
22121df0 13454 echo "Doing pdf in mpc"; \
a90ef4bf 13455 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13458 "RANLIB=$${RANLIB}" \
0c24b341 13459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13460 pdf) \
13461 || exit 1
56a8fe78 13462
a90ef4bf 13463@endif mpc
56a8fe78 13464
a90ef4bf
JM
13465.PHONY: maybe-html-mpc html-mpc
13466maybe-html-mpc:
13467@if mpc
13468maybe-html-mpc: html-mpc
6d389afc 13469
a90ef4bf
JM
13470html-mpc: \
13471 configure-mpc
13472 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13473 r=`${PWD_COMMAND}`; export r; \
13474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13475 $(HOST_EXPORTS) \
13476 for flag in $(EXTRA_HOST_FLAGS) ; do \
13477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13478 done; \
22121df0 13479 echo "Doing html in mpc"; \
a90ef4bf 13480 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13483 "RANLIB=$${RANLIB}" \
0c24b341 13484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13485 html) \
13486 || exit 1
13487
a90ef4bf 13488@endif mpc
d3ed111c 13489
a90ef4bf
JM
13490.PHONY: maybe-TAGS-mpc TAGS-mpc
13491maybe-TAGS-mpc:
13492@if mpc
13493maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13494
a90ef4bf
JM
13495TAGS-mpc: \
13496 configure-mpc
13497 @[ -f ./mpc/Makefile ] || exit 0; \
13498 r=`${PWD_COMMAND}`; export r; \
13499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13500 $(HOST_EXPORTS) \
13501 for flag in $(EXTRA_HOST_FLAGS) ; do \
13502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13503 done; \
22121df0 13504 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13505 (cd $(HOST_SUBDIR)/mpc && \
13506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13508 "RANLIB=$${RANLIB}" \
13509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13510 TAGS) \
13511 || exit 1
13512
13513@endif mpc
13514
13515.PHONY: maybe-install-info-mpc install-info-mpc
13516maybe-install-info-mpc:
13517@if mpc
13518maybe-install-info-mpc: install-info-mpc
13519
13520install-info-mpc: \
13521 configure-mpc \
13522 info-mpc
13523 @[ -f ./mpc/Makefile ] || exit 0; \
13524 r=`${PWD_COMMAND}`; export r; \
13525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13526 $(HOST_EXPORTS) \
13527 for flag in $(EXTRA_HOST_FLAGS) ; do \
13528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13529 done; \
22121df0 13530 echo "Doing install-info in mpc"; \
a90ef4bf 13531 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13534 "RANLIB=$${RANLIB}" \
0c24b341 13535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13536 install-info) \
13537 || exit 1
d3ed111c 13538
a90ef4bf 13539@endif mpc
d3ed111c 13540
a90ef4bf
JM
13541.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13542maybe-install-pdf-mpc:
13543@if mpc
13544maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13545
a90ef4bf
JM
13546install-pdf-mpc: \
13547 configure-mpc \
13548 pdf-mpc
13549 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13550 r=`${PWD_COMMAND}`; export r; \
13551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13552 $(HOST_EXPORTS) \
13553 for flag in $(EXTRA_HOST_FLAGS) ; do \
13554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13555 done; \
22121df0 13556 echo "Doing install-pdf in mpc"; \
a90ef4bf 13557 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13560 "RANLIB=$${RANLIB}" \
0c24b341 13561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13562 install-pdf) \
13563 || exit 1
a3ca38d2 13564
a90ef4bf 13565@endif mpc
a3ca38d2 13566
a90ef4bf
JM
13567.PHONY: maybe-install-html-mpc install-html-mpc
13568maybe-install-html-mpc:
13569@if mpc
13570maybe-install-html-mpc: install-html-mpc
108a6f8e 13571
a90ef4bf
JM
13572install-html-mpc: \
13573 configure-mpc \
13574 html-mpc
13575 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13576 r=`${PWD_COMMAND}`; export r; \
13577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13578 $(HOST_EXPORTS) \
13579 for flag in $(EXTRA_HOST_FLAGS) ; do \
13580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13581 done; \
22121df0 13582 echo "Doing install-html in mpc"; \
a90ef4bf 13583 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
13584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13586 "RANLIB=$${RANLIB}" \
0c24b341 13587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
13588 install-html) \
13589 || exit 1
13590
a90ef4bf 13591@endif mpc
108a6f8e 13592
a90ef4bf
JM
13593.PHONY: maybe-installcheck-mpc installcheck-mpc
13594maybe-installcheck-mpc:
13595@if mpc
13596maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13597
a90ef4bf
JM
13598installcheck-mpc: \
13599 configure-mpc
13600 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13601 r=`${PWD_COMMAND}`; export r; \
13602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13603 $(HOST_EXPORTS) \
13604 for flag in $(EXTRA_HOST_FLAGS) ; do \
13605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13606 done; \
22121df0 13607 echo "Doing installcheck in mpc"; \
a90ef4bf 13608 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13611 "RANLIB=$${RANLIB}" \
0c24b341 13612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13613 installcheck) \
13614 || exit 1
d3ed111c 13615
a90ef4bf 13616@endif mpc
d3ed111c 13617
a90ef4bf
JM
13618.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13619maybe-mostlyclean-mpc:
13620@if mpc
13621maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13622
a90ef4bf
JM
13623mostlyclean-mpc:
13624 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13625 r=`${PWD_COMMAND}`; export r; \
13626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13627 $(HOST_EXPORTS) \
13628 for flag in $(EXTRA_HOST_FLAGS) ; do \
13629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13630 done; \
22121df0 13631 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13632 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13635 "RANLIB=$${RANLIB}" \
0c24b341 13636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13637 mostlyclean) \
13638 || exit 1
13639
a90ef4bf 13640@endif mpc
d3ed111c 13641
a90ef4bf
JM
13642.PHONY: maybe-clean-mpc clean-mpc
13643maybe-clean-mpc:
13644@if mpc
13645maybe-clean-mpc: clean-mpc
d3ed111c 13646
a90ef4bf
JM
13647clean-mpc:
13648 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13649 r=`${PWD_COMMAND}`; export r; \
13650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13651 $(HOST_EXPORTS) \
13652 for flag in $(EXTRA_HOST_FLAGS) ; do \
13653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13654 done; \
22121df0 13655 echo "Doing clean in mpc"; \
a90ef4bf 13656 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13659 "RANLIB=$${RANLIB}" \
0c24b341 13660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13661 clean) \
13662 || exit 1
13663
a90ef4bf 13664@endif mpc
d3ed111c 13665
a90ef4bf
JM
13666.PHONY: maybe-distclean-mpc distclean-mpc
13667maybe-distclean-mpc:
13668@if mpc
13669maybe-distclean-mpc: distclean-mpc
d3ed111c 13670
a90ef4bf
JM
13671distclean-mpc:
13672 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13673 r=`${PWD_COMMAND}`; export r; \
13674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13675 $(HOST_EXPORTS) \
13676 for flag in $(EXTRA_HOST_FLAGS) ; do \
13677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13678 done; \
22121df0 13679 echo "Doing distclean in mpc"; \
a90ef4bf 13680 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13683 "RANLIB=$${RANLIB}" \
0c24b341 13684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13685 distclean) \
13686 || exit 1
13687
a90ef4bf 13688@endif mpc
d3ed111c 13689
a90ef4bf
JM
13690.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13691maybe-maintainer-clean-mpc:
13692@if mpc
13693maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13694
a90ef4bf
JM
13695maintainer-clean-mpc:
13696 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13697 r=`${PWD_COMMAND}`; export r; \
13698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13699 $(HOST_EXPORTS) \
13700 for flag in $(EXTRA_HOST_FLAGS) ; do \
13701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13702 done; \
22121df0 13703 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13704 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13707 "RANLIB=$${RANLIB}" \
0c24b341 13708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13709 maintainer-clean) \
13710 || exit 1
13711
a90ef4bf 13712@endif mpc
d3ed111c
GK
13713
13714
a7254363 13715
7ec59b9e
L
13716.PHONY: configure-isl maybe-configure-isl
13717maybe-configure-isl:
4f0ef2d8 13718@if gcc-bootstrap
7ec59b9e 13719configure-isl: stage_current
4f0ef2d8 13720@endif gcc-bootstrap
7ec59b9e
L
13721@if isl
13722maybe-configure-isl: configure-isl
13723configure-isl:
c52c6897 13724 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13726 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13727 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13728 $(HOST_EXPORTS) \
7ec59b9e
L
13729 echo Configuring in $(HOST_SUBDIR)/isl; \
13730 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13731 case $(srcdir) in \
b00612cc 13732 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13733 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13734 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13735 esac; \
1b6c0831
L
13736 module_srcdir=isl; \
13737 $(SHELL) \
13738 $$s/$$module_srcdir/configure \
13739 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13740 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13741 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13742 || exit 1
7ec59b9e 13743@endif isl
4fa63067 13744
a7254363
PB
13745
13746
7ec59b9e
L
13747.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13748maybe-configure-stage1-isl:
13749@if isl-bootstrap
13750maybe-configure-stage1-isl: configure-stage1-isl
13751configure-stage1-isl:
a90ef4bf 13752 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13753 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13754 @r=`${PWD_COMMAND}`; export r; \
13755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13756 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13757 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13758 $(HOST_EXPORTS) \
13759 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13760 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13761 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13762 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13763 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13764 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13765 case $(srcdir) in \
13766 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13767 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13768 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13769 esac; \
1b6c0831
L
13770 module_srcdir=isl; \
13771 $(SHELL) $$s/$$module_srcdir/configure \
13772 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13773 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13774 --target=${target_alias} \
13775 \
a90ef4bf 13776 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13777 --disable-shared @extra_isl_gmp_configure_flags@
13778@endif isl-bootstrap
13779
13780.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13781maybe-configure-stage2-isl:
13782@if isl-bootstrap
13783maybe-configure-stage2-isl: configure-stage2-isl
13784configure-stage2-isl:
a90ef4bf 13785 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13786 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13787 @r=`${PWD_COMMAND}`; export r; \
13788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13789 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13790 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13791 $(HOST_EXPORTS) \
13792 $(POSTSTAGE1_HOST_EXPORTS) \
13793 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13794 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13795 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13796 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13797 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13798 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13799 case $(srcdir) in \
13800 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13801 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13802 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13803 esac; \
1b6c0831
L
13804 module_srcdir=isl; \
13805 $(SHELL) $$s/$$module_srcdir/configure \
13806 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13807 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13808 --target=${target_alias} \
22121df0 13809 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13810 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13811 --disable-shared @extra_isl_gmp_configure_flags@
13812@endif isl-bootstrap
13813
13814.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13815maybe-configure-stage3-isl:
13816@if isl-bootstrap
13817maybe-configure-stage3-isl: configure-stage3-isl
13818configure-stage3-isl:
a90ef4bf 13819 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13820 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13821 @r=`${PWD_COMMAND}`; export r; \
13822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13823 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13824 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13825 $(HOST_EXPORTS) \
13826 $(POSTSTAGE1_HOST_EXPORTS) \
13827 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13828 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13829 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13830 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13831 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13832 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13833 case $(srcdir) in \
13834 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13835 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13836 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13837 esac; \
1b6c0831
L
13838 module_srcdir=isl; \
13839 $(SHELL) $$s/$$module_srcdir/configure \
13840 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13841 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13842 --target=${target_alias} \
22121df0 13843 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13844 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13845 --disable-shared @extra_isl_gmp_configure_flags@
13846@endif isl-bootstrap
13847
13848.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13849maybe-configure-stage4-isl:
13850@if isl-bootstrap
13851maybe-configure-stage4-isl: configure-stage4-isl
13852configure-stage4-isl:
a90ef4bf 13853 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13854 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13855 @r=`${PWD_COMMAND}`; export r; \
13856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13857 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13858 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13859 $(HOST_EXPORTS) \
13860 $(POSTSTAGE1_HOST_EXPORTS) \
13861 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13862 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13863 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13864 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13865 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13866 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13867 case $(srcdir) in \
13868 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13869 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13870 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13871 esac; \
1b6c0831
L
13872 module_srcdir=isl; \
13873 $(SHELL) $$s/$$module_srcdir/configure \
13874 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13875 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13876 --target=${target_alias} \
22121df0 13877 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13878 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13879 --disable-shared @extra_isl_gmp_configure_flags@
13880@endif isl-bootstrap
13881
13882.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13883maybe-configure-stageprofile-isl:
13884@if isl-bootstrap
13885maybe-configure-stageprofile-isl: configure-stageprofile-isl
13886configure-stageprofile-isl:
a90ef4bf 13887 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13888 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13889 @r=`${PWD_COMMAND}`; export r; \
13890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13891 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13892 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13893 $(HOST_EXPORTS) \
13894 $(POSTSTAGE1_HOST_EXPORTS) \
13895 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13896 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13897 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13898 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13899 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13900 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13901 case $(srcdir) in \
13902 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13903 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13904 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13905 esac; \
1b6c0831
L
13906 module_srcdir=isl; \
13907 $(SHELL) $$s/$$module_srcdir/configure \
13908 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13909 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13910 --target=${target_alias} \
22121df0 13911 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13912 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
13913 --disable-shared @extra_isl_gmp_configure_flags@
13914@endif isl-bootstrap
13915
13916.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
13917maybe-configure-stagefeedback-isl:
13918@if isl-bootstrap
13919maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
13920configure-stagefeedback-isl:
a90ef4bf 13921 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 13922 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13923 @r=`${PWD_COMMAND}`; export r; \
13924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13925 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 13926 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13927 $(HOST_EXPORTS) \
13928 $(POSTSTAGE1_HOST_EXPORTS) \
13929 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13930 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13931 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13932 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
13933 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13934 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13935 case $(srcdir) in \
13936 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13937 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13938 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13939 esac; \
1b6c0831
L
13940 module_srcdir=isl; \
13941 $(SHELL) $$s/$$module_srcdir/configure \
13942 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13943 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13944 --target=${target_alias} \
22121df0 13945 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13946 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
13947 --disable-shared @extra_isl_gmp_configure_flags@
13948@endif isl-bootstrap
d545f33b 13949
4fa63067 13950
4fa63067
NN
13951
13952
4fa63067 13953
7ec59b9e
L
13954.PHONY: all-isl maybe-all-isl
13955maybe-all-isl:
a90ef4bf 13956@if gcc-bootstrap
7ec59b9e 13957all-isl: stage_current
a90ef4bf 13958@endif gcc-bootstrap
7ec59b9e
L
13959@if isl
13960TARGET-isl=all
13961maybe-all-isl: all-isl
13962all-isl: configure-isl
4fa63067
NN
13963 @r=`${PWD_COMMAND}`; export r; \
13964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13965 $(HOST_EXPORTS) \
7ec59b9e 13966 (cd $(HOST_SUBDIR)/isl && \
b3676d82 13967 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
13968 $(TARGET-isl))
13969@endif isl
13970
13971
13972
13973.PHONY: all-stage1-isl maybe-all-stage1-isl
13974.PHONY: clean-stage1-isl maybe-clean-stage1-isl
13975maybe-all-stage1-isl:
13976maybe-clean-stage1-isl:
13977@if isl-bootstrap
13978maybe-all-stage1-isl: all-stage1-isl
13979all-stage1: all-stage1-isl
13980TARGET-stage1-isl = $(TARGET-isl)
13981all-stage1-isl: configure-stage1-isl
a90ef4bf 13982 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
13983 @r=`${PWD_COMMAND}`; export r; \
13984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13985 TFLAGS="$(STAGE1_TFLAGS)"; \
13986 $(HOST_EXPORTS) \
7ec59b9e 13987 cd $(HOST_SUBDIR)/isl && \
05a13254 13988 \
a90ef4bf
JM
13989 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13990 CFLAGS="$(STAGE1_CFLAGS)" \
13991 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13992 LIBCFLAGS="$(LIBCFLAGS)" \
13993 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13994 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13995 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13996 $(EXTRA_HOST_FLAGS) \
13997 $(STAGE1_FLAGS_TO_PASS) V=1 \
05a13254 13998 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 13999 $(TARGET-stage1-isl)
9b980aa1 14000
7ec59b9e
L
14001maybe-clean-stage1-isl: clean-stage1-isl
14002clean-stage1: clean-stage1-isl
14003clean-stage1-isl:
a90ef4bf 14004 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 14005 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14006 else \
7ec59b9e 14007 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14008 $(MAKE) stage1-start; \
14009 fi; \
7ec59b9e 14010 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 14011 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14012 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14013@endif isl-bootstrap
14014
14015
14016.PHONY: all-stage2-isl maybe-all-stage2-isl
14017.PHONY: clean-stage2-isl maybe-clean-stage2-isl
14018maybe-all-stage2-isl:
14019maybe-clean-stage2-isl:
14020@if isl-bootstrap
14021maybe-all-stage2-isl: all-stage2-isl
14022all-stage2: all-stage2-isl
14023TARGET-stage2-isl = $(TARGET-isl)
14024all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
14025 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
14026 @r=`${PWD_COMMAND}`; export r; \
14027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14028 TFLAGS="$(STAGE2_TFLAGS)"; \
14029 $(HOST_EXPORTS) \
14030 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14031 cd $(HOST_SUBDIR)/isl && \
05a13254 14032 \
a90ef4bf
JM
14033 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14034 CFLAGS="$(STAGE2_CFLAGS)" \
14035 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
14036 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14037 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14038 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14039 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14040 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14041 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 14042 $(TARGET-stage2-isl)
a90ef4bf 14043
7ec59b9e
L
14044maybe-clean-stage2-isl: clean-stage2-isl
14045clean-stage2: clean-stage2-isl
14046clean-stage2-isl:
a90ef4bf 14047 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 14048 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14049 else \
7ec59b9e 14050 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14051 $(MAKE) stage2-start; \
14052 fi; \
7ec59b9e 14053 cd $(HOST_SUBDIR)/isl && \
b3676d82 14054 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14055@endif isl-bootstrap
14056
14057
14058.PHONY: all-stage3-isl maybe-all-stage3-isl
14059.PHONY: clean-stage3-isl maybe-clean-stage3-isl
14060maybe-all-stage3-isl:
14061maybe-clean-stage3-isl:
14062@if isl-bootstrap
14063maybe-all-stage3-isl: all-stage3-isl
14064all-stage3: all-stage3-isl
14065TARGET-stage3-isl = $(TARGET-isl)
14066all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
14067 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14068 @r=`${PWD_COMMAND}`; export r; \
14069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14070 TFLAGS="$(STAGE3_TFLAGS)"; \
14071 $(HOST_EXPORTS) \
14072 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14073 cd $(HOST_SUBDIR)/isl && \
05a13254 14074 \
a90ef4bf
JM
14075 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14076 CFLAGS="$(STAGE3_CFLAGS)" \
14077 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14078 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14079 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14080 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14081 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14082 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14083 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14084 $(TARGET-stage3-isl)
a90ef4bf 14085
7ec59b9e
L
14086maybe-clean-stage3-isl: clean-stage3-isl
14087clean-stage3: clean-stage3-isl
14088clean-stage3-isl:
a90ef4bf 14089 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14090 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14091 else \
7ec59b9e 14092 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14093 $(MAKE) stage3-start; \
14094 fi; \
7ec59b9e 14095 cd $(HOST_SUBDIR)/isl && \
b3676d82 14096 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14097@endif isl-bootstrap
14098
14099
14100.PHONY: all-stage4-isl maybe-all-stage4-isl
14101.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14102maybe-all-stage4-isl:
14103maybe-clean-stage4-isl:
14104@if isl-bootstrap
14105maybe-all-stage4-isl: all-stage4-isl
14106all-stage4: all-stage4-isl
14107TARGET-stage4-isl = $(TARGET-isl)
14108all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14109 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14110 @r=`${PWD_COMMAND}`; export r; \
14111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14112 TFLAGS="$(STAGE4_TFLAGS)"; \
14113 $(HOST_EXPORTS) \
14114 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14115 cd $(HOST_SUBDIR)/isl && \
05a13254 14116 \
a90ef4bf
JM
14117 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14118 CFLAGS="$(STAGE4_CFLAGS)" \
14119 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14120 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14121 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14122 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14123 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14124 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14125 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14126 $(TARGET-stage4-isl)
a90ef4bf 14127
7ec59b9e
L
14128maybe-clean-stage4-isl: clean-stage4-isl
14129clean-stage4: clean-stage4-isl
14130clean-stage4-isl:
a90ef4bf 14131 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14132 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14133 else \
7ec59b9e 14134 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14135 $(MAKE) stage4-start; \
14136 fi; \
7ec59b9e 14137 cd $(HOST_SUBDIR)/isl && \
b3676d82 14138 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14139@endif isl-bootstrap
14140
14141
14142.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14143.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14144maybe-all-stageprofile-isl:
14145maybe-clean-stageprofile-isl:
14146@if isl-bootstrap
14147maybe-all-stageprofile-isl: all-stageprofile-isl
14148all-stageprofile: all-stageprofile-isl
14149TARGET-stageprofile-isl = $(TARGET-isl)
14150all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14151 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14152 @r=`${PWD_COMMAND}`; export r; \
14153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14154 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14155 $(HOST_EXPORTS) \
14156 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14157 cd $(HOST_SUBDIR)/isl && \
05a13254 14158 \
a90ef4bf
JM
14159 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14160 CFLAGS="$(STAGEprofile_CFLAGS)" \
14161 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14162 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14163 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14164 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14165 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14166 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14167 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14168 $(TARGET-stageprofile-isl)
a90ef4bf 14169
7ec59b9e
L
14170maybe-clean-stageprofile-isl: clean-stageprofile-isl
14171clean-stageprofile: clean-stageprofile-isl
14172clean-stageprofile-isl:
a90ef4bf 14173 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14174 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14175 else \
7ec59b9e 14176 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14177 $(MAKE) stageprofile-start; \
14178 fi; \
7ec59b9e 14179 cd $(HOST_SUBDIR)/isl && \
b3676d82 14180 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14181@endif isl-bootstrap
14182
14183
14184.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14185.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14186maybe-all-stagefeedback-isl:
14187maybe-clean-stagefeedback-isl:
14188@if isl-bootstrap
14189maybe-all-stagefeedback-isl: all-stagefeedback-isl
14190all-stagefeedback: all-stagefeedback-isl
14191TARGET-stagefeedback-isl = $(TARGET-isl)
14192all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14193 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14194 @r=`${PWD_COMMAND}`; export r; \
14195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14196 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14197 $(HOST_EXPORTS) \
14198 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14199 cd $(HOST_SUBDIR)/isl && \
05a13254 14200 \
a90ef4bf
JM
14201 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14202 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14203 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14204 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14205 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14206 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14207 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14208 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14209 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14210 $(TARGET-stagefeedback-isl)
a90ef4bf 14211
7ec59b9e
L
14212maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14213clean-stagefeedback: clean-stagefeedback-isl
14214clean-stagefeedback-isl:
a90ef4bf 14215 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14216 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14217 else \
7ec59b9e 14218 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14219 $(MAKE) stagefeedback-start; \
14220 fi; \
7ec59b9e 14221 cd $(HOST_SUBDIR)/isl && \
b3676d82 14222 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14223@endif isl-bootstrap
a90ef4bf
JM
14224
14225
14226
14227
14228
7ec59b9e
L
14229.PHONY: check-isl maybe-check-isl
14230maybe-check-isl:
14231@if isl
14232maybe-check-isl: check-isl
a90ef4bf 14233
7ec59b9e 14234check-isl:
0aed8855 14235 @: $(MAKE); $(unstage)
a90ef4bf
JM
14236 @r=`${PWD_COMMAND}`; export r; \
14237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14238 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14239 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14240 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14241
7ec59b9e 14242@endif isl
a90ef4bf 14243
7ec59b9e
L
14244.PHONY: install-isl maybe-install-isl
14245maybe-install-isl:
14246@if isl
14247maybe-install-isl: install-isl
a90ef4bf 14248
7ec59b9e 14249install-isl:
a90ef4bf 14250
7ec59b9e 14251@endif isl
a90ef4bf 14252
7ec59b9e
L
14253.PHONY: install-strip-isl maybe-install-strip-isl
14254maybe-install-strip-isl:
14255@if isl
14256maybe-install-strip-isl: install-strip-isl
a90ef4bf 14257
7ec59b9e 14258install-strip-isl:
a90ef4bf 14259
7ec59b9e 14260@endif isl
a90ef4bf
JM
14261
14262# Other targets (info, dvi, pdf, etc.)
14263
7ec59b9e
L
14264.PHONY: maybe-info-isl info-isl
14265maybe-info-isl:
14266@if isl
14267maybe-info-isl: info-isl
a90ef4bf 14268
7ec59b9e
L
14269info-isl: \
14270 configure-isl
14271 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14272 r=`${PWD_COMMAND}`; export r; \
14273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14274 $(HOST_EXPORTS) \
7ec59b9e 14275 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14277 done; \
22121df0 14278 echo "Doing info in isl"; \
7ec59b9e 14279 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14282 "RANLIB=$${RANLIB}" \
0c24b341 14283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14284 info) \
2a4cbe27
NN
14285 || exit 1
14286
7ec59b9e 14287@endif isl
2a4cbe27 14288
7ec59b9e
L
14289.PHONY: maybe-dvi-isl dvi-isl
14290maybe-dvi-isl:
14291@if isl
14292maybe-dvi-isl: dvi-isl
2a4cbe27 14293
7ec59b9e
L
14294dvi-isl: \
14295 configure-isl
14296 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14297 r=`${PWD_COMMAND}`; export r; \
14298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14299 $(HOST_EXPORTS) \
7ec59b9e 14300 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14302 done; \
22121df0 14303 echo "Doing dvi in isl"; \
7ec59b9e 14304 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14307 "RANLIB=$${RANLIB}" \
0c24b341 14308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14309 dvi) \
2a4cbe27
NN
14310 || exit 1
14311
7ec59b9e 14312@endif isl
2a4cbe27 14313
7ec59b9e
L
14314.PHONY: maybe-pdf-isl pdf-isl
14315maybe-pdf-isl:
14316@if isl
14317maybe-pdf-isl: pdf-isl
56a8fe78 14318
7ec59b9e
L
14319pdf-isl: \
14320 configure-isl
14321 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14322 r=`${PWD_COMMAND}`; export r; \
14323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14324 $(HOST_EXPORTS) \
7ec59b9e 14325 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14327 done; \
22121df0 14328 echo "Doing pdf in isl"; \
7ec59b9e 14329 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14332 "RANLIB=$${RANLIB}" \
0c24b341 14333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14334 pdf) \
14335 || exit 1
14336
7ec59b9e 14337@endif isl
56a8fe78 14338
7ec59b9e
L
14339.PHONY: maybe-html-isl html-isl
14340maybe-html-isl:
14341@if isl
14342maybe-html-isl: html-isl
6d389afc 14343
7ec59b9e
L
14344html-isl: \
14345 configure-isl
14346 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14347 r=`${PWD_COMMAND}`; export r; \
14348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14349 $(HOST_EXPORTS) \
7ec59b9e 14350 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14352 done; \
22121df0 14353 echo "Doing html in isl"; \
7ec59b9e 14354 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14357 "RANLIB=$${RANLIB}" \
0c24b341 14358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14359 html) \
14360 || exit 1
14361
7ec59b9e 14362@endif isl
6d389afc 14363
7ec59b9e
L
14364.PHONY: maybe-TAGS-isl TAGS-isl
14365maybe-TAGS-isl:
14366@if isl
14367maybe-TAGS-isl: TAGS-isl
2a4cbe27 14368
7ec59b9e
L
14369TAGS-isl: \
14370 configure-isl
14371 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14372 r=`${PWD_COMMAND}`; export r; \
14373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14374 $(HOST_EXPORTS) \
7ec59b9e 14375 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14377 done; \
22121df0 14378 echo "Doing TAGS in isl"; \
7ec59b9e 14379 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14382 "RANLIB=$${RANLIB}" \
0c24b341 14383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14384 TAGS) \
2a4cbe27
NN
14385 || exit 1
14386
7ec59b9e 14387@endif isl
2a4cbe27 14388
7ec59b9e
L
14389.PHONY: maybe-install-info-isl install-info-isl
14390maybe-install-info-isl:
14391@if isl
14392maybe-install-info-isl: install-info-isl
2a4cbe27 14393
7ec59b9e
L
14394install-info-isl: \
14395 configure-isl \
14396 info-isl
14397 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14398 r=`${PWD_COMMAND}`; export r; \
14399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14400 $(HOST_EXPORTS) \
7ec59b9e 14401 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14403 done; \
22121df0 14404 echo "Doing install-info in isl"; \
7ec59b9e 14405 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14408 "RANLIB=$${RANLIB}" \
0c24b341 14409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14410 install-info) \
2a4cbe27
NN
14411 || exit 1
14412
7ec59b9e 14413@endif isl
2a4cbe27 14414
7ec59b9e
L
14415.PHONY: maybe-install-pdf-isl install-pdf-isl
14416maybe-install-pdf-isl:
14417@if isl
14418maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14419
7ec59b9e
L
14420install-pdf-isl: \
14421 configure-isl \
14422 pdf-isl
14423 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14424 r=`${PWD_COMMAND}`; export r; \
14425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14426 $(HOST_EXPORTS) \
7ec59b9e 14427 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14429 done; \
22121df0 14430 echo "Doing install-pdf in isl"; \
7ec59b9e 14431 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14434 "RANLIB=$${RANLIB}" \
0c24b341 14435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14436 install-pdf) \
14437 || exit 1
14438
7ec59b9e 14439@endif isl
a3ca38d2 14440
7ec59b9e
L
14441.PHONY: maybe-install-html-isl install-html-isl
14442maybe-install-html-isl:
14443@if isl
14444maybe-install-html-isl: install-html-isl
108a6f8e 14445
7ec59b9e
L
14446install-html-isl: \
14447 configure-isl \
14448 html-isl
14449 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14450 r=`${PWD_COMMAND}`; export r; \
14451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14452 $(HOST_EXPORTS) \
7ec59b9e 14453 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14455 done; \
22121df0 14456 echo "Doing install-html in isl"; \
7ec59b9e 14457 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
14458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14460 "RANLIB=$${RANLIB}" \
0c24b341 14461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
14462 install-html) \
14463 || exit 1
14464
7ec59b9e 14465@endif isl
108a6f8e 14466
7ec59b9e
L
14467.PHONY: maybe-installcheck-isl installcheck-isl
14468maybe-installcheck-isl:
14469@if isl
14470maybe-installcheck-isl: installcheck-isl
2a4cbe27 14471
7ec59b9e
L
14472installcheck-isl: \
14473 configure-isl
14474 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14475 r=`${PWD_COMMAND}`; export r; \
14476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14477 $(HOST_EXPORTS) \
7ec59b9e 14478 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14480 done; \
22121df0 14481 echo "Doing installcheck in isl"; \
7ec59b9e 14482 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14485 "RANLIB=$${RANLIB}" \
0c24b341 14486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14487 installcheck) \
2a4cbe27
NN
14488 || exit 1
14489
7ec59b9e 14490@endif isl
2a4cbe27 14491
7ec59b9e
L
14492.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14493maybe-mostlyclean-isl:
14494@if isl
14495maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14496
7ec59b9e
L
14497mostlyclean-isl:
14498 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14499 r=`${PWD_COMMAND}`; export r; \
14500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14501 $(HOST_EXPORTS) \
7ec59b9e 14502 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14504 done; \
22121df0 14505 echo "Doing mostlyclean in isl"; \
7ec59b9e 14506 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14509 "RANLIB=$${RANLIB}" \
0c24b341 14510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14511 mostlyclean) \
2a4cbe27
NN
14512 || exit 1
14513
7ec59b9e 14514@endif isl
2a4cbe27 14515
7ec59b9e
L
14516.PHONY: maybe-clean-isl clean-isl
14517maybe-clean-isl:
14518@if isl
14519maybe-clean-isl: clean-isl
2a4cbe27 14520
7ec59b9e
L
14521clean-isl:
14522 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14523 r=`${PWD_COMMAND}`; export r; \
14524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14525 $(HOST_EXPORTS) \
7ec59b9e 14526 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14528 done; \
22121df0 14529 echo "Doing clean in isl"; \
7ec59b9e 14530 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14533 "RANLIB=$${RANLIB}" \
0c24b341 14534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14535 clean) \
2a4cbe27
NN
14536 || exit 1
14537
7ec59b9e 14538@endif isl
2a4cbe27 14539
7ec59b9e
L
14540.PHONY: maybe-distclean-isl distclean-isl
14541maybe-distclean-isl:
14542@if isl
14543maybe-distclean-isl: distclean-isl
2a4cbe27 14544
7ec59b9e
L
14545distclean-isl:
14546 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14547 r=`${PWD_COMMAND}`; export r; \
14548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14549 $(HOST_EXPORTS) \
7ec59b9e 14550 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14552 done; \
22121df0 14553 echo "Doing distclean in isl"; \
7ec59b9e 14554 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14557 "RANLIB=$${RANLIB}" \
0c24b341 14558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14559 distclean) \
2a4cbe27
NN
14560 || exit 1
14561
7ec59b9e 14562@endif isl
2a4cbe27 14563
7ec59b9e
L
14564.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14565maybe-maintainer-clean-isl:
14566@if isl
14567maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14568
7ec59b9e
L
14569maintainer-clean-isl:
14570 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14571 r=`${PWD_COMMAND}`; export r; \
14572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14573 $(HOST_EXPORTS) \
7ec59b9e 14574 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14576 done; \
22121df0 14577 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14578 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14581 "RANLIB=$${RANLIB}" \
0c24b341 14582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14583 maintainer-clean) \
2a4cbe27
NN
14584 || exit 1
14585
7ec59b9e 14586@endif isl
2a4cbe27 14587
2a4cbe27 14588
a7254363 14589
a90ef4bf
JM
14590.PHONY: configure-libelf maybe-configure-libelf
14591maybe-configure-libelf:
c52c6897 14592@if gcc-bootstrap
a90ef4bf 14593configure-libelf: stage_current
c52c6897 14594@endif gcc-bootstrap
a90ef4bf
JM
14595@if libelf
14596maybe-configure-libelf: configure-libelf
14597configure-libelf:
c52c6897
PB
14598 @r=`${PWD_COMMAND}`; export r; \
14599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14600 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14601 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14602 $(HOST_EXPORTS) \
a90ef4bf
JM
14603 echo Configuring in $(HOST_SUBDIR)/libelf; \
14604 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14605 case $(srcdir) in \
b00612cc 14606 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14607 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14608 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14609 esac; \
1b6c0831
L
14610 module_srcdir=libelf; \
14611 $(SHELL) \
14612 $$s/$$module_srcdir/configure \
14613 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14614 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14615 --target=${target_alias} --disable-shared \
4fa63067 14616 || exit 1
a90ef4bf 14617@endif libelf
4fa63067 14618
a7254363
PB
14619
14620
a90ef4bf
JM
14621.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14622maybe-configure-stage1-libelf:
14623@if libelf-bootstrap
14624maybe-configure-stage1-libelf: configure-stage1-libelf
14625configure-stage1-libelf:
c52c6897 14626 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14627 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14628 @r=`${PWD_COMMAND}`; export r; \
14629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14630 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14631 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14632 $(HOST_EXPORTS) \
8ee82aff 14633 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14634 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14635 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14636 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14637 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14638 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14639 case $(srcdir) in \
14640 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14641 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14642 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14643 esac; \
1b6c0831
L
14644 module_srcdir=libelf; \
14645 $(SHELL) $$s/$$module_srcdir/configure \
14646 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14647 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14648 --target=${target_alias} \
14649 \
a90ef4bf
JM
14650 $(STAGE1_CONFIGURE_FLAGS) \
14651 --disable-shared
14652@endif libelf-bootstrap
d545f33b 14653
a90ef4bf
JM
14654.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14655maybe-configure-stage2-libelf:
14656@if libelf-bootstrap
14657maybe-configure-stage2-libelf: configure-stage2-libelf
14658configure-stage2-libelf:
c52c6897 14659 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14660 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14661 @r=`${PWD_COMMAND}`; export r; \
14662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14663 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14664 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14665 $(HOST_EXPORTS) \
1b05fbbd 14666 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14667 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14668 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14669 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14670 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14671 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14672 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14673 case $(srcdir) in \
14674 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14675 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14676 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14677 esac; \
1b6c0831
L
14678 module_srcdir=libelf; \
14679 $(SHELL) $$s/$$module_srcdir/configure \
14680 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14681 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14682 --target=${target_alias} \
22121df0 14683 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14684 $(STAGE2_CONFIGURE_FLAGS) \
14685 --disable-shared
14686@endif libelf-bootstrap
8520c408 14687
a90ef4bf
JM
14688.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14689maybe-configure-stage3-libelf:
14690@if libelf-bootstrap
14691maybe-configure-stage3-libelf: configure-stage3-libelf
14692configure-stage3-libelf:
c52c6897 14693 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14694 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14695 @r=`${PWD_COMMAND}`; export r; \
14696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14697 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14698 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14699 $(HOST_EXPORTS) \
1b05fbbd 14700 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14701 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14702 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14703 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14704 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14705 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14706 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14707 case $(srcdir) in \
14708 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14709 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14710 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14711 esac; \
1b6c0831
L
14712 module_srcdir=libelf; \
14713 $(SHELL) $$s/$$module_srcdir/configure \
14714 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14715 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14716 --target=${target_alias} \
22121df0 14717 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14718 $(STAGE3_CONFIGURE_FLAGS) \
14719 --disable-shared
14720@endif libelf-bootstrap
8520c408 14721
a90ef4bf
JM
14722.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14723maybe-configure-stage4-libelf:
14724@if libelf-bootstrap
14725maybe-configure-stage4-libelf: configure-stage4-libelf
14726configure-stage4-libelf:
c52c6897 14727 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14728 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14729 @r=`${PWD_COMMAND}`; export r; \
14730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14731 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14732 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14733 $(HOST_EXPORTS) \
1b05fbbd 14734 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14735 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14736 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14737 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14738 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14739 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14740 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14741 case $(srcdir) in \
14742 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14743 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14744 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14745 esac; \
1b6c0831
L
14746 module_srcdir=libelf; \
14747 $(SHELL) $$s/$$module_srcdir/configure \
14748 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14749 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14750 --target=${target_alias} \
22121df0 14751 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14752 $(STAGE4_CONFIGURE_FLAGS) \
14753 --disable-shared
14754@endif libelf-bootstrap
d545f33b 14755
a90ef4bf
JM
14756.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14757maybe-configure-stageprofile-libelf:
14758@if libelf-bootstrap
14759maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14760configure-stageprofile-libelf:
c52c6897 14761 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14762 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14763 @r=`${PWD_COMMAND}`; export r; \
14764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14765 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14766 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14767 $(HOST_EXPORTS) \
1b05fbbd
AO
14768 $(POSTSTAGE1_HOST_EXPORTS) \
14769 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14770 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14771 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14772 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14773 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14774 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14775 case $(srcdir) in \
14776 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14777 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14778 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14779 esac; \
1b6c0831
L
14780 module_srcdir=libelf; \
14781 $(SHELL) $$s/$$module_srcdir/configure \
14782 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14783 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14784 --target=${target_alias} \
22121df0 14785 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14786 $(STAGEprofile_CONFIGURE_FLAGS) \
14787 --disable-shared
14788@endif libelf-bootstrap
d545f33b 14789
a90ef4bf
JM
14790.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14791maybe-configure-stagefeedback-libelf:
14792@if libelf-bootstrap
14793maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14794configure-stagefeedback-libelf:
c52c6897 14795 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14796 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14797 @r=`${PWD_COMMAND}`; export r; \
14798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14799 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14800 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14801 $(HOST_EXPORTS) \
1b05fbbd
AO
14802 $(POSTSTAGE1_HOST_EXPORTS) \
14803 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14804 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14805 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14806 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14807 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14808 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14809 case $(srcdir) in \
14810 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14811 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14812 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14813 esac; \
1b6c0831
L
14814 module_srcdir=libelf; \
14815 $(SHELL) $$s/$$module_srcdir/configure \
14816 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14817 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14818 --target=${target_alias} \
22121df0 14819 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14820 $(STAGEfeedback_CONFIGURE_FLAGS) \
14821 --disable-shared
14822@endif libelf-bootstrap
d545f33b
PB
14823
14824
14825
14826
14827
a90ef4bf
JM
14828.PHONY: all-libelf maybe-all-libelf
14829maybe-all-libelf:
4f0ef2d8 14830@if gcc-bootstrap
a90ef4bf 14831all-libelf: stage_current
4f0ef2d8 14832@endif gcc-bootstrap
a90ef4bf
JM
14833@if libelf
14834TARGET-libelf=all
14835maybe-all-libelf: all-libelf
14836all-libelf: configure-libelf
c52c6897 14837 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14839 $(HOST_EXPORTS) \
a90ef4bf 14840 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14841 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14842 $(TARGET-libelf))
14843@endif libelf
4fa63067 14844
a7254363 14845
d545f33b 14846
a90ef4bf
JM
14847.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14848.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14849maybe-all-stage1-libelf:
14850maybe-clean-stage1-libelf:
14851@if libelf-bootstrap
14852maybe-all-stage1-libelf: all-stage1-libelf
14853all-stage1: all-stage1-libelf
14854TARGET-stage1-libelf = $(TARGET-libelf)
14855all-stage1-libelf: configure-stage1-libelf
c52c6897 14856 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14857 @r=`${PWD_COMMAND}`; export r; \
14858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14859 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14860 $(HOST_EXPORTS) \
a90ef4bf 14861 cd $(HOST_SUBDIR)/libelf && \
05a13254 14862 \
7f6ef0c0 14863 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14864 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14865 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14866 LIBCFLAGS="$(LIBCFLAGS)" \
14867 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14868 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14869 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14870 $(EXTRA_HOST_FLAGS) \
14871 $(STAGE1_FLAGS_TO_PASS) \
05a13254 14872 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14873 $(TARGET-stage1-libelf)
d545f33b 14874
a90ef4bf
JM
14875maybe-clean-stage1-libelf: clean-stage1-libelf
14876clean-stage1: clean-stage1-libelf
14877clean-stage1-libelf:
9dbaa842 14878 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14879 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14880 else \
a90ef4bf 14881 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14882 $(MAKE) stage1-start; \
14883 fi; \
a90ef4bf 14884 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14885 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14886 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14887@endif libelf-bootstrap
d545f33b
PB
14888
14889
a90ef4bf
JM
14890.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14891.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14892maybe-all-stage2-libelf:
14893maybe-clean-stage2-libelf:
14894@if libelf-bootstrap
14895maybe-all-stage2-libelf: all-stage2-libelf
14896all-stage2: all-stage2-libelf
14897TARGET-stage2-libelf = $(TARGET-libelf)
14898all-stage2-libelf: configure-stage2-libelf
c52c6897 14899 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14900 @r=`${PWD_COMMAND}`; export r; \
14901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14902 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 14903 $(HOST_EXPORTS) \
1f53ca9a 14904 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14905 cd $(HOST_SUBDIR)/libelf && \
05a13254 14906 \
7f6ef0c0 14907 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14908 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 14909 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
14910 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14911 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14912 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14913 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14914 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14915 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 14916 $(TARGET-stage2-libelf)
d545f33b 14917
a90ef4bf
JM
14918maybe-clean-stage2-libelf: clean-stage2-libelf
14919clean-stage2: clean-stage2-libelf
14920clean-stage2-libelf:
9dbaa842 14921 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 14922 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14923 else \
a90ef4bf 14924 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14925 $(MAKE) stage2-start; \
14926 fi; \
a90ef4bf 14927 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14928 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14929@endif libelf-bootstrap
d545f33b
PB
14930
14931
a90ef4bf
JM
14932.PHONY: all-stage3-libelf maybe-all-stage3-libelf
14933.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
14934maybe-all-stage3-libelf:
14935maybe-clean-stage3-libelf:
14936@if libelf-bootstrap
14937maybe-all-stage3-libelf: all-stage3-libelf
14938all-stage3: all-stage3-libelf
14939TARGET-stage3-libelf = $(TARGET-libelf)
14940all-stage3-libelf: configure-stage3-libelf
c52c6897 14941 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
14942 @r=`${PWD_COMMAND}`; export r; \
14943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14944 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 14945 $(HOST_EXPORTS) \
1f53ca9a 14946 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14947 cd $(HOST_SUBDIR)/libelf && \
05a13254 14948 \
7f6ef0c0 14949 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14950 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 14951 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
14952 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14953 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14954 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14955 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14956 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14957 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 14958 $(TARGET-stage3-libelf)
d545f33b 14959
a90ef4bf
JM
14960maybe-clean-stage3-libelf: clean-stage3-libelf
14961clean-stage3: clean-stage3-libelf
14962clean-stage3-libelf:
9dbaa842 14963 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 14964 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14965 else \
a90ef4bf 14966 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14967 $(MAKE) stage3-start; \
14968 fi; \
a90ef4bf 14969 cd $(HOST_SUBDIR)/libelf && \
b3676d82 14970 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14971@endif libelf-bootstrap
d545f33b
PB
14972
14973
a90ef4bf
JM
14974.PHONY: all-stage4-libelf maybe-all-stage4-libelf
14975.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
14976maybe-all-stage4-libelf:
14977maybe-clean-stage4-libelf:
14978@if libelf-bootstrap
14979maybe-all-stage4-libelf: all-stage4-libelf
14980all-stage4: all-stage4-libelf
14981TARGET-stage4-libelf = $(TARGET-libelf)
14982all-stage4-libelf: configure-stage4-libelf
c52c6897 14983 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
14984 @r=`${PWD_COMMAND}`; export r; \
14985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14986 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 14987 $(HOST_EXPORTS) \
1f53ca9a 14988 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 14989 cd $(HOST_SUBDIR)/libelf && \
05a13254 14990 \
7f6ef0c0 14991 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14992 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 14993 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 14994 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
14995 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14996 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14997 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 14998 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 14999 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15000 $(TARGET-stage4-libelf)
d545f33b 15001
a90ef4bf
JM
15002maybe-clean-stage4-libelf: clean-stage4-libelf
15003clean-stage4: clean-stage4-libelf
15004clean-stage4-libelf:
9dbaa842 15005 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 15006 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15007 else \
a90ef4bf 15008 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15009 $(MAKE) stage4-start; \
15010 fi; \
a90ef4bf 15011 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15012 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15013@endif libelf-bootstrap
d545f33b
PB
15014
15015
a90ef4bf
JM
15016.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
15017.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
15018maybe-all-stageprofile-libelf:
15019maybe-clean-stageprofile-libelf:
15020@if libelf-bootstrap
15021maybe-all-stageprofile-libelf: all-stageprofile-libelf
15022all-stageprofile: all-stageprofile-libelf
15023TARGET-stageprofile-libelf = $(TARGET-libelf)
15024all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 15025 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
15026 @r=`${PWD_COMMAND}`; export r; \
15027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15028 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 15029 $(HOST_EXPORTS) \
1f53ca9a 15030 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15031 cd $(HOST_SUBDIR)/libelf && \
05a13254 15032 \
7f6ef0c0 15033 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15034 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 15035 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
15036 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15037 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15038 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15039 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15040 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15041 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15042 $(TARGET-stageprofile-libelf)
d545f33b 15043
a90ef4bf
JM
15044maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
15045clean-stageprofile: clean-stageprofile-libelf
15046clean-stageprofile-libelf:
9dbaa842 15047 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 15048 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15049 else \
a90ef4bf 15050 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15051 $(MAKE) stageprofile-start; \
15052 fi; \
a90ef4bf 15053 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15054 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15055@endif libelf-bootstrap
d545f33b
PB
15056
15057
a90ef4bf
JM
15058.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
15059.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
15060maybe-all-stagefeedback-libelf:
15061maybe-clean-stagefeedback-libelf:
15062@if libelf-bootstrap
15063maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
15064all-stagefeedback: all-stagefeedback-libelf
15065TARGET-stagefeedback-libelf = $(TARGET-libelf)
15066all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 15067 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
15068 @r=`${PWD_COMMAND}`; export r; \
15069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15070 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 15071 $(HOST_EXPORTS) \
1f53ca9a 15072 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15073 cd $(HOST_SUBDIR)/libelf && \
05a13254 15074 \
7f6ef0c0 15075 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15076 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15077 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15078 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15079 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15080 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15081 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15082 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15083 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15084 $(TARGET-stagefeedback-libelf)
d545f33b 15085
a90ef4bf
JM
15086maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15087clean-stagefeedback: clean-stagefeedback-libelf
15088clean-stagefeedback-libelf:
9dbaa842 15089 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15090 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15091 else \
a90ef4bf 15092 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15093 $(MAKE) stagefeedback-start; \
15094 fi; \
a90ef4bf 15095 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15096 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15097@endif libelf-bootstrap
d545f33b
PB
15098
15099
15100
15101
15102
a90ef4bf
JM
15103.PHONY: check-libelf maybe-check-libelf
15104maybe-check-libelf:
15105@if libelf
15106maybe-check-libelf: check-libelf
4fa63067 15107
a90ef4bf 15108check-libelf:
0aed8855 15109 @: $(MAKE); $(unstage)
4fa63067
NN
15110 @r=`${PWD_COMMAND}`; export r; \
15111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15112 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15113 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15114 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15115
a90ef4bf 15116@endif libelf
4fa63067 15117
a90ef4bf
JM
15118.PHONY: install-libelf maybe-install-libelf
15119maybe-install-libelf:
15120@if libelf
15121maybe-install-libelf: install-libelf
4fa63067 15122
a90ef4bf 15123install-libelf:
4fa63067 15124
a90ef4bf 15125@endif libelf
4fa63067 15126
a90ef4bf
JM
15127.PHONY: install-strip-libelf maybe-install-strip-libelf
15128maybe-install-strip-libelf:
15129@if libelf
15130maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15131
a90ef4bf 15132install-strip-libelf:
9b980aa1 15133
a90ef4bf 15134@endif libelf
9b980aa1 15135
56a8fe78 15136# Other targets (info, dvi, pdf, etc.)
4fa63067 15137
a90ef4bf
JM
15138.PHONY: maybe-info-libelf info-libelf
15139maybe-info-libelf:
15140@if libelf
15141maybe-info-libelf: info-libelf
4fa63067 15142
a90ef4bf
JM
15143info-libelf: \
15144 configure-libelf
15145 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15146 r=`${PWD_COMMAND}`; export r; \
15147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15148 $(HOST_EXPORTS) \
a90ef4bf 15149 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15151 done; \
22121df0 15152 echo "Doing info in libelf"; \
a90ef4bf 15153 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15156 "RANLIB=$${RANLIB}" \
0c24b341 15157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15158 info) \
2a4cbe27
NN
15159 || exit 1
15160
a90ef4bf 15161@endif libelf
2a4cbe27 15162
a90ef4bf
JM
15163.PHONY: maybe-dvi-libelf dvi-libelf
15164maybe-dvi-libelf:
15165@if libelf
15166maybe-dvi-libelf: dvi-libelf
2a4cbe27 15167
a90ef4bf
JM
15168dvi-libelf: \
15169 configure-libelf
15170 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15171 r=`${PWD_COMMAND}`; export r; \
15172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15173 $(HOST_EXPORTS) \
a90ef4bf 15174 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15176 done; \
22121df0 15177 echo "Doing dvi in libelf"; \
a90ef4bf 15178 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15181 "RANLIB=$${RANLIB}" \
0c24b341 15182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15183 dvi) \
2a4cbe27
NN
15184 || exit 1
15185
a90ef4bf 15186@endif libelf
2a4cbe27 15187
a90ef4bf
JM
15188.PHONY: maybe-pdf-libelf pdf-libelf
15189maybe-pdf-libelf:
15190@if libelf
15191maybe-pdf-libelf: pdf-libelf
56a8fe78 15192
a90ef4bf
JM
15193pdf-libelf: \
15194 configure-libelf
15195 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15196 r=`${PWD_COMMAND}`; export r; \
15197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15198 $(HOST_EXPORTS) \
a90ef4bf 15199 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15201 done; \
22121df0 15202 echo "Doing pdf in libelf"; \
a90ef4bf 15203 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15206 "RANLIB=$${RANLIB}" \
0c24b341 15207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15208 pdf) \
15209 || exit 1
15210
a90ef4bf 15211@endif libelf
56a8fe78 15212
a90ef4bf
JM
15213.PHONY: maybe-html-libelf html-libelf
15214maybe-html-libelf:
15215@if libelf
15216maybe-html-libelf: html-libelf
6d389afc 15217
a90ef4bf
JM
15218html-libelf: \
15219 configure-libelf
15220 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15221 r=`${PWD_COMMAND}`; export r; \
15222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15223 $(HOST_EXPORTS) \
a90ef4bf 15224 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15226 done; \
22121df0 15227 echo "Doing html in libelf"; \
a90ef4bf 15228 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15231 "RANLIB=$${RANLIB}" \
0c24b341 15232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15233 html) \
15234 || exit 1
15235
a90ef4bf 15236@endif libelf
6d389afc 15237
a90ef4bf
JM
15238.PHONY: maybe-TAGS-libelf TAGS-libelf
15239maybe-TAGS-libelf:
15240@if libelf
15241maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15242
a90ef4bf
JM
15243TAGS-libelf: \
15244 configure-libelf
15245 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15246 r=`${PWD_COMMAND}`; export r; \
15247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15248 $(HOST_EXPORTS) \
a90ef4bf 15249 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15251 done; \
22121df0 15252 echo "Doing TAGS in libelf"; \
a90ef4bf 15253 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15256 "RANLIB=$${RANLIB}" \
0c24b341 15257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15258 TAGS) \
2a4cbe27
NN
15259 || exit 1
15260
a90ef4bf 15261@endif libelf
2a4cbe27 15262
a90ef4bf
JM
15263.PHONY: maybe-install-info-libelf install-info-libelf
15264maybe-install-info-libelf:
15265@if libelf
15266maybe-install-info-libelf: install-info-libelf
a2592b1b 15267
a90ef4bf
JM
15268install-info-libelf: \
15269 configure-libelf \
15270 info-libelf
15271 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15272 r=`${PWD_COMMAND}`; export r; \
15273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15274 $(HOST_EXPORTS) \
a90ef4bf 15275 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15277 done; \
22121df0 15278 echo "Doing install-info in libelf"; \
a90ef4bf 15279 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15282 "RANLIB=$${RANLIB}" \
0c24b341 15283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15284 install-info) \
a2592b1b
DD
15285 || exit 1
15286
a90ef4bf 15287@endif libelf
a2592b1b 15288
a90ef4bf
JM
15289.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15290maybe-install-pdf-libelf:
15291@if libelf
15292maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15293
a90ef4bf
JM
15294install-pdf-libelf: \
15295 configure-libelf \
15296 pdf-libelf
15297 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15298 r=`${PWD_COMMAND}`; export r; \
15299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15300 $(HOST_EXPORTS) \
a90ef4bf 15301 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15303 done; \
22121df0 15304 echo "Doing install-pdf in libelf"; \
a90ef4bf 15305 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15308 "RANLIB=$${RANLIB}" \
0c24b341 15309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15310 install-pdf) \
15311 || exit 1
15312
a90ef4bf 15313@endif libelf
a3ca38d2 15314
a90ef4bf
JM
15315.PHONY: maybe-install-html-libelf install-html-libelf
15316maybe-install-html-libelf:
15317@if libelf
15318maybe-install-html-libelf: install-html-libelf
108a6f8e 15319
a90ef4bf
JM
15320install-html-libelf: \
15321 configure-libelf \
15322 html-libelf
15323 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15324 r=`${PWD_COMMAND}`; export r; \
15325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15326 $(HOST_EXPORTS) \
a90ef4bf 15327 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15329 done; \
22121df0 15330 echo "Doing install-html in libelf"; \
a90ef4bf 15331 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
15332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15334 "RANLIB=$${RANLIB}" \
0c24b341 15335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
15336 install-html) \
15337 || exit 1
15338
a90ef4bf 15339@endif libelf
108a6f8e 15340
a90ef4bf
JM
15341.PHONY: maybe-installcheck-libelf installcheck-libelf
15342maybe-installcheck-libelf:
15343@if libelf
15344maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15345
a90ef4bf
JM
15346installcheck-libelf: \
15347 configure-libelf
15348 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15349 r=`${PWD_COMMAND}`; export r; \
15350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15351 $(HOST_EXPORTS) \
a90ef4bf 15352 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15354 done; \
22121df0 15355 echo "Doing installcheck in libelf"; \
a90ef4bf 15356 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15359 "RANLIB=$${RANLIB}" \
0c24b341 15360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15361 installcheck) \
4fa63067 15362 || exit 1
2a4cbe27 15363
a90ef4bf 15364@endif libelf
4fa63067 15365
a90ef4bf
JM
15366.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15367maybe-mostlyclean-libelf:
15368@if libelf
15369maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15370
a90ef4bf
JM
15371mostlyclean-libelf:
15372 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15373 r=`${PWD_COMMAND}`; export r; \
15374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15375 $(HOST_EXPORTS) \
a90ef4bf 15376 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15378 done; \
22121df0 15379 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15380 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15383 "RANLIB=$${RANLIB}" \
0c24b341 15384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15385 mostlyclean) \
2a4cbe27
NN
15386 || exit 1
15387
a90ef4bf 15388@endif libelf
2a4cbe27 15389
a90ef4bf
JM
15390.PHONY: maybe-clean-libelf clean-libelf
15391maybe-clean-libelf:
15392@if libelf
15393maybe-clean-libelf: clean-libelf
2a4cbe27 15394
a90ef4bf
JM
15395clean-libelf:
15396 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15397 r=`${PWD_COMMAND}`; export r; \
15398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15399 $(HOST_EXPORTS) \
a90ef4bf 15400 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15402 done; \
22121df0 15403 echo "Doing clean in libelf"; \
a90ef4bf 15404 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15407 "RANLIB=$${RANLIB}" \
0c24b341 15408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15409 clean) \
2a4cbe27
NN
15410 || exit 1
15411
a90ef4bf 15412@endif libelf
2a4cbe27 15413
a90ef4bf
JM
15414.PHONY: maybe-distclean-libelf distclean-libelf
15415maybe-distclean-libelf:
15416@if libelf
15417maybe-distclean-libelf: distclean-libelf
2a4cbe27 15418
a90ef4bf
JM
15419distclean-libelf:
15420 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15421 r=`${PWD_COMMAND}`; export r; \
15422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15423 $(HOST_EXPORTS) \
a90ef4bf 15424 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15426 done; \
22121df0 15427 echo "Doing distclean in libelf"; \
a90ef4bf 15428 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15431 "RANLIB=$${RANLIB}" \
0c24b341 15432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15433 distclean) \
2a4cbe27
NN
15434 || exit 1
15435
a90ef4bf 15436@endif libelf
2a4cbe27 15437
a90ef4bf
JM
15438.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15439maybe-maintainer-clean-libelf:
15440@if libelf
15441maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15442
a90ef4bf
JM
15443maintainer-clean-libelf:
15444 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15445 r=`${PWD_COMMAND}`; export r; \
15446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15447 $(HOST_EXPORTS) \
a90ef4bf 15448 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15450 done; \
22121df0 15451 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15452 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15455 "RANLIB=$${RANLIB}" \
0c24b341 15456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15457 maintainer-clean) \
2a4cbe27
NN
15458 || exit 1
15459
a90ef4bf 15460@endif libelf
2a4cbe27 15461
2a4cbe27 15462
a7254363 15463
a90ef4bf
JM
15464.PHONY: configure-gold maybe-configure-gold
15465maybe-configure-gold:
4f0ef2d8 15466@if gcc-bootstrap
a90ef4bf 15467configure-gold: stage_current
4f0ef2d8 15468@endif gcc-bootstrap
a90ef4bf
JM
15469@if gold
15470maybe-configure-gold: configure-gold
15471configure-gold:
c52c6897 15472 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15474 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15475 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15476 $(HOST_EXPORTS) \
a90ef4bf
JM
15477 echo Configuring in $(HOST_SUBDIR)/gold; \
15478 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15479 case $(srcdir) in \
b00612cc 15480 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15481 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15482 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15483 esac; \
1b6c0831
L
15484 module_srcdir=gold; \
15485 $(SHELL) \
15486 $$s/$$module_srcdir/configure \
15487 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15488 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15489 --target=${target_alias} \
4fa63067 15490 || exit 1
a90ef4bf 15491@endif gold
a7254363 15492
d545f33b
PB
15493
15494
a90ef4bf
JM
15495.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15496maybe-configure-stage1-gold:
15497@if gold-bootstrap
15498maybe-configure-stage1-gold: configure-stage1-gold
15499configure-stage1-gold:
15500 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15501 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15502 @r=`${PWD_COMMAND}`; export r; \
15503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15504 TFLAGS="$(STAGE1_TFLAGS)"; \
15505 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15506 $(HOST_EXPORTS) \
15507 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15508 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15509 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15510 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15511 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15512 cd $(HOST_SUBDIR)/gold || exit 1; \
15513 case $(srcdir) in \
15514 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15515 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15516 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15517 esac; \
1b6c0831
L
15518 module_srcdir=gold; \
15519 $(SHELL) $$s/$$module_srcdir/configure \
15520 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15521 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15522 --target=${target_alias} \
15523 \
a90ef4bf
JM
15524 $(STAGE1_CONFIGURE_FLAGS)
15525@endif gold-bootstrap
4fa63067 15526
a90ef4bf
JM
15527.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15528maybe-configure-stage2-gold:
15529@if gold-bootstrap
15530maybe-configure-stage2-gold: configure-stage2-gold
15531configure-stage2-gold:
15532 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15533 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15534 @r=`${PWD_COMMAND}`; export r; \
15535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15536 TFLAGS="$(STAGE2_TFLAGS)"; \
15537 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15538 $(HOST_EXPORTS) \
a90ef4bf
JM
15539 $(POSTSTAGE1_HOST_EXPORTS) \
15540 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15541 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15542 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15543 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15544 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15545 cd $(HOST_SUBDIR)/gold || exit 1; \
15546 case $(srcdir) in \
15547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15548 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15550 esac; \
1b6c0831
L
15551 module_srcdir=gold; \
15552 $(SHELL) $$s/$$module_srcdir/configure \
15553 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15554 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15555 --target=${target_alias} \
22121df0 15556 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15557 $(STAGE2_CONFIGURE_FLAGS)
15558@endif gold-bootstrap
4fa63067 15559
a90ef4bf
JM
15560.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15561maybe-configure-stage3-gold:
15562@if gold-bootstrap
15563maybe-configure-stage3-gold: configure-stage3-gold
15564configure-stage3-gold:
15565 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15566 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15567 @r=`${PWD_COMMAND}`; export r; \
15568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15569 TFLAGS="$(STAGE3_TFLAGS)"; \
15570 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15571 $(HOST_EXPORTS) \
a90ef4bf
JM
15572 $(POSTSTAGE1_HOST_EXPORTS) \
15573 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15574 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15575 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15576 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15577 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15578 cd $(HOST_SUBDIR)/gold || exit 1; \
15579 case $(srcdir) in \
15580 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15581 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15582 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15583 esac; \
1b6c0831
L
15584 module_srcdir=gold; \
15585 $(SHELL) $$s/$$module_srcdir/configure \
15586 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15588 --target=${target_alias} \
22121df0 15589 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15590 $(STAGE3_CONFIGURE_FLAGS)
15591@endif gold-bootstrap
9b980aa1 15592
a90ef4bf
JM
15593.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15594maybe-configure-stage4-gold:
15595@if gold-bootstrap
15596maybe-configure-stage4-gold: configure-stage4-gold
15597configure-stage4-gold:
15598 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15599 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15600 @r=`${PWD_COMMAND}`; export r; \
15601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15602 TFLAGS="$(STAGE4_TFLAGS)"; \
15603 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15604 $(HOST_EXPORTS) \
a90ef4bf
JM
15605 $(POSTSTAGE1_HOST_EXPORTS) \
15606 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15607 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15608 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15609 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15610 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15611 cd $(HOST_SUBDIR)/gold || exit 1; \
15612 case $(srcdir) in \
15613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15614 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15616 esac; \
1b6c0831
L
15617 module_srcdir=gold; \
15618 $(SHELL) $$s/$$module_srcdir/configure \
15619 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15620 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15621 --target=${target_alias} \
22121df0 15622 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15623 $(STAGE4_CONFIGURE_FLAGS)
15624@endif gold-bootstrap
4fa63067 15625
a90ef4bf
JM
15626.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15627maybe-configure-stageprofile-gold:
15628@if gold-bootstrap
15629maybe-configure-stageprofile-gold: configure-stageprofile-gold
15630configure-stageprofile-gold:
15631 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15632 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15633 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15635 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15636 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15637 $(HOST_EXPORTS) \
a90ef4bf
JM
15638 $(POSTSTAGE1_HOST_EXPORTS) \
15639 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15640 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15641 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15642 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15643 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15644 cd $(HOST_SUBDIR)/gold || exit 1; \
15645 case $(srcdir) in \
15646 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15647 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15648 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15649 esac; \
1b6c0831
L
15650 module_srcdir=gold; \
15651 $(SHELL) $$s/$$module_srcdir/configure \
15652 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15653 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15654 --target=${target_alias} \
22121df0 15655 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15656 $(STAGEprofile_CONFIGURE_FLAGS)
15657@endif gold-bootstrap
2a4cbe27 15658
a90ef4bf
JM
15659.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15660maybe-configure-stagefeedback-gold:
15661@if gold-bootstrap
15662maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15663configure-stagefeedback-gold:
15664 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15665 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15666 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15668 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15669 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15670 $(HOST_EXPORTS) \
a90ef4bf
JM
15671 $(POSTSTAGE1_HOST_EXPORTS) \
15672 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15673 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15674 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15675 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15676 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15677 cd $(HOST_SUBDIR)/gold || exit 1; \
15678 case $(srcdir) in \
15679 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15680 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15681 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15682 esac; \
1b6c0831
L
15683 module_srcdir=gold; \
15684 $(SHELL) $$s/$$module_srcdir/configure \
15685 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15686 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15687 --target=${target_alias} \
22121df0 15688 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15689 $(STAGEfeedback_CONFIGURE_FLAGS)
15690@endif gold-bootstrap
2a4cbe27 15691
56a8fe78 15692
56a8fe78 15693
56a8fe78 15694
6d389afc 15695
a90ef4bf
JM
15696.PHONY: all-gold maybe-all-gold
15697maybe-all-gold:
15698@if gcc-bootstrap
15699all-gold: stage_current
15700@endif gcc-bootstrap
15701@if gold
15702TARGET-gold=all
15703maybe-all-gold: all-gold
15704all-gold: configure-gold
15705 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15707 $(HOST_EXPORTS) \
15708 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15709 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15710 $(TARGET-gold))
15711@endif gold
6d389afc 15712
6d389afc 15713
2a4cbe27 15714
a90ef4bf
JM
15715.PHONY: all-stage1-gold maybe-all-stage1-gold
15716.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15717maybe-all-stage1-gold:
15718maybe-clean-stage1-gold:
15719@if gold-bootstrap
15720maybe-all-stage1-gold: all-stage1-gold
15721all-stage1: all-stage1-gold
15722TARGET-stage1-gold = $(TARGET-gold)
15723all-stage1-gold: configure-stage1-gold
15724 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15725 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15727 TFLAGS="$(STAGE1_TFLAGS)"; \
15728 $(HOST_EXPORTS) \
15729 cd $(HOST_SUBDIR)/gold && \
05a13254 15730 \
a90ef4bf
JM
15731 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15732 CFLAGS="$(STAGE1_CFLAGS)" \
15733 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15734 LIBCFLAGS="$(LIBCFLAGS)" \
15735 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15736 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15737 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15738 $(EXTRA_HOST_FLAGS) \
15739 $(STAGE1_FLAGS_TO_PASS) \
05a13254 15740 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 15741 $(TARGET-stage1-gold)
2a4cbe27 15742
a90ef4bf
JM
15743maybe-clean-stage1-gold: clean-stage1-gold
15744clean-stage1: clean-stage1-gold
15745clean-stage1-gold:
15746 @if [ $(current_stage) = stage1 ]; then \
15747 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15748 else \
15749 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15750 $(MAKE) stage1-start; \
15751 fi; \
15752 cd $(HOST_SUBDIR)/gold && \
15753 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15754 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15755@endif gold-bootstrap
2a4cbe27 15756
2a4cbe27 15757
a90ef4bf
JM
15758.PHONY: all-stage2-gold maybe-all-stage2-gold
15759.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15760maybe-all-stage2-gold:
15761maybe-clean-stage2-gold:
15762@if gold-bootstrap
15763maybe-all-stage2-gold: all-stage2-gold
15764all-stage2: all-stage2-gold
15765TARGET-stage2-gold = $(TARGET-gold)
15766all-stage2-gold: configure-stage2-gold
15767 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15768 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15770 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15771 $(HOST_EXPORTS) \
a90ef4bf
JM
15772 $(POSTSTAGE1_HOST_EXPORTS) \
15773 cd $(HOST_SUBDIR)/gold && \
05a13254 15774 \
a90ef4bf
JM
15775 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15776 CFLAGS="$(STAGE2_CFLAGS)" \
15777 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15778 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15779 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15780 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15781 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15782 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15783 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 15784 $(TARGET-stage2-gold)
2a4cbe27 15785
a90ef4bf
JM
15786maybe-clean-stage2-gold: clean-stage2-gold
15787clean-stage2: clean-stage2-gold
15788clean-stage2-gold:
15789 @if [ $(current_stage) = stage2 ]; then \
15790 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15791 else \
15792 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15793 $(MAKE) stage2-start; \
15794 fi; \
15795 cd $(HOST_SUBDIR)/gold && \
b3676d82 15796 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15797@endif gold-bootstrap
2a4cbe27 15798
a3ca38d2 15799
a90ef4bf
JM
15800.PHONY: all-stage3-gold maybe-all-stage3-gold
15801.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15802maybe-all-stage3-gold:
15803maybe-clean-stage3-gold:
15804@if gold-bootstrap
15805maybe-all-stage3-gold: all-stage3-gold
15806all-stage3: all-stage3-gold
15807TARGET-stage3-gold = $(TARGET-gold)
15808all-stage3-gold: configure-stage3-gold
15809 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15810 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15812 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15813 $(HOST_EXPORTS) \
a90ef4bf
JM
15814 $(POSTSTAGE1_HOST_EXPORTS) \
15815 cd $(HOST_SUBDIR)/gold && \
05a13254 15816 \
a90ef4bf
JM
15817 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15818 CFLAGS="$(STAGE3_CFLAGS)" \
15819 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15820 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15821 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15822 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15823 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15824 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15825 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 15826 $(TARGET-stage3-gold)
2a4cbe27 15827
a90ef4bf
JM
15828maybe-clean-stage3-gold: clean-stage3-gold
15829clean-stage3: clean-stage3-gold
15830clean-stage3-gold:
15831 @if [ $(current_stage) = stage3 ]; then \
15832 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15833 else \
15834 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15835 $(MAKE) stage3-start; \
15836 fi; \
15837 cd $(HOST_SUBDIR)/gold && \
b3676d82 15838 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15839@endif gold-bootstrap
2a4cbe27 15840
2a4cbe27 15841
a90ef4bf
JM
15842.PHONY: all-stage4-gold maybe-all-stage4-gold
15843.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15844maybe-all-stage4-gold:
15845maybe-clean-stage4-gold:
15846@if gold-bootstrap
15847maybe-all-stage4-gold: all-stage4-gold
15848all-stage4: all-stage4-gold
15849TARGET-stage4-gold = $(TARGET-gold)
15850all-stage4-gold: configure-stage4-gold
15851 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15852 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15854 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15855 $(HOST_EXPORTS) \
a90ef4bf
JM
15856 $(POSTSTAGE1_HOST_EXPORTS) \
15857 cd $(HOST_SUBDIR)/gold && \
05a13254 15858 \
a90ef4bf
JM
15859 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15860 CFLAGS="$(STAGE4_CFLAGS)" \
15861 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15862 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15863 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15864 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15865 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15866 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15867 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15868 $(TARGET-stage4-gold)
2a4cbe27 15869
a90ef4bf
JM
15870maybe-clean-stage4-gold: clean-stage4-gold
15871clean-stage4: clean-stage4-gold
15872clean-stage4-gold:
15873 @if [ $(current_stage) = stage4 ]; then \
15874 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15875 else \
15876 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15877 $(MAKE) stage4-start; \
15878 fi; \
15879 cd $(HOST_SUBDIR)/gold && \
b3676d82 15880 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15881@endif gold-bootstrap
2a4cbe27 15882
2a4cbe27 15883
a90ef4bf
JM
15884.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15885.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15886maybe-all-stageprofile-gold:
15887maybe-clean-stageprofile-gold:
15888@if gold-bootstrap
15889maybe-all-stageprofile-gold: all-stageprofile-gold
15890all-stageprofile: all-stageprofile-gold
15891TARGET-stageprofile-gold = $(TARGET-gold)
15892all-stageprofile-gold: configure-stageprofile-gold
15893 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15894 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15896 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15897 $(HOST_EXPORTS) \
a90ef4bf
JM
15898 $(POSTSTAGE1_HOST_EXPORTS) \
15899 cd $(HOST_SUBDIR)/gold && \
05a13254 15900 \
a90ef4bf
JM
15901 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15902 CFLAGS="$(STAGEprofile_CFLAGS)" \
15903 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
15904 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15905 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15906 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15907 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15908 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15909 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15910 $(TARGET-stageprofile-gold)
2a4cbe27 15911
a90ef4bf
JM
15912maybe-clean-stageprofile-gold: clean-stageprofile-gold
15913clean-stageprofile: clean-stageprofile-gold
15914clean-stageprofile-gold:
15915 @if [ $(current_stage) = stageprofile ]; then \
15916 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15917 else \
15918 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
15919 $(MAKE) stageprofile-start; \
15920 fi; \
15921 cd $(HOST_SUBDIR)/gold && \
b3676d82 15922 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15923@endif gold-bootstrap
2a4cbe27 15924
a7254363 15925
a90ef4bf
JM
15926.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
15927.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
15928maybe-all-stagefeedback-gold:
15929maybe-clean-stagefeedback-gold:
15930@if gold-bootstrap
15931maybe-all-stagefeedback-gold: all-stagefeedback-gold
15932all-stagefeedback: all-stagefeedback-gold
15933TARGET-stagefeedback-gold = $(TARGET-gold)
15934all-stagefeedback-gold: configure-stagefeedback-gold
15935 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 15936 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15938 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15939 $(HOST_EXPORTS) \
15940 $(POSTSTAGE1_HOST_EXPORTS) \
15941 cd $(HOST_SUBDIR)/gold && \
05a13254 15942 \
a90ef4bf
JM
15943 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15944 CFLAGS="$(STAGEfeedback_CFLAGS)" \
15945 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
15946 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15947 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15948 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15949 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15950 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15951 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15952 $(TARGET-stagefeedback-gold)
d545f33b 15953
a90ef4bf
JM
15954maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
15955clean-stagefeedback: clean-stagefeedback-gold
15956clean-stagefeedback-gold:
15957 @if [ $(current_stage) = stagefeedback ]; then \
15958 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15959 else \
15960 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
15961 $(MAKE) stagefeedback-start; \
15962 fi; \
15963 cd $(HOST_SUBDIR)/gold && \
b3676d82 15964 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15965@endif gold-bootstrap
d545f33b 15966
4fa63067 15967
a7254363 15968
d545f33b
PB
15969
15970
a90ef4bf
JM
15971.PHONY: check-gold maybe-check-gold
15972maybe-check-gold:
15973@if gold
15974maybe-check-gold: check-gold
4fa63067 15975
a90ef4bf 15976check-gold:
0aed8855 15977 @: $(MAKE); $(unstage)
4fa63067
NN
15978 @r=`${PWD_COMMAND}`; export r; \
15979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15980 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15981 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 15982 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15983
a90ef4bf 15984@endif gold
4fa63067 15985
a90ef4bf
JM
15986.PHONY: install-gold maybe-install-gold
15987maybe-install-gold:
15988@if gold
15989maybe-install-gold: install-gold
4fa63067 15990
a90ef4bf 15991install-gold: installdirs
0aed8855 15992 @: $(MAKE); $(unstage)
4fa63067
NN
15993 @r=`${PWD_COMMAND}`; export r; \
15994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15995 $(HOST_EXPORTS) \
a90ef4bf 15996 (cd $(HOST_SUBDIR)/gold && \
2da12f12 15997 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 15998
a90ef4bf 15999@endif gold
4fa63067 16000
a90ef4bf
JM
16001.PHONY: install-strip-gold maybe-install-strip-gold
16002maybe-install-strip-gold:
16003@if gold
16004maybe-install-strip-gold: install-strip-gold
9b980aa1 16005
a90ef4bf 16006install-strip-gold: installdirs
9b980aa1
RW
16007 @: $(MAKE); $(unstage)
16008 @r=`${PWD_COMMAND}`; export r; \
16009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16010 $(HOST_EXPORTS) \
a90ef4bf 16011 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
16012 $(MAKE) $(FLAGS_TO_PASS) install-strip)
16013
a90ef4bf 16014@endif gold
9b980aa1 16015
56a8fe78 16016# Other targets (info, dvi, pdf, etc.)
4fa63067 16017
a90ef4bf
JM
16018.PHONY: maybe-info-gold info-gold
16019maybe-info-gold:
16020@if gold
16021maybe-info-gold: info-gold
4fa63067 16022
a90ef4bf
JM
16023info-gold: \
16024 configure-gold
16025 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16026 r=`${PWD_COMMAND}`; export r; \
16027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16028 $(HOST_EXPORTS) \
b813574b 16029 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16031 done; \
22121df0 16032 echo "Doing info in gold"; \
a90ef4bf 16033 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16036 "RANLIB=$${RANLIB}" \
0c24b341 16037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16038 info) \
2a4cbe27
NN
16039 || exit 1
16040
a90ef4bf 16041@endif gold
2a4cbe27 16042
a90ef4bf
JM
16043.PHONY: maybe-dvi-gold dvi-gold
16044maybe-dvi-gold:
16045@if gold
16046maybe-dvi-gold: dvi-gold
2a4cbe27 16047
a90ef4bf
JM
16048dvi-gold: \
16049 configure-gold
16050 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16051 r=`${PWD_COMMAND}`; export r; \
16052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16053 $(HOST_EXPORTS) \
b813574b 16054 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16056 done; \
22121df0 16057 echo "Doing dvi in gold"; \
a90ef4bf 16058 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16061 "RANLIB=$${RANLIB}" \
0c24b341 16062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16063 dvi) \
2a4cbe27
NN
16064 || exit 1
16065
a90ef4bf 16066@endif gold
2a4cbe27 16067
a90ef4bf
JM
16068.PHONY: maybe-pdf-gold pdf-gold
16069maybe-pdf-gold:
16070@if gold
16071maybe-pdf-gold: pdf-gold
56a8fe78 16072
a90ef4bf
JM
16073pdf-gold: \
16074 configure-gold
16075 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
16076 r=`${PWD_COMMAND}`; export r; \
16077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16078 $(HOST_EXPORTS) \
16079 for flag in $(EXTRA_HOST_FLAGS) ; do \
16080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16081 done; \
22121df0 16082 echo "Doing pdf in gold"; \
a90ef4bf 16083 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16086 "RANLIB=$${RANLIB}" \
0c24b341 16087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16088 pdf) \
16089 || exit 1
16090
a90ef4bf 16091@endif gold
56a8fe78 16092
a90ef4bf
JM
16093.PHONY: maybe-html-gold html-gold
16094maybe-html-gold:
16095@if gold
16096maybe-html-gold: html-gold
6d389afc 16097
a90ef4bf
JM
16098html-gold: \
16099 configure-gold
16100 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16101 r=`${PWD_COMMAND}`; export r; \
16102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16103 $(HOST_EXPORTS) \
16104 for flag in $(EXTRA_HOST_FLAGS) ; do \
16105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16106 done; \
22121df0 16107 echo "Doing html in gold"; \
a90ef4bf 16108 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16111 "RANLIB=$${RANLIB}" \
0c24b341 16112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16113 html) \
16114 || exit 1
16115
a90ef4bf 16116@endif gold
6d389afc 16117
a90ef4bf
JM
16118.PHONY: maybe-TAGS-gold TAGS-gold
16119maybe-TAGS-gold:
16120@if gold
16121maybe-TAGS-gold: TAGS-gold
2a4cbe27 16122
a90ef4bf
JM
16123TAGS-gold: \
16124 configure-gold
16125 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16126 r=`${PWD_COMMAND}`; export r; \
16127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16128 $(HOST_EXPORTS) \
b813574b 16129 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16131 done; \
22121df0 16132 echo "Doing TAGS in gold"; \
a90ef4bf 16133 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16136 "RANLIB=$${RANLIB}" \
0c24b341 16137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16138 TAGS) \
2a4cbe27
NN
16139 || exit 1
16140
a90ef4bf 16141@endif gold
2a4cbe27 16142
a90ef4bf
JM
16143.PHONY: maybe-install-info-gold install-info-gold
16144maybe-install-info-gold:
16145@if gold
16146maybe-install-info-gold: install-info-gold
b813574b 16147
a90ef4bf
JM
16148install-info-gold: \
16149 configure-gold \
16150 info-gold
16151 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16152 r=`${PWD_COMMAND}`; export r; \
16153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16154 $(HOST_EXPORTS) \
b813574b 16155 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16157 done; \
22121df0 16158 echo "Doing install-info in gold"; \
a90ef4bf 16159 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16162 "RANLIB=$${RANLIB}" \
0c24b341 16163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16164 install-info) \
2a4cbe27
NN
16165 || exit 1
16166
a90ef4bf 16167@endif gold
2a4cbe27 16168
a90ef4bf
JM
16169.PHONY: maybe-install-pdf-gold install-pdf-gold
16170maybe-install-pdf-gold:
16171@if gold
16172maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16173
a90ef4bf
JM
16174install-pdf-gold: \
16175 configure-gold \
16176 pdf-gold
16177 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16178 r=`${PWD_COMMAND}`; export r; \
16179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16180 $(HOST_EXPORTS) \
16181 for flag in $(EXTRA_HOST_FLAGS) ; do \
16182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16183 done; \
22121df0 16184 echo "Doing install-pdf in gold"; \
a90ef4bf 16185 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16188 "RANLIB=$${RANLIB}" \
0c24b341 16189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16190 install-pdf) \
16191 || exit 1
16192
a90ef4bf 16193@endif gold
a3ca38d2 16194
a90ef4bf
JM
16195.PHONY: maybe-install-html-gold install-html-gold
16196maybe-install-html-gold:
16197@if gold
16198maybe-install-html-gold: install-html-gold
108a6f8e 16199
a90ef4bf
JM
16200install-html-gold: \
16201 configure-gold \
16202 html-gold
16203 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16204 r=`${PWD_COMMAND}`; export r; \
16205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16206 $(HOST_EXPORTS) \
16207 for flag in $(EXTRA_HOST_FLAGS) ; do \
16208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16209 done; \
22121df0 16210 echo "Doing install-html in gold"; \
a90ef4bf 16211 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
16212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16214 "RANLIB=$${RANLIB}" \
0c24b341 16215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
16216 install-html) \
16217 || exit 1
16218
a90ef4bf 16219@endif gold
108a6f8e 16220
a90ef4bf
JM
16221.PHONY: maybe-installcheck-gold installcheck-gold
16222maybe-installcheck-gold:
16223@if gold
16224maybe-installcheck-gold: installcheck-gold
2a4cbe27 16225
a90ef4bf
JM
16226installcheck-gold: \
16227 configure-gold
16228 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16229 r=`${PWD_COMMAND}`; export r; \
16230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16231 $(HOST_EXPORTS) \
b813574b 16232 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16234 done; \
22121df0 16235 echo "Doing installcheck in gold"; \
a90ef4bf 16236 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16239 "RANLIB=$${RANLIB}" \
0c24b341 16240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16241 installcheck) \
2a4cbe27
NN
16242 || exit 1
16243
a90ef4bf 16244@endif gold
2a4cbe27 16245
a90ef4bf
JM
16246.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16247maybe-mostlyclean-gold:
16248@if gold
16249maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16250
a90ef4bf
JM
16251mostlyclean-gold:
16252 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16253 r=`${PWD_COMMAND}`; export r; \
16254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16255 $(HOST_EXPORTS) \
b813574b 16256 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16258 done; \
22121df0 16259 echo "Doing mostlyclean in gold"; \
a90ef4bf 16260 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16263 "RANLIB=$${RANLIB}" \
0c24b341 16264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16265 mostlyclean) \
2a4cbe27
NN
16266 || exit 1
16267
a90ef4bf 16268@endif gold
2a4cbe27 16269
a90ef4bf
JM
16270.PHONY: maybe-clean-gold clean-gold
16271maybe-clean-gold:
16272@if gold
16273maybe-clean-gold: clean-gold
2a4cbe27 16274
a90ef4bf
JM
16275clean-gold:
16276 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16277 r=`${PWD_COMMAND}`; export r; \
16278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16279 $(HOST_EXPORTS) \
b813574b 16280 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16282 done; \
22121df0 16283 echo "Doing clean in gold"; \
a90ef4bf 16284 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16287 "RANLIB=$${RANLIB}" \
0c24b341 16288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16289 clean) \
2a4cbe27
NN
16290 || exit 1
16291
a90ef4bf 16292@endif gold
2a4cbe27 16293
a90ef4bf
JM
16294.PHONY: maybe-distclean-gold distclean-gold
16295maybe-distclean-gold:
16296@if gold
16297maybe-distclean-gold: distclean-gold
2a4cbe27 16298
a90ef4bf
JM
16299distclean-gold:
16300 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16301 r=`${PWD_COMMAND}`; export r; \
16302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16303 $(HOST_EXPORTS) \
b813574b 16304 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16306 done; \
22121df0 16307 echo "Doing distclean in gold"; \
a90ef4bf 16308 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16311 "RANLIB=$${RANLIB}" \
0c24b341 16312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16313 distclean) \
2a4cbe27
NN
16314 || exit 1
16315
a90ef4bf 16316@endif gold
2a4cbe27 16317
a90ef4bf
JM
16318.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16319maybe-maintainer-clean-gold:
16320@if gold
16321maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16322
a90ef4bf
JM
16323maintainer-clean-gold:
16324 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16325 r=`${PWD_COMMAND}`; export r; \
16326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16327 $(HOST_EXPORTS) \
b813574b 16328 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16330 done; \
22121df0 16331 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16332 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16335 "RANLIB=$${RANLIB}" \
0c24b341 16336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16337 maintainer-clean) \
4fa63067
NN
16338 || exit 1
16339
a90ef4bf 16340@endif gold
4fa63067
NN
16341
16342
a7254363 16343
a90ef4bf
JM
16344.PHONY: configure-gprof maybe-configure-gprof
16345maybe-configure-gprof:
4b900473 16346@if gcc-bootstrap
a90ef4bf 16347configure-gprof: stage_current
4b900473 16348@endif gcc-bootstrap
a90ef4bf
JM
16349@if gprof
16350maybe-configure-gprof: configure-gprof
16351configure-gprof:
16352 @: $(MAKE); $(unstage)
4b900473
PB
16353 @r=`${PWD_COMMAND}`; export r; \
16354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16355 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16356 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16357 $(HOST_EXPORTS) \
a90ef4bf
JM
16358 echo Configuring in $(HOST_SUBDIR)/gprof; \
16359 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16360 case $(srcdir) in \
16361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16362 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16364 esac; \
1b6c0831
L
16365 module_srcdir=gprof; \
16366 $(SHELL) \
16367 $$s/$$module_srcdir/configure \
16368 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16369 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16370 --target=${target_alias} \
4b900473 16371 || exit 1
a90ef4bf 16372@endif gprof
4b900473
PB
16373
16374
16375
4b900473 16376
a90ef4bf
JM
16377
16378.PHONY: all-gprof maybe-all-gprof
16379maybe-all-gprof:
16380@if gcc-bootstrap
16381all-gprof: stage_current
16382@endif gcc-bootstrap
16383@if gprof
16384TARGET-gprof=all
16385maybe-all-gprof: all-gprof
16386all-gprof: configure-gprof
16387 @: $(MAKE); $(unstage)
4b900473
PB
16388 @r=`${PWD_COMMAND}`; export r; \
16389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16390 $(HOST_EXPORTS) \
a90ef4bf 16391 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16392 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16393 $(TARGET-gprof))
16394@endif gprof
4b900473
PB
16395
16396
4b900473 16397
4b900473 16398
a90ef4bf
JM
16399.PHONY: check-gprof maybe-check-gprof
16400maybe-check-gprof:
16401@if gprof
16402maybe-check-gprof: check-gprof
4b900473 16403
a90ef4bf
JM
16404check-gprof:
16405 @: $(MAKE); $(unstage)
4b900473
PB
16406 @r=`${PWD_COMMAND}`; export r; \
16407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16408 $(HOST_EXPORTS) \
a90ef4bf
JM
16409 (cd $(HOST_SUBDIR)/gprof && \
16410 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16411
a90ef4bf 16412@endif gprof
4b900473 16413
a90ef4bf
JM
16414.PHONY: install-gprof maybe-install-gprof
16415maybe-install-gprof:
16416@if gprof
16417maybe-install-gprof: install-gprof
4b900473 16418
a90ef4bf
JM
16419install-gprof: installdirs
16420 @: $(MAKE); $(unstage)
4b900473
PB
16421 @r=`${PWD_COMMAND}`; export r; \
16422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16423 $(HOST_EXPORTS) \
a90ef4bf
JM
16424 (cd $(HOST_SUBDIR)/gprof && \
16425 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16426
a90ef4bf 16427@endif gprof
4b900473 16428
a90ef4bf
JM
16429.PHONY: install-strip-gprof maybe-install-strip-gprof
16430maybe-install-strip-gprof:
16431@if gprof
16432maybe-install-strip-gprof: install-strip-gprof
4b900473 16433
a90ef4bf 16434install-strip-gprof: installdirs
4b900473
PB
16435 @: $(MAKE); $(unstage)
16436 @r=`${PWD_COMMAND}`; export r; \
16437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16438 $(HOST_EXPORTS) \
a90ef4bf
JM
16439 (cd $(HOST_SUBDIR)/gprof && \
16440 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16441
a90ef4bf 16442@endif gprof
9b980aa1 16443
4b900473
PB
16444# Other targets (info, dvi, pdf, etc.)
16445
a90ef4bf
JM
16446.PHONY: maybe-info-gprof info-gprof
16447maybe-info-gprof:
16448@if gprof
16449maybe-info-gprof: info-gprof
4b900473 16450
a90ef4bf
JM
16451info-gprof: \
16452 configure-gprof
16453 @: $(MAKE); $(unstage)
16454 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16455 r=`${PWD_COMMAND}`; export r; \
16456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16457 $(HOST_EXPORTS) \
16458 for flag in $(EXTRA_HOST_FLAGS) ; do \
16459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16460 done; \
22121df0 16461 echo "Doing info in gprof"; \
a90ef4bf 16462 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16465 "RANLIB=$${RANLIB}" \
0c24b341 16466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16467 info) \
16468 || exit 1
16469
a90ef4bf 16470@endif gprof
4b900473 16471
a90ef4bf
JM
16472.PHONY: maybe-dvi-gprof dvi-gprof
16473maybe-dvi-gprof:
16474@if gprof
16475maybe-dvi-gprof: dvi-gprof
4b900473 16476
a90ef4bf
JM
16477dvi-gprof: \
16478 configure-gprof
16479 @: $(MAKE); $(unstage)
16480 @[ -f ./gprof/Makefile ] || exit 0; \
16481 r=`${PWD_COMMAND}`; export r; \
16482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16483 $(HOST_EXPORTS) \
4b900473
PB
16484 for flag in $(EXTRA_HOST_FLAGS) ; do \
16485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16486 done; \
22121df0 16487 echo "Doing dvi in gprof"; \
a90ef4bf 16488 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16491 "RANLIB=$${RANLIB}" \
0c24b341 16492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16493 dvi) \
16494 || exit 1
16495
a90ef4bf 16496@endif gprof
4b900473 16497
a90ef4bf
JM
16498.PHONY: maybe-pdf-gprof pdf-gprof
16499maybe-pdf-gprof:
16500@if gprof
16501maybe-pdf-gprof: pdf-gprof
4b900473 16502
a90ef4bf
JM
16503pdf-gprof: \
16504 configure-gprof
16505 @: $(MAKE); $(unstage)
16506 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16507 r=`${PWD_COMMAND}`; export r; \
16508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16509 $(HOST_EXPORTS) \
16510 for flag in $(EXTRA_HOST_FLAGS) ; do \
16511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16512 done; \
22121df0 16513 echo "Doing pdf in gprof"; \
a90ef4bf 16514 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16517 "RANLIB=$${RANLIB}" \
0c24b341 16518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16519 pdf) \
16520 || exit 1
16521
a90ef4bf 16522@endif gprof
4b900473 16523
a90ef4bf
JM
16524.PHONY: maybe-html-gprof html-gprof
16525maybe-html-gprof:
16526@if gprof
16527maybe-html-gprof: html-gprof
4b900473 16528
a90ef4bf
JM
16529html-gprof: \
16530 configure-gprof
16531 @: $(MAKE); $(unstage)
16532 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16533 r=`${PWD_COMMAND}`; export r; \
16534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16535 $(HOST_EXPORTS) \
16536 for flag in $(EXTRA_HOST_FLAGS) ; do \
16537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16538 done; \
22121df0 16539 echo "Doing html in gprof"; \
a90ef4bf 16540 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16543 "RANLIB=$${RANLIB}" \
0c24b341 16544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16545 html) \
16546 || exit 1
16547
a90ef4bf 16548@endif gprof
4b900473 16549
a90ef4bf
JM
16550.PHONY: maybe-TAGS-gprof TAGS-gprof
16551maybe-TAGS-gprof:
16552@if gprof
16553maybe-TAGS-gprof: TAGS-gprof
4b900473 16554
a90ef4bf
JM
16555TAGS-gprof: \
16556 configure-gprof
16557 @: $(MAKE); $(unstage)
16558 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16559 r=`${PWD_COMMAND}`; export r; \
16560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16561 $(HOST_EXPORTS) \
16562 for flag in $(EXTRA_HOST_FLAGS) ; do \
16563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16564 done; \
22121df0 16565 echo "Doing TAGS in gprof"; \
a90ef4bf 16566 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16569 "RANLIB=$${RANLIB}" \
0c24b341 16570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16571 TAGS) \
16572 || exit 1
16573
a90ef4bf 16574@endif gprof
4b900473 16575
a90ef4bf
JM
16576.PHONY: maybe-install-info-gprof install-info-gprof
16577maybe-install-info-gprof:
16578@if gprof
16579maybe-install-info-gprof: install-info-gprof
4b900473 16580
a90ef4bf
JM
16581install-info-gprof: \
16582 configure-gprof \
16583 info-gprof
16584 @: $(MAKE); $(unstage)
16585 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16586 r=`${PWD_COMMAND}`; export r; \
16587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16588 $(HOST_EXPORTS) \
16589 for flag in $(EXTRA_HOST_FLAGS) ; do \
16590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16591 done; \
22121df0 16592 echo "Doing install-info in gprof"; \
a90ef4bf 16593 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16596 "RANLIB=$${RANLIB}" \
0c24b341 16597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16598 install-info) \
16599 || exit 1
16600
a90ef4bf 16601@endif gprof
4b900473 16602
a90ef4bf
JM
16603.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16604maybe-install-pdf-gprof:
16605@if gprof
16606maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16607
a90ef4bf
JM
16608install-pdf-gprof: \
16609 configure-gprof \
16610 pdf-gprof
16611 @: $(MAKE); $(unstage)
16612 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16613 r=`${PWD_COMMAND}`; export r; \
16614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16615 $(HOST_EXPORTS) \
16616 for flag in $(EXTRA_HOST_FLAGS) ; do \
16617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16618 done; \
22121df0 16619 echo "Doing install-pdf in gprof"; \
a90ef4bf 16620 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16623 "RANLIB=$${RANLIB}" \
0c24b341 16624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16625 install-pdf) \
16626 || exit 1
16627
a90ef4bf 16628@endif gprof
a3ca38d2 16629
a90ef4bf
JM
16630.PHONY: maybe-install-html-gprof install-html-gprof
16631maybe-install-html-gprof:
16632@if gprof
16633maybe-install-html-gprof: install-html-gprof
4b900473 16634
a90ef4bf
JM
16635install-html-gprof: \
16636 configure-gprof \
16637 html-gprof
16638 @: $(MAKE); $(unstage)
16639 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16640 r=`${PWD_COMMAND}`; export r; \
16641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16642 $(HOST_EXPORTS) \
16643 for flag in $(EXTRA_HOST_FLAGS) ; do \
16644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16645 done; \
22121df0 16646 echo "Doing install-html in gprof"; \
a90ef4bf 16647 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16650 "RANLIB=$${RANLIB}" \
0c24b341 16651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16652 install-html) \
16653 || exit 1
16654
a90ef4bf 16655@endif gprof
4b900473 16656
a90ef4bf
JM
16657.PHONY: maybe-installcheck-gprof installcheck-gprof
16658maybe-installcheck-gprof:
16659@if gprof
16660maybe-installcheck-gprof: installcheck-gprof
4b900473 16661
a90ef4bf
JM
16662installcheck-gprof: \
16663 configure-gprof
16664 @: $(MAKE); $(unstage)
16665 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16666 r=`${PWD_COMMAND}`; export r; \
16667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16668 $(HOST_EXPORTS) \
16669 for flag in $(EXTRA_HOST_FLAGS) ; do \
16670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16671 done; \
22121df0 16672 echo "Doing installcheck in gprof"; \
a90ef4bf 16673 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16676 "RANLIB=$${RANLIB}" \
16677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16678 installcheck) \
16679 || exit 1
16680
a90ef4bf 16681@endif gprof
e28c595f 16682
a90ef4bf
JM
16683.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16684maybe-mostlyclean-gprof:
16685@if gprof
16686maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16687
a90ef4bf
JM
16688mostlyclean-gprof:
16689 @: $(MAKE); $(unstage)
16690 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16691 r=`${PWD_COMMAND}`; export r; \
16692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16693 $(HOST_EXPORTS) \
16694 for flag in $(EXTRA_HOST_FLAGS) ; do \
16695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16696 done; \
22121df0 16697 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16698 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16701 "RANLIB=$${RANLIB}" \
16702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16703 mostlyclean) \
16704 || exit 1
16705
a90ef4bf 16706@endif gprof
e28c595f 16707
a90ef4bf
JM
16708.PHONY: maybe-clean-gprof clean-gprof
16709maybe-clean-gprof:
16710@if gprof
16711maybe-clean-gprof: clean-gprof
e28c595f 16712
a90ef4bf
JM
16713clean-gprof:
16714 @: $(MAKE); $(unstage)
16715 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16716 r=`${PWD_COMMAND}`; export r; \
16717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16718 $(HOST_EXPORTS) \
16719 for flag in $(EXTRA_HOST_FLAGS) ; do \
16720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16721 done; \
22121df0 16722 echo "Doing clean in gprof"; \
a90ef4bf 16723 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16726 "RANLIB=$${RANLIB}" \
16727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16728 clean) \
16729 || exit 1
16730
a90ef4bf 16731@endif gprof
e28c595f 16732
a90ef4bf
JM
16733.PHONY: maybe-distclean-gprof distclean-gprof
16734maybe-distclean-gprof:
16735@if gprof
16736maybe-distclean-gprof: distclean-gprof
e28c595f 16737
a90ef4bf
JM
16738distclean-gprof:
16739 @: $(MAKE); $(unstage)
16740 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16741 r=`${PWD_COMMAND}`; export r; \
16742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16743 $(HOST_EXPORTS) \
16744 for flag in $(EXTRA_HOST_FLAGS) ; do \
16745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16746 done; \
22121df0 16747 echo "Doing distclean in gprof"; \
a90ef4bf 16748 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16751 "RANLIB=$${RANLIB}" \
16752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16753 distclean) \
16754 || exit 1
16755
a90ef4bf 16756@endif gprof
e28c595f 16757
a90ef4bf
JM
16758.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16759maybe-maintainer-clean-gprof:
16760@if gprof
16761maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16762
a90ef4bf
JM
16763maintainer-clean-gprof:
16764 @: $(MAKE); $(unstage)
16765 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16766 r=`${PWD_COMMAND}`; export r; \
16767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16768 $(HOST_EXPORTS) \
16769 for flag in $(EXTRA_HOST_FLAGS) ; do \
16770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16771 done; \
22121df0 16772 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16773 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16776 "RANLIB=$${RANLIB}" \
16777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16778 maintainer-clean) \
16779 || exit 1
16780
a90ef4bf 16781@endif gprof
e28c595f
JM
16782
16783
16784
a90ef4bf
JM
16785.PHONY: configure-intl maybe-configure-intl
16786maybe-configure-intl:
e28c595f 16787@if gcc-bootstrap
a90ef4bf 16788configure-intl: stage_current
e28c595f 16789@endif gcc-bootstrap
a90ef4bf
JM
16790@if intl
16791maybe-configure-intl: configure-intl
16792configure-intl:
e28c595f
JM
16793 @r=`${PWD_COMMAND}`; export r; \
16794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16795 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16796 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16797 $(HOST_EXPORTS) \
a90ef4bf
JM
16798 echo Configuring in $(HOST_SUBDIR)/intl; \
16799 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16800 case $(srcdir) in \
16801 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16802 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16803 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16804 esac; \
1b6c0831
L
16805 module_srcdir=intl; \
16806 $(SHELL) \
16807 $$s/$$module_srcdir/configure \
16808 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16809 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16810 --target=${target_alias} \
e28c595f 16811 || exit 1
a90ef4bf 16812@endif intl
e28c595f
JM
16813
16814
16815
a90ef4bf
JM
16816.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16817maybe-configure-stage1-intl:
16818@if intl-bootstrap
16819maybe-configure-stage1-intl: configure-stage1-intl
16820configure-stage1-intl:
e28c595f 16821 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16822 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16823 @r=`${PWD_COMMAND}`; export r; \
16824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16825 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16826 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16827 $(HOST_EXPORTS) \
e28c595f 16828 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16829 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16830 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16831 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16832 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16833 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16834 case $(srcdir) in \
16835 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16836 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16837 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16838 esac; \
1b6c0831
L
16839 module_srcdir=intl; \
16840 $(SHELL) $$s/$$module_srcdir/configure \
16841 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16842 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16843 --target=${target_alias} \
16844 \
a90ef4bf
JM
16845 $(STAGE1_CONFIGURE_FLAGS)
16846@endif intl-bootstrap
e28c595f 16847
a90ef4bf
JM
16848.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16849maybe-configure-stage2-intl:
16850@if intl-bootstrap
16851maybe-configure-stage2-intl: configure-stage2-intl
16852configure-stage2-intl:
e28c595f 16853 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16854 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16855 @r=`${PWD_COMMAND}`; export r; \
16856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16857 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16858 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16859 $(HOST_EXPORTS) \
1b05fbbd 16860 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16861 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16862 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16863 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16864 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16865 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16866 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16867 case $(srcdir) in \
16868 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16869 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16870 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16871 esac; \
1b6c0831
L
16872 module_srcdir=intl; \
16873 $(SHELL) $$s/$$module_srcdir/configure \
16874 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16875 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16876 --target=${target_alias} \
22121df0 16877 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16878 $(STAGE2_CONFIGURE_FLAGS)
16879@endif intl-bootstrap
e28c595f 16880
a90ef4bf
JM
16881.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16882maybe-configure-stage3-intl:
16883@if intl-bootstrap
16884maybe-configure-stage3-intl: configure-stage3-intl
16885configure-stage3-intl:
e28c595f 16886 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16887 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16888 @r=`${PWD_COMMAND}`; export r; \
16889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16890 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16891 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16892 $(HOST_EXPORTS) \
1b05fbbd 16893 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16894 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16895 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16896 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16897 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16898 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16899 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16900 case $(srcdir) in \
16901 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16902 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16903 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16904 esac; \
1b6c0831
L
16905 module_srcdir=intl; \
16906 $(SHELL) $$s/$$module_srcdir/configure \
16907 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16908 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16909 --target=${target_alias} \
22121df0 16910 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16911 $(STAGE3_CONFIGURE_FLAGS)
16912@endif intl-bootstrap
e28c595f 16913
a90ef4bf
JM
16914.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16915maybe-configure-stage4-intl:
16916@if intl-bootstrap
16917maybe-configure-stage4-intl: configure-stage4-intl
16918configure-stage4-intl:
e28c595f 16919 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 16920 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16921 @r=`${PWD_COMMAND}`; export r; \
16922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16923 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 16924 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16925 $(HOST_EXPORTS) \
1b05fbbd 16926 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16927 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16928 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
16929 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16930 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
16931 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16932 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16933 case $(srcdir) in \
16934 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16935 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16936 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16937 esac; \
1b6c0831
L
16938 module_srcdir=intl; \
16939 $(SHELL) $$s/$$module_srcdir/configure \
16940 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16941 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16942 --target=${target_alias} \
22121df0 16943 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16944 $(STAGE4_CONFIGURE_FLAGS)
16945@endif intl-bootstrap
e28c595f 16946
a90ef4bf
JM
16947.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16948maybe-configure-stageprofile-intl:
16949@if intl-bootstrap
16950maybe-configure-stageprofile-intl: configure-stageprofile-intl
16951configure-stageprofile-intl:
e28c595f 16952 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 16953 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16954 @r=`${PWD_COMMAND}`; export r; \
16955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16956 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 16957 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16958 $(HOST_EXPORTS) \
1b05fbbd
AO
16959 $(POSTSTAGE1_HOST_EXPORTS) \
16960 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16961 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
16962 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16963 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
16964 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16965 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16966 case $(srcdir) in \
16967 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16968 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16969 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16970 esac; \
1b6c0831
L
16971 module_srcdir=intl; \
16972 $(SHELL) $$s/$$module_srcdir/configure \
16973 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16974 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16975 --target=${target_alias} \
22121df0 16976 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16977 $(STAGEprofile_CONFIGURE_FLAGS)
16978@endif intl-bootstrap
e28c595f 16979
a90ef4bf
JM
16980.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16981maybe-configure-stagefeedback-intl:
16982@if intl-bootstrap
16983maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
16984configure-stagefeedback-intl:
e28c595f 16985 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 16986 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16987 @r=`${PWD_COMMAND}`; export r; \
16988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16989 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 16990 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16991 $(HOST_EXPORTS) \
1b05fbbd
AO
16992 $(POSTSTAGE1_HOST_EXPORTS) \
16993 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16994 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
16995 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16996 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
16997 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16998 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16999 case $(srcdir) in \
17000 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17001 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17002 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17003 esac; \
1b6c0831
L
17004 module_srcdir=intl; \
17005 $(SHELL) $$s/$$module_srcdir/configure \
17006 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 17007 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17008 --target=${target_alias} \
22121df0 17009 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17010 $(STAGEfeedback_CONFIGURE_FLAGS)
17011@endif intl-bootstrap
e28c595f
JM
17012
17013
17014
17015
17016
a90ef4bf
JM
17017.PHONY: all-intl maybe-all-intl
17018maybe-all-intl:
e28c595f 17019@if gcc-bootstrap
a90ef4bf 17020all-intl: stage_current
e28c595f 17021@endif gcc-bootstrap
a90ef4bf
JM
17022@if intl
17023TARGET-intl=all
17024maybe-all-intl: all-intl
17025all-intl: configure-intl
e28c595f
JM
17026 @r=`${PWD_COMMAND}`; export r; \
17027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 17028 $(HOST_EXPORTS) \
a90ef4bf 17029 (cd $(HOST_SUBDIR)/intl && \
b3676d82 17030 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17031 $(TARGET-intl))
17032@endif intl
e28c595f
JM
17033
17034
17035
a90ef4bf
JM
17036.PHONY: all-stage1-intl maybe-all-stage1-intl
17037.PHONY: clean-stage1-intl maybe-clean-stage1-intl
17038maybe-all-stage1-intl:
17039maybe-clean-stage1-intl:
17040@if intl-bootstrap
17041maybe-all-stage1-intl: all-stage1-intl
17042all-stage1: all-stage1-intl
17043TARGET-stage1-intl = $(TARGET-intl)
17044all-stage1-intl: configure-stage1-intl
e28c595f
JM
17045 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17046 @r=`${PWD_COMMAND}`; export r; \
17047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17048 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 17049 $(HOST_EXPORTS) \
a90ef4bf 17050 cd $(HOST_SUBDIR)/intl && \
05a13254 17051 \
e28c595f 17052 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17053 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 17054 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
17055 LIBCFLAGS="$(LIBCFLAGS)" \
17056 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17057 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17058 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
17059 $(EXTRA_HOST_FLAGS) \
17060 $(STAGE1_FLAGS_TO_PASS) \
05a13254 17061 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 17062 $(TARGET-stage1-intl)
e28c595f 17063
a90ef4bf
JM
17064maybe-clean-stage1-intl: clean-stage1-intl
17065clean-stage1: clean-stage1-intl
17066clean-stage1-intl:
e28c595f 17067 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 17068 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17069 else \
a90ef4bf 17070 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
17071 $(MAKE) stage1-start; \
17072 fi; \
a90ef4bf 17073 cd $(HOST_SUBDIR)/intl && \
e28c595f 17074 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 17075 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17076@endif intl-bootstrap
e28c595f
JM
17077
17078
a90ef4bf
JM
17079.PHONY: all-stage2-intl maybe-all-stage2-intl
17080.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17081maybe-all-stage2-intl:
17082maybe-clean-stage2-intl:
17083@if intl-bootstrap
17084maybe-all-stage2-intl: all-stage2-intl
17085all-stage2: all-stage2-intl
17086TARGET-stage2-intl = $(TARGET-intl)
17087all-stage2-intl: configure-stage2-intl
e28c595f
JM
17088 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17089 @r=`${PWD_COMMAND}`; export r; \
17090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17091 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17092 $(HOST_EXPORTS) \
1f53ca9a 17093 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17094 cd $(HOST_SUBDIR)/intl && \
05a13254 17095 \
e28c595f 17096 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17097 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17098 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17099 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17100 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17101 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17102 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17103 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17104 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17105 $(TARGET-stage2-intl)
e28c595f 17106
a90ef4bf
JM
17107maybe-clean-stage2-intl: clean-stage2-intl
17108clean-stage2: clean-stage2-intl
17109clean-stage2-intl:
e28c595f 17110 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17111 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17112 else \
a90ef4bf 17113 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17114 $(MAKE) stage2-start; \
17115 fi; \
a90ef4bf 17116 cd $(HOST_SUBDIR)/intl && \
b3676d82 17117 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17118@endif intl-bootstrap
e28c595f
JM
17119
17120
a90ef4bf
JM
17121.PHONY: all-stage3-intl maybe-all-stage3-intl
17122.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17123maybe-all-stage3-intl:
17124maybe-clean-stage3-intl:
17125@if intl-bootstrap
17126maybe-all-stage3-intl: all-stage3-intl
17127all-stage3: all-stage3-intl
17128TARGET-stage3-intl = $(TARGET-intl)
17129all-stage3-intl: configure-stage3-intl
e28c595f
JM
17130 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17131 @r=`${PWD_COMMAND}`; export r; \
17132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17133 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17134 $(HOST_EXPORTS) \
1f53ca9a 17135 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17136 cd $(HOST_SUBDIR)/intl && \
05a13254 17137 \
e28c595f 17138 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17139 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17140 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17141 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17142 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17143 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17144 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17145 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17146 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17147 $(TARGET-stage3-intl)
e28c595f 17148
a90ef4bf
JM
17149maybe-clean-stage3-intl: clean-stage3-intl
17150clean-stage3: clean-stage3-intl
17151clean-stage3-intl:
e28c595f 17152 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17153 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17154 else \
a90ef4bf 17155 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17156 $(MAKE) stage3-start; \
17157 fi; \
a90ef4bf 17158 cd $(HOST_SUBDIR)/intl && \
b3676d82 17159 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17160@endif intl-bootstrap
e28c595f
JM
17161
17162
a90ef4bf
JM
17163.PHONY: all-stage4-intl maybe-all-stage4-intl
17164.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17165maybe-all-stage4-intl:
17166maybe-clean-stage4-intl:
17167@if intl-bootstrap
17168maybe-all-stage4-intl: all-stage4-intl
17169all-stage4: all-stage4-intl
17170TARGET-stage4-intl = $(TARGET-intl)
17171all-stage4-intl: configure-stage4-intl
e28c595f
JM
17172 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17173 @r=`${PWD_COMMAND}`; export r; \
17174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17175 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17176 $(HOST_EXPORTS) \
1f53ca9a 17177 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17178 cd $(HOST_SUBDIR)/intl && \
05a13254 17179 \
e28c595f 17180 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17181 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17182 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17183 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17184 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17185 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17186 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17187 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17188 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17189 $(TARGET-stage4-intl)
e28c595f 17190
a90ef4bf
JM
17191maybe-clean-stage4-intl: clean-stage4-intl
17192clean-stage4: clean-stage4-intl
17193clean-stage4-intl:
e28c595f 17194 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17195 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17196 else \
a90ef4bf 17197 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17198 $(MAKE) stage4-start; \
17199 fi; \
a90ef4bf 17200 cd $(HOST_SUBDIR)/intl && \
b3676d82 17201 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17202@endif intl-bootstrap
e28c595f
JM
17203
17204
a90ef4bf
JM
17205.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17206.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17207maybe-all-stageprofile-intl:
17208maybe-clean-stageprofile-intl:
17209@if intl-bootstrap
17210maybe-all-stageprofile-intl: all-stageprofile-intl
17211all-stageprofile: all-stageprofile-intl
17212TARGET-stageprofile-intl = $(TARGET-intl)
17213all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17214 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17215 @r=`${PWD_COMMAND}`; export r; \
17216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17217 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17218 $(HOST_EXPORTS) \
1f53ca9a 17219 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17220 cd $(HOST_SUBDIR)/intl && \
05a13254 17221 \
e28c595f 17222 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17223 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17224 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17225 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17226 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17227 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17228 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17229 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17230 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17231 $(TARGET-stageprofile-intl)
e28c595f 17232
a90ef4bf
JM
17233maybe-clean-stageprofile-intl: clean-stageprofile-intl
17234clean-stageprofile: clean-stageprofile-intl
17235clean-stageprofile-intl:
e28c595f 17236 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17237 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17238 else \
a90ef4bf 17239 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17240 $(MAKE) stageprofile-start; \
17241 fi; \
a90ef4bf 17242 cd $(HOST_SUBDIR)/intl && \
b3676d82 17243 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17244@endif intl-bootstrap
e28c595f
JM
17245
17246
a90ef4bf
JM
17247.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17248.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17249maybe-all-stagefeedback-intl:
17250maybe-clean-stagefeedback-intl:
17251@if intl-bootstrap
17252maybe-all-stagefeedback-intl: all-stagefeedback-intl
17253all-stagefeedback: all-stagefeedback-intl
17254TARGET-stagefeedback-intl = $(TARGET-intl)
17255all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17256 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17257 @r=`${PWD_COMMAND}`; export r; \
17258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17259 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17260 $(HOST_EXPORTS) \
1f53ca9a 17261 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17262 cd $(HOST_SUBDIR)/intl && \
05a13254 17263 \
e28c595f 17264 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17265 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17266 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17267 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17268 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17269 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17270 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17271 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17272 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17273 $(TARGET-stagefeedback-intl)
e28c595f 17274
a90ef4bf
JM
17275maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17276clean-stagefeedback: clean-stagefeedback-intl
17277clean-stagefeedback-intl:
e28c595f 17278 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17279 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17280 else \
a90ef4bf 17281 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17282 $(MAKE) stagefeedback-start; \
17283 fi; \
a90ef4bf 17284 cd $(HOST_SUBDIR)/intl && \
b3676d82 17285 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17286@endif intl-bootstrap
e28c595f
JM
17287
17288
17289
17290
17291
a90ef4bf
JM
17292.PHONY: check-intl maybe-check-intl
17293maybe-check-intl:
17294@if intl
17295maybe-check-intl: check-intl
e28c595f 17296
a90ef4bf 17297check-intl:
e28c595f
JM
17298 @: $(MAKE); $(unstage)
17299 @r=`${PWD_COMMAND}`; export r; \
17300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17301 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17302 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17303 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17304
a90ef4bf 17305@endif intl
e28c595f 17306
a90ef4bf
JM
17307.PHONY: install-intl maybe-install-intl
17308maybe-install-intl:
17309@if intl
17310maybe-install-intl: install-intl
e28c595f 17311
a90ef4bf
JM
17312install-intl: installdirs
17313 @: $(MAKE); $(unstage)
17314 @r=`${PWD_COMMAND}`; export r; \
17315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17316 $(HOST_EXPORTS) \
17317 (cd $(HOST_SUBDIR)/intl && \
17318 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17319
a90ef4bf 17320@endif intl
e28c595f 17321
a90ef4bf
JM
17322.PHONY: install-strip-intl maybe-install-strip-intl
17323maybe-install-strip-intl:
17324@if intl
17325maybe-install-strip-intl: install-strip-intl
9b980aa1 17326
a90ef4bf
JM
17327install-strip-intl: installdirs
17328 @: $(MAKE); $(unstage)
17329 @r=`${PWD_COMMAND}`; export r; \
17330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17331 $(HOST_EXPORTS) \
17332 (cd $(HOST_SUBDIR)/intl && \
17333 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17334
a90ef4bf 17335@endif intl
9b980aa1 17336
e28c595f
JM
17337# Other targets (info, dvi, pdf, etc.)
17338
a90ef4bf
JM
17339.PHONY: maybe-info-intl info-intl
17340maybe-info-intl:
17341@if intl
17342maybe-info-intl: info-intl
e28c595f 17343
a90ef4bf
JM
17344info-intl: \
17345 configure-intl
17346 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17347 r=`${PWD_COMMAND}`; export r; \
17348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17349 $(HOST_EXPORTS) \
17350 for flag in $(EXTRA_HOST_FLAGS) ; do \
17351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17352 done; \
22121df0 17353 echo "Doing info in intl"; \
a90ef4bf 17354 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17357 "RANLIB=$${RANLIB}" \
17358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17359 info) \
17360 || exit 1
17361
a90ef4bf 17362@endif intl
e28c595f 17363
a90ef4bf
JM
17364.PHONY: maybe-dvi-intl dvi-intl
17365maybe-dvi-intl:
17366@if intl
17367maybe-dvi-intl: dvi-intl
e28c595f 17368
a90ef4bf
JM
17369dvi-intl: \
17370 configure-intl
17371 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17372 r=`${PWD_COMMAND}`; export r; \
17373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17374 $(HOST_EXPORTS) \
17375 for flag in $(EXTRA_HOST_FLAGS) ; do \
17376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17377 done; \
22121df0 17378 echo "Doing dvi in intl"; \
a90ef4bf 17379 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17382 "RANLIB=$${RANLIB}" \
17383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17384 dvi) \
17385 || exit 1
17386
a90ef4bf 17387@endif intl
e28c595f 17388
a90ef4bf
JM
17389.PHONY: maybe-pdf-intl pdf-intl
17390maybe-pdf-intl:
17391@if intl
17392maybe-pdf-intl: pdf-intl
e28c595f 17393
a90ef4bf
JM
17394pdf-intl: \
17395 configure-intl
17396 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17397 r=`${PWD_COMMAND}`; export r; \
17398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17399 $(HOST_EXPORTS) \
17400 for flag in $(EXTRA_HOST_FLAGS) ; do \
17401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17402 done; \
22121df0 17403 echo "Doing pdf in intl"; \
a90ef4bf 17404 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17407 "RANLIB=$${RANLIB}" \
17408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17409 pdf) \
17410 || exit 1
17411
a90ef4bf 17412@endif intl
e28c595f 17413
a90ef4bf
JM
17414.PHONY: maybe-html-intl html-intl
17415maybe-html-intl:
17416@if intl
17417maybe-html-intl: html-intl
e28c595f 17418
a90ef4bf
JM
17419html-intl: \
17420 configure-intl
17421 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17422 r=`${PWD_COMMAND}`; export r; \
17423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17424 $(HOST_EXPORTS) \
17425 for flag in $(EXTRA_HOST_FLAGS) ; do \
17426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17427 done; \
22121df0 17428 echo "Doing html in intl"; \
a90ef4bf 17429 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17432 "RANLIB=$${RANLIB}" \
17433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17434 html) \
17435 || exit 1
17436
a90ef4bf 17437@endif intl
e28c595f 17438
a90ef4bf
JM
17439.PHONY: maybe-TAGS-intl TAGS-intl
17440maybe-TAGS-intl:
17441@if intl
17442maybe-TAGS-intl: TAGS-intl
e28c595f 17443
a90ef4bf
JM
17444TAGS-intl: \
17445 configure-intl
17446 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17447 r=`${PWD_COMMAND}`; export r; \
17448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17449 $(HOST_EXPORTS) \
17450 for flag in $(EXTRA_HOST_FLAGS) ; do \
17451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17452 done; \
22121df0 17453 echo "Doing TAGS in intl"; \
a90ef4bf 17454 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17457 "RANLIB=$${RANLIB}" \
17458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17459 TAGS) \
17460 || exit 1
17461
a90ef4bf 17462@endif intl
e28c595f 17463
a90ef4bf
JM
17464.PHONY: maybe-install-info-intl install-info-intl
17465maybe-install-info-intl:
17466@if intl
17467maybe-install-info-intl: install-info-intl
e28c595f 17468
a90ef4bf
JM
17469install-info-intl: \
17470 configure-intl \
17471 info-intl
17472 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17473 r=`${PWD_COMMAND}`; export r; \
17474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17475 $(HOST_EXPORTS) \
17476 for flag in $(EXTRA_HOST_FLAGS) ; do \
17477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17478 done; \
22121df0 17479 echo "Doing install-info in intl"; \
a90ef4bf 17480 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17483 "RANLIB=$${RANLIB}" \
17484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17485 install-info) \
17486 || exit 1
17487
a90ef4bf 17488@endif intl
e28c595f 17489
a90ef4bf
JM
17490.PHONY: maybe-install-pdf-intl install-pdf-intl
17491maybe-install-pdf-intl:
17492@if intl
17493maybe-install-pdf-intl: install-pdf-intl
e28c595f 17494
a90ef4bf
JM
17495install-pdf-intl: \
17496 configure-intl \
17497 pdf-intl
17498 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17499 r=`${PWD_COMMAND}`; export r; \
17500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17501 $(HOST_EXPORTS) \
17502 for flag in $(EXTRA_HOST_FLAGS) ; do \
17503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17504 done; \
22121df0 17505 echo "Doing install-pdf in intl"; \
a90ef4bf 17506 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17509 "RANLIB=$${RANLIB}" \
17510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17511 install-pdf) \
17512 || exit 1
17513
a90ef4bf 17514@endif intl
e28c595f 17515
a90ef4bf
JM
17516.PHONY: maybe-install-html-intl install-html-intl
17517maybe-install-html-intl:
17518@if intl
17519maybe-install-html-intl: install-html-intl
e28c595f 17520
a90ef4bf
JM
17521install-html-intl: \
17522 configure-intl \
17523 html-intl
17524 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17525 r=`${PWD_COMMAND}`; export r; \
17526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17527 $(HOST_EXPORTS) \
17528 for flag in $(EXTRA_HOST_FLAGS) ; do \
17529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17530 done; \
22121df0 17531 echo "Doing install-html in intl"; \
a90ef4bf 17532 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17535 "RANLIB=$${RANLIB}" \
17536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17537 install-html) \
17538 || exit 1
17539
a90ef4bf 17540@endif intl
e28c595f 17541
a90ef4bf
JM
17542.PHONY: maybe-installcheck-intl installcheck-intl
17543maybe-installcheck-intl:
17544@if intl
17545maybe-installcheck-intl: installcheck-intl
e28c595f 17546
a90ef4bf
JM
17547installcheck-intl: \
17548 configure-intl
17549 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17550 r=`${PWD_COMMAND}`; export r; \
17551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17552 $(HOST_EXPORTS) \
17553 for flag in $(EXTRA_HOST_FLAGS) ; do \
17554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17555 done; \
22121df0 17556 echo "Doing installcheck in intl"; \
a90ef4bf 17557 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17560 "RANLIB=$${RANLIB}" \
17561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17562 installcheck) \
17563 || exit 1
17564
a90ef4bf 17565@endif intl
e28c595f 17566
a90ef4bf
JM
17567.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17568maybe-mostlyclean-intl:
17569@if intl
17570maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17571
a90ef4bf
JM
17572mostlyclean-intl:
17573 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17574 r=`${PWD_COMMAND}`; export r; \
17575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17576 $(HOST_EXPORTS) \
17577 for flag in $(EXTRA_HOST_FLAGS) ; do \
17578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17579 done; \
22121df0 17580 echo "Doing mostlyclean in intl"; \
a90ef4bf 17581 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17584 "RANLIB=$${RANLIB}" \
17585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17586 mostlyclean) \
17587 || exit 1
17588
a90ef4bf 17589@endif intl
e28c595f 17590
a90ef4bf
JM
17591.PHONY: maybe-clean-intl clean-intl
17592maybe-clean-intl:
17593@if intl
17594maybe-clean-intl: clean-intl
e28c595f 17595
a90ef4bf
JM
17596clean-intl:
17597 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17598 r=`${PWD_COMMAND}`; export r; \
17599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17600 $(HOST_EXPORTS) \
17601 for flag in $(EXTRA_HOST_FLAGS) ; do \
17602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17603 done; \
22121df0 17604 echo "Doing clean in intl"; \
a90ef4bf 17605 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17608 "RANLIB=$${RANLIB}" \
17609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17610 clean) \
17611 || exit 1
17612
a90ef4bf 17613@endif intl
e28c595f 17614
a90ef4bf
JM
17615.PHONY: maybe-distclean-intl distclean-intl
17616maybe-distclean-intl:
17617@if intl
17618maybe-distclean-intl: distclean-intl
e28c595f 17619
a90ef4bf
JM
17620distclean-intl:
17621 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17622 r=`${PWD_COMMAND}`; export r; \
17623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17624 $(HOST_EXPORTS) \
17625 for flag in $(EXTRA_HOST_FLAGS) ; do \
17626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17627 done; \
22121df0 17628 echo "Doing distclean in intl"; \
a90ef4bf 17629 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17632 "RANLIB=$${RANLIB}" \
17633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17634 distclean) \
17635 || exit 1
17636
a90ef4bf 17637@endif intl
e28c595f 17638
a90ef4bf
JM
17639.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17640maybe-maintainer-clean-intl:
17641@if intl
17642maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17643
a90ef4bf
JM
17644maintainer-clean-intl:
17645 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17646 r=`${PWD_COMMAND}`; export r; \
17647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17648 $(HOST_EXPORTS) \
17649 for flag in $(EXTRA_HOST_FLAGS) ; do \
17650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17651 done; \
22121df0 17652 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17653 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17656 "RANLIB=$${RANLIB}" \
17657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17658 maintainer-clean) \
17659 || exit 1
17660
a90ef4bf 17661@endif intl
e28c595f
JM
17662
17663
17664
a90ef4bf
JM
17665.PHONY: configure-tcl maybe-configure-tcl
17666maybe-configure-tcl:
e8a5fa9c 17667@if gcc-bootstrap
a90ef4bf 17668configure-tcl: stage_current
e8a5fa9c 17669@endif gcc-bootstrap
a90ef4bf
JM
17670@if tcl
17671maybe-configure-tcl: configure-tcl
17672configure-tcl:
17673 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17674 @r=`${PWD_COMMAND}`; export r; \
17675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17676 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17677 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17678 $(HOST_EXPORTS) \
a90ef4bf
JM
17679 echo Configuring in $(HOST_SUBDIR)/tcl; \
17680 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17681 case $(srcdir) in \
17682 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17683 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17684 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17685 esac; \
1b6c0831
L
17686 module_srcdir=tcl; \
17687 $(SHELL) \
17688 $$s/$$module_srcdir/configure \
17689 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17690 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17691 --target=${target_alias} \
e8a5fa9c 17692 || exit 1
a90ef4bf 17693@endif tcl
e8a5fa9c
RW
17694
17695
17696
e8a5fa9c 17697
e8a5fa9c 17698
a90ef4bf
JM
17699.PHONY: all-tcl maybe-all-tcl
17700maybe-all-tcl:
17701@if gcc-bootstrap
17702all-tcl: stage_current
17703@endif gcc-bootstrap
17704@if tcl
17705TARGET-tcl=all
17706maybe-all-tcl: all-tcl
17707all-tcl: configure-tcl
17708 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17709 @r=`${PWD_COMMAND}`; export r; \
17710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17711 $(HOST_EXPORTS) \
17712 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17713 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17714 $(TARGET-tcl))
17715@endif tcl
e8a5fa9c 17716
a90ef4bf
JM
17717
17718
17719
17720.PHONY: check-tcl maybe-check-tcl
17721maybe-check-tcl:
17722@if tcl
17723maybe-check-tcl: check-tcl
17724
17725check-tcl:
17726 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17727 @r=`${PWD_COMMAND}`; export r; \
17728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17729 $(HOST_EXPORTS) \
a90ef4bf
JM
17730 (cd $(HOST_SUBDIR)/tcl && \
17731 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17732
a90ef4bf
JM
17733@endif tcl
17734
17735.PHONY: install-tcl maybe-install-tcl
17736maybe-install-tcl:
17737@if tcl
17738maybe-install-tcl: install-tcl
17739
17740install-tcl: installdirs
17741 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17742 @r=`${PWD_COMMAND}`; export r; \
17743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17744 $(HOST_EXPORTS) \
a90ef4bf
JM
17745 (cd $(HOST_SUBDIR)/tcl && \
17746 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17747
a90ef4bf
JM
17748@endif tcl
17749
17750.PHONY: install-strip-tcl maybe-install-strip-tcl
17751maybe-install-strip-tcl:
17752@if tcl
17753maybe-install-strip-tcl: install-strip-tcl
17754
17755install-strip-tcl: installdirs
17756 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17757 @r=`${PWD_COMMAND}`; export r; \
17758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17759 $(HOST_EXPORTS) \
a90ef4bf
JM
17760 (cd $(HOST_SUBDIR)/tcl && \
17761 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17762
a90ef4bf 17763@endif tcl
e8a5fa9c 17764
a90ef4bf 17765# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17766
a90ef4bf
JM
17767.PHONY: maybe-info-tcl info-tcl
17768maybe-info-tcl:
17769@if tcl
17770maybe-info-tcl: info-tcl
e8a5fa9c 17771
a90ef4bf
JM
17772info-tcl: \
17773 configure-tcl
17774 @: $(MAKE); $(unstage)
17775 @[ -f ./tcl/Makefile ] || exit 0; \
17776 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17778 $(HOST_EXPORTS) \
17779 for flag in $(EXTRA_HOST_FLAGS) ; do \
17780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17781 done; \
22121df0 17782 echo "Doing info in tcl"; \
a90ef4bf
JM
17783 (cd $(HOST_SUBDIR)/tcl && \
17784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17786 "RANLIB=$${RANLIB}" \
17787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17788 info) \
17789 || exit 1
e8a5fa9c 17790
a90ef4bf 17791@endif tcl
e8a5fa9c 17792
a90ef4bf
JM
17793.PHONY: maybe-dvi-tcl dvi-tcl
17794maybe-dvi-tcl:
17795@if tcl
17796maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17797
a90ef4bf
JM
17798dvi-tcl: \
17799 configure-tcl
17800 @: $(MAKE); $(unstage)
17801 @[ -f ./tcl/Makefile ] || exit 0; \
17802 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17804 $(HOST_EXPORTS) \
17805 for flag in $(EXTRA_HOST_FLAGS) ; do \
17806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17807 done; \
22121df0 17808 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17809 (cd $(HOST_SUBDIR)/tcl && \
17810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17812 "RANLIB=$${RANLIB}" \
17813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17814 dvi) \
17815 || exit 1
e8a5fa9c 17816
a90ef4bf 17817@endif tcl
e8a5fa9c 17818
a90ef4bf
JM
17819.PHONY: maybe-pdf-tcl pdf-tcl
17820maybe-pdf-tcl:
17821@if tcl
17822maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17823
a90ef4bf
JM
17824pdf-tcl: \
17825 configure-tcl
17826 @: $(MAKE); $(unstage)
17827 @[ -f ./tcl/Makefile ] || exit 0; \
17828 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17830 $(HOST_EXPORTS) \
a90ef4bf
JM
17831 for flag in $(EXTRA_HOST_FLAGS) ; do \
17832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17833 done; \
22121df0 17834 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17835 (cd $(HOST_SUBDIR)/tcl && \
17836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17838 "RANLIB=$${RANLIB}" \
17839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17840 pdf) \
17841 || exit 1
e8a5fa9c 17842
a90ef4bf 17843@endif tcl
e8a5fa9c 17844
a90ef4bf
JM
17845.PHONY: maybe-html-tcl html-tcl
17846maybe-html-tcl:
17847@if tcl
17848maybe-html-tcl: html-tcl
e8a5fa9c 17849
a90ef4bf
JM
17850html-tcl: \
17851 configure-tcl
17852 @: $(MAKE); $(unstage)
17853 @[ -f ./tcl/Makefile ] || exit 0; \
17854 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17856 $(HOST_EXPORTS) \
a90ef4bf
JM
17857 for flag in $(EXTRA_HOST_FLAGS) ; do \
17858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17859 done; \
22121df0 17860 echo "Doing html in tcl"; \
a90ef4bf
JM
17861 (cd $(HOST_SUBDIR)/tcl && \
17862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17864 "RANLIB=$${RANLIB}" \
17865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17866 html) \
17867 || exit 1
e8a5fa9c 17868
a90ef4bf 17869@endif tcl
e8a5fa9c 17870
a90ef4bf
JM
17871.PHONY: maybe-TAGS-tcl TAGS-tcl
17872maybe-TAGS-tcl:
17873@if tcl
17874maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17875
a90ef4bf
JM
17876TAGS-tcl: \
17877 configure-tcl
17878 @: $(MAKE); $(unstage)
17879 @[ -f ./tcl/Makefile ] || exit 0; \
17880 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17882 $(HOST_EXPORTS) \
a90ef4bf
JM
17883 for flag in $(EXTRA_HOST_FLAGS) ; do \
17884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17885 done; \
22121df0 17886 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17887 (cd $(HOST_SUBDIR)/tcl && \
17888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17890 "RANLIB=$${RANLIB}" \
17891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17892 TAGS) \
17893 || exit 1
e8a5fa9c 17894
a90ef4bf 17895@endif tcl
e8a5fa9c 17896
a90ef4bf
JM
17897.PHONY: maybe-install-info-tcl install-info-tcl
17898maybe-install-info-tcl:
17899@if tcl
17900maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17901
a90ef4bf
JM
17902install-info-tcl: \
17903 configure-tcl \
17904 info-tcl
e8a5fa9c 17905 @: $(MAKE); $(unstage)
a90ef4bf 17906 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17907 r=`${PWD_COMMAND}`; export r; \
17908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17909 $(HOST_EXPORTS) \
17910 for flag in $(EXTRA_HOST_FLAGS) ; do \
17911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17912 done; \
22121df0 17913 echo "Doing install-info in tcl"; \
a90ef4bf 17914 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17917 "RANLIB=$${RANLIB}" \
17918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17919 install-info) \
e8a5fa9c
RW
17920 || exit 1
17921
a90ef4bf 17922@endif tcl
e8a5fa9c 17923
a90ef4bf
JM
17924.PHONY: maybe-install-pdf-tcl install-pdf-tcl
17925maybe-install-pdf-tcl:
17926@if tcl
17927maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 17928
a90ef4bf
JM
17929install-pdf-tcl: \
17930 configure-tcl \
17931 pdf-tcl
17932 @: $(MAKE); $(unstage)
17933 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17934 r=`${PWD_COMMAND}`; export r; \
17935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17936 $(HOST_EXPORTS) \
17937 for flag in $(EXTRA_HOST_FLAGS) ; do \
17938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17939 done; \
22121df0 17940 echo "Doing install-pdf in tcl"; \
a90ef4bf 17941 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17944 "RANLIB=$${RANLIB}" \
17945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17946 install-pdf) \
e8a5fa9c
RW
17947 || exit 1
17948
a90ef4bf 17949@endif tcl
e8a5fa9c 17950
a90ef4bf
JM
17951.PHONY: maybe-install-html-tcl install-html-tcl
17952maybe-install-html-tcl:
17953@if tcl
17954maybe-install-html-tcl: install-html-tcl
e8a5fa9c 17955
a90ef4bf
JM
17956install-html-tcl: \
17957 configure-tcl \
17958 html-tcl
17959 @: $(MAKE); $(unstage)
17960 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17961 r=`${PWD_COMMAND}`; export r; \
17962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17963 $(HOST_EXPORTS) \
17964 for flag in $(EXTRA_HOST_FLAGS) ; do \
17965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17966 done; \
22121df0 17967 echo "Doing install-html in tcl"; \
a90ef4bf 17968 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17971 "RANLIB=$${RANLIB}" \
17972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17973 install-html) \
e8a5fa9c
RW
17974 || exit 1
17975
a90ef4bf 17976@endif tcl
e8a5fa9c 17977
a90ef4bf
JM
17978.PHONY: maybe-installcheck-tcl installcheck-tcl
17979maybe-installcheck-tcl:
17980@if tcl
17981maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 17982
a90ef4bf
JM
17983installcheck-tcl: \
17984 configure-tcl
17985 @: $(MAKE); $(unstage)
17986 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
17987 r=`${PWD_COMMAND}`; export r; \
17988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17989 $(HOST_EXPORTS) \
17990 for flag in $(EXTRA_HOST_FLAGS) ; do \
17991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17992 done; \
22121df0 17993 echo "Doing installcheck in tcl"; \
a90ef4bf 17994 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
17995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17997 "RANLIB=$${RANLIB}" \
17998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 17999 installcheck) \
e8a5fa9c
RW
18000 || exit 1
18001
a90ef4bf 18002@endif tcl
e8a5fa9c 18003
a90ef4bf
JM
18004.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
18005maybe-mostlyclean-tcl:
18006@if tcl
18007maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 18008
a90ef4bf
JM
18009# tcl doesn't support mostlyclean.
18010mostlyclean-tcl:
18011
18012@endif tcl
18013
18014.PHONY: maybe-clean-tcl clean-tcl
18015maybe-clean-tcl:
18016@if tcl
18017maybe-clean-tcl: clean-tcl
18018
18019clean-tcl:
18020 @: $(MAKE); $(unstage)
18021 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18022 r=`${PWD_COMMAND}`; export r; \
18023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18024 $(HOST_EXPORTS) \
18025 for flag in $(EXTRA_HOST_FLAGS) ; do \
18026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18027 done; \
22121df0 18028 echo "Doing clean in tcl"; \
a90ef4bf 18029 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18032 "RANLIB=$${RANLIB}" \
18033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18034 clean) \
e8a5fa9c
RW
18035 || exit 1
18036
a90ef4bf 18037@endif tcl
e8a5fa9c 18038
a90ef4bf
JM
18039.PHONY: maybe-distclean-tcl distclean-tcl
18040maybe-distclean-tcl:
18041@if tcl
18042maybe-distclean-tcl: distclean-tcl
e8a5fa9c 18043
a90ef4bf
JM
18044distclean-tcl:
18045 @: $(MAKE); $(unstage)
18046 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18047 r=`${PWD_COMMAND}`; export r; \
18048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18049 $(HOST_EXPORTS) \
18050 for flag in $(EXTRA_HOST_FLAGS) ; do \
18051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18052 done; \
22121df0 18053 echo "Doing distclean in tcl"; \
a90ef4bf 18054 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18057 "RANLIB=$${RANLIB}" \
18058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18059 distclean) \
e8a5fa9c
RW
18060 || exit 1
18061
a90ef4bf 18062@endif tcl
e8a5fa9c 18063
a90ef4bf
JM
18064.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
18065maybe-maintainer-clean-tcl:
18066@if tcl
18067maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 18068
a90ef4bf
JM
18069maintainer-clean-tcl:
18070 @: $(MAKE); $(unstage)
18071 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18072 r=`${PWD_COMMAND}`; export r; \
18073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18074 $(HOST_EXPORTS) \
18075 for flag in $(EXTRA_HOST_FLAGS) ; do \
18076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18077 done; \
22121df0 18078 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 18079 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18082 "RANLIB=$${RANLIB}" \
18083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18084 maintainer-clean) \
e8a5fa9c
RW
18085 || exit 1
18086
a90ef4bf 18087@endif tcl
e8a5fa9c 18088
e8a5fa9c 18089
a90ef4bf
JM
18090
18091.PHONY: configure-itcl maybe-configure-itcl
18092maybe-configure-itcl:
18093@if gcc-bootstrap
18094configure-itcl: stage_current
18095@endif gcc-bootstrap
18096@if itcl
18097maybe-configure-itcl: configure-itcl
18098configure-itcl:
18099 @: $(MAKE); $(unstage)
18100 @r=`${PWD_COMMAND}`; export r; \
18101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18102 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18103 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18104 $(HOST_EXPORTS) \
18105 echo Configuring in $(HOST_SUBDIR)/itcl; \
18106 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18107 case $(srcdir) in \
18108 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18109 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18110 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18111 esac; \
1b6c0831
L
18112 module_srcdir=itcl; \
18113 $(SHELL) \
18114 $$s/$$module_srcdir/configure \
18115 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18116 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18117 --target=${target_alias} \
a90ef4bf
JM
18118 || exit 1
18119@endif itcl
18120
18121
18122
18123
18124
18125.PHONY: all-itcl maybe-all-itcl
18126maybe-all-itcl:
18127@if gcc-bootstrap
18128all-itcl: stage_current
18129@endif gcc-bootstrap
18130@if itcl
18131TARGET-itcl=all
18132maybe-all-itcl: all-itcl
18133all-itcl: configure-itcl
18134 @: $(MAKE); $(unstage)
18135 @r=`${PWD_COMMAND}`; export r; \
18136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18137 $(HOST_EXPORTS) \
18138 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18139 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18140 $(TARGET-itcl))
18141@endif itcl
18142
18143
18144
18145
18146.PHONY: check-itcl maybe-check-itcl
18147maybe-check-itcl:
18148@if itcl
18149maybe-check-itcl: check-itcl
18150
18151check-itcl:
18152 @: $(MAKE); $(unstage)
18153 @r=`${PWD_COMMAND}`; export r; \
18154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18155 $(HOST_EXPORTS) \
a90ef4bf
JM
18156 (cd $(HOST_SUBDIR)/itcl && \
18157 $(MAKE) $(FLAGS_TO_PASS) check)
18158
18159@endif itcl
18160
18161.PHONY: install-itcl maybe-install-itcl
18162maybe-install-itcl:
18163@if itcl
18164maybe-install-itcl: install-itcl
18165
18166install-itcl: installdirs
18167 @: $(MAKE); $(unstage)
18168 @r=`${PWD_COMMAND}`; export r; \
18169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18170 $(HOST_EXPORTS) \
18171 (cd $(HOST_SUBDIR)/itcl && \
18172 $(MAKE) $(FLAGS_TO_PASS) install)
18173
18174@endif itcl
18175
18176.PHONY: install-strip-itcl maybe-install-strip-itcl
18177maybe-install-strip-itcl:
18178@if itcl
18179maybe-install-strip-itcl: install-strip-itcl
18180
18181install-strip-itcl: installdirs
18182 @: $(MAKE); $(unstage)
18183 @r=`${PWD_COMMAND}`; export r; \
18184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18185 $(HOST_EXPORTS) \
18186 (cd $(HOST_SUBDIR)/itcl && \
18187 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18188
18189@endif itcl
18190
18191# Other targets (info, dvi, pdf, etc.)
18192
18193.PHONY: maybe-info-itcl info-itcl
18194maybe-info-itcl:
18195@if itcl
18196maybe-info-itcl: info-itcl
18197
18198info-itcl: \
18199 configure-itcl
18200 @: $(MAKE); $(unstage)
18201 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18202 r=`${PWD_COMMAND}`; export r; \
18203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18204 $(HOST_EXPORTS) \
18205 for flag in $(EXTRA_HOST_FLAGS) ; do \
18206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18207 done; \
22121df0 18208 echo "Doing info in itcl"; \
a90ef4bf 18209 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18212 "RANLIB=$${RANLIB}" \
18213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18214 info) \
e8a5fa9c
RW
18215 || exit 1
18216
a90ef4bf 18217@endif itcl
e8a5fa9c 18218
a90ef4bf
JM
18219.PHONY: maybe-dvi-itcl dvi-itcl
18220maybe-dvi-itcl:
18221@if itcl
18222maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18223
a90ef4bf
JM
18224dvi-itcl: \
18225 configure-itcl
18226 @: $(MAKE); $(unstage)
18227 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18228 r=`${PWD_COMMAND}`; export r; \
18229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18230 $(HOST_EXPORTS) \
18231 for flag in $(EXTRA_HOST_FLAGS) ; do \
18232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18233 done; \
22121df0 18234 echo "Doing dvi in itcl"; \
a90ef4bf 18235 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18238 "RANLIB=$${RANLIB}" \
18239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18240 dvi) \
e8a5fa9c
RW
18241 || exit 1
18242
a90ef4bf 18243@endif itcl
e8a5fa9c 18244
a90ef4bf
JM
18245.PHONY: maybe-pdf-itcl pdf-itcl
18246maybe-pdf-itcl:
18247@if itcl
18248maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18249
a90ef4bf
JM
18250pdf-itcl: \
18251 configure-itcl
18252 @: $(MAKE); $(unstage)
18253 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18254 r=`${PWD_COMMAND}`; export r; \
18255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18256 $(HOST_EXPORTS) \
18257 for flag in $(EXTRA_HOST_FLAGS) ; do \
18258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18259 done; \
22121df0 18260 echo "Doing pdf in itcl"; \
a90ef4bf 18261 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18264 "RANLIB=$${RANLIB}" \
18265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18266 pdf) \
e8a5fa9c
RW
18267 || exit 1
18268
a90ef4bf 18269@endif itcl
e8a5fa9c 18270
a90ef4bf
JM
18271.PHONY: maybe-html-itcl html-itcl
18272maybe-html-itcl:
18273@if itcl
18274maybe-html-itcl: html-itcl
e8a5fa9c 18275
a90ef4bf
JM
18276html-itcl: \
18277 configure-itcl
18278 @: $(MAKE); $(unstage)
18279 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18280 r=`${PWD_COMMAND}`; export r; \
18281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18282 $(HOST_EXPORTS) \
18283 for flag in $(EXTRA_HOST_FLAGS) ; do \
18284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18285 done; \
22121df0 18286 echo "Doing html in itcl"; \
a90ef4bf 18287 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18290 "RANLIB=$${RANLIB}" \
18291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18292 html) \
e8a5fa9c
RW
18293 || exit 1
18294
a90ef4bf 18295@endif itcl
e8a5fa9c 18296
a90ef4bf
JM
18297.PHONY: maybe-TAGS-itcl TAGS-itcl
18298maybe-TAGS-itcl:
18299@if itcl
18300maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18301
a90ef4bf
JM
18302TAGS-itcl: \
18303 configure-itcl
18304 @: $(MAKE); $(unstage)
18305 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18306 r=`${PWD_COMMAND}`; export r; \
18307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18308 $(HOST_EXPORTS) \
18309 for flag in $(EXTRA_HOST_FLAGS) ; do \
18310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18311 done; \
22121df0 18312 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18313 (cd $(HOST_SUBDIR)/itcl && \
18314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18316 "RANLIB=$${RANLIB}" \
18317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18318 TAGS) \
18319 || exit 1
18320
18321@endif itcl
18322
18323.PHONY: maybe-install-info-itcl install-info-itcl
18324maybe-install-info-itcl:
18325@if itcl
18326maybe-install-info-itcl: install-info-itcl
18327
18328install-info-itcl: \
18329 configure-itcl \
18330 info-itcl
18331 @: $(MAKE); $(unstage)
18332 @[ -f ./itcl/Makefile ] || exit 0; \
18333 r=`${PWD_COMMAND}`; export r; \
18334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18335 $(HOST_EXPORTS) \
18336 for flag in $(EXTRA_HOST_FLAGS) ; do \
18337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18338 done; \
22121df0 18339 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18340 (cd $(HOST_SUBDIR)/itcl && \
18341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18343 "RANLIB=$${RANLIB}" \
18344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18345 install-info) \
18346 || exit 1
18347
18348@endif itcl
18349
18350.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18351maybe-install-pdf-itcl:
18352@if itcl
18353maybe-install-pdf-itcl: install-pdf-itcl
18354
18355install-pdf-itcl: \
18356 configure-itcl \
18357 pdf-itcl
18358 @: $(MAKE); $(unstage)
18359 @[ -f ./itcl/Makefile ] || exit 0; \
18360 r=`${PWD_COMMAND}`; export r; \
18361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18362 $(HOST_EXPORTS) \
18363 for flag in $(EXTRA_HOST_FLAGS) ; do \
18364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18365 done; \
22121df0 18366 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18367 (cd $(HOST_SUBDIR)/itcl && \
18368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18370 "RANLIB=$${RANLIB}" \
18371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18372 install-pdf) \
18373 || exit 1
18374
18375@endif itcl
18376
18377.PHONY: maybe-install-html-itcl install-html-itcl
18378maybe-install-html-itcl:
18379@if itcl
18380maybe-install-html-itcl: install-html-itcl
18381
18382install-html-itcl: \
18383 configure-itcl \
18384 html-itcl
18385 @: $(MAKE); $(unstage)
18386 @[ -f ./itcl/Makefile ] || exit 0; \
18387 r=`${PWD_COMMAND}`; export r; \
18388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18389 $(HOST_EXPORTS) \
18390 for flag in $(EXTRA_HOST_FLAGS) ; do \
18391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18392 done; \
22121df0 18393 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18394 (cd $(HOST_SUBDIR)/itcl && \
18395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18397 "RANLIB=$${RANLIB}" \
18398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18399 install-html) \
18400 || exit 1
18401
18402@endif itcl
18403
18404.PHONY: maybe-installcheck-itcl installcheck-itcl
18405maybe-installcheck-itcl:
18406@if itcl
18407maybe-installcheck-itcl: installcheck-itcl
18408
18409installcheck-itcl: \
18410 configure-itcl
18411 @: $(MAKE); $(unstage)
18412 @[ -f ./itcl/Makefile ] || exit 0; \
18413 r=`${PWD_COMMAND}`; export r; \
18414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18415 $(HOST_EXPORTS) \
18416 for flag in $(EXTRA_HOST_FLAGS) ; do \
18417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18418 done; \
22121df0 18419 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18420 (cd $(HOST_SUBDIR)/itcl && \
18421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18423 "RANLIB=$${RANLIB}" \
18424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18425 installcheck) \
18426 || exit 1
18427
18428@endif itcl
18429
18430.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18431maybe-mostlyclean-itcl:
18432@if itcl
18433maybe-mostlyclean-itcl: mostlyclean-itcl
18434
18435mostlyclean-itcl:
18436 @: $(MAKE); $(unstage)
18437 @[ -f ./itcl/Makefile ] || exit 0; \
18438 r=`${PWD_COMMAND}`; export r; \
18439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18440 $(HOST_EXPORTS) \
18441 for flag in $(EXTRA_HOST_FLAGS) ; do \
18442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18443 done; \
22121df0 18444 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18445 (cd $(HOST_SUBDIR)/itcl && \
18446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18448 "RANLIB=$${RANLIB}" \
18449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18450 mostlyclean) \
18451 || exit 1
18452
18453@endif itcl
18454
18455.PHONY: maybe-clean-itcl clean-itcl
18456maybe-clean-itcl:
18457@if itcl
18458maybe-clean-itcl: clean-itcl
18459
18460clean-itcl:
18461 @: $(MAKE); $(unstage)
18462 @[ -f ./itcl/Makefile ] || exit 0; \
18463 r=`${PWD_COMMAND}`; export r; \
18464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18465 $(HOST_EXPORTS) \
18466 for flag in $(EXTRA_HOST_FLAGS) ; do \
18467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18468 done; \
22121df0 18469 echo "Doing clean in itcl"; \
a90ef4bf
JM
18470 (cd $(HOST_SUBDIR)/itcl && \
18471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18473 "RANLIB=$${RANLIB}" \
18474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18475 clean) \
18476 || exit 1
18477
18478@endif itcl
18479
18480.PHONY: maybe-distclean-itcl distclean-itcl
18481maybe-distclean-itcl:
18482@if itcl
18483maybe-distclean-itcl: distclean-itcl
18484
18485distclean-itcl:
18486 @: $(MAKE); $(unstage)
18487 @[ -f ./itcl/Makefile ] || exit 0; \
18488 r=`${PWD_COMMAND}`; export r; \
18489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18490 $(HOST_EXPORTS) \
18491 for flag in $(EXTRA_HOST_FLAGS) ; do \
18492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18493 done; \
22121df0 18494 echo "Doing distclean in itcl"; \
a90ef4bf 18495 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18498 "RANLIB=$${RANLIB}" \
18499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18500 distclean) \
18501 || exit 1
18502
a90ef4bf 18503@endif itcl
e8a5fa9c 18504
a90ef4bf
JM
18505.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18506maybe-maintainer-clean-itcl:
18507@if itcl
18508maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18509
a90ef4bf
JM
18510maintainer-clean-itcl:
18511 @: $(MAKE); $(unstage)
18512 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18513 r=`${PWD_COMMAND}`; export r; \
18514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18515 $(HOST_EXPORTS) \
18516 for flag in $(EXTRA_HOST_FLAGS) ; do \
18517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18518 done; \
22121df0 18519 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18520 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18523 "RANLIB=$${RANLIB}" \
18524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18525 maintainer-clean) \
18526 || exit 1
18527
a90ef4bf 18528@endif itcl
e8a5fa9c
RW
18529
18530
18531
a90ef4bf
JM
18532.PHONY: configure-ld maybe-configure-ld
18533maybe-configure-ld:
e28c595f 18534@if gcc-bootstrap
a90ef4bf 18535configure-ld: stage_current
e28c595f 18536@endif gcc-bootstrap
a90ef4bf
JM
18537@if ld
18538maybe-configure-ld: configure-ld
18539configure-ld:
e28c595f
JM
18540 @r=`${PWD_COMMAND}`; export r; \
18541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18542 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18543 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18544 $(HOST_EXPORTS) \
a90ef4bf
JM
18545 echo Configuring in $(HOST_SUBDIR)/ld; \
18546 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18547 case $(srcdir) in \
18548 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18549 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18550 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18551 esac; \
1b6c0831
L
18552 module_srcdir=ld; \
18553 $(SHELL) \
18554 $$s/$$module_srcdir/configure \
18555 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18556 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18557 --target=${target_alias} \
e28c595f 18558 || exit 1
a90ef4bf 18559@endif ld
e28c595f
JM
18560
18561
18562
a90ef4bf
JM
18563.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18564maybe-configure-stage1-ld:
18565@if ld-bootstrap
18566maybe-configure-stage1-ld: configure-stage1-ld
18567configure-stage1-ld:
e28c595f 18568 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18569 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18570 @r=`${PWD_COMMAND}`; export r; \
18571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18572 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18573 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18574 $(HOST_EXPORTS) \
e28c595f 18575 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18576 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18577 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18578 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18579 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18580 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18581 case $(srcdir) in \
18582 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18583 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18584 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18585 esac; \
1b6c0831
L
18586 module_srcdir=ld; \
18587 $(SHELL) $$s/$$module_srcdir/configure \
18588 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18589 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18590 --target=${target_alias} \
18591 \
a90ef4bf
JM
18592 $(STAGE1_CONFIGURE_FLAGS)
18593@endif ld-bootstrap
e28c595f 18594
a90ef4bf
JM
18595.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18596maybe-configure-stage2-ld:
18597@if ld-bootstrap
18598maybe-configure-stage2-ld: configure-stage2-ld
18599configure-stage2-ld:
e28c595f 18600 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18601 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18602 @r=`${PWD_COMMAND}`; export r; \
18603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18604 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18605 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18606 $(HOST_EXPORTS) \
1b05fbbd 18607 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18608 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18609 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18610 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18611 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18612 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18613 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18614 case $(srcdir) in \
18615 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18616 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18617 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18618 esac; \
1b6c0831
L
18619 module_srcdir=ld; \
18620 $(SHELL) $$s/$$module_srcdir/configure \
18621 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18622 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18623 --target=${target_alias} \
22121df0 18624 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18625 $(STAGE2_CONFIGURE_FLAGS)
18626@endif ld-bootstrap
e28c595f 18627
a90ef4bf
JM
18628.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18629maybe-configure-stage3-ld:
18630@if ld-bootstrap
18631maybe-configure-stage3-ld: configure-stage3-ld
18632configure-stage3-ld:
e28c595f 18633 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18634 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18635 @r=`${PWD_COMMAND}`; export r; \
18636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18637 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18638 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18639 $(HOST_EXPORTS) \
1b05fbbd 18640 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18641 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18642 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18643 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18644 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18645 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18646 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18647 case $(srcdir) in \
18648 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18649 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18650 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18651 esac; \
1b6c0831
L
18652 module_srcdir=ld; \
18653 $(SHELL) $$s/$$module_srcdir/configure \
18654 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18655 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18656 --target=${target_alias} \
22121df0 18657 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18658 $(STAGE3_CONFIGURE_FLAGS)
18659@endif ld-bootstrap
e28c595f 18660
a90ef4bf
JM
18661.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18662maybe-configure-stage4-ld:
18663@if ld-bootstrap
18664maybe-configure-stage4-ld: configure-stage4-ld
18665configure-stage4-ld:
e28c595f 18666 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18667 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18668 @r=`${PWD_COMMAND}`; export r; \
18669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18670 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18671 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18672 $(HOST_EXPORTS) \
1b05fbbd 18673 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18674 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18675 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18676 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18677 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18678 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18679 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18680 case $(srcdir) in \
18681 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18682 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18683 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18684 esac; \
1b6c0831
L
18685 module_srcdir=ld; \
18686 $(SHELL) $$s/$$module_srcdir/configure \
18687 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18688 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18689 --target=${target_alias} \
22121df0 18690 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18691 $(STAGE4_CONFIGURE_FLAGS)
18692@endif ld-bootstrap
e28c595f 18693
a90ef4bf
JM
18694.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18695maybe-configure-stageprofile-ld:
18696@if ld-bootstrap
18697maybe-configure-stageprofile-ld: configure-stageprofile-ld
18698configure-stageprofile-ld:
e28c595f 18699 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18700 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18701 @r=`${PWD_COMMAND}`; export r; \
18702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18703 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18704 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18705 $(HOST_EXPORTS) \
1b05fbbd
AO
18706 $(POSTSTAGE1_HOST_EXPORTS) \
18707 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18708 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18709 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18710 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18711 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18712 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18713 case $(srcdir) in \
18714 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18715 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18716 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18717 esac; \
1b6c0831
L
18718 module_srcdir=ld; \
18719 $(SHELL) $$s/$$module_srcdir/configure \
18720 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18721 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18722 --target=${target_alias} \
22121df0 18723 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18724 $(STAGEprofile_CONFIGURE_FLAGS)
18725@endif ld-bootstrap
e28c595f 18726
a90ef4bf
JM
18727.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18728maybe-configure-stagefeedback-ld:
18729@if ld-bootstrap
18730maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18731configure-stagefeedback-ld:
e28c595f 18732 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18733 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18734 @r=`${PWD_COMMAND}`; export r; \
18735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18736 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18737 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18738 $(HOST_EXPORTS) \
1b05fbbd
AO
18739 $(POSTSTAGE1_HOST_EXPORTS) \
18740 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18741 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18742 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18743 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18744 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18745 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18746 case $(srcdir) in \
18747 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18748 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18749 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18750 esac; \
1b6c0831
L
18751 module_srcdir=ld; \
18752 $(SHELL) $$s/$$module_srcdir/configure \
18753 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18754 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18755 --target=${target_alias} \
22121df0 18756 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18757 $(STAGEfeedback_CONFIGURE_FLAGS)
18758@endif ld-bootstrap
e28c595f
JM
18759
18760
18761
18762
18763
a90ef4bf
JM
18764.PHONY: all-ld maybe-all-ld
18765maybe-all-ld:
e28c595f 18766@if gcc-bootstrap
a90ef4bf 18767all-ld: stage_current
e28c595f 18768@endif gcc-bootstrap
a90ef4bf
JM
18769@if ld
18770TARGET-ld=all
18771maybe-all-ld: all-ld
18772all-ld: configure-ld
e28c595f
JM
18773 @r=`${PWD_COMMAND}`; export r; \
18774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18775 $(HOST_EXPORTS) \
a90ef4bf 18776 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18777 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18778 $(TARGET-ld))
18779@endif ld
e28c595f
JM
18780
18781
18782
a90ef4bf
JM
18783.PHONY: all-stage1-ld maybe-all-stage1-ld
18784.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18785maybe-all-stage1-ld:
18786maybe-clean-stage1-ld:
18787@if ld-bootstrap
18788maybe-all-stage1-ld: all-stage1-ld
18789all-stage1: all-stage1-ld
18790TARGET-stage1-ld = $(TARGET-ld)
18791all-stage1-ld: configure-stage1-ld
e28c595f
JM
18792 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18793 @r=`${PWD_COMMAND}`; export r; \
18794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18795 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18796 $(HOST_EXPORTS) \
a90ef4bf 18797 cd $(HOST_SUBDIR)/ld && \
05a13254 18798 \
e28c595f 18799 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18800 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18801 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18802 LIBCFLAGS="$(LIBCFLAGS)" \
18803 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18804 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18805 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18806 $(EXTRA_HOST_FLAGS) \
18807 $(STAGE1_FLAGS_TO_PASS) \
05a13254 18808 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18809 $(TARGET-stage1-ld)
e28c595f 18810
a90ef4bf
JM
18811maybe-clean-stage1-ld: clean-stage1-ld
18812clean-stage1: clean-stage1-ld
18813clean-stage1-ld:
e28c595f 18814 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18815 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18816 else \
a90ef4bf 18817 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18818 $(MAKE) stage1-start; \
18819 fi; \
a90ef4bf 18820 cd $(HOST_SUBDIR)/ld && \
e28c595f 18821 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18822 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18823@endif ld-bootstrap
e28c595f
JM
18824
18825
a90ef4bf
JM
18826.PHONY: all-stage2-ld maybe-all-stage2-ld
18827.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18828maybe-all-stage2-ld:
18829maybe-clean-stage2-ld:
18830@if ld-bootstrap
18831maybe-all-stage2-ld: all-stage2-ld
18832all-stage2: all-stage2-ld
18833TARGET-stage2-ld = $(TARGET-ld)
18834all-stage2-ld: configure-stage2-ld
e28c595f
JM
18835 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18836 @r=`${PWD_COMMAND}`; export r; \
18837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18838 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18839 $(HOST_EXPORTS) \
1f53ca9a 18840 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18841 cd $(HOST_SUBDIR)/ld && \
05a13254 18842 \
e28c595f 18843 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18844 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18845 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18846 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18847 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18848 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18849 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18850 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18851 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18852 $(TARGET-stage2-ld)
e28c595f 18853
a90ef4bf
JM
18854maybe-clean-stage2-ld: clean-stage2-ld
18855clean-stage2: clean-stage2-ld
18856clean-stage2-ld:
e28c595f 18857 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18858 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18859 else \
a90ef4bf 18860 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18861 $(MAKE) stage2-start; \
18862 fi; \
a90ef4bf 18863 cd $(HOST_SUBDIR)/ld && \
b3676d82 18864 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18865@endif ld-bootstrap
e28c595f
JM
18866
18867
a90ef4bf
JM
18868.PHONY: all-stage3-ld maybe-all-stage3-ld
18869.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18870maybe-all-stage3-ld:
18871maybe-clean-stage3-ld:
18872@if ld-bootstrap
18873maybe-all-stage3-ld: all-stage3-ld
18874all-stage3: all-stage3-ld
18875TARGET-stage3-ld = $(TARGET-ld)
18876all-stage3-ld: configure-stage3-ld
e28c595f
JM
18877 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18878 @r=`${PWD_COMMAND}`; export r; \
18879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18880 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18881 $(HOST_EXPORTS) \
1f53ca9a 18882 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18883 cd $(HOST_SUBDIR)/ld && \
05a13254 18884 \
e28c595f 18885 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18886 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18887 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18888 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18889 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18890 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18891 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18892 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18893 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18894 $(TARGET-stage3-ld)
e28c595f 18895
a90ef4bf
JM
18896maybe-clean-stage3-ld: clean-stage3-ld
18897clean-stage3: clean-stage3-ld
18898clean-stage3-ld:
e28c595f 18899 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18900 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18901 else \
a90ef4bf 18902 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
18903 $(MAKE) stage3-start; \
18904 fi; \
a90ef4bf 18905 cd $(HOST_SUBDIR)/ld && \
b3676d82 18906 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18907@endif ld-bootstrap
e28c595f
JM
18908
18909
a90ef4bf
JM
18910.PHONY: all-stage4-ld maybe-all-stage4-ld
18911.PHONY: clean-stage4-ld maybe-clean-stage4-ld
18912maybe-all-stage4-ld:
18913maybe-clean-stage4-ld:
18914@if ld-bootstrap
18915maybe-all-stage4-ld: all-stage4-ld
18916all-stage4: all-stage4-ld
18917TARGET-stage4-ld = $(TARGET-ld)
18918all-stage4-ld: configure-stage4-ld
e28c595f
JM
18919 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
18920 @r=`${PWD_COMMAND}`; export r; \
18921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18922 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 18923 $(HOST_EXPORTS) \
1f53ca9a 18924 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18925 cd $(HOST_SUBDIR)/ld && \
05a13254 18926 \
e28c595f 18927 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18928 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 18929 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 18930 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
18931 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18932 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18933 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18934 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18935 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 18936 $(TARGET-stage4-ld)
e28c595f 18937
a90ef4bf
JM
18938maybe-clean-stage4-ld: clean-stage4-ld
18939clean-stage4: clean-stage4-ld
18940clean-stage4-ld:
e28c595f 18941 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 18942 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18943 else \
a90ef4bf 18944 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
18945 $(MAKE) stage4-start; \
18946 fi; \
a90ef4bf 18947 cd $(HOST_SUBDIR)/ld && \
b3676d82 18948 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18949@endif ld-bootstrap
e28c595f
JM
18950
18951
a90ef4bf
JM
18952.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
18953.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
18954maybe-all-stageprofile-ld:
18955maybe-clean-stageprofile-ld:
18956@if ld-bootstrap
18957maybe-all-stageprofile-ld: all-stageprofile-ld
18958all-stageprofile: all-stageprofile-ld
18959TARGET-stageprofile-ld = $(TARGET-ld)
18960all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
18961 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
18962 @r=`${PWD_COMMAND}`; export r; \
18963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18964 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 18965 $(HOST_EXPORTS) \
1f53ca9a 18966 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18967 cd $(HOST_SUBDIR)/ld && \
05a13254 18968 \
e28c595f 18969 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18970 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 18971 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
18972 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
18973 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18974 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18975 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18976 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18977 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 18978 $(TARGET-stageprofile-ld)
e28c595f 18979
a90ef4bf
JM
18980maybe-clean-stageprofile-ld: clean-stageprofile-ld
18981clean-stageprofile: clean-stageprofile-ld
18982clean-stageprofile-ld:
e28c595f 18983 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 18984 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18985 else \
a90ef4bf 18986 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
18987 $(MAKE) stageprofile-start; \
18988 fi; \
a90ef4bf 18989 cd $(HOST_SUBDIR)/ld && \
b3676d82 18990 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18991@endif ld-bootstrap
e28c595f
JM
18992
18993
a90ef4bf
JM
18994.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
18995.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
18996maybe-all-stagefeedback-ld:
18997maybe-clean-stagefeedback-ld:
18998@if ld-bootstrap
18999maybe-all-stagefeedback-ld: all-stagefeedback-ld
19000all-stagefeedback: all-stagefeedback-ld
19001TARGET-stagefeedback-ld = $(TARGET-ld)
19002all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
19003 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19004 @r=`${PWD_COMMAND}`; export r; \
19005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19006 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 19007 $(HOST_EXPORTS) \
1f53ca9a 19008 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19009 cd $(HOST_SUBDIR)/ld && \
05a13254 19010 \
e28c595f 19011 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19012 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 19013 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
19014 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19015 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19016 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19017 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19018 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19019 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 19020 $(TARGET-stagefeedback-ld)
e28c595f 19021
a90ef4bf
JM
19022maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
19023clean-stagefeedback: clean-stagefeedback-ld
19024clean-stagefeedback-ld:
e28c595f 19025 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 19026 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19027 else \
a90ef4bf 19028 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
19029 $(MAKE) stagefeedback-start; \
19030 fi; \
a90ef4bf 19031 cd $(HOST_SUBDIR)/ld && \
b3676d82 19032 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19033@endif ld-bootstrap
e28c595f
JM
19034
19035
19036
19037
19038
a90ef4bf
JM
19039.PHONY: check-ld maybe-check-ld
19040maybe-check-ld:
19041@if ld
19042maybe-check-ld: check-ld
e28c595f 19043
a90ef4bf 19044check-ld:
e28c595f
JM
19045 @: $(MAKE); $(unstage)
19046 @r=`${PWD_COMMAND}`; export r; \
19047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19048 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 19049 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 19050 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 19051
a90ef4bf 19052@endif ld
e28c595f 19053
a90ef4bf
JM
19054.PHONY: install-ld maybe-install-ld
19055maybe-install-ld:
19056@if ld
19057maybe-install-ld: install-ld
e28c595f 19058
a90ef4bf
JM
19059install-ld: installdirs
19060 @: $(MAKE); $(unstage)
19061 @r=`${PWD_COMMAND}`; export r; \
19062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19063 $(HOST_EXPORTS) \
19064 (cd $(HOST_SUBDIR)/ld && \
19065 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 19066
a90ef4bf 19067@endif ld
e28c595f 19068
a90ef4bf
JM
19069.PHONY: install-strip-ld maybe-install-strip-ld
19070maybe-install-strip-ld:
19071@if ld
19072maybe-install-strip-ld: install-strip-ld
9b980aa1 19073
a90ef4bf
JM
19074install-strip-ld: installdirs
19075 @: $(MAKE); $(unstage)
19076 @r=`${PWD_COMMAND}`; export r; \
19077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19078 $(HOST_EXPORTS) \
19079 (cd $(HOST_SUBDIR)/ld && \
19080 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 19081
a90ef4bf 19082@endif ld
9b980aa1 19083
e28c595f
JM
19084# Other targets (info, dvi, pdf, etc.)
19085
a90ef4bf
JM
19086.PHONY: maybe-info-ld info-ld
19087maybe-info-ld:
19088@if ld
19089maybe-info-ld: info-ld
e28c595f 19090
a90ef4bf
JM
19091info-ld: \
19092 configure-ld
19093 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19094 r=`${PWD_COMMAND}`; export r; \
19095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19096 $(HOST_EXPORTS) \
19097 for flag in $(EXTRA_HOST_FLAGS) ; do \
19098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19099 done; \
22121df0 19100 echo "Doing info in ld"; \
a90ef4bf 19101 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19104 "RANLIB=$${RANLIB}" \
19105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19106 info) \
19107 || exit 1
19108
a90ef4bf 19109@endif ld
e28c595f 19110
a90ef4bf
JM
19111.PHONY: maybe-dvi-ld dvi-ld
19112maybe-dvi-ld:
19113@if ld
19114maybe-dvi-ld: dvi-ld
e28c595f 19115
a90ef4bf
JM
19116dvi-ld: \
19117 configure-ld
19118 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19119 r=`${PWD_COMMAND}`; export r; \
19120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19121 $(HOST_EXPORTS) \
19122 for flag in $(EXTRA_HOST_FLAGS) ; do \
19123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19124 done; \
22121df0 19125 echo "Doing dvi in ld"; \
a90ef4bf 19126 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19129 "RANLIB=$${RANLIB}" \
19130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19131 dvi) \
19132 || exit 1
19133
a90ef4bf 19134@endif ld
e28c595f 19135
a90ef4bf
JM
19136.PHONY: maybe-pdf-ld pdf-ld
19137maybe-pdf-ld:
19138@if ld
19139maybe-pdf-ld: pdf-ld
e28c595f 19140
a90ef4bf
JM
19141pdf-ld: \
19142 configure-ld
19143 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19144 r=`${PWD_COMMAND}`; export r; \
19145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19146 $(HOST_EXPORTS) \
19147 for flag in $(EXTRA_HOST_FLAGS) ; do \
19148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19149 done; \
22121df0 19150 echo "Doing pdf in ld"; \
a90ef4bf 19151 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19154 "RANLIB=$${RANLIB}" \
19155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19156 pdf) \
19157 || exit 1
19158
a90ef4bf 19159@endif ld
e28c595f 19160
a90ef4bf
JM
19161.PHONY: maybe-html-ld html-ld
19162maybe-html-ld:
19163@if ld
19164maybe-html-ld: html-ld
e28c595f 19165
a90ef4bf
JM
19166html-ld: \
19167 configure-ld
19168 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19169 r=`${PWD_COMMAND}`; export r; \
19170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19171 $(HOST_EXPORTS) \
19172 for flag in $(EXTRA_HOST_FLAGS) ; do \
19173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19174 done; \
22121df0 19175 echo "Doing html in ld"; \
a90ef4bf 19176 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19179 "RANLIB=$${RANLIB}" \
19180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19181 html) \
19182 || exit 1
19183
a90ef4bf 19184@endif ld
e28c595f 19185
a90ef4bf
JM
19186.PHONY: maybe-TAGS-ld TAGS-ld
19187maybe-TAGS-ld:
19188@if ld
19189maybe-TAGS-ld: TAGS-ld
e28c595f 19190
a90ef4bf
JM
19191TAGS-ld: \
19192 configure-ld
19193 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19194 r=`${PWD_COMMAND}`; export r; \
19195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19196 $(HOST_EXPORTS) \
19197 for flag in $(EXTRA_HOST_FLAGS) ; do \
19198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19199 done; \
22121df0 19200 echo "Doing TAGS in ld"; \
a90ef4bf 19201 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19204 "RANLIB=$${RANLIB}" \
19205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19206 TAGS) \
19207 || exit 1
19208
a90ef4bf 19209@endif ld
e28c595f 19210
a90ef4bf
JM
19211.PHONY: maybe-install-info-ld install-info-ld
19212maybe-install-info-ld:
19213@if ld
19214maybe-install-info-ld: install-info-ld
e28c595f 19215
a90ef4bf
JM
19216install-info-ld: \
19217 configure-ld \
19218 info-ld
19219 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19220 r=`${PWD_COMMAND}`; export r; \
19221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19222 $(HOST_EXPORTS) \
19223 for flag in $(EXTRA_HOST_FLAGS) ; do \
19224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19225 done; \
22121df0 19226 echo "Doing install-info in ld"; \
a90ef4bf 19227 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19230 "RANLIB=$${RANLIB}" \
19231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19232 install-info) \
19233 || exit 1
19234
a90ef4bf 19235@endif ld
e28c595f 19236
a90ef4bf
JM
19237.PHONY: maybe-install-pdf-ld install-pdf-ld
19238maybe-install-pdf-ld:
19239@if ld
19240maybe-install-pdf-ld: install-pdf-ld
e28c595f 19241
a90ef4bf
JM
19242install-pdf-ld: \
19243 configure-ld \
19244 pdf-ld
19245 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19246 r=`${PWD_COMMAND}`; export r; \
19247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19248 $(HOST_EXPORTS) \
19249 for flag in $(EXTRA_HOST_FLAGS) ; do \
19250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19251 done; \
22121df0 19252 echo "Doing install-pdf in ld"; \
a90ef4bf 19253 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19256 "RANLIB=$${RANLIB}" \
19257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19258 install-pdf) \
19259 || exit 1
19260
a90ef4bf 19261@endif ld
e28c595f 19262
a90ef4bf
JM
19263.PHONY: maybe-install-html-ld install-html-ld
19264maybe-install-html-ld:
19265@if ld
19266maybe-install-html-ld: install-html-ld
e28c595f 19267
a90ef4bf
JM
19268install-html-ld: \
19269 configure-ld \
19270 html-ld
19271 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19272 r=`${PWD_COMMAND}`; export r; \
19273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19274 $(HOST_EXPORTS) \
19275 for flag in $(EXTRA_HOST_FLAGS) ; do \
19276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19277 done; \
22121df0 19278 echo "Doing install-html in ld"; \
a90ef4bf 19279 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19282 "RANLIB=$${RANLIB}" \
19283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19284 install-html) \
19285 || exit 1
19286
a90ef4bf 19287@endif ld
e28c595f 19288
a90ef4bf
JM
19289.PHONY: maybe-installcheck-ld installcheck-ld
19290maybe-installcheck-ld:
19291@if ld
19292maybe-installcheck-ld: installcheck-ld
e28c595f 19293
a90ef4bf
JM
19294installcheck-ld: \
19295 configure-ld
19296 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19297 r=`${PWD_COMMAND}`; export r; \
19298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19299 $(HOST_EXPORTS) \
19300 for flag in $(EXTRA_HOST_FLAGS) ; do \
19301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19302 done; \
22121df0 19303 echo "Doing installcheck in ld"; \
a90ef4bf 19304 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19307 "RANLIB=$${RANLIB}" \
0c24b341 19308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19309 installcheck) \
19310 || exit 1
19311
a90ef4bf 19312@endif ld
4b900473 19313
a90ef4bf
JM
19314.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19315maybe-mostlyclean-ld:
19316@if ld
19317maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19318
a90ef4bf
JM
19319mostlyclean-ld:
19320 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19321 r=`${PWD_COMMAND}`; export r; \
19322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19323 $(HOST_EXPORTS) \
19324 for flag in $(EXTRA_HOST_FLAGS) ; do \
19325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19326 done; \
22121df0 19327 echo "Doing mostlyclean in ld"; \
a90ef4bf 19328 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19331 "RANLIB=$${RANLIB}" \
0c24b341 19332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19333 mostlyclean) \
19334 || exit 1
19335
a90ef4bf 19336@endif ld
4b900473 19337
a90ef4bf
JM
19338.PHONY: maybe-clean-ld clean-ld
19339maybe-clean-ld:
19340@if ld
19341maybe-clean-ld: clean-ld
4b900473 19342
a90ef4bf
JM
19343clean-ld:
19344 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19345 r=`${PWD_COMMAND}`; export r; \
19346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19347 $(HOST_EXPORTS) \
19348 for flag in $(EXTRA_HOST_FLAGS) ; do \
19349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19350 done; \
22121df0 19351 echo "Doing clean in ld"; \
a90ef4bf 19352 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19355 "RANLIB=$${RANLIB}" \
0c24b341 19356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19357 clean) \
19358 || exit 1
19359
a90ef4bf 19360@endif ld
4b900473 19361
a90ef4bf
JM
19362.PHONY: maybe-distclean-ld distclean-ld
19363maybe-distclean-ld:
19364@if ld
19365maybe-distclean-ld: distclean-ld
4b900473 19366
a90ef4bf
JM
19367distclean-ld:
19368 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19369 r=`${PWD_COMMAND}`; export r; \
19370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19371 $(HOST_EXPORTS) \
19372 for flag in $(EXTRA_HOST_FLAGS) ; do \
19373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19374 done; \
22121df0 19375 echo "Doing distclean in ld"; \
a90ef4bf 19376 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19379 "RANLIB=$${RANLIB}" \
0c24b341 19380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19381 distclean) \
19382 || exit 1
19383
a90ef4bf 19384@endif ld
4b900473 19385
a90ef4bf
JM
19386.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19387maybe-maintainer-clean-ld:
19388@if ld
19389maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19390
a90ef4bf
JM
19391maintainer-clean-ld:
19392 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19393 r=`${PWD_COMMAND}`; export r; \
19394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19395 $(HOST_EXPORTS) \
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 maintainer-clean in ld"; \
a90ef4bf 19400 (cd $(HOST_SUBDIR)/ld && \
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 maintainer-clean) \
19406 || exit 1
19407
a90ef4bf 19408@endif ld
4b900473
PB
19409
19410
19411
2bf680c4
ILT
19412.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19413maybe-configure-libbacktrace:
19414@if gcc-bootstrap
19415configure-libbacktrace: stage_current
19416@endif gcc-bootstrap
19417@if libbacktrace
19418maybe-configure-libbacktrace: configure-libbacktrace
19419configure-libbacktrace:
19420 @r=`${PWD_COMMAND}`; export r; \
19421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19422 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19423 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19424 $(HOST_EXPORTS) \
19425 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19426 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19427 case $(srcdir) in \
19428 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19429 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19430 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19431 esac; \
1b6c0831
L
19432 module_srcdir=libbacktrace; \
19433 $(SHELL) \
19434 $$s/$$module_srcdir/configure \
19435 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19437 --target=${target_alias} \
2bf680c4
ILT
19438 || exit 1
19439@endif libbacktrace
19440
19441
19442
19443.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19444maybe-configure-stage1-libbacktrace:
19445@if libbacktrace-bootstrap
19446maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19447configure-stage1-libbacktrace:
19448 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19449 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19450 @r=`${PWD_COMMAND}`; export r; \
19451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19452 TFLAGS="$(STAGE1_TFLAGS)"; \
19453 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19454 $(HOST_EXPORTS) \
19455 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19456 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19457 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19458 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19459 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19460 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19461 case $(srcdir) in \
19462 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19463 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19464 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19465 esac; \
1b6c0831
L
19466 module_srcdir=libbacktrace; \
19467 $(SHELL) $$s/$$module_srcdir/configure \
19468 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19469 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19470 --target=${target_alias} \
19471 \
2bf680c4
ILT
19472 $(STAGE1_CONFIGURE_FLAGS)
19473@endif libbacktrace-bootstrap
19474
19475.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19476maybe-configure-stage2-libbacktrace:
19477@if libbacktrace-bootstrap
19478maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19479configure-stage2-libbacktrace:
19480 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19481 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19482 @r=`${PWD_COMMAND}`; export r; \
19483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19484 TFLAGS="$(STAGE2_TFLAGS)"; \
19485 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19486 $(HOST_EXPORTS) \
19487 $(POSTSTAGE1_HOST_EXPORTS) \
19488 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19489 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19490 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19491 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19492 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19493 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19494 case $(srcdir) in \
19495 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19496 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19497 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19498 esac; \
1b6c0831
L
19499 module_srcdir=libbacktrace; \
19500 $(SHELL) $$s/$$module_srcdir/configure \
19501 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19502 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19503 --target=${target_alias} \
22121df0 19504 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19505 $(STAGE2_CONFIGURE_FLAGS)
19506@endif libbacktrace-bootstrap
19507
19508.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19509maybe-configure-stage3-libbacktrace:
19510@if libbacktrace-bootstrap
19511maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19512configure-stage3-libbacktrace:
19513 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19514 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19515 @r=`${PWD_COMMAND}`; export r; \
19516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19517 TFLAGS="$(STAGE3_TFLAGS)"; \
19518 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19519 $(HOST_EXPORTS) \
19520 $(POSTSTAGE1_HOST_EXPORTS) \
19521 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19522 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19523 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19524 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19525 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19526 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19527 case $(srcdir) in \
19528 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19529 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19530 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19531 esac; \
1b6c0831
L
19532 module_srcdir=libbacktrace; \
19533 $(SHELL) $$s/$$module_srcdir/configure \
19534 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19535 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19536 --target=${target_alias} \
22121df0 19537 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19538 $(STAGE3_CONFIGURE_FLAGS)
19539@endif libbacktrace-bootstrap
19540
19541.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19542maybe-configure-stage4-libbacktrace:
19543@if libbacktrace-bootstrap
19544maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19545configure-stage4-libbacktrace:
19546 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19547 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19548 @r=`${PWD_COMMAND}`; export r; \
19549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19550 TFLAGS="$(STAGE4_TFLAGS)"; \
19551 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19552 $(HOST_EXPORTS) \
19553 $(POSTSTAGE1_HOST_EXPORTS) \
19554 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19555 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19556 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19557 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19558 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19559 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19560 case $(srcdir) in \
19561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19562 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19564 esac; \
1b6c0831
L
19565 module_srcdir=libbacktrace; \
19566 $(SHELL) $$s/$$module_srcdir/configure \
19567 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19568 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19569 --target=${target_alias} \
22121df0 19570 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19571 $(STAGE4_CONFIGURE_FLAGS)
19572@endif libbacktrace-bootstrap
19573
19574.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19575maybe-configure-stageprofile-libbacktrace:
19576@if libbacktrace-bootstrap
19577maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19578configure-stageprofile-libbacktrace:
19579 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19580 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19581 @r=`${PWD_COMMAND}`; export r; \
19582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19583 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19584 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19585 $(HOST_EXPORTS) \
19586 $(POSTSTAGE1_HOST_EXPORTS) \
19587 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19588 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19589 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19590 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19591 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19592 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19593 case $(srcdir) in \
19594 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19595 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19596 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19597 esac; \
1b6c0831
L
19598 module_srcdir=libbacktrace; \
19599 $(SHELL) $$s/$$module_srcdir/configure \
19600 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19601 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19602 --target=${target_alias} \
22121df0 19603 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19604 $(STAGEprofile_CONFIGURE_FLAGS)
19605@endif libbacktrace-bootstrap
19606
19607.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19608maybe-configure-stagefeedback-libbacktrace:
19609@if libbacktrace-bootstrap
19610maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19611configure-stagefeedback-libbacktrace:
19612 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19613 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19614 @r=`${PWD_COMMAND}`; export r; \
19615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19616 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19617 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19618 $(HOST_EXPORTS) \
19619 $(POSTSTAGE1_HOST_EXPORTS) \
19620 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19621 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19622 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19623 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19624 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19625 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19626 case $(srcdir) in \
19627 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19628 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19629 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19630 esac; \
1b6c0831
L
19631 module_srcdir=libbacktrace; \
19632 $(SHELL) $$s/$$module_srcdir/configure \
19633 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19634 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19635 --target=${target_alias} \
22121df0 19636 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19637 $(STAGEfeedback_CONFIGURE_FLAGS)
19638@endif libbacktrace-bootstrap
19639
19640
19641
19642
19643
19644.PHONY: all-libbacktrace maybe-all-libbacktrace
19645maybe-all-libbacktrace:
19646@if gcc-bootstrap
19647all-libbacktrace: stage_current
19648@endif gcc-bootstrap
19649@if libbacktrace
19650TARGET-libbacktrace=all
19651maybe-all-libbacktrace: all-libbacktrace
19652all-libbacktrace: configure-libbacktrace
19653 @r=`${PWD_COMMAND}`; export r; \
19654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19655 $(HOST_EXPORTS) \
19656 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19657 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19658 $(TARGET-libbacktrace))
19659@endif libbacktrace
19660
19661
19662
19663.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19664.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19665maybe-all-stage1-libbacktrace:
19666maybe-clean-stage1-libbacktrace:
19667@if libbacktrace-bootstrap
19668maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19669all-stage1: all-stage1-libbacktrace
19670TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19671all-stage1-libbacktrace: configure-stage1-libbacktrace
19672 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19673 @r=`${PWD_COMMAND}`; export r; \
19674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19675 TFLAGS="$(STAGE1_TFLAGS)"; \
19676 $(HOST_EXPORTS) \
19677 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19678 \
2bf680c4
ILT
19679 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19680 CFLAGS="$(STAGE1_CFLAGS)" \
19681 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19682 LIBCFLAGS="$(LIBCFLAGS)" \
19683 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19684 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19685 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19686 $(EXTRA_HOST_FLAGS) \
19687 $(STAGE1_FLAGS_TO_PASS) \
05a13254 19688 TFLAGS="$(STAGE1_TFLAGS)" \
2bf680c4
ILT
19689 $(TARGET-stage1-libbacktrace)
19690
19691maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19692clean-stage1: clean-stage1-libbacktrace
19693clean-stage1-libbacktrace:
19694 @if [ $(current_stage) = stage1 ]; then \
19695 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19696 else \
19697 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19698 $(MAKE) stage1-start; \
19699 fi; \
19700 cd $(HOST_SUBDIR)/libbacktrace && \
19701 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19702 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19703@endif libbacktrace-bootstrap
19704
19705
19706.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19707.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19708maybe-all-stage2-libbacktrace:
19709maybe-clean-stage2-libbacktrace:
19710@if libbacktrace-bootstrap
19711maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19712all-stage2: all-stage2-libbacktrace
19713TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19714all-stage2-libbacktrace: configure-stage2-libbacktrace
19715 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19716 @r=`${PWD_COMMAND}`; export r; \
19717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19718 TFLAGS="$(STAGE2_TFLAGS)"; \
19719 $(HOST_EXPORTS) \
19720 $(POSTSTAGE1_HOST_EXPORTS) \
19721 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19722 \
2bf680c4
ILT
19723 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19724 CFLAGS="$(STAGE2_CFLAGS)" \
19725 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19726 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19727 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19728 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19729 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19730 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19731 TFLAGS="$(STAGE2_TFLAGS)" \
2bf680c4
ILT
19732 $(TARGET-stage2-libbacktrace)
19733
19734maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19735clean-stage2: clean-stage2-libbacktrace
19736clean-stage2-libbacktrace:
19737 @if [ $(current_stage) = stage2 ]; then \
19738 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19739 else \
19740 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19741 $(MAKE) stage2-start; \
19742 fi; \
19743 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19744 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19745@endif libbacktrace-bootstrap
19746
19747
19748.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19749.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19750maybe-all-stage3-libbacktrace:
19751maybe-clean-stage3-libbacktrace:
19752@if libbacktrace-bootstrap
19753maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19754all-stage3: all-stage3-libbacktrace
19755TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19756all-stage3-libbacktrace: configure-stage3-libbacktrace
19757 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19758 @r=`${PWD_COMMAND}`; export r; \
19759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19760 TFLAGS="$(STAGE3_TFLAGS)"; \
19761 $(HOST_EXPORTS) \
19762 $(POSTSTAGE1_HOST_EXPORTS) \
19763 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19764 \
2bf680c4
ILT
19765 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19766 CFLAGS="$(STAGE3_CFLAGS)" \
19767 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19768 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19769 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19770 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19771 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19772 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19773 TFLAGS="$(STAGE3_TFLAGS)" \
2bf680c4
ILT
19774 $(TARGET-stage3-libbacktrace)
19775
19776maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19777clean-stage3: clean-stage3-libbacktrace
19778clean-stage3-libbacktrace:
19779 @if [ $(current_stage) = stage3 ]; then \
19780 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19781 else \
19782 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19783 $(MAKE) stage3-start; \
19784 fi; \
19785 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19786 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19787@endif libbacktrace-bootstrap
19788
19789
19790.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19791.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19792maybe-all-stage4-libbacktrace:
19793maybe-clean-stage4-libbacktrace:
19794@if libbacktrace-bootstrap
19795maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19796all-stage4: all-stage4-libbacktrace
19797TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19798all-stage4-libbacktrace: configure-stage4-libbacktrace
19799 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19800 @r=`${PWD_COMMAND}`; export r; \
19801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19802 TFLAGS="$(STAGE4_TFLAGS)"; \
19803 $(HOST_EXPORTS) \
19804 $(POSTSTAGE1_HOST_EXPORTS) \
19805 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19806 \
2bf680c4
ILT
19807 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19808 CFLAGS="$(STAGE4_CFLAGS)" \
19809 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19810 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19811 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19812 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19813 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19814 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19815 TFLAGS="$(STAGE4_TFLAGS)" \
2bf680c4
ILT
19816 $(TARGET-stage4-libbacktrace)
19817
19818maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19819clean-stage4: clean-stage4-libbacktrace
19820clean-stage4-libbacktrace:
19821 @if [ $(current_stage) = stage4 ]; then \
19822 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19823 else \
19824 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19825 $(MAKE) stage4-start; \
19826 fi; \
19827 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19828 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19829@endif libbacktrace-bootstrap
19830
19831
19832.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19833.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19834maybe-all-stageprofile-libbacktrace:
19835maybe-clean-stageprofile-libbacktrace:
19836@if libbacktrace-bootstrap
19837maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19838all-stageprofile: all-stageprofile-libbacktrace
19839TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19840all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19841 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19842 @r=`${PWD_COMMAND}`; export r; \
19843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19844 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19845 $(HOST_EXPORTS) \
19846 $(POSTSTAGE1_HOST_EXPORTS) \
19847 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19848 \
2bf680c4
ILT
19849 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19850 CFLAGS="$(STAGEprofile_CFLAGS)" \
19851 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19852 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19853 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19854 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19855 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19856 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19857 TFLAGS="$(STAGEprofile_TFLAGS)" \
2bf680c4
ILT
19858 $(TARGET-stageprofile-libbacktrace)
19859
19860maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19861clean-stageprofile: clean-stageprofile-libbacktrace
19862clean-stageprofile-libbacktrace:
19863 @if [ $(current_stage) = stageprofile ]; then \
19864 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19865 else \
19866 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19867 $(MAKE) stageprofile-start; \
19868 fi; \
19869 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19870 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19871@endif libbacktrace-bootstrap
19872
19873
19874.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19875.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19876maybe-all-stagefeedback-libbacktrace:
19877maybe-clean-stagefeedback-libbacktrace:
19878@if libbacktrace-bootstrap
19879maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19880all-stagefeedback: all-stagefeedback-libbacktrace
19881TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19882all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19883 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19884 @r=`${PWD_COMMAND}`; export r; \
19885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19886 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19887 $(HOST_EXPORTS) \
19888 $(POSTSTAGE1_HOST_EXPORTS) \
19889 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19890 \
2bf680c4
ILT
19891 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19892 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19893 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19894 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19895 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19896 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19897 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19898 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19899 TFLAGS="$(STAGEfeedback_TFLAGS)" \
2bf680c4
ILT
19900 $(TARGET-stagefeedback-libbacktrace)
19901
19902maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
19903clean-stagefeedback: clean-stagefeedback-libbacktrace
19904clean-stagefeedback-libbacktrace:
19905 @if [ $(current_stage) = stagefeedback ]; then \
19906 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19907 else \
19908 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
19909 $(MAKE) stagefeedback-start; \
19910 fi; \
19911 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19912 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19913@endif libbacktrace-bootstrap
19914
19915
19916
19917
19918
19919.PHONY: check-libbacktrace maybe-check-libbacktrace
19920maybe-check-libbacktrace:
19921@if libbacktrace
19922maybe-check-libbacktrace: check-libbacktrace
19923
19924check-libbacktrace:
19925 @: $(MAKE); $(unstage)
19926 @r=`${PWD_COMMAND}`; export r; \
19927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19928 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 19929 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 19930 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
19931
19932@endif libbacktrace
19933
19934.PHONY: install-libbacktrace maybe-install-libbacktrace
19935maybe-install-libbacktrace:
19936@if libbacktrace
19937maybe-install-libbacktrace: install-libbacktrace
19938
19939install-libbacktrace: installdirs
19940 @: $(MAKE); $(unstage)
19941 @r=`${PWD_COMMAND}`; export r; \
19942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19943 $(HOST_EXPORTS) \
19944 (cd $(HOST_SUBDIR)/libbacktrace && \
19945 $(MAKE) $(FLAGS_TO_PASS) install)
19946
19947@endif libbacktrace
19948
19949.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
19950maybe-install-strip-libbacktrace:
19951@if libbacktrace
19952maybe-install-strip-libbacktrace: install-strip-libbacktrace
19953
19954install-strip-libbacktrace: installdirs
19955 @: $(MAKE); $(unstage)
19956 @r=`${PWD_COMMAND}`; export r; \
19957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19958 $(HOST_EXPORTS) \
19959 (cd $(HOST_SUBDIR)/libbacktrace && \
19960 $(MAKE) $(FLAGS_TO_PASS) install-strip)
19961
19962@endif libbacktrace
19963
19964# Other targets (info, dvi, pdf, etc.)
19965
19966.PHONY: maybe-info-libbacktrace info-libbacktrace
19967maybe-info-libbacktrace:
19968@if libbacktrace
19969maybe-info-libbacktrace: info-libbacktrace
19970
19971info-libbacktrace: \
19972 configure-libbacktrace
19973 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19974 r=`${PWD_COMMAND}`; export r; \
19975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19976 $(HOST_EXPORTS) \
19977 for flag in $(EXTRA_HOST_FLAGS) ; do \
19978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19979 done; \
22121df0 19980 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
19981 (cd $(HOST_SUBDIR)/libbacktrace && \
19982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19984 "RANLIB=$${RANLIB}" \
19985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19986 info) \
19987 || exit 1
19988
19989@endif libbacktrace
19990
19991.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
19992maybe-dvi-libbacktrace:
19993@if libbacktrace
19994maybe-dvi-libbacktrace: dvi-libbacktrace
19995
19996dvi-libbacktrace: \
19997 configure-libbacktrace
19998 @[ -f ./libbacktrace/Makefile ] || exit 0; \
19999 r=`${PWD_COMMAND}`; export r; \
20000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20001 $(HOST_EXPORTS) \
20002 for flag in $(EXTRA_HOST_FLAGS) ; do \
20003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20004 done; \
22121df0 20005 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
20006 (cd $(HOST_SUBDIR)/libbacktrace && \
20007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20009 "RANLIB=$${RANLIB}" \
20010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20011 dvi) \
20012 || exit 1
20013
20014@endif libbacktrace
20015
20016.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
20017maybe-pdf-libbacktrace:
20018@if libbacktrace
20019maybe-pdf-libbacktrace: pdf-libbacktrace
20020
20021pdf-libbacktrace: \
20022 configure-libbacktrace
20023 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20024 r=`${PWD_COMMAND}`; export r; \
20025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20026 $(HOST_EXPORTS) \
20027 for flag in $(EXTRA_HOST_FLAGS) ; do \
20028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20029 done; \
22121df0 20030 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
20031 (cd $(HOST_SUBDIR)/libbacktrace && \
20032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20034 "RANLIB=$${RANLIB}" \
20035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20036 pdf) \
20037 || exit 1
20038
20039@endif libbacktrace
20040
20041.PHONY: maybe-html-libbacktrace html-libbacktrace
20042maybe-html-libbacktrace:
20043@if libbacktrace
20044maybe-html-libbacktrace: html-libbacktrace
20045
20046html-libbacktrace: \
20047 configure-libbacktrace
20048 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20049 r=`${PWD_COMMAND}`; export r; \
20050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20051 $(HOST_EXPORTS) \
20052 for flag in $(EXTRA_HOST_FLAGS) ; do \
20053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20054 done; \
22121df0 20055 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
20056 (cd $(HOST_SUBDIR)/libbacktrace && \
20057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20059 "RANLIB=$${RANLIB}" \
20060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20061 html) \
20062 || exit 1
20063
20064@endif libbacktrace
20065
20066.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
20067maybe-TAGS-libbacktrace:
20068@if libbacktrace
20069maybe-TAGS-libbacktrace: TAGS-libbacktrace
20070
20071TAGS-libbacktrace: \
20072 configure-libbacktrace
20073 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20074 r=`${PWD_COMMAND}`; export r; \
20075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20076 $(HOST_EXPORTS) \
20077 for flag in $(EXTRA_HOST_FLAGS) ; do \
20078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20079 done; \
22121df0 20080 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
20081 (cd $(HOST_SUBDIR)/libbacktrace && \
20082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20084 "RANLIB=$${RANLIB}" \
20085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20086 TAGS) \
20087 || exit 1
20088
20089@endif libbacktrace
20090
20091.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
20092maybe-install-info-libbacktrace:
20093@if libbacktrace
20094maybe-install-info-libbacktrace: install-info-libbacktrace
20095
20096install-info-libbacktrace: \
20097 configure-libbacktrace \
20098 info-libbacktrace
20099 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20100 r=`${PWD_COMMAND}`; export r; \
20101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20102 $(HOST_EXPORTS) \
20103 for flag in $(EXTRA_HOST_FLAGS) ; do \
20104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20105 done; \
22121df0 20106 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
20107 (cd $(HOST_SUBDIR)/libbacktrace && \
20108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20110 "RANLIB=$${RANLIB}" \
20111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20112 install-info) \
20113 || exit 1
20114
20115@endif libbacktrace
20116
20117.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20118maybe-install-pdf-libbacktrace:
20119@if libbacktrace
20120maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20121
20122install-pdf-libbacktrace: \
20123 configure-libbacktrace \
20124 pdf-libbacktrace
20125 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20126 r=`${PWD_COMMAND}`; export r; \
20127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20128 $(HOST_EXPORTS) \
20129 for flag in $(EXTRA_HOST_FLAGS) ; do \
20130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20131 done; \
22121df0 20132 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20133 (cd $(HOST_SUBDIR)/libbacktrace && \
20134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20136 "RANLIB=$${RANLIB}" \
20137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20138 install-pdf) \
20139 || exit 1
20140
20141@endif libbacktrace
20142
20143.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20144maybe-install-html-libbacktrace:
20145@if libbacktrace
20146maybe-install-html-libbacktrace: install-html-libbacktrace
20147
20148install-html-libbacktrace: \
20149 configure-libbacktrace \
20150 html-libbacktrace
20151 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20152 r=`${PWD_COMMAND}`; export r; \
20153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20154 $(HOST_EXPORTS) \
20155 for flag in $(EXTRA_HOST_FLAGS) ; do \
20156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20157 done; \
22121df0 20158 echo "Doing install-html in libbacktrace"; \
2bf680c4
ILT
20159 (cd $(HOST_SUBDIR)/libbacktrace && \
20160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20162 "RANLIB=$${RANLIB}" \
20163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20164 install-html) \
20165 || exit 1
20166
20167@endif libbacktrace
20168
20169.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20170maybe-installcheck-libbacktrace:
20171@if libbacktrace
20172maybe-installcheck-libbacktrace: installcheck-libbacktrace
20173
20174installcheck-libbacktrace: \
20175 configure-libbacktrace
20176 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20177 r=`${PWD_COMMAND}`; export r; \
20178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20179 $(HOST_EXPORTS) \
20180 for flag in $(EXTRA_HOST_FLAGS) ; do \
20181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20182 done; \
22121df0 20183 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20184 (cd $(HOST_SUBDIR)/libbacktrace && \
20185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20187 "RANLIB=$${RANLIB}" \
20188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20189 installcheck) \
20190 || exit 1
20191
20192@endif libbacktrace
20193
20194.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20195maybe-mostlyclean-libbacktrace:
20196@if libbacktrace
20197maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20198
20199mostlyclean-libbacktrace:
20200 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20201 r=`${PWD_COMMAND}`; export r; \
20202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20203 $(HOST_EXPORTS) \
20204 for flag in $(EXTRA_HOST_FLAGS) ; do \
20205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20206 done; \
22121df0 20207 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20208 (cd $(HOST_SUBDIR)/libbacktrace && \
20209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20211 "RANLIB=$${RANLIB}" \
20212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20213 mostlyclean) \
20214 || exit 1
20215
20216@endif libbacktrace
20217
20218.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20219maybe-clean-libbacktrace:
20220@if libbacktrace
20221maybe-clean-libbacktrace: clean-libbacktrace
20222
20223clean-libbacktrace:
20224 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20225 r=`${PWD_COMMAND}`; export r; \
20226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20227 $(HOST_EXPORTS) \
20228 for flag in $(EXTRA_HOST_FLAGS) ; do \
20229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20230 done; \
22121df0 20231 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20232 (cd $(HOST_SUBDIR)/libbacktrace && \
20233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20235 "RANLIB=$${RANLIB}" \
20236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20237 clean) \
20238 || exit 1
20239
20240@endif libbacktrace
20241
20242.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20243maybe-distclean-libbacktrace:
20244@if libbacktrace
20245maybe-distclean-libbacktrace: distclean-libbacktrace
20246
20247distclean-libbacktrace:
20248 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20249 r=`${PWD_COMMAND}`; export r; \
20250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20251 $(HOST_EXPORTS) \
20252 for flag in $(EXTRA_HOST_FLAGS) ; do \
20253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20254 done; \
22121df0 20255 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20256 (cd $(HOST_SUBDIR)/libbacktrace && \
20257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20259 "RANLIB=$${RANLIB}" \
20260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20261 distclean) \
20262 || exit 1
20263
20264@endif libbacktrace
20265
20266.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20267maybe-maintainer-clean-libbacktrace:
20268@if libbacktrace
20269maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20270
20271maintainer-clean-libbacktrace:
20272 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20273 r=`${PWD_COMMAND}`; export r; \
20274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20275 $(HOST_EXPORTS) \
20276 for flag in $(EXTRA_HOST_FLAGS) ; do \
20277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20278 done; \
22121df0 20279 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20280 (cd $(HOST_SUBDIR)/libbacktrace && \
20281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20283 "RANLIB=$${RANLIB}" \
20284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20285 maintainer-clean) \
20286 || exit 1
20287
20288@endif libbacktrace
20289
20290
20291
a90ef4bf
JM
20292.PHONY: configure-libcpp maybe-configure-libcpp
20293maybe-configure-libcpp:
4b900473 20294@if gcc-bootstrap
a90ef4bf 20295configure-libcpp: stage_current
4b900473 20296@endif gcc-bootstrap
a90ef4bf
JM
20297@if libcpp
20298maybe-configure-libcpp: configure-libcpp
20299configure-libcpp:
4b900473
PB
20300 @r=`${PWD_COMMAND}`; export r; \
20301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20302 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20303 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20304 $(HOST_EXPORTS) \
20305 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20306 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20307 case $(srcdir) in \
20308 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20309 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20310 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20311 esac; \
1b6c0831
L
20312 module_srcdir=libcpp; \
20313 $(SHELL) \
20314 $$s/$$module_srcdir/configure \
20315 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20316 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20317 --target=${target_alias} \
4b900473 20318 || exit 1
a90ef4bf 20319@endif libcpp
4b900473
PB
20320
20321
20322
a90ef4bf
JM
20323.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20324maybe-configure-stage1-libcpp:
20325@if libcpp-bootstrap
20326maybe-configure-stage1-libcpp: configure-stage1-libcpp
20327configure-stage1-libcpp:
4b900473 20328 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20329 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20330 @r=`${PWD_COMMAND}`; export r; \
20331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20332 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20333 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20334 $(HOST_EXPORTS) \
8ee82aff 20335 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20336 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20337 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20338 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20339 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20340 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20341 case $(srcdir) in \
20342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20343 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20345 esac; \
1b6c0831
L
20346 module_srcdir=libcpp; \
20347 $(SHELL) $$s/$$module_srcdir/configure \
20348 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20349 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20350 --target=${target_alias} \
20351 \
a90ef4bf
JM
20352 $(STAGE1_CONFIGURE_FLAGS)
20353@endif libcpp-bootstrap
e28c595f 20354
a90ef4bf
JM
20355.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20356maybe-configure-stage2-libcpp:
20357@if libcpp-bootstrap
20358maybe-configure-stage2-libcpp: configure-stage2-libcpp
20359configure-stage2-libcpp:
4b900473 20360 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20361 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20362 @r=`${PWD_COMMAND}`; export r; \
20363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20364 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20365 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20366 $(HOST_EXPORTS) \
1b05fbbd 20367 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20368 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20369 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20370 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20371 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20372 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20373 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20374 case $(srcdir) in \
20375 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20376 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20377 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20378 esac; \
1b6c0831
L
20379 module_srcdir=libcpp; \
20380 $(SHELL) $$s/$$module_srcdir/configure \
20381 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20382 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20383 --target=${target_alias} \
22121df0 20384 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20385 $(STAGE2_CONFIGURE_FLAGS)
20386@endif libcpp-bootstrap
e28c595f 20387
a90ef4bf
JM
20388.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20389maybe-configure-stage3-libcpp:
20390@if libcpp-bootstrap
20391maybe-configure-stage3-libcpp: configure-stage3-libcpp
20392configure-stage3-libcpp:
4b900473 20393 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20394 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20395 @r=`${PWD_COMMAND}`; export r; \
20396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20397 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20398 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20399 $(HOST_EXPORTS) \
1b05fbbd 20400 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20401 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20402 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20403 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20404 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20405 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20406 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20407 case $(srcdir) in \
20408 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20409 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20410 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20411 esac; \
1b6c0831
L
20412 module_srcdir=libcpp; \
20413 $(SHELL) $$s/$$module_srcdir/configure \
20414 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20415 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20416 --target=${target_alias} \
22121df0 20417 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20418 $(STAGE3_CONFIGURE_FLAGS)
20419@endif libcpp-bootstrap
e28c595f 20420
a90ef4bf
JM
20421.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20422maybe-configure-stage4-libcpp:
20423@if libcpp-bootstrap
20424maybe-configure-stage4-libcpp: configure-stage4-libcpp
20425configure-stage4-libcpp:
4b900473 20426 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20427 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20428 @r=`${PWD_COMMAND}`; export r; \
20429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20430 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20431 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20432 $(HOST_EXPORTS) \
1b05fbbd 20433 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20434 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20435 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20436 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20437 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20438 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20439 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20440 case $(srcdir) in \
20441 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20442 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20443 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20444 esac; \
1b6c0831
L
20445 module_srcdir=libcpp; \
20446 $(SHELL) $$s/$$module_srcdir/configure \
20447 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20448 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20449 --target=${target_alias} \
22121df0 20450 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20451 $(STAGE4_CONFIGURE_FLAGS)
20452@endif libcpp-bootstrap
e28c595f 20453
a90ef4bf
JM
20454.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20455maybe-configure-stageprofile-libcpp:
20456@if libcpp-bootstrap
20457maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20458configure-stageprofile-libcpp:
4b900473 20459 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20460 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20461 @r=`${PWD_COMMAND}`; export r; \
20462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20463 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20464 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20465 $(HOST_EXPORTS) \
1b05fbbd
AO
20466 $(POSTSTAGE1_HOST_EXPORTS) \
20467 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20468 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20469 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20470 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20471 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20472 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20473 case $(srcdir) in \
20474 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20475 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20476 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20477 esac; \
1b6c0831
L
20478 module_srcdir=libcpp; \
20479 $(SHELL) $$s/$$module_srcdir/configure \
20480 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20481 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20482 --target=${target_alias} \
22121df0 20483 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20484 $(STAGEprofile_CONFIGURE_FLAGS)
20485@endif libcpp-bootstrap
e28c595f 20486
a90ef4bf
JM
20487.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20488maybe-configure-stagefeedback-libcpp:
20489@if libcpp-bootstrap
20490maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20491configure-stagefeedback-libcpp:
4b900473 20492 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20493 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20494 @r=`${PWD_COMMAND}`; export r; \
20495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20496 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20497 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20498 $(HOST_EXPORTS) \
1b05fbbd
AO
20499 $(POSTSTAGE1_HOST_EXPORTS) \
20500 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20501 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20502 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20503 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20504 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20505 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20506 case $(srcdir) in \
20507 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20508 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20509 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20510 esac; \
1b6c0831
L
20511 module_srcdir=libcpp; \
20512 $(SHELL) $$s/$$module_srcdir/configure \
20513 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20514 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20515 --target=${target_alias} \
22121df0 20516 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20517 $(STAGEfeedback_CONFIGURE_FLAGS)
20518@endif libcpp-bootstrap
4b900473
PB
20519
20520
20521
20522
20523
a90ef4bf
JM
20524.PHONY: all-libcpp maybe-all-libcpp
20525maybe-all-libcpp:
4b900473 20526@if gcc-bootstrap
a90ef4bf 20527all-libcpp: stage_current
4b900473 20528@endif gcc-bootstrap
a90ef4bf
JM
20529@if libcpp
20530TARGET-libcpp=all
20531maybe-all-libcpp: all-libcpp
20532all-libcpp: configure-libcpp
4b900473
PB
20533 @r=`${PWD_COMMAND}`; export r; \
20534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20535 $(HOST_EXPORTS) \
20536 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20537 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20538 $(TARGET-libcpp))
20539@endif libcpp
4b900473
PB
20540
20541
20542
a90ef4bf
JM
20543.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20544.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20545maybe-all-stage1-libcpp:
20546maybe-clean-stage1-libcpp:
20547@if libcpp-bootstrap
20548maybe-all-stage1-libcpp: all-stage1-libcpp
20549all-stage1: all-stage1-libcpp
20550TARGET-stage1-libcpp = $(TARGET-libcpp)
20551all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20552 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20553 @r=`${PWD_COMMAND}`; export r; \
20554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20555 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20556 $(HOST_EXPORTS) \
20557 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20558 \
7f6ef0c0 20559 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20560 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20561 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20562 LIBCFLAGS="$(LIBCFLAGS)" \
20563 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20564 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20565 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20566 $(EXTRA_HOST_FLAGS) \
20567 $(STAGE1_FLAGS_TO_PASS) \
05a13254 20568 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20569 $(TARGET-stage1-libcpp)
4b900473 20570
a90ef4bf
JM
20571maybe-clean-stage1-libcpp: clean-stage1-libcpp
20572clean-stage1: clean-stage1-libcpp
20573clean-stage1-libcpp:
4b900473 20574 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20575 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20576 else \
a90ef4bf 20577 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20578 $(MAKE) stage1-start; \
20579 fi; \
a90ef4bf 20580 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20581 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20582 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20583@endif libcpp-bootstrap
e28c595f
JM
20584
20585
a90ef4bf
JM
20586.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20587.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20588maybe-all-stage2-libcpp:
20589maybe-clean-stage2-libcpp:
20590@if libcpp-bootstrap
20591maybe-all-stage2-libcpp: all-stage2-libcpp
20592all-stage2: all-stage2-libcpp
20593TARGET-stage2-libcpp = $(TARGET-libcpp)
20594all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20595 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20596 @r=`${PWD_COMMAND}`; export r; \
20597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20598 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20599 $(HOST_EXPORTS) \
a90ef4bf
JM
20600 $(POSTSTAGE1_HOST_EXPORTS) \
20601 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20602 \
7f6ef0c0 20603 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20604 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20605 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20606 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20607 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20608 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20609 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20610 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20611 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20612 $(TARGET-stage2-libcpp)
4b900473 20613
a90ef4bf
JM
20614maybe-clean-stage2-libcpp: clean-stage2-libcpp
20615clean-stage2: clean-stage2-libcpp
20616clean-stage2-libcpp:
4b900473 20617 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20618 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20619 else \
a90ef4bf 20620 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20621 $(MAKE) stage2-start; \
20622 fi; \
a90ef4bf 20623 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20624 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20625@endif libcpp-bootstrap
e28c595f
JM
20626
20627
a90ef4bf
JM
20628.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20629.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20630maybe-all-stage3-libcpp:
20631maybe-clean-stage3-libcpp:
20632@if libcpp-bootstrap
20633maybe-all-stage3-libcpp: all-stage3-libcpp
20634all-stage3: all-stage3-libcpp
20635TARGET-stage3-libcpp = $(TARGET-libcpp)
20636all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20637 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20638 @r=`${PWD_COMMAND}`; export r; \
20639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20640 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20641 $(HOST_EXPORTS) \
a90ef4bf
JM
20642 $(POSTSTAGE1_HOST_EXPORTS) \
20643 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20644 \
7f6ef0c0 20645 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20646 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20647 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20648 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20649 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20650 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20651 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20652 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20653 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20654 $(TARGET-stage3-libcpp)
4b900473 20655
a90ef4bf
JM
20656maybe-clean-stage3-libcpp: clean-stage3-libcpp
20657clean-stage3: clean-stage3-libcpp
20658clean-stage3-libcpp:
4b900473 20659 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20660 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20661 else \
a90ef4bf 20662 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20663 $(MAKE) stage3-start; \
20664 fi; \
a90ef4bf 20665 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20666 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20667@endif libcpp-bootstrap
e28c595f
JM
20668
20669
a90ef4bf
JM
20670.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20671.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20672maybe-all-stage4-libcpp:
20673maybe-clean-stage4-libcpp:
20674@if libcpp-bootstrap
20675maybe-all-stage4-libcpp: all-stage4-libcpp
20676all-stage4: all-stage4-libcpp
20677TARGET-stage4-libcpp = $(TARGET-libcpp)
20678all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20679 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20680 @r=`${PWD_COMMAND}`; export r; \
20681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20682 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20683 $(HOST_EXPORTS) \
a90ef4bf
JM
20684 $(POSTSTAGE1_HOST_EXPORTS) \
20685 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20686 \
7f6ef0c0 20687 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20688 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20689 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20690 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20691 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20692 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20693 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20694 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20695 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20696 $(TARGET-stage4-libcpp)
4b900473 20697
a90ef4bf
JM
20698maybe-clean-stage4-libcpp: clean-stage4-libcpp
20699clean-stage4: clean-stage4-libcpp
20700clean-stage4-libcpp:
4b900473 20701 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20702 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20703 else \
a90ef4bf 20704 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20705 $(MAKE) stage4-start; \
20706 fi; \
a90ef4bf 20707 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20708 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20709@endif libcpp-bootstrap
e28c595f
JM
20710
20711
a90ef4bf
JM
20712.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20713.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20714maybe-all-stageprofile-libcpp:
20715maybe-clean-stageprofile-libcpp:
20716@if libcpp-bootstrap
20717maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20718all-stageprofile: all-stageprofile-libcpp
20719TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20720all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20721 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20722 @r=`${PWD_COMMAND}`; export r; \
20723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20724 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20725 $(HOST_EXPORTS) \
a90ef4bf
JM
20726 $(POSTSTAGE1_HOST_EXPORTS) \
20727 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20728 \
7f6ef0c0 20729 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20730 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20731 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20732 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20733 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20734 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20735 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20736 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20737 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20738 $(TARGET-stageprofile-libcpp)
4b900473 20739
a90ef4bf
JM
20740maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20741clean-stageprofile: clean-stageprofile-libcpp
20742clean-stageprofile-libcpp:
4b900473 20743 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20744 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20745 else \
a90ef4bf 20746 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20747 $(MAKE) stageprofile-start; \
20748 fi; \
a90ef4bf 20749 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20750 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20751@endif libcpp-bootstrap
e28c595f
JM
20752
20753
a90ef4bf
JM
20754.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20755.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20756maybe-all-stagefeedback-libcpp:
20757maybe-clean-stagefeedback-libcpp:
20758@if libcpp-bootstrap
20759maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20760all-stagefeedback: all-stagefeedback-libcpp
20761TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20762all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20763 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20764 @r=`${PWD_COMMAND}`; export r; \
20765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20766 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20767 $(HOST_EXPORTS) \
a90ef4bf
JM
20768 $(POSTSTAGE1_HOST_EXPORTS) \
20769 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20770 \
7f6ef0c0 20771 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20772 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20773 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20774 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20775 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20776 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20777 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20778 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20779 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20780 $(TARGET-stagefeedback-libcpp)
4b900473 20781
a90ef4bf
JM
20782maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20783clean-stagefeedback: clean-stagefeedback-libcpp
20784clean-stagefeedback-libcpp:
4b900473 20785 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20786 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20787 else \
a90ef4bf 20788 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20789 $(MAKE) stagefeedback-start; \
20790 fi; \
a90ef4bf 20791 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20792 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20793@endif libcpp-bootstrap
4b900473
PB
20794
20795
20796
20797
20798
a90ef4bf
JM
20799.PHONY: check-libcpp maybe-check-libcpp
20800maybe-check-libcpp:
20801@if libcpp
20802maybe-check-libcpp: check-libcpp
4b900473 20803
a90ef4bf 20804check-libcpp:
4b900473
PB
20805 @: $(MAKE); $(unstage)
20806 @r=`${PWD_COMMAND}`; export r; \
20807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20808 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20809 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20810 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20811
a90ef4bf 20812@endif libcpp
4b900473 20813
a90ef4bf
JM
20814.PHONY: install-libcpp maybe-install-libcpp
20815maybe-install-libcpp:
20816@if libcpp
20817maybe-install-libcpp: install-libcpp
4b900473 20818
a90ef4bf
JM
20819install-libcpp: installdirs
20820 @: $(MAKE); $(unstage)
20821 @r=`${PWD_COMMAND}`; export r; \
20822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20823 $(HOST_EXPORTS) \
20824 (cd $(HOST_SUBDIR)/libcpp && \
20825 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20826
a90ef4bf 20827@endif libcpp
4b900473 20828
a90ef4bf
JM
20829.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20830maybe-install-strip-libcpp:
20831@if libcpp
20832maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20833
a90ef4bf
JM
20834install-strip-libcpp: installdirs
20835 @: $(MAKE); $(unstage)
20836 @r=`${PWD_COMMAND}`; export r; \
20837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20838 $(HOST_EXPORTS) \
20839 (cd $(HOST_SUBDIR)/libcpp && \
20840 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20841
a90ef4bf 20842@endif libcpp
9b980aa1 20843
4b900473
PB
20844# Other targets (info, dvi, pdf, etc.)
20845
a90ef4bf
JM
20846.PHONY: maybe-info-libcpp info-libcpp
20847maybe-info-libcpp:
20848@if libcpp
20849maybe-info-libcpp: info-libcpp
4b900473 20850
a90ef4bf
JM
20851info-libcpp: \
20852 configure-libcpp
20853 @[ -f ./libcpp/Makefile ] || exit 0; \
20854 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20856 $(HOST_EXPORTS) \
a90ef4bf 20857 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20859 done; \
22121df0 20860 echo "Doing info in libcpp"; \
a90ef4bf 20861 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20864 "RANLIB=$${RANLIB}" \
0c24b341 20865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20866 info) \
20867 || exit 1
20868
a90ef4bf 20869@endif libcpp
4b900473 20870
a90ef4bf
JM
20871.PHONY: maybe-dvi-libcpp dvi-libcpp
20872maybe-dvi-libcpp:
20873@if libcpp
20874maybe-dvi-libcpp: dvi-libcpp
4b900473 20875
a90ef4bf
JM
20876dvi-libcpp: \
20877 configure-libcpp
20878 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20879 r=`${PWD_COMMAND}`; export r; \
20880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20881 $(HOST_EXPORTS) \
a90ef4bf 20882 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20884 done; \
22121df0 20885 echo "Doing dvi in libcpp"; \
a90ef4bf 20886 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20889 "RANLIB=$${RANLIB}" \
0c24b341 20890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20891 dvi) \
20892 || exit 1
20893
a90ef4bf 20894@endif libcpp
4b900473 20895
a90ef4bf
JM
20896.PHONY: maybe-pdf-libcpp pdf-libcpp
20897maybe-pdf-libcpp:
20898@if libcpp
20899maybe-pdf-libcpp: pdf-libcpp
4b900473 20900
a90ef4bf
JM
20901pdf-libcpp: \
20902 configure-libcpp
20903 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20904 r=`${PWD_COMMAND}`; export r; \
20905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20906 $(HOST_EXPORTS) \
a90ef4bf 20907 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20909 done; \
22121df0 20910 echo "Doing pdf in libcpp"; \
a90ef4bf 20911 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20914 "RANLIB=$${RANLIB}" \
0c24b341 20915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20916 pdf) \
20917 || exit 1
20918
a90ef4bf 20919@endif libcpp
4b900473 20920
a90ef4bf
JM
20921.PHONY: maybe-html-libcpp html-libcpp
20922maybe-html-libcpp:
20923@if libcpp
20924maybe-html-libcpp: html-libcpp
4b900473 20925
a90ef4bf
JM
20926html-libcpp: \
20927 configure-libcpp
20928 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20929 r=`${PWD_COMMAND}`; export r; \
20930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20931 $(HOST_EXPORTS) \
a90ef4bf 20932 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20934 done; \
22121df0 20935 echo "Doing html in libcpp"; \
a90ef4bf 20936 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20939 "RANLIB=$${RANLIB}" \
0c24b341 20940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20941 html) \
20942 || exit 1
20943
a90ef4bf 20944@endif libcpp
4b900473 20945
a90ef4bf
JM
20946.PHONY: maybe-TAGS-libcpp TAGS-libcpp
20947maybe-TAGS-libcpp:
20948@if libcpp
20949maybe-TAGS-libcpp: TAGS-libcpp
4b900473 20950
a90ef4bf
JM
20951TAGS-libcpp: \
20952 configure-libcpp
20953 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20954 r=`${PWD_COMMAND}`; export r; \
20955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20956 $(HOST_EXPORTS) \
a90ef4bf 20957 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20959 done; \
22121df0 20960 echo "Doing TAGS in libcpp"; \
a90ef4bf 20961 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20964 "RANLIB=$${RANLIB}" \
0c24b341 20965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20966 TAGS) \
20967 || exit 1
20968
a90ef4bf 20969@endif libcpp
4b900473 20970
a90ef4bf
JM
20971.PHONY: maybe-install-info-libcpp install-info-libcpp
20972maybe-install-info-libcpp:
20973@if libcpp
20974maybe-install-info-libcpp: install-info-libcpp
4b900473 20975
a90ef4bf
JM
20976install-info-libcpp: \
20977 configure-libcpp \
20978 info-libcpp
20979 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20980 r=`${PWD_COMMAND}`; export r; \
20981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20982 $(HOST_EXPORTS) \
a90ef4bf 20983 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20985 done; \
22121df0 20986 echo "Doing install-info in libcpp"; \
a90ef4bf 20987 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20990 "RANLIB=$${RANLIB}" \
0c24b341 20991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20992 install-info) \
20993 || exit 1
20994
a90ef4bf 20995@endif libcpp
4b900473 20996
a90ef4bf
JM
20997.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
20998maybe-install-pdf-libcpp:
20999@if libcpp
21000maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 21001
a90ef4bf
JM
21002install-pdf-libcpp: \
21003 configure-libcpp \
21004 pdf-libcpp
21005 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
21006 r=`${PWD_COMMAND}`; export r; \
21007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21008 $(HOST_EXPORTS) \
a90ef4bf 21009 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
21010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21011 done; \
22121df0 21012 echo "Doing install-pdf in libcpp"; \
a90ef4bf 21013 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
21014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21016 "RANLIB=$${RANLIB}" \
0c24b341 21017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
21018 install-pdf) \
21019 || exit 1
21020
a90ef4bf 21021@endif libcpp
a3ca38d2 21022
a90ef4bf
JM
21023.PHONY: maybe-install-html-libcpp install-html-libcpp
21024maybe-install-html-libcpp:
21025@if libcpp
21026maybe-install-html-libcpp: install-html-libcpp
4b900473 21027
a90ef4bf
JM
21028install-html-libcpp: \
21029 configure-libcpp \
21030 html-libcpp
21031 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21032 r=`${PWD_COMMAND}`; export r; \
21033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21034 $(HOST_EXPORTS) \
a90ef4bf 21035 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21037 done; \
22121df0 21038 echo "Doing install-html in libcpp"; \
a90ef4bf 21039 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21042 "RANLIB=$${RANLIB}" \
0c24b341 21043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21044 install-html) \
21045 || exit 1
21046
a90ef4bf 21047@endif libcpp
4b900473 21048
a90ef4bf
JM
21049.PHONY: maybe-installcheck-libcpp installcheck-libcpp
21050maybe-installcheck-libcpp:
21051@if libcpp
21052maybe-installcheck-libcpp: installcheck-libcpp
4b900473 21053
a90ef4bf
JM
21054installcheck-libcpp: \
21055 configure-libcpp
21056 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21057 r=`${PWD_COMMAND}`; export r; \
21058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21059 $(HOST_EXPORTS) \
a90ef4bf 21060 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21062 done; \
22121df0 21063 echo "Doing installcheck in libcpp"; \
a90ef4bf 21064 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21067 "RANLIB=$${RANLIB}" \
0c24b341 21068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21069 installcheck) \
21070 || exit 1
21071
a90ef4bf 21072@endif libcpp
4b900473 21073
a90ef4bf
JM
21074.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
21075maybe-mostlyclean-libcpp:
21076@if libcpp
21077maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 21078
a90ef4bf
JM
21079mostlyclean-libcpp:
21080 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21081 r=`${PWD_COMMAND}`; export r; \
21082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21083 $(HOST_EXPORTS) \
a90ef4bf 21084 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21086 done; \
22121df0 21087 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 21088 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21091 "RANLIB=$${RANLIB}" \
0c24b341 21092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21093 mostlyclean) \
21094 || exit 1
21095
a90ef4bf 21096@endif libcpp
4b900473 21097
a90ef4bf
JM
21098.PHONY: maybe-clean-libcpp clean-libcpp
21099maybe-clean-libcpp:
21100@if libcpp
21101maybe-clean-libcpp: clean-libcpp
4b900473 21102
a90ef4bf
JM
21103clean-libcpp:
21104 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21105 r=`${PWD_COMMAND}`; export r; \
21106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21107 $(HOST_EXPORTS) \
a90ef4bf 21108 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21110 done; \
22121df0 21111 echo "Doing clean in libcpp"; \
a90ef4bf 21112 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21115 "RANLIB=$${RANLIB}" \
0c24b341 21116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21117 clean) \
21118 || exit 1
21119
a90ef4bf 21120@endif libcpp
4b900473 21121
a90ef4bf
JM
21122.PHONY: maybe-distclean-libcpp distclean-libcpp
21123maybe-distclean-libcpp:
21124@if libcpp
21125maybe-distclean-libcpp: distclean-libcpp
4b900473 21126
a90ef4bf
JM
21127distclean-libcpp:
21128 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21129 r=`${PWD_COMMAND}`; export r; \
21130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21131 $(HOST_EXPORTS) \
a90ef4bf 21132 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21134 done; \
22121df0 21135 echo "Doing distclean in libcpp"; \
a90ef4bf 21136 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21139 "RANLIB=$${RANLIB}" \
0c24b341 21140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21141 distclean) \
21142 || exit 1
21143
a90ef4bf 21144@endif libcpp
4b900473 21145
a90ef4bf
JM
21146.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21147maybe-maintainer-clean-libcpp:
21148@if libcpp
21149maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21150
a90ef4bf
JM
21151maintainer-clean-libcpp:
21152 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21153 r=`${PWD_COMMAND}`; export r; \
21154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21155 $(HOST_EXPORTS) \
a90ef4bf 21156 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21158 done; \
22121df0 21159 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21160 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21163 "RANLIB=$${RANLIB}" \
0c24b341 21164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21165 maintainer-clean) \
21166 || exit 1
21167
a90ef4bf 21168@endif libcpp
4b900473
PB
21169
21170
21171
a90ef4bf
JM
21172.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21173maybe-configure-libdecnumber:
1f53ca9a 21174@if gcc-bootstrap
a90ef4bf 21175configure-libdecnumber: stage_current
1f53ca9a 21176@endif gcc-bootstrap
a90ef4bf
JM
21177@if libdecnumber
21178maybe-configure-libdecnumber: configure-libdecnumber
21179configure-libdecnumber:
1f53ca9a
AO
21180 @r=`${PWD_COMMAND}`; export r; \
21181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21182 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21183 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21184 $(HOST_EXPORTS) \
a90ef4bf
JM
21185 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21186 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21187 case $(srcdir) in \
21188 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21189 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21190 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21191 esac; \
1b6c0831
L
21192 module_srcdir=libdecnumber; \
21193 $(SHELL) \
21194 $$s/$$module_srcdir/configure \
21195 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21196 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21197 --target=${target_alias} \
1f53ca9a 21198 || exit 1
a90ef4bf 21199@endif libdecnumber
1f53ca9a
AO
21200
21201
21202
a90ef4bf
JM
21203.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21204maybe-configure-stage1-libdecnumber:
21205@if libdecnumber-bootstrap
21206maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21207configure-stage1-libdecnumber:
1f53ca9a 21208 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21209 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21210 @r=`${PWD_COMMAND}`; export r; \
21211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21212 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21213 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21214 $(HOST_EXPORTS) \
21215 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21216 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21217 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21218 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21219 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21220 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21221 case $(srcdir) in \
21222 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21223 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21224 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21225 esac; \
1b6c0831
L
21226 module_srcdir=libdecnumber; \
21227 $(SHELL) $$s/$$module_srcdir/configure \
21228 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21229 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21230 --target=${target_alias} \
21231 \
a90ef4bf
JM
21232 $(STAGE1_CONFIGURE_FLAGS)
21233@endif libdecnumber-bootstrap
1f53ca9a 21234
a90ef4bf
JM
21235.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21236maybe-configure-stage2-libdecnumber:
21237@if libdecnumber-bootstrap
21238maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21239configure-stage2-libdecnumber:
1f53ca9a 21240 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21241 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21242 @r=`${PWD_COMMAND}`; export r; \
21243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21244 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21245 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21246 $(HOST_EXPORTS) \
21247 $(POSTSTAGE1_HOST_EXPORTS) \
21248 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21249 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21250 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21251 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21253 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21254 case $(srcdir) in \
21255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21256 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21258 esac; \
1b6c0831
L
21259 module_srcdir=libdecnumber; \
21260 $(SHELL) $$s/$$module_srcdir/configure \
21261 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21262 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21263 --target=${target_alias} \
22121df0 21264 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21265 $(STAGE2_CONFIGURE_FLAGS)
21266@endif libdecnumber-bootstrap
1f53ca9a 21267
a90ef4bf
JM
21268.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21269maybe-configure-stage3-libdecnumber:
21270@if libdecnumber-bootstrap
21271maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21272configure-stage3-libdecnumber:
1f53ca9a 21273 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21274 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21275 @r=`${PWD_COMMAND}`; export r; \
21276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21277 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21278 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21279 $(HOST_EXPORTS) \
21280 $(POSTSTAGE1_HOST_EXPORTS) \
21281 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21282 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21283 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21284 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21285 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21286 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21287 case $(srcdir) in \
21288 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21289 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21290 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21291 esac; \
1b6c0831
L
21292 module_srcdir=libdecnumber; \
21293 $(SHELL) $$s/$$module_srcdir/configure \
21294 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21295 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21296 --target=${target_alias} \
22121df0 21297 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21298 $(STAGE3_CONFIGURE_FLAGS)
21299@endif libdecnumber-bootstrap
1f53ca9a 21300
a90ef4bf
JM
21301.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21302maybe-configure-stage4-libdecnumber:
21303@if libdecnumber-bootstrap
21304maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21305configure-stage4-libdecnumber:
1f53ca9a 21306 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21307 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21308 @r=`${PWD_COMMAND}`; export r; \
21309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21310 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21311 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21312 $(HOST_EXPORTS) \
21313 $(POSTSTAGE1_HOST_EXPORTS) \
21314 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21315 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21316 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21317 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21318 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21319 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21320 case $(srcdir) in \
21321 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21322 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21323 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21324 esac; \
1b6c0831
L
21325 module_srcdir=libdecnumber; \
21326 $(SHELL) $$s/$$module_srcdir/configure \
21327 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21328 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21329 --target=${target_alias} \
22121df0 21330 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21331 $(STAGE4_CONFIGURE_FLAGS)
21332@endif libdecnumber-bootstrap
1f53ca9a 21333
a90ef4bf
JM
21334.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21335maybe-configure-stageprofile-libdecnumber:
21336@if libdecnumber-bootstrap
21337maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21338configure-stageprofile-libdecnumber:
1f53ca9a 21339 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21340 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21341 @r=`${PWD_COMMAND}`; export r; \
21342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21343 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21344 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21345 $(HOST_EXPORTS) \
21346 $(POSTSTAGE1_HOST_EXPORTS) \
21347 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21348 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21349 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21350 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21351 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21352 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21353 case $(srcdir) in \
21354 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21355 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21356 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21357 esac; \
1b6c0831
L
21358 module_srcdir=libdecnumber; \
21359 $(SHELL) $$s/$$module_srcdir/configure \
21360 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21361 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21362 --target=${target_alias} \
22121df0 21363 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21364 $(STAGEprofile_CONFIGURE_FLAGS)
21365@endif libdecnumber-bootstrap
1f53ca9a 21366
a90ef4bf
JM
21367.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21368maybe-configure-stagefeedback-libdecnumber:
21369@if libdecnumber-bootstrap
21370maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21371configure-stagefeedback-libdecnumber:
1f53ca9a 21372 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21373 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21374 @r=`${PWD_COMMAND}`; export r; \
21375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21376 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21377 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21378 $(HOST_EXPORTS) \
21379 $(POSTSTAGE1_HOST_EXPORTS) \
21380 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21381 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21382 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21383 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21384 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21385 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21386 case $(srcdir) in \
21387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21388 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21390 esac; \
1b6c0831
L
21391 module_srcdir=libdecnumber; \
21392 $(SHELL) $$s/$$module_srcdir/configure \
21393 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21394 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21395 --target=${target_alias} \
22121df0 21396 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21397 $(STAGEfeedback_CONFIGURE_FLAGS)
21398@endif libdecnumber-bootstrap
1f53ca9a
AO
21399
21400
21401
21402
21403
a90ef4bf
JM
21404.PHONY: all-libdecnumber maybe-all-libdecnumber
21405maybe-all-libdecnumber:
1f53ca9a 21406@if gcc-bootstrap
a90ef4bf 21407all-libdecnumber: stage_current
1f53ca9a 21408@endif gcc-bootstrap
a90ef4bf
JM
21409@if libdecnumber
21410TARGET-libdecnumber=all
21411maybe-all-libdecnumber: all-libdecnumber
21412all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21413 @r=`${PWD_COMMAND}`; export r; \
21414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21415 $(HOST_EXPORTS) \
a90ef4bf 21416 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21417 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21418 $(TARGET-libdecnumber))
21419@endif libdecnumber
1f53ca9a
AO
21420
21421
21422
a90ef4bf
JM
21423.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21424.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21425maybe-all-stage1-libdecnumber:
21426maybe-clean-stage1-libdecnumber:
21427@if libdecnumber-bootstrap
21428maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21429all-stage1: all-stage1-libdecnumber
21430TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21431all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21432 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21433 @r=`${PWD_COMMAND}`; export r; \
21434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21435 TFLAGS="$(STAGE1_TFLAGS)"; \
21436 $(HOST_EXPORTS) \
a90ef4bf 21437 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21438 \
1f53ca9a
AO
21439 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21440 CFLAGS="$(STAGE1_CFLAGS)" \
21441 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21442 LIBCFLAGS="$(LIBCFLAGS)" \
21443 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21444 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21445 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21446 $(EXTRA_HOST_FLAGS) \
21447 $(STAGE1_FLAGS_TO_PASS) \
05a13254 21448 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21449 $(TARGET-stage1-libdecnumber)
1f53ca9a 21450
a90ef4bf
JM
21451maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21452clean-stage1: clean-stage1-libdecnumber
21453clean-stage1-libdecnumber:
1f53ca9a 21454 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21455 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21456 else \
a90ef4bf 21457 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21458 $(MAKE) stage1-start; \
21459 fi; \
a90ef4bf 21460 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21461 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21462 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21463@endif libdecnumber-bootstrap
1f53ca9a
AO
21464
21465
a90ef4bf
JM
21466.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21467.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21468maybe-all-stage2-libdecnumber:
21469maybe-clean-stage2-libdecnumber:
21470@if libdecnumber-bootstrap
21471maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21472all-stage2: all-stage2-libdecnumber
21473TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21474all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21475 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21476 @r=`${PWD_COMMAND}`; export r; \
21477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21478 TFLAGS="$(STAGE2_TFLAGS)"; \
21479 $(HOST_EXPORTS) \
21480 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21481 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21482 \
1f53ca9a
AO
21483 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21484 CFLAGS="$(STAGE2_CFLAGS)" \
21485 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21486 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21487 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21488 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21489 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21490 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21491 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21492 $(TARGET-stage2-libdecnumber)
1f53ca9a 21493
a90ef4bf
JM
21494maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21495clean-stage2: clean-stage2-libdecnumber
21496clean-stage2-libdecnumber:
1f53ca9a 21497 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21498 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21499 else \
a90ef4bf 21500 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21501 $(MAKE) stage2-start; \
21502 fi; \
a90ef4bf 21503 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21504 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21505@endif libdecnumber-bootstrap
1f53ca9a
AO
21506
21507
a90ef4bf
JM
21508.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21509.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21510maybe-all-stage3-libdecnumber:
21511maybe-clean-stage3-libdecnumber:
21512@if libdecnumber-bootstrap
21513maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21514all-stage3: all-stage3-libdecnumber
21515TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21516all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21517 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21518 @r=`${PWD_COMMAND}`; export r; \
21519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21520 TFLAGS="$(STAGE3_TFLAGS)"; \
21521 $(HOST_EXPORTS) \
21522 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21523 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21524 \
1f53ca9a
AO
21525 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21526 CFLAGS="$(STAGE3_CFLAGS)" \
21527 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21528 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21529 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21530 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21531 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21532 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21533 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21534 $(TARGET-stage3-libdecnumber)
1f53ca9a 21535
a90ef4bf
JM
21536maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21537clean-stage3: clean-stage3-libdecnumber
21538clean-stage3-libdecnumber:
1f53ca9a 21539 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21540 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21541 else \
a90ef4bf 21542 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21543 $(MAKE) stage3-start; \
21544 fi; \
a90ef4bf 21545 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21546 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21547@endif libdecnumber-bootstrap
1f53ca9a
AO
21548
21549
a90ef4bf
JM
21550.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21551.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21552maybe-all-stage4-libdecnumber:
21553maybe-clean-stage4-libdecnumber:
21554@if libdecnumber-bootstrap
21555maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21556all-stage4: all-stage4-libdecnumber
21557TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21558all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21559 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21560 @r=`${PWD_COMMAND}`; export r; \
21561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21562 TFLAGS="$(STAGE4_TFLAGS)"; \
21563 $(HOST_EXPORTS) \
21564 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21565 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21566 \
1f53ca9a
AO
21567 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21568 CFLAGS="$(STAGE4_CFLAGS)" \
21569 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21570 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21571 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21572 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21573 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21574 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21575 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21576 $(TARGET-stage4-libdecnumber)
1f53ca9a 21577
a90ef4bf
JM
21578maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21579clean-stage4: clean-stage4-libdecnumber
21580clean-stage4-libdecnumber:
1f53ca9a 21581 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21582 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21583 else \
a90ef4bf 21584 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21585 $(MAKE) stage4-start; \
21586 fi; \
a90ef4bf 21587 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21588 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21589@endif libdecnumber-bootstrap
1f53ca9a
AO
21590
21591
a90ef4bf
JM
21592.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21593.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21594maybe-all-stageprofile-libdecnumber:
21595maybe-clean-stageprofile-libdecnumber:
21596@if libdecnumber-bootstrap
21597maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21598all-stageprofile: all-stageprofile-libdecnumber
21599TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21600all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21601 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21602 @r=`${PWD_COMMAND}`; export r; \
21603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21604 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21605 $(HOST_EXPORTS) \
21606 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21607 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21608 \
1f53ca9a
AO
21609 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21610 CFLAGS="$(STAGEprofile_CFLAGS)" \
21611 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21612 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21613 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21614 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21615 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21616 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21617 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21618 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21619
a90ef4bf
JM
21620maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21621clean-stageprofile: clean-stageprofile-libdecnumber
21622clean-stageprofile-libdecnumber:
1f53ca9a 21623 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21624 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21625 else \
a90ef4bf 21626 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21627 $(MAKE) stageprofile-start; \
21628 fi; \
a90ef4bf 21629 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21630 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21631@endif libdecnumber-bootstrap
1f53ca9a
AO
21632
21633
a90ef4bf
JM
21634.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21635.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21636maybe-all-stagefeedback-libdecnumber:
21637maybe-clean-stagefeedback-libdecnumber:
21638@if libdecnumber-bootstrap
21639maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21640all-stagefeedback: all-stagefeedback-libdecnumber
21641TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21642all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21643 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21644 @r=`${PWD_COMMAND}`; export r; \
21645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21646 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21647 $(HOST_EXPORTS) \
21648 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21649 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21650 \
1f53ca9a
AO
21651 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21652 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21653 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21654 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21655 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21656 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21657 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21658 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21659 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21660 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21661
a90ef4bf
JM
21662maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21663clean-stagefeedback: clean-stagefeedback-libdecnumber
21664clean-stagefeedback-libdecnumber:
1f53ca9a 21665 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21666 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21667 else \
a90ef4bf 21668 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21669 $(MAKE) stagefeedback-start; \
21670 fi; \
a90ef4bf 21671 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21672 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21673@endif libdecnumber-bootstrap
1f53ca9a
AO
21674
21675
21676
21677
21678
a90ef4bf
JM
21679.PHONY: check-libdecnumber maybe-check-libdecnumber
21680maybe-check-libdecnumber:
21681@if libdecnumber
21682maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21683
a90ef4bf 21684check-libdecnumber:
1f53ca9a
AO
21685 @: $(MAKE); $(unstage)
21686 @r=`${PWD_COMMAND}`; export r; \
21687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21688 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21689 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21690 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21691
a90ef4bf 21692@endif libdecnumber
1f53ca9a 21693
a90ef4bf
JM
21694.PHONY: install-libdecnumber maybe-install-libdecnumber
21695maybe-install-libdecnumber:
21696@if libdecnumber
21697maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21698
a90ef4bf
JM
21699install-libdecnumber: installdirs
21700 @: $(MAKE); $(unstage)
21701 @r=`${PWD_COMMAND}`; export r; \
21702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21703 $(HOST_EXPORTS) \
21704 (cd $(HOST_SUBDIR)/libdecnumber && \
21705 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21706
a90ef4bf 21707@endif libdecnumber
1f53ca9a 21708
a90ef4bf
JM
21709.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21710maybe-install-strip-libdecnumber:
21711@if libdecnumber
21712maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21713
a90ef4bf
JM
21714install-strip-libdecnumber: installdirs
21715 @: $(MAKE); $(unstage)
21716 @r=`${PWD_COMMAND}`; export r; \
21717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21718 $(HOST_EXPORTS) \
21719 (cd $(HOST_SUBDIR)/libdecnumber && \
21720 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21721
a90ef4bf 21722@endif libdecnumber
9b980aa1 21723
1f53ca9a
AO
21724# Other targets (info, dvi, pdf, etc.)
21725
a90ef4bf
JM
21726.PHONY: maybe-info-libdecnumber info-libdecnumber
21727maybe-info-libdecnumber:
21728@if libdecnumber
21729maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21730
a90ef4bf
JM
21731info-libdecnumber: \
21732 configure-libdecnumber
21733 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21734 r=`${PWD_COMMAND}`; export r; \
21735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21736 $(HOST_EXPORTS) \
21737 for flag in $(EXTRA_HOST_FLAGS) ; do \
21738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21739 done; \
22121df0 21740 echo "Doing info in libdecnumber"; \
a90ef4bf 21741 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21744 "RANLIB=$${RANLIB}" \
21745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21746 info) \
21747 || exit 1
21748
a90ef4bf 21749@endif libdecnumber
1f53ca9a 21750
a90ef4bf
JM
21751.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21752maybe-dvi-libdecnumber:
21753@if libdecnumber
21754maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21755
a90ef4bf
JM
21756dvi-libdecnumber: \
21757 configure-libdecnumber
21758 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21759 r=`${PWD_COMMAND}`; export r; \
21760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21761 $(HOST_EXPORTS) \
21762 for flag in $(EXTRA_HOST_FLAGS) ; do \
21763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21764 done; \
22121df0 21765 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21766 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21769 "RANLIB=$${RANLIB}" \
21770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21771 dvi) \
21772 || exit 1
21773
a90ef4bf 21774@endif libdecnumber
1f53ca9a 21775
a90ef4bf
JM
21776.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21777maybe-pdf-libdecnumber:
21778@if libdecnumber
21779maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21780
a90ef4bf
JM
21781pdf-libdecnumber: \
21782 configure-libdecnumber
21783 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21784 r=`${PWD_COMMAND}`; export r; \
21785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21786 $(HOST_EXPORTS) \
21787 for flag in $(EXTRA_HOST_FLAGS) ; do \
21788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21789 done; \
22121df0 21790 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21791 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21794 "RANLIB=$${RANLIB}" \
21795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21796 pdf) \
21797 || exit 1
21798
a90ef4bf 21799@endif libdecnumber
1f53ca9a 21800
a90ef4bf
JM
21801.PHONY: maybe-html-libdecnumber html-libdecnumber
21802maybe-html-libdecnumber:
21803@if libdecnumber
21804maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21805
a90ef4bf
JM
21806html-libdecnumber: \
21807 configure-libdecnumber
21808 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21809 r=`${PWD_COMMAND}`; export r; \
21810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21811 $(HOST_EXPORTS) \
21812 for flag in $(EXTRA_HOST_FLAGS) ; do \
21813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21814 done; \
22121df0 21815 echo "Doing html in libdecnumber"; \
a90ef4bf 21816 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21819 "RANLIB=$${RANLIB}" \
21820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21821 html) \
21822 || exit 1
21823
a90ef4bf 21824@endif libdecnumber
1f53ca9a 21825
a90ef4bf
JM
21826.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21827maybe-TAGS-libdecnumber:
21828@if libdecnumber
21829maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21830
a90ef4bf
JM
21831TAGS-libdecnumber: \
21832 configure-libdecnumber
21833 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21834 r=`${PWD_COMMAND}`; export r; \
21835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21836 $(HOST_EXPORTS) \
21837 for flag in $(EXTRA_HOST_FLAGS) ; do \
21838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21839 done; \
22121df0 21840 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21841 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21844 "RANLIB=$${RANLIB}" \
21845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21846 TAGS) \
21847 || exit 1
21848
a90ef4bf 21849@endif libdecnumber
1f53ca9a 21850
a90ef4bf
JM
21851.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21852maybe-install-info-libdecnumber:
21853@if libdecnumber
21854maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21855
a90ef4bf
JM
21856install-info-libdecnumber: \
21857 configure-libdecnumber \
21858 info-libdecnumber
21859 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21860 r=`${PWD_COMMAND}`; export r; \
21861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21862 $(HOST_EXPORTS) \
21863 for flag in $(EXTRA_HOST_FLAGS) ; do \
21864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21865 done; \
22121df0 21866 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21867 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21870 "RANLIB=$${RANLIB}" \
21871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21872 install-info) \
21873 || exit 1
21874
a90ef4bf 21875@endif libdecnumber
1f53ca9a 21876
a90ef4bf
JM
21877.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21878maybe-install-pdf-libdecnumber:
21879@if libdecnumber
21880maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21881
a90ef4bf
JM
21882install-pdf-libdecnumber: \
21883 configure-libdecnumber \
21884 pdf-libdecnumber
21885 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21886 r=`${PWD_COMMAND}`; export r; \
21887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21888 $(HOST_EXPORTS) \
21889 for flag in $(EXTRA_HOST_FLAGS) ; do \
21890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21891 done; \
22121df0 21892 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21893 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21896 "RANLIB=$${RANLIB}" \
21897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21898 install-pdf) \
21899 || exit 1
21900
a90ef4bf 21901@endif libdecnumber
1f53ca9a 21902
a90ef4bf
JM
21903.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
21904maybe-install-html-libdecnumber:
21905@if libdecnumber
21906maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 21907
a90ef4bf
JM
21908install-html-libdecnumber: \
21909 configure-libdecnumber \
21910 html-libdecnumber
21911 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21912 r=`${PWD_COMMAND}`; export r; \
21913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21914 $(HOST_EXPORTS) \
21915 for flag in $(EXTRA_HOST_FLAGS) ; do \
21916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21917 done; \
22121df0 21918 echo "Doing install-html in libdecnumber"; \
a90ef4bf 21919 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21922 "RANLIB=$${RANLIB}" \
21923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21924 install-html) \
21925 || exit 1
21926
a90ef4bf 21927@endif libdecnumber
1f53ca9a 21928
a90ef4bf
JM
21929.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
21930maybe-installcheck-libdecnumber:
21931@if libdecnumber
21932maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 21933
a90ef4bf
JM
21934installcheck-libdecnumber: \
21935 configure-libdecnumber
21936 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21937 r=`${PWD_COMMAND}`; export r; \
21938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21939 $(HOST_EXPORTS) \
21940 for flag in $(EXTRA_HOST_FLAGS) ; do \
21941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21942 done; \
22121df0 21943 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 21944 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21947 "RANLIB=$${RANLIB}" \
21948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21949 installcheck) \
21950 || exit 1
21951
a90ef4bf 21952@endif libdecnumber
1f53ca9a 21953
a90ef4bf
JM
21954.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
21955maybe-mostlyclean-libdecnumber:
21956@if libdecnumber
21957maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 21958
a90ef4bf
JM
21959mostlyclean-libdecnumber:
21960 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21961 r=`${PWD_COMMAND}`; export r; \
21962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21963 $(HOST_EXPORTS) \
21964 for flag in $(EXTRA_HOST_FLAGS) ; do \
21965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21966 done; \
22121df0 21967 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 21968 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21971 "RANLIB=$${RANLIB}" \
21972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21973 mostlyclean) \
21974 || exit 1
21975
a90ef4bf 21976@endif libdecnumber
1f53ca9a 21977
a90ef4bf
JM
21978.PHONY: maybe-clean-libdecnumber clean-libdecnumber
21979maybe-clean-libdecnumber:
21980@if libdecnumber
21981maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 21982
a90ef4bf
JM
21983clean-libdecnumber:
21984 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21985 r=`${PWD_COMMAND}`; export r; \
21986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21987 $(HOST_EXPORTS) \
21988 for flag in $(EXTRA_HOST_FLAGS) ; do \
21989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21990 done; \
22121df0 21991 echo "Doing clean in libdecnumber"; \
a90ef4bf 21992 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21995 "RANLIB=$${RANLIB}" \
21996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21997 clean) \
21998 || exit 1
21999
a90ef4bf 22000@endif libdecnumber
1f53ca9a 22001
a90ef4bf
JM
22002.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
22003maybe-distclean-libdecnumber:
22004@if libdecnumber
22005maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 22006
a90ef4bf
JM
22007distclean-libdecnumber:
22008 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22009 r=`${PWD_COMMAND}`; export r; \
22010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22011 $(HOST_EXPORTS) \
22012 for flag in $(EXTRA_HOST_FLAGS) ; do \
22013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22014 done; \
22121df0 22015 echo "Doing distclean in libdecnumber"; \
a90ef4bf 22016 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22019 "RANLIB=$${RANLIB}" \
22020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22021 distclean) \
22022 || exit 1
22023
a90ef4bf 22024@endif libdecnumber
1f53ca9a 22025
a90ef4bf
JM
22026.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
22027maybe-maintainer-clean-libdecnumber:
22028@if libdecnumber
22029maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 22030
a90ef4bf
JM
22031maintainer-clean-libdecnumber:
22032 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22033 r=`${PWD_COMMAND}`; export r; \
22034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22035 $(HOST_EXPORTS) \
22036 for flag in $(EXTRA_HOST_FLAGS) ; do \
22037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22038 done; \
22121df0 22039 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 22040 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22043 "RANLIB=$${RANLIB}" \
22044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22045 maintainer-clean) \
22046 || exit 1
22047
a90ef4bf 22048@endif libdecnumber
1f53ca9a
AO
22049
22050
22051
a90ef4bf
JM
22052.PHONY: configure-libgui maybe-configure-libgui
22053maybe-configure-libgui:
4f0ef2d8 22054@if gcc-bootstrap
a90ef4bf 22055configure-libgui: stage_current
4f0ef2d8 22056@endif gcc-bootstrap
a90ef4bf
JM
22057@if libgui
22058maybe-configure-libgui: configure-libgui
22059configure-libgui:
0aed8855 22060 @: $(MAKE); $(unstage)
c52c6897 22061 @r=`${PWD_COMMAND}`; export r; \
4fa63067 22062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22063 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 22064 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 22065 $(HOST_EXPORTS) \
a90ef4bf
JM
22066 echo Configuring in $(HOST_SUBDIR)/libgui; \
22067 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 22068 case $(srcdir) in \
b00612cc 22069 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22070 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 22071 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 22072 esac; \
1b6c0831
L
22073 module_srcdir=libgui; \
22074 $(SHELL) \
22075 $$s/$$module_srcdir/configure \
22076 --srcdir=$${topdir}/$$module_srcdir \
4b900473 22077 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22078 --target=${target_alias} \
2a4cbe27 22079 || exit 1
a90ef4bf 22080@endif libgui
2a4cbe27 22081
a7254363
PB
22082
22083
d545f33b
PB
22084
22085
a90ef4bf
JM
22086.PHONY: all-libgui maybe-all-libgui
22087maybe-all-libgui:
4f0ef2d8 22088@if gcc-bootstrap
a90ef4bf 22089all-libgui: stage_current
4f0ef2d8 22090@endif gcc-bootstrap
a90ef4bf
JM
22091@if libgui
22092TARGET-libgui=all
22093maybe-all-libgui: all-libgui
22094all-libgui: configure-libgui
0aed8855 22095 @: $(MAKE); $(unstage)
4fa63067
NN
22096 @r=`${PWD_COMMAND}`; export r; \
22097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22098 $(HOST_EXPORTS) \
a90ef4bf 22099 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 22100 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22101 $(TARGET-libgui))
22102@endif libgui
2a4cbe27 22103
a7254363 22104
d545f33b
PB
22105
22106
a90ef4bf
JM
22107.PHONY: check-libgui maybe-check-libgui
22108maybe-check-libgui:
22109@if libgui
22110maybe-check-libgui: check-libgui
2a4cbe27 22111
a90ef4bf 22112check-libgui:
0aed8855 22113 @: $(MAKE); $(unstage)
4fa63067 22114 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22116 $(HOST_EXPORTS) \
a90ef4bf 22117 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22118 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22119
a90ef4bf 22120@endif libgui
2a4cbe27 22121
a90ef4bf
JM
22122.PHONY: install-libgui maybe-install-libgui
22123maybe-install-libgui:
22124@if libgui
22125maybe-install-libgui: install-libgui
2a4cbe27 22126
a90ef4bf 22127install-libgui: installdirs
0aed8855 22128 @: $(MAKE); $(unstage)
4fa63067 22129 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22131 $(HOST_EXPORTS) \
a90ef4bf 22132 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22133 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22134
a90ef4bf 22135@endif libgui
2a4cbe27 22136
a90ef4bf
JM
22137.PHONY: install-strip-libgui maybe-install-strip-libgui
22138maybe-install-strip-libgui:
22139@if libgui
22140maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22141
a90ef4bf 22142install-strip-libgui: installdirs
9b980aa1
RW
22143 @: $(MAKE); $(unstage)
22144 @r=`${PWD_COMMAND}`; export r; \
22145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22146 $(HOST_EXPORTS) \
a90ef4bf 22147 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22148 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22149
a90ef4bf 22150@endif libgui
9b980aa1 22151
56a8fe78 22152# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22153
a90ef4bf
JM
22154.PHONY: maybe-info-libgui info-libgui
22155maybe-info-libgui:
22156@if libgui
22157maybe-info-libgui: info-libgui
4fa63067 22158
a90ef4bf
JM
22159info-libgui: \
22160 configure-libgui
0aed8855 22161 @: $(MAKE); $(unstage)
a90ef4bf 22162 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22163 r=`${PWD_COMMAND}`; export r; \
22164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22165 $(HOST_EXPORTS) \
b813574b 22166 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22168 done; \
22121df0 22169 echo "Doing info in libgui"; \
a90ef4bf 22170 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22173 "RANLIB=$${RANLIB}" \
0c24b341 22174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22175 info) \
2a4cbe27
NN
22176 || exit 1
22177
a90ef4bf 22178@endif libgui
2a4cbe27 22179
a90ef4bf
JM
22180.PHONY: maybe-dvi-libgui dvi-libgui
22181maybe-dvi-libgui:
22182@if libgui
22183maybe-dvi-libgui: dvi-libgui
2a4cbe27 22184
a90ef4bf
JM
22185dvi-libgui: \
22186 configure-libgui
0aed8855 22187 @: $(MAKE); $(unstage)
a90ef4bf 22188 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22189 r=`${PWD_COMMAND}`; export r; \
22190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22191 $(HOST_EXPORTS) \
b813574b 22192 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22194 done; \
22121df0 22195 echo "Doing dvi in libgui"; \
a90ef4bf 22196 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22199 "RANLIB=$${RANLIB}" \
0c24b341 22200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22201 dvi) \
2a4cbe27
NN
22202 || exit 1
22203
a90ef4bf 22204@endif libgui
2a4cbe27 22205
a90ef4bf
JM
22206.PHONY: maybe-pdf-libgui pdf-libgui
22207maybe-pdf-libgui:
22208@if libgui
22209maybe-pdf-libgui: pdf-libgui
56a8fe78 22210
a90ef4bf
JM
22211pdf-libgui: \
22212 configure-libgui
56a8fe78 22213 @: $(MAKE); $(unstage)
a90ef4bf 22214 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22215 r=`${PWD_COMMAND}`; export r; \
22216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22217 $(HOST_EXPORTS) \
22218 for flag in $(EXTRA_HOST_FLAGS) ; do \
22219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22220 done; \
22121df0 22221 echo "Doing pdf in libgui"; \
a90ef4bf 22222 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22225 "RANLIB=$${RANLIB}" \
0c24b341 22226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22227 pdf) \
22228 || exit 1
22229
a90ef4bf 22230@endif libgui
56a8fe78 22231
a90ef4bf
JM
22232.PHONY: maybe-html-libgui html-libgui
22233maybe-html-libgui:
22234@if libgui
22235maybe-html-libgui: html-libgui
6d389afc 22236
a90ef4bf
JM
22237html-libgui: \
22238 configure-libgui
0aed8855 22239 @: $(MAKE); $(unstage)
a90ef4bf 22240 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22241 r=`${PWD_COMMAND}`; export r; \
22242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22243 $(HOST_EXPORTS) \
22244 for flag in $(EXTRA_HOST_FLAGS) ; do \
22245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22246 done; \
22121df0 22247 echo "Doing html in libgui"; \
a90ef4bf 22248 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22251 "RANLIB=$${RANLIB}" \
0c24b341 22252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22253 html) \
22254 || exit 1
22255
a90ef4bf 22256@endif libgui
6d389afc 22257
a90ef4bf
JM
22258.PHONY: maybe-TAGS-libgui TAGS-libgui
22259maybe-TAGS-libgui:
22260@if libgui
22261maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22262
a90ef4bf
JM
22263TAGS-libgui: \
22264 configure-libgui
0aed8855 22265 @: $(MAKE); $(unstage)
a90ef4bf 22266 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22267 r=`${PWD_COMMAND}`; export r; \
22268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22269 $(HOST_EXPORTS) \
b813574b 22270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22272 done; \
22121df0 22273 echo "Doing TAGS in libgui"; \
a90ef4bf 22274 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22277 "RANLIB=$${RANLIB}" \
0c24b341 22278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22279 TAGS) \
2a4cbe27
NN
22280 || exit 1
22281
a90ef4bf 22282@endif libgui
2a4cbe27 22283
a90ef4bf
JM
22284.PHONY: maybe-install-info-libgui install-info-libgui
22285maybe-install-info-libgui:
22286@if libgui
22287maybe-install-info-libgui: install-info-libgui
2a4cbe27 22288
a90ef4bf
JM
22289install-info-libgui: \
22290 configure-libgui \
22291 info-libgui
0aed8855 22292 @: $(MAKE); $(unstage)
a90ef4bf 22293 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22294 r=`${PWD_COMMAND}`; export r; \
22295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22296 $(HOST_EXPORTS) \
b813574b 22297 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22299 done; \
22121df0 22300 echo "Doing install-info in libgui"; \
a90ef4bf 22301 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22304 "RANLIB=$${RANLIB}" \
0c24b341 22305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22306 install-info) \
2a4cbe27
NN
22307 || exit 1
22308
a90ef4bf 22309@endif libgui
2a4cbe27 22310
a90ef4bf
JM
22311.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22312maybe-install-pdf-libgui:
22313@if libgui
22314maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22315
a90ef4bf
JM
22316install-pdf-libgui: \
22317 configure-libgui \
22318 pdf-libgui
a3ca38d2 22319 @: $(MAKE); $(unstage)
a90ef4bf 22320 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22321 r=`${PWD_COMMAND}`; export r; \
22322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22323 $(HOST_EXPORTS) \
22324 for flag in $(EXTRA_HOST_FLAGS) ; do \
22325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22326 done; \
22121df0 22327 echo "Doing install-pdf in libgui"; \
a90ef4bf 22328 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22331 "RANLIB=$${RANLIB}" \
0c24b341 22332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22333 install-pdf) \
22334 || exit 1
22335
a90ef4bf 22336@endif libgui
a3ca38d2 22337
a90ef4bf
JM
22338.PHONY: maybe-install-html-libgui install-html-libgui
22339maybe-install-html-libgui:
22340@if libgui
22341maybe-install-html-libgui: install-html-libgui
108a6f8e 22342
a90ef4bf
JM
22343install-html-libgui: \
22344 configure-libgui \
22345 html-libgui
108a6f8e 22346 @: $(MAKE); $(unstage)
a90ef4bf 22347 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22348 r=`${PWD_COMMAND}`; export r; \
22349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22350 $(HOST_EXPORTS) \
22351 for flag in $(EXTRA_HOST_FLAGS) ; do \
22352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22353 done; \
22121df0 22354 echo "Doing install-html in libgui"; \
a90ef4bf 22355 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22358 "RANLIB=$${RANLIB}" \
0c24b341 22359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22360 install-html) \
22361 || exit 1
22362
a90ef4bf 22363@endif libgui
108a6f8e 22364
a90ef4bf
JM
22365.PHONY: maybe-installcheck-libgui installcheck-libgui
22366maybe-installcheck-libgui:
22367@if libgui
22368maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22369
a90ef4bf
JM
22370installcheck-libgui: \
22371 configure-libgui
0aed8855 22372 @: $(MAKE); $(unstage)
a90ef4bf 22373 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22374 r=`${PWD_COMMAND}`; export r; \
22375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22376 $(HOST_EXPORTS) \
b813574b 22377 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22379 done; \
22121df0 22380 echo "Doing installcheck in libgui"; \
a90ef4bf 22381 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22384 "RANLIB=$${RANLIB}" \
0c24b341 22385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22386 installcheck) \
2a4cbe27
NN
22387 || exit 1
22388
a90ef4bf 22389@endif libgui
2a4cbe27 22390
a90ef4bf
JM
22391.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22392maybe-mostlyclean-libgui:
22393@if libgui
22394maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22395
a90ef4bf 22396mostlyclean-libgui:
0aed8855 22397 @: $(MAKE); $(unstage)
a90ef4bf 22398 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22399 r=`${PWD_COMMAND}`; export r; \
22400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22401 $(HOST_EXPORTS) \
b813574b 22402 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22404 done; \
22121df0 22405 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22406 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22409 "RANLIB=$${RANLIB}" \
0c24b341 22410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22411 mostlyclean) \
2a4cbe27
NN
22412 || exit 1
22413
a90ef4bf 22414@endif libgui
2a4cbe27 22415
a90ef4bf
JM
22416.PHONY: maybe-clean-libgui clean-libgui
22417maybe-clean-libgui:
22418@if libgui
22419maybe-clean-libgui: clean-libgui
2a4cbe27 22420
a90ef4bf 22421clean-libgui:
0aed8855 22422 @: $(MAKE); $(unstage)
a90ef4bf 22423 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22424 r=`${PWD_COMMAND}`; export r; \
22425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22426 $(HOST_EXPORTS) \
b813574b 22427 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22429 done; \
22121df0 22430 echo "Doing clean in libgui"; \
a90ef4bf 22431 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22434 "RANLIB=$${RANLIB}" \
0c24b341 22435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22436 clean) \
2a4cbe27
NN
22437 || exit 1
22438
a90ef4bf 22439@endif libgui
2a4cbe27 22440
a90ef4bf
JM
22441.PHONY: maybe-distclean-libgui distclean-libgui
22442maybe-distclean-libgui:
22443@if libgui
22444maybe-distclean-libgui: distclean-libgui
2a4cbe27 22445
a90ef4bf 22446distclean-libgui:
0aed8855 22447 @: $(MAKE); $(unstage)
a90ef4bf 22448 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22449 r=`${PWD_COMMAND}`; export r; \
22450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22451 $(HOST_EXPORTS) \
b813574b 22452 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22454 done; \
22121df0 22455 echo "Doing distclean in libgui"; \
a90ef4bf 22456 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22459 "RANLIB=$${RANLIB}" \
0c24b341 22460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22461 distclean) \
2a4cbe27
NN
22462 || exit 1
22463
a90ef4bf 22464@endif libgui
2a4cbe27 22465
a90ef4bf
JM
22466.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22467maybe-maintainer-clean-libgui:
22468@if libgui
22469maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22470
a90ef4bf 22471maintainer-clean-libgui:
0aed8855 22472 @: $(MAKE); $(unstage)
a90ef4bf 22473 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22474 r=`${PWD_COMMAND}`; export r; \
22475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22476 $(HOST_EXPORTS) \
b813574b 22477 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22479 done; \
22121df0 22480 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22481 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22484 "RANLIB=$${RANLIB}" \
0c24b341 22485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22486 maintainer-clean) \
2a4cbe27
NN
22487 || exit 1
22488
a90ef4bf 22489@endif libgui
2a4cbe27 22490
2a4cbe27 22491
a7254363 22492
a90ef4bf
JM
22493.PHONY: configure-libiberty maybe-configure-libiberty
22494maybe-configure-libiberty:
93f9b408 22495@if gcc-bootstrap
a90ef4bf 22496configure-libiberty: stage_current
93f9b408 22497@endif gcc-bootstrap
a90ef4bf
JM
22498@if libiberty
22499maybe-configure-libiberty: configure-libiberty
22500configure-libiberty:
93f9b408
ILT
22501 @r=`${PWD_COMMAND}`; export r; \
22502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22503 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22504 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22505 $(HOST_EXPORTS) \
a90ef4bf
JM
22506 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22507 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22508 case $(srcdir) in \
22509 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22510 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22511 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22512 esac; \
1b6c0831
L
22513 module_srcdir=libiberty; \
22514 $(SHELL) \
22515 $$s/$$module_srcdir/configure \
22516 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22517 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22518 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22519 || exit 1
a90ef4bf 22520@endif libiberty
93f9b408
ILT
22521
22522
22523
a90ef4bf
JM
22524.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22525maybe-configure-stage1-libiberty:
22526@if libiberty-bootstrap
22527maybe-configure-stage1-libiberty: configure-stage1-libiberty
22528configure-stage1-libiberty:
93f9b408 22529 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22530 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22531 @r=`${PWD_COMMAND}`; export r; \
22532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22533 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22534 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22535 $(HOST_EXPORTS) \
93f9b408 22536 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22537 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22538 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22539 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22540 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22541 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22542 case $(srcdir) in \
22543 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22544 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22545 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22546 esac; \
1b6c0831
L
22547 module_srcdir=libiberty; \
22548 $(SHELL) $$s/$$module_srcdir/configure \
22549 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22550 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22551 --target=${target_alias} \
22552 \
a90ef4bf
JM
22553 $(STAGE1_CONFIGURE_FLAGS) \
22554 @extra_host_libiberty_configure_flags@
22555@endif libiberty-bootstrap
93f9b408 22556
a90ef4bf
JM
22557.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22558maybe-configure-stage2-libiberty:
22559@if libiberty-bootstrap
22560maybe-configure-stage2-libiberty: configure-stage2-libiberty
22561configure-stage2-libiberty:
93f9b408 22562 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22563 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22564 @r=`${PWD_COMMAND}`; export r; \
22565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22566 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22567 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22568 $(HOST_EXPORTS) \
1b05fbbd 22569 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22570 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22571 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22572 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22573 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22574 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22575 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22576 case $(srcdir) in \
22577 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22578 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22579 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22580 esac; \
1b6c0831
L
22581 module_srcdir=libiberty; \
22582 $(SHELL) $$s/$$module_srcdir/configure \
22583 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22584 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22585 --target=${target_alias} \
22121df0 22586 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22587 $(STAGE2_CONFIGURE_FLAGS) \
22588 @extra_host_libiberty_configure_flags@
22589@endif libiberty-bootstrap
93f9b408 22590
a90ef4bf
JM
22591.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22592maybe-configure-stage3-libiberty:
22593@if libiberty-bootstrap
22594maybe-configure-stage3-libiberty: configure-stage3-libiberty
22595configure-stage3-libiberty:
93f9b408 22596 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22597 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22598 @r=`${PWD_COMMAND}`; export r; \
22599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22600 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22601 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22602 $(HOST_EXPORTS) \
1b05fbbd 22603 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22604 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22605 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22606 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22607 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22608 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22609 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22610 case $(srcdir) in \
22611 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22612 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22613 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22614 esac; \
1b6c0831
L
22615 module_srcdir=libiberty; \
22616 $(SHELL) $$s/$$module_srcdir/configure \
22617 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22618 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22619 --target=${target_alias} \
22121df0 22620 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22621 $(STAGE3_CONFIGURE_FLAGS) \
22622 @extra_host_libiberty_configure_flags@
22623@endif libiberty-bootstrap
93f9b408 22624
a90ef4bf
JM
22625.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22626maybe-configure-stage4-libiberty:
22627@if libiberty-bootstrap
22628maybe-configure-stage4-libiberty: configure-stage4-libiberty
22629configure-stage4-libiberty:
93f9b408 22630 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22631 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22632 @r=`${PWD_COMMAND}`; export r; \
22633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22634 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22635 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22636 $(HOST_EXPORTS) \
1b05fbbd 22637 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22638 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22639 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22640 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22641 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22642 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22643 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22644 case $(srcdir) in \
22645 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22646 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22647 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22648 esac; \
1b6c0831
L
22649 module_srcdir=libiberty; \
22650 $(SHELL) $$s/$$module_srcdir/configure \
22651 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22652 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22653 --target=${target_alias} \
22121df0 22654 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22655 $(STAGE4_CONFIGURE_FLAGS) \
22656 @extra_host_libiberty_configure_flags@
22657@endif libiberty-bootstrap
93f9b408 22658
a90ef4bf
JM
22659.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22660maybe-configure-stageprofile-libiberty:
22661@if libiberty-bootstrap
22662maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22663configure-stageprofile-libiberty:
93f9b408 22664 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22665 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22666 @r=`${PWD_COMMAND}`; export r; \
22667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22668 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22669 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22670 $(HOST_EXPORTS) \
1b05fbbd
AO
22671 $(POSTSTAGE1_HOST_EXPORTS) \
22672 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22673 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22674 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22675 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22676 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22677 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22678 case $(srcdir) in \
22679 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22680 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22681 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22682 esac; \
1b6c0831
L
22683 module_srcdir=libiberty; \
22684 $(SHELL) $$s/$$module_srcdir/configure \
22685 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22686 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22687 --target=${target_alias} \
22121df0 22688 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22689 $(STAGEprofile_CONFIGURE_FLAGS) \
22690 @extra_host_libiberty_configure_flags@
22691@endif libiberty-bootstrap
93f9b408 22692
a90ef4bf
JM
22693.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22694maybe-configure-stagefeedback-libiberty:
22695@if libiberty-bootstrap
22696maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22697configure-stagefeedback-libiberty:
93f9b408 22698 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22699 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22700 @r=`${PWD_COMMAND}`; export r; \
22701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22702 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22703 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22704 $(HOST_EXPORTS) \
1b05fbbd
AO
22705 $(POSTSTAGE1_HOST_EXPORTS) \
22706 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22707 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22708 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22709 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22710 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22711 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22712 case $(srcdir) in \
22713 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22714 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22715 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22716 esac; \
1b6c0831
L
22717 module_srcdir=libiberty; \
22718 $(SHELL) $$s/$$module_srcdir/configure \
22719 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22720 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22721 --target=${target_alias} \
22121df0 22722 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22723 $(STAGEfeedback_CONFIGURE_FLAGS) \
22724 @extra_host_libiberty_configure_flags@
22725@endif libiberty-bootstrap
93f9b408
ILT
22726
22727
22728
22729
22730
a90ef4bf
JM
22731.PHONY: all-libiberty maybe-all-libiberty
22732maybe-all-libiberty:
93f9b408 22733@if gcc-bootstrap
a90ef4bf 22734all-libiberty: stage_current
93f9b408 22735@endif gcc-bootstrap
a90ef4bf
JM
22736@if libiberty
22737TARGET-libiberty=all
22738maybe-all-libiberty: all-libiberty
22739all-libiberty: configure-libiberty
93f9b408
ILT
22740 @r=`${PWD_COMMAND}`; export r; \
22741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22742 $(HOST_EXPORTS) \
a90ef4bf 22743 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22744 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22745 $(TARGET-libiberty))
22746@endif libiberty
93f9b408
ILT
22747
22748
22749
a90ef4bf
JM
22750.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22751.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22752maybe-all-stage1-libiberty:
22753maybe-clean-stage1-libiberty:
22754@if libiberty-bootstrap
22755maybe-all-stage1-libiberty: all-stage1-libiberty
22756all-stage1: all-stage1-libiberty
22757TARGET-stage1-libiberty = $(TARGET-libiberty)
22758all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22759 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22760 @r=`${PWD_COMMAND}`; export r; \
22761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22762 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22763 $(HOST_EXPORTS) \
a90ef4bf 22764 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22765 \
93f9b408 22766 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22767 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22768 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22769 LIBCFLAGS="$(LIBCFLAGS)" \
22770 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22771 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22772 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22773 $(EXTRA_HOST_FLAGS) \
22774 $(STAGE1_FLAGS_TO_PASS) \
05a13254 22775 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22776 $(TARGET-stage1-libiberty)
93f9b408 22777
a90ef4bf
JM
22778maybe-clean-stage1-libiberty: clean-stage1-libiberty
22779clean-stage1: clean-stage1-libiberty
22780clean-stage1-libiberty:
93f9b408 22781 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22782 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22783 else \
a90ef4bf 22784 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22785 $(MAKE) stage1-start; \
22786 fi; \
a90ef4bf 22787 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22788 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22789 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22790@endif libiberty-bootstrap
93f9b408
ILT
22791
22792
a90ef4bf
JM
22793.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22794.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22795maybe-all-stage2-libiberty:
22796maybe-clean-stage2-libiberty:
22797@if libiberty-bootstrap
22798maybe-all-stage2-libiberty: all-stage2-libiberty
22799all-stage2: all-stage2-libiberty
22800TARGET-stage2-libiberty = $(TARGET-libiberty)
22801all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22802 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22803 @r=`${PWD_COMMAND}`; export r; \
22804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22805 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22806 $(HOST_EXPORTS) \
1f53ca9a 22807 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22808 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22809 \
93f9b408 22810 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22811 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22812 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22813 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22814 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22815 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22816 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22817 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22818 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22819 $(TARGET-stage2-libiberty)
93f9b408 22820
a90ef4bf
JM
22821maybe-clean-stage2-libiberty: clean-stage2-libiberty
22822clean-stage2: clean-stage2-libiberty
22823clean-stage2-libiberty:
93f9b408 22824 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22825 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22826 else \
a90ef4bf 22827 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22828 $(MAKE) stage2-start; \
22829 fi; \
a90ef4bf 22830 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22831 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22832@endif libiberty-bootstrap
93f9b408
ILT
22833
22834
a90ef4bf
JM
22835.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22836.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22837maybe-all-stage3-libiberty:
22838maybe-clean-stage3-libiberty:
22839@if libiberty-bootstrap
22840maybe-all-stage3-libiberty: all-stage3-libiberty
22841all-stage3: all-stage3-libiberty
22842TARGET-stage3-libiberty = $(TARGET-libiberty)
22843all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22844 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22845 @r=`${PWD_COMMAND}`; export r; \
22846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22847 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22848 $(HOST_EXPORTS) \
1f53ca9a 22849 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22850 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22851 \
93f9b408 22852 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22853 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22854 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22855 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22856 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22857 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22858 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22859 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22860 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22861 $(TARGET-stage3-libiberty)
93f9b408 22862
a90ef4bf
JM
22863maybe-clean-stage3-libiberty: clean-stage3-libiberty
22864clean-stage3: clean-stage3-libiberty
22865clean-stage3-libiberty:
93f9b408 22866 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22867 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22868 else \
a90ef4bf 22869 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22870 $(MAKE) stage3-start; \
22871 fi; \
a90ef4bf 22872 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22873 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22874@endif libiberty-bootstrap
93f9b408
ILT
22875
22876
a90ef4bf
JM
22877.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22878.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22879maybe-all-stage4-libiberty:
22880maybe-clean-stage4-libiberty:
22881@if libiberty-bootstrap
22882maybe-all-stage4-libiberty: all-stage4-libiberty
22883all-stage4: all-stage4-libiberty
22884TARGET-stage4-libiberty = $(TARGET-libiberty)
22885all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22886 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22887 @r=`${PWD_COMMAND}`; export r; \
22888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22889 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22890 $(HOST_EXPORTS) \
1f53ca9a 22891 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22892 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22893 \
93f9b408 22894 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22895 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22896 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22897 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22898 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22899 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22900 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22901 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22902 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 22903 $(TARGET-stage4-libiberty)
93f9b408 22904
a90ef4bf
JM
22905maybe-clean-stage4-libiberty: clean-stage4-libiberty
22906clean-stage4: clean-stage4-libiberty
22907clean-stage4-libiberty:
93f9b408 22908 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 22909 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22910 else \
a90ef4bf 22911 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22912 $(MAKE) stage4-start; \
22913 fi; \
a90ef4bf 22914 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22915 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22916@endif libiberty-bootstrap
93f9b408
ILT
22917
22918
a90ef4bf
JM
22919.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
22920.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
22921maybe-all-stageprofile-libiberty:
22922maybe-clean-stageprofile-libiberty:
22923@if libiberty-bootstrap
22924maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
22925all-stageprofile: all-stageprofile-libiberty
22926TARGET-stageprofile-libiberty = $(TARGET-libiberty)
22927all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
22928 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
22929 @r=`${PWD_COMMAND}`; export r; \
22930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22931 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 22932 $(HOST_EXPORTS) \
1f53ca9a 22933 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22934 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22935 \
93f9b408 22936 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22937 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 22938 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
22939 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
22940 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22941 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22942 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22943 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22944 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 22945 $(TARGET-stageprofile-libiberty)
93f9b408 22946
a90ef4bf
JM
22947maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
22948clean-stageprofile: clean-stageprofile-libiberty
22949clean-stageprofile-libiberty:
93f9b408 22950 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 22951 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22952 else \
a90ef4bf 22953 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22954 $(MAKE) stageprofile-start; \
22955 fi; \
a90ef4bf 22956 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22957 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22958@endif libiberty-bootstrap
93f9b408
ILT
22959
22960
a90ef4bf
JM
22961.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
22962.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
22963maybe-all-stagefeedback-libiberty:
22964maybe-clean-stagefeedback-libiberty:
22965@if libiberty-bootstrap
22966maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
22967all-stagefeedback: all-stagefeedback-libiberty
22968TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
22969all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
22970 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
22971 @r=`${PWD_COMMAND}`; export r; \
22972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22973 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 22974 $(HOST_EXPORTS) \
1f53ca9a 22975 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22976 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22977 \
93f9b408 22978 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22979 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 22980 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
22981 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
22982 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22983 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22984 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22985 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22986 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 22987 $(TARGET-stagefeedback-libiberty)
93f9b408 22988
a90ef4bf
JM
22989maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
22990clean-stagefeedback: clean-stagefeedback-libiberty
22991clean-stagefeedback-libiberty:
93f9b408 22992 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 22993 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22994 else \
a90ef4bf 22995 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22996 $(MAKE) stagefeedback-start; \
22997 fi; \
a90ef4bf 22998 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22999 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 23000@endif libiberty-bootstrap
93f9b408
ILT
23001
23002
23003
23004
23005
a90ef4bf
JM
23006.PHONY: check-libiberty maybe-check-libiberty
23007maybe-check-libiberty:
23008@if libiberty
23009maybe-check-libiberty: check-libiberty
93f9b408 23010
a90ef4bf 23011check-libiberty:
93f9b408
ILT
23012 @: $(MAKE); $(unstage)
23013 @r=`${PWD_COMMAND}`; export r; \
23014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23015 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 23016 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 23017 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 23018
a90ef4bf 23019@endif libiberty
93f9b408 23020
a90ef4bf
JM
23021.PHONY: install-libiberty maybe-install-libiberty
23022maybe-install-libiberty:
23023@if libiberty
23024maybe-install-libiberty: install-libiberty
93f9b408 23025
a90ef4bf 23026install-libiberty: installdirs
93f9b408
ILT
23027 @: $(MAKE); $(unstage)
23028 @r=`${PWD_COMMAND}`; export r; \
23029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23030 $(HOST_EXPORTS) \
a90ef4bf 23031 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23032 $(MAKE) $(FLAGS_TO_PASS) install)
23033
a90ef4bf 23034@endif libiberty
93f9b408 23035
a90ef4bf
JM
23036.PHONY: install-strip-libiberty maybe-install-strip-libiberty
23037maybe-install-strip-libiberty:
23038@if libiberty
23039maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 23040
a90ef4bf 23041install-strip-libiberty: installdirs
9b980aa1
RW
23042 @: $(MAKE); $(unstage)
23043 @r=`${PWD_COMMAND}`; export r; \
23044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23045 $(HOST_EXPORTS) \
a90ef4bf 23046 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
23047 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23048
a90ef4bf 23049@endif libiberty
9b980aa1 23050
93f9b408
ILT
23051# Other targets (info, dvi, pdf, etc.)
23052
a90ef4bf
JM
23053.PHONY: maybe-info-libiberty info-libiberty
23054maybe-info-libiberty:
23055@if libiberty
23056maybe-info-libiberty: info-libiberty
93f9b408 23057
a90ef4bf
JM
23058info-libiberty: \
23059 configure-libiberty
23060 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23061 r=`${PWD_COMMAND}`; export r; \
23062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23063 $(HOST_EXPORTS) \
23064 for flag in $(EXTRA_HOST_FLAGS) ; do \
23065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23066 done; \
22121df0 23067 echo "Doing info in libiberty"; \
a90ef4bf 23068 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23071 "RANLIB=$${RANLIB}" \
23072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23073 info) \
23074 || exit 1
23075
a90ef4bf 23076@endif libiberty
93f9b408 23077
a90ef4bf
JM
23078.PHONY: maybe-dvi-libiberty dvi-libiberty
23079maybe-dvi-libiberty:
23080@if libiberty
23081maybe-dvi-libiberty: dvi-libiberty
93f9b408 23082
a90ef4bf
JM
23083dvi-libiberty: \
23084 configure-libiberty
23085 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23086 r=`${PWD_COMMAND}`; export r; \
23087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23088 $(HOST_EXPORTS) \
23089 for flag in $(EXTRA_HOST_FLAGS) ; do \
23090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23091 done; \
22121df0 23092 echo "Doing dvi in libiberty"; \
a90ef4bf 23093 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23096 "RANLIB=$${RANLIB}" \
23097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23098 dvi) \
23099 || exit 1
23100
a90ef4bf 23101@endif libiberty
93f9b408 23102
a90ef4bf
JM
23103.PHONY: maybe-pdf-libiberty pdf-libiberty
23104maybe-pdf-libiberty:
23105@if libiberty
23106maybe-pdf-libiberty: pdf-libiberty
93f9b408 23107
a90ef4bf
JM
23108pdf-libiberty: \
23109 configure-libiberty
23110 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23111 r=`${PWD_COMMAND}`; export r; \
23112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23113 $(HOST_EXPORTS) \
23114 for flag in $(EXTRA_HOST_FLAGS) ; do \
23115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23116 done; \
22121df0 23117 echo "Doing pdf in libiberty"; \
a90ef4bf 23118 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23121 "RANLIB=$${RANLIB}" \
23122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23123 pdf) \
23124 || exit 1
23125
a90ef4bf 23126@endif libiberty
93f9b408 23127
a90ef4bf
JM
23128.PHONY: maybe-html-libiberty html-libiberty
23129maybe-html-libiberty:
23130@if libiberty
23131maybe-html-libiberty: html-libiberty
93f9b408 23132
a90ef4bf
JM
23133html-libiberty: \
23134 configure-libiberty
23135 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23136 r=`${PWD_COMMAND}`; export r; \
23137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23138 $(HOST_EXPORTS) \
23139 for flag in $(EXTRA_HOST_FLAGS) ; do \
23140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23141 done; \
22121df0 23142 echo "Doing html in libiberty"; \
a90ef4bf 23143 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23146 "RANLIB=$${RANLIB}" \
23147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23148 html) \
23149 || exit 1
23150
a90ef4bf 23151@endif libiberty
93f9b408 23152
a90ef4bf
JM
23153.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23154maybe-TAGS-libiberty:
23155@if libiberty
23156maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23157
a90ef4bf
JM
23158TAGS-libiberty: \
23159 configure-libiberty
23160 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23161 r=`${PWD_COMMAND}`; export r; \
23162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23163 $(HOST_EXPORTS) \
23164 for flag in $(EXTRA_HOST_FLAGS) ; do \
23165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23166 done; \
22121df0 23167 echo "Doing TAGS in libiberty"; \
a90ef4bf 23168 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23171 "RANLIB=$${RANLIB}" \
23172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23173 TAGS) \
23174 || exit 1
23175
a90ef4bf 23176@endif libiberty
93f9b408 23177
a90ef4bf
JM
23178.PHONY: maybe-install-info-libiberty install-info-libiberty
23179maybe-install-info-libiberty:
23180@if libiberty
23181maybe-install-info-libiberty: install-info-libiberty
93f9b408 23182
a90ef4bf
JM
23183install-info-libiberty: \
23184 configure-libiberty \
23185 info-libiberty
23186 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23187 r=`${PWD_COMMAND}`; export r; \
23188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23189 $(HOST_EXPORTS) \
23190 for flag in $(EXTRA_HOST_FLAGS) ; do \
23191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23192 done; \
22121df0 23193 echo "Doing install-info in libiberty"; \
a90ef4bf 23194 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23197 "RANLIB=$${RANLIB}" \
23198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23199 install-info) \
23200 || exit 1
23201
a90ef4bf 23202@endif libiberty
93f9b408 23203
a90ef4bf
JM
23204.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23205maybe-install-pdf-libiberty:
23206@if libiberty
23207maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23208
a90ef4bf
JM
23209install-pdf-libiberty: \
23210 configure-libiberty \
23211 pdf-libiberty
23212 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23213 r=`${PWD_COMMAND}`; export r; \
23214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23215 $(HOST_EXPORTS) \
23216 for flag in $(EXTRA_HOST_FLAGS) ; do \
23217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23218 done; \
22121df0 23219 echo "Doing install-pdf in libiberty"; \
a90ef4bf 23220 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23223 "RANLIB=$${RANLIB}" \
23224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23225 install-pdf) \
23226 || exit 1
23227
a90ef4bf 23228@endif libiberty
93f9b408 23229
a90ef4bf
JM
23230.PHONY: maybe-install-html-libiberty install-html-libiberty
23231maybe-install-html-libiberty:
23232@if libiberty
23233maybe-install-html-libiberty: install-html-libiberty
93f9b408 23234
a90ef4bf
JM
23235install-html-libiberty: \
23236 configure-libiberty \
23237 html-libiberty
23238 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23239 r=`${PWD_COMMAND}`; export r; \
23240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23241 $(HOST_EXPORTS) \
23242 for flag in $(EXTRA_HOST_FLAGS) ; do \
23243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23244 done; \
22121df0 23245 echo "Doing install-html in libiberty"; \
a90ef4bf 23246 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23249 "RANLIB=$${RANLIB}" \
23250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23251 install-html) \
23252 || exit 1
23253
a90ef4bf 23254@endif libiberty
93f9b408 23255
a90ef4bf
JM
23256.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23257maybe-installcheck-libiberty:
23258@if libiberty
23259maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23260
a90ef4bf
JM
23261installcheck-libiberty: \
23262 configure-libiberty
23263 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23264 r=`${PWD_COMMAND}`; export r; \
23265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23266 $(HOST_EXPORTS) \
23267 for flag in $(EXTRA_HOST_FLAGS) ; do \
23268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23269 done; \
22121df0 23270 echo "Doing installcheck in libiberty"; \
a90ef4bf 23271 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23274 "RANLIB=$${RANLIB}" \
23275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23276 installcheck) \
23277 || exit 1
23278
a90ef4bf 23279@endif libiberty
93f9b408 23280
a90ef4bf
JM
23281.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23282maybe-mostlyclean-libiberty:
23283@if libiberty
23284maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23285
a90ef4bf
JM
23286mostlyclean-libiberty:
23287 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23288 r=`${PWD_COMMAND}`; export r; \
23289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23290 $(HOST_EXPORTS) \
23291 for flag in $(EXTRA_HOST_FLAGS) ; do \
23292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23293 done; \
22121df0 23294 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23295 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23298 "RANLIB=$${RANLIB}" \
23299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23300 mostlyclean) \
23301 || exit 1
23302
a90ef4bf 23303@endif libiberty
93f9b408 23304
a90ef4bf
JM
23305.PHONY: maybe-clean-libiberty clean-libiberty
23306maybe-clean-libiberty:
23307@if libiberty
23308maybe-clean-libiberty: clean-libiberty
93f9b408 23309
a90ef4bf
JM
23310clean-libiberty:
23311 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23312 r=`${PWD_COMMAND}`; export r; \
23313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23314 $(HOST_EXPORTS) \
23315 for flag in $(EXTRA_HOST_FLAGS) ; do \
23316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23317 done; \
22121df0 23318 echo "Doing clean in libiberty"; \
a90ef4bf 23319 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23322 "RANLIB=$${RANLIB}" \
23323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23324 clean) \
23325 || exit 1
23326
a90ef4bf 23327@endif libiberty
93f9b408 23328
a90ef4bf
JM
23329.PHONY: maybe-distclean-libiberty distclean-libiberty
23330maybe-distclean-libiberty:
23331@if libiberty
23332maybe-distclean-libiberty: distclean-libiberty
93f9b408 23333
a90ef4bf
JM
23334distclean-libiberty:
23335 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23336 r=`${PWD_COMMAND}`; export r; \
23337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23338 $(HOST_EXPORTS) \
23339 for flag in $(EXTRA_HOST_FLAGS) ; do \
23340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23341 done; \
22121df0 23342 echo "Doing distclean in libiberty"; \
a90ef4bf 23343 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23346 "RANLIB=$${RANLIB}" \
23347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23348 distclean) \
23349 || exit 1
23350
a90ef4bf 23351@endif libiberty
93f9b408 23352
a90ef4bf
JM
23353.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23354maybe-maintainer-clean-libiberty:
23355@if libiberty
23356maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23357
a90ef4bf
JM
23358maintainer-clean-libiberty:
23359 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23360 r=`${PWD_COMMAND}`; export r; \
23361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23362 $(HOST_EXPORTS) \
23363 for flag in $(EXTRA_HOST_FLAGS) ; do \
23364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23365 done; \
22121df0 23366 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23367 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23370 "RANLIB=$${RANLIB}" \
23371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23372 maintainer-clean) \
23373 || exit 1
23374
a90ef4bf 23375@endif libiberty
93f9b408
ILT
23376
23377
23378
1b6c0831
L
23379.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23380maybe-configure-libiberty-linker-plugin:
23381@if gcc-bootstrap
23382configure-libiberty-linker-plugin: stage_current
23383@endif gcc-bootstrap
23384@if libiberty-linker-plugin
23385maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23386configure-libiberty-linker-plugin:
23387 @r=`${PWD_COMMAND}`; export r; \
23388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23389 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23390 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23391 $(HOST_EXPORTS) \
23392 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23393 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23394 case $(srcdir) in \
23395 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23396 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23397 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23398 esac; \
23399 module_srcdir=libiberty; \
23400 $(SHELL) \
23401 $$s/$$module_srcdir/configure \
23402 --srcdir=$${topdir}/$$module_srcdir \
23403 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23404 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23405 || exit 1
23406@endif libiberty-linker-plugin
23407
23408
23409
23410.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23411maybe-configure-stage1-libiberty-linker-plugin:
23412@if libiberty-linker-plugin-bootstrap
23413maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23414configure-stage1-libiberty-linker-plugin:
23415 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23416 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23417 @r=`${PWD_COMMAND}`; export r; \
23418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23419 TFLAGS="$(STAGE1_TFLAGS)"; \
23420 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23421 $(HOST_EXPORTS) \
23422 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23423 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23424 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23425 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23426 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23427 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23428 case $(srcdir) in \
23429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23430 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23432 esac; \
23433 module_srcdir=libiberty; \
23434 $(SHELL) $$s/$$module_srcdir/configure \
23435 --srcdir=$${topdir}/$$module_srcdir \
23436 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23437 --target=${target_alias} \
23438 \
23439 $(STAGE1_CONFIGURE_FLAGS) \
23440 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23441@endif libiberty-linker-plugin-bootstrap
23442
23443.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23444maybe-configure-stage2-libiberty-linker-plugin:
23445@if libiberty-linker-plugin-bootstrap
23446maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23447configure-stage2-libiberty-linker-plugin:
23448 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23449 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23450 @r=`${PWD_COMMAND}`; export r; \
23451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23452 TFLAGS="$(STAGE2_TFLAGS)"; \
23453 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23454 $(HOST_EXPORTS) \
23455 $(POSTSTAGE1_HOST_EXPORTS) \
23456 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23457 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23458 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23459 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23460 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23461 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23462 case $(srcdir) in \
23463 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23464 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23465 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23466 esac; \
23467 module_srcdir=libiberty; \
23468 $(SHELL) $$s/$$module_srcdir/configure \
23469 --srcdir=$${topdir}/$$module_srcdir \
23470 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23471 --target=${target_alias} \
22121df0 23472 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23473 $(STAGE2_CONFIGURE_FLAGS) \
23474 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23475@endif libiberty-linker-plugin-bootstrap
23476
23477.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23478maybe-configure-stage3-libiberty-linker-plugin:
23479@if libiberty-linker-plugin-bootstrap
23480maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23481configure-stage3-libiberty-linker-plugin:
23482 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23483 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23484 @r=`${PWD_COMMAND}`; export r; \
23485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23486 TFLAGS="$(STAGE3_TFLAGS)"; \
23487 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23488 $(HOST_EXPORTS) \
23489 $(POSTSTAGE1_HOST_EXPORTS) \
23490 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23491 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23492 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23493 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23494 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23495 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23496 case $(srcdir) in \
23497 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23498 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23499 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23500 esac; \
23501 module_srcdir=libiberty; \
23502 $(SHELL) $$s/$$module_srcdir/configure \
23503 --srcdir=$${topdir}/$$module_srcdir \
23504 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23505 --target=${target_alias} \
22121df0 23506 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23507 $(STAGE3_CONFIGURE_FLAGS) \
23508 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23509@endif libiberty-linker-plugin-bootstrap
23510
23511.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23512maybe-configure-stage4-libiberty-linker-plugin:
23513@if libiberty-linker-plugin-bootstrap
23514maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23515configure-stage4-libiberty-linker-plugin:
23516 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23517 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23518 @r=`${PWD_COMMAND}`; export r; \
23519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23520 TFLAGS="$(STAGE4_TFLAGS)"; \
23521 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23522 $(HOST_EXPORTS) \
23523 $(POSTSTAGE1_HOST_EXPORTS) \
23524 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23525 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23526 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23527 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23528 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23529 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23530 case $(srcdir) in \
23531 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23532 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23533 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23534 esac; \
23535 module_srcdir=libiberty; \
23536 $(SHELL) $$s/$$module_srcdir/configure \
23537 --srcdir=$${topdir}/$$module_srcdir \
23538 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23539 --target=${target_alias} \
22121df0 23540 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23541 $(STAGE4_CONFIGURE_FLAGS) \
23542 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23543@endif libiberty-linker-plugin-bootstrap
23544
23545.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23546maybe-configure-stageprofile-libiberty-linker-plugin:
23547@if libiberty-linker-plugin-bootstrap
23548maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23549configure-stageprofile-libiberty-linker-plugin:
23550 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23551 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23552 @r=`${PWD_COMMAND}`; export r; \
23553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23554 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23555 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23556 $(HOST_EXPORTS) \
23557 $(POSTSTAGE1_HOST_EXPORTS) \
23558 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23559 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23560 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23561 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23562 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23563 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23564 case $(srcdir) in \
23565 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23566 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23567 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23568 esac; \
23569 module_srcdir=libiberty; \
23570 $(SHELL) $$s/$$module_srcdir/configure \
23571 --srcdir=$${topdir}/$$module_srcdir \
23572 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23573 --target=${target_alias} \
22121df0 23574 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23575 $(STAGEprofile_CONFIGURE_FLAGS) \
23576 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23577@endif libiberty-linker-plugin-bootstrap
23578
23579.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23580maybe-configure-stagefeedback-libiberty-linker-plugin:
23581@if libiberty-linker-plugin-bootstrap
23582maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23583configure-stagefeedback-libiberty-linker-plugin:
23584 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23585 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23586 @r=`${PWD_COMMAND}`; export r; \
23587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23588 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23589 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23590 $(HOST_EXPORTS) \
23591 $(POSTSTAGE1_HOST_EXPORTS) \
23592 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23593 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23594 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23595 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23596 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23597 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23598 case $(srcdir) in \
23599 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23600 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23601 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23602 esac; \
23603 module_srcdir=libiberty; \
23604 $(SHELL) $$s/$$module_srcdir/configure \
23605 --srcdir=$${topdir}/$$module_srcdir \
23606 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23607 --target=${target_alias} \
22121df0 23608 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23609 $(STAGEfeedback_CONFIGURE_FLAGS) \
23610 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23611@endif libiberty-linker-plugin-bootstrap
23612
23613
23614
23615
23616
23617.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23618maybe-all-libiberty-linker-plugin:
23619@if gcc-bootstrap
23620all-libiberty-linker-plugin: stage_current
23621@endif gcc-bootstrap
23622@if libiberty-linker-plugin
23623TARGET-libiberty-linker-plugin=all
23624maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23625all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23626 @r=`${PWD_COMMAND}`; export r; \
23627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23628 $(HOST_EXPORTS) \
23629 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23630 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23631 $(TARGET-libiberty-linker-plugin))
23632@endif libiberty-linker-plugin
23633
23634
23635
23636.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23637.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23638maybe-all-stage1-libiberty-linker-plugin:
23639maybe-clean-stage1-libiberty-linker-plugin:
23640@if libiberty-linker-plugin-bootstrap
23641maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23642all-stage1: all-stage1-libiberty-linker-plugin
23643TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23644all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23645 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23646 @r=`${PWD_COMMAND}`; export r; \
23647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23648 TFLAGS="$(STAGE1_TFLAGS)"; \
23649 $(HOST_EXPORTS) \
23650 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23651 \
1b6c0831
L
23652 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23653 CFLAGS="$(STAGE1_CFLAGS)" \
23654 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23655 LIBCFLAGS="$(LIBCFLAGS)" \
23656 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23657 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23658 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23659 $(EXTRA_HOST_FLAGS) \
23660 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23661 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
23662 $(TARGET-stage1-libiberty-linker-plugin)
23663
23664maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23665clean-stage1: clean-stage1-libiberty-linker-plugin
23666clean-stage1-libiberty-linker-plugin:
23667 @if [ $(current_stage) = stage1 ]; then \
23668 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23669 else \
23670 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23671 $(MAKE) stage1-start; \
23672 fi; \
23673 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23674 $(MAKE) $(EXTRA_HOST_FLAGS) \
23675 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23676@endif libiberty-linker-plugin-bootstrap
23677
23678
23679.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23680.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23681maybe-all-stage2-libiberty-linker-plugin:
23682maybe-clean-stage2-libiberty-linker-plugin:
23683@if libiberty-linker-plugin-bootstrap
23684maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23685all-stage2: all-stage2-libiberty-linker-plugin
23686TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23687all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23688 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23689 @r=`${PWD_COMMAND}`; export r; \
23690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23691 TFLAGS="$(STAGE2_TFLAGS)"; \
23692 $(HOST_EXPORTS) \
23693 $(POSTSTAGE1_HOST_EXPORTS) \
23694 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23695 \
1b6c0831
L
23696 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23697 CFLAGS="$(STAGE2_CFLAGS)" \
23698 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23699 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23700 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23701 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23702 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23703 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23704 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
23705 $(TARGET-stage2-libiberty-linker-plugin)
23706
23707maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23708clean-stage2: clean-stage2-libiberty-linker-plugin
23709clean-stage2-libiberty-linker-plugin:
23710 @if [ $(current_stage) = stage2 ]; then \
23711 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23712 else \
23713 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23714 $(MAKE) stage2-start; \
23715 fi; \
23716 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23717 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23718@endif libiberty-linker-plugin-bootstrap
23719
23720
23721.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23722.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23723maybe-all-stage3-libiberty-linker-plugin:
23724maybe-clean-stage3-libiberty-linker-plugin:
23725@if libiberty-linker-plugin-bootstrap
23726maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23727all-stage3: all-stage3-libiberty-linker-plugin
23728TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23729all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23730 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23731 @r=`${PWD_COMMAND}`; export r; \
23732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23733 TFLAGS="$(STAGE3_TFLAGS)"; \
23734 $(HOST_EXPORTS) \
23735 $(POSTSTAGE1_HOST_EXPORTS) \
23736 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23737 \
1b6c0831
L
23738 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23739 CFLAGS="$(STAGE3_CFLAGS)" \
23740 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23741 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23742 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23743 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23744 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23745 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23746 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
23747 $(TARGET-stage3-libiberty-linker-plugin)
23748
23749maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23750clean-stage3: clean-stage3-libiberty-linker-plugin
23751clean-stage3-libiberty-linker-plugin:
23752 @if [ $(current_stage) = stage3 ]; then \
23753 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23754 else \
23755 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23756 $(MAKE) stage3-start; \
23757 fi; \
23758 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23759 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23760@endif libiberty-linker-plugin-bootstrap
23761
23762
23763.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23764.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23765maybe-all-stage4-libiberty-linker-plugin:
23766maybe-clean-stage4-libiberty-linker-plugin:
23767@if libiberty-linker-plugin-bootstrap
23768maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23769all-stage4: all-stage4-libiberty-linker-plugin
23770TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23771all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23772 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23773 @r=`${PWD_COMMAND}`; export r; \
23774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23775 TFLAGS="$(STAGE4_TFLAGS)"; \
23776 $(HOST_EXPORTS) \
23777 $(POSTSTAGE1_HOST_EXPORTS) \
23778 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23779 \
1b6c0831
L
23780 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23781 CFLAGS="$(STAGE4_CFLAGS)" \
23782 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23783 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23784 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23785 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23786 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23787 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23788 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
23789 $(TARGET-stage4-libiberty-linker-plugin)
23790
23791maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23792clean-stage4: clean-stage4-libiberty-linker-plugin
23793clean-stage4-libiberty-linker-plugin:
23794 @if [ $(current_stage) = stage4 ]; then \
23795 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23796 else \
23797 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23798 $(MAKE) stage4-start; \
23799 fi; \
23800 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23801 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23802@endif libiberty-linker-plugin-bootstrap
23803
23804
23805.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23806.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23807maybe-all-stageprofile-libiberty-linker-plugin:
23808maybe-clean-stageprofile-libiberty-linker-plugin:
23809@if libiberty-linker-plugin-bootstrap
23810maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23811all-stageprofile: all-stageprofile-libiberty-linker-plugin
23812TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23813all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23814 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23815 @r=`${PWD_COMMAND}`; export r; \
23816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23817 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23818 $(HOST_EXPORTS) \
23819 $(POSTSTAGE1_HOST_EXPORTS) \
23820 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23821 \
1b6c0831
L
23822 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23823 CFLAGS="$(STAGEprofile_CFLAGS)" \
23824 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23825 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23826 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23827 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23828 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23829 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23830 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
23831 $(TARGET-stageprofile-libiberty-linker-plugin)
23832
23833maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23834clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23835clean-stageprofile-libiberty-linker-plugin:
23836 @if [ $(current_stage) = stageprofile ]; then \
23837 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23838 else \
23839 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23840 $(MAKE) stageprofile-start; \
23841 fi; \
23842 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23843 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23844@endif libiberty-linker-plugin-bootstrap
23845
23846
23847.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23848.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23849maybe-all-stagefeedback-libiberty-linker-plugin:
23850maybe-clean-stagefeedback-libiberty-linker-plugin:
23851@if libiberty-linker-plugin-bootstrap
23852maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23853all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23854TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23855all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23856 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23857 @r=`${PWD_COMMAND}`; export r; \
23858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23859 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23860 $(HOST_EXPORTS) \
23861 $(POSTSTAGE1_HOST_EXPORTS) \
23862 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23863 \
1b6c0831
L
23864 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23865 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23866 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23867 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23868 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23869 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23870 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23871 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23872 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
23873 $(TARGET-stagefeedback-libiberty-linker-plugin)
23874
23875maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23876clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23877clean-stagefeedback-libiberty-linker-plugin:
23878 @if [ $(current_stage) = stagefeedback ]; then \
23879 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23880 else \
23881 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23882 $(MAKE) stagefeedback-start; \
23883 fi; \
23884 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23885 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23886@endif libiberty-linker-plugin-bootstrap
23887
23888
23889
23890
23891
23892.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23893maybe-check-libiberty-linker-plugin:
23894@if libiberty-linker-plugin
23895maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23896
23897check-libiberty-linker-plugin:
23898 @: $(MAKE); $(unstage)
23899 @r=`${PWD_COMMAND}`; export r; \
23900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23901 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23902 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 23903 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
23904
23905@endif libiberty-linker-plugin
23906
23907.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
23908maybe-install-libiberty-linker-plugin:
23909@if libiberty-linker-plugin
23910maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
23911
23912install-libiberty-linker-plugin: installdirs
23913 @: $(MAKE); $(unstage)
23914 @r=`${PWD_COMMAND}`; export r; \
23915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23916 $(HOST_EXPORTS) \
23917 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23918 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
23919
23920@endif libiberty-linker-plugin
23921
23922.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
23923maybe-install-strip-libiberty-linker-plugin:
23924@if libiberty-linker-plugin
23925maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
23926
23927install-strip-libiberty-linker-plugin: installdirs
23928 @: $(MAKE); $(unstage)
23929 @r=`${PWD_COMMAND}`; export r; \
23930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23931 $(HOST_EXPORTS) \
23932 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23933 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
23934
23935@endif libiberty-linker-plugin
23936
23937# Other targets (info, dvi, pdf, etc.)
23938
23939.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
23940maybe-info-libiberty-linker-plugin:
23941@if libiberty-linker-plugin
23942maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
23943
23944info-libiberty-linker-plugin: \
23945 configure-libiberty-linker-plugin
23946 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23947 r=`${PWD_COMMAND}`; export r; \
23948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23949 $(HOST_EXPORTS) \
23950 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23952 done; \
22121df0 23953 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
23954 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23957 "RANLIB=$${RANLIB}" \
23958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23959 info) \
23960 || exit 1
23961
23962@endif libiberty-linker-plugin
23963
23964.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
23965maybe-dvi-libiberty-linker-plugin:
23966@if libiberty-linker-plugin
23967maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
23968
23969dvi-libiberty-linker-plugin: \
23970 configure-libiberty-linker-plugin
23971 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23972 r=`${PWD_COMMAND}`; export r; \
23973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23974 $(HOST_EXPORTS) \
23975 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
23976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23977 done; \
22121df0 23978 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
23979 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23982 "RANLIB=$${RANLIB}" \
23983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23984 dvi) \
23985 || exit 1
23986
23987@endif libiberty-linker-plugin
23988
23989.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
23990maybe-pdf-libiberty-linker-plugin:
23991@if libiberty-linker-plugin
23992maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
23993
23994pdf-libiberty-linker-plugin: \
23995 configure-libiberty-linker-plugin
23996 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
23997 r=`${PWD_COMMAND}`; export r; \
23998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23999 $(HOST_EXPORTS) \
24000 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24002 done; \
22121df0 24003 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
24004 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24007 "RANLIB=$${RANLIB}" \
24008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24009 pdf) \
24010 || exit 1
24011
24012@endif libiberty-linker-plugin
24013
24014.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
24015maybe-html-libiberty-linker-plugin:
24016@if libiberty-linker-plugin
24017maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
24018
24019html-libiberty-linker-plugin: \
24020 configure-libiberty-linker-plugin
24021 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24022 r=`${PWD_COMMAND}`; export r; \
24023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24024 $(HOST_EXPORTS) \
24025 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24027 done; \
22121df0 24028 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
24029 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24032 "RANLIB=$${RANLIB}" \
24033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24034 html) \
24035 || exit 1
24036
24037@endif libiberty-linker-plugin
24038
24039.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
24040maybe-TAGS-libiberty-linker-plugin:
24041@if libiberty-linker-plugin
24042maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
24043
24044TAGS-libiberty-linker-plugin: \
24045 configure-libiberty-linker-plugin
24046 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24047 r=`${PWD_COMMAND}`; export r; \
24048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24049 $(HOST_EXPORTS) \
24050 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24052 done; \
22121df0 24053 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
24054 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24057 "RANLIB=$${RANLIB}" \
24058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24059 TAGS) \
24060 || exit 1
24061
24062@endif libiberty-linker-plugin
24063
24064.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
24065maybe-install-info-libiberty-linker-plugin:
24066@if libiberty-linker-plugin
24067maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
24068
24069install-info-libiberty-linker-plugin: \
24070 configure-libiberty-linker-plugin \
24071 info-libiberty-linker-plugin
24072 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24073 r=`${PWD_COMMAND}`; export r; \
24074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24075 $(HOST_EXPORTS) \
24076 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24078 done; \
22121df0 24079 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
24080 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24083 "RANLIB=$${RANLIB}" \
24084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24085 install-info) \
24086 || exit 1
24087
24088@endif libiberty-linker-plugin
24089
24090.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
24091maybe-install-pdf-libiberty-linker-plugin:
24092@if libiberty-linker-plugin
24093maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
24094
24095install-pdf-libiberty-linker-plugin: \
24096 configure-libiberty-linker-plugin \
24097 pdf-libiberty-linker-plugin
24098 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24099 r=`${PWD_COMMAND}`; export r; \
24100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24101 $(HOST_EXPORTS) \
24102 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24104 done; \
22121df0 24105 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
24106 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24109 "RANLIB=$${RANLIB}" \
24110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24111 install-pdf) \
24112 || exit 1
24113
24114@endif libiberty-linker-plugin
24115
24116.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
24117maybe-install-html-libiberty-linker-plugin:
24118@if libiberty-linker-plugin
24119maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
24120
24121install-html-libiberty-linker-plugin: \
24122 configure-libiberty-linker-plugin \
24123 html-libiberty-linker-plugin
24124 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24125 r=`${PWD_COMMAND}`; export r; \
24126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24127 $(HOST_EXPORTS) \
24128 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24130 done; \
22121df0 24131 echo "Doing install-html in libiberty-linker-plugin"; \
1b6c0831
L
24132 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24135 "RANLIB=$${RANLIB}" \
24136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24137 install-html) \
24138 || exit 1
24139
24140@endif libiberty-linker-plugin
24141
24142.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24143maybe-installcheck-libiberty-linker-plugin:
24144@if libiberty-linker-plugin
24145maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24146
24147installcheck-libiberty-linker-plugin: \
24148 configure-libiberty-linker-plugin
24149 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24150 r=`${PWD_COMMAND}`; export r; \
24151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24152 $(HOST_EXPORTS) \
24153 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24155 done; \
22121df0 24156 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24157 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24160 "RANLIB=$${RANLIB}" \
24161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24162 installcheck) \
24163 || exit 1
24164
24165@endif libiberty-linker-plugin
24166
24167.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24168maybe-mostlyclean-libiberty-linker-plugin:
24169@if libiberty-linker-plugin
24170maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24171
24172mostlyclean-libiberty-linker-plugin:
24173 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24174 r=`${PWD_COMMAND}`; export r; \
24175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24176 $(HOST_EXPORTS) \
24177 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24179 done; \
22121df0 24180 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24181 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24184 "RANLIB=$${RANLIB}" \
24185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24186 mostlyclean) \
24187 || exit 1
24188
24189@endif libiberty-linker-plugin
24190
24191.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24192maybe-clean-libiberty-linker-plugin:
24193@if libiberty-linker-plugin
24194maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24195
24196clean-libiberty-linker-plugin:
24197 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24198 r=`${PWD_COMMAND}`; export r; \
24199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24200 $(HOST_EXPORTS) \
24201 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24203 done; \
22121df0 24204 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24205 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24208 "RANLIB=$${RANLIB}" \
24209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24210 clean) \
24211 || exit 1
24212
24213@endif libiberty-linker-plugin
24214
24215.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24216maybe-distclean-libiberty-linker-plugin:
24217@if libiberty-linker-plugin
24218maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24219
24220distclean-libiberty-linker-plugin:
24221 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24222 r=`${PWD_COMMAND}`; export r; \
24223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24224 $(HOST_EXPORTS) \
24225 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24227 done; \
22121df0 24228 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24229 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24232 "RANLIB=$${RANLIB}" \
24233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24234 distclean) \
24235 || exit 1
24236
24237@endif libiberty-linker-plugin
24238
24239.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24240maybe-maintainer-clean-libiberty-linker-plugin:
24241@if libiberty-linker-plugin
24242maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24243
24244maintainer-clean-libiberty-linker-plugin:
24245 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24246 r=`${PWD_COMMAND}`; export r; \
24247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24248 $(HOST_EXPORTS) \
24249 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24251 done; \
22121df0 24252 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24253 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24256 "RANLIB=$${RANLIB}" \
24257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24258 maintainer-clean) \
24259 || exit 1
24260
24261@endif libiberty-linker-plugin
24262
24263
24264
a90ef4bf
JM
24265.PHONY: configure-libiconv maybe-configure-libiconv
24266maybe-configure-libiconv:
4f0ef2d8 24267@if gcc-bootstrap
a90ef4bf 24268configure-libiconv: stage_current
4f0ef2d8 24269@endif gcc-bootstrap
a90ef4bf
JM
24270@if libiconv
24271maybe-configure-libiconv: configure-libiconv
24272configure-libiconv:
c52c6897 24273 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24275 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24276 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24277 $(HOST_EXPORTS) \
a90ef4bf
JM
24278 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24279 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24280 case $(srcdir) in \
b00612cc 24281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24282 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24284 esac; \
1b6c0831
L
24285 module_srcdir=libiconv; \
24286 $(SHELL) \
24287 $$s/$$module_srcdir/configure \
24288 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24289 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24290 --target=${target_alias} --disable-shared \
2a4cbe27 24291 || exit 1
a90ef4bf 24292@endif libiconv
2a4cbe27 24293
a7254363
PB
24294
24295
016a3251
DD
24296.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24297maybe-configure-stage1-libiconv:
24298@if libiconv-bootstrap
24299maybe-configure-stage1-libiconv: configure-stage1-libiconv
24300configure-stage1-libiconv:
24301 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24302 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24303 @r=`${PWD_COMMAND}`; export r; \
24304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24305 TFLAGS="$(STAGE1_TFLAGS)"; \
24306 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24307 $(HOST_EXPORTS) \
24308 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24309 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24310 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24311 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24312 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24313 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24314 case $(srcdir) in \
24315 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24316 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24317 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24318 esac; \
24319 module_srcdir=libiconv; \
24320 $(SHELL) $$s/$$module_srcdir/configure \
24321 --srcdir=$${topdir}/$$module_srcdir \
24322 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24323 --target=${target_alias} \
24324 \
24325 $(STAGE1_CONFIGURE_FLAGS) \
24326 --disable-shared
24327@endif libiconv-bootstrap
24328
24329.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24330maybe-configure-stage2-libiconv:
24331@if libiconv-bootstrap
24332maybe-configure-stage2-libiconv: configure-stage2-libiconv
24333configure-stage2-libiconv:
24334 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24335 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24336 @r=`${PWD_COMMAND}`; export r; \
24337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24338 TFLAGS="$(STAGE2_TFLAGS)"; \
24339 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24340 $(HOST_EXPORTS) \
24341 $(POSTSTAGE1_HOST_EXPORTS) \
24342 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24343 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24344 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24345 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24346 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24347 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24348 case $(srcdir) in \
24349 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24350 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24351 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24352 esac; \
24353 module_srcdir=libiconv; \
24354 $(SHELL) $$s/$$module_srcdir/configure \
24355 --srcdir=$${topdir}/$$module_srcdir \
24356 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24357 --target=${target_alias} \
24358 --with-build-libsubdir=$(HOST_SUBDIR) \
24359 $(STAGE2_CONFIGURE_FLAGS) \
24360 --disable-shared
24361@endif libiconv-bootstrap
24362
24363.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24364maybe-configure-stage3-libiconv:
24365@if libiconv-bootstrap
24366maybe-configure-stage3-libiconv: configure-stage3-libiconv
24367configure-stage3-libiconv:
24368 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24369 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24370 @r=`${PWD_COMMAND}`; export r; \
24371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24372 TFLAGS="$(STAGE3_TFLAGS)"; \
24373 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24374 $(HOST_EXPORTS) \
24375 $(POSTSTAGE1_HOST_EXPORTS) \
24376 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24377 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24378 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24379 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24380 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24381 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24382 case $(srcdir) in \
24383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24384 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24386 esac; \
24387 module_srcdir=libiconv; \
24388 $(SHELL) $$s/$$module_srcdir/configure \
24389 --srcdir=$${topdir}/$$module_srcdir \
24390 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24391 --target=${target_alias} \
24392 --with-build-libsubdir=$(HOST_SUBDIR) \
24393 $(STAGE3_CONFIGURE_FLAGS) \
24394 --disable-shared
24395@endif libiconv-bootstrap
24396
24397.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24398maybe-configure-stage4-libiconv:
24399@if libiconv-bootstrap
24400maybe-configure-stage4-libiconv: configure-stage4-libiconv
24401configure-stage4-libiconv:
24402 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24403 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24404 @r=`${PWD_COMMAND}`; export r; \
24405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24406 TFLAGS="$(STAGE4_TFLAGS)"; \
24407 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24408 $(HOST_EXPORTS) \
24409 $(POSTSTAGE1_HOST_EXPORTS) \
24410 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24411 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24412 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24413 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24414 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24415 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24416 case $(srcdir) in \
24417 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24418 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24419 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24420 esac; \
24421 module_srcdir=libiconv; \
24422 $(SHELL) $$s/$$module_srcdir/configure \
24423 --srcdir=$${topdir}/$$module_srcdir \
24424 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24425 --target=${target_alias} \
24426 --with-build-libsubdir=$(HOST_SUBDIR) \
24427 $(STAGE4_CONFIGURE_FLAGS) \
24428 --disable-shared
24429@endif libiconv-bootstrap
24430
24431.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24432maybe-configure-stageprofile-libiconv:
24433@if libiconv-bootstrap
24434maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24435configure-stageprofile-libiconv:
24436 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24437 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24438 @r=`${PWD_COMMAND}`; export r; \
24439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24440 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24441 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24442 $(HOST_EXPORTS) \
24443 $(POSTSTAGE1_HOST_EXPORTS) \
24444 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24445 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24446 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24447 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24448 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24449 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24450 case $(srcdir) in \
24451 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24452 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24453 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24454 esac; \
24455 module_srcdir=libiconv; \
24456 $(SHELL) $$s/$$module_srcdir/configure \
24457 --srcdir=$${topdir}/$$module_srcdir \
24458 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24459 --target=${target_alias} \
24460 --with-build-libsubdir=$(HOST_SUBDIR) \
24461 $(STAGEprofile_CONFIGURE_FLAGS) \
24462 --disable-shared
24463@endif libiconv-bootstrap
24464
24465.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24466maybe-configure-stagefeedback-libiconv:
24467@if libiconv-bootstrap
24468maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24469configure-stagefeedback-libiconv:
24470 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24471 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24472 @r=`${PWD_COMMAND}`; export r; \
24473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24474 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24475 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24476 $(HOST_EXPORTS) \
24477 $(POSTSTAGE1_HOST_EXPORTS) \
24478 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24479 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24480 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24481 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24482 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24483 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24484 case $(srcdir) in \
24485 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24486 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24487 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24488 esac; \
24489 module_srcdir=libiconv; \
24490 $(SHELL) $$s/$$module_srcdir/configure \
24491 --srcdir=$${topdir}/$$module_srcdir \
24492 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24493 --target=${target_alias} \
24494 --with-build-libsubdir=$(HOST_SUBDIR) \
24495 $(STAGEfeedback_CONFIGURE_FLAGS) \
24496 --disable-shared
24497@endif libiconv-bootstrap
24498
24499
24500
d545f33b
PB
24501
24502
a90ef4bf
JM
24503.PHONY: all-libiconv maybe-all-libiconv
24504maybe-all-libiconv:
4f0ef2d8 24505@if gcc-bootstrap
a90ef4bf 24506all-libiconv: stage_current
4f0ef2d8 24507@endif gcc-bootstrap
a90ef4bf
JM
24508@if libiconv
24509TARGET-libiconv=all
24510maybe-all-libiconv: all-libiconv
24511all-libiconv: configure-libiconv
4fa63067
NN
24512 @r=`${PWD_COMMAND}`; export r; \
24513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24514 $(HOST_EXPORTS) \
a90ef4bf 24515 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24516 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24517 $(TARGET-libiconv))
24518@endif libiconv
2a4cbe27 24519
a7254363 24520
d545f33b 24521
016a3251
DD
24522.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24523.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24524maybe-all-stage1-libiconv:
24525maybe-clean-stage1-libiconv:
24526@if libiconv-bootstrap
24527maybe-all-stage1-libiconv: all-stage1-libiconv
24528all-stage1: all-stage1-libiconv
24529TARGET-stage1-libiconv = $(TARGET-libiconv)
24530all-stage1-libiconv: configure-stage1-libiconv
24531 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24532 @r=`${PWD_COMMAND}`; export r; \
24533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24534 TFLAGS="$(STAGE1_TFLAGS)"; \
24535 $(HOST_EXPORTS) \
24536 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24537 \
016a3251
DD
24538 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24539 CFLAGS="$(STAGE1_CFLAGS)" \
24540 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24541 LIBCFLAGS="$(LIBCFLAGS)" \
24542 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24543 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24544 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24545 $(EXTRA_HOST_FLAGS) \
24546 $(STAGE1_FLAGS_TO_PASS) \
05a13254 24547 TFLAGS="$(STAGE1_TFLAGS)" \
016a3251
DD
24548 $(TARGET-stage1-libiconv)
24549
24550maybe-clean-stage1-libiconv: clean-stage1-libiconv
24551clean-stage1: clean-stage1-libiconv
24552clean-stage1-libiconv:
24553 @if [ $(current_stage) = stage1 ]; then \
24554 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24555 else \
24556 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24557 $(MAKE) stage1-start; \
24558 fi; \
24559 cd $(HOST_SUBDIR)/libiconv && \
24560 $(MAKE) $(EXTRA_HOST_FLAGS) \
24561 $(STAGE1_FLAGS_TO_PASS) clean
24562@endif libiconv-bootstrap
24563
24564
24565.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24566.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24567maybe-all-stage2-libiconv:
24568maybe-clean-stage2-libiconv:
24569@if libiconv-bootstrap
24570maybe-all-stage2-libiconv: all-stage2-libiconv
24571all-stage2: all-stage2-libiconv
24572TARGET-stage2-libiconv = $(TARGET-libiconv)
24573all-stage2-libiconv: configure-stage2-libiconv
24574 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24575 @r=`${PWD_COMMAND}`; export r; \
24576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24577 TFLAGS="$(STAGE2_TFLAGS)"; \
24578 $(HOST_EXPORTS) \
24579 $(POSTSTAGE1_HOST_EXPORTS) \
24580 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24581 \
016a3251
DD
24582 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24583 CFLAGS="$(STAGE2_CFLAGS)" \
24584 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24585 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24586 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24587 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24588 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24589 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24590 TFLAGS="$(STAGE2_TFLAGS)" \
016a3251
DD
24591 $(TARGET-stage2-libiconv)
24592
24593maybe-clean-stage2-libiconv: clean-stage2-libiconv
24594clean-stage2: clean-stage2-libiconv
24595clean-stage2-libiconv:
24596 @if [ $(current_stage) = stage2 ]; then \
24597 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24598 else \
24599 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24600 $(MAKE) stage2-start; \
24601 fi; \
24602 cd $(HOST_SUBDIR)/libiconv && \
24603 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24604@endif libiconv-bootstrap
24605
24606
24607.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24608.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24609maybe-all-stage3-libiconv:
24610maybe-clean-stage3-libiconv:
24611@if libiconv-bootstrap
24612maybe-all-stage3-libiconv: all-stage3-libiconv
24613all-stage3: all-stage3-libiconv
24614TARGET-stage3-libiconv = $(TARGET-libiconv)
24615all-stage3-libiconv: configure-stage3-libiconv
24616 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24617 @r=`${PWD_COMMAND}`; export r; \
24618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24619 TFLAGS="$(STAGE3_TFLAGS)"; \
24620 $(HOST_EXPORTS) \
24621 $(POSTSTAGE1_HOST_EXPORTS) \
24622 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24623 \
016a3251
DD
24624 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24625 CFLAGS="$(STAGE3_CFLAGS)" \
24626 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24627 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24628 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24629 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24630 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24631 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24632 TFLAGS="$(STAGE3_TFLAGS)" \
016a3251
DD
24633 $(TARGET-stage3-libiconv)
24634
24635maybe-clean-stage3-libiconv: clean-stage3-libiconv
24636clean-stage3: clean-stage3-libiconv
24637clean-stage3-libiconv:
24638 @if [ $(current_stage) = stage3 ]; then \
24639 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24640 else \
24641 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24642 $(MAKE) stage3-start; \
24643 fi; \
24644 cd $(HOST_SUBDIR)/libiconv && \
24645 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24646@endif libiconv-bootstrap
24647
24648
24649.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24650.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24651maybe-all-stage4-libiconv:
24652maybe-clean-stage4-libiconv:
24653@if libiconv-bootstrap
24654maybe-all-stage4-libiconv: all-stage4-libiconv
24655all-stage4: all-stage4-libiconv
24656TARGET-stage4-libiconv = $(TARGET-libiconv)
24657all-stage4-libiconv: configure-stage4-libiconv
24658 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24659 @r=`${PWD_COMMAND}`; export r; \
24660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24661 TFLAGS="$(STAGE4_TFLAGS)"; \
24662 $(HOST_EXPORTS) \
24663 $(POSTSTAGE1_HOST_EXPORTS) \
24664 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24665 \
016a3251
DD
24666 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24667 CFLAGS="$(STAGE4_CFLAGS)" \
24668 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24669 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24670 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24671 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24672 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24673 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24674 TFLAGS="$(STAGE4_TFLAGS)" \
016a3251
DD
24675 $(TARGET-stage4-libiconv)
24676
24677maybe-clean-stage4-libiconv: clean-stage4-libiconv
24678clean-stage4: clean-stage4-libiconv
24679clean-stage4-libiconv:
24680 @if [ $(current_stage) = stage4 ]; then \
24681 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24682 else \
24683 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24684 $(MAKE) stage4-start; \
24685 fi; \
24686 cd $(HOST_SUBDIR)/libiconv && \
24687 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24688@endif libiconv-bootstrap
24689
24690
24691.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24692.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24693maybe-all-stageprofile-libiconv:
24694maybe-clean-stageprofile-libiconv:
24695@if libiconv-bootstrap
24696maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24697all-stageprofile: all-stageprofile-libiconv
24698TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24699all-stageprofile-libiconv: configure-stageprofile-libiconv
24700 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24701 @r=`${PWD_COMMAND}`; export r; \
24702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24703 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24704 $(HOST_EXPORTS) \
24705 $(POSTSTAGE1_HOST_EXPORTS) \
24706 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24707 \
016a3251
DD
24708 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24709 CFLAGS="$(STAGEprofile_CFLAGS)" \
24710 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24711 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24712 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24713 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24714 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24715 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24716 TFLAGS="$(STAGEprofile_TFLAGS)" \
016a3251
DD
24717 $(TARGET-stageprofile-libiconv)
24718
24719maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24720clean-stageprofile: clean-stageprofile-libiconv
24721clean-stageprofile-libiconv:
24722 @if [ $(current_stage) = stageprofile ]; then \
24723 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24724 else \
24725 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24726 $(MAKE) stageprofile-start; \
24727 fi; \
24728 cd $(HOST_SUBDIR)/libiconv && \
24729 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24730@endif libiconv-bootstrap
24731
24732
24733.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24734.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24735maybe-all-stagefeedback-libiconv:
24736maybe-clean-stagefeedback-libiconv:
24737@if libiconv-bootstrap
24738maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24739all-stagefeedback: all-stagefeedback-libiconv
24740TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24741all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24742 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24743 @r=`${PWD_COMMAND}`; export r; \
24744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24745 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24746 $(HOST_EXPORTS) \
24747 $(POSTSTAGE1_HOST_EXPORTS) \
24748 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24749 \
016a3251
DD
24750 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24751 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24752 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24753 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24754 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24755 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24756 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24757 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24758 TFLAGS="$(STAGEfeedback_TFLAGS)" \
016a3251
DD
24759 $(TARGET-stagefeedback-libiconv)
24760
24761maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24762clean-stagefeedback: clean-stagefeedback-libiconv
24763clean-stagefeedback-libiconv:
24764 @if [ $(current_stage) = stagefeedback ]; then \
24765 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24766 else \
24767 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24768 $(MAKE) stagefeedback-start; \
24769 fi; \
24770 cd $(HOST_SUBDIR)/libiconv && \
24771 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24772@endif libiconv-bootstrap
24773
24774
24775
24776
d545f33b 24777
a90ef4bf
JM
24778.PHONY: check-libiconv maybe-check-libiconv
24779maybe-check-libiconv:
24780@if libiconv
24781maybe-check-libiconv: check-libiconv
2a4cbe27 24782
a90ef4bf 24783check-libiconv:
0aed8855 24784 @: $(MAKE); $(unstage)
4fa63067 24785 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24787 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24788 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24789 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24790
a90ef4bf 24791@endif libiconv
4fa63067 24792
a90ef4bf
JM
24793.PHONY: install-libiconv maybe-install-libiconv
24794maybe-install-libiconv:
24795@if libiconv
24796maybe-install-libiconv: install-libiconv
2a4cbe27 24797
a90ef4bf 24798install-libiconv:
2a4cbe27 24799
a90ef4bf 24800@endif libiconv
9b980aa1 24801
a90ef4bf
JM
24802.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24803maybe-install-strip-libiconv:
24804@if libiconv
24805maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24806
a90ef4bf
JM
24807install-strip-libiconv:
24808
24809@endif libiconv
9b980aa1 24810
56a8fe78 24811# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24812
a90ef4bf
JM
24813.PHONY: maybe-info-libiconv info-libiconv
24814maybe-info-libiconv:
24815@if libiconv
24816maybe-info-libiconv: info-libiconv
4fa63067 24817
016a3251
DD
24818# libiconv doesn't support info.
24819info-libiconv:
2a4cbe27 24820
a90ef4bf 24821@endif libiconv
2a4cbe27 24822
a90ef4bf
JM
24823.PHONY: maybe-dvi-libiconv dvi-libiconv
24824maybe-dvi-libiconv:
24825@if libiconv
24826maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24827
a90ef4bf
JM
24828dvi-libiconv: \
24829 configure-libiconv
a90ef4bf 24830 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24831 r=`${PWD_COMMAND}`; export r; \
24832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24833 $(HOST_EXPORTS) \
b813574b 24834 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24836 done; \
22121df0 24837 echo "Doing dvi in libiconv"; \
a90ef4bf 24838 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24841 "RANLIB=$${RANLIB}" \
0c24b341 24842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24843 dvi) \
2a4cbe27
NN
24844 || exit 1
24845
a90ef4bf 24846@endif libiconv
2a4cbe27 24847
a90ef4bf
JM
24848.PHONY: maybe-pdf-libiconv pdf-libiconv
24849maybe-pdf-libiconv:
24850@if libiconv
24851maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24852
016a3251
DD
24853# libiconv doesn't support pdf.
24854pdf-libiconv:
56a8fe78 24855
a90ef4bf 24856@endif libiconv
56a8fe78 24857
a90ef4bf
JM
24858.PHONY: maybe-html-libiconv html-libiconv
24859maybe-html-libiconv:
24860@if libiconv
24861maybe-html-libiconv: html-libiconv
6d389afc 24862
016a3251
DD
24863# libiconv doesn't support html.
24864html-libiconv:
6d389afc 24865
a90ef4bf 24866@endif libiconv
6d389afc 24867
a90ef4bf
JM
24868.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24869maybe-TAGS-libiconv:
24870@if libiconv
24871maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24872
a90ef4bf
JM
24873TAGS-libiconv: \
24874 configure-libiconv
a90ef4bf 24875 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24876 r=`${PWD_COMMAND}`; export r; \
24877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24878 $(HOST_EXPORTS) \
b813574b 24879 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24881 done; \
22121df0 24882 echo "Doing TAGS in libiconv"; \
a90ef4bf 24883 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24886 "RANLIB=$${RANLIB}" \
0c24b341 24887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24888 TAGS) \
2a4cbe27
NN
24889 || exit 1
24890
a90ef4bf 24891@endif libiconv
2a4cbe27 24892
a90ef4bf
JM
24893.PHONY: maybe-install-info-libiconv install-info-libiconv
24894maybe-install-info-libiconv:
24895@if libiconv
24896maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24897
a90ef4bf
JM
24898# libiconv doesn't support install-info.
24899install-info-libiconv:
2a4cbe27 24900
a90ef4bf 24901@endif libiconv
2a4cbe27 24902
a90ef4bf
JM
24903.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
24904maybe-install-pdf-libiconv:
24905@if libiconv
24906maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 24907
a90ef4bf
JM
24908# libiconv doesn't support install-pdf.
24909install-pdf-libiconv:
a3ca38d2 24910
a90ef4bf 24911@endif libiconv
a3ca38d2 24912
a90ef4bf
JM
24913.PHONY: maybe-install-html-libiconv install-html-libiconv
24914maybe-install-html-libiconv:
24915@if libiconv
24916maybe-install-html-libiconv: install-html-libiconv
108a6f8e 24917
a90ef4bf
JM
24918# libiconv doesn't support install-html.
24919install-html-libiconv:
108a6f8e 24920
a90ef4bf 24921@endif libiconv
108a6f8e 24922
a90ef4bf
JM
24923.PHONY: maybe-installcheck-libiconv installcheck-libiconv
24924maybe-installcheck-libiconv:
24925@if libiconv
24926maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 24927
a90ef4bf
JM
24928installcheck-libiconv: \
24929 configure-libiconv
a90ef4bf 24930 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24931 r=`${PWD_COMMAND}`; export r; \
24932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24933 $(HOST_EXPORTS) \
b813574b 24934 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24936 done; \
22121df0 24937 echo "Doing installcheck in libiconv"; \
a90ef4bf 24938 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24941 "RANLIB=$${RANLIB}" \
0c24b341 24942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24943 installcheck) \
2a4cbe27
NN
24944 || exit 1
24945
a90ef4bf 24946@endif libiconv
2a4cbe27 24947
a90ef4bf
JM
24948.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
24949maybe-mostlyclean-libiconv:
24950@if libiconv
24951maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 24952
a90ef4bf 24953mostlyclean-libiconv:
a90ef4bf 24954 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24955 r=`${PWD_COMMAND}`; export r; \
24956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24957 $(HOST_EXPORTS) \
b813574b 24958 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24960 done; \
22121df0 24961 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 24962 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24965 "RANLIB=$${RANLIB}" \
0c24b341 24966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24967 mostlyclean) \
2a4cbe27
NN
24968 || exit 1
24969
a90ef4bf 24970@endif libiconv
2a4cbe27 24971
a90ef4bf
JM
24972.PHONY: maybe-clean-libiconv clean-libiconv
24973maybe-clean-libiconv:
24974@if libiconv
24975maybe-clean-libiconv: clean-libiconv
2a4cbe27 24976
a90ef4bf 24977clean-libiconv:
a90ef4bf 24978 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24979 r=`${PWD_COMMAND}`; export r; \
24980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24981 $(HOST_EXPORTS) \
b813574b 24982 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24984 done; \
22121df0 24985 echo "Doing clean in libiconv"; \
a90ef4bf 24986 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24989 "RANLIB=$${RANLIB}" \
0c24b341 24990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24991 clean) \
2a4cbe27
NN
24992 || exit 1
24993
a90ef4bf 24994@endif libiconv
2a4cbe27 24995
a90ef4bf
JM
24996.PHONY: maybe-distclean-libiconv distclean-libiconv
24997maybe-distclean-libiconv:
24998@if libiconv
24999maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 25000
a90ef4bf 25001distclean-libiconv:
a90ef4bf 25002 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25003 r=`${PWD_COMMAND}`; export r; \
25004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25005 $(HOST_EXPORTS) \
b813574b 25006 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25008 done; \
22121df0 25009 echo "Doing distclean in libiconv"; \
a90ef4bf 25010 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25013 "RANLIB=$${RANLIB}" \
0c24b341 25014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25015 distclean) \
2a4cbe27
NN
25016 || exit 1
25017
a90ef4bf 25018@endif libiconv
2a4cbe27 25019
a90ef4bf
JM
25020.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
25021maybe-maintainer-clean-libiconv:
25022@if libiconv
25023maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 25024
a90ef4bf 25025maintainer-clean-libiconv:
a90ef4bf 25026 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25027 r=`${PWD_COMMAND}`; export r; \
25028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25029 $(HOST_EXPORTS) \
b813574b 25030 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25032 done; \
22121df0 25033 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 25034 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25037 "RANLIB=$${RANLIB}" \
0c24b341 25038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25039 maintainer-clean) \
2a4cbe27
NN
25040 || exit 1
25041
a90ef4bf 25042@endif libiconv
2a4cbe27 25043
2a4cbe27 25044
a7254363 25045
a90ef4bf
JM
25046.PHONY: configure-m4 maybe-configure-m4
25047maybe-configure-m4:
4f0ef2d8 25048@if gcc-bootstrap
a90ef4bf 25049configure-m4: stage_current
4f0ef2d8 25050@endif gcc-bootstrap
a90ef4bf
JM
25051@if m4
25052maybe-configure-m4: configure-m4
25053configure-m4:
0aed8855 25054 @: $(MAKE); $(unstage)
c52c6897 25055 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25057 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 25058 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 25059 $(HOST_EXPORTS) \
a90ef4bf
JM
25060 echo Configuring in $(HOST_SUBDIR)/m4; \
25061 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 25062 case $(srcdir) in \
b00612cc 25063 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25064 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 25065 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25066 esac; \
1b6c0831
L
25067 module_srcdir=m4; \
25068 $(SHELL) \
25069 $$s/$$module_srcdir/configure \
25070 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25071 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25072 --target=${target_alias} \
2a4cbe27 25073 || exit 1
a90ef4bf 25074@endif m4
2a4cbe27 25075
a7254363
PB
25076
25077
d545f33b
PB
25078
25079
a90ef4bf
JM
25080.PHONY: all-m4 maybe-all-m4
25081maybe-all-m4:
4f0ef2d8 25082@if gcc-bootstrap
a90ef4bf 25083all-m4: stage_current
4f0ef2d8 25084@endif gcc-bootstrap
a90ef4bf
JM
25085@if m4
25086TARGET-m4=all
25087maybe-all-m4: all-m4
25088all-m4: configure-m4
0aed8855 25089 @: $(MAKE); $(unstage)
4fa63067
NN
25090 @r=`${PWD_COMMAND}`; export r; \
25091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25092 $(HOST_EXPORTS) \
a90ef4bf 25093 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 25094 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25095 $(TARGET-m4))
25096@endif m4
2a4cbe27 25097
a7254363 25098
d545f33b
PB
25099
25100
a90ef4bf
JM
25101.PHONY: check-m4 maybe-check-m4
25102maybe-check-m4:
25103@if m4
25104maybe-check-m4: check-m4
2a4cbe27 25105
a90ef4bf 25106check-m4:
0aed8855 25107 @: $(MAKE); $(unstage)
4fa63067 25108 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25110 $(HOST_EXPORTS) \
a90ef4bf 25111 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 25112 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25113
a90ef4bf 25114@endif m4
2a4cbe27 25115
a90ef4bf
JM
25116.PHONY: install-m4 maybe-install-m4
25117maybe-install-m4:
25118@if m4
25119maybe-install-m4: install-m4
2a4cbe27 25120
a90ef4bf 25121install-m4: installdirs
0aed8855 25122 @: $(MAKE); $(unstage)
4fa63067 25123 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25125 $(HOST_EXPORTS) \
a90ef4bf 25126 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 25127 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25128
a90ef4bf 25129@endif m4
2a4cbe27 25130
a90ef4bf
JM
25131.PHONY: install-strip-m4 maybe-install-strip-m4
25132maybe-install-strip-m4:
25133@if m4
25134maybe-install-strip-m4: install-strip-m4
9b980aa1 25135
a90ef4bf 25136install-strip-m4: installdirs
9b980aa1
RW
25137 @: $(MAKE); $(unstage)
25138 @r=`${PWD_COMMAND}`; export r; \
25139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25140 $(HOST_EXPORTS) \
a90ef4bf 25141 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25142 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25143
a90ef4bf 25144@endif m4
9b980aa1 25145
56a8fe78 25146# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25147
a90ef4bf
JM
25148.PHONY: maybe-info-m4 info-m4
25149maybe-info-m4:
25150@if m4
25151maybe-info-m4: info-m4
4fa63067 25152
a90ef4bf
JM
25153info-m4: \
25154 configure-m4
0aed8855 25155 @: $(MAKE); $(unstage)
a90ef4bf 25156 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25157 r=`${PWD_COMMAND}`; export r; \
25158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25159 $(HOST_EXPORTS) \
b813574b 25160 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25162 done; \
22121df0 25163 echo "Doing info in m4"; \
a90ef4bf 25164 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25167 "RANLIB=$${RANLIB}" \
0c24b341 25168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25169 info) \
2a4cbe27
NN
25170 || exit 1
25171
a90ef4bf 25172@endif m4
2a4cbe27 25173
a90ef4bf
JM
25174.PHONY: maybe-dvi-m4 dvi-m4
25175maybe-dvi-m4:
25176@if m4
25177maybe-dvi-m4: dvi-m4
2a4cbe27 25178
a90ef4bf
JM
25179dvi-m4: \
25180 configure-m4
0aed8855 25181 @: $(MAKE); $(unstage)
a90ef4bf 25182 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25183 r=`${PWD_COMMAND}`; export r; \
25184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25185 $(HOST_EXPORTS) \
b813574b 25186 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25188 done; \
22121df0 25189 echo "Doing dvi in m4"; \
a90ef4bf 25190 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25193 "RANLIB=$${RANLIB}" \
0c24b341 25194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25195 dvi) \
2a4cbe27
NN
25196 || exit 1
25197
a90ef4bf 25198@endif m4
2a4cbe27 25199
a90ef4bf
JM
25200.PHONY: maybe-pdf-m4 pdf-m4
25201maybe-pdf-m4:
25202@if m4
25203maybe-pdf-m4: pdf-m4
56a8fe78 25204
a90ef4bf
JM
25205pdf-m4: \
25206 configure-m4
56a8fe78 25207 @: $(MAKE); $(unstage)
a90ef4bf 25208 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25209 r=`${PWD_COMMAND}`; export r; \
25210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25211 $(HOST_EXPORTS) \
25212 for flag in $(EXTRA_HOST_FLAGS) ; do \
25213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25214 done; \
22121df0 25215 echo "Doing pdf in m4"; \
a90ef4bf 25216 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25219 "RANLIB=$${RANLIB}" \
0c24b341 25220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25221 pdf) \
25222 || exit 1
25223
a90ef4bf 25224@endif m4
56a8fe78 25225
a90ef4bf
JM
25226.PHONY: maybe-html-m4 html-m4
25227maybe-html-m4:
25228@if m4
25229maybe-html-m4: html-m4
6d389afc 25230
a90ef4bf
JM
25231html-m4: \
25232 configure-m4
0aed8855 25233 @: $(MAKE); $(unstage)
a90ef4bf 25234 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25235 r=`${PWD_COMMAND}`; export r; \
25236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25237 $(HOST_EXPORTS) \
25238 for flag in $(EXTRA_HOST_FLAGS) ; do \
25239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25240 done; \
22121df0 25241 echo "Doing html in m4"; \
a90ef4bf 25242 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25245 "RANLIB=$${RANLIB}" \
0c24b341 25246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25247 html) \
25248 || exit 1
25249
a90ef4bf 25250@endif m4
6d389afc 25251
a90ef4bf
JM
25252.PHONY: maybe-TAGS-m4 TAGS-m4
25253maybe-TAGS-m4:
25254@if m4
25255maybe-TAGS-m4: TAGS-m4
2a4cbe27 25256
a90ef4bf
JM
25257TAGS-m4: \
25258 configure-m4
0aed8855 25259 @: $(MAKE); $(unstage)
a90ef4bf 25260 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25261 r=`${PWD_COMMAND}`; export r; \
25262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25263 $(HOST_EXPORTS) \
b813574b 25264 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25266 done; \
22121df0 25267 echo "Doing TAGS in m4"; \
a90ef4bf 25268 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25271 "RANLIB=$${RANLIB}" \
0c24b341 25272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25273 TAGS) \
2a4cbe27
NN
25274 || exit 1
25275
a90ef4bf 25276@endif m4
2a4cbe27 25277
a90ef4bf
JM
25278.PHONY: maybe-install-info-m4 install-info-m4
25279maybe-install-info-m4:
25280@if m4
25281maybe-install-info-m4: install-info-m4
2a4cbe27 25282
a90ef4bf
JM
25283install-info-m4: \
25284 configure-m4 \
25285 info-m4
0aed8855 25286 @: $(MAKE); $(unstage)
a90ef4bf 25287 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25288 r=`${PWD_COMMAND}`; export r; \
25289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25290 $(HOST_EXPORTS) \
b813574b 25291 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25293 done; \
22121df0 25294 echo "Doing install-info in m4"; \
a90ef4bf 25295 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25298 "RANLIB=$${RANLIB}" \
0c24b341 25299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25300 install-info) \
2a4cbe27
NN
25301 || exit 1
25302
a90ef4bf 25303@endif m4
2a4cbe27 25304
a90ef4bf
JM
25305.PHONY: maybe-install-pdf-m4 install-pdf-m4
25306maybe-install-pdf-m4:
25307@if m4
25308maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25309
a90ef4bf
JM
25310install-pdf-m4: \
25311 configure-m4 \
25312 pdf-m4
a3ca38d2 25313 @: $(MAKE); $(unstage)
a90ef4bf 25314 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25315 r=`${PWD_COMMAND}`; export r; \
25316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25317 $(HOST_EXPORTS) \
25318 for flag in $(EXTRA_HOST_FLAGS) ; do \
25319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25320 done; \
22121df0 25321 echo "Doing install-pdf in m4"; \
a90ef4bf 25322 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25325 "RANLIB=$${RANLIB}" \
0c24b341 25326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25327 install-pdf) \
25328 || exit 1
25329
a90ef4bf 25330@endif m4
a3ca38d2 25331
a90ef4bf
JM
25332.PHONY: maybe-install-html-m4 install-html-m4
25333maybe-install-html-m4:
25334@if m4
25335maybe-install-html-m4: install-html-m4
108a6f8e 25336
a90ef4bf
JM
25337install-html-m4: \
25338 configure-m4 \
25339 html-m4
108a6f8e 25340 @: $(MAKE); $(unstage)
a90ef4bf 25341 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25342 r=`${PWD_COMMAND}`; export r; \
25343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25344 $(HOST_EXPORTS) \
25345 for flag in $(EXTRA_HOST_FLAGS) ; do \
25346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25347 done; \
22121df0 25348 echo "Doing install-html in m4"; \
a90ef4bf 25349 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25352 "RANLIB=$${RANLIB}" \
0c24b341 25353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25354 install-html) \
25355 || exit 1
25356
a90ef4bf 25357@endif m4
108a6f8e 25358
a90ef4bf
JM
25359.PHONY: maybe-installcheck-m4 installcheck-m4
25360maybe-installcheck-m4:
25361@if m4
25362maybe-installcheck-m4: installcheck-m4
2a4cbe27 25363
a90ef4bf
JM
25364installcheck-m4: \
25365 configure-m4
0aed8855 25366 @: $(MAKE); $(unstage)
a90ef4bf 25367 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25368 r=`${PWD_COMMAND}`; export r; \
25369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25370 $(HOST_EXPORTS) \
b813574b 25371 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25373 done; \
22121df0 25374 echo "Doing installcheck in m4"; \
a90ef4bf 25375 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25378 "RANLIB=$${RANLIB}" \
0c24b341 25379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25380 installcheck) \
2a4cbe27
NN
25381 || exit 1
25382
a90ef4bf 25383@endif m4
2a4cbe27 25384
a90ef4bf
JM
25385.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25386maybe-mostlyclean-m4:
25387@if m4
25388maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25389
a90ef4bf 25390mostlyclean-m4:
0aed8855 25391 @: $(MAKE); $(unstage)
a90ef4bf 25392 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25393 r=`${PWD_COMMAND}`; export r; \
25394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25395 $(HOST_EXPORTS) \
b813574b 25396 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25398 done; \
22121df0 25399 echo "Doing mostlyclean in m4"; \
a90ef4bf 25400 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25403 "RANLIB=$${RANLIB}" \
0c24b341 25404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25405 mostlyclean) \
2a4cbe27
NN
25406 || exit 1
25407
a90ef4bf 25408@endif m4
2a4cbe27 25409
a90ef4bf
JM
25410.PHONY: maybe-clean-m4 clean-m4
25411maybe-clean-m4:
25412@if m4
25413maybe-clean-m4: clean-m4
2a4cbe27 25414
a90ef4bf 25415clean-m4:
0aed8855 25416 @: $(MAKE); $(unstage)
a90ef4bf 25417 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25418 r=`${PWD_COMMAND}`; export r; \
25419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25420 $(HOST_EXPORTS) \
b813574b 25421 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25423 done; \
22121df0 25424 echo "Doing clean in m4"; \
a90ef4bf 25425 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25428 "RANLIB=$${RANLIB}" \
0c24b341 25429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25430 clean) \
2a4cbe27
NN
25431 || exit 1
25432
a90ef4bf 25433@endif m4
2a4cbe27 25434
a90ef4bf
JM
25435.PHONY: maybe-distclean-m4 distclean-m4
25436maybe-distclean-m4:
25437@if m4
25438maybe-distclean-m4: distclean-m4
2a4cbe27 25439
a90ef4bf 25440distclean-m4:
0aed8855 25441 @: $(MAKE); $(unstage)
a90ef4bf 25442 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25443 r=`${PWD_COMMAND}`; export r; \
25444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25445 $(HOST_EXPORTS) \
b813574b 25446 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25447 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25448 done; \
22121df0 25449 echo "Doing distclean in m4"; \
a90ef4bf 25450 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25453 "RANLIB=$${RANLIB}" \
0c24b341 25454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25455 distclean) \
2a4cbe27
NN
25456 || exit 1
25457
a90ef4bf 25458@endif m4
2a4cbe27 25459
a90ef4bf
JM
25460.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25461maybe-maintainer-clean-m4:
25462@if m4
25463maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25464
a90ef4bf 25465maintainer-clean-m4:
0aed8855 25466 @: $(MAKE); $(unstage)
a90ef4bf 25467 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25468 r=`${PWD_COMMAND}`; export r; \
25469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25470 $(HOST_EXPORTS) \
b813574b 25471 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25473 done; \
22121df0 25474 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25475 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25478 "RANLIB=$${RANLIB}" \
0c24b341 25479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25480 maintainer-clean) \
2a4cbe27
NN
25481 || exit 1
25482
a90ef4bf 25483@endif m4
2a4cbe27 25484
2a4cbe27 25485
a7254363 25486
a90ef4bf
JM
25487.PHONY: configure-readline maybe-configure-readline
25488maybe-configure-readline:
4f0ef2d8 25489@if gcc-bootstrap
a90ef4bf 25490configure-readline: stage_current
4f0ef2d8 25491@endif gcc-bootstrap
a90ef4bf
JM
25492@if readline
25493maybe-configure-readline: configure-readline
25494configure-readline:
0aed8855 25495 @: $(MAKE); $(unstage)
c52c6897 25496 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25498 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25499 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25500 $(HOST_EXPORTS) \
a90ef4bf
JM
25501 echo Configuring in $(HOST_SUBDIR)/readline; \
25502 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25503 case $(srcdir) in \
b00612cc 25504 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25505 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25506 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25507 esac; \
1b6c0831
L
25508 module_srcdir=readline; \
25509 $(SHELL) \
25510 $$s/$$module_srcdir/configure \
25511 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25512 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25513 --target=${target_alias} \
2a4cbe27 25514 || exit 1
a90ef4bf 25515@endif readline
2a4cbe27 25516
a7254363
PB
25517
25518
d545f33b
PB
25519
25520
a90ef4bf
JM
25521.PHONY: all-readline maybe-all-readline
25522maybe-all-readline:
4f0ef2d8 25523@if gcc-bootstrap
a90ef4bf 25524all-readline: stage_current
4f0ef2d8 25525@endif gcc-bootstrap
a90ef4bf
JM
25526@if readline
25527TARGET-readline=all
25528maybe-all-readline: all-readline
25529all-readline: configure-readline
0aed8855 25530 @: $(MAKE); $(unstage)
4fa63067
NN
25531 @r=`${PWD_COMMAND}`; export r; \
25532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25533 $(HOST_EXPORTS) \
a90ef4bf 25534 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25535 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25536 $(TARGET-readline))
25537@endif readline
2a4cbe27 25538
a7254363 25539
d545f33b
PB
25540
25541
a90ef4bf
JM
25542.PHONY: check-readline maybe-check-readline
25543maybe-check-readline:
25544@if readline
25545maybe-check-readline: check-readline
2a4cbe27 25546
a90ef4bf 25547check-readline:
0aed8855 25548 @: $(MAKE); $(unstage)
4fa63067 25549 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25551 $(HOST_EXPORTS) \
a90ef4bf 25552 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25553 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25554
a90ef4bf 25555@endif readline
2a4cbe27 25556
a90ef4bf
JM
25557.PHONY: install-readline maybe-install-readline
25558maybe-install-readline:
25559@if readline
25560maybe-install-readline: install-readline
2a4cbe27 25561
a90ef4bf 25562install-readline: installdirs
0aed8855 25563 @: $(MAKE); $(unstage)
4fa63067
NN
25564 @r=`${PWD_COMMAND}`; export r; \
25565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25566 $(HOST_EXPORTS) \
a90ef4bf 25567 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25568 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25569
a90ef4bf 25570@endif readline
9b980aa1 25571
a90ef4bf
JM
25572.PHONY: install-strip-readline maybe-install-strip-readline
25573maybe-install-strip-readline:
25574@if readline
25575maybe-install-strip-readline: install-strip-readline
25576
25577install-strip-readline: installdirs
9b980aa1
RW
25578 @: $(MAKE); $(unstage)
25579 @r=`${PWD_COMMAND}`; export r; \
25580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25581 $(HOST_EXPORTS) \
a90ef4bf 25582 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25583 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25584
a90ef4bf 25585@endif readline
9b980aa1 25586
56a8fe78 25587# Other targets (info, dvi, pdf, etc.)
4fa63067 25588
a90ef4bf
JM
25589.PHONY: maybe-info-readline info-readline
25590maybe-info-readline:
25591@if readline
25592maybe-info-readline: info-readline
4fa63067 25593
a90ef4bf
JM
25594info-readline: \
25595 configure-readline
0aed8855 25596 @: $(MAKE); $(unstage)
a90ef4bf 25597 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25598 r=`${PWD_COMMAND}`; export r; \
25599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25600 $(HOST_EXPORTS) \
b813574b 25601 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25603 done; \
22121df0 25604 echo "Doing info in readline"; \
a90ef4bf 25605 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25608 "RANLIB=$${RANLIB}" \
0c24b341 25609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25610 info) \
2a4cbe27
NN
25611 || exit 1
25612
a90ef4bf 25613@endif readline
2a4cbe27 25614
a90ef4bf
JM
25615.PHONY: maybe-dvi-readline dvi-readline
25616maybe-dvi-readline:
25617@if readline
25618maybe-dvi-readline: dvi-readline
2a4cbe27 25619
a90ef4bf
JM
25620dvi-readline: \
25621 configure-readline
0aed8855 25622 @: $(MAKE); $(unstage)
a90ef4bf 25623 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25624 r=`${PWD_COMMAND}`; export r; \
25625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25626 $(HOST_EXPORTS) \
b813574b 25627 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25629 done; \
22121df0 25630 echo "Doing dvi in readline"; \
a90ef4bf 25631 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25634 "RANLIB=$${RANLIB}" \
0c24b341 25635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25636 dvi) \
2a4cbe27
NN
25637 || exit 1
25638
a90ef4bf 25639@endif readline
2a4cbe27 25640
a90ef4bf
JM
25641.PHONY: maybe-pdf-readline pdf-readline
25642maybe-pdf-readline:
25643@if readline
25644maybe-pdf-readline: pdf-readline
56a8fe78 25645
a90ef4bf
JM
25646pdf-readline: \
25647 configure-readline
56a8fe78 25648 @: $(MAKE); $(unstage)
a90ef4bf 25649 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25650 r=`${PWD_COMMAND}`; export r; \
25651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25652 $(HOST_EXPORTS) \
25653 for flag in $(EXTRA_HOST_FLAGS) ; do \
25654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25655 done; \
22121df0 25656 echo "Doing pdf in readline"; \
a90ef4bf 25657 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25660 "RANLIB=$${RANLIB}" \
0c24b341 25661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25662 pdf) \
25663 || exit 1
25664
a90ef4bf 25665@endif readline
56a8fe78 25666
a90ef4bf
JM
25667.PHONY: maybe-html-readline html-readline
25668maybe-html-readline:
25669@if readline
25670maybe-html-readline: html-readline
6d389afc 25671
a90ef4bf
JM
25672html-readline: \
25673 configure-readline
0aed8855 25674 @: $(MAKE); $(unstage)
a90ef4bf 25675 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25676 r=`${PWD_COMMAND}`; export r; \
25677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25678 $(HOST_EXPORTS) \
25679 for flag in $(EXTRA_HOST_FLAGS) ; do \
25680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25681 done; \
22121df0 25682 echo "Doing html in readline"; \
a90ef4bf 25683 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25686 "RANLIB=$${RANLIB}" \
0c24b341 25687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25688 html) \
25689 || exit 1
25690
a90ef4bf 25691@endif readline
6d389afc 25692
a90ef4bf
JM
25693.PHONY: maybe-TAGS-readline TAGS-readline
25694maybe-TAGS-readline:
25695@if readline
25696maybe-TAGS-readline: TAGS-readline
2a4cbe27 25697
a90ef4bf
JM
25698TAGS-readline: \
25699 configure-readline
0aed8855 25700 @: $(MAKE); $(unstage)
a90ef4bf 25701 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25702 r=`${PWD_COMMAND}`; export r; \
25703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25704 $(HOST_EXPORTS) \
b813574b 25705 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25707 done; \
22121df0 25708 echo "Doing TAGS in readline"; \
a90ef4bf 25709 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25712 "RANLIB=$${RANLIB}" \
0c24b341 25713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25714 TAGS) \
2a4cbe27
NN
25715 || exit 1
25716
a90ef4bf 25717@endif readline
2a4cbe27 25718
a90ef4bf
JM
25719.PHONY: maybe-install-info-readline install-info-readline
25720maybe-install-info-readline:
25721@if readline
25722maybe-install-info-readline: install-info-readline
2a4cbe27 25723
a90ef4bf
JM
25724install-info-readline: \
25725 configure-readline \
25726 info-readline
0aed8855 25727 @: $(MAKE); $(unstage)
a90ef4bf 25728 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25729 r=`${PWD_COMMAND}`; export r; \
25730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25731 $(HOST_EXPORTS) \
b813574b 25732 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25734 done; \
22121df0 25735 echo "Doing install-info in readline"; \
a90ef4bf 25736 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25739 "RANLIB=$${RANLIB}" \
0c24b341 25740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25741 install-info) \
2a4cbe27
NN
25742 || exit 1
25743
a90ef4bf 25744@endif readline
2a4cbe27 25745
a90ef4bf
JM
25746.PHONY: maybe-install-pdf-readline install-pdf-readline
25747maybe-install-pdf-readline:
25748@if readline
25749maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25750
a90ef4bf
JM
25751install-pdf-readline: \
25752 configure-readline \
25753 pdf-readline
a3ca38d2 25754 @: $(MAKE); $(unstage)
a90ef4bf 25755 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25756 r=`${PWD_COMMAND}`; export r; \
25757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25758 $(HOST_EXPORTS) \
25759 for flag in $(EXTRA_HOST_FLAGS) ; do \
25760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25761 done; \
22121df0 25762 echo "Doing install-pdf in readline"; \
a90ef4bf 25763 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25766 "RANLIB=$${RANLIB}" \
0c24b341 25767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25768 install-pdf) \
25769 || exit 1
25770
a90ef4bf 25771@endif readline
a3ca38d2 25772
a90ef4bf
JM
25773.PHONY: maybe-install-html-readline install-html-readline
25774maybe-install-html-readline:
25775@if readline
25776maybe-install-html-readline: install-html-readline
108a6f8e 25777
a90ef4bf
JM
25778install-html-readline: \
25779 configure-readline \
25780 html-readline
108a6f8e 25781 @: $(MAKE); $(unstage)
a90ef4bf 25782 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25783 r=`${PWD_COMMAND}`; export r; \
25784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25785 $(HOST_EXPORTS) \
25786 for flag in $(EXTRA_HOST_FLAGS) ; do \
25787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25788 done; \
22121df0 25789 echo "Doing install-html in readline"; \
a90ef4bf 25790 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25793 "RANLIB=$${RANLIB}" \
0c24b341 25794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25795 install-html) \
25796 || exit 1
25797
a90ef4bf 25798@endif readline
108a6f8e 25799
a90ef4bf
JM
25800.PHONY: maybe-installcheck-readline installcheck-readline
25801maybe-installcheck-readline:
25802@if readline
25803maybe-installcheck-readline: installcheck-readline
2a4cbe27 25804
a90ef4bf
JM
25805installcheck-readline: \
25806 configure-readline
0aed8855 25807 @: $(MAKE); $(unstage)
a90ef4bf 25808 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25809 r=`${PWD_COMMAND}`; export r; \
25810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25811 $(HOST_EXPORTS) \
b813574b 25812 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25814 done; \
22121df0 25815 echo "Doing installcheck in readline"; \
a90ef4bf 25816 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25819 "RANLIB=$${RANLIB}" \
0c24b341 25820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25821 installcheck) \
2a4cbe27
NN
25822 || exit 1
25823
a90ef4bf 25824@endif readline
2a4cbe27 25825
a90ef4bf
JM
25826.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25827maybe-mostlyclean-readline:
25828@if readline
25829maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25830
a90ef4bf 25831mostlyclean-readline:
0aed8855 25832 @: $(MAKE); $(unstage)
a90ef4bf 25833 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25834 r=`${PWD_COMMAND}`; export r; \
25835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25836 $(HOST_EXPORTS) \
b813574b 25837 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25839 done; \
22121df0 25840 echo "Doing mostlyclean in readline"; \
a90ef4bf 25841 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25844 "RANLIB=$${RANLIB}" \
0c24b341 25845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25846 mostlyclean) \
2a4cbe27
NN
25847 || exit 1
25848
a90ef4bf 25849@endif readline
2a4cbe27 25850
a90ef4bf
JM
25851.PHONY: maybe-clean-readline clean-readline
25852maybe-clean-readline:
25853@if readline
25854maybe-clean-readline: clean-readline
2a4cbe27 25855
a90ef4bf 25856clean-readline:
0aed8855 25857 @: $(MAKE); $(unstage)
a90ef4bf 25858 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25859 r=`${PWD_COMMAND}`; export r; \
25860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25861 $(HOST_EXPORTS) \
b813574b 25862 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25864 done; \
22121df0 25865 echo "Doing clean in readline"; \
a90ef4bf 25866 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25869 "RANLIB=$${RANLIB}" \
0c24b341 25870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25871 clean) \
2a4cbe27
NN
25872 || exit 1
25873
a90ef4bf 25874@endif readline
2a4cbe27 25875
a90ef4bf
JM
25876.PHONY: maybe-distclean-readline distclean-readline
25877maybe-distclean-readline:
25878@if readline
25879maybe-distclean-readline: distclean-readline
2a4cbe27 25880
a90ef4bf 25881distclean-readline:
0aed8855 25882 @: $(MAKE); $(unstage)
a90ef4bf 25883 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25884 r=`${PWD_COMMAND}`; export r; \
25885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25886 $(HOST_EXPORTS) \
b813574b 25887 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25889 done; \
22121df0 25890 echo "Doing distclean in readline"; \
a90ef4bf 25891 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25894 "RANLIB=$${RANLIB}" \
0c24b341 25895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25896 distclean) \
2a4cbe27
NN
25897 || exit 1
25898
a90ef4bf 25899@endif readline
2a4cbe27 25900
a90ef4bf
JM
25901.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25902maybe-maintainer-clean-readline:
25903@if readline
25904maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 25905
a90ef4bf 25906maintainer-clean-readline:
0aed8855 25907 @: $(MAKE); $(unstage)
a90ef4bf 25908 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25909 r=`${PWD_COMMAND}`; export r; \
25910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25911 $(HOST_EXPORTS) \
b813574b 25912 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25914 done; \
22121df0 25915 echo "Doing maintainer-clean in readline"; \
a90ef4bf 25916 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25919 "RANLIB=$${RANLIB}" \
0c24b341 25920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25921 maintainer-clean) \
2a4cbe27
NN
25922 || exit 1
25923
a90ef4bf 25924@endif readline
2a4cbe27 25925
2a4cbe27 25926
a7254363 25927
a90ef4bf
JM
25928.PHONY: configure-sid maybe-configure-sid
25929maybe-configure-sid:
4f0ef2d8 25930@if gcc-bootstrap
a90ef4bf 25931configure-sid: stage_current
4f0ef2d8 25932@endif gcc-bootstrap
a90ef4bf
JM
25933@if sid
25934maybe-configure-sid: configure-sid
25935configure-sid:
0aed8855 25936 @: $(MAKE); $(unstage)
c52c6897 25937 @r=`${PWD_COMMAND}`; export r; \
4fa63067 25938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25939 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 25940 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 25941 $(HOST_EXPORTS) \
a90ef4bf
JM
25942 echo Configuring in $(HOST_SUBDIR)/sid; \
25943 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 25944 case $(srcdir) in \
b00612cc 25945 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25946 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 25947 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25948 esac; \
1b6c0831
L
25949 module_srcdir=sid; \
25950 $(SHELL) \
25951 $$s/$$module_srcdir/configure \
25952 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25953 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25954 --target=${target_alias} \
4fa63067 25955 || exit 1
a90ef4bf 25956@endif sid
2a4cbe27 25957
a7254363
PB
25958
25959
d545f33b
PB
25960
25961
a90ef4bf
JM
25962.PHONY: all-sid maybe-all-sid
25963maybe-all-sid:
4f0ef2d8 25964@if gcc-bootstrap
a90ef4bf 25965all-sid: stage_current
4f0ef2d8 25966@endif gcc-bootstrap
a90ef4bf
JM
25967@if sid
25968TARGET-sid=all
25969maybe-all-sid: all-sid
25970all-sid: configure-sid
0aed8855 25971 @: $(MAKE); $(unstage)
4fa63067
NN
25972 @r=`${PWD_COMMAND}`; export r; \
25973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25974 $(HOST_EXPORTS) \
a90ef4bf 25975 (cd $(HOST_SUBDIR)/sid && \
b3676d82 25976 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25977 $(TARGET-sid))
25978@endif sid
2a4cbe27 25979
a7254363 25980
d545f33b
PB
25981
25982
a90ef4bf
JM
25983.PHONY: check-sid maybe-check-sid
25984maybe-check-sid:
25985@if sid
25986maybe-check-sid: check-sid
2a4cbe27 25987
a90ef4bf 25988check-sid:
0aed8855 25989 @: $(MAKE); $(unstage)
4fa63067 25990 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25992 $(HOST_EXPORTS) \
a90ef4bf 25993 (cd $(HOST_SUBDIR)/sid && \
b00612cc 25994 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25995
a90ef4bf 25996@endif sid
2a4cbe27 25997
a90ef4bf
JM
25998.PHONY: install-sid maybe-install-sid
25999maybe-install-sid:
26000@if sid
26001maybe-install-sid: install-sid
2a4cbe27 26002
a90ef4bf 26003install-sid: installdirs
0aed8855 26004 @: $(MAKE); $(unstage)
4fa63067 26005 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26007 $(HOST_EXPORTS) \
a90ef4bf 26008 (cd $(HOST_SUBDIR)/sid && \
2da12f12 26009 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 26010
a90ef4bf 26011@endif sid
2a4cbe27 26012
a90ef4bf
JM
26013.PHONY: install-strip-sid maybe-install-strip-sid
26014maybe-install-strip-sid:
26015@if sid
26016maybe-install-strip-sid: install-strip-sid
9b980aa1 26017
a90ef4bf 26018install-strip-sid: installdirs
9b980aa1
RW
26019 @: $(MAKE); $(unstage)
26020 @r=`${PWD_COMMAND}`; export r; \
26021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26022 $(HOST_EXPORTS) \
a90ef4bf 26023 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
26024 $(MAKE) $(FLAGS_TO_PASS) install-strip)
26025
a90ef4bf 26026@endif sid
9b980aa1 26027
56a8fe78 26028# Other targets (info, dvi, pdf, etc.)
2a4cbe27 26029
a90ef4bf
JM
26030.PHONY: maybe-info-sid info-sid
26031maybe-info-sid:
26032@if sid
26033maybe-info-sid: info-sid
4fa63067 26034
a90ef4bf
JM
26035info-sid: \
26036 configure-sid
0aed8855 26037 @: $(MAKE); $(unstage)
a90ef4bf 26038 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26039 r=`${PWD_COMMAND}`; export r; \
26040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26041 $(HOST_EXPORTS) \
b813574b 26042 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26044 done; \
22121df0 26045 echo "Doing info in sid"; \
a90ef4bf 26046 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26049 "RANLIB=$${RANLIB}" \
0c24b341 26050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26051 info) \
2a4cbe27
NN
26052 || exit 1
26053
a90ef4bf 26054@endif sid
2a4cbe27 26055
a90ef4bf
JM
26056.PHONY: maybe-dvi-sid dvi-sid
26057maybe-dvi-sid:
26058@if sid
26059maybe-dvi-sid: dvi-sid
2a4cbe27 26060
a90ef4bf
JM
26061dvi-sid: \
26062 configure-sid
0aed8855 26063 @: $(MAKE); $(unstage)
a90ef4bf 26064 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26065 r=`${PWD_COMMAND}`; export r; \
26066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26067 $(HOST_EXPORTS) \
b813574b 26068 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26070 done; \
22121df0 26071 echo "Doing dvi in sid"; \
a90ef4bf 26072 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26075 "RANLIB=$${RANLIB}" \
0c24b341 26076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26077 dvi) \
2a4cbe27
NN
26078 || exit 1
26079
a90ef4bf 26080@endif sid
2a4cbe27 26081
a90ef4bf
JM
26082.PHONY: maybe-pdf-sid pdf-sid
26083maybe-pdf-sid:
26084@if sid
26085maybe-pdf-sid: pdf-sid
56a8fe78 26086
a90ef4bf
JM
26087pdf-sid: \
26088 configure-sid
56a8fe78 26089 @: $(MAKE); $(unstage)
a90ef4bf 26090 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
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 pdf in sid"; \
a90ef4bf 26098 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
26099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26101 "RANLIB=$${RANLIB}" \
0c24b341 26102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26103 pdf) \
26104 || exit 1
26105
a90ef4bf 26106@endif sid
56a8fe78 26107
a90ef4bf
JM
26108.PHONY: maybe-html-sid html-sid
26109maybe-html-sid:
26110@if sid
26111maybe-html-sid: html-sid
6d389afc 26112
a90ef4bf
JM
26113html-sid: \
26114 configure-sid
0aed8855 26115 @: $(MAKE); $(unstage)
a90ef4bf 26116 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
26117 r=`${PWD_COMMAND}`; export r; \
26118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26119 $(HOST_EXPORTS) \
26120 for flag in $(EXTRA_HOST_FLAGS) ; do \
26121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26122 done; \
22121df0 26123 echo "Doing html in sid"; \
a90ef4bf 26124 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
26125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26127 "RANLIB=$${RANLIB}" \
0c24b341 26128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26129 html) \
26130 || exit 1
26131
a90ef4bf 26132@endif sid
6d389afc 26133
a90ef4bf
JM
26134.PHONY: maybe-TAGS-sid TAGS-sid
26135maybe-TAGS-sid:
26136@if sid
26137maybe-TAGS-sid: TAGS-sid
2a4cbe27 26138
a90ef4bf
JM
26139TAGS-sid: \
26140 configure-sid
0aed8855 26141 @: $(MAKE); $(unstage)
a90ef4bf 26142 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26143 r=`${PWD_COMMAND}`; export r; \
26144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26145 $(HOST_EXPORTS) \
b813574b 26146 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26148 done; \
22121df0 26149 echo "Doing TAGS in sid"; \
a90ef4bf 26150 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26153 "RANLIB=$${RANLIB}" \
0c24b341 26154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26155 TAGS) \
2a4cbe27
NN
26156 || exit 1
26157
a90ef4bf 26158@endif sid
2a4cbe27 26159
a90ef4bf
JM
26160.PHONY: maybe-install-info-sid install-info-sid
26161maybe-install-info-sid:
26162@if sid
26163maybe-install-info-sid: install-info-sid
2a4cbe27 26164
a90ef4bf
JM
26165install-info-sid: \
26166 configure-sid \
26167 info-sid
0aed8855 26168 @: $(MAKE); $(unstage)
a90ef4bf 26169 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26170 r=`${PWD_COMMAND}`; export r; \
26171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26172 $(HOST_EXPORTS) \
b813574b 26173 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26175 done; \
22121df0 26176 echo "Doing install-info in sid"; \
a90ef4bf 26177 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26180 "RANLIB=$${RANLIB}" \
0c24b341 26181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26182 install-info) \
2a4cbe27
NN
26183 || exit 1
26184
a90ef4bf 26185@endif sid
2a4cbe27 26186
a90ef4bf
JM
26187.PHONY: maybe-install-pdf-sid install-pdf-sid
26188maybe-install-pdf-sid:
26189@if sid
26190maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26191
a90ef4bf
JM
26192install-pdf-sid: \
26193 configure-sid \
26194 pdf-sid
a3ca38d2 26195 @: $(MAKE); $(unstage)
a90ef4bf 26196 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26197 r=`${PWD_COMMAND}`; export r; \
26198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26199 $(HOST_EXPORTS) \
26200 for flag in $(EXTRA_HOST_FLAGS) ; do \
26201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26202 done; \
22121df0 26203 echo "Doing install-pdf in sid"; \
a90ef4bf 26204 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26207 "RANLIB=$${RANLIB}" \
0c24b341 26208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26209 install-pdf) \
26210 || exit 1
26211
a90ef4bf 26212@endif sid
a3ca38d2 26213
a90ef4bf
JM
26214.PHONY: maybe-install-html-sid install-html-sid
26215maybe-install-html-sid:
26216@if sid
26217maybe-install-html-sid: install-html-sid
108a6f8e 26218
a90ef4bf
JM
26219install-html-sid: \
26220 configure-sid \
26221 html-sid
108a6f8e 26222 @: $(MAKE); $(unstage)
a90ef4bf 26223 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26224 r=`${PWD_COMMAND}`; export r; \
26225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26226 $(HOST_EXPORTS) \
26227 for flag in $(EXTRA_HOST_FLAGS) ; do \
26228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26229 done; \
22121df0 26230 echo "Doing install-html in sid"; \
a90ef4bf 26231 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26234 "RANLIB=$${RANLIB}" \
0c24b341 26235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26236 install-html) \
26237 || exit 1
26238
a90ef4bf 26239@endif sid
108a6f8e 26240
a90ef4bf
JM
26241.PHONY: maybe-installcheck-sid installcheck-sid
26242maybe-installcheck-sid:
26243@if sid
26244maybe-installcheck-sid: installcheck-sid
2a4cbe27 26245
a90ef4bf
JM
26246installcheck-sid: \
26247 configure-sid
0aed8855 26248 @: $(MAKE); $(unstage)
a90ef4bf 26249 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26250 r=`${PWD_COMMAND}`; export r; \
26251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26252 $(HOST_EXPORTS) \
b813574b 26253 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26255 done; \
22121df0 26256 echo "Doing installcheck in sid"; \
a90ef4bf 26257 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26260 "RANLIB=$${RANLIB}" \
0c24b341 26261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26262 installcheck) \
2a4cbe27
NN
26263 || exit 1
26264
a90ef4bf 26265@endif sid
2a4cbe27 26266
a90ef4bf
JM
26267.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26268maybe-mostlyclean-sid:
26269@if sid
26270maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26271
a90ef4bf 26272mostlyclean-sid:
0aed8855 26273 @: $(MAKE); $(unstage)
a90ef4bf 26274 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26275 r=`${PWD_COMMAND}`; export r; \
26276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26277 $(HOST_EXPORTS) \
b813574b 26278 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26280 done; \
22121df0 26281 echo "Doing mostlyclean in sid"; \
a90ef4bf 26282 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26285 "RANLIB=$${RANLIB}" \
0c24b341 26286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26287 mostlyclean) \
2a4cbe27
NN
26288 || exit 1
26289
a90ef4bf 26290@endif sid
2a4cbe27 26291
a90ef4bf
JM
26292.PHONY: maybe-clean-sid clean-sid
26293maybe-clean-sid:
26294@if sid
26295maybe-clean-sid: clean-sid
2a4cbe27 26296
a90ef4bf 26297clean-sid:
0aed8855 26298 @: $(MAKE); $(unstage)
a90ef4bf 26299 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26300 r=`${PWD_COMMAND}`; export r; \
26301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26302 $(HOST_EXPORTS) \
b813574b 26303 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26305 done; \
22121df0 26306 echo "Doing clean in sid"; \
a90ef4bf 26307 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26310 "RANLIB=$${RANLIB}" \
0c24b341 26311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26312 clean) \
2a4cbe27
NN
26313 || exit 1
26314
a90ef4bf 26315@endif sid
2a4cbe27 26316
a90ef4bf
JM
26317.PHONY: maybe-distclean-sid distclean-sid
26318maybe-distclean-sid:
26319@if sid
26320maybe-distclean-sid: distclean-sid
2a4cbe27 26321
a90ef4bf 26322distclean-sid:
0aed8855 26323 @: $(MAKE); $(unstage)
a90ef4bf 26324 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26325 r=`${PWD_COMMAND}`; export r; \
26326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26327 $(HOST_EXPORTS) \
b813574b 26328 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26330 done; \
22121df0 26331 echo "Doing distclean in sid"; \
a90ef4bf 26332 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26335 "RANLIB=$${RANLIB}" \
0c24b341 26336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26337 distclean) \
2a4cbe27
NN
26338 || exit 1
26339
a90ef4bf 26340@endif sid
2a4cbe27 26341
a90ef4bf
JM
26342.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26343maybe-maintainer-clean-sid:
26344@if sid
26345maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26346
a90ef4bf 26347maintainer-clean-sid:
0aed8855 26348 @: $(MAKE); $(unstage)
a90ef4bf 26349 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26350 r=`${PWD_COMMAND}`; export r; \
26351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26352 $(HOST_EXPORTS) \
b813574b 26353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26355 done; \
22121df0 26356 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26357 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26360 "RANLIB=$${RANLIB}" \
0c24b341 26361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26362 maintainer-clean) \
2a4cbe27
NN
26363 || exit 1
26364
a90ef4bf 26365@endif sid
2a4cbe27 26366
a2592b1b 26367
a7254363 26368
a90ef4bf
JM
26369.PHONY: configure-sim maybe-configure-sim
26370maybe-configure-sim:
4f0ef2d8 26371@if gcc-bootstrap
a90ef4bf 26372configure-sim: stage_current
4f0ef2d8 26373@endif gcc-bootstrap
a90ef4bf
JM
26374@if sim
26375maybe-configure-sim: configure-sim
26376configure-sim:
26377 @: $(MAKE); $(unstage)
c52c6897
PB
26378 @r=`${PWD_COMMAND}`; export r; \
26379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26380 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26381 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26382 $(HOST_EXPORTS) \
a90ef4bf
JM
26383 echo Configuring in $(HOST_SUBDIR)/sim; \
26384 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26385 case $(srcdir) in \
b00612cc 26386 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26387 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26388 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26389 esac; \
1b6c0831
L
26390 module_srcdir=sim; \
26391 $(SHELL) \
26392 $$s/$$module_srcdir/configure \
26393 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26394 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26395 --target=${target_alias} \
a2592b1b 26396 || exit 1
a90ef4bf 26397@endif sim
a2592b1b 26398
a7254363
PB
26399
26400
a90ef4bf
JM
26401
26402
26403.PHONY: all-sim maybe-all-sim
26404maybe-all-sim:
26405@if gcc-bootstrap
26406all-sim: stage_current
26407@endif gcc-bootstrap
26408@if sim
26409TARGET-sim=all
26410maybe-all-sim: all-sim
26411all-sim: configure-sim
26412 @: $(MAKE); $(unstage)
c52c6897
PB
26413 @r=`${PWD_COMMAND}`; export r; \
26414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26415 $(HOST_EXPORTS) \
26416 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26417 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26418 $(TARGET-sim))
26419@endif sim
d545f33b 26420
a90ef4bf
JM
26421
26422
26423
26424.PHONY: check-sim maybe-check-sim
26425maybe-check-sim:
26426@if sim
26427maybe-check-sim: check-sim
26428
26429check-sim:
26430 @: $(MAKE); $(unstage)
c52c6897
PB
26431 @r=`${PWD_COMMAND}`; export r; \
26432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26433 $(HOST_EXPORTS) \
a90ef4bf
JM
26434 (cd $(HOST_SUBDIR)/sim && \
26435 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26436
a90ef4bf
JM
26437@endif sim
26438
26439.PHONY: install-sim maybe-install-sim
26440maybe-install-sim:
26441@if sim
26442maybe-install-sim: install-sim
26443
26444install-sim: installdirs
26445 @: $(MAKE); $(unstage)
c52c6897
PB
26446 @r=`${PWD_COMMAND}`; export r; \
26447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26448 $(HOST_EXPORTS) \
a90ef4bf
JM
26449 (cd $(HOST_SUBDIR)/sim && \
26450 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26451
a90ef4bf
JM
26452@endif sim
26453
26454.PHONY: install-strip-sim maybe-install-strip-sim
26455maybe-install-strip-sim:
26456@if sim
26457maybe-install-strip-sim: install-strip-sim
26458
26459install-strip-sim: installdirs
26460 @: $(MAKE); $(unstage)
c52c6897
PB
26461 @r=`${PWD_COMMAND}`; export r; \
26462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26463 $(HOST_EXPORTS) \
a90ef4bf
JM
26464 (cd $(HOST_SUBDIR)/sim && \
26465 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26466
a90ef4bf 26467@endif sim
9b980aa1 26468
56a8fe78 26469# Other targets (info, dvi, pdf, etc.)
4fa63067 26470
a90ef4bf
JM
26471.PHONY: maybe-info-sim info-sim
26472maybe-info-sim:
26473@if sim
26474maybe-info-sim: info-sim
4fa63067 26475
a90ef4bf
JM
26476info-sim: \
26477 configure-sim
26478 @: $(MAKE); $(unstage)
26479 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26480 r=`${PWD_COMMAND}`; export r; \
26481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26482 $(HOST_EXPORTS) \
b813574b 26483 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26485 done; \
22121df0 26486 echo "Doing info in sim"; \
a90ef4bf 26487 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26490 "RANLIB=$${RANLIB}" \
0c24b341 26491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26492 info) \
2a4cbe27
NN
26493 || exit 1
26494
a90ef4bf 26495@endif sim
2a4cbe27 26496
a90ef4bf
JM
26497.PHONY: maybe-dvi-sim dvi-sim
26498maybe-dvi-sim:
26499@if sim
26500maybe-dvi-sim: dvi-sim
2a4cbe27 26501
a90ef4bf
JM
26502dvi-sim: \
26503 configure-sim
26504 @: $(MAKE); $(unstage)
26505 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26506 r=`${PWD_COMMAND}`; export r; \
b40e3958 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 dvi in sim"; \
a90ef4bf 26513 (cd $(HOST_SUBDIR)/sim && \
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 dvi) \
2a4cbe27
NN
26519 || exit 1
26520
a90ef4bf 26521@endif sim
2a4cbe27 26522
a90ef4bf
JM
26523.PHONY: maybe-pdf-sim pdf-sim
26524maybe-pdf-sim:
26525@if sim
26526maybe-pdf-sim: pdf-sim
56a8fe78 26527
a90ef4bf
JM
26528pdf-sim: \
26529 configure-sim
26530 @: $(MAKE); $(unstage)
26531 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26532 r=`${PWD_COMMAND}`; export r; \
26533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26534 $(HOST_EXPORTS) \
26535 for flag in $(EXTRA_HOST_FLAGS) ; do \
26536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26537 done; \
22121df0 26538 echo "Doing pdf in sim"; \
a90ef4bf 26539 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26542 "RANLIB=$${RANLIB}" \
0c24b341 26543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26544 pdf) \
26545 || exit 1
26546
a90ef4bf 26547@endif sim
56a8fe78 26548
a90ef4bf
JM
26549.PHONY: maybe-html-sim html-sim
26550maybe-html-sim:
26551@if sim
26552maybe-html-sim: html-sim
6d389afc 26553
a90ef4bf
JM
26554html-sim: \
26555 configure-sim
26556 @: $(MAKE); $(unstage)
26557 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26558 r=`${PWD_COMMAND}`; export r; \
26559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26560 $(HOST_EXPORTS) \
26561 for flag in $(EXTRA_HOST_FLAGS) ; do \
26562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26563 done; \
22121df0 26564 echo "Doing html in sim"; \
a90ef4bf 26565 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26568 "RANLIB=$${RANLIB}" \
0c24b341 26569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26570 html) \
26571 || exit 1
26572
a90ef4bf 26573@endif sim
6d389afc 26574
a90ef4bf
JM
26575.PHONY: maybe-TAGS-sim TAGS-sim
26576maybe-TAGS-sim:
26577@if sim
26578maybe-TAGS-sim: TAGS-sim
2a4cbe27 26579
a90ef4bf
JM
26580TAGS-sim: \
26581 configure-sim
26582 @: $(MAKE); $(unstage)
26583 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26584 r=`${PWD_COMMAND}`; export r; \
26585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26586 $(HOST_EXPORTS) \
b813574b 26587 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26589 done; \
22121df0 26590 echo "Doing TAGS in sim"; \
a90ef4bf 26591 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26594 "RANLIB=$${RANLIB}" \
0c24b341 26595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26596 TAGS) \
2a4cbe27
NN
26597 || exit 1
26598
a90ef4bf 26599@endif sim
2a4cbe27 26600
a90ef4bf
JM
26601.PHONY: maybe-install-info-sim install-info-sim
26602maybe-install-info-sim:
26603@if sim
26604maybe-install-info-sim: install-info-sim
2a4cbe27 26605
a90ef4bf
JM
26606install-info-sim: \
26607 configure-sim \
26608 info-sim
26609 @: $(MAKE); $(unstage)
26610 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26611 r=`${PWD_COMMAND}`; export r; \
26612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26613 $(HOST_EXPORTS) \
b813574b 26614 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26616 done; \
22121df0 26617 echo "Doing install-info in sim"; \
a90ef4bf
JM
26618 (cd $(HOST_SUBDIR)/sim && \
26619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26621 "RANLIB=$${RANLIB}" \
0c24b341 26622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26623 install-info) \
2a4cbe27
NN
26624 || exit 1
26625
a90ef4bf 26626@endif sim
2a4cbe27 26627
a90ef4bf
JM
26628.PHONY: maybe-install-pdf-sim install-pdf-sim
26629maybe-install-pdf-sim:
26630@if sim
26631maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26632
a90ef4bf
JM
26633install-pdf-sim: \
26634 configure-sim \
26635 pdf-sim
26636 @: $(MAKE); $(unstage)
26637 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26638 r=`${PWD_COMMAND}`; export r; \
26639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26640 $(HOST_EXPORTS) \
26641 for flag in $(EXTRA_HOST_FLAGS) ; do \
26642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26643 done; \
22121df0 26644 echo "Doing install-pdf in sim"; \
a90ef4bf 26645 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26648 "RANLIB=$${RANLIB}" \
0c24b341 26649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26650 install-pdf) \
26651 || exit 1
26652
a90ef4bf 26653@endif sim
a3ca38d2 26654
a90ef4bf
JM
26655.PHONY: maybe-install-html-sim install-html-sim
26656maybe-install-html-sim:
26657@if sim
26658maybe-install-html-sim: install-html-sim
108a6f8e 26659
a90ef4bf
JM
26660install-html-sim: \
26661 configure-sim \
26662 html-sim
26663 @: $(MAKE); $(unstage)
26664 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26665 r=`${PWD_COMMAND}`; export r; \
26666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26667 $(HOST_EXPORTS) \
26668 for flag in $(EXTRA_HOST_FLAGS) ; do \
26669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26670 done; \
22121df0 26671 echo "Doing install-html in sim"; \
a90ef4bf 26672 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26675 "RANLIB=$${RANLIB}" \
0c24b341 26676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26677 install-html) \
26678 || exit 1
26679
a90ef4bf 26680@endif sim
108a6f8e 26681
a90ef4bf
JM
26682.PHONY: maybe-installcheck-sim installcheck-sim
26683maybe-installcheck-sim:
26684@if sim
26685maybe-installcheck-sim: installcheck-sim
2a4cbe27 26686
a90ef4bf
JM
26687installcheck-sim: \
26688 configure-sim
26689 @: $(MAKE); $(unstage)
26690 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26691 r=`${PWD_COMMAND}`; export r; \
26692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26693 $(HOST_EXPORTS) \
b813574b 26694 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26696 done; \
22121df0 26697 echo "Doing installcheck in sim"; \
a90ef4bf 26698 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26701 "RANLIB=$${RANLIB}" \
0c24b341 26702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26703 installcheck) \
2a4cbe27
NN
26704 || exit 1
26705
a90ef4bf 26706@endif sim
2a4cbe27 26707
a90ef4bf
JM
26708.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26709maybe-mostlyclean-sim:
26710@if sim
26711maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26712
a90ef4bf
JM
26713mostlyclean-sim:
26714 @: $(MAKE); $(unstage)
26715 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26716 r=`${PWD_COMMAND}`; export r; \
26717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26718 $(HOST_EXPORTS) \
26719 for flag in $(EXTRA_HOST_FLAGS) ; do \
26720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26721 done; \
22121df0 26722 echo "Doing mostlyclean in sim"; \
a90ef4bf 26723 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26726 "RANLIB=$${RANLIB}" \
0c24b341 26727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26728 mostlyclean) \
26729 || exit 1
4fa63067 26730
a90ef4bf 26731@endif sim
4fa63067 26732
a90ef4bf
JM
26733.PHONY: maybe-clean-sim clean-sim
26734maybe-clean-sim:
26735@if sim
26736maybe-clean-sim: clean-sim
4fa63067 26737
a90ef4bf
JM
26738clean-sim:
26739 @: $(MAKE); $(unstage)
26740 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26741 r=`${PWD_COMMAND}`; export r; \
26742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26743 $(HOST_EXPORTS) \
b813574b 26744 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26746 done; \
22121df0 26747 echo "Doing clean in sim"; \
a90ef4bf 26748 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26751 "RANLIB=$${RANLIB}" \
0c24b341 26752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26753 clean) \
2a4cbe27
NN
26754 || exit 1
26755
a90ef4bf 26756@endif sim
2a4cbe27 26757
a90ef4bf
JM
26758.PHONY: maybe-distclean-sim distclean-sim
26759maybe-distclean-sim:
26760@if sim
26761maybe-distclean-sim: distclean-sim
2a4cbe27 26762
a90ef4bf
JM
26763distclean-sim:
26764 @: $(MAKE); $(unstage)
26765 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26766 r=`${PWD_COMMAND}`; export r; \
26767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26768 $(HOST_EXPORTS) \
b813574b 26769 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26771 done; \
22121df0 26772 echo "Doing distclean in sim"; \
a90ef4bf 26773 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26776 "RANLIB=$${RANLIB}" \
0c24b341 26777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26778 distclean) \
2a4cbe27
NN
26779 || exit 1
26780
a90ef4bf 26781@endif sim
2a4cbe27 26782
a90ef4bf
JM
26783.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26784maybe-maintainer-clean-sim:
26785@if sim
26786maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26787
a90ef4bf
JM
26788maintainer-clean-sim:
26789 @: $(MAKE); $(unstage)
26790 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26791 r=`${PWD_COMMAND}`; export r; \
26792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26793 $(HOST_EXPORTS) \
b813574b 26794 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26796 done; \
22121df0 26797 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26798 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26801 "RANLIB=$${RANLIB}" \
0c24b341 26802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26803 maintainer-clean) \
2a4cbe27
NN
26804 || exit 1
26805
a90ef4bf 26806@endif sim
2a4cbe27 26807
2a4cbe27 26808
a7254363 26809
a90ef4bf
JM
26810.PHONY: configure-texinfo maybe-configure-texinfo
26811maybe-configure-texinfo:
4f0ef2d8 26812@if gcc-bootstrap
a90ef4bf 26813configure-texinfo: stage_current
4f0ef2d8 26814@endif gcc-bootstrap
a90ef4bf
JM
26815@if texinfo
26816maybe-configure-texinfo: configure-texinfo
26817configure-texinfo:
0aed8855 26818 @: $(MAKE); $(unstage)
c52c6897 26819 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26821 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26822 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26823 $(HOST_EXPORTS) \
a90ef4bf
JM
26824 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26825 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26826 case $(srcdir) in \
b00612cc 26827 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26828 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26829 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26830 esac; \
1b6c0831
L
26831 module_srcdir=texinfo; \
26832 $(SHELL) \
26833 $$s/$$module_srcdir/configure \
26834 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26835 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26836 --target=${target_alias} \
2a4cbe27 26837 || exit 1
a90ef4bf 26838@endif texinfo
2a4cbe27 26839
a7254363
PB
26840
26841
d545f33b
PB
26842
26843
a90ef4bf
JM
26844.PHONY: all-texinfo maybe-all-texinfo
26845maybe-all-texinfo:
4f0ef2d8 26846@if gcc-bootstrap
a90ef4bf 26847all-texinfo: stage_current
4f0ef2d8 26848@endif gcc-bootstrap
a90ef4bf
JM
26849@if texinfo
26850TARGET-texinfo=all
26851maybe-all-texinfo: all-texinfo
26852all-texinfo: configure-texinfo
0aed8855 26853 @: $(MAKE); $(unstage)
4fa63067
NN
26854 @r=`${PWD_COMMAND}`; export r; \
26855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26856 $(HOST_EXPORTS) \
a90ef4bf 26857 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26858 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26859 $(TARGET-texinfo))
26860@endif texinfo
4fa63067 26861
a7254363 26862
d545f33b
PB
26863
26864
a90ef4bf
JM
26865.PHONY: check-texinfo maybe-check-texinfo
26866maybe-check-texinfo:
26867@if texinfo
26868maybe-check-texinfo: check-texinfo
2a4cbe27 26869
a90ef4bf 26870check-texinfo:
0aed8855 26871 @: $(MAKE); $(unstage)
4fa63067
NN
26872 @r=`${PWD_COMMAND}`; export r; \
26873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26874 $(HOST_EXPORTS) \
a90ef4bf 26875 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26876 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26877
a90ef4bf 26878@endif texinfo
4fa63067 26879
a90ef4bf
JM
26880.PHONY: install-texinfo maybe-install-texinfo
26881maybe-install-texinfo:
26882@if texinfo
26883maybe-install-texinfo: install-texinfo
4fa63067 26884
a90ef4bf 26885install-texinfo:
4fa63067 26886
a90ef4bf 26887@endif texinfo
4fa63067 26888
a90ef4bf
JM
26889.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26890maybe-install-strip-texinfo:
26891@if texinfo
26892maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26893
a90ef4bf 26894install-strip-texinfo:
9b980aa1 26895
a90ef4bf 26896@endif texinfo
9b980aa1 26897
56a8fe78 26898# Other targets (info, dvi, pdf, etc.)
4fa63067 26899
a90ef4bf
JM
26900.PHONY: maybe-info-texinfo info-texinfo
26901maybe-info-texinfo:
26902@if texinfo
26903maybe-info-texinfo: info-texinfo
4fa63067 26904
a90ef4bf
JM
26905info-texinfo: \
26906 configure-texinfo
0aed8855 26907 @: $(MAKE); $(unstage)
a90ef4bf 26908 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26909 r=`${PWD_COMMAND}`; export r; \
26910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26911 $(HOST_EXPORTS) \
b813574b 26912 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26914 done; \
22121df0 26915 echo "Doing info in texinfo"; \
a90ef4bf 26916 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26919 "RANLIB=$${RANLIB}" \
0c24b341 26920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26921 info) \
2a4cbe27
NN
26922 || exit 1
26923
a90ef4bf 26924@endif texinfo
2a4cbe27 26925
a90ef4bf
JM
26926.PHONY: maybe-dvi-texinfo dvi-texinfo
26927maybe-dvi-texinfo:
26928@if texinfo
26929maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 26930
a90ef4bf
JM
26931dvi-texinfo: \
26932 configure-texinfo
0aed8855 26933 @: $(MAKE); $(unstage)
a90ef4bf 26934 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
26935 r=`${PWD_COMMAND}`; export r; \
26936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26937 $(HOST_EXPORTS) \
b813574b 26938 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26940 done; \
22121df0 26941 echo "Doing dvi in texinfo"; \
a90ef4bf 26942 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
26943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26945 "RANLIB=$${RANLIB}" \
0c24b341 26946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26947 dvi) \
2a4cbe27
NN
26948 || exit 1
26949
a90ef4bf 26950@endif texinfo
2a4cbe27 26951
a90ef4bf
JM
26952.PHONY: maybe-pdf-texinfo pdf-texinfo
26953maybe-pdf-texinfo:
26954@if texinfo
26955maybe-pdf-texinfo: pdf-texinfo
56a8fe78 26956
a90ef4bf
JM
26957pdf-texinfo: \
26958 configure-texinfo
56a8fe78 26959 @: $(MAKE); $(unstage)
a90ef4bf 26960 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
26961 r=`${PWD_COMMAND}`; export r; \
26962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26963 $(HOST_EXPORTS) \
26964 for flag in $(EXTRA_HOST_FLAGS) ; do \
26965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26966 done; \
22121df0 26967 echo "Doing pdf in texinfo"; \
a90ef4bf 26968 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
26969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26971 "RANLIB=$${RANLIB}" \
0c24b341 26972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26973 pdf) \
26974 || exit 1
26975
a90ef4bf 26976@endif texinfo
56a8fe78 26977
a90ef4bf
JM
26978.PHONY: maybe-html-texinfo html-texinfo
26979maybe-html-texinfo:
26980@if texinfo
26981maybe-html-texinfo: html-texinfo
6d389afc 26982
a90ef4bf
JM
26983html-texinfo: \
26984 configure-texinfo
0aed8855 26985 @: $(MAKE); $(unstage)
a90ef4bf 26986 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
26987 r=`${PWD_COMMAND}`; export r; \
26988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26989 $(HOST_EXPORTS) \
26990 for flag in $(EXTRA_HOST_FLAGS) ; do \
26991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26992 done; \
22121df0 26993 echo "Doing html in texinfo"; \
a90ef4bf 26994 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
26995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26997 "RANLIB=$${RANLIB}" \
0c24b341 26998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26999 html) \
27000 || exit 1
27001
a90ef4bf 27002@endif texinfo
6d389afc 27003
a90ef4bf
JM
27004.PHONY: maybe-TAGS-texinfo TAGS-texinfo
27005maybe-TAGS-texinfo:
27006@if texinfo
27007maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 27008
a90ef4bf
JM
27009TAGS-texinfo: \
27010 configure-texinfo
0aed8855 27011 @: $(MAKE); $(unstage)
a90ef4bf 27012 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27013 r=`${PWD_COMMAND}`; export r; \
27014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27015 $(HOST_EXPORTS) \
b813574b 27016 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27018 done; \
22121df0 27019 echo "Doing TAGS in texinfo"; \
a90ef4bf 27020 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27023 "RANLIB=$${RANLIB}" \
0c24b341 27024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27025 TAGS) \
2a4cbe27
NN
27026 || exit 1
27027
a90ef4bf 27028@endif texinfo
2a4cbe27 27029
a90ef4bf
JM
27030.PHONY: maybe-install-info-texinfo install-info-texinfo
27031maybe-install-info-texinfo:
27032@if texinfo
27033maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 27034
a90ef4bf
JM
27035install-info-texinfo: \
27036 configure-texinfo \
27037 info-texinfo
0aed8855 27038 @: $(MAKE); $(unstage)
a90ef4bf 27039 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27040 r=`${PWD_COMMAND}`; export r; \
27041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27042 $(HOST_EXPORTS) \
b813574b 27043 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27045 done; \
22121df0 27046 echo "Doing install-info in texinfo"; \
a90ef4bf 27047 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27050 "RANLIB=$${RANLIB}" \
0c24b341 27051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27052 install-info) \
2a4cbe27
NN
27053 || exit 1
27054
a90ef4bf 27055@endif texinfo
2a4cbe27 27056
a90ef4bf
JM
27057.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
27058maybe-install-pdf-texinfo:
27059@if texinfo
27060maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 27061
a90ef4bf
JM
27062install-pdf-texinfo: \
27063 configure-texinfo \
27064 pdf-texinfo
a3ca38d2 27065 @: $(MAKE); $(unstage)
a90ef4bf 27066 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
27067 r=`${PWD_COMMAND}`; export r; \
27068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27069 $(HOST_EXPORTS) \
27070 for flag in $(EXTRA_HOST_FLAGS) ; do \
27071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27072 done; \
22121df0 27073 echo "Doing install-pdf in texinfo"; \
a90ef4bf 27074 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
27075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27077 "RANLIB=$${RANLIB}" \
0c24b341 27078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27079 install-pdf) \
27080 || exit 1
27081
a90ef4bf 27082@endif texinfo
a3ca38d2 27083
a90ef4bf
JM
27084.PHONY: maybe-install-html-texinfo install-html-texinfo
27085maybe-install-html-texinfo:
27086@if texinfo
27087maybe-install-html-texinfo: install-html-texinfo
108a6f8e 27088
a90ef4bf
JM
27089install-html-texinfo: \
27090 configure-texinfo \
27091 html-texinfo
108a6f8e 27092 @: $(MAKE); $(unstage)
a90ef4bf 27093 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
27094 r=`${PWD_COMMAND}`; export r; \
27095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27096 $(HOST_EXPORTS) \
27097 for flag in $(EXTRA_HOST_FLAGS) ; do \
27098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27099 done; \
22121df0 27100 echo "Doing install-html in texinfo"; \
a90ef4bf 27101 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
27102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27104 "RANLIB=$${RANLIB}" \
0c24b341 27105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27106 install-html) \
27107 || exit 1
27108
a90ef4bf 27109@endif texinfo
108a6f8e 27110
a90ef4bf
JM
27111.PHONY: maybe-installcheck-texinfo installcheck-texinfo
27112maybe-installcheck-texinfo:
27113@if texinfo
27114maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 27115
a90ef4bf
JM
27116installcheck-texinfo: \
27117 configure-texinfo
0aed8855 27118 @: $(MAKE); $(unstage)
a90ef4bf 27119 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27120 r=`${PWD_COMMAND}`; export r; \
27121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27122 $(HOST_EXPORTS) \
b813574b 27123 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27125 done; \
22121df0 27126 echo "Doing installcheck in texinfo"; \
a90ef4bf 27127 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27130 "RANLIB=$${RANLIB}" \
0c24b341 27131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27132 installcheck) \
2a4cbe27
NN
27133 || exit 1
27134
a90ef4bf 27135@endif texinfo
2a4cbe27 27136
a90ef4bf
JM
27137.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27138maybe-mostlyclean-texinfo:
27139@if texinfo
27140maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27141
a90ef4bf 27142mostlyclean-texinfo:
0aed8855 27143 @: $(MAKE); $(unstage)
a90ef4bf 27144 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27145 r=`${PWD_COMMAND}`; export r; \
27146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27147 $(HOST_EXPORTS) \
b813574b 27148 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27150 done; \
22121df0 27151 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27152 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27155 "RANLIB=$${RANLIB}" \
0c24b341 27156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27157 mostlyclean) \
2a4cbe27
NN
27158 || exit 1
27159
a90ef4bf 27160@endif texinfo
2a4cbe27 27161
a90ef4bf
JM
27162.PHONY: maybe-clean-texinfo clean-texinfo
27163maybe-clean-texinfo:
27164@if texinfo
27165maybe-clean-texinfo: clean-texinfo
2a4cbe27 27166
a90ef4bf 27167clean-texinfo:
0aed8855 27168 @: $(MAKE); $(unstage)
a90ef4bf 27169 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27170 r=`${PWD_COMMAND}`; export r; \
27171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27172 $(HOST_EXPORTS) \
b813574b 27173 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27175 done; \
22121df0 27176 echo "Doing clean in texinfo"; \
a90ef4bf 27177 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27180 "RANLIB=$${RANLIB}" \
0c24b341 27181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27182 clean) \
2a4cbe27
NN
27183 || exit 1
27184
a90ef4bf 27185@endif texinfo
2a4cbe27 27186
a90ef4bf
JM
27187.PHONY: maybe-distclean-texinfo distclean-texinfo
27188maybe-distclean-texinfo:
27189@if texinfo
27190maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27191
a90ef4bf 27192distclean-texinfo:
0aed8855 27193 @: $(MAKE); $(unstage)
a90ef4bf 27194 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27195 r=`${PWD_COMMAND}`; export r; \
27196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27197 $(HOST_EXPORTS) \
b813574b 27198 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27200 done; \
22121df0 27201 echo "Doing distclean in texinfo"; \
a90ef4bf 27202 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27205 "RANLIB=$${RANLIB}" \
0c24b341 27206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27207 distclean) \
2a4cbe27
NN
27208 || exit 1
27209
a90ef4bf 27210@endif texinfo
2a4cbe27 27211
a90ef4bf
JM
27212.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27213maybe-maintainer-clean-texinfo:
27214@if texinfo
27215maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27216
a90ef4bf 27217maintainer-clean-texinfo:
0aed8855 27218 @: $(MAKE); $(unstage)
a90ef4bf 27219 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27220 r=`${PWD_COMMAND}`; export r; \
27221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27222 $(HOST_EXPORTS) \
b813574b 27223 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27225 done; \
22121df0 27226 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27227 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27230 "RANLIB=$${RANLIB}" \
0c24b341 27231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27232 maintainer-clean) \
2a4cbe27
NN
27233 || exit 1
27234
a90ef4bf 27235@endif texinfo
2a4cbe27 27236
2a4cbe27 27237
a7254363 27238
a90ef4bf
JM
27239.PHONY: configure-zlib maybe-configure-zlib
27240maybe-configure-zlib:
4f0ef2d8 27241@if gcc-bootstrap
a90ef4bf 27242configure-zlib: stage_current
4f0ef2d8 27243@endif gcc-bootstrap
a90ef4bf
JM
27244@if zlib
27245maybe-configure-zlib: configure-zlib
27246configure-zlib:
c52c6897
PB
27247 @r=`${PWD_COMMAND}`; export r; \
27248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27249 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27250 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27251 $(HOST_EXPORTS) \
a90ef4bf
JM
27252 echo Configuring in $(HOST_SUBDIR)/zlib; \
27253 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27254 case $(srcdir) in \
b00612cc 27255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27256 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27258 esac; \
1b6c0831
L
27259 module_srcdir=zlib; \
27260 $(SHELL) \
27261 $$s/$$module_srcdir/configure \
27262 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27263 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27264 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27265 || exit 1
a90ef4bf 27266@endif zlib
04cf1b77 27267
a7254363
PB
27268
27269
a90ef4bf
JM
27270.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27271maybe-configure-stage1-zlib:
27272@if zlib-bootstrap
27273maybe-configure-stage1-zlib: configure-stage1-zlib
27274configure-stage1-zlib:
c52c6897 27275 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27276 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27277 @r=`${PWD_COMMAND}`; export r; \
27278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27279 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27280 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27281 $(HOST_EXPORTS) \
8ee82aff 27282 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27283 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27284 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27285 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27286 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27287 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27288 case $(srcdir) in \
27289 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27290 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27291 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27292 esac; \
1b6c0831
L
27293 module_srcdir=zlib; \
27294 $(SHELL) $$s/$$module_srcdir/configure \
27295 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27296 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27297 --target=${target_alias} \
27298 \
e81d5d05
L
27299 $(STAGE1_CONFIGURE_FLAGS) \
27300 @extra_host_zlib_configure_flags@
a90ef4bf 27301@endif zlib-bootstrap
d545f33b 27302
a90ef4bf
JM
27303.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27304maybe-configure-stage2-zlib:
27305@if zlib-bootstrap
27306maybe-configure-stage2-zlib: configure-stage2-zlib
27307configure-stage2-zlib:
c52c6897 27308 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27309 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27310 @r=`${PWD_COMMAND}`; export r; \
27311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27312 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27313 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27314 $(HOST_EXPORTS) \
1b05fbbd 27315 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27316 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27317 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27318 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27319 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27320 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27321 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27322 case $(srcdir) in \
27323 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27324 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27325 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27326 esac; \
1b6c0831
L
27327 module_srcdir=zlib; \
27328 $(SHELL) $$s/$$module_srcdir/configure \
27329 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27330 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27331 --target=${target_alias} \
22121df0 27332 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27333 $(STAGE2_CONFIGURE_FLAGS) \
27334 @extra_host_zlib_configure_flags@
a90ef4bf 27335@endif zlib-bootstrap
8520c408 27336
a90ef4bf
JM
27337.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27338maybe-configure-stage3-zlib:
27339@if zlib-bootstrap
27340maybe-configure-stage3-zlib: configure-stage3-zlib
27341configure-stage3-zlib:
c52c6897 27342 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27343 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27344 @r=`${PWD_COMMAND}`; export r; \
27345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27346 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27347 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27348 $(HOST_EXPORTS) \
1b05fbbd 27349 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27350 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27351 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27352 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27353 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27354 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27355 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27356 case $(srcdir) in \
27357 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27358 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27359 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27360 esac; \
1b6c0831
L
27361 module_srcdir=zlib; \
27362 $(SHELL) $$s/$$module_srcdir/configure \
27363 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27364 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27365 --target=${target_alias} \
22121df0 27366 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27367 $(STAGE3_CONFIGURE_FLAGS) \
27368 @extra_host_zlib_configure_flags@
a90ef4bf 27369@endif zlib-bootstrap
8520c408 27370
a90ef4bf
JM
27371.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27372maybe-configure-stage4-zlib:
27373@if zlib-bootstrap
27374maybe-configure-stage4-zlib: configure-stage4-zlib
27375configure-stage4-zlib:
c52c6897 27376 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27377 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27378 @r=`${PWD_COMMAND}`; export r; \
27379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27380 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27381 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27382 $(HOST_EXPORTS) \
1b05fbbd 27383 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27384 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27385 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27386 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27387 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27388 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27389 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27390 case $(srcdir) in \
27391 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27392 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27393 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27394 esac; \
1b6c0831
L
27395 module_srcdir=zlib; \
27396 $(SHELL) $$s/$$module_srcdir/configure \
27397 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27398 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27399 --target=${target_alias} \
22121df0 27400 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27401 $(STAGE4_CONFIGURE_FLAGS) \
27402 @extra_host_zlib_configure_flags@
a90ef4bf 27403@endif zlib-bootstrap
d545f33b 27404
a90ef4bf
JM
27405.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27406maybe-configure-stageprofile-zlib:
27407@if zlib-bootstrap
27408maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27409configure-stageprofile-zlib:
c52c6897 27410 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27411 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27412 @r=`${PWD_COMMAND}`; export r; \
27413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27414 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27415 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27416 $(HOST_EXPORTS) \
1b05fbbd
AO
27417 $(POSTSTAGE1_HOST_EXPORTS) \
27418 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27419 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27420 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27421 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27422 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27423 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27424 case $(srcdir) in \
27425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27426 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27428 esac; \
1b6c0831
L
27429 module_srcdir=zlib; \
27430 $(SHELL) $$s/$$module_srcdir/configure \
27431 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27432 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27433 --target=${target_alias} \
22121df0 27434 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27435 $(STAGEprofile_CONFIGURE_FLAGS) \
27436 @extra_host_zlib_configure_flags@
a90ef4bf 27437@endif zlib-bootstrap
d545f33b 27438
a90ef4bf
JM
27439.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27440maybe-configure-stagefeedback-zlib:
27441@if zlib-bootstrap
27442maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27443configure-stagefeedback-zlib:
c52c6897 27444 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27445 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27446 @r=`${PWD_COMMAND}`; export r; \
27447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27448 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27449 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27450 $(HOST_EXPORTS) \
1b05fbbd
AO
27451 $(POSTSTAGE1_HOST_EXPORTS) \
27452 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27453 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27454 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27455 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27456 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27457 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27458 case $(srcdir) in \
27459 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27460 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27461 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27462 esac; \
1b6c0831
L
27463 module_srcdir=zlib; \
27464 $(SHELL) $$s/$$module_srcdir/configure \
27465 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27466 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27467 --target=${target_alias} \
22121df0 27468 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27469 $(STAGEfeedback_CONFIGURE_FLAGS) \
27470 @extra_host_zlib_configure_flags@
a90ef4bf 27471@endif zlib-bootstrap
d545f33b
PB
27472
27473
27474
27475
27476
a90ef4bf
JM
27477.PHONY: all-zlib maybe-all-zlib
27478maybe-all-zlib:
4f0ef2d8 27479@if gcc-bootstrap
a90ef4bf 27480all-zlib: stage_current
4f0ef2d8 27481@endif gcc-bootstrap
a90ef4bf
JM
27482@if zlib
27483TARGET-zlib=all
27484maybe-all-zlib: all-zlib
27485all-zlib: configure-zlib
c52c6897 27486 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27488 $(HOST_EXPORTS) \
a90ef4bf 27489 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27490 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27491 $(TARGET-zlib))
27492@endif zlib
04cf1b77 27493
a7254363 27494
d545f33b 27495
a90ef4bf
JM
27496.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27497.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27498maybe-all-stage1-zlib:
27499maybe-clean-stage1-zlib:
27500@if zlib-bootstrap
27501maybe-all-stage1-zlib: all-stage1-zlib
27502all-stage1: all-stage1-zlib
27503TARGET-stage1-zlib = $(TARGET-zlib)
27504all-stage1-zlib: configure-stage1-zlib
c52c6897 27505 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27506 @r=`${PWD_COMMAND}`; export r; \
27507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27508 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27509 $(HOST_EXPORTS) \
a90ef4bf 27510 cd $(HOST_SUBDIR)/zlib && \
05a13254 27511 \
7f6ef0c0 27512 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27513 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27514 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27515 LIBCFLAGS="$(LIBCFLAGS)" \
27516 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27517 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27518 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27519 $(EXTRA_HOST_FLAGS) \
27520 $(STAGE1_FLAGS_TO_PASS) \
05a13254 27521 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27522 $(TARGET-stage1-zlib)
d545f33b 27523
a90ef4bf
JM
27524maybe-clean-stage1-zlib: clean-stage1-zlib
27525clean-stage1: clean-stage1-zlib
27526clean-stage1-zlib:
9dbaa842 27527 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27528 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27529 else \
a90ef4bf 27530 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27531 $(MAKE) stage1-start; \
27532 fi; \
a90ef4bf 27533 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27534 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27535 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27536@endif zlib-bootstrap
d545f33b
PB
27537
27538
a90ef4bf
JM
27539.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27540.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27541maybe-all-stage2-zlib:
27542maybe-clean-stage2-zlib:
27543@if zlib-bootstrap
27544maybe-all-stage2-zlib: all-stage2-zlib
27545all-stage2: all-stage2-zlib
27546TARGET-stage2-zlib = $(TARGET-zlib)
27547all-stage2-zlib: configure-stage2-zlib
c52c6897 27548 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27549 @r=`${PWD_COMMAND}`; export r; \
27550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27551 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27552 $(HOST_EXPORTS) \
1f53ca9a 27553 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27554 cd $(HOST_SUBDIR)/zlib && \
05a13254 27555 \
7f6ef0c0 27556 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27557 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27558 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27559 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27560 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27561 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27562 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27563 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27564 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27565 $(TARGET-stage2-zlib)
d545f33b 27566
a90ef4bf
JM
27567maybe-clean-stage2-zlib: clean-stage2-zlib
27568clean-stage2: clean-stage2-zlib
27569clean-stage2-zlib:
9dbaa842 27570 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27571 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27572 else \
a90ef4bf 27573 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27574 $(MAKE) stage2-start; \
27575 fi; \
a90ef4bf 27576 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27577 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27578@endif zlib-bootstrap
d545f33b
PB
27579
27580
a90ef4bf
JM
27581.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27582.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27583maybe-all-stage3-zlib:
27584maybe-clean-stage3-zlib:
27585@if zlib-bootstrap
27586maybe-all-stage3-zlib: all-stage3-zlib
27587all-stage3: all-stage3-zlib
27588TARGET-stage3-zlib = $(TARGET-zlib)
27589all-stage3-zlib: configure-stage3-zlib
c52c6897 27590 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27591 @r=`${PWD_COMMAND}`; export r; \
27592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27593 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27594 $(HOST_EXPORTS) \
1f53ca9a 27595 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27596 cd $(HOST_SUBDIR)/zlib && \
05a13254 27597 \
7f6ef0c0 27598 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27599 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27600 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27601 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27602 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27603 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27604 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27605 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27606 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27607 $(TARGET-stage3-zlib)
d545f33b 27608
a90ef4bf
JM
27609maybe-clean-stage3-zlib: clean-stage3-zlib
27610clean-stage3: clean-stage3-zlib
27611clean-stage3-zlib:
9dbaa842 27612 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27613 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27614 else \
a90ef4bf 27615 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27616 $(MAKE) stage3-start; \
27617 fi; \
a90ef4bf 27618 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27619 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27620@endif zlib-bootstrap
d545f33b
PB
27621
27622
a90ef4bf
JM
27623.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27624.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27625maybe-all-stage4-zlib:
27626maybe-clean-stage4-zlib:
27627@if zlib-bootstrap
27628maybe-all-stage4-zlib: all-stage4-zlib
27629all-stage4: all-stage4-zlib
27630TARGET-stage4-zlib = $(TARGET-zlib)
27631all-stage4-zlib: configure-stage4-zlib
c52c6897 27632 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27633 @r=`${PWD_COMMAND}`; export r; \
27634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27635 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27636 $(HOST_EXPORTS) \
1f53ca9a 27637 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27638 cd $(HOST_SUBDIR)/zlib && \
05a13254 27639 \
7f6ef0c0 27640 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27641 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27642 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27643 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27644 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27645 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27646 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27647 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27648 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27649 $(TARGET-stage4-zlib)
d545f33b 27650
a90ef4bf
JM
27651maybe-clean-stage4-zlib: clean-stage4-zlib
27652clean-stage4: clean-stage4-zlib
27653clean-stage4-zlib:
9dbaa842 27654 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27655 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27656 else \
a90ef4bf 27657 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27658 $(MAKE) stage4-start; \
27659 fi; \
a90ef4bf 27660 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27661 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27662@endif zlib-bootstrap
d545f33b
PB
27663
27664
a90ef4bf
JM
27665.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27666.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27667maybe-all-stageprofile-zlib:
27668maybe-clean-stageprofile-zlib:
27669@if zlib-bootstrap
27670maybe-all-stageprofile-zlib: all-stageprofile-zlib
27671all-stageprofile: all-stageprofile-zlib
27672TARGET-stageprofile-zlib = $(TARGET-zlib)
27673all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27674 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27675 @r=`${PWD_COMMAND}`; export r; \
27676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27677 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27678 $(HOST_EXPORTS) \
1f53ca9a 27679 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27680 cd $(HOST_SUBDIR)/zlib && \
05a13254 27681 \
7f6ef0c0 27682 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27683 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27684 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27685 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27686 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27687 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27688 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27689 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27690 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27691 $(TARGET-stageprofile-zlib)
d545f33b 27692
a90ef4bf
JM
27693maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27694clean-stageprofile: clean-stageprofile-zlib
27695clean-stageprofile-zlib:
9dbaa842 27696 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27697 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27698 else \
a90ef4bf 27699 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27700 $(MAKE) stageprofile-start; \
27701 fi; \
a90ef4bf 27702 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27703 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27704@endif zlib-bootstrap
d545f33b
PB
27705
27706
a90ef4bf
JM
27707.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27708.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27709maybe-all-stagefeedback-zlib:
27710maybe-clean-stagefeedback-zlib:
27711@if zlib-bootstrap
27712maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27713all-stagefeedback: all-stagefeedback-zlib
27714TARGET-stagefeedback-zlib = $(TARGET-zlib)
27715all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27716 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27717 @r=`${PWD_COMMAND}`; export r; \
27718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27719 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27720 $(HOST_EXPORTS) \
1f53ca9a 27721 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27722 cd $(HOST_SUBDIR)/zlib && \
05a13254 27723 \
7f6ef0c0 27724 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27725 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27726 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27727 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27728 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27729 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27730 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27731 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27732 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27733 $(TARGET-stagefeedback-zlib)
d545f33b 27734
a90ef4bf
JM
27735maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27736clean-stagefeedback: clean-stagefeedback-zlib
27737clean-stagefeedback-zlib:
9dbaa842 27738 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27739 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27740 else \
a90ef4bf 27741 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27742 $(MAKE) stagefeedback-start; \
27743 fi; \
a90ef4bf 27744 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27745 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27746@endif zlib-bootstrap
d545f33b
PB
27747
27748
27749
27750
27751
a90ef4bf
JM
27752.PHONY: check-zlib maybe-check-zlib
27753maybe-check-zlib:
27754@if zlib
27755maybe-check-zlib: check-zlib
04cf1b77 27756
a90ef4bf 27757check-zlib:
04cf1b77 27758
a90ef4bf 27759@endif zlib
04cf1b77 27760
a90ef4bf
JM
27761.PHONY: install-zlib maybe-install-zlib
27762maybe-install-zlib:
27763@if zlib
27764maybe-install-zlib: install-zlib
04cf1b77 27765
a90ef4bf 27766install-zlib:
04cf1b77 27767
a90ef4bf 27768@endif zlib
04cf1b77 27769
a90ef4bf
JM
27770.PHONY: install-strip-zlib maybe-install-strip-zlib
27771maybe-install-strip-zlib:
27772@if zlib
27773maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27774
a90ef4bf 27775install-strip-zlib:
9b980aa1 27776
a90ef4bf 27777@endif zlib
9b980aa1 27778
56a8fe78 27779# Other targets (info, dvi, pdf, etc.)
04cf1b77 27780
a90ef4bf
JM
27781.PHONY: maybe-info-zlib info-zlib
27782maybe-info-zlib:
27783@if zlib
27784maybe-info-zlib: info-zlib
04cf1b77 27785
a90ef4bf
JM
27786info-zlib: \
27787 configure-zlib
27788 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27789 r=`${PWD_COMMAND}`; export r; \
27790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27791 $(HOST_EXPORTS) \
b813574b 27792 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27794 done; \
22121df0 27795 echo "Doing info in zlib"; \
a90ef4bf 27796 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27799 "RANLIB=$${RANLIB}" \
0c24b341 27800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27801 info) \
04cf1b77
PB
27802 || exit 1
27803
a90ef4bf 27804@endif zlib
04cf1b77 27805
a90ef4bf
JM
27806.PHONY: maybe-dvi-zlib dvi-zlib
27807maybe-dvi-zlib:
27808@if zlib
27809maybe-dvi-zlib: dvi-zlib
04cf1b77 27810
a90ef4bf
JM
27811dvi-zlib: \
27812 configure-zlib
27813 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27814 r=`${PWD_COMMAND}`; export r; \
27815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27816 $(HOST_EXPORTS) \
b813574b 27817 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27819 done; \
22121df0 27820 echo "Doing dvi in zlib"; \
a90ef4bf 27821 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27824 "RANLIB=$${RANLIB}" \
0c24b341 27825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27826 dvi) \
04cf1b77
PB
27827 || exit 1
27828
a90ef4bf 27829@endif zlib
04cf1b77 27830
a90ef4bf
JM
27831.PHONY: maybe-pdf-zlib pdf-zlib
27832maybe-pdf-zlib:
27833@if zlib
27834maybe-pdf-zlib: pdf-zlib
56a8fe78 27835
a90ef4bf
JM
27836pdf-zlib: \
27837 configure-zlib
27838 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27839 r=`${PWD_COMMAND}`; export r; \
27840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27841 $(HOST_EXPORTS) \
27842 for flag in $(EXTRA_HOST_FLAGS) ; do \
27843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27844 done; \
22121df0 27845 echo "Doing pdf in zlib"; \
a90ef4bf 27846 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27849 "RANLIB=$${RANLIB}" \
0c24b341 27850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27851 pdf) \
27852 || exit 1
27853
a90ef4bf 27854@endif zlib
56a8fe78 27855
a90ef4bf
JM
27856.PHONY: maybe-html-zlib html-zlib
27857maybe-html-zlib:
27858@if zlib
27859maybe-html-zlib: html-zlib
6d389afc 27860
a90ef4bf
JM
27861html-zlib: \
27862 configure-zlib
27863 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27864 r=`${PWD_COMMAND}`; export r; \
27865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27866 $(HOST_EXPORTS) \
27867 for flag in $(EXTRA_HOST_FLAGS) ; do \
27868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27869 done; \
22121df0 27870 echo "Doing html in zlib"; \
a90ef4bf 27871 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27874 "RANLIB=$${RANLIB}" \
0c24b341 27875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27876 html) \
27877 || exit 1
27878
a90ef4bf 27879@endif zlib
6d389afc 27880
a90ef4bf
JM
27881.PHONY: maybe-TAGS-zlib TAGS-zlib
27882maybe-TAGS-zlib:
27883@if zlib
27884maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27885
a90ef4bf
JM
27886TAGS-zlib: \
27887 configure-zlib
27888 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27889 r=`${PWD_COMMAND}`; export r; \
27890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27891 $(HOST_EXPORTS) \
b813574b 27892 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27894 done; \
22121df0 27895 echo "Doing TAGS in zlib"; \
a90ef4bf 27896 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27899 "RANLIB=$${RANLIB}" \
0c24b341 27900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27901 TAGS) \
04cf1b77
PB
27902 || exit 1
27903
a90ef4bf 27904@endif zlib
04cf1b77 27905
a90ef4bf
JM
27906.PHONY: maybe-install-info-zlib install-info-zlib
27907maybe-install-info-zlib:
27908@if zlib
27909maybe-install-info-zlib: install-info-zlib
04cf1b77 27910
a90ef4bf
JM
27911install-info-zlib: \
27912 configure-zlib \
27913 info-zlib
27914 @[ -f ./zlib/Makefile ] || exit 0; \
27915 r=`${PWD_COMMAND}`; export r; \
27916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27917 $(HOST_EXPORTS) \
b813574b 27918 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27920 done; \
22121df0 27921 echo "Doing install-info in zlib"; \
a90ef4bf 27922 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27925 "RANLIB=$${RANLIB}" \
0c24b341 27926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27927 install-info) \
04cf1b77
PB
27928 || exit 1
27929
a90ef4bf 27930@endif zlib
04cf1b77 27931
a90ef4bf
JM
27932.PHONY: maybe-install-pdf-zlib install-pdf-zlib
27933maybe-install-pdf-zlib:
27934@if zlib
27935maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 27936
a90ef4bf
JM
27937install-pdf-zlib: \
27938 configure-zlib \
27939 pdf-zlib
27940 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
27941 r=`${PWD_COMMAND}`; export r; \
27942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27943 $(HOST_EXPORTS) \
27944 for flag in $(EXTRA_HOST_FLAGS) ; do \
27945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27946 done; \
22121df0 27947 echo "Doing install-pdf in zlib"; \
a90ef4bf 27948 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
27949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27951 "RANLIB=$${RANLIB}" \
0c24b341 27952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27953 install-pdf) \
27954 || exit 1
27955
a90ef4bf 27956@endif zlib
a3ca38d2 27957
a90ef4bf
JM
27958.PHONY: maybe-install-html-zlib install-html-zlib
27959maybe-install-html-zlib:
27960@if zlib
27961maybe-install-html-zlib: install-html-zlib
108a6f8e 27962
a90ef4bf
JM
27963install-html-zlib: \
27964 configure-zlib \
27965 html-zlib
27966 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
27967 r=`${PWD_COMMAND}`; export r; \
27968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27969 $(HOST_EXPORTS) \
27970 for flag in $(EXTRA_HOST_FLAGS) ; do \
27971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27972 done; \
22121df0 27973 echo "Doing install-html in zlib"; \
a90ef4bf 27974 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
27975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27977 "RANLIB=$${RANLIB}" \
0c24b341 27978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27979 install-html) \
27980 || exit 1
27981
a90ef4bf 27982@endif zlib
108a6f8e 27983
a90ef4bf
JM
27984.PHONY: maybe-installcheck-zlib installcheck-zlib
27985maybe-installcheck-zlib:
27986@if zlib
27987maybe-installcheck-zlib: installcheck-zlib
04cf1b77 27988
a90ef4bf
JM
27989installcheck-zlib: \
27990 configure-zlib
27991 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27992 r=`${PWD_COMMAND}`; export r; \
27993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27994 $(HOST_EXPORTS) \
b813574b 27995 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27997 done; \
22121df0 27998 echo "Doing installcheck in zlib"; \
a90ef4bf 27999 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28002 "RANLIB=$${RANLIB}" \
0c24b341 28003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28004 installcheck) \
04cf1b77
PB
28005 || exit 1
28006
a90ef4bf 28007@endif zlib
04cf1b77 28008
a90ef4bf
JM
28009.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
28010maybe-mostlyclean-zlib:
28011@if zlib
28012maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 28013
a90ef4bf
JM
28014mostlyclean-zlib:
28015 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28016 r=`${PWD_COMMAND}`; export r; \
28017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28018 $(HOST_EXPORTS) \
b813574b 28019 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28021 done; \
22121df0 28022 echo "Doing mostlyclean in zlib"; \
a90ef4bf 28023 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28026 "RANLIB=$${RANLIB}" \
0c24b341 28027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28028 mostlyclean) \
04cf1b77
PB
28029 || exit 1
28030
a90ef4bf 28031@endif zlib
04cf1b77 28032
a90ef4bf
JM
28033.PHONY: maybe-clean-zlib clean-zlib
28034maybe-clean-zlib:
28035@if zlib
28036maybe-clean-zlib: clean-zlib
04cf1b77 28037
a90ef4bf
JM
28038clean-zlib:
28039 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28040 r=`${PWD_COMMAND}`; export r; \
28041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28042 $(HOST_EXPORTS) \
b813574b 28043 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28045 done; \
22121df0 28046 echo "Doing clean in zlib"; \
a90ef4bf 28047 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28050 "RANLIB=$${RANLIB}" \
0c24b341 28051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28052 clean) \
04cf1b77
PB
28053 || exit 1
28054
a90ef4bf 28055@endif zlib
04cf1b77 28056
a90ef4bf
JM
28057.PHONY: maybe-distclean-zlib distclean-zlib
28058maybe-distclean-zlib:
28059@if zlib
28060maybe-distclean-zlib: distclean-zlib
04cf1b77 28061
a90ef4bf
JM
28062distclean-zlib:
28063 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28064 r=`${PWD_COMMAND}`; export r; \
28065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28066 $(HOST_EXPORTS) \
b813574b 28067 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28069 done; \
22121df0 28070 echo "Doing distclean in zlib"; \
a90ef4bf 28071 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28074 "RANLIB=$${RANLIB}" \
0c24b341 28075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28076 distclean) \
04cf1b77
PB
28077 || exit 1
28078
a90ef4bf 28079@endif zlib
04cf1b77 28080
a90ef4bf
JM
28081.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
28082maybe-maintainer-clean-zlib:
28083@if zlib
28084maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 28085
a90ef4bf
JM
28086maintainer-clean-zlib:
28087 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28088 r=`${PWD_COMMAND}`; export r; \
28089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28090 $(HOST_EXPORTS) \
b813574b 28091 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28093 done; \
22121df0 28094 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 28095 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28098 "RANLIB=$${RANLIB}" \
0c24b341 28099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28100 maintainer-clean) \
04cf1b77
PB
28101 || exit 1
28102
a90ef4bf 28103@endif zlib
04cf1b77
PB
28104
28105
a7254363 28106
73cc7272
TT
28107.PHONY: configure-gnulib maybe-configure-gnulib
28108maybe-configure-gnulib:
28109@if gcc-bootstrap
28110configure-gnulib: stage_current
28111@endif gcc-bootstrap
28112@if gnulib
28113maybe-configure-gnulib: configure-gnulib
28114configure-gnulib:
28115 @: $(MAKE); $(unstage)
28116 @r=`${PWD_COMMAND}`; export r; \
28117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28118 test ! -f $(HOST_SUBDIR)/gnulib/Makefile || exit 0; \
28119 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnulib; \
28120 $(HOST_EXPORTS) \
28121 echo Configuring in $(HOST_SUBDIR)/gnulib; \
28122 cd "$(HOST_SUBDIR)/gnulib" || exit 1; \
28123 case $(srcdir) in \
28124 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28125 *) topdir=`echo $(HOST_SUBDIR)/gnulib/ | \
28126 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28127 esac; \
28128 module_srcdir=gnulib; \
28129 $(SHELL) \
28130 $$s/$$module_srcdir/configure \
28131 --srcdir=$${topdir}/$$module_srcdir \
28132 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28133 --target=${target_alias} \
28134 || exit 1
28135@endif gnulib
28136
28137
28138
28139
28140
28141.PHONY: all-gnulib maybe-all-gnulib
28142maybe-all-gnulib:
28143@if gcc-bootstrap
28144all-gnulib: stage_current
28145@endif gcc-bootstrap
28146@if gnulib
28147TARGET-gnulib=all
28148maybe-all-gnulib: all-gnulib
28149all-gnulib: configure-gnulib
28150 @: $(MAKE); $(unstage)
28151 @r=`${PWD_COMMAND}`; export r; \
28152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28153 $(HOST_EXPORTS) \
28154 (cd $(HOST_SUBDIR)/gnulib && \
28155 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
28156 $(TARGET-gnulib))
28157@endif gnulib
28158
28159
28160
28161
28162.PHONY: check-gnulib maybe-check-gnulib
28163maybe-check-gnulib:
28164@if gnulib
28165maybe-check-gnulib: check-gnulib
28166
28167check-gnulib:
28168 @: $(MAKE); $(unstage)
28169 @r=`${PWD_COMMAND}`; export r; \
28170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28171 $(HOST_EXPORTS) \
28172 (cd $(HOST_SUBDIR)/gnulib && \
28173 $(MAKE) $(FLAGS_TO_PASS) check)
28174
28175@endif gnulib
28176
28177.PHONY: install-gnulib maybe-install-gnulib
28178maybe-install-gnulib:
28179@if gnulib
28180maybe-install-gnulib: install-gnulib
28181
28182install-gnulib: installdirs
28183 @: $(MAKE); $(unstage)
28184 @r=`${PWD_COMMAND}`; export r; \
28185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28186 $(HOST_EXPORTS) \
28187 (cd $(HOST_SUBDIR)/gnulib && \
28188 $(MAKE) $(FLAGS_TO_PASS) install)
28189
28190@endif gnulib
28191
28192.PHONY: install-strip-gnulib maybe-install-strip-gnulib
28193maybe-install-strip-gnulib:
28194@if gnulib
28195maybe-install-strip-gnulib: install-strip-gnulib
28196
28197install-strip-gnulib: installdirs
28198 @: $(MAKE); $(unstage)
28199 @r=`${PWD_COMMAND}`; export r; \
28200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28201 $(HOST_EXPORTS) \
28202 (cd $(HOST_SUBDIR)/gnulib && \
28203 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28204
28205@endif gnulib
28206
28207# Other targets (info, dvi, pdf, etc.)
28208
28209.PHONY: maybe-info-gnulib info-gnulib
28210maybe-info-gnulib:
28211@if gnulib
28212maybe-info-gnulib: info-gnulib
28213
28214info-gnulib: \
28215 configure-gnulib
28216 @: $(MAKE); $(unstage)
28217 @[ -f ./gnulib/Makefile ] || exit 0; \
28218 r=`${PWD_COMMAND}`; export r; \
28219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28220 $(HOST_EXPORTS) \
28221 for flag in $(EXTRA_HOST_FLAGS) ; do \
28222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28223 done; \
28224 echo "Doing info in gnulib"; \
28225 (cd $(HOST_SUBDIR)/gnulib && \
28226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28228 "RANLIB=$${RANLIB}" \
28229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28230 info) \
28231 || exit 1
28232
28233@endif gnulib
28234
28235.PHONY: maybe-dvi-gnulib dvi-gnulib
28236maybe-dvi-gnulib:
28237@if gnulib
28238maybe-dvi-gnulib: dvi-gnulib
28239
28240dvi-gnulib: \
28241 configure-gnulib
28242 @: $(MAKE); $(unstage)
28243 @[ -f ./gnulib/Makefile ] || exit 0; \
28244 r=`${PWD_COMMAND}`; export r; \
28245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28246 $(HOST_EXPORTS) \
28247 for flag in $(EXTRA_HOST_FLAGS) ; do \
28248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28249 done; \
28250 echo "Doing dvi in gnulib"; \
28251 (cd $(HOST_SUBDIR)/gnulib && \
28252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28254 "RANLIB=$${RANLIB}" \
28255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28256 dvi) \
28257 || exit 1
28258
28259@endif gnulib
28260
28261.PHONY: maybe-pdf-gnulib pdf-gnulib
28262maybe-pdf-gnulib:
28263@if gnulib
28264maybe-pdf-gnulib: pdf-gnulib
28265
28266pdf-gnulib: \
28267 configure-gnulib
28268 @: $(MAKE); $(unstage)
28269 @[ -f ./gnulib/Makefile ] || exit 0; \
28270 r=`${PWD_COMMAND}`; export r; \
28271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28272 $(HOST_EXPORTS) \
28273 for flag in $(EXTRA_HOST_FLAGS) ; do \
28274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28275 done; \
28276 echo "Doing pdf in gnulib"; \
28277 (cd $(HOST_SUBDIR)/gnulib && \
28278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28280 "RANLIB=$${RANLIB}" \
28281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28282 pdf) \
28283 || exit 1
28284
28285@endif gnulib
28286
28287.PHONY: maybe-html-gnulib html-gnulib
28288maybe-html-gnulib:
28289@if gnulib
28290maybe-html-gnulib: html-gnulib
28291
28292html-gnulib: \
28293 configure-gnulib
28294 @: $(MAKE); $(unstage)
28295 @[ -f ./gnulib/Makefile ] || exit 0; \
28296 r=`${PWD_COMMAND}`; export r; \
28297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28298 $(HOST_EXPORTS) \
28299 for flag in $(EXTRA_HOST_FLAGS) ; do \
28300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28301 done; \
28302 echo "Doing html in gnulib"; \
28303 (cd $(HOST_SUBDIR)/gnulib && \
28304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28306 "RANLIB=$${RANLIB}" \
28307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28308 html) \
28309 || exit 1
28310
28311@endif gnulib
28312
28313.PHONY: maybe-TAGS-gnulib TAGS-gnulib
28314maybe-TAGS-gnulib:
28315@if gnulib
28316maybe-TAGS-gnulib: TAGS-gnulib
28317
28318TAGS-gnulib: \
28319 configure-gnulib
28320 @: $(MAKE); $(unstage)
28321 @[ -f ./gnulib/Makefile ] || exit 0; \
28322 r=`${PWD_COMMAND}`; export r; \
28323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28324 $(HOST_EXPORTS) \
28325 for flag in $(EXTRA_HOST_FLAGS) ; do \
28326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28327 done; \
28328 echo "Doing TAGS in gnulib"; \
28329 (cd $(HOST_SUBDIR)/gnulib && \
28330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28332 "RANLIB=$${RANLIB}" \
28333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28334 TAGS) \
28335 || exit 1
28336
28337@endif gnulib
28338
28339.PHONY: maybe-install-info-gnulib install-info-gnulib
28340maybe-install-info-gnulib:
28341@if gnulib
28342maybe-install-info-gnulib: install-info-gnulib
28343
28344install-info-gnulib: \
28345 configure-gnulib \
28346 info-gnulib
28347 @: $(MAKE); $(unstage)
28348 @[ -f ./gnulib/Makefile ] || exit 0; \
28349 r=`${PWD_COMMAND}`; export r; \
28350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28351 $(HOST_EXPORTS) \
28352 for flag in $(EXTRA_HOST_FLAGS) ; do \
28353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28354 done; \
28355 echo "Doing install-info in gnulib"; \
28356 (cd $(HOST_SUBDIR)/gnulib && \
28357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28359 "RANLIB=$${RANLIB}" \
28360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28361 install-info) \
28362 || exit 1
28363
28364@endif gnulib
28365
28366.PHONY: maybe-install-pdf-gnulib install-pdf-gnulib
28367maybe-install-pdf-gnulib:
28368@if gnulib
28369maybe-install-pdf-gnulib: install-pdf-gnulib
28370
28371install-pdf-gnulib: \
28372 configure-gnulib \
28373 pdf-gnulib
28374 @: $(MAKE); $(unstage)
28375 @[ -f ./gnulib/Makefile ] || exit 0; \
28376 r=`${PWD_COMMAND}`; export r; \
28377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28378 $(HOST_EXPORTS) \
28379 for flag in $(EXTRA_HOST_FLAGS) ; do \
28380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28381 done; \
28382 echo "Doing install-pdf in gnulib"; \
28383 (cd $(HOST_SUBDIR)/gnulib && \
28384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28386 "RANLIB=$${RANLIB}" \
28387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28388 install-pdf) \
28389 || exit 1
28390
28391@endif gnulib
28392
28393.PHONY: maybe-install-html-gnulib install-html-gnulib
28394maybe-install-html-gnulib:
28395@if gnulib
28396maybe-install-html-gnulib: install-html-gnulib
28397
28398install-html-gnulib: \
28399 configure-gnulib \
28400 html-gnulib
28401 @: $(MAKE); $(unstage)
28402 @[ -f ./gnulib/Makefile ] || exit 0; \
28403 r=`${PWD_COMMAND}`; export r; \
28404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28405 $(HOST_EXPORTS) \
28406 for flag in $(EXTRA_HOST_FLAGS) ; do \
28407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28408 done; \
28409 echo "Doing install-html in gnulib"; \
28410 (cd $(HOST_SUBDIR)/gnulib && \
28411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28413 "RANLIB=$${RANLIB}" \
28414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28415 install-html) \
28416 || exit 1
28417
28418@endif gnulib
28419
28420.PHONY: maybe-installcheck-gnulib installcheck-gnulib
28421maybe-installcheck-gnulib:
28422@if gnulib
28423maybe-installcheck-gnulib: installcheck-gnulib
28424
28425installcheck-gnulib: \
28426 configure-gnulib
28427 @: $(MAKE); $(unstage)
28428 @[ -f ./gnulib/Makefile ] || exit 0; \
28429 r=`${PWD_COMMAND}`; export r; \
28430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28431 $(HOST_EXPORTS) \
28432 for flag in $(EXTRA_HOST_FLAGS) ; do \
28433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28434 done; \
28435 echo "Doing installcheck in gnulib"; \
28436 (cd $(HOST_SUBDIR)/gnulib && \
28437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28439 "RANLIB=$${RANLIB}" \
28440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28441 installcheck) \
28442 || exit 1
28443
28444@endif gnulib
28445
28446.PHONY: maybe-mostlyclean-gnulib mostlyclean-gnulib
28447maybe-mostlyclean-gnulib:
28448@if gnulib
28449maybe-mostlyclean-gnulib: mostlyclean-gnulib
28450
28451mostlyclean-gnulib:
28452 @: $(MAKE); $(unstage)
28453 @[ -f ./gnulib/Makefile ] || exit 0; \
28454 r=`${PWD_COMMAND}`; export r; \
28455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28456 $(HOST_EXPORTS) \
28457 for flag in $(EXTRA_HOST_FLAGS) ; do \
28458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28459 done; \
28460 echo "Doing mostlyclean in gnulib"; \
28461 (cd $(HOST_SUBDIR)/gnulib && \
28462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28464 "RANLIB=$${RANLIB}" \
28465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28466 mostlyclean) \
28467 || exit 1
28468
28469@endif gnulib
28470
28471.PHONY: maybe-clean-gnulib clean-gnulib
28472maybe-clean-gnulib:
28473@if gnulib
28474maybe-clean-gnulib: clean-gnulib
28475
28476clean-gnulib:
28477 @: $(MAKE); $(unstage)
28478 @[ -f ./gnulib/Makefile ] || exit 0; \
28479 r=`${PWD_COMMAND}`; export r; \
28480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28481 $(HOST_EXPORTS) \
28482 for flag in $(EXTRA_HOST_FLAGS) ; do \
28483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28484 done; \
28485 echo "Doing clean in gnulib"; \
28486 (cd $(HOST_SUBDIR)/gnulib && \
28487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28489 "RANLIB=$${RANLIB}" \
28490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28491 clean) \
28492 || exit 1
28493
28494@endif gnulib
28495
28496.PHONY: maybe-distclean-gnulib distclean-gnulib
28497maybe-distclean-gnulib:
28498@if gnulib
28499maybe-distclean-gnulib: distclean-gnulib
28500
28501distclean-gnulib:
28502 @: $(MAKE); $(unstage)
28503 @[ -f ./gnulib/Makefile ] || exit 0; \
28504 r=`${PWD_COMMAND}`; export r; \
28505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28506 $(HOST_EXPORTS) \
28507 for flag in $(EXTRA_HOST_FLAGS) ; do \
28508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28509 done; \
28510 echo "Doing distclean in gnulib"; \
28511 (cd $(HOST_SUBDIR)/gnulib && \
28512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28514 "RANLIB=$${RANLIB}" \
28515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28516 distclean) \
28517 || exit 1
28518
28519@endif gnulib
28520
28521.PHONY: maybe-maintainer-clean-gnulib maintainer-clean-gnulib
28522maybe-maintainer-clean-gnulib:
28523@if gnulib
28524maybe-maintainer-clean-gnulib: maintainer-clean-gnulib
28525
28526maintainer-clean-gnulib:
28527 @: $(MAKE); $(unstage)
28528 @[ -f ./gnulib/Makefile ] || exit 0; \
28529 r=`${PWD_COMMAND}`; export r; \
28530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28531 $(HOST_EXPORTS) \
28532 for flag in $(EXTRA_HOST_FLAGS) ; do \
28533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28534 done; \
28535 echo "Doing maintainer-clean in gnulib"; \
28536 (cd $(HOST_SUBDIR)/gnulib && \
28537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28539 "RANLIB=$${RANLIB}" \
28540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28541 maintainer-clean) \
28542 || exit 1
28543
28544@endif gnulib
28545
28546
28547
a90ef4bf
JM
28548.PHONY: configure-gdb maybe-configure-gdb
28549maybe-configure-gdb:
4f0ef2d8 28550@if gcc-bootstrap
a90ef4bf 28551configure-gdb: stage_current
4f0ef2d8 28552@endif gcc-bootstrap
a90ef4bf
JM
28553@if gdb
28554maybe-configure-gdb: configure-gdb
28555configure-gdb:
28556 @: $(MAKE); $(unstage)
c52c6897
PB
28557 @r=`${PWD_COMMAND}`; export r; \
28558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 28559 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 28560 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 28561 $(HOST_EXPORTS) \
a90ef4bf
JM
28562 echo Configuring in $(HOST_SUBDIR)/gdb; \
28563 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 28564 case $(srcdir) in \
b00612cc 28565 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 28566 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 28567 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 28568 esac; \
1b6c0831
L
28569 module_srcdir=gdb; \
28570 $(SHELL) \
28571 $$s/$$module_srcdir/configure \
28572 --srcdir=$${topdir}/$$module_srcdir \
4b900473 28573 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 28574 --target=${target_alias} \
4fa63067 28575 || exit 1
a90ef4bf 28576@endif gdb
4fa63067 28577
a7254363
PB
28578
28579
d545f33b 28580
8520c408 28581
a90ef4bf
JM
28582.PHONY: all-gdb maybe-all-gdb
28583maybe-all-gdb:
28584@if gcc-bootstrap
28585all-gdb: stage_current
28586@endif gcc-bootstrap
28587@if gdb
28588TARGET-gdb=all
28589maybe-all-gdb: all-gdb
28590all-gdb: configure-gdb
28591 @: $(MAKE); $(unstage)
c52c6897
PB
28592 @r=`${PWD_COMMAND}`; export r; \
28593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28594 $(HOST_EXPORTS) \
28595 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 28596 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
28597 $(TARGET-gdb))
28598@endif gdb
8520c408 28599
a90ef4bf
JM
28600
28601
28602
28603.PHONY: check-gdb maybe-check-gdb
28604maybe-check-gdb:
28605@if gdb
28606maybe-check-gdb: check-gdb
28607
28608check-gdb:
28609 @: $(MAKE); $(unstage)
c52c6897
PB
28610 @r=`${PWD_COMMAND}`; export r; \
28611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 28612 $(HOST_EXPORTS) \
a90ef4bf
JM
28613 (cd $(HOST_SUBDIR)/gdb && \
28614 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 28615
a90ef4bf
JM
28616@endif gdb
28617
28618.PHONY: install-gdb maybe-install-gdb
28619maybe-install-gdb:
28620@if gdb
28621maybe-install-gdb: install-gdb
28622
28623install-gdb: installdirs
28624 @: $(MAKE); $(unstage)
c52c6897
PB
28625 @r=`${PWD_COMMAND}`; export r; \
28626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28627 $(HOST_EXPORTS) \
a90ef4bf
JM
28628 (cd $(HOST_SUBDIR)/gdb && \
28629 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 28630
a90ef4bf
JM
28631@endif gdb
28632
28633.PHONY: install-strip-gdb maybe-install-strip-gdb
28634maybe-install-strip-gdb:
28635@if gdb
28636maybe-install-strip-gdb: install-strip-gdb
28637
28638install-strip-gdb: installdirs
28639 @: $(MAKE); $(unstage)
c52c6897
PB
28640 @r=`${PWD_COMMAND}`; export r; \
28641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 28642 $(HOST_EXPORTS) \
a90ef4bf
JM
28643 (cd $(HOST_SUBDIR)/gdb && \
28644 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 28645
a90ef4bf 28646@endif gdb
d545f33b 28647
a90ef4bf 28648# Other targets (info, dvi, pdf, etc.)
d545f33b 28649
a90ef4bf
JM
28650.PHONY: maybe-info-gdb info-gdb
28651maybe-info-gdb:
28652@if gdb
28653maybe-info-gdb: info-gdb
d545f33b 28654
a90ef4bf
JM
28655info-gdb: \
28656 configure-gdb
28657 @: $(MAKE); $(unstage)
28658 @[ -f ./gdb/Makefile ] || exit 0; \
28659 r=`${PWD_COMMAND}`; export r; \
4fa63067 28660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28661 $(HOST_EXPORTS) \
28662 for flag in $(EXTRA_HOST_FLAGS) ; do \
28663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28664 done; \
22121df0 28665 echo "Doing info in gdb"; \
a90ef4bf
JM
28666 (cd $(HOST_SUBDIR)/gdb && \
28667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28669 "RANLIB=$${RANLIB}" \
28670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28671 info) \
28672 || exit 1
4fa63067 28673
a90ef4bf 28674@endif gdb
a7254363 28675
a90ef4bf
JM
28676.PHONY: maybe-dvi-gdb dvi-gdb
28677maybe-dvi-gdb:
28678@if gdb
28679maybe-dvi-gdb: dvi-gdb
d545f33b 28680
a90ef4bf
JM
28681dvi-gdb: \
28682 configure-gdb
28683 @: $(MAKE); $(unstage)
28684 @[ -f ./gdb/Makefile ] || exit 0; \
28685 r=`${PWD_COMMAND}`; export r; \
d545f33b 28686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
28687 $(HOST_EXPORTS) \
28688 for flag in $(EXTRA_HOST_FLAGS) ; do \
28689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28690 done; \
22121df0 28691 echo "Doing dvi in gdb"; \
a90ef4bf
JM
28692 (cd $(HOST_SUBDIR)/gdb && \
28693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28695 "RANLIB=$${RANLIB}" \
28696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28697 dvi) \
28698 || exit 1
d545f33b 28699
a90ef4bf 28700@endif gdb
d545f33b 28701
a90ef4bf
JM
28702.PHONY: maybe-pdf-gdb pdf-gdb
28703maybe-pdf-gdb:
28704@if gdb
28705maybe-pdf-gdb: pdf-gdb
d545f33b 28706
a90ef4bf
JM
28707pdf-gdb: \
28708 configure-gdb
9b980aa1 28709 @: $(MAKE); $(unstage)
a90ef4bf 28710 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28711 r=`${PWD_COMMAND}`; export r; \
28712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28713 $(HOST_EXPORTS) \
b813574b 28714 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28716 done; \
22121df0 28717 echo "Doing pdf in gdb"; \
a90ef4bf 28718 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28721 "RANLIB=$${RANLIB}" \
0c24b341 28722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28723 pdf) \
2a4cbe27
NN
28724 || exit 1
28725
a90ef4bf 28726@endif gdb
2a4cbe27 28727
a90ef4bf
JM
28728.PHONY: maybe-html-gdb html-gdb
28729maybe-html-gdb:
28730@if gdb
28731maybe-html-gdb: html-gdb
2a4cbe27 28732
a90ef4bf
JM
28733html-gdb: \
28734 configure-gdb
28735 @: $(MAKE); $(unstage)
28736 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28737 r=`${PWD_COMMAND}`; export r; \
28738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28739 $(HOST_EXPORTS) \
b813574b 28740 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28742 done; \
22121df0 28743 echo "Doing html in gdb"; \
a90ef4bf 28744 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28747 "RANLIB=$${RANLIB}" \
0c24b341 28748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28749 html) \
2a4cbe27
NN
28750 || exit 1
28751
a90ef4bf 28752@endif gdb
2a4cbe27 28753
a90ef4bf
JM
28754.PHONY: maybe-TAGS-gdb TAGS-gdb
28755maybe-TAGS-gdb:
28756@if gdb
28757maybe-TAGS-gdb: TAGS-gdb
56a8fe78 28758
a90ef4bf
JM
28759TAGS-gdb: \
28760 configure-gdb
28761 @: $(MAKE); $(unstage)
28762 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
28763 r=`${PWD_COMMAND}`; export r; \
28764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28765 $(HOST_EXPORTS) \
28766 for flag in $(EXTRA_HOST_FLAGS) ; do \
28767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28768 done; \
22121df0 28769 echo "Doing TAGS in gdb"; \
a90ef4bf 28770 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
28771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28773 "RANLIB=$${RANLIB}" \
0c24b341 28774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28775 TAGS) \
56a8fe78
DD
28776 || exit 1
28777
a90ef4bf 28778@endif gdb
56a8fe78 28779
a90ef4bf
JM
28780.PHONY: maybe-install-info-gdb install-info-gdb
28781maybe-install-info-gdb:
28782@if gdb
28783maybe-install-info-gdb: install-info-gdb
6d389afc 28784
a90ef4bf
JM
28785install-info-gdb: \
28786 configure-gdb \
28787 info-gdb
28788 @: $(MAKE); $(unstage)
28789 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
28790 r=`${PWD_COMMAND}`; export r; \
28791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
28792 $(HOST_EXPORTS) \
28793 for flag in $(EXTRA_HOST_FLAGS) ; do \
28794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28795 done; \
22121df0 28796 echo "Doing install-info in gdb"; \
a90ef4bf 28797 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
28798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28800 "RANLIB=$${RANLIB}" \
0c24b341 28801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28802 install-info) \
6d389afc
MS
28803 || exit 1
28804
a90ef4bf 28805@endif gdb
6d389afc 28806
a90ef4bf
JM
28807.PHONY: maybe-install-pdf-gdb install-pdf-gdb
28808maybe-install-pdf-gdb:
28809@if gdb
28810maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 28811
a90ef4bf
JM
28812install-pdf-gdb: \
28813 configure-gdb \
28814 pdf-gdb
28815 @: $(MAKE); $(unstage)
28816 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28817 r=`${PWD_COMMAND}`; export r; \
28818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28819 $(HOST_EXPORTS) \
b813574b 28820 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28822 done; \
22121df0 28823 echo "Doing install-pdf in gdb"; \
a90ef4bf 28824 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28827 "RANLIB=$${RANLIB}" \
0c24b341 28828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28829 install-pdf) \
2a4cbe27
NN
28830 || exit 1
28831
a90ef4bf 28832@endif gdb
2a4cbe27 28833
a90ef4bf
JM
28834.PHONY: maybe-install-html-gdb install-html-gdb
28835maybe-install-html-gdb:
28836@if gdb
28837maybe-install-html-gdb: install-html-gdb
2a4cbe27 28838
a90ef4bf
JM
28839install-html-gdb: \
28840 configure-gdb \
28841 html-gdb
28842 @: $(MAKE); $(unstage)
28843 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28844 r=`${PWD_COMMAND}`; export r; \
28845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28846 $(HOST_EXPORTS) \
b813574b 28847 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28849 done; \
22121df0 28850 echo "Doing install-html in gdb"; \
a90ef4bf 28851 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28854 "RANLIB=$${RANLIB}" \
0c24b341 28855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28856 install-html) \
2a4cbe27
NN
28857 || exit 1
28858
a90ef4bf 28859@endif gdb
2a4cbe27 28860
a90ef4bf
JM
28861.PHONY: maybe-installcheck-gdb installcheck-gdb
28862maybe-installcheck-gdb:
28863@if gdb
28864maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 28865
a90ef4bf
JM
28866installcheck-gdb: \
28867 configure-gdb
28868 @: $(MAKE); $(unstage)
28869 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
28870 r=`${PWD_COMMAND}`; export r; \
28871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28872 $(HOST_EXPORTS) \
28873 for flag in $(EXTRA_HOST_FLAGS) ; do \
28874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28875 done; \
22121df0 28876 echo "Doing installcheck in gdb"; \
a90ef4bf 28877 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
28878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28880 "RANLIB=$${RANLIB}" \
0c24b341 28881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28882 installcheck) \
a3ca38d2
DD
28883 || exit 1
28884
a90ef4bf 28885@endif gdb
a3ca38d2 28886
a90ef4bf
JM
28887.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
28888maybe-mostlyclean-gdb:
28889@if gdb
28890maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 28891
a90ef4bf
JM
28892mostlyclean-gdb:
28893 @: $(MAKE); $(unstage)
28894 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
28895 r=`${PWD_COMMAND}`; export r; \
28896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28897 $(HOST_EXPORTS) \
28898 for flag in $(EXTRA_HOST_FLAGS) ; do \
28899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28900 done; \
22121df0 28901 echo "Doing mostlyclean in gdb"; \
a90ef4bf 28902 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
28903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28905 "RANLIB=$${RANLIB}" \
0c24b341 28906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28907 mostlyclean) \
108a6f8e
CD
28908 || exit 1
28909
a90ef4bf 28910@endif gdb
108a6f8e 28911
a90ef4bf
JM
28912.PHONY: maybe-clean-gdb clean-gdb
28913maybe-clean-gdb:
28914@if gdb
28915maybe-clean-gdb: clean-gdb
2a4cbe27 28916
a90ef4bf
JM
28917clean-gdb:
28918 @: $(MAKE); $(unstage)
28919 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28920 r=`${PWD_COMMAND}`; export r; \
28921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28922 $(HOST_EXPORTS) \
b813574b 28923 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28925 done; \
22121df0 28926 echo "Doing clean in gdb"; \
a90ef4bf 28927 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28930 "RANLIB=$${RANLIB}" \
0c24b341 28931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28932 clean) \
2a4cbe27
NN
28933 || exit 1
28934
a90ef4bf 28935@endif gdb
2a4cbe27 28936
a90ef4bf
JM
28937.PHONY: maybe-distclean-gdb distclean-gdb
28938maybe-distclean-gdb:
28939@if gdb
28940maybe-distclean-gdb: distclean-gdb
2a4cbe27 28941
a90ef4bf
JM
28942distclean-gdb:
28943 @: $(MAKE); $(unstage)
28944 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28945 r=`${PWD_COMMAND}`; export r; \
28946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28947 $(HOST_EXPORTS) \
b813574b 28948 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28950 done; \
22121df0 28951 echo "Doing distclean in gdb"; \
a90ef4bf 28952 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28955 "RANLIB=$${RANLIB}" \
0c24b341 28956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28957 distclean) \
2a4cbe27
NN
28958 || exit 1
28959
a90ef4bf 28960@endif gdb
2a4cbe27 28961
a90ef4bf
JM
28962.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
28963maybe-maintainer-clean-gdb:
28964@if gdb
28965maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 28966
a90ef4bf
JM
28967maintainer-clean-gdb:
28968 @: $(MAKE); $(unstage)
28969 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
28970 r=`${PWD_COMMAND}`; export r; \
28971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28972 $(HOST_EXPORTS) \
b813574b 28973 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
28974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28975 done; \
22121df0 28976 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 28977 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
28978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28980 "RANLIB=$${RANLIB}" \
0c24b341 28981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 28982 maintainer-clean) \
2a4cbe27
NN
28983 || exit 1
28984
a90ef4bf 28985@endif gdb
2a4cbe27 28986
2a4cbe27 28987
a7254363 28988
a90ef4bf
JM
28989.PHONY: configure-expect maybe-configure-expect
28990maybe-configure-expect:
4f0ef2d8 28991@if gcc-bootstrap
a90ef4bf 28992configure-expect: stage_current
4f0ef2d8 28993@endif gcc-bootstrap
a90ef4bf
JM
28994@if expect
28995maybe-configure-expect: configure-expect
28996configure-expect:
28997 @: $(MAKE); $(unstage)
c52c6897
PB
28998 @r=`${PWD_COMMAND}`; export r; \
28999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29000 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 29001 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 29002 $(HOST_EXPORTS) \
a90ef4bf
JM
29003 echo Configuring in $(HOST_SUBDIR)/expect; \
29004 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
29005 case $(srcdir) in \
29006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29007 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
29008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29009 esac; \
1b6c0831
L
29010 module_srcdir=expect; \
29011 $(SHELL) \
29012 $$s/$$module_srcdir/configure \
29013 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29014 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29015 --target=${target_alias} \
be01d343 29016 || exit 1
a90ef4bf 29017@endif expect
be01d343
PB
29018
29019
29020
be01d343 29021
8520c408 29022
a90ef4bf
JM
29023.PHONY: all-expect maybe-all-expect
29024maybe-all-expect:
29025@if gcc-bootstrap
29026all-expect: stage_current
29027@endif gcc-bootstrap
29028@if expect
29029TARGET-expect=all
29030maybe-all-expect: all-expect
29031all-expect: configure-expect
29032 @: $(MAKE); $(unstage)
c52c6897
PB
29033 @r=`${PWD_COMMAND}`; export r; \
29034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29035 $(HOST_EXPORTS) \
29036 (cd $(HOST_SUBDIR)/expect && \
b3676d82 29037 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29038 $(TARGET-expect))
29039@endif expect
8520c408 29040
a90ef4bf
JM
29041
29042
29043
29044.PHONY: check-expect maybe-check-expect
29045maybe-check-expect:
29046@if expect
29047maybe-check-expect: check-expect
29048
29049check-expect:
29050 @: $(MAKE); $(unstage)
c52c6897
PB
29051 @r=`${PWD_COMMAND}`; export r; \
29052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29053 $(HOST_EXPORTS) \
a90ef4bf
JM
29054 (cd $(HOST_SUBDIR)/expect && \
29055 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 29056
a90ef4bf
JM
29057@endif expect
29058
29059.PHONY: install-expect maybe-install-expect
29060maybe-install-expect:
29061@if expect
29062maybe-install-expect: install-expect
29063
29064install-expect: installdirs
29065 @: $(MAKE); $(unstage)
c52c6897
PB
29066 @r=`${PWD_COMMAND}`; export r; \
29067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 29068 $(HOST_EXPORTS) \
a90ef4bf
JM
29069 (cd $(HOST_SUBDIR)/expect && \
29070 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 29071
a90ef4bf
JM
29072@endif expect
29073
29074.PHONY: install-strip-expect maybe-install-strip-expect
29075maybe-install-strip-expect:
29076@if expect
29077maybe-install-strip-expect: install-strip-expect
29078
29079install-strip-expect: installdirs
29080 @: $(MAKE); $(unstage)
c52c6897
PB
29081 @r=`${PWD_COMMAND}`; export r; \
29082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 29083 $(HOST_EXPORTS) \
a90ef4bf
JM
29084 (cd $(HOST_SUBDIR)/expect && \
29085 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 29086
a90ef4bf 29087@endif expect
be01d343 29088
a90ef4bf 29089# Other targets (info, dvi, pdf, etc.)
be01d343 29090
a90ef4bf
JM
29091.PHONY: maybe-info-expect info-expect
29092maybe-info-expect:
29093@if expect
29094maybe-info-expect: info-expect
be01d343 29095
a90ef4bf
JM
29096info-expect: \
29097 configure-expect
29098 @: $(MAKE); $(unstage)
29099 @[ -f ./expect/Makefile ] || exit 0; \
29100 r=`${PWD_COMMAND}`; export r; \
be01d343 29101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29102 $(HOST_EXPORTS) \
29103 for flag in $(EXTRA_HOST_FLAGS) ; do \
29104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29105 done; \
22121df0 29106 echo "Doing info in expect"; \
a90ef4bf
JM
29107 (cd $(HOST_SUBDIR)/expect && \
29108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29110 "RANLIB=$${RANLIB}" \
29111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29112 info) \
29113 || exit 1
be01d343 29114
a90ef4bf 29115@endif expect
be01d343 29116
a90ef4bf
JM
29117.PHONY: maybe-dvi-expect dvi-expect
29118maybe-dvi-expect:
29119@if expect
29120maybe-dvi-expect: dvi-expect
be01d343 29121
a90ef4bf
JM
29122dvi-expect: \
29123 configure-expect
29124 @: $(MAKE); $(unstage)
29125 @[ -f ./expect/Makefile ] || exit 0; \
29126 r=`${PWD_COMMAND}`; export r; \
be01d343 29127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29128 $(HOST_EXPORTS) \
29129 for flag in $(EXTRA_HOST_FLAGS) ; do \
29130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29131 done; \
22121df0 29132 echo "Doing dvi in expect"; \
a90ef4bf
JM
29133 (cd $(HOST_SUBDIR)/expect && \
29134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29136 "RANLIB=$${RANLIB}" \
29137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29138 dvi) \
29139 || exit 1
be01d343 29140
a90ef4bf 29141@endif expect
be01d343 29142
a90ef4bf
JM
29143.PHONY: maybe-pdf-expect pdf-expect
29144maybe-pdf-expect:
29145@if expect
29146maybe-pdf-expect: pdf-expect
be01d343 29147
a90ef4bf
JM
29148pdf-expect: \
29149 configure-expect
29150 @: $(MAKE); $(unstage)
29151 @[ -f ./expect/Makefile ] || exit 0; \
29152 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
29153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29154 $(HOST_EXPORTS) \
a90ef4bf
JM
29155 for flag in $(EXTRA_HOST_FLAGS) ; do \
29156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29157 done; \
22121df0 29158 echo "Doing pdf in expect"; \
a90ef4bf
JM
29159 (cd $(HOST_SUBDIR)/expect && \
29160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29162 "RANLIB=$${RANLIB}" \
29163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29164 pdf) \
29165 || exit 1
be01d343 29166
a90ef4bf 29167@endif expect
be01d343 29168
a90ef4bf
JM
29169.PHONY: maybe-html-expect html-expect
29170maybe-html-expect:
29171@if expect
29172maybe-html-expect: html-expect
be01d343 29173
a90ef4bf
JM
29174html-expect: \
29175 configure-expect
29176 @: $(MAKE); $(unstage)
29177 @[ -f ./expect/Makefile ] || exit 0; \
29178 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
29179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29180 $(HOST_EXPORTS) \
a90ef4bf
JM
29181 for flag in $(EXTRA_HOST_FLAGS) ; do \
29182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29183 done; \
22121df0 29184 echo "Doing html in expect"; \
a90ef4bf
JM
29185 (cd $(HOST_SUBDIR)/expect && \
29186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29188 "RANLIB=$${RANLIB}" \
29189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29190 html) \
29191 || exit 1
be01d343 29192
a90ef4bf 29193@endif expect
be01d343 29194
a90ef4bf
JM
29195.PHONY: maybe-TAGS-expect TAGS-expect
29196maybe-TAGS-expect:
29197@if expect
29198maybe-TAGS-expect: TAGS-expect
9b980aa1 29199
a90ef4bf
JM
29200TAGS-expect: \
29201 configure-expect
9b980aa1 29202 @: $(MAKE); $(unstage)
a90ef4bf 29203 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29204 r=`${PWD_COMMAND}`; export r; \
29205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29206 $(HOST_EXPORTS) \
29207 for flag in $(EXTRA_HOST_FLAGS) ; do \
29208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29209 done; \
22121df0 29210 echo "Doing TAGS in expect"; \
a90ef4bf 29211 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29214 "RANLIB=$${RANLIB}" \
0c24b341 29215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29216 TAGS) \
29217 || exit 1
29218
a90ef4bf 29219@endif expect
be01d343 29220
a90ef4bf
JM
29221.PHONY: maybe-install-info-expect install-info-expect
29222maybe-install-info-expect:
29223@if expect
29224maybe-install-info-expect: install-info-expect
be01d343 29225
a90ef4bf
JM
29226install-info-expect: \
29227 configure-expect \
29228 info-expect
29229 @: $(MAKE); $(unstage)
29230 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29231 r=`${PWD_COMMAND}`; export r; \
29232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29233 $(HOST_EXPORTS) \
29234 for flag in $(EXTRA_HOST_FLAGS) ; do \
29235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29236 done; \
22121df0 29237 echo "Doing install-info in expect"; \
a90ef4bf 29238 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29241 "RANLIB=$${RANLIB}" \
0c24b341 29242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29243 install-info) \
29244 || exit 1
29245
a90ef4bf 29246@endif expect
be01d343 29247
a90ef4bf
JM
29248.PHONY: maybe-install-pdf-expect install-pdf-expect
29249maybe-install-pdf-expect:
29250@if expect
29251maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 29252
a90ef4bf
JM
29253install-pdf-expect: \
29254 configure-expect \
29255 pdf-expect
29256 @: $(MAKE); $(unstage)
29257 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
29258 r=`${PWD_COMMAND}`; export r; \
29259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29260 $(HOST_EXPORTS) \
29261 for flag in $(EXTRA_HOST_FLAGS) ; do \
29262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29263 done; \
22121df0 29264 echo "Doing install-pdf in expect"; \
a90ef4bf 29265 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
29266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29268 "RANLIB=$${RANLIB}" \
0c24b341 29269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29270 install-pdf) \
29271 || exit 1
29272
a90ef4bf 29273@endif expect
a3ca38d2 29274
a90ef4bf
JM
29275.PHONY: maybe-install-html-expect install-html-expect
29276maybe-install-html-expect:
29277@if expect
29278maybe-install-html-expect: install-html-expect
108a6f8e 29279
a90ef4bf
JM
29280install-html-expect: \
29281 configure-expect \
29282 html-expect
29283 @: $(MAKE); $(unstage)
29284 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
29285 r=`${PWD_COMMAND}`; export r; \
29286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29287 $(HOST_EXPORTS) \
29288 for flag in $(EXTRA_HOST_FLAGS) ; do \
29289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29290 done; \
22121df0 29291 echo "Doing install-html in expect"; \
a90ef4bf 29292 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
29293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29295 "RANLIB=$${RANLIB}" \
0c24b341 29296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29297 install-html) \
29298 || exit 1
29299
a90ef4bf 29300@endif expect
108a6f8e 29301
a90ef4bf
JM
29302.PHONY: maybe-installcheck-expect installcheck-expect
29303maybe-installcheck-expect:
29304@if expect
29305maybe-installcheck-expect: installcheck-expect
be01d343 29306
a90ef4bf
JM
29307installcheck-expect: \
29308 configure-expect
29309 @: $(MAKE); $(unstage)
29310 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29311 r=`${PWD_COMMAND}`; export r; \
29312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29313 $(HOST_EXPORTS) \
29314 for flag in $(EXTRA_HOST_FLAGS) ; do \
29315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29316 done; \
22121df0 29317 echo "Doing installcheck in expect"; \
a90ef4bf 29318 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29321 "RANLIB=$${RANLIB}" \
0c24b341 29322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29323 installcheck) \
29324 || exit 1
29325
a90ef4bf 29326@endif expect
be01d343 29327
a90ef4bf
JM
29328.PHONY: maybe-mostlyclean-expect mostlyclean-expect
29329maybe-mostlyclean-expect:
29330@if expect
29331maybe-mostlyclean-expect: mostlyclean-expect
be01d343 29332
a90ef4bf
JM
29333mostlyclean-expect:
29334 @: $(MAKE); $(unstage)
29335 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29336 r=`${PWD_COMMAND}`; export r; \
29337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29338 $(HOST_EXPORTS) \
29339 for flag in $(EXTRA_HOST_FLAGS) ; do \
29340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29341 done; \
22121df0 29342 echo "Doing mostlyclean in expect"; \
a90ef4bf 29343 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29346 "RANLIB=$${RANLIB}" \
0c24b341 29347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29348 mostlyclean) \
29349 || exit 1
29350
a90ef4bf 29351@endif expect
be01d343 29352
a90ef4bf
JM
29353.PHONY: maybe-clean-expect clean-expect
29354maybe-clean-expect:
29355@if expect
29356maybe-clean-expect: clean-expect
be01d343 29357
a90ef4bf
JM
29358clean-expect:
29359 @: $(MAKE); $(unstage)
29360 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29361 r=`${PWD_COMMAND}`; export r; \
29362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29363 $(HOST_EXPORTS) \
29364 for flag in $(EXTRA_HOST_FLAGS) ; do \
29365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29366 done; \
22121df0 29367 echo "Doing clean in expect"; \
a90ef4bf 29368 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29371 "RANLIB=$${RANLIB}" \
0c24b341 29372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29373 clean) \
29374 || exit 1
29375
a90ef4bf 29376@endif expect
be01d343 29377
a90ef4bf
JM
29378.PHONY: maybe-distclean-expect distclean-expect
29379maybe-distclean-expect:
29380@if expect
29381maybe-distclean-expect: distclean-expect
be01d343 29382
a90ef4bf
JM
29383distclean-expect:
29384 @: $(MAKE); $(unstage)
29385 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29386 r=`${PWD_COMMAND}`; export r; \
29387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29388 $(HOST_EXPORTS) \
29389 for flag in $(EXTRA_HOST_FLAGS) ; do \
29390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29391 done; \
22121df0 29392 echo "Doing distclean in expect"; \
a90ef4bf 29393 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29396 "RANLIB=$${RANLIB}" \
0c24b341 29397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29398 distclean) \
29399 || exit 1
29400
a90ef4bf 29401@endif expect
be01d343 29402
a90ef4bf
JM
29403.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
29404maybe-maintainer-clean-expect:
29405@if expect
29406maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 29407
a90ef4bf
JM
29408maintainer-clean-expect:
29409 @: $(MAKE); $(unstage)
29410 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
29411 r=`${PWD_COMMAND}`; export r; \
29412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29413 $(HOST_EXPORTS) \
29414 for flag in $(EXTRA_HOST_FLAGS) ; do \
29415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29416 done; \
22121df0 29417 echo "Doing maintainer-clean in expect"; \
a90ef4bf 29418 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
29419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29421 "RANLIB=$${RANLIB}" \
0c24b341 29422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
29423 maintainer-clean) \
29424 || exit 1
29425
a90ef4bf 29426@endif expect
be01d343
PB
29427
29428
29429
a90ef4bf
JM
29430.PHONY: configure-guile maybe-configure-guile
29431maybe-configure-guile:
4f0ef2d8 29432@if gcc-bootstrap
a90ef4bf 29433configure-guile: stage_current
4f0ef2d8 29434@endif gcc-bootstrap
a90ef4bf
JM
29435@if guile
29436maybe-configure-guile: configure-guile
29437configure-guile:
0aed8855 29438 @: $(MAKE); $(unstage)
c52c6897 29439 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 29440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29441 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 29442 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 29443 $(HOST_EXPORTS) \
a90ef4bf
JM
29444 echo Configuring in $(HOST_SUBDIR)/guile; \
29445 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 29446 case $(srcdir) in \
b00612cc 29447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29448 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 29449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 29450 esac; \
1b6c0831
L
29451 module_srcdir=guile; \
29452 $(SHELL) \
29453 $$s/$$module_srcdir/configure \
29454 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29455 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29456 --target=${target_alias} \
4b1cb4fe 29457 || exit 1
a90ef4bf 29458@endif guile
4b1cb4fe 29459
a7254363
PB
29460
29461
d545f33b
PB
29462
29463
a90ef4bf
JM
29464.PHONY: all-guile maybe-all-guile
29465maybe-all-guile:
4f0ef2d8 29466@if gcc-bootstrap
a90ef4bf 29467all-guile: stage_current
4f0ef2d8 29468@endif gcc-bootstrap
a90ef4bf
JM
29469@if guile
29470TARGET-guile=all
29471maybe-all-guile: all-guile
29472all-guile: configure-guile
29473 @: $(MAKE); $(unstage)
4b1cb4fe
DD
29474 @r=`${PWD_COMMAND}`; export r; \
29475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 29476 $(HOST_EXPORTS) \
a90ef4bf 29477 (cd $(HOST_SUBDIR)/guile && \
b3676d82 29478 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29479 $(TARGET-guile))
29480@endif guile
4b1cb4fe 29481
a7254363 29482
d545f33b
PB
29483
29484
a90ef4bf
JM
29485.PHONY: check-guile maybe-check-guile
29486maybe-check-guile:
29487@if guile
29488maybe-check-guile: check-guile
4b1cb4fe 29489
a90ef4bf 29490check-guile:
0aed8855 29491 @: $(MAKE); $(unstage)
4b1cb4fe
DD
29492 @r=`${PWD_COMMAND}`; export r; \
29493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29494 $(HOST_EXPORTS) \
a90ef4bf 29495 (cd $(HOST_SUBDIR)/guile && \
b00612cc 29496 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 29497
a90ef4bf 29498@endif guile
4b1cb4fe 29499
a90ef4bf
JM
29500.PHONY: install-guile maybe-install-guile
29501maybe-install-guile:
29502@if guile
29503maybe-install-guile: install-guile
4b1cb4fe 29504
a90ef4bf 29505install-guile: installdirs
0aed8855 29506 @: $(MAKE); $(unstage)
b813574b
PB
29507 @r=`${PWD_COMMAND}`; export r; \
29508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 29509 $(HOST_EXPORTS) \
a90ef4bf 29510 (cd $(HOST_SUBDIR)/guile && \
2da12f12 29511 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 29512
a90ef4bf 29513@endif guile
4b1cb4fe 29514
a90ef4bf
JM
29515.PHONY: install-strip-guile maybe-install-strip-guile
29516maybe-install-strip-guile:
29517@if guile
29518maybe-install-strip-guile: install-strip-guile
9b980aa1 29519
a90ef4bf 29520install-strip-guile: installdirs
9b980aa1
RW
29521 @: $(MAKE); $(unstage)
29522 @r=`${PWD_COMMAND}`; export r; \
29523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29524 $(HOST_EXPORTS) \
a90ef4bf 29525 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
29526 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29527
a90ef4bf 29528@endif guile
9b980aa1 29529
56a8fe78 29530# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 29531
a90ef4bf
JM
29532.PHONY: maybe-info-guile info-guile
29533maybe-info-guile:
29534@if guile
29535maybe-info-guile: info-guile
4b1cb4fe 29536
a90ef4bf
JM
29537info-guile: \
29538 configure-guile
0aed8855 29539 @: $(MAKE); $(unstage)
a90ef4bf 29540 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29541 r=`${PWD_COMMAND}`; export r; \
29542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29543 $(HOST_EXPORTS) \
b813574b 29544 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29546 done; \
22121df0 29547 echo "Doing info in guile"; \
a90ef4bf 29548 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29551 "RANLIB=$${RANLIB}" \
0c24b341 29552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29553 info) \
4b1cb4fe
DD
29554 || exit 1
29555
a90ef4bf 29556@endif guile
4b1cb4fe 29557
a90ef4bf
JM
29558.PHONY: maybe-dvi-guile dvi-guile
29559maybe-dvi-guile:
29560@if guile
29561maybe-dvi-guile: dvi-guile
4b1cb4fe 29562
a90ef4bf
JM
29563dvi-guile: \
29564 configure-guile
0aed8855 29565 @: $(MAKE); $(unstage)
a90ef4bf 29566 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29567 r=`${PWD_COMMAND}`; export r; \
29568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29569 $(HOST_EXPORTS) \
b813574b 29570 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29572 done; \
22121df0 29573 echo "Doing dvi in guile"; \
a90ef4bf 29574 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29577 "RANLIB=$${RANLIB}" \
0c24b341 29578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29579 dvi) \
4b1cb4fe
DD
29580 || exit 1
29581
a90ef4bf 29582@endif guile
4b1cb4fe 29583
a90ef4bf
JM
29584.PHONY: maybe-pdf-guile pdf-guile
29585maybe-pdf-guile:
29586@if guile
29587maybe-pdf-guile: pdf-guile
56a8fe78 29588
a90ef4bf
JM
29589pdf-guile: \
29590 configure-guile
56a8fe78 29591 @: $(MAKE); $(unstage)
a90ef4bf 29592 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
29593 r=`${PWD_COMMAND}`; export r; \
29594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29595 $(HOST_EXPORTS) \
29596 for flag in $(EXTRA_HOST_FLAGS) ; do \
29597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29598 done; \
22121df0 29599 echo "Doing pdf in guile"; \
a90ef4bf 29600 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
29601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29603 "RANLIB=$${RANLIB}" \
0c24b341 29604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
29605 pdf) \
29606 || exit 1
29607
a90ef4bf 29608@endif guile
56a8fe78 29609
a90ef4bf
JM
29610.PHONY: maybe-html-guile html-guile
29611maybe-html-guile:
29612@if guile
29613maybe-html-guile: html-guile
6d389afc 29614
a90ef4bf
JM
29615html-guile: \
29616 configure-guile
0aed8855 29617 @: $(MAKE); $(unstage)
a90ef4bf 29618 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
29619 r=`${PWD_COMMAND}`; export r; \
29620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29621 $(HOST_EXPORTS) \
29622 for flag in $(EXTRA_HOST_FLAGS) ; do \
29623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29624 done; \
22121df0 29625 echo "Doing html in guile"; \
a90ef4bf 29626 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
29627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29629 "RANLIB=$${RANLIB}" \
0c24b341 29630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29631 html) \
29632 || exit 1
29633
a90ef4bf 29634@endif guile
6d389afc 29635
a90ef4bf
JM
29636.PHONY: maybe-TAGS-guile TAGS-guile
29637maybe-TAGS-guile:
29638@if guile
29639maybe-TAGS-guile: TAGS-guile
4b1cb4fe 29640
a90ef4bf
JM
29641TAGS-guile: \
29642 configure-guile
0aed8855 29643 @: $(MAKE); $(unstage)
a90ef4bf 29644 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29645 r=`${PWD_COMMAND}`; export r; \
29646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29647 $(HOST_EXPORTS) \
b813574b 29648 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29650 done; \
22121df0 29651 echo "Doing TAGS in guile"; \
a90ef4bf 29652 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29655 "RANLIB=$${RANLIB}" \
0c24b341 29656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29657 TAGS) \
4b1cb4fe
DD
29658 || exit 1
29659
a90ef4bf 29660@endif guile
4b1cb4fe 29661
a90ef4bf
JM
29662.PHONY: maybe-install-info-guile install-info-guile
29663maybe-install-info-guile:
29664@if guile
29665maybe-install-info-guile: install-info-guile
4b1cb4fe 29666
a90ef4bf
JM
29667install-info-guile: \
29668 configure-guile \
29669 info-guile
0aed8855 29670 @: $(MAKE); $(unstage)
a90ef4bf 29671 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29672 r=`${PWD_COMMAND}`; export r; \
29673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29674 $(HOST_EXPORTS) \
b813574b 29675 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29677 done; \
22121df0 29678 echo "Doing install-info in guile"; \
a90ef4bf 29679 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29682 "RANLIB=$${RANLIB}" \
0c24b341 29683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29684 install-info) \
4b1cb4fe
DD
29685 || exit 1
29686
a90ef4bf 29687@endif guile
4b1cb4fe 29688
a90ef4bf
JM
29689.PHONY: maybe-install-pdf-guile install-pdf-guile
29690maybe-install-pdf-guile:
29691@if guile
29692maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 29693
a90ef4bf
JM
29694install-pdf-guile: \
29695 configure-guile \
29696 pdf-guile
a3ca38d2 29697 @: $(MAKE); $(unstage)
a90ef4bf 29698 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
29699 r=`${PWD_COMMAND}`; export r; \
29700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29701 $(HOST_EXPORTS) \
29702 for flag in $(EXTRA_HOST_FLAGS) ; do \
29703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29704 done; \
22121df0 29705 echo "Doing install-pdf in guile"; \
a90ef4bf 29706 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
29707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29709 "RANLIB=$${RANLIB}" \
0c24b341 29710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
29711 install-pdf) \
29712 || exit 1
29713
a90ef4bf 29714@endif guile
a3ca38d2 29715
a90ef4bf
JM
29716.PHONY: maybe-install-html-guile install-html-guile
29717maybe-install-html-guile:
29718@if guile
29719maybe-install-html-guile: install-html-guile
108a6f8e 29720
a90ef4bf
JM
29721install-html-guile: \
29722 configure-guile \
29723 html-guile
108a6f8e 29724 @: $(MAKE); $(unstage)
a90ef4bf 29725 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
29726 r=`${PWD_COMMAND}`; export r; \
29727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29728 $(HOST_EXPORTS) \
29729 for flag in $(EXTRA_HOST_FLAGS) ; do \
29730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29731 done; \
22121df0 29732 echo "Doing install-html in guile"; \
a90ef4bf 29733 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
29734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29736 "RANLIB=$${RANLIB}" \
0c24b341 29737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
29738 install-html) \
29739 || exit 1
29740
a90ef4bf 29741@endif guile
108a6f8e 29742
a90ef4bf
JM
29743.PHONY: maybe-installcheck-guile installcheck-guile
29744maybe-installcheck-guile:
29745@if guile
29746maybe-installcheck-guile: installcheck-guile
4b1cb4fe 29747
a90ef4bf
JM
29748installcheck-guile: \
29749 configure-guile
0aed8855 29750 @: $(MAKE); $(unstage)
a90ef4bf 29751 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29752 r=`${PWD_COMMAND}`; export r; \
29753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29754 $(HOST_EXPORTS) \
b813574b 29755 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29757 done; \
22121df0 29758 echo "Doing installcheck in guile"; \
a90ef4bf 29759 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29762 "RANLIB=$${RANLIB}" \
0c24b341 29763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29764 installcheck) \
4b1cb4fe
DD
29765 || exit 1
29766
a90ef4bf 29767@endif guile
4b1cb4fe 29768
a90ef4bf
JM
29769.PHONY: maybe-mostlyclean-guile mostlyclean-guile
29770maybe-mostlyclean-guile:
29771@if guile
29772maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 29773
a90ef4bf 29774mostlyclean-guile:
0aed8855 29775 @: $(MAKE); $(unstage)
a90ef4bf 29776 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29777 r=`${PWD_COMMAND}`; export r; \
29778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29779 $(HOST_EXPORTS) \
b813574b 29780 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29782 done; \
22121df0 29783 echo "Doing mostlyclean in guile"; \
a90ef4bf 29784 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29787 "RANLIB=$${RANLIB}" \
0c24b341 29788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29789 mostlyclean) \
4b1cb4fe
DD
29790 || exit 1
29791
a90ef4bf 29792@endif guile
4b1cb4fe 29793
a90ef4bf
JM
29794.PHONY: maybe-clean-guile clean-guile
29795maybe-clean-guile:
29796@if guile
29797maybe-clean-guile: clean-guile
4b1cb4fe 29798
a90ef4bf 29799clean-guile:
0aed8855 29800 @: $(MAKE); $(unstage)
a90ef4bf 29801 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29802 r=`${PWD_COMMAND}`; export r; \
29803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29804 $(HOST_EXPORTS) \
b813574b 29805 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29807 done; \
22121df0 29808 echo "Doing clean in guile"; \
a90ef4bf 29809 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29812 "RANLIB=$${RANLIB}" \
0c24b341 29813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29814 clean) \
4b1cb4fe
DD
29815 || exit 1
29816
a90ef4bf 29817@endif guile
4b1cb4fe 29818
a90ef4bf
JM
29819.PHONY: maybe-distclean-guile distclean-guile
29820maybe-distclean-guile:
29821@if guile
29822maybe-distclean-guile: distclean-guile
4b1cb4fe 29823
a90ef4bf 29824distclean-guile:
0aed8855 29825 @: $(MAKE); $(unstage)
a90ef4bf 29826 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29827 r=`${PWD_COMMAND}`; export r; \
29828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29829 $(HOST_EXPORTS) \
b813574b 29830 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29832 done; \
22121df0 29833 echo "Doing distclean in guile"; \
a90ef4bf 29834 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29837 "RANLIB=$${RANLIB}" \
0c24b341 29838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29839 distclean) \
4b1cb4fe
DD
29840 || exit 1
29841
a90ef4bf 29842@endif guile
4b1cb4fe 29843
a90ef4bf
JM
29844.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
29845maybe-maintainer-clean-guile:
29846@if guile
29847maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 29848
a90ef4bf 29849maintainer-clean-guile:
0aed8855 29850 @: $(MAKE); $(unstage)
a90ef4bf 29851 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
29852 r=`${PWD_COMMAND}`; export r; \
29853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29854 $(HOST_EXPORTS) \
b813574b 29855 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
29856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29857 done; \
22121df0 29858 echo "Doing maintainer-clean in guile"; \
a90ef4bf 29859 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
29860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29862 "RANLIB=$${RANLIB}" \
0c24b341 29863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 29864 maintainer-clean) \
4b1cb4fe
DD
29865 || exit 1
29866
a90ef4bf 29867@endif guile
4b1cb4fe
DD
29868
29869
a7254363 29870
a90ef4bf
JM
29871.PHONY: configure-tk maybe-configure-tk
29872maybe-configure-tk:
4f0ef2d8 29873@if gcc-bootstrap
a90ef4bf 29874configure-tk: stage_current
4f0ef2d8 29875@endif gcc-bootstrap
a90ef4bf
JM
29876@if tk
29877maybe-configure-tk: configure-tk
29878configure-tk:
29879 @: $(MAKE); $(unstage)
c52c6897
PB
29880 @r=`${PWD_COMMAND}`; export r; \
29881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29882 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 29883 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 29884 $(HOST_EXPORTS) \
a90ef4bf
JM
29885 echo Configuring in $(HOST_SUBDIR)/tk; \
29886 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 29887 case $(srcdir) in \
b00612cc 29888 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29889 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 29890 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29891 esac; \
1b6c0831
L
29892 module_srcdir=tk; \
29893 $(SHELL) \
29894 $$s/$$module_srcdir/configure \
29895 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29896 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29897 --target=${target_alias} \
2a4cbe27 29898 || exit 1
a90ef4bf 29899@endif tk
2a4cbe27 29900
a7254363
PB
29901
29902
a90ef4bf
JM
29903
29904
29905.PHONY: all-tk maybe-all-tk
29906maybe-all-tk:
29907@if gcc-bootstrap
29908all-tk: stage_current
29909@endif gcc-bootstrap
29910@if tk
29911TARGET-tk=all
29912maybe-all-tk: all-tk
29913all-tk: configure-tk
29914 @: $(MAKE); $(unstage)
c52c6897
PB
29915 @r=`${PWD_COMMAND}`; export r; \
29916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29917 $(HOST_EXPORTS) \
29918 (cd $(HOST_SUBDIR)/tk && \
b3676d82 29919 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29920 $(TARGET-tk))
29921@endif tk
d545f33b 29922
a90ef4bf
JM
29923
29924
29925
29926.PHONY: check-tk maybe-check-tk
29927maybe-check-tk:
29928@if tk
29929maybe-check-tk: check-tk
29930
29931check-tk:
29932 @: $(MAKE); $(unstage)
c52c6897
PB
29933 @r=`${PWD_COMMAND}`; export r; \
29934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29935 $(HOST_EXPORTS) \
a90ef4bf
JM
29936 (cd $(HOST_SUBDIR)/tk && \
29937 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 29938
a90ef4bf
JM
29939@endif tk
29940
29941.PHONY: install-tk maybe-install-tk
29942maybe-install-tk:
29943@if tk
29944maybe-install-tk: install-tk
29945
29946install-tk: installdirs
29947 @: $(MAKE); $(unstage)
c52c6897
PB
29948 @r=`${PWD_COMMAND}`; export r; \
29949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29950 $(HOST_EXPORTS) \
a90ef4bf
JM
29951 (cd $(HOST_SUBDIR)/tk && \
29952 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 29953
a90ef4bf
JM
29954@endif tk
29955
29956.PHONY: install-strip-tk maybe-install-strip-tk
29957maybe-install-strip-tk:
29958@if tk
29959maybe-install-strip-tk: install-strip-tk
29960
29961install-strip-tk: installdirs
29962 @: $(MAKE); $(unstage)
c52c6897
PB
29963 @r=`${PWD_COMMAND}`; export r; \
29964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29965 $(HOST_EXPORTS) \
a90ef4bf
JM
29966 (cd $(HOST_SUBDIR)/tk && \
29967 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29968
a90ef4bf 29969@endif tk
9b980aa1 29970
56a8fe78 29971# Other targets (info, dvi, pdf, etc.)
2a4cbe27 29972
a90ef4bf
JM
29973.PHONY: maybe-info-tk info-tk
29974maybe-info-tk:
29975@if tk
29976maybe-info-tk: info-tk
4fa63067 29977
a90ef4bf
JM
29978info-tk: \
29979 configure-tk
29980 @: $(MAKE); $(unstage)
29981 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
29982 r=`${PWD_COMMAND}`; export r; \
29983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29984 $(HOST_EXPORTS) \
b813574b 29985 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29987 done; \
22121df0 29988 echo "Doing info in tk"; \
a90ef4bf 29989 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
29990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29992 "RANLIB=$${RANLIB}" \
0c24b341 29993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
29994 info) \
29995 || exit 1
29996
a90ef4bf 29997@endif tk
6d389afc 29998
a90ef4bf
JM
29999.PHONY: maybe-dvi-tk dvi-tk
30000maybe-dvi-tk:
30001@if tk
30002maybe-dvi-tk: dvi-tk
6d389afc 30003
a90ef4bf
JM
30004dvi-tk: \
30005 configure-tk
30006 @: $(MAKE); $(unstage)
30007 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
30008 r=`${PWD_COMMAND}`; export r; \
30009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30010 $(HOST_EXPORTS) \
30011 for flag in $(EXTRA_HOST_FLAGS) ; do \
30012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30013 done; \
22121df0 30014 echo "Doing dvi in tk"; \
a90ef4bf 30015 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30018 "RANLIB=$${RANLIB}" \
0c24b341 30019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 30020 dvi) \
2a4cbe27
NN
30021 || exit 1
30022
a90ef4bf 30023@endif tk
2a4cbe27 30024
a90ef4bf
JM
30025.PHONY: maybe-pdf-tk pdf-tk
30026maybe-pdf-tk:
30027@if tk
30028maybe-pdf-tk: pdf-tk
56a8fe78 30029
a90ef4bf
JM
30030pdf-tk: \
30031 configure-tk
30032 @: $(MAKE); $(unstage)
30033 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
30034 r=`${PWD_COMMAND}`; export r; \
30035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30036 $(HOST_EXPORTS) \
30037 for flag in $(EXTRA_HOST_FLAGS) ; do \
30038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30039 done; \
22121df0 30040 echo "Doing pdf in tk"; \
a90ef4bf 30041 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
30042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30044 "RANLIB=$${RANLIB}" \
0c24b341 30045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30046 pdf) \
30047 || exit 1
30048
a90ef4bf 30049@endif tk
56a8fe78 30050
a90ef4bf
JM
30051.PHONY: maybe-html-tk html-tk
30052maybe-html-tk:
30053@if tk
30054maybe-html-tk: html-tk
2a4cbe27 30055
a90ef4bf
JM
30056html-tk: \
30057 configure-tk
30058 @: $(MAKE); $(unstage)
30059 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30060 r=`${PWD_COMMAND}`; export r; \
30061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30062 $(HOST_EXPORTS) \
b813574b 30063 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30065 done; \
22121df0 30066 echo "Doing html in tk"; \
a90ef4bf 30067 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30070 "RANLIB=$${RANLIB}" \
0c24b341 30071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 30072 html) \
2a4cbe27
NN
30073 || exit 1
30074
a90ef4bf 30075@endif tk
2a4cbe27 30076
a90ef4bf
JM
30077.PHONY: maybe-TAGS-tk TAGS-tk
30078maybe-TAGS-tk:
30079@if tk
30080maybe-TAGS-tk: TAGS-tk
2a4cbe27 30081
a90ef4bf
JM
30082TAGS-tk: \
30083 configure-tk
30084 @: $(MAKE); $(unstage)
30085 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30086 r=`${PWD_COMMAND}`; export r; \
30087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30088 $(HOST_EXPORTS) \
b813574b 30089 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30091 done; \
22121df0 30092 echo "Doing TAGS in tk"; \
a90ef4bf 30093 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30096 "RANLIB=$${RANLIB}" \
0c24b341 30097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30098 TAGS) \
2a4cbe27
NN
30099 || exit 1
30100
a90ef4bf 30101@endif tk
2a4cbe27 30102
a90ef4bf
JM
30103.PHONY: maybe-install-info-tk install-info-tk
30104maybe-install-info-tk:
30105@if tk
30106maybe-install-info-tk: install-info-tk
2a4cbe27 30107
a90ef4bf
JM
30108install-info-tk: \
30109 configure-tk \
30110 info-tk
30111 @: $(MAKE); $(unstage)
30112 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30113 r=`${PWD_COMMAND}`; export r; \
30114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30115 $(HOST_EXPORTS) \
b813574b 30116 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30118 done; \
22121df0 30119 echo "Doing install-info in tk"; \
a90ef4bf 30120 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30123 "RANLIB=$${RANLIB}" \
0c24b341 30124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30125 install-info) \
2a4cbe27
NN
30126 || exit 1
30127
a90ef4bf 30128@endif tk
2a4cbe27 30129
a90ef4bf
JM
30130.PHONY: maybe-install-pdf-tk install-pdf-tk
30131maybe-install-pdf-tk:
30132@if tk
30133maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 30134
a90ef4bf
JM
30135install-pdf-tk: \
30136 configure-tk \
30137 pdf-tk
30138 @: $(MAKE); $(unstage)
30139 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
30140 r=`${PWD_COMMAND}`; export r; \
30141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30142 $(HOST_EXPORTS) \
30143 for flag in $(EXTRA_HOST_FLAGS) ; do \
30144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30145 done; \
22121df0 30146 echo "Doing install-pdf in tk"; \
a90ef4bf 30147 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
30148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30150 "RANLIB=$${RANLIB}" \
0c24b341 30151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30152 install-pdf) \
30153 || exit 1
30154
a90ef4bf 30155@endif tk
a3ca38d2 30156
a90ef4bf
JM
30157.PHONY: maybe-install-html-tk install-html-tk
30158maybe-install-html-tk:
30159@if tk
30160maybe-install-html-tk: install-html-tk
108a6f8e 30161
a90ef4bf
JM
30162install-html-tk: \
30163 configure-tk \
30164 html-tk
30165 @: $(MAKE); $(unstage)
30166 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
30167 r=`${PWD_COMMAND}`; export r; \
30168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30169 $(HOST_EXPORTS) \
30170 for flag in $(EXTRA_HOST_FLAGS) ; do \
30171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30172 done; \
22121df0 30173 echo "Doing install-html in tk"; \
a90ef4bf 30174 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
30175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30177 "RANLIB=$${RANLIB}" \
0c24b341 30178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30179 install-html) \
30180 || exit 1
30181
a90ef4bf 30182@endif tk
108a6f8e 30183
a90ef4bf
JM
30184.PHONY: maybe-installcheck-tk installcheck-tk
30185maybe-installcheck-tk:
30186@if tk
30187maybe-installcheck-tk: installcheck-tk
2a4cbe27 30188
a90ef4bf
JM
30189installcheck-tk: \
30190 configure-tk
30191 @: $(MAKE); $(unstage)
30192 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30193 r=`${PWD_COMMAND}`; export r; \
30194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30195 $(HOST_EXPORTS) \
b813574b 30196 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30198 done; \
22121df0 30199 echo "Doing installcheck in tk"; \
a90ef4bf 30200 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30203 "RANLIB=$${RANLIB}" \
0c24b341 30204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30205 installcheck) \
2a4cbe27
NN
30206 || exit 1
30207
a90ef4bf 30208@endif tk
2a4cbe27 30209
a90ef4bf
JM
30210.PHONY: maybe-mostlyclean-tk mostlyclean-tk
30211maybe-mostlyclean-tk:
30212@if tk
30213maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 30214
a90ef4bf
JM
30215mostlyclean-tk:
30216 @: $(MAKE); $(unstage)
30217 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30218 r=`${PWD_COMMAND}`; export r; \
30219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30220 $(HOST_EXPORTS) \
b813574b 30221 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30223 done; \
22121df0 30224 echo "Doing mostlyclean in tk"; \
a90ef4bf 30225 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30228 "RANLIB=$${RANLIB}" \
0c24b341 30229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30230 mostlyclean) \
2a4cbe27
NN
30231 || exit 1
30232
a90ef4bf 30233@endif tk
2a4cbe27 30234
a90ef4bf
JM
30235.PHONY: maybe-clean-tk clean-tk
30236maybe-clean-tk:
30237@if tk
30238maybe-clean-tk: clean-tk
2a4cbe27 30239
a90ef4bf
JM
30240clean-tk:
30241 @: $(MAKE); $(unstage)
30242 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30243 r=`${PWD_COMMAND}`; export r; \
30244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30245 $(HOST_EXPORTS) \
b813574b 30246 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30248 done; \
22121df0 30249 echo "Doing clean in tk"; \
a90ef4bf 30250 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30253 "RANLIB=$${RANLIB}" \
0c24b341 30254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30255 clean) \
2a4cbe27
NN
30256 || exit 1
30257
a90ef4bf 30258@endif tk
2a4cbe27 30259
a90ef4bf
JM
30260.PHONY: maybe-distclean-tk distclean-tk
30261maybe-distclean-tk:
30262@if tk
30263maybe-distclean-tk: distclean-tk
2a4cbe27 30264
a90ef4bf
JM
30265distclean-tk:
30266 @: $(MAKE); $(unstage)
30267 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30268 r=`${PWD_COMMAND}`; export r; \
30269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30270 $(HOST_EXPORTS) \
b813574b 30271 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30273 done; \
22121df0 30274 echo "Doing distclean in tk"; \
a90ef4bf 30275 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30278 "RANLIB=$${RANLIB}" \
0c24b341 30279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30280 distclean) \
2a4cbe27
NN
30281 || exit 1
30282
a90ef4bf 30283@endif tk
2a4cbe27 30284
a90ef4bf
JM
30285.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
30286maybe-maintainer-clean-tk:
30287@if tk
30288maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 30289
a90ef4bf
JM
30290maintainer-clean-tk:
30291 @: $(MAKE); $(unstage)
30292 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30293 r=`${PWD_COMMAND}`; export r; \
30294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30295 $(HOST_EXPORTS) \
b813574b 30296 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30298 done; \
22121df0 30299 echo "Doing maintainer-clean in tk"; \
a90ef4bf 30300 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30303 "RANLIB=$${RANLIB}" \
0c24b341 30304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30305 maintainer-clean) \
2a4cbe27
NN
30306 || exit 1
30307
a90ef4bf 30308@endif tk
2a4cbe27 30309
2a4cbe27 30310
a7254363 30311
a90ef4bf
JM
30312.PHONY: configure-libtermcap maybe-configure-libtermcap
30313maybe-configure-libtermcap:
dc448a7b 30314@if gcc-bootstrap
a90ef4bf 30315configure-libtermcap: stage_current
dc448a7b 30316@endif gcc-bootstrap
a90ef4bf
JM
30317@if libtermcap
30318maybe-configure-libtermcap: configure-libtermcap
30319configure-libtermcap:
dc448a7b
TT
30320 @: $(MAKE); $(unstage)
30321 @r=`${PWD_COMMAND}`; export r; \
30322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30323 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 30324 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 30325 $(HOST_EXPORTS) \
a90ef4bf
JM
30326 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
30327 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
30328 case $(srcdir) in \
30329 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30330 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
30331 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30332 esac; \
1b6c0831
L
30333 module_srcdir=libtermcap; \
30334 $(SHELL) \
30335 $$s/$$module_srcdir/configure \
30336 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 30337 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30338 --target=${target_alias} \
dc448a7b 30339 || exit 1
a90ef4bf 30340@endif libtermcap
dc448a7b
TT
30341
30342
30343
30344
30345
a90ef4bf
JM
30346.PHONY: all-libtermcap maybe-all-libtermcap
30347maybe-all-libtermcap:
dc448a7b 30348@if gcc-bootstrap
a90ef4bf 30349all-libtermcap: stage_current
dc448a7b 30350@endif gcc-bootstrap
a90ef4bf
JM
30351@if libtermcap
30352TARGET-libtermcap=all
30353maybe-all-libtermcap: all-libtermcap
30354all-libtermcap: configure-libtermcap
dc448a7b
TT
30355 @: $(MAKE); $(unstage)
30356 @r=`${PWD_COMMAND}`; export r; \
30357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30358 $(HOST_EXPORTS) \
a90ef4bf 30359 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 30360 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30361 $(TARGET-libtermcap))
30362@endif libtermcap
dc448a7b
TT
30363
30364
30365
30366
a90ef4bf
JM
30367.PHONY: check-libtermcap maybe-check-libtermcap
30368maybe-check-libtermcap:
30369@if libtermcap
30370maybe-check-libtermcap: check-libtermcap
dc448a7b 30371
a90ef4bf
JM
30372check-libtermcap:
30373
30374@endif libtermcap
30375
30376.PHONY: install-libtermcap maybe-install-libtermcap
30377maybe-install-libtermcap:
30378@if libtermcap
30379maybe-install-libtermcap: install-libtermcap
30380
30381install-libtermcap: installdirs
dc448a7b
TT
30382 @: $(MAKE); $(unstage)
30383 @r=`${PWD_COMMAND}`; export r; \
30384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30385 $(HOST_EXPORTS) \
a90ef4bf
JM
30386 (cd $(HOST_SUBDIR)/libtermcap && \
30387 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 30388
a90ef4bf 30389@endif libtermcap
dc448a7b 30390
a90ef4bf
JM
30391.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
30392maybe-install-strip-libtermcap:
30393@if libtermcap
30394maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 30395
a90ef4bf
JM
30396install-strip-libtermcap: installdirs
30397 @: $(MAKE); $(unstage)
30398 @r=`${PWD_COMMAND}`; export r; \
30399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30400 $(HOST_EXPORTS) \
30401 (cd $(HOST_SUBDIR)/libtermcap && \
30402 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 30403
a90ef4bf 30404@endif libtermcap
9b980aa1 30405
dc448a7b
TT
30406# Other targets (info, dvi, pdf, etc.)
30407
a90ef4bf
JM
30408.PHONY: maybe-info-libtermcap info-libtermcap
30409maybe-info-libtermcap:
30410@if libtermcap
30411maybe-info-libtermcap: info-libtermcap
dc448a7b 30412
a90ef4bf
JM
30413info-libtermcap: \
30414 configure-libtermcap
dc448a7b 30415 @: $(MAKE); $(unstage)
a90ef4bf 30416 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30417 r=`${PWD_COMMAND}`; export r; \
30418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30419 $(HOST_EXPORTS) \
30420 for flag in $(EXTRA_HOST_FLAGS) ; do \
30421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30422 done; \
22121df0 30423 echo "Doing info in libtermcap"; \
a90ef4bf 30424 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30427 "RANLIB=$${RANLIB}" \
30428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30429 info) \
30430 || exit 1
30431
a90ef4bf 30432@endif libtermcap
dc448a7b 30433
a90ef4bf
JM
30434.PHONY: maybe-dvi-libtermcap dvi-libtermcap
30435maybe-dvi-libtermcap:
30436@if libtermcap
30437maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 30438
a90ef4bf
JM
30439dvi-libtermcap: \
30440 configure-libtermcap
dc448a7b 30441 @: $(MAKE); $(unstage)
a90ef4bf 30442 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
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 dvi in libtermcap"; \
a90ef4bf 30450 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30451 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30452 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30453 "RANLIB=$${RANLIB}" \
30454 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30455 dvi) \
30456 || exit 1
30457
a90ef4bf 30458@endif libtermcap
dc448a7b 30459
a90ef4bf
JM
30460.PHONY: maybe-pdf-libtermcap pdf-libtermcap
30461maybe-pdf-libtermcap:
30462@if libtermcap
30463maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 30464
a90ef4bf
JM
30465pdf-libtermcap: \
30466 configure-libtermcap
dc448a7b 30467 @: $(MAKE); $(unstage)
a90ef4bf 30468 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30469 r=`${PWD_COMMAND}`; export r; \
30470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
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 pdf in libtermcap"; \
a90ef4bf 30476 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30479 "RANLIB=$${RANLIB}" \
30480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30481 pdf) \
30482 || exit 1
30483
a90ef4bf 30484@endif libtermcap
dc448a7b 30485
a90ef4bf
JM
30486.PHONY: maybe-html-libtermcap html-libtermcap
30487maybe-html-libtermcap:
30488@if libtermcap
30489maybe-html-libtermcap: html-libtermcap
dc448a7b 30490
a90ef4bf
JM
30491html-libtermcap: \
30492 configure-libtermcap
dc448a7b 30493 @: $(MAKE); $(unstage)
a90ef4bf 30494 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30495 r=`${PWD_COMMAND}`; export r; \
30496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30497 $(HOST_EXPORTS) \
30498 for flag in $(EXTRA_HOST_FLAGS) ; do \
30499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30500 done; \
22121df0 30501 echo "Doing html in libtermcap"; \
a90ef4bf 30502 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30505 "RANLIB=$${RANLIB}" \
30506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30507 html) \
30508 || exit 1
30509
a90ef4bf 30510@endif libtermcap
dc448a7b 30511
a90ef4bf
JM
30512.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
30513maybe-TAGS-libtermcap:
30514@if libtermcap
30515maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 30516
a90ef4bf
JM
30517TAGS-libtermcap: \
30518 configure-libtermcap
dc448a7b 30519 @: $(MAKE); $(unstage)
a90ef4bf 30520 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30521 r=`${PWD_COMMAND}`; export r; \
30522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30523 $(HOST_EXPORTS) \
30524 for flag in $(EXTRA_HOST_FLAGS) ; do \
30525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30526 done; \
22121df0 30527 echo "Doing TAGS in libtermcap"; \
a90ef4bf 30528 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30531 "RANLIB=$${RANLIB}" \
30532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30533 TAGS) \
30534 || exit 1
30535
a90ef4bf 30536@endif libtermcap
dc448a7b 30537
a90ef4bf
JM
30538.PHONY: maybe-install-info-libtermcap install-info-libtermcap
30539maybe-install-info-libtermcap:
30540@if libtermcap
30541maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 30542
a90ef4bf
JM
30543install-info-libtermcap: \
30544 configure-libtermcap \
30545 info-libtermcap
dc448a7b 30546 @: $(MAKE); $(unstage)
a90ef4bf 30547 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30548 r=`${PWD_COMMAND}`; export r; \
30549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30550 $(HOST_EXPORTS) \
30551 for flag in $(EXTRA_HOST_FLAGS) ; do \
30552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30553 done; \
22121df0 30554 echo "Doing install-info in libtermcap"; \
a90ef4bf 30555 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30558 "RANLIB=$${RANLIB}" \
30559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30560 install-info) \
dc448a7b
TT
30561 || exit 1
30562
a90ef4bf 30563@endif libtermcap
dc448a7b 30564
a90ef4bf
JM
30565.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
30566maybe-install-pdf-libtermcap:
30567@if libtermcap
30568maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 30569
a90ef4bf
JM
30570install-pdf-libtermcap: \
30571 configure-libtermcap \
30572 pdf-libtermcap
dc448a7b 30573 @: $(MAKE); $(unstage)
a90ef4bf 30574 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30575 r=`${PWD_COMMAND}`; export r; \
30576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30577 $(HOST_EXPORTS) \
30578 for flag in $(EXTRA_HOST_FLAGS) ; do \
30579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30580 done; \
22121df0 30581 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 30582 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30585 "RANLIB=$${RANLIB}" \
30586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30587 install-pdf) \
dc448a7b
TT
30588 || exit 1
30589
a90ef4bf 30590@endif libtermcap
dc448a7b 30591
a90ef4bf
JM
30592.PHONY: maybe-install-html-libtermcap install-html-libtermcap
30593maybe-install-html-libtermcap:
30594@if libtermcap
30595maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 30596
a90ef4bf
JM
30597install-html-libtermcap: \
30598 configure-libtermcap \
30599 html-libtermcap
dc448a7b 30600 @: $(MAKE); $(unstage)
a90ef4bf 30601 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30602 r=`${PWD_COMMAND}`; export r; \
30603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30604 $(HOST_EXPORTS) \
30605 for flag in $(EXTRA_HOST_FLAGS) ; do \
30606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30607 done; \
22121df0 30608 echo "Doing install-html in libtermcap"; \
a90ef4bf 30609 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30612 "RANLIB=$${RANLIB}" \
30613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30614 install-html) \
dc448a7b
TT
30615 || exit 1
30616
a90ef4bf 30617@endif libtermcap
dc448a7b 30618
a90ef4bf
JM
30619.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
30620maybe-installcheck-libtermcap:
30621@if libtermcap
30622maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 30623
a90ef4bf
JM
30624installcheck-libtermcap: \
30625 configure-libtermcap
dc448a7b 30626 @: $(MAKE); $(unstage)
a90ef4bf 30627 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
30628 r=`${PWD_COMMAND}`; export r; \
30629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30630 $(HOST_EXPORTS) \
30631 for flag in $(EXTRA_HOST_FLAGS) ; do \
30632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30633 done; \
22121df0 30634 echo "Doing installcheck in libtermcap"; \
a90ef4bf 30635 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
30636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30638 "RANLIB=$${RANLIB}" \
30639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 30640 installcheck) \
dc448a7b
TT
30641 || exit 1
30642
a90ef4bf 30643@endif libtermcap
dc448a7b 30644
a90ef4bf
JM
30645.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
30646maybe-mostlyclean-libtermcap:
30647@if libtermcap
30648maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 30649
a90ef4bf
JM
30650# libtermcap doesn't support mostlyclean.
30651mostlyclean-libtermcap:
dc448a7b 30652
a90ef4bf 30653@endif libtermcap
dc448a7b 30654
a90ef4bf
JM
30655.PHONY: maybe-clean-libtermcap clean-libtermcap
30656maybe-clean-libtermcap:
30657@if libtermcap
30658maybe-clean-libtermcap: clean-libtermcap
dc448a7b 30659
a90ef4bf
JM
30660# libtermcap doesn't support clean.
30661clean-libtermcap:
dc448a7b 30662
a90ef4bf
JM
30663@endif libtermcap
30664
30665.PHONY: maybe-distclean-libtermcap distclean-libtermcap
30666maybe-distclean-libtermcap:
30667@if libtermcap
30668maybe-distclean-libtermcap: distclean-libtermcap
30669
30670# libtermcap doesn't support distclean.
30671distclean-libtermcap:
30672
30673@endif libtermcap
30674
30675.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
30676maybe-maintainer-clean-libtermcap:
30677@if libtermcap
30678maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
30679
30680# libtermcap doesn't support maintainer-clean.
30681maintainer-clean-libtermcap:
30682
30683@endif libtermcap
30684
30685
30686
30687.PHONY: configure-utils maybe-configure-utils
30688maybe-configure-utils:
30689@if gcc-bootstrap
30690configure-utils: stage_current
30691@endif gcc-bootstrap
30692@if utils
30693maybe-configure-utils: configure-utils
30694configure-utils:
30695 @: $(MAKE); $(unstage)
c52c6897 30696 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30698 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 30699 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 30700 $(HOST_EXPORTS) \
a90ef4bf
JM
30701 echo Configuring in $(HOST_SUBDIR)/utils; \
30702 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 30703 case $(srcdir) in \
b00612cc 30704 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30705 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 30706 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30707 esac; \
1b6c0831
L
30708 module_srcdir=utils; \
30709 $(SHELL) \
30710 $$s/$$module_srcdir/configure \
30711 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30712 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30713 --target=${target_alias} \
2a4cbe27 30714 || exit 1
a90ef4bf 30715@endif utils
2a4cbe27 30716
a7254363
PB
30717
30718
d545f33b
PB
30719
30720
a90ef4bf
JM
30721.PHONY: all-utils maybe-all-utils
30722maybe-all-utils:
4f0ef2d8 30723@if gcc-bootstrap
a90ef4bf 30724all-utils: stage_current
4f0ef2d8 30725@endif gcc-bootstrap
a90ef4bf
JM
30726@if utils
30727TARGET-utils=all
30728maybe-all-utils: all-utils
30729all-utils: configure-utils
0aed8855 30730 @: $(MAKE); $(unstage)
4fa63067
NN
30731 @r=`${PWD_COMMAND}`; export r; \
30732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30733 $(HOST_EXPORTS) \
a90ef4bf 30734 (cd $(HOST_SUBDIR)/utils && \
b3676d82 30735 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30736 $(TARGET-utils))
30737@endif utils
2a4cbe27 30738
a7254363 30739
d545f33b
PB
30740
30741
a90ef4bf
JM
30742.PHONY: check-utils maybe-check-utils
30743maybe-check-utils:
30744@if utils
30745maybe-check-utils: check-utils
2a4cbe27 30746
a90ef4bf 30747check-utils:
2a4cbe27 30748
a90ef4bf 30749@endif utils
2a4cbe27 30750
a90ef4bf
JM
30751.PHONY: install-utils maybe-install-utils
30752maybe-install-utils:
30753@if utils
30754maybe-install-utils: install-utils
2a4cbe27 30755
a90ef4bf 30756install-utils: installdirs
0aed8855 30757 @: $(MAKE); $(unstage)
4fa63067 30758 @r=`${PWD_COMMAND}`; export r; \
b40e3958 30759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30760 $(HOST_EXPORTS) \
a90ef4bf 30761 (cd $(HOST_SUBDIR)/utils && \
2da12f12 30762 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 30763
a90ef4bf 30764@endif utils
2a4cbe27 30765
a90ef4bf
JM
30766.PHONY: install-strip-utils maybe-install-strip-utils
30767maybe-install-strip-utils:
30768@if utils
30769maybe-install-strip-utils: install-strip-utils
9b980aa1 30770
a90ef4bf 30771install-strip-utils: installdirs
9b980aa1
RW
30772 @: $(MAKE); $(unstage)
30773 @r=`${PWD_COMMAND}`; export r; \
30774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30775 $(HOST_EXPORTS) \
a90ef4bf 30776 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
30777 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30778
a90ef4bf 30779@endif utils
9b980aa1 30780
56a8fe78 30781# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30782
a90ef4bf
JM
30783.PHONY: maybe-info-utils info-utils
30784maybe-info-utils:
30785@if utils
30786maybe-info-utils: info-utils
4fa63067 30787
a90ef4bf
JM
30788info-utils: \
30789 configure-utils
0aed8855 30790 @: $(MAKE); $(unstage)
a90ef4bf 30791 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30792 r=`${PWD_COMMAND}`; export r; \
30793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30794 $(HOST_EXPORTS) \
b813574b 30795 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30797 done; \
22121df0 30798 echo "Doing info in utils"; \
a90ef4bf 30799 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30802 "RANLIB=$${RANLIB}" \
0c24b341 30803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30804 info) \
2a4cbe27
NN
30805 || exit 1
30806
a90ef4bf 30807@endif utils
2a4cbe27 30808
a90ef4bf
JM
30809.PHONY: maybe-dvi-utils dvi-utils
30810maybe-dvi-utils:
30811@if utils
30812maybe-dvi-utils: dvi-utils
2a4cbe27 30813
a90ef4bf
JM
30814dvi-utils: \
30815 configure-utils
0aed8855 30816 @: $(MAKE); $(unstage)
a90ef4bf 30817 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30818 r=`${PWD_COMMAND}`; export r; \
30819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30820 $(HOST_EXPORTS) \
b813574b 30821 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30823 done; \
22121df0 30824 echo "Doing dvi in utils"; \
a90ef4bf 30825 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30828 "RANLIB=$${RANLIB}" \
0c24b341 30829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30830 dvi) \
2a4cbe27
NN
30831 || exit 1
30832
a90ef4bf 30833@endif utils
2a4cbe27 30834
a90ef4bf
JM
30835.PHONY: maybe-pdf-utils pdf-utils
30836maybe-pdf-utils:
30837@if utils
30838maybe-pdf-utils: pdf-utils
56a8fe78 30839
a90ef4bf
JM
30840pdf-utils: \
30841 configure-utils
56a8fe78 30842 @: $(MAKE); $(unstage)
a90ef4bf 30843 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
30844 r=`${PWD_COMMAND}`; export r; \
30845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30846 $(HOST_EXPORTS) \
30847 for flag in $(EXTRA_HOST_FLAGS) ; do \
30848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30849 done; \
22121df0 30850 echo "Doing pdf in utils"; \
a90ef4bf 30851 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
30852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30854 "RANLIB=$${RANLIB}" \
0c24b341 30855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30856 pdf) \
30857 || exit 1
30858
a90ef4bf 30859@endif utils
56a8fe78 30860
a90ef4bf
JM
30861.PHONY: maybe-html-utils html-utils
30862maybe-html-utils:
30863@if utils
30864maybe-html-utils: html-utils
6d389afc 30865
a90ef4bf
JM
30866html-utils: \
30867 configure-utils
0aed8855 30868 @: $(MAKE); $(unstage)
a90ef4bf 30869 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
30870 r=`${PWD_COMMAND}`; export r; \
30871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30872 $(HOST_EXPORTS) \
30873 for flag in $(EXTRA_HOST_FLAGS) ; do \
30874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30875 done; \
22121df0 30876 echo "Doing html in utils"; \
a90ef4bf 30877 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
30878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30880 "RANLIB=$${RANLIB}" \
0c24b341 30881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30882 html) \
30883 || exit 1
30884
a90ef4bf 30885@endif utils
6d389afc 30886
a90ef4bf
JM
30887.PHONY: maybe-TAGS-utils TAGS-utils
30888maybe-TAGS-utils:
30889@if utils
30890maybe-TAGS-utils: TAGS-utils
2a4cbe27 30891
a90ef4bf
JM
30892TAGS-utils: \
30893 configure-utils
0aed8855 30894 @: $(MAKE); $(unstage)
a90ef4bf 30895 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30896 r=`${PWD_COMMAND}`; export r; \
30897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30898 $(HOST_EXPORTS) \
b813574b 30899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30901 done; \
22121df0 30902 echo "Doing TAGS in utils"; \
a90ef4bf 30903 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30906 "RANLIB=$${RANLIB}" \
0c24b341 30907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30908 TAGS) \
2a4cbe27
NN
30909 || exit 1
30910
a90ef4bf 30911@endif utils
2a4cbe27 30912
a90ef4bf
JM
30913.PHONY: maybe-install-info-utils install-info-utils
30914maybe-install-info-utils:
30915@if utils
30916maybe-install-info-utils: install-info-utils
2a4cbe27 30917
a90ef4bf
JM
30918install-info-utils: \
30919 configure-utils \
30920 info-utils
0aed8855 30921 @: $(MAKE); $(unstage)
a90ef4bf 30922 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
30923 r=`${PWD_COMMAND}`; export r; \
30924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30925 $(HOST_EXPORTS) \
b813574b 30926 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30928 done; \
22121df0 30929 echo "Doing install-info in utils"; \
a90ef4bf 30930 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
30931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30933 "RANLIB=$${RANLIB}" \
0c24b341 30934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30935 install-info) \
2a4cbe27
NN
30936 || exit 1
30937
a90ef4bf 30938@endif utils
2a4cbe27 30939
a90ef4bf
JM
30940.PHONY: maybe-install-pdf-utils install-pdf-utils
30941maybe-install-pdf-utils:
30942@if utils
30943maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 30944
a90ef4bf
JM
30945install-pdf-utils: \
30946 configure-utils \
30947 pdf-utils
a3ca38d2 30948 @: $(MAKE); $(unstage)
a90ef4bf 30949 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
30950 r=`${PWD_COMMAND}`; export r; \
30951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30952 $(HOST_EXPORTS) \
30953 for flag in $(EXTRA_HOST_FLAGS) ; do \
30954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30955 done; \
22121df0 30956 echo "Doing install-pdf in utils"; \
a90ef4bf 30957 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
30958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30960 "RANLIB=$${RANLIB}" \
0c24b341 30961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30962 install-pdf) \
30963 || exit 1
30964
a90ef4bf 30965@endif utils
a3ca38d2 30966
a90ef4bf
JM
30967.PHONY: maybe-install-html-utils install-html-utils
30968maybe-install-html-utils:
30969@if utils
30970maybe-install-html-utils: install-html-utils
108a6f8e 30971
a90ef4bf
JM
30972install-html-utils: \
30973 configure-utils \
30974 html-utils
108a6f8e 30975 @: $(MAKE); $(unstage)
a90ef4bf 30976 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
30977 r=`${PWD_COMMAND}`; export r; \
30978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30979 $(HOST_EXPORTS) \
30980 for flag in $(EXTRA_HOST_FLAGS) ; do \
30981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30982 done; \
22121df0 30983 echo "Doing install-html in utils"; \
a90ef4bf 30984 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
30985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30987 "RANLIB=$${RANLIB}" \
0c24b341 30988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30989 install-html) \
30990 || exit 1
30991
a90ef4bf 30992@endif utils
108a6f8e 30993
a90ef4bf
JM
30994.PHONY: maybe-installcheck-utils installcheck-utils
30995maybe-installcheck-utils:
30996@if utils
30997maybe-installcheck-utils: installcheck-utils
2a4cbe27 30998
a90ef4bf
JM
30999installcheck-utils: \
31000 configure-utils
0aed8855 31001 @: $(MAKE); $(unstage)
a90ef4bf 31002 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31003 r=`${PWD_COMMAND}`; export r; \
31004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31005 $(HOST_EXPORTS) \
b813574b 31006 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31008 done; \
22121df0 31009 echo "Doing installcheck in utils"; \
a90ef4bf 31010 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31013 "RANLIB=$${RANLIB}" \
0c24b341 31014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31015 installcheck) \
2a4cbe27
NN
31016 || exit 1
31017
a90ef4bf 31018@endif utils
2a4cbe27 31019
a90ef4bf
JM
31020.PHONY: maybe-mostlyclean-utils mostlyclean-utils
31021maybe-mostlyclean-utils:
31022@if utils
31023maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 31024
a90ef4bf 31025mostlyclean-utils:
0aed8855 31026 @: $(MAKE); $(unstage)
a90ef4bf 31027 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31028 r=`${PWD_COMMAND}`; export r; \
31029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31030 $(HOST_EXPORTS) \
b813574b 31031 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31033 done; \
22121df0 31034 echo "Doing mostlyclean in utils"; \
a90ef4bf 31035 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31038 "RANLIB=$${RANLIB}" \
0c24b341 31039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31040 mostlyclean) \
2a4cbe27
NN
31041 || exit 1
31042
a90ef4bf 31043@endif utils
2a4cbe27 31044
a90ef4bf
JM
31045.PHONY: maybe-clean-utils clean-utils
31046maybe-clean-utils:
31047@if utils
31048maybe-clean-utils: clean-utils
2a4cbe27 31049
a90ef4bf 31050clean-utils:
0aed8855 31051 @: $(MAKE); $(unstage)
a90ef4bf 31052 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31053 r=`${PWD_COMMAND}`; export r; \
31054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31055 $(HOST_EXPORTS) \
b813574b 31056 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31058 done; \
22121df0 31059 echo "Doing clean in utils"; \
a90ef4bf 31060 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31063 "RANLIB=$${RANLIB}" \
0c24b341 31064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31065 clean) \
2a4cbe27
NN
31066 || exit 1
31067
a90ef4bf 31068@endif utils
2a4cbe27 31069
a90ef4bf
JM
31070.PHONY: maybe-distclean-utils distclean-utils
31071maybe-distclean-utils:
31072@if utils
31073maybe-distclean-utils: distclean-utils
2a4cbe27 31074
a90ef4bf 31075distclean-utils:
0aed8855 31076 @: $(MAKE); $(unstage)
a90ef4bf 31077 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31078 r=`${PWD_COMMAND}`; export r; \
31079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31080 $(HOST_EXPORTS) \
b813574b 31081 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31083 done; \
22121df0 31084 echo "Doing distclean in utils"; \
a90ef4bf 31085 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31088 "RANLIB=$${RANLIB}" \
0c24b341 31089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31090 distclean) \
2a4cbe27
NN
31091 || exit 1
31092
a90ef4bf 31093@endif utils
2a4cbe27 31094
a90ef4bf
JM
31095.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
31096maybe-maintainer-clean-utils:
31097@if utils
31098maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 31099
a90ef4bf 31100maintainer-clean-utils:
0aed8855 31101 @: $(MAKE); $(unstage)
a90ef4bf 31102 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31103 r=`${PWD_COMMAND}`; export r; \
31104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31105 $(HOST_EXPORTS) \
b813574b 31106 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31108 done; \
22121df0 31109 echo "Doing maintainer-clean in utils"; \
a90ef4bf 31110 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31113 "RANLIB=$${RANLIB}" \
0c24b341 31114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31115 maintainer-clean) \
2a4cbe27
NN
31116 || exit 1
31117
a90ef4bf 31118@endif utils
2a4cbe27 31119
2a4cbe27 31120
a7254363 31121
a90ef4bf
JM
31122.PHONY: configure-gnattools maybe-configure-gnattools
31123maybe-configure-gnattools:
4f0ef2d8 31124@if gcc-bootstrap
a90ef4bf 31125configure-gnattools: stage_current
4f0ef2d8 31126@endif gcc-bootstrap
a90ef4bf
JM
31127@if gnattools
31128maybe-configure-gnattools: configure-gnattools
31129configure-gnattools:
0aed8855 31130 @: $(MAKE); $(unstage)
c52c6897 31131 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31133 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 31134 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 31135 $(HOST_EXPORTS) \
a90ef4bf
JM
31136 echo Configuring in $(HOST_SUBDIR)/gnattools; \
31137 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 31138 case $(srcdir) in \
b00612cc 31139 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31140 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 31141 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31142 esac; \
1b6c0831
L
31143 module_srcdir=gnattools; \
31144 $(SHELL) \
31145 $$s/$$module_srcdir/configure \
31146 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31147 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31148 --target=${target_alias} \
2a4cbe27 31149 || exit 1
a90ef4bf 31150@endif gnattools
2a4cbe27 31151
a7254363
PB
31152
31153
d545f33b
PB
31154
31155
a90ef4bf
JM
31156.PHONY: all-gnattools maybe-all-gnattools
31157maybe-all-gnattools:
4f0ef2d8 31158@if gcc-bootstrap
a90ef4bf 31159all-gnattools: stage_current
4f0ef2d8 31160@endif gcc-bootstrap
a90ef4bf
JM
31161@if gnattools
31162TARGET-gnattools=all
31163maybe-all-gnattools: all-gnattools
31164all-gnattools: configure-gnattools
0aed8855 31165 @: $(MAKE); $(unstage)
4fa63067
NN
31166 @r=`${PWD_COMMAND}`; export r; \
31167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31168 $(HOST_EXPORTS) \
a90ef4bf 31169 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 31170 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31171 $(TARGET-gnattools))
31172@endif gnattools
4fa63067 31173
a7254363 31174
d545f33b
PB
31175
31176
a90ef4bf
JM
31177.PHONY: check-gnattools maybe-check-gnattools
31178maybe-check-gnattools:
31179@if gnattools
31180maybe-check-gnattools: check-gnattools
2a4cbe27 31181
a90ef4bf 31182check-gnattools:
0aed8855 31183 @: $(MAKE); $(unstage)
4fa63067
NN
31184 @r=`${PWD_COMMAND}`; export r; \
31185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 31186 $(HOST_EXPORTS) \
a90ef4bf 31187 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 31188 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 31189
a90ef4bf 31190@endif gnattools
4fa63067 31191
a90ef4bf
JM
31192.PHONY: install-gnattools maybe-install-gnattools
31193maybe-install-gnattools:
31194@if gnattools
31195maybe-install-gnattools: install-gnattools
4fa63067 31196
a90ef4bf 31197install-gnattools: installdirs
0aed8855 31198 @: $(MAKE); $(unstage)
4fa63067
NN
31199 @r=`${PWD_COMMAND}`; export r; \
31200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31201 $(HOST_EXPORTS) \
a90ef4bf 31202 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 31203 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 31204
a90ef4bf 31205@endif gnattools
4fa63067 31206
a90ef4bf
JM
31207.PHONY: install-strip-gnattools maybe-install-strip-gnattools
31208maybe-install-strip-gnattools:
31209@if gnattools
31210maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 31211
a90ef4bf 31212install-strip-gnattools: installdirs
9b980aa1
RW
31213 @: $(MAKE); $(unstage)
31214 @r=`${PWD_COMMAND}`; export r; \
31215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31216 $(HOST_EXPORTS) \
a90ef4bf 31217 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
31218 $(MAKE) $(FLAGS_TO_PASS) install-strip)
31219
a90ef4bf 31220@endif gnattools
9b980aa1 31221
56a8fe78 31222# Other targets (info, dvi, pdf, etc.)
4fa63067 31223
a90ef4bf
JM
31224.PHONY: maybe-info-gnattools info-gnattools
31225maybe-info-gnattools:
31226@if gnattools
31227maybe-info-gnattools: info-gnattools
4fa63067 31228
a90ef4bf
JM
31229info-gnattools: \
31230 configure-gnattools
0aed8855 31231 @: $(MAKE); $(unstage)
a90ef4bf 31232 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31233 r=`${PWD_COMMAND}`; export r; \
31234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31235 $(HOST_EXPORTS) \
b813574b 31236 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31238 done; \
22121df0 31239 echo "Doing info in gnattools"; \
a90ef4bf 31240 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31243 "RANLIB=$${RANLIB}" \
0c24b341 31244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31245 info) \
2a4cbe27
NN
31246 || exit 1
31247
a90ef4bf 31248@endif gnattools
2a4cbe27 31249
a90ef4bf
JM
31250.PHONY: maybe-dvi-gnattools dvi-gnattools
31251maybe-dvi-gnattools:
31252@if gnattools
31253maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 31254
a90ef4bf
JM
31255dvi-gnattools: \
31256 configure-gnattools
0aed8855 31257 @: $(MAKE); $(unstage)
a90ef4bf 31258 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31259 r=`${PWD_COMMAND}`; export r; \
31260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31261 $(HOST_EXPORTS) \
b813574b 31262 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31264 done; \
22121df0 31265 echo "Doing dvi in gnattools"; \
a90ef4bf 31266 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31269 "RANLIB=$${RANLIB}" \
0c24b341 31270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31271 dvi) \
2a4cbe27
NN
31272 || exit 1
31273
a90ef4bf 31274@endif gnattools
2a4cbe27 31275
a90ef4bf
JM
31276.PHONY: maybe-pdf-gnattools pdf-gnattools
31277maybe-pdf-gnattools:
31278@if gnattools
31279maybe-pdf-gnattools: pdf-gnattools
56a8fe78 31280
a90ef4bf
JM
31281pdf-gnattools: \
31282 configure-gnattools
56a8fe78 31283 @: $(MAKE); $(unstage)
a90ef4bf 31284 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
31285 r=`${PWD_COMMAND}`; export r; \
31286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31287 $(HOST_EXPORTS) \
31288 for flag in $(EXTRA_HOST_FLAGS) ; do \
31289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31290 done; \
22121df0 31291 echo "Doing pdf in gnattools"; \
a90ef4bf 31292 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
31293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31295 "RANLIB=$${RANLIB}" \
0c24b341 31296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31297 pdf) \
31298 || exit 1
31299
a90ef4bf 31300@endif gnattools
56a8fe78 31301
a90ef4bf
JM
31302.PHONY: maybe-html-gnattools html-gnattools
31303maybe-html-gnattools:
31304@if gnattools
31305maybe-html-gnattools: html-gnattools
6d389afc 31306
a90ef4bf
JM
31307html-gnattools: \
31308 configure-gnattools
0aed8855 31309 @: $(MAKE); $(unstage)
a90ef4bf 31310 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
31311 r=`${PWD_COMMAND}`; export r; \
31312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
31313 $(HOST_EXPORTS) \
31314 for flag in $(EXTRA_HOST_FLAGS) ; do \
31315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31316 done; \
22121df0 31317 echo "Doing html in gnattools"; \
a90ef4bf 31318 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
31319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31321 "RANLIB=$${RANLIB}" \
0c24b341 31322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31323 html) \
31324 || exit 1
31325
a90ef4bf 31326@endif gnattools
6d389afc 31327
a90ef4bf
JM
31328.PHONY: maybe-TAGS-gnattools TAGS-gnattools
31329maybe-TAGS-gnattools:
31330@if gnattools
31331maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 31332
a90ef4bf
JM
31333TAGS-gnattools: \
31334 configure-gnattools
0aed8855 31335 @: $(MAKE); $(unstage)
a90ef4bf 31336 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31337 r=`${PWD_COMMAND}`; export r; \
31338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31339 $(HOST_EXPORTS) \
b813574b 31340 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31342 done; \
22121df0 31343 echo "Doing TAGS in gnattools"; \
a90ef4bf 31344 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31347 "RANLIB=$${RANLIB}" \
0c24b341 31348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31349 TAGS) \
2a4cbe27
NN
31350 || exit 1
31351
a90ef4bf 31352@endif gnattools
2a4cbe27 31353
a90ef4bf
JM
31354.PHONY: maybe-install-info-gnattools install-info-gnattools
31355maybe-install-info-gnattools:
31356@if gnattools
31357maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 31358
a90ef4bf
JM
31359install-info-gnattools: \
31360 configure-gnattools \
31361 info-gnattools
0aed8855 31362 @: $(MAKE); $(unstage)
a90ef4bf 31363 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31364 r=`${PWD_COMMAND}`; export r; \
31365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31366 $(HOST_EXPORTS) \
b813574b 31367 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31369 done; \
22121df0 31370 echo "Doing install-info in gnattools"; \
a90ef4bf 31371 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31374 "RANLIB=$${RANLIB}" \
0c24b341 31375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31376 install-info) \
2a4cbe27
NN
31377 || exit 1
31378
a90ef4bf 31379@endif gnattools
2a4cbe27 31380
a90ef4bf
JM
31381.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
31382maybe-install-pdf-gnattools:
31383@if gnattools
31384maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 31385
a90ef4bf
JM
31386install-pdf-gnattools: \
31387 configure-gnattools \
31388 pdf-gnattools
a3ca38d2 31389 @: $(MAKE); $(unstage)
a90ef4bf 31390 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
31391 r=`${PWD_COMMAND}`; export r; \
31392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31393 $(HOST_EXPORTS) \
31394 for flag in $(EXTRA_HOST_FLAGS) ; do \
31395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31396 done; \
22121df0 31397 echo "Doing install-pdf in gnattools"; \
a90ef4bf 31398 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
31399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31401 "RANLIB=$${RANLIB}" \
0c24b341 31402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31403 install-pdf) \
31404 || exit 1
31405
a90ef4bf 31406@endif gnattools
a3ca38d2 31407
a90ef4bf
JM
31408.PHONY: maybe-install-html-gnattools install-html-gnattools
31409maybe-install-html-gnattools:
31410@if gnattools
31411maybe-install-html-gnattools: install-html-gnattools
108a6f8e 31412
a90ef4bf
JM
31413install-html-gnattools: \
31414 configure-gnattools \
31415 html-gnattools
108a6f8e 31416 @: $(MAKE); $(unstage)
a90ef4bf 31417 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
31418 r=`${PWD_COMMAND}`; export r; \
31419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31420 $(HOST_EXPORTS) \
31421 for flag in $(EXTRA_HOST_FLAGS) ; do \
31422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31423 done; \
22121df0 31424 echo "Doing install-html in gnattools"; \
a90ef4bf 31425 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
31426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31428 "RANLIB=$${RANLIB}" \
0c24b341 31429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31430 install-html) \
31431 || exit 1
31432
a90ef4bf 31433@endif gnattools
108a6f8e 31434
a90ef4bf
JM
31435.PHONY: maybe-installcheck-gnattools installcheck-gnattools
31436maybe-installcheck-gnattools:
31437@if gnattools
31438maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 31439
a90ef4bf
JM
31440installcheck-gnattools: \
31441 configure-gnattools
0aed8855 31442 @: $(MAKE); $(unstage)
a90ef4bf 31443 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31444 r=`${PWD_COMMAND}`; export r; \
31445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31446 $(HOST_EXPORTS) \
b813574b 31447 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31449 done; \
22121df0 31450 echo "Doing installcheck in gnattools"; \
a90ef4bf 31451 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31454 "RANLIB=$${RANLIB}" \
0c24b341 31455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31456 installcheck) \
2a4cbe27
NN
31457 || exit 1
31458
a90ef4bf 31459@endif gnattools
2a4cbe27 31460
a90ef4bf
JM
31461.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
31462maybe-mostlyclean-gnattools:
31463@if gnattools
31464maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 31465
a90ef4bf 31466mostlyclean-gnattools:
0aed8855 31467 @: $(MAKE); $(unstage)
a90ef4bf 31468 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31469 r=`${PWD_COMMAND}`; export r; \
31470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31471 $(HOST_EXPORTS) \
b813574b 31472 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31474 done; \
22121df0 31475 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 31476 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31479 "RANLIB=$${RANLIB}" \
0c24b341 31480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31481 mostlyclean) \
2a4cbe27
NN
31482 || exit 1
31483
a90ef4bf 31484@endif gnattools
2a4cbe27 31485
a90ef4bf
JM
31486.PHONY: maybe-clean-gnattools clean-gnattools
31487maybe-clean-gnattools:
31488@if gnattools
31489maybe-clean-gnattools: clean-gnattools
2a4cbe27 31490
a90ef4bf 31491clean-gnattools:
0aed8855 31492 @: $(MAKE); $(unstage)
a90ef4bf 31493 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
31494 r=`${PWD_COMMAND}`; export r; \
31495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31496 $(HOST_EXPORTS) \
b813574b 31497 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31499 done; \
22121df0 31500 echo "Doing clean in gnattools"; \
a90ef4bf 31501 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
31502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31504 "RANLIB=$${RANLIB}" \
0c24b341 31505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31506 clean) \
2a4cbe27
NN
31507 || exit 1
31508
a90ef4bf 31509@endif gnattools
2a4cbe27 31510
a90ef4bf
JM
31511.PHONY: maybe-distclean-gnattools distclean-gnattools
31512maybe-distclean-gnattools:
31513@if gnattools
31514maybe-distclean-gnattools: distclean-gnattools
a2592b1b 31515
a90ef4bf 31516distclean-gnattools:
0aed8855 31517 @: $(MAKE); $(unstage)
a90ef4bf 31518 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
31519 r=`${PWD_COMMAND}`; export r; \
31520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31521 $(HOST_EXPORTS) \
b813574b 31522 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
31523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31524 done; \
22121df0 31525 echo "Doing distclean in gnattools"; \
a90ef4bf 31526 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
31527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31529 "RANLIB=$${RANLIB}" \
0c24b341 31530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31531 distclean) \
a2592b1b
DD
31532 || exit 1
31533
a90ef4bf 31534@endif gnattools
a2592b1b 31535
a90ef4bf
JM
31536.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
31537maybe-maintainer-clean-gnattools:
31538@if gnattools
31539maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 31540
a90ef4bf 31541maintainer-clean-gnattools:
0aed8855 31542 @: $(MAKE); $(unstage)
a90ef4bf 31543 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 31544 r=`${PWD_COMMAND}`; export r; \
b40e3958 31545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31546 $(HOST_EXPORTS) \
b813574b 31547 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
31548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31549 done; \
22121df0 31550 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 31551 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
31552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31554 "RANLIB=$${RANLIB}" \
0c24b341 31555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31556 maintainer-clean) \
4fa63067 31557 || exit 1
252b5132 31558
a90ef4bf 31559@endif gnattools
252b5132 31560
252b5132 31561
a7254363 31562
a90ef4bf
JM
31563.PHONY: configure-lto-plugin maybe-configure-lto-plugin
31564maybe-configure-lto-plugin:
4f0ef2d8 31565@if gcc-bootstrap
a90ef4bf 31566configure-lto-plugin: stage_current
4f0ef2d8 31567@endif gcc-bootstrap
a90ef4bf
JM
31568@if lto-plugin
31569maybe-configure-lto-plugin: configure-lto-plugin
31570configure-lto-plugin:
c52c6897 31571 @r=`${PWD_COMMAND}`; export r; \
b813574b 31572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31573 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 31574 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 31575 $(HOST_EXPORTS) \
a90ef4bf
JM
31576 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
31577 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 31578 case $(srcdir) in \
b00612cc 31579 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31580 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 31581 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31582 esac; \
1b6c0831
L
31583 module_srcdir=lto-plugin; \
31584 $(SHELL) \
31585 $$s/$$module_srcdir/configure \
31586 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31588 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 31589 || exit 1
a90ef4bf 31590@endif lto-plugin
a7254363 31591
d545f33b
PB
31592
31593
a90ef4bf
JM
31594.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
31595maybe-configure-stage1-lto-plugin:
31596@if lto-plugin-bootstrap
31597maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
31598configure-stage1-lto-plugin:
31599 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31600 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31601 @r=`${PWD_COMMAND}`; export r; \
31602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31603 TFLAGS="$(STAGE1_TFLAGS)"; \
31604 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
31605 $(HOST_EXPORTS) \
31606 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
31607 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
31608 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
31609 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
31610 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31611 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31612 case $(srcdir) in \
31613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31614 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31616 esac; \
1b6c0831
L
31617 module_srcdir=lto-plugin; \
31618 $(SHELL) $$s/$$module_srcdir/configure \
31619 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31620 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
31621 --target=${target_alias} \
31622 \
a90ef4bf 31623 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 31624 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31625@endif lto-plugin-bootstrap
252b5132 31626
a90ef4bf
JM
31627.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
31628maybe-configure-stage2-lto-plugin:
31629@if lto-plugin-bootstrap
31630maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
31631configure-stage2-lto-plugin:
31632 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31633 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
31634 @r=`${PWD_COMMAND}`; export r; \
31635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31636 TFLAGS="$(STAGE2_TFLAGS)"; \
31637 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 31638 $(HOST_EXPORTS) \
a90ef4bf
JM
31639 $(POSTSTAGE1_HOST_EXPORTS) \
31640 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
31641 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
31642 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31643 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
31644 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31645 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31646 case $(srcdir) in \
31647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31648 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31650 esac; \
1b6c0831
L
31651 module_srcdir=lto-plugin; \
31652 $(SHELL) $$s/$$module_srcdir/configure \
31653 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31654 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31655 --target=${target_alias} \
22121df0 31656 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31657 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 31658 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31659@endif lto-plugin-bootstrap
4fa63067 31660
a90ef4bf
JM
31661.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
31662maybe-configure-stage3-lto-plugin:
31663@if lto-plugin-bootstrap
31664maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
31665configure-stage3-lto-plugin:
31666 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31667 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
31668 @r=`${PWD_COMMAND}`; export r; \
31669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31670 TFLAGS="$(STAGE3_TFLAGS)"; \
31671 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31672 $(HOST_EXPORTS) \
a90ef4bf
JM
31673 $(POSTSTAGE1_HOST_EXPORTS) \
31674 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
31675 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
31676 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31677 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
31678 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31679 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31680 case $(srcdir) in \
31681 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31682 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31683 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31684 esac; \
1b6c0831
L
31685 module_srcdir=lto-plugin; \
31686 $(SHELL) $$s/$$module_srcdir/configure \
31687 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31688 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31689 --target=${target_alias} \
22121df0 31690 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31691 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 31692 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31693@endif lto-plugin-bootstrap
9b980aa1 31694
a90ef4bf
JM
31695.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
31696maybe-configure-stage4-lto-plugin:
31697@if lto-plugin-bootstrap
31698maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
31699configure-stage4-lto-plugin:
31700 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31701 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
31702 @r=`${PWD_COMMAND}`; export r; \
31703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31704 TFLAGS="$(STAGE4_TFLAGS)"; \
31705 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 31706 $(HOST_EXPORTS) \
a90ef4bf
JM
31707 $(POSTSTAGE1_HOST_EXPORTS) \
31708 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
31709 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
31710 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31711 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
31712 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31713 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31714 case $(srcdir) in \
31715 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31716 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31717 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31718 esac; \
1b6c0831
L
31719 module_srcdir=lto-plugin; \
31720 $(SHELL) $$s/$$module_srcdir/configure \
31721 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31722 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31723 --target=${target_alias} \
22121df0 31724 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31725 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 31726 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31727@endif lto-plugin-bootstrap
4fa63067 31728
a90ef4bf
JM
31729.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
31730maybe-configure-stageprofile-lto-plugin:
31731@if lto-plugin-bootstrap
31732maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31733configure-stageprofile-lto-plugin:
31734 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31735 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31736 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31738 TFLAGS="$(STAGEprofile_TFLAGS)"; \
31739 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31740 $(HOST_EXPORTS) \
a90ef4bf
JM
31741 $(POSTSTAGE1_HOST_EXPORTS) \
31742 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
31743 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
31744 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31745 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
31746 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31747 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31748 case $(srcdir) in \
31749 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31750 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31751 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31752 esac; \
1b6c0831
L
31753 module_srcdir=lto-plugin; \
31754 $(SHELL) $$s/$$module_srcdir/configure \
31755 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31756 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31757 --target=${target_alias} \
22121df0 31758 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31759 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 31760 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31761@endif lto-plugin-bootstrap
4fa63067 31762
a90ef4bf
JM
31763.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
31764maybe-configure-stagefeedback-lto-plugin:
31765@if lto-plugin-bootstrap
31766maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
31767configure-stagefeedback-lto-plugin:
31768 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
31769 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
31770 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31772 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
31773 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 31774 $(HOST_EXPORTS) \
a90ef4bf
JM
31775 $(POSTSTAGE1_HOST_EXPORTS) \
31776 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
31777 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
31778 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
31779 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
31780 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
31781 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
31782 case $(srcdir) in \
31783 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31784 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
31785 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31786 esac; \
1b6c0831
L
31787 module_srcdir=lto-plugin; \
31788 $(SHELL) $$s/$$module_srcdir/configure \
31789 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 31790 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31791 --target=${target_alias} \
22121df0 31792 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 31793 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 31794 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 31795@endif lto-plugin-bootstrap
252b5132 31796
56a8fe78 31797
56a8fe78 31798
56a8fe78 31799
6d389afc 31800
a90ef4bf
JM
31801.PHONY: all-lto-plugin maybe-all-lto-plugin
31802maybe-all-lto-plugin:
31803@if gcc-bootstrap
31804all-lto-plugin: stage_current
31805@endif gcc-bootstrap
31806@if lto-plugin
31807TARGET-lto-plugin=all
31808maybe-all-lto-plugin: all-lto-plugin
31809all-lto-plugin: configure-lto-plugin
31810 @r=`${PWD_COMMAND}`; export r; \
6d389afc 31811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31812 $(HOST_EXPORTS) \
31813 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31814 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
31815 $(TARGET-lto-plugin))
31816@endif lto-plugin
6d389afc 31817
6d389afc 31818
252b5132 31819
a90ef4bf
JM
31820.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
31821.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
31822maybe-all-stage1-lto-plugin:
31823maybe-clean-stage1-lto-plugin:
31824@if lto-plugin-bootstrap
31825maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
31826all-stage1: all-stage1-lto-plugin
31827TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
31828all-stage1-lto-plugin: configure-stage1-lto-plugin
31829 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
31830 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
31832 TFLAGS="$(STAGE1_TFLAGS)"; \
31833 $(HOST_EXPORTS) \
31834 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31835 \
a90ef4bf
JM
31836 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31837 CFLAGS="$(STAGE1_CFLAGS)" \
31838 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
31839 LIBCFLAGS="$(LIBCFLAGS)" \
31840 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31841 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31842 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 31843 $(EXTRA_HOST_FLAGS) \
1b6c0831 31844 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31845 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 31846 $(TARGET-stage1-lto-plugin)
3866be5d 31847
a90ef4bf
JM
31848maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
31849clean-stage1: clean-stage1-lto-plugin
31850clean-stage1-lto-plugin:
31851 @if [ $(current_stage) = stage1 ]; then \
31852 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31853 else \
31854 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
31855 $(MAKE) stage1-start; \
31856 fi; \
31857 cd $(HOST_SUBDIR)/lto-plugin && \
31858 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 31859 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31860@endif lto-plugin-bootstrap
3866be5d 31861
3866be5d 31862
a90ef4bf
JM
31863.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
31864.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
31865maybe-all-stage2-lto-plugin:
31866maybe-clean-stage2-lto-plugin:
31867@if lto-plugin-bootstrap
31868maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
31869all-stage2: all-stage2-lto-plugin
31870TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
31871all-stage2-lto-plugin: configure-stage2-lto-plugin
31872 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
31873 @r=`${PWD_COMMAND}`; export r; \
4fa63067 31874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31875 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 31876 $(HOST_EXPORTS) \
a90ef4bf
JM
31877 $(POSTSTAGE1_HOST_EXPORTS) \
31878 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31879 \
a90ef4bf
JM
31880 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31881 CFLAGS="$(STAGE2_CFLAGS)" \
31882 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
31883 LIBCFLAGS="$(STAGE2_CFLAGS)" \
31884 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31885 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31886 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31887 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31888 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 31889 $(TARGET-stage2-lto-plugin)
3866be5d 31890
a90ef4bf
JM
31891maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
31892clean-stage2: clean-stage2-lto-plugin
31893clean-stage2-lto-plugin:
31894 @if [ $(current_stage) = stage2 ]; then \
31895 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31896 else \
31897 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
31898 $(MAKE) stage2-start; \
31899 fi; \
31900 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31901 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31902@endif lto-plugin-bootstrap
3866be5d 31903
a3ca38d2 31904
a90ef4bf
JM
31905.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
31906.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
31907maybe-all-stage3-lto-plugin:
31908maybe-clean-stage3-lto-plugin:
31909@if lto-plugin-bootstrap
31910maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
31911all-stage3: all-stage3-lto-plugin
31912TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
31913all-stage3-lto-plugin: configure-stage3-lto-plugin
31914 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
31915 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 31916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31917 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 31918 $(HOST_EXPORTS) \
a90ef4bf
JM
31919 $(POSTSTAGE1_HOST_EXPORTS) \
31920 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31921 \
a90ef4bf
JM
31922 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31923 CFLAGS="$(STAGE3_CFLAGS)" \
31924 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
31925 LIBCFLAGS="$(STAGE3_CFLAGS)" \
31926 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31927 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31928 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31929 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31930 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 31931 $(TARGET-stage3-lto-plugin)
a3ca38d2 31932
a90ef4bf
JM
31933maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
31934clean-stage3: clean-stage3-lto-plugin
31935clean-stage3-lto-plugin:
31936 @if [ $(current_stage) = stage3 ]; then \
31937 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31938 else \
31939 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
31940 $(MAKE) stage3-start; \
31941 fi; \
31942 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31943 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31944@endif lto-plugin-bootstrap
a3ca38d2 31945
108a6f8e 31946
a90ef4bf
JM
31947.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
31948.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
31949maybe-all-stage4-lto-plugin:
31950maybe-clean-stage4-lto-plugin:
31951@if lto-plugin-bootstrap
31952maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
31953all-stage4: all-stage4-lto-plugin
31954TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
31955all-stage4-lto-plugin: configure-stage4-lto-plugin
31956 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
31957 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 31958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31959 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 31960 $(HOST_EXPORTS) \
a90ef4bf
JM
31961 $(POSTSTAGE1_HOST_EXPORTS) \
31962 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 31963 \
a90ef4bf
JM
31964 $(MAKE) $(BASE_FLAGS_TO_PASS) \
31965 CFLAGS="$(STAGE4_CFLAGS)" \
31966 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
31967 LIBCFLAGS="$(STAGE4_CFLAGS)" \
31968 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
31969 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
31970 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 31971 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 31972 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 31973 $(TARGET-stage4-lto-plugin)
108a6f8e 31974
a90ef4bf
JM
31975maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
31976clean-stage4: clean-stage4-lto-plugin
31977clean-stage4-lto-plugin:
31978 @if [ $(current_stage) = stage4 ]; then \
31979 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
31980 else \
31981 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
31982 $(MAKE) stage4-start; \
31983 fi; \
31984 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 31985 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 31986@endif lto-plugin-bootstrap
4fa63067 31987
4fa63067 31988
a90ef4bf
JM
31989.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
31990.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
31991maybe-all-stageprofile-lto-plugin:
31992maybe-clean-stageprofile-lto-plugin:
31993@if lto-plugin-bootstrap
31994maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
31995all-stageprofile: all-stageprofile-lto-plugin
31996TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
31997all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
31998 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
31999 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32001 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 32002 $(HOST_EXPORTS) \
a90ef4bf
JM
32003 $(POSTSTAGE1_HOST_EXPORTS) \
32004 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32005 \
a90ef4bf
JM
32006 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32007 CFLAGS="$(STAGEprofile_CFLAGS)" \
32008 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
32009 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
32010 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32011 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32012 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32013 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32014 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 32015 $(TARGET-stageprofile-lto-plugin)
4fa63067 32016
a90ef4bf
JM
32017maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
32018clean-stageprofile: clean-stageprofile-lto-plugin
32019clean-stageprofile-lto-plugin:
32020 @if [ $(current_stage) = stageprofile ]; then \
32021 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32022 else \
32023 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
32024 $(MAKE) stageprofile-start; \
32025 fi; \
32026 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32027 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32028@endif lto-plugin-bootstrap
4fa63067 32029
4fa63067 32030
a90ef4bf
JM
32031.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
32032.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
32033maybe-all-stagefeedback-lto-plugin:
32034maybe-clean-stagefeedback-lto-plugin:
32035@if lto-plugin-bootstrap
32036maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
32037all-stagefeedback: all-stagefeedback-lto-plugin
32038TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
32039all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
32040 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32041 @r=`${PWD_COMMAND}`; export r; \
b40e3958 32042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32043 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 32044 $(HOST_EXPORTS) \
a90ef4bf
JM
32045 $(POSTSTAGE1_HOST_EXPORTS) \
32046 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32047 \
a90ef4bf
JM
32048 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32049 CFLAGS="$(STAGEfeedback_CFLAGS)" \
32050 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
32051 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
32052 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32053 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32054 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32055 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32056 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 32057 $(TARGET-stagefeedback-lto-plugin)
3866be5d 32058
a90ef4bf
JM
32059maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
32060clean-stagefeedback: clean-stagefeedback-lto-plugin
32061clean-stagefeedback-lto-plugin:
32062 @if [ $(current_stage) = stagefeedback ]; then \
32063 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32064 else \
32065 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
32066 $(MAKE) stagefeedback-start; \
32067 fi; \
32068 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32069 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32070@endif lto-plugin-bootstrap
a7254363 32071
e2b9e2dc 32072
a7254363
PB
32073
32074
d545f33b 32075
a90ef4bf
JM
32076.PHONY: check-lto-plugin maybe-check-lto-plugin
32077maybe-check-lto-plugin:
32078@if lto-plugin
32079maybe-check-lto-plugin: check-lto-plugin
d545f33b 32080
a90ef4bf 32081check-lto-plugin:
0aed8855 32082 @: $(MAKE); $(unstage)
b40e3958
L
32083 @r=`${PWD_COMMAND}`; export r; \
32084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32085 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 32086 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 32087 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 32088
a90ef4bf 32089@endif lto-plugin
3866be5d 32090
a90ef4bf
JM
32091.PHONY: install-lto-plugin maybe-install-lto-plugin
32092maybe-install-lto-plugin:
32093@if lto-plugin
32094maybe-install-lto-plugin: install-lto-plugin
4fa63067 32095
a90ef4bf 32096install-lto-plugin: installdirs
0aed8855 32097 @: $(MAKE); $(unstage)
4fa63067
NN
32098 @r=`${PWD_COMMAND}`; export r; \
32099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32100 $(HOST_EXPORTS) \
a90ef4bf 32101 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32102 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 32103
a90ef4bf 32104@endif lto-plugin
4fa63067 32105
a90ef4bf
JM
32106.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
32107maybe-install-strip-lto-plugin:
32108@if lto-plugin
32109maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 32110
a90ef4bf 32111install-strip-lto-plugin: installdirs
9b980aa1
RW
32112 @: $(MAKE); $(unstage)
32113 @r=`${PWD_COMMAND}`; export r; \
32114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32115 $(HOST_EXPORTS) \
a90ef4bf 32116 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32117 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 32118
a90ef4bf 32119@endif lto-plugin
9b980aa1 32120
56a8fe78 32121# Other targets (info, dvi, pdf, etc.)
4fa63067 32122
a90ef4bf
JM
32123.PHONY: maybe-info-lto-plugin info-lto-plugin
32124maybe-info-lto-plugin:
32125@if lto-plugin
32126maybe-info-lto-plugin: info-lto-plugin
4fa63067 32127
a90ef4bf
JM
32128info-lto-plugin: \
32129 configure-lto-plugin
32130 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32131 r=`${PWD_COMMAND}`; export r; \
32132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32133 $(HOST_EXPORTS) \
1b6c0831 32134 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32136 done; \
22121df0 32137 echo "Doing info in lto-plugin"; \
a90ef4bf 32138 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32141 "RANLIB=$${RANLIB}" \
0c24b341 32142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32143 info) \
4fa63067
NN
32144 || exit 1
32145
a90ef4bf 32146@endif lto-plugin
4fa63067 32147
a90ef4bf
JM
32148.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
32149maybe-dvi-lto-plugin:
32150@if lto-plugin
32151maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 32152
a90ef4bf
JM
32153dvi-lto-plugin: \
32154 configure-lto-plugin
32155 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32156 r=`${PWD_COMMAND}`; export r; \
32157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32158 $(HOST_EXPORTS) \
1b6c0831 32159 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32161 done; \
22121df0 32162 echo "Doing dvi in lto-plugin"; \
a90ef4bf 32163 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32166 "RANLIB=$${RANLIB}" \
0c24b341 32167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32168 dvi) \
4fa63067
NN
32169 || exit 1
32170
a90ef4bf 32171@endif lto-plugin
4fa63067 32172
a90ef4bf
JM
32173.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
32174maybe-pdf-lto-plugin:
32175@if lto-plugin
32176maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 32177
a90ef4bf
JM
32178pdf-lto-plugin: \
32179 configure-lto-plugin
32180 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
32181 r=`${PWD_COMMAND}`; export r; \
32182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32183 $(HOST_EXPORTS) \
1b6c0831 32184 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
32185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32186 done; \
22121df0 32187 echo "Doing pdf in lto-plugin"; \
a90ef4bf 32188 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
32189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32191 "RANLIB=$${RANLIB}" \
0c24b341 32192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
32193 pdf) \
32194 || exit 1
32195
a90ef4bf 32196@endif lto-plugin
56a8fe78 32197
a90ef4bf
JM
32198.PHONY: maybe-html-lto-plugin html-lto-plugin
32199maybe-html-lto-plugin:
32200@if lto-plugin
32201maybe-html-lto-plugin: html-lto-plugin
6d389afc 32202
a90ef4bf
JM
32203html-lto-plugin: \
32204 configure-lto-plugin
32205 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
32206 r=`${PWD_COMMAND}`; export r; \
32207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 32208 $(HOST_EXPORTS) \
1b6c0831 32209 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
32210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32211 done; \
22121df0 32212 echo "Doing html in lto-plugin"; \
a90ef4bf 32213 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
32214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32216 "RANLIB=$${RANLIB}" \
0c24b341 32217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
32218 html) \
32219 || exit 1
32220
a90ef4bf 32221@endif lto-plugin
6d389afc 32222
a90ef4bf
JM
32223.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
32224maybe-TAGS-lto-plugin:
32225@if lto-plugin
32226maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 32227
a90ef4bf
JM
32228TAGS-lto-plugin: \
32229 configure-lto-plugin
32230 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32231 r=`${PWD_COMMAND}`; export r; \
32232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32233 $(HOST_EXPORTS) \
1b6c0831 32234 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32236 done; \
22121df0 32237 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 32238 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32241 "RANLIB=$${RANLIB}" \
0c24b341 32242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32243 TAGS) \
4fa63067
NN
32244 || exit 1
32245
a90ef4bf 32246@endif lto-plugin
4fa63067 32247
a90ef4bf
JM
32248.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
32249maybe-install-info-lto-plugin:
32250@if lto-plugin
32251maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 32252
a90ef4bf
JM
32253install-info-lto-plugin: \
32254 configure-lto-plugin \
32255 info-lto-plugin
32256 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32257 r=`${PWD_COMMAND}`; export r; \
32258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32259 $(HOST_EXPORTS) \
1b6c0831 32260 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32262 done; \
22121df0 32263 echo "Doing install-info in lto-plugin"; \
a90ef4bf 32264 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32267 "RANLIB=$${RANLIB}" \
0c24b341 32268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32269 install-info) \
4fa63067
NN
32270 || exit 1
32271
a90ef4bf 32272@endif lto-plugin
4fa63067 32273
a90ef4bf
JM
32274.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
32275maybe-install-pdf-lto-plugin:
32276@if lto-plugin
32277maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 32278
a90ef4bf
JM
32279install-pdf-lto-plugin: \
32280 configure-lto-plugin \
32281 pdf-lto-plugin
32282 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
32283 r=`${PWD_COMMAND}`; export r; \
32284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32285 $(HOST_EXPORTS) \
1b6c0831 32286 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
32287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32288 done; \
22121df0 32289 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 32290 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
32291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32293 "RANLIB=$${RANLIB}" \
0c24b341 32294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
32295 install-pdf) \
32296 || exit 1
32297
a90ef4bf 32298@endif lto-plugin
a3ca38d2 32299
a90ef4bf
JM
32300.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
32301maybe-install-html-lto-plugin:
32302@if lto-plugin
32303maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 32304
a90ef4bf
JM
32305install-html-lto-plugin: \
32306 configure-lto-plugin \
32307 html-lto-plugin
32308 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
32309 r=`${PWD_COMMAND}`; export r; \
32310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32311 $(HOST_EXPORTS) \
1b6c0831 32312 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
32313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32314 done; \
22121df0 32315 echo "Doing install-html in lto-plugin"; \
a90ef4bf 32316 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
32317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32319 "RANLIB=$${RANLIB}" \
0c24b341 32320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
32321 install-html) \
32322 || exit 1
32323
a90ef4bf 32324@endif lto-plugin
108a6f8e 32325
a90ef4bf
JM
32326.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
32327maybe-installcheck-lto-plugin:
32328@if lto-plugin
32329maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 32330
a90ef4bf
JM
32331installcheck-lto-plugin: \
32332 configure-lto-plugin
32333 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32334 r=`${PWD_COMMAND}`; export r; \
32335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32336 $(HOST_EXPORTS) \
1b6c0831 32337 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32339 done; \
22121df0 32340 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 32341 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32344 "RANLIB=$${RANLIB}" \
0c24b341 32345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32346 installcheck) \
4fa63067
NN
32347 || exit 1
32348
a90ef4bf 32349@endif lto-plugin
4fa63067 32350
a90ef4bf
JM
32351.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
32352maybe-mostlyclean-lto-plugin:
32353@if lto-plugin
32354maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 32355
a90ef4bf
JM
32356mostlyclean-lto-plugin:
32357 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32358 r=`${PWD_COMMAND}`; export r; \
32359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32360 $(HOST_EXPORTS) \
1b6c0831 32361 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32363 done; \
22121df0 32364 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 32365 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32368 "RANLIB=$${RANLIB}" \
0c24b341 32369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32370 mostlyclean) \
4fa63067
NN
32371 || exit 1
32372
a90ef4bf 32373@endif lto-plugin
4fa63067 32374
a90ef4bf
JM
32375.PHONY: maybe-clean-lto-plugin clean-lto-plugin
32376maybe-clean-lto-plugin:
32377@if lto-plugin
32378maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 32379
a90ef4bf
JM
32380clean-lto-plugin:
32381 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32382 r=`${PWD_COMMAND}`; export r; \
32383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32384 $(HOST_EXPORTS) \
1b6c0831 32385 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32387 done; \
22121df0 32388 echo "Doing clean in lto-plugin"; \
a90ef4bf 32389 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32392 "RANLIB=$${RANLIB}" \
0c24b341 32393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32394 clean) \
4fa63067
NN
32395 || exit 1
32396
a90ef4bf 32397@endif lto-plugin
4fa63067 32398
a90ef4bf
JM
32399.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
32400maybe-distclean-lto-plugin:
32401@if lto-plugin
32402maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 32403
a90ef4bf
JM
32404distclean-lto-plugin:
32405 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32406 r=`${PWD_COMMAND}`; export r; \
32407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32408 $(HOST_EXPORTS) \
1b6c0831 32409 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32411 done; \
22121df0 32412 echo "Doing distclean in lto-plugin"; \
a90ef4bf 32413 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32416 "RANLIB=$${RANLIB}" \
0c24b341 32417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32418 distclean) \
4fa63067
NN
32419 || exit 1
32420
a90ef4bf 32421@endif lto-plugin
4fa63067 32422
a90ef4bf
JM
32423.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
32424maybe-maintainer-clean-lto-plugin:
32425@if lto-plugin
32426maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 32427
a90ef4bf
JM
32428maintainer-clean-lto-plugin:
32429 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
32430 r=`${PWD_COMMAND}`; export r; \
32431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32432 $(HOST_EXPORTS) \
1b6c0831 32433 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
32434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32435 done; \
22121df0 32436 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 32437 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
32438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32440 "RANLIB=$${RANLIB}" \
0c24b341 32441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32442 maintainer-clean) \
4fa63067 32443 || exit 1
16ae0395 32444
a90ef4bf
JM
32445@endif lto-plugin
32446
32447
32448
1b6c0831
L
32449.PHONY: configure-libcc1 maybe-configure-libcc1
32450maybe-configure-libcc1:
4f0ef2d8 32451@if gcc-bootstrap
1b6c0831 32452configure-libcc1: stage_current
4f0ef2d8 32453@endif gcc-bootstrap
1b6c0831
L
32454@if libcc1
32455maybe-configure-libcc1: configure-libcc1
32456configure-libcc1:
32457 @: $(MAKE); $(unstage)
c52c6897 32458 @r=`${PWD_COMMAND}`; export r; \
b40e3958 32459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 32460 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 32461 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
32462 $(HOST_EXPORTS) \
32463 echo Configuring in $(HOST_SUBDIR)/libcc1; \
32464 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 32465 case $(srcdir) in \
b00612cc 32466 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 32467 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 32468 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 32469 esac; \
1b6c0831
L
32470 module_srcdir=libcc1; \
32471 $(SHELL) \
32472 $$s/$$module_srcdir/configure \
32473 --srcdir=$${topdir}/$$module_srcdir \
32474 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32475 --target=${target_alias} --enable-shared \
e2b9e2dc 32476 || exit 1
1b6c0831 32477@endif libcc1
d545f33b
PB
32478
32479
3866be5d 32480
16ae0395 32481
9b980aa1 32482
1b6c0831
L
32483.PHONY: all-libcc1 maybe-all-libcc1
32484maybe-all-libcc1:
32485@if gcc-bootstrap
32486all-libcc1: stage_current
32487@endif gcc-bootstrap
32488@if libcc1
32489TARGET-libcc1=all
32490maybe-all-libcc1: all-libcc1
32491all-libcc1: configure-libcc1
32492 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32493 @r=`${PWD_COMMAND}`; export r; \
32494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32495 $(HOST_EXPORTS) \
32496 (cd $(HOST_SUBDIR)/libcc1 && \
32497 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32498 $(TARGET-libcc1))
32499@endif libcc1
e8a5fa9c 32500
1b6c0831
L
32501
32502
32503
32504.PHONY: check-libcc1 maybe-check-libcc1
32505maybe-check-libcc1:
32506@if libcc1
32507maybe-check-libcc1: check-libcc1
32508
32509check-libcc1:
32510 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32511 @r=`${PWD_COMMAND}`; export r; \
32512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32513 $(HOST_EXPORTS) \
1b6c0831
L
32514 (cd $(HOST_SUBDIR)/libcc1 && \
32515 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 32516
1b6c0831
L
32517@endif libcc1
32518
32519.PHONY: install-libcc1 maybe-install-libcc1
32520maybe-install-libcc1:
32521@if libcc1
32522maybe-install-libcc1: install-libcc1
32523
32524install-libcc1: installdirs
32525 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32526 @r=`${PWD_COMMAND}`; export r; \
32527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32528 $(HOST_EXPORTS) \
32529 (cd $(HOST_SUBDIR)/libcc1 && \
32530 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 32531
1b6c0831
L
32532@endif libcc1
32533
32534.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
32535maybe-install-strip-libcc1:
32536@if libcc1
32537maybe-install-strip-libcc1: install-strip-libcc1
32538
32539install-strip-libcc1: installdirs
32540 @: $(MAKE); $(unstage)
e8a5fa9c
RW
32541 @r=`${PWD_COMMAND}`; export r; \
32542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32543 $(HOST_EXPORTS) \
32544 (cd $(HOST_SUBDIR)/libcc1 && \
32545 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 32546
1b6c0831 32547@endif libcc1
e8a5fa9c 32548
1b6c0831 32549# Other targets (info, dvi, pdf, etc.)
d545f33b 32550
1b6c0831
L
32551.PHONY: maybe-info-libcc1 info-libcc1
32552maybe-info-libcc1:
32553@if libcc1
32554maybe-info-libcc1: info-libcc1
d545f33b 32555
1b6c0831
L
32556info-libcc1: \
32557 configure-libcc1
32558 @: $(MAKE); $(unstage)
32559 @[ -f ./libcc1/Makefile ] || exit 0; \
32560 r=`${PWD_COMMAND}`; export r; \
b40e3958 32561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32562 $(HOST_EXPORTS) \
32563 for flag in $(EXTRA_HOST_FLAGS) ; do \
32564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32565 done; \
22121df0 32566 echo "Doing info in libcc1"; \
1b6c0831
L
32567 (cd $(HOST_SUBDIR)/libcc1 && \
32568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32570 "RANLIB=$${RANLIB}" \
32571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32572 info) \
32573 || exit 1
3866be5d 32574
1b6c0831 32575@endif libcc1
a7254363 32576
1b6c0831
L
32577.PHONY: maybe-dvi-libcc1 dvi-libcc1
32578maybe-dvi-libcc1:
32579@if libcc1
32580maybe-dvi-libcc1: dvi-libcc1
a7254363 32581
1b6c0831
L
32582dvi-libcc1: \
32583 configure-libcc1
32584 @: $(MAKE); $(unstage)
32585 @[ -f ./libcc1/Makefile ] || exit 0; \
32586 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32588 $(HOST_EXPORTS) \
32589 for flag in $(EXTRA_HOST_FLAGS) ; do \
32590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32591 done; \
22121df0 32592 echo "Doing dvi in libcc1"; \
1b6c0831
L
32593 (cd $(HOST_SUBDIR)/libcc1 && \
32594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32596 "RANLIB=$${RANLIB}" \
32597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32598 dvi) \
32599 || exit 1
e8a5fa9c 32600
1b6c0831 32601@endif libcc1
e8a5fa9c 32602
1b6c0831
L
32603.PHONY: maybe-pdf-libcc1 pdf-libcc1
32604maybe-pdf-libcc1:
32605@if libcc1
32606maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 32607
1b6c0831
L
32608pdf-libcc1: \
32609 configure-libcc1
32610 @: $(MAKE); $(unstage)
32611 @[ -f ./libcc1/Makefile ] || exit 0; \
32612 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32614 $(HOST_EXPORTS) \
32615 for flag in $(EXTRA_HOST_FLAGS) ; do \
32616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32617 done; \
22121df0 32618 echo "Doing pdf in libcc1"; \
1b6c0831
L
32619 (cd $(HOST_SUBDIR)/libcc1 && \
32620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32622 "RANLIB=$${RANLIB}" \
32623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32624 pdf) \
32625 || exit 1
e8a5fa9c 32626
1b6c0831 32627@endif libcc1
e8a5fa9c 32628
1b6c0831
L
32629.PHONY: maybe-html-libcc1 html-libcc1
32630maybe-html-libcc1:
32631@if libcc1
32632maybe-html-libcc1: html-libcc1
e8a5fa9c 32633
1b6c0831
L
32634html-libcc1: \
32635 configure-libcc1
32636 @: $(MAKE); $(unstage)
32637 @[ -f ./libcc1/Makefile ] || exit 0; \
32638 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32640 $(HOST_EXPORTS) \
32641 for flag in $(EXTRA_HOST_FLAGS) ; do \
32642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32643 done; \
22121df0 32644 echo "Doing html in libcc1"; \
1b6c0831
L
32645 (cd $(HOST_SUBDIR)/libcc1 && \
32646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32648 "RANLIB=$${RANLIB}" \
32649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32650 html) \
32651 || exit 1
e8a5fa9c 32652
1b6c0831 32653@endif libcc1
e8a5fa9c 32654
1b6c0831
L
32655.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
32656maybe-TAGS-libcc1:
32657@if libcc1
32658maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 32659
1b6c0831
L
32660TAGS-libcc1: \
32661 configure-libcc1
32662 @: $(MAKE); $(unstage)
32663 @[ -f ./libcc1/Makefile ] || exit 0; \
32664 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 32665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
32666 $(HOST_EXPORTS) \
32667 for flag in $(EXTRA_HOST_FLAGS) ; do \
32668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32669 done; \
22121df0 32670 echo "Doing TAGS in libcc1"; \
1b6c0831
L
32671 (cd $(HOST_SUBDIR)/libcc1 && \
32672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32674 "RANLIB=$${RANLIB}" \
32675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32676 TAGS) \
32677 || exit 1
32678
32679@endif libcc1
32680
32681.PHONY: maybe-install-info-libcc1 install-info-libcc1
32682maybe-install-info-libcc1:
32683@if libcc1
32684maybe-install-info-libcc1: install-info-libcc1
32685
32686install-info-libcc1: \
32687 configure-libcc1 \
32688 info-libcc1
32689 @: $(MAKE); $(unstage)
32690 @[ -f ./libcc1/Makefile ] || exit 0; \
32691 r=`${PWD_COMMAND}`; export r; \
32692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32693 $(HOST_EXPORTS) \
32694 for flag in $(EXTRA_HOST_FLAGS) ; do \
32695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32696 done; \
22121df0 32697 echo "Doing install-info in libcc1"; \
1b6c0831
L
32698 (cd $(HOST_SUBDIR)/libcc1 && \
32699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32701 "RANLIB=$${RANLIB}" \
32702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32703 install-info) \
32704 || exit 1
32705
32706@endif libcc1
32707
32708.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
32709maybe-install-pdf-libcc1:
32710@if libcc1
32711maybe-install-pdf-libcc1: install-pdf-libcc1
32712
32713install-pdf-libcc1: \
32714 configure-libcc1 \
32715 pdf-libcc1
32716 @: $(MAKE); $(unstage)
32717 @[ -f ./libcc1/Makefile ] || exit 0; \
32718 r=`${PWD_COMMAND}`; export r; \
32719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32720 $(HOST_EXPORTS) \
32721 for flag in $(EXTRA_HOST_FLAGS) ; do \
32722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32723 done; \
22121df0 32724 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
32725 (cd $(HOST_SUBDIR)/libcc1 && \
32726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32728 "RANLIB=$${RANLIB}" \
32729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32730 install-pdf) \
32731 || exit 1
32732
32733@endif libcc1
32734
32735.PHONY: maybe-install-html-libcc1 install-html-libcc1
32736maybe-install-html-libcc1:
32737@if libcc1
32738maybe-install-html-libcc1: install-html-libcc1
32739
32740install-html-libcc1: \
32741 configure-libcc1 \
32742 html-libcc1
32743 @: $(MAKE); $(unstage)
32744 @[ -f ./libcc1/Makefile ] || exit 0; \
32745 r=`${PWD_COMMAND}`; export r; \
32746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32747 $(HOST_EXPORTS) \
32748 for flag in $(EXTRA_HOST_FLAGS) ; do \
32749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32750 done; \
22121df0 32751 echo "Doing install-html in libcc1"; \
1b6c0831
L
32752 (cd $(HOST_SUBDIR)/libcc1 && \
32753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32755 "RANLIB=$${RANLIB}" \
32756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32757 install-html) \
32758 || exit 1
32759
32760@endif libcc1
32761
32762.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
32763maybe-installcheck-libcc1:
32764@if libcc1
32765maybe-installcheck-libcc1: installcheck-libcc1
32766
32767installcheck-libcc1: \
32768 configure-libcc1
32769 @: $(MAKE); $(unstage)
32770 @[ -f ./libcc1/Makefile ] || exit 0; \
32771 r=`${PWD_COMMAND}`; export r; \
32772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32773 $(HOST_EXPORTS) \
32774 for flag in $(EXTRA_HOST_FLAGS) ; do \
32775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32776 done; \
22121df0 32777 echo "Doing installcheck in libcc1"; \
1b6c0831
L
32778 (cd $(HOST_SUBDIR)/libcc1 && \
32779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32781 "RANLIB=$${RANLIB}" \
32782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32783 installcheck) \
32784 || exit 1
32785
32786@endif libcc1
32787
32788.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
32789maybe-mostlyclean-libcc1:
32790@if libcc1
32791maybe-mostlyclean-libcc1: mostlyclean-libcc1
32792
32793mostlyclean-libcc1:
32794 @: $(MAKE); $(unstage)
32795 @[ -f ./libcc1/Makefile ] || exit 0; \
32796 r=`${PWD_COMMAND}`; export r; \
32797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32798 $(HOST_EXPORTS) \
32799 for flag in $(EXTRA_HOST_FLAGS) ; do \
32800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32801 done; \
22121df0 32802 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
32803 (cd $(HOST_SUBDIR)/libcc1 && \
32804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32806 "RANLIB=$${RANLIB}" \
32807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32808 mostlyclean) \
32809 || exit 1
32810
32811@endif libcc1
32812
32813.PHONY: maybe-clean-libcc1 clean-libcc1
32814maybe-clean-libcc1:
32815@if libcc1
32816maybe-clean-libcc1: clean-libcc1
32817
32818clean-libcc1:
32819 @: $(MAKE); $(unstage)
32820 @[ -f ./libcc1/Makefile ] || exit 0; \
32821 r=`${PWD_COMMAND}`; export r; \
32822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32823 $(HOST_EXPORTS) \
32824 for flag in $(EXTRA_HOST_FLAGS) ; do \
32825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32826 done; \
22121df0 32827 echo "Doing clean in libcc1"; \
1b6c0831
L
32828 (cd $(HOST_SUBDIR)/libcc1 && \
32829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32831 "RANLIB=$${RANLIB}" \
32832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32833 clean) \
32834 || exit 1
32835
32836@endif libcc1
32837
32838.PHONY: maybe-distclean-libcc1 distclean-libcc1
32839maybe-distclean-libcc1:
32840@if libcc1
32841maybe-distclean-libcc1: distclean-libcc1
32842
32843distclean-libcc1:
32844 @: $(MAKE); $(unstage)
32845 @[ -f ./libcc1/Makefile ] || exit 0; \
32846 r=`${PWD_COMMAND}`; export r; \
32847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32848 $(HOST_EXPORTS) \
32849 for flag in $(EXTRA_HOST_FLAGS) ; do \
32850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32851 done; \
22121df0 32852 echo "Doing distclean in libcc1"; \
1b6c0831
L
32853 (cd $(HOST_SUBDIR)/libcc1 && \
32854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32856 "RANLIB=$${RANLIB}" \
32857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32858 distclean) \
32859 || exit 1
32860
32861@endif libcc1
32862
32863.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
32864maybe-maintainer-clean-libcc1:
32865@if libcc1
32866maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
32867
32868maintainer-clean-libcc1:
32869 @: $(MAKE); $(unstage)
32870 @[ -f ./libcc1/Makefile ] || exit 0; \
32871 r=`${PWD_COMMAND}`; export r; \
32872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32873 $(HOST_EXPORTS) \
32874 for flag in $(EXTRA_HOST_FLAGS) ; do \
32875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32876 done; \
22121df0 32877 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
32878 (cd $(HOST_SUBDIR)/libcc1 && \
32879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32881 "RANLIB=$${RANLIB}" \
32882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
32883 maintainer-clean) \
32884 || exit 1
32885
32886@endif libcc1
32887
32888
32889
32890.PHONY: configure-gotools maybe-configure-gotools
32891maybe-configure-gotools:
32892@if gcc-bootstrap
32893configure-gotools: stage_current
32894@endif gcc-bootstrap
32895@if gotools
32896maybe-configure-gotools: configure-gotools
32897configure-gotools:
32898 @: $(MAKE); $(unstage)
32899 @r=`${PWD_COMMAND}`; export r; \
32900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32901 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 32902 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
32903 $(HOST_EXPORTS) \
32904 echo Configuring in $(HOST_SUBDIR)/gotools; \
32905 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
32906 case $(srcdir) in \
32907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32908 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
32909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32910 esac; \
32911 module_srcdir=gotools; \
32912 $(SHELL) \
32913 $$s/$$module_srcdir/configure \
32914 --srcdir=$${topdir}/$$module_srcdir \
32915 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
32916 --target=${target_alias} \
32917 || exit 1
32918@endif gotools
32919
32920
32921
32922
32923
32924.PHONY: all-gotools maybe-all-gotools
32925maybe-all-gotools:
32926@if gcc-bootstrap
32927all-gotools: stage_current
32928@endif gcc-bootstrap
32929@if gotools
32930TARGET-gotools=all
32931maybe-all-gotools: all-gotools
32932all-gotools: configure-gotools
32933 @: $(MAKE); $(unstage)
32934 @r=`${PWD_COMMAND}`; export r; \
32935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32936 $(HOST_EXPORTS) \
32937 (cd $(HOST_SUBDIR)/gotools && \
32938 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
32939 $(TARGET-gotools))
32940@endif gotools
32941
32942
32943
32944
32945.PHONY: check-gotools maybe-check-gotools
32946maybe-check-gotools:
32947@if gotools
32948maybe-check-gotools: check-gotools
32949
32950check-gotools:
32951 @: $(MAKE); $(unstage)
32952 @r=`${PWD_COMMAND}`; export r; \
32953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32954 $(HOST_EXPORTS) \
1b6c0831
L
32955 (cd $(HOST_SUBDIR)/gotools && \
32956 $(MAKE) $(FLAGS_TO_PASS) check)
32957
32958@endif gotools
32959
32960.PHONY: install-gotools maybe-install-gotools
32961maybe-install-gotools:
32962@if gotools
32963maybe-install-gotools: install-gotools
32964
32965install-gotools: installdirs
32966 @: $(MAKE); $(unstage)
32967 @r=`${PWD_COMMAND}`; export r; \
32968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32969 $(HOST_EXPORTS) \
32970 (cd $(HOST_SUBDIR)/gotools && \
32971 $(MAKE) $(FLAGS_TO_PASS) install)
32972
32973@endif gotools
32974
32975.PHONY: install-strip-gotools maybe-install-strip-gotools
32976maybe-install-strip-gotools:
32977@if gotools
32978maybe-install-strip-gotools: install-strip-gotools
32979
32980install-strip-gotools: installdirs
32981 @: $(MAKE); $(unstage)
32982 @r=`${PWD_COMMAND}`; export r; \
32983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32984 $(HOST_EXPORTS) \
32985 (cd $(HOST_SUBDIR)/gotools && \
32986 $(MAKE) $(FLAGS_TO_PASS) install-strip)
32987
32988@endif gotools
32989
32990# Other targets (info, dvi, pdf, etc.)
32991
32992.PHONY: maybe-info-gotools info-gotools
32993maybe-info-gotools:
32994@if gotools
32995maybe-info-gotools: info-gotools
32996
32997info-gotools: \
32998 configure-gotools
32999 @: $(MAKE); $(unstage)
33000 @[ -f ./gotools/Makefile ] || exit 0; \
33001 r=`${PWD_COMMAND}`; export r; \
33002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33003 $(HOST_EXPORTS) \
33004 for flag in $(EXTRA_HOST_FLAGS) ; do \
33005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33006 done; \
22121df0 33007 echo "Doing info in gotools"; \
1b6c0831
L
33008 (cd $(HOST_SUBDIR)/gotools && \
33009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33011 "RANLIB=$${RANLIB}" \
33012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33013 info) \
33014 || exit 1
33015
33016@endif gotools
33017
33018.PHONY: maybe-dvi-gotools dvi-gotools
33019maybe-dvi-gotools:
33020@if gotools
33021maybe-dvi-gotools: dvi-gotools
33022
33023dvi-gotools: \
33024 configure-gotools
33025 @: $(MAKE); $(unstage)
33026 @[ -f ./gotools/Makefile ] || exit 0; \
33027 r=`${PWD_COMMAND}`; export r; \
33028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33029 $(HOST_EXPORTS) \
33030 for flag in $(EXTRA_HOST_FLAGS) ; do \
33031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33032 done; \
22121df0 33033 echo "Doing dvi in gotools"; \
1b6c0831
L
33034 (cd $(HOST_SUBDIR)/gotools && \
33035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33037 "RANLIB=$${RANLIB}" \
33038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33039 dvi) \
33040 || exit 1
33041
33042@endif gotools
33043
33044.PHONY: maybe-pdf-gotools pdf-gotools
33045maybe-pdf-gotools:
33046@if gotools
33047maybe-pdf-gotools: pdf-gotools
33048
33049pdf-gotools: \
33050 configure-gotools
33051 @: $(MAKE); $(unstage)
33052 @[ -f ./gotools/Makefile ] || exit 0; \
33053 r=`${PWD_COMMAND}`; export r; \
33054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33055 $(HOST_EXPORTS) \
33056 for flag in $(EXTRA_HOST_FLAGS) ; do \
33057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33058 done; \
22121df0 33059 echo "Doing pdf in gotools"; \
1b6c0831
L
33060 (cd $(HOST_SUBDIR)/gotools && \
33061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33063 "RANLIB=$${RANLIB}" \
33064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33065 pdf) \
33066 || exit 1
33067
33068@endif gotools
33069
33070.PHONY: maybe-html-gotools html-gotools
33071maybe-html-gotools:
33072@if gotools
33073maybe-html-gotools: html-gotools
33074
33075html-gotools: \
33076 configure-gotools
33077 @: $(MAKE); $(unstage)
33078 @[ -f ./gotools/Makefile ] || exit 0; \
33079 r=`${PWD_COMMAND}`; export r; \
33080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33081 $(HOST_EXPORTS) \
33082 for flag in $(EXTRA_HOST_FLAGS) ; do \
33083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33084 done; \
22121df0 33085 echo "Doing html in gotools"; \
1b6c0831
L
33086 (cd $(HOST_SUBDIR)/gotools && \
33087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33089 "RANLIB=$${RANLIB}" \
33090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33091 html) \
33092 || exit 1
33093
33094@endif gotools
33095
33096.PHONY: maybe-TAGS-gotools TAGS-gotools
33097maybe-TAGS-gotools:
33098@if gotools
33099maybe-TAGS-gotools: TAGS-gotools
33100
33101TAGS-gotools: \
33102 configure-gotools
33103 @: $(MAKE); $(unstage)
33104 @[ -f ./gotools/Makefile ] || exit 0; \
33105 r=`${PWD_COMMAND}`; export r; \
33106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33107 $(HOST_EXPORTS) \
33108 for flag in $(EXTRA_HOST_FLAGS) ; do \
33109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33110 done; \
22121df0 33111 echo "Doing TAGS in gotools"; \
1b6c0831
L
33112 (cd $(HOST_SUBDIR)/gotools && \
33113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33115 "RANLIB=$${RANLIB}" \
33116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33117 TAGS) \
33118 || exit 1
33119
33120@endif gotools
33121
33122.PHONY: maybe-install-info-gotools install-info-gotools
33123maybe-install-info-gotools:
33124@if gotools
33125maybe-install-info-gotools: install-info-gotools
33126
33127install-info-gotools: \
33128 configure-gotools \
33129 info-gotools
33130 @: $(MAKE); $(unstage)
33131 @[ -f ./gotools/Makefile ] || exit 0; \
33132 r=`${PWD_COMMAND}`; export r; \
33133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33134 $(HOST_EXPORTS) \
33135 for flag in $(EXTRA_HOST_FLAGS) ; do \
33136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33137 done; \
22121df0 33138 echo "Doing install-info in gotools"; \
1b6c0831
L
33139 (cd $(HOST_SUBDIR)/gotools && \
33140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33142 "RANLIB=$${RANLIB}" \
33143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33144 install-info) \
33145 || exit 1
33146
33147@endif gotools
33148
33149.PHONY: maybe-install-pdf-gotools install-pdf-gotools
33150maybe-install-pdf-gotools:
33151@if gotools
33152maybe-install-pdf-gotools: install-pdf-gotools
33153
33154install-pdf-gotools: \
33155 configure-gotools \
33156 pdf-gotools
33157 @: $(MAKE); $(unstage)
33158 @[ -f ./gotools/Makefile ] || exit 0; \
33159 r=`${PWD_COMMAND}`; export r; \
33160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33161 $(HOST_EXPORTS) \
33162 for flag in $(EXTRA_HOST_FLAGS) ; do \
33163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33164 done; \
22121df0 33165 echo "Doing install-pdf in gotools"; \
1b6c0831
L
33166 (cd $(HOST_SUBDIR)/gotools && \
33167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33169 "RANLIB=$${RANLIB}" \
33170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33171 install-pdf) \
33172 || exit 1
33173
33174@endif gotools
33175
33176.PHONY: maybe-install-html-gotools install-html-gotools
33177maybe-install-html-gotools:
33178@if gotools
33179maybe-install-html-gotools: install-html-gotools
33180
33181install-html-gotools: \
33182 configure-gotools \
33183 html-gotools
33184 @: $(MAKE); $(unstage)
33185 @[ -f ./gotools/Makefile ] || exit 0; \
33186 r=`${PWD_COMMAND}`; export r; \
33187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33188 $(HOST_EXPORTS) \
33189 for flag in $(EXTRA_HOST_FLAGS) ; do \
33190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33191 done; \
22121df0 33192 echo "Doing install-html in gotools"; \
1b6c0831
L
33193 (cd $(HOST_SUBDIR)/gotools && \
33194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33196 "RANLIB=$${RANLIB}" \
33197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33198 install-html) \
33199 || exit 1
33200
33201@endif gotools
33202
33203.PHONY: maybe-installcheck-gotools installcheck-gotools
33204maybe-installcheck-gotools:
33205@if gotools
33206maybe-installcheck-gotools: installcheck-gotools
33207
33208installcheck-gotools: \
33209 configure-gotools
33210 @: $(MAKE); $(unstage)
33211 @[ -f ./gotools/Makefile ] || exit 0; \
33212 r=`${PWD_COMMAND}`; export r; \
33213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33214 $(HOST_EXPORTS) \
33215 for flag in $(EXTRA_HOST_FLAGS) ; do \
33216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33217 done; \
22121df0 33218 echo "Doing installcheck in gotools"; \
1b6c0831
L
33219 (cd $(HOST_SUBDIR)/gotools && \
33220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33222 "RANLIB=$${RANLIB}" \
33223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33224 installcheck) \
33225 || exit 1
33226
33227@endif gotools
33228
33229.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
33230maybe-mostlyclean-gotools:
33231@if gotools
33232maybe-mostlyclean-gotools: mostlyclean-gotools
33233
33234mostlyclean-gotools:
33235 @: $(MAKE); $(unstage)
33236 @[ -f ./gotools/Makefile ] || exit 0; \
33237 r=`${PWD_COMMAND}`; export r; \
33238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33239 $(HOST_EXPORTS) \
33240 for flag in $(EXTRA_HOST_FLAGS) ; do \
33241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33242 done; \
22121df0 33243 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
33244 (cd $(HOST_SUBDIR)/gotools && \
33245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33247 "RANLIB=$${RANLIB}" \
33248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33249 mostlyclean) \
33250 || exit 1
33251
33252@endif gotools
33253
33254.PHONY: maybe-clean-gotools clean-gotools
33255maybe-clean-gotools:
33256@if gotools
33257maybe-clean-gotools: clean-gotools
33258
33259clean-gotools:
33260 @: $(MAKE); $(unstage)
33261 @[ -f ./gotools/Makefile ] || exit 0; \
33262 r=`${PWD_COMMAND}`; export r; \
33263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33264 $(HOST_EXPORTS) \
33265 for flag in $(EXTRA_HOST_FLAGS) ; do \
33266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33267 done; \
22121df0 33268 echo "Doing clean in gotools"; \
1b6c0831
L
33269 (cd $(HOST_SUBDIR)/gotools && \
33270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33272 "RANLIB=$${RANLIB}" \
33273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33274 clean) \
33275 || exit 1
33276
33277@endif gotools
33278
33279.PHONY: maybe-distclean-gotools distclean-gotools
33280maybe-distclean-gotools:
33281@if gotools
33282maybe-distclean-gotools: distclean-gotools
33283
33284distclean-gotools:
33285 @: $(MAKE); $(unstage)
33286 @[ -f ./gotools/Makefile ] || exit 0; \
33287 r=`${PWD_COMMAND}`; export r; \
33288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33289 $(HOST_EXPORTS) \
33290 for flag in $(EXTRA_HOST_FLAGS) ; do \
33291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33292 done; \
22121df0 33293 echo "Doing distclean in gotools"; \
1b6c0831
L
33294 (cd $(HOST_SUBDIR)/gotools && \
33295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33297 "RANLIB=$${RANLIB}" \
33298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33299 distclean) \
33300 || exit 1
33301
33302@endif gotools
33303
33304.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
33305maybe-maintainer-clean-gotools:
33306@if gotools
33307maybe-maintainer-clean-gotools: maintainer-clean-gotools
33308
33309maintainer-clean-gotools:
33310 @: $(MAKE); $(unstage)
33311 @[ -f ./gotools/Makefile ] || exit 0; \
33312 r=`${PWD_COMMAND}`; export r; \
33313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33314 $(HOST_EXPORTS) \
33315 for flag in $(EXTRA_HOST_FLAGS) ; do \
33316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33317 done; \
22121df0 33318 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
33319 (cd $(HOST_SUBDIR)/gotools && \
33320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33322 "RANLIB=$${RANLIB}" \
33323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33324 maintainer-clean) \
33325 || exit 1
33326
33327@endif gotools
33328
33329
33330
0e65dfba
NA
33331.PHONY: configure-libctf maybe-configure-libctf
33332maybe-configure-libctf:
33333@if gcc-bootstrap
33334configure-libctf: stage_current
33335@endif gcc-bootstrap
33336@if libctf
33337maybe-configure-libctf: configure-libctf
33338configure-libctf:
33339 @r=`${PWD_COMMAND}`; export r; \
33340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33341 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33342 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33343 $(HOST_EXPORTS) \
33344 echo Configuring in $(HOST_SUBDIR)/libctf; \
33345 cd "$(HOST_SUBDIR)/libctf" || exit 1; \
33346 case $(srcdir) in \
33347 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33348 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33349 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33350 esac; \
33351 module_srcdir=libctf; \
33352 $(SHELL) \
33353 $$s/$$module_srcdir/configure \
33354 --srcdir=$${topdir}/$$module_srcdir \
33355 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33356 --target=${target_alias} \
33357 || exit 1
33358@endif libctf
33359
33360
33361
33362.PHONY: configure-stage1-libctf maybe-configure-stage1-libctf
33363maybe-configure-stage1-libctf:
33364@if libctf-bootstrap
33365maybe-configure-stage1-libctf: configure-stage1-libctf
33366configure-stage1-libctf:
33367 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33368 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33369 @r=`${PWD_COMMAND}`; export r; \
33370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33371 TFLAGS="$(STAGE1_TFLAGS)"; \
33372 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33373 $(HOST_EXPORTS) \
33374 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
33375 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
33376 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
33377 echo Configuring stage 1 in $(HOST_SUBDIR)/libctf; \
33378 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33379 cd $(HOST_SUBDIR)/libctf || exit 1; \
33380 case $(srcdir) in \
33381 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33382 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33383 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33384 esac; \
33385 module_srcdir=libctf; \
33386 $(SHELL) $$s/$$module_srcdir/configure \
33387 --srcdir=$${topdir}/$$module_srcdir \
33388 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33389 --target=${target_alias} \
33390 \
33391 $(STAGE1_CONFIGURE_FLAGS)
33392@endif libctf-bootstrap
33393
33394.PHONY: configure-stage2-libctf maybe-configure-stage2-libctf
33395maybe-configure-stage2-libctf:
33396@if libctf-bootstrap
33397maybe-configure-stage2-libctf: configure-stage2-libctf
33398configure-stage2-libctf:
33399 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33400 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33401 @r=`${PWD_COMMAND}`; export r; \
33402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33403 TFLAGS="$(STAGE2_TFLAGS)"; \
33404 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33405 $(HOST_EXPORTS) \
33406 $(POSTSTAGE1_HOST_EXPORTS) \
33407 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
33408 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
33409 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
33410 echo Configuring stage 2 in $(HOST_SUBDIR)/libctf; \
33411 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33412 cd $(HOST_SUBDIR)/libctf || exit 1; \
33413 case $(srcdir) in \
33414 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33415 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33416 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33417 esac; \
33418 module_srcdir=libctf; \
33419 $(SHELL) $$s/$$module_srcdir/configure \
33420 --srcdir=$${topdir}/$$module_srcdir \
33421 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33422 --target=${target_alias} \
33423 --with-build-libsubdir=$(HOST_SUBDIR) \
33424 $(STAGE2_CONFIGURE_FLAGS)
33425@endif libctf-bootstrap
33426
33427.PHONY: configure-stage3-libctf maybe-configure-stage3-libctf
33428maybe-configure-stage3-libctf:
33429@if libctf-bootstrap
33430maybe-configure-stage3-libctf: configure-stage3-libctf
33431configure-stage3-libctf:
33432 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33433 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33434 @r=`${PWD_COMMAND}`; export r; \
33435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33436 TFLAGS="$(STAGE3_TFLAGS)"; \
33437 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33438 $(HOST_EXPORTS) \
33439 $(POSTSTAGE1_HOST_EXPORTS) \
33440 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
33441 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
33442 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
33443 echo Configuring stage 3 in $(HOST_SUBDIR)/libctf; \
33444 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33445 cd $(HOST_SUBDIR)/libctf || exit 1; \
33446 case $(srcdir) in \
33447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33448 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33450 esac; \
33451 module_srcdir=libctf; \
33452 $(SHELL) $$s/$$module_srcdir/configure \
33453 --srcdir=$${topdir}/$$module_srcdir \
33454 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33455 --target=${target_alias} \
33456 --with-build-libsubdir=$(HOST_SUBDIR) \
33457 $(STAGE3_CONFIGURE_FLAGS)
33458@endif libctf-bootstrap
33459
33460.PHONY: configure-stage4-libctf maybe-configure-stage4-libctf
33461maybe-configure-stage4-libctf:
33462@if libctf-bootstrap
33463maybe-configure-stage4-libctf: configure-stage4-libctf
33464configure-stage4-libctf:
33465 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33466 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33467 @r=`${PWD_COMMAND}`; export r; \
33468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33469 TFLAGS="$(STAGE4_TFLAGS)"; \
33470 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33471 $(HOST_EXPORTS) \
33472 $(POSTSTAGE1_HOST_EXPORTS) \
33473 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
33474 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
33475 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
33476 echo Configuring stage 4 in $(HOST_SUBDIR)/libctf; \
33477 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33478 cd $(HOST_SUBDIR)/libctf || exit 1; \
33479 case $(srcdir) in \
33480 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33481 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33482 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33483 esac; \
33484 module_srcdir=libctf; \
33485 $(SHELL) $$s/$$module_srcdir/configure \
33486 --srcdir=$${topdir}/$$module_srcdir \
33487 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33488 --target=${target_alias} \
33489 --with-build-libsubdir=$(HOST_SUBDIR) \
33490 $(STAGE4_CONFIGURE_FLAGS)
33491@endif libctf-bootstrap
33492
33493.PHONY: configure-stageprofile-libctf maybe-configure-stageprofile-libctf
33494maybe-configure-stageprofile-libctf:
33495@if libctf-bootstrap
33496maybe-configure-stageprofile-libctf: configure-stageprofile-libctf
33497configure-stageprofile-libctf:
33498 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33499 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33500 @r=`${PWD_COMMAND}`; export r; \
33501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33502 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33503 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33504 $(HOST_EXPORTS) \
33505 $(POSTSTAGE1_HOST_EXPORTS) \
33506 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
33507 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
33508 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
33509 echo Configuring stage profile in $(HOST_SUBDIR)/libctf; \
33510 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33511 cd $(HOST_SUBDIR)/libctf || exit 1; \
33512 case $(srcdir) in \
33513 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33514 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33515 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33516 esac; \
33517 module_srcdir=libctf; \
33518 $(SHELL) $$s/$$module_srcdir/configure \
33519 --srcdir=$${topdir}/$$module_srcdir \
33520 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33521 --target=${target_alias} \
33522 --with-build-libsubdir=$(HOST_SUBDIR) \
33523 $(STAGEprofile_CONFIGURE_FLAGS)
33524@endif libctf-bootstrap
33525
33526.PHONY: configure-stagefeedback-libctf maybe-configure-stagefeedback-libctf
33527maybe-configure-stagefeedback-libctf:
33528@if libctf-bootstrap
33529maybe-configure-stagefeedback-libctf: configure-stagefeedback-libctf
33530configure-stagefeedback-libctf:
33531 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33532 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
33533 @r=`${PWD_COMMAND}`; export r; \
33534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33535 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33536 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
33537 $(HOST_EXPORTS) \
33538 $(POSTSTAGE1_HOST_EXPORTS) \
33539 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
33540 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
33541 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
33542 echo Configuring stage feedback in $(HOST_SUBDIR)/libctf; \
33543 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
33544 cd $(HOST_SUBDIR)/libctf || exit 1; \
33545 case $(srcdir) in \
33546 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33547 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
33548 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33549 esac; \
33550 module_srcdir=libctf; \
33551 $(SHELL) $$s/$$module_srcdir/configure \
33552 --srcdir=$${topdir}/$$module_srcdir \
33553 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33554 --target=${target_alias} \
33555 --with-build-libsubdir=$(HOST_SUBDIR) \
33556 $(STAGEfeedback_CONFIGURE_FLAGS)
33557@endif libctf-bootstrap
33558
33559
33560
33561
33562
33563.PHONY: all-libctf maybe-all-libctf
33564maybe-all-libctf:
33565@if gcc-bootstrap
33566all-libctf: stage_current
33567@endif gcc-bootstrap
33568@if libctf
33569TARGET-libctf=all
33570maybe-all-libctf: all-libctf
33571all-libctf: configure-libctf
33572 @r=`${PWD_COMMAND}`; export r; \
33573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33574 $(HOST_EXPORTS) \
33575 (cd $(HOST_SUBDIR)/libctf && \
33576 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
33577 $(TARGET-libctf))
33578@endif libctf
33579
33580
33581
33582.PHONY: all-stage1-libctf maybe-all-stage1-libctf
33583.PHONY: clean-stage1-libctf maybe-clean-stage1-libctf
33584maybe-all-stage1-libctf:
33585maybe-clean-stage1-libctf:
33586@if libctf-bootstrap
33587maybe-all-stage1-libctf: all-stage1-libctf
33588all-stage1: all-stage1-libctf
33589TARGET-stage1-libctf = $(TARGET-libctf)
33590all-stage1-libctf: configure-stage1-libctf
33591 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
33592 @r=`${PWD_COMMAND}`; export r; \
33593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33594 TFLAGS="$(STAGE1_TFLAGS)"; \
33595 $(HOST_EXPORTS) \
33596 cd $(HOST_SUBDIR)/libctf && \
33597 \
33598 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33599 CFLAGS="$(STAGE1_CFLAGS)" \
33600 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
33601 LIBCFLAGS="$(LIBCFLAGS)" \
33602 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33603 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33604 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33605 $(EXTRA_HOST_FLAGS) \
33606 $(STAGE1_FLAGS_TO_PASS) \
33607 TFLAGS="$(STAGE1_TFLAGS)" \
33608 $(TARGET-stage1-libctf)
33609
33610maybe-clean-stage1-libctf: clean-stage1-libctf
33611clean-stage1: clean-stage1-libctf
33612clean-stage1-libctf:
33613 @if [ $(current_stage) = stage1 ]; then \
33614 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33615 else \
33616 [ -f $(HOST_SUBDIR)/stage1-libctf/Makefile ] || exit 0; \
33617 $(MAKE) stage1-start; \
33618 fi; \
33619 cd $(HOST_SUBDIR)/libctf && \
33620 $(MAKE) $(EXTRA_HOST_FLAGS) \
33621 $(STAGE1_FLAGS_TO_PASS) clean
33622@endif libctf-bootstrap
33623
33624
33625.PHONY: all-stage2-libctf maybe-all-stage2-libctf
33626.PHONY: clean-stage2-libctf maybe-clean-stage2-libctf
33627maybe-all-stage2-libctf:
33628maybe-clean-stage2-libctf:
33629@if libctf-bootstrap
33630maybe-all-stage2-libctf: all-stage2-libctf
33631all-stage2: all-stage2-libctf
33632TARGET-stage2-libctf = $(TARGET-libctf)
33633all-stage2-libctf: configure-stage2-libctf
33634 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
33635 @r=`${PWD_COMMAND}`; export r; \
33636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33637 TFLAGS="$(STAGE2_TFLAGS)"; \
33638 $(HOST_EXPORTS) \
33639 $(POSTSTAGE1_HOST_EXPORTS) \
33640 cd $(HOST_SUBDIR)/libctf && \
33641 \
33642 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33643 CFLAGS="$(STAGE2_CFLAGS)" \
33644 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
33645 LIBCFLAGS="$(STAGE2_CFLAGS)" \
33646 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33647 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33648 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33649 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33650 TFLAGS="$(STAGE2_TFLAGS)" \
33651 $(TARGET-stage2-libctf)
33652
33653maybe-clean-stage2-libctf: clean-stage2-libctf
33654clean-stage2: clean-stage2-libctf
33655clean-stage2-libctf:
33656 @if [ $(current_stage) = stage2 ]; then \
33657 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33658 else \
33659 [ -f $(HOST_SUBDIR)/stage2-libctf/Makefile ] || exit 0; \
33660 $(MAKE) stage2-start; \
33661 fi; \
33662 cd $(HOST_SUBDIR)/libctf && \
33663 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33664@endif libctf-bootstrap
33665
33666
33667.PHONY: all-stage3-libctf maybe-all-stage3-libctf
33668.PHONY: clean-stage3-libctf maybe-clean-stage3-libctf
33669maybe-all-stage3-libctf:
33670maybe-clean-stage3-libctf:
33671@if libctf-bootstrap
33672maybe-all-stage3-libctf: all-stage3-libctf
33673all-stage3: all-stage3-libctf
33674TARGET-stage3-libctf = $(TARGET-libctf)
33675all-stage3-libctf: configure-stage3-libctf
33676 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
33677 @r=`${PWD_COMMAND}`; export r; \
33678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33679 TFLAGS="$(STAGE3_TFLAGS)"; \
33680 $(HOST_EXPORTS) \
33681 $(POSTSTAGE1_HOST_EXPORTS) \
33682 cd $(HOST_SUBDIR)/libctf && \
33683 \
33684 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33685 CFLAGS="$(STAGE3_CFLAGS)" \
33686 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
33687 LIBCFLAGS="$(STAGE3_CFLAGS)" \
33688 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33689 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33690 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33691 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33692 TFLAGS="$(STAGE3_TFLAGS)" \
33693 $(TARGET-stage3-libctf)
33694
33695maybe-clean-stage3-libctf: clean-stage3-libctf
33696clean-stage3: clean-stage3-libctf
33697clean-stage3-libctf:
33698 @if [ $(current_stage) = stage3 ]; then \
33699 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33700 else \
33701 [ -f $(HOST_SUBDIR)/stage3-libctf/Makefile ] || exit 0; \
33702 $(MAKE) stage3-start; \
33703 fi; \
33704 cd $(HOST_SUBDIR)/libctf && \
33705 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33706@endif libctf-bootstrap
33707
33708
33709.PHONY: all-stage4-libctf maybe-all-stage4-libctf
33710.PHONY: clean-stage4-libctf maybe-clean-stage4-libctf
33711maybe-all-stage4-libctf:
33712maybe-clean-stage4-libctf:
33713@if libctf-bootstrap
33714maybe-all-stage4-libctf: all-stage4-libctf
33715all-stage4: all-stage4-libctf
33716TARGET-stage4-libctf = $(TARGET-libctf)
33717all-stage4-libctf: configure-stage4-libctf
33718 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
33719 @r=`${PWD_COMMAND}`; export r; \
33720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33721 TFLAGS="$(STAGE4_TFLAGS)"; \
33722 $(HOST_EXPORTS) \
33723 $(POSTSTAGE1_HOST_EXPORTS) \
33724 cd $(HOST_SUBDIR)/libctf && \
33725 \
33726 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33727 CFLAGS="$(STAGE4_CFLAGS)" \
33728 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
33729 LIBCFLAGS="$(STAGE4_CFLAGS)" \
33730 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33731 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33732 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33733 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33734 TFLAGS="$(STAGE4_TFLAGS)" \
33735 $(TARGET-stage4-libctf)
33736
33737maybe-clean-stage4-libctf: clean-stage4-libctf
33738clean-stage4: clean-stage4-libctf
33739clean-stage4-libctf:
33740 @if [ $(current_stage) = stage4 ]; then \
33741 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33742 else \
33743 [ -f $(HOST_SUBDIR)/stage4-libctf/Makefile ] || exit 0; \
33744 $(MAKE) stage4-start; \
33745 fi; \
33746 cd $(HOST_SUBDIR)/libctf && \
33747 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33748@endif libctf-bootstrap
33749
33750
33751.PHONY: all-stageprofile-libctf maybe-all-stageprofile-libctf
33752.PHONY: clean-stageprofile-libctf maybe-clean-stageprofile-libctf
33753maybe-all-stageprofile-libctf:
33754maybe-clean-stageprofile-libctf:
33755@if libctf-bootstrap
33756maybe-all-stageprofile-libctf: all-stageprofile-libctf
33757all-stageprofile: all-stageprofile-libctf
33758TARGET-stageprofile-libctf = $(TARGET-libctf)
33759all-stageprofile-libctf: configure-stageprofile-libctf
33760 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
33761 @r=`${PWD_COMMAND}`; export r; \
33762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33763 TFLAGS="$(STAGEprofile_TFLAGS)"; \
33764 $(HOST_EXPORTS) \
33765 $(POSTSTAGE1_HOST_EXPORTS) \
33766 cd $(HOST_SUBDIR)/libctf && \
33767 \
33768 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33769 CFLAGS="$(STAGEprofile_CFLAGS)" \
33770 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
33771 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
33772 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33773 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33774 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33775 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33776 TFLAGS="$(STAGEprofile_TFLAGS)" \
33777 $(TARGET-stageprofile-libctf)
33778
33779maybe-clean-stageprofile-libctf: clean-stageprofile-libctf
33780clean-stageprofile: clean-stageprofile-libctf
33781clean-stageprofile-libctf:
33782 @if [ $(current_stage) = stageprofile ]; then \
33783 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33784 else \
33785 [ -f $(HOST_SUBDIR)/stageprofile-libctf/Makefile ] || exit 0; \
33786 $(MAKE) stageprofile-start; \
33787 fi; \
33788 cd $(HOST_SUBDIR)/libctf && \
33789 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33790@endif libctf-bootstrap
33791
33792
33793.PHONY: all-stagefeedback-libctf maybe-all-stagefeedback-libctf
33794.PHONY: clean-stagefeedback-libctf maybe-clean-stagefeedback-libctf
33795maybe-all-stagefeedback-libctf:
33796maybe-clean-stagefeedback-libctf:
33797@if libctf-bootstrap
33798maybe-all-stagefeedback-libctf: all-stagefeedback-libctf
33799all-stagefeedback: all-stagefeedback-libctf
33800TARGET-stagefeedback-libctf = $(TARGET-libctf)
33801all-stagefeedback-libctf: configure-stagefeedback-libctf
33802 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33803 @r=`${PWD_COMMAND}`; export r; \
33804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33805 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
33806 $(HOST_EXPORTS) \
33807 $(POSTSTAGE1_HOST_EXPORTS) \
33808 cd $(HOST_SUBDIR)/libctf && \
33809 \
33810 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33811 CFLAGS="$(STAGEfeedback_CFLAGS)" \
33812 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
33813 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
33814 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33815 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33816 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
33817 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
33818 TFLAGS="$(STAGEfeedback_TFLAGS)" \
33819 $(TARGET-stagefeedback-libctf)
33820
33821maybe-clean-stagefeedback-libctf: clean-stagefeedback-libctf
33822clean-stagefeedback: clean-stagefeedback-libctf
33823clean-stagefeedback-libctf:
33824 @if [ $(current_stage) = stagefeedback ]; then \
33825 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
33826 else \
33827 [ -f $(HOST_SUBDIR)/stagefeedback-libctf/Makefile ] || exit 0; \
33828 $(MAKE) stagefeedback-start; \
33829 fi; \
33830 cd $(HOST_SUBDIR)/libctf && \
33831 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
33832@endif libctf-bootstrap
33833
33834
33835
33836
33837
33838.PHONY: check-libctf maybe-check-libctf
33839maybe-check-libctf:
33840@if libctf
33841maybe-check-libctf: check-libctf
33842
33843check-libctf:
33844
33845@endif libctf
33846
33847.PHONY: install-libctf maybe-install-libctf
33848maybe-install-libctf:
33849@if libctf
33850maybe-install-libctf: install-libctf
33851
33852install-libctf:
33853
33854@endif libctf
33855
33856.PHONY: install-strip-libctf maybe-install-strip-libctf
33857maybe-install-strip-libctf:
33858@if libctf
33859maybe-install-strip-libctf: install-strip-libctf
33860
33861install-strip-libctf:
33862
33863@endif libctf
33864
33865# Other targets (info, dvi, pdf, etc.)
33866
33867.PHONY: maybe-info-libctf info-libctf
33868maybe-info-libctf:
33869@if libctf
33870maybe-info-libctf: info-libctf
33871
33872info-libctf: \
33873 configure-libctf
33874 @[ -f ./libctf/Makefile ] || exit 0; \
33875 r=`${PWD_COMMAND}`; export r; \
33876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33877 $(HOST_EXPORTS) \
33878 for flag in $(EXTRA_HOST_FLAGS) ; do \
33879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33880 done; \
33881 echo "Doing info in libctf"; \
33882 (cd $(HOST_SUBDIR)/libctf && \
33883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33885 "RANLIB=$${RANLIB}" \
33886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33887 info) \
33888 || exit 1
33889
33890@endif libctf
33891
33892.PHONY: maybe-dvi-libctf dvi-libctf
33893maybe-dvi-libctf:
33894@if libctf
33895maybe-dvi-libctf: dvi-libctf
33896
33897dvi-libctf: \
33898 configure-libctf
33899 @[ -f ./libctf/Makefile ] || exit 0; \
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; \
33906 echo "Doing dvi in libctf"; \
33907 (cd $(HOST_SUBDIR)/libctf && \
33908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33910 "RANLIB=$${RANLIB}" \
33911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33912 dvi) \
33913 || exit 1
33914
33915@endif libctf
33916
33917.PHONY: maybe-pdf-libctf pdf-libctf
33918maybe-pdf-libctf:
33919@if libctf
33920maybe-pdf-libctf: pdf-libctf
33921
33922pdf-libctf: \
33923 configure-libctf
33924 @[ -f ./libctf/Makefile ] || exit 0; \
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; \
33931 echo "Doing pdf in libctf"; \
33932 (cd $(HOST_SUBDIR)/libctf && \
33933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33935 "RANLIB=$${RANLIB}" \
33936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33937 pdf) \
33938 || exit 1
33939
33940@endif libctf
33941
33942.PHONY: maybe-html-libctf html-libctf
33943maybe-html-libctf:
33944@if libctf
33945maybe-html-libctf: html-libctf
33946
33947html-libctf: \
33948 configure-libctf
33949 @[ -f ./libctf/Makefile ] || exit 0; \
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; \
33956 echo "Doing html in libctf"; \
33957 (cd $(HOST_SUBDIR)/libctf && \
33958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33960 "RANLIB=$${RANLIB}" \
33961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33962 html) \
33963 || exit 1
33964
33965@endif libctf
33966
33967.PHONY: maybe-TAGS-libctf TAGS-libctf
33968maybe-TAGS-libctf:
33969@if libctf
33970maybe-TAGS-libctf: TAGS-libctf
33971
33972TAGS-libctf: \
33973 configure-libctf
33974 @[ -f ./libctf/Makefile ] || exit 0; \
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; \
33981 echo "Doing TAGS in libctf"; \
33982 (cd $(HOST_SUBDIR)/libctf && \
33983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33985 "RANLIB=$${RANLIB}" \
33986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33987 TAGS) \
33988 || exit 1
33989
33990@endif libctf
33991
33992.PHONY: maybe-install-info-libctf install-info-libctf
33993maybe-install-info-libctf:
33994@if libctf
33995maybe-install-info-libctf: install-info-libctf
33996
33997install-info-libctf: \
33998 configure-libctf \
33999 info-libctf
34000 @[ -f ./libctf/Makefile ] || exit 0; \
34001 r=`${PWD_COMMAND}`; export r; \
34002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34003 $(HOST_EXPORTS) \
34004 for flag in $(EXTRA_HOST_FLAGS) ; do \
34005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34006 done; \
34007 echo "Doing install-info in libctf"; \
34008 (cd $(HOST_SUBDIR)/libctf && \
34009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34011 "RANLIB=$${RANLIB}" \
34012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34013 install-info) \
34014 || exit 1
34015
34016@endif libctf
34017
34018.PHONY: maybe-install-pdf-libctf install-pdf-libctf
34019maybe-install-pdf-libctf:
34020@if libctf
34021maybe-install-pdf-libctf: install-pdf-libctf
34022
34023install-pdf-libctf: \
34024 configure-libctf \
34025 pdf-libctf
34026 @[ -f ./libctf/Makefile ] || exit 0; \
34027 r=`${PWD_COMMAND}`; export r; \
34028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34029 $(HOST_EXPORTS) \
34030 for flag in $(EXTRA_HOST_FLAGS) ; do \
34031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34032 done; \
34033 echo "Doing install-pdf in libctf"; \
34034 (cd $(HOST_SUBDIR)/libctf && \
34035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34037 "RANLIB=$${RANLIB}" \
34038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34039 install-pdf) \
34040 || exit 1
34041
34042@endif libctf
34043
34044.PHONY: maybe-install-html-libctf install-html-libctf
34045maybe-install-html-libctf:
34046@if libctf
34047maybe-install-html-libctf: install-html-libctf
34048
34049install-html-libctf: \
34050 configure-libctf \
34051 html-libctf
34052 @[ -f ./libctf/Makefile ] || exit 0; \
34053 r=`${PWD_COMMAND}`; export r; \
34054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34055 $(HOST_EXPORTS) \
34056 for flag in $(EXTRA_HOST_FLAGS) ; do \
34057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34058 done; \
34059 echo "Doing install-html in libctf"; \
34060 (cd $(HOST_SUBDIR)/libctf && \
34061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34063 "RANLIB=$${RANLIB}" \
34064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34065 install-html) \
34066 || exit 1
34067
34068@endif libctf
34069
34070.PHONY: maybe-installcheck-libctf installcheck-libctf
34071maybe-installcheck-libctf:
34072@if libctf
34073maybe-installcheck-libctf: installcheck-libctf
34074
34075installcheck-libctf: \
34076 configure-libctf
34077 @[ -f ./libctf/Makefile ] || exit 0; \
34078 r=`${PWD_COMMAND}`; export r; \
34079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34080 $(HOST_EXPORTS) \
34081 for flag in $(EXTRA_HOST_FLAGS) ; do \
34082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34083 done; \
34084 echo "Doing installcheck in libctf"; \
34085 (cd $(HOST_SUBDIR)/libctf && \
34086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34088 "RANLIB=$${RANLIB}" \
34089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34090 installcheck) \
34091 || exit 1
34092
34093@endif libctf
34094
34095.PHONY: maybe-mostlyclean-libctf mostlyclean-libctf
34096maybe-mostlyclean-libctf:
34097@if libctf
34098maybe-mostlyclean-libctf: mostlyclean-libctf
34099
34100mostlyclean-libctf:
34101 @[ -f ./libctf/Makefile ] || exit 0; \
34102 r=`${PWD_COMMAND}`; export r; \
34103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34104 $(HOST_EXPORTS) \
34105 for flag in $(EXTRA_HOST_FLAGS) ; do \
34106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34107 done; \
34108 echo "Doing mostlyclean in libctf"; \
34109 (cd $(HOST_SUBDIR)/libctf && \
34110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34112 "RANLIB=$${RANLIB}" \
34113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34114 mostlyclean) \
34115 || exit 1
34116
34117@endif libctf
34118
34119.PHONY: maybe-clean-libctf clean-libctf
34120maybe-clean-libctf:
34121@if libctf
34122maybe-clean-libctf: clean-libctf
34123
34124clean-libctf:
34125 @[ -f ./libctf/Makefile ] || exit 0; \
34126 r=`${PWD_COMMAND}`; export r; \
34127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34128 $(HOST_EXPORTS) \
34129 for flag in $(EXTRA_HOST_FLAGS) ; do \
34130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34131 done; \
34132 echo "Doing clean in libctf"; \
34133 (cd $(HOST_SUBDIR)/libctf && \
34134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34136 "RANLIB=$${RANLIB}" \
34137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34138 clean) \
34139 || exit 1
34140
34141@endif libctf
34142
34143.PHONY: maybe-distclean-libctf distclean-libctf
34144maybe-distclean-libctf:
34145@if libctf
34146maybe-distclean-libctf: distclean-libctf
34147
34148distclean-libctf:
34149 @[ -f ./libctf/Makefile ] || exit 0; \
34150 r=`${PWD_COMMAND}`; export r; \
34151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34152 $(HOST_EXPORTS) \
34153 for flag in $(EXTRA_HOST_FLAGS) ; do \
34154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34155 done; \
34156 echo "Doing distclean in libctf"; \
34157 (cd $(HOST_SUBDIR)/libctf && \
34158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34160 "RANLIB=$${RANLIB}" \
34161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34162 distclean) \
34163 || exit 1
34164
34165@endif libctf
34166
34167.PHONY: maybe-maintainer-clean-libctf maintainer-clean-libctf
34168maybe-maintainer-clean-libctf:
34169@if libctf
34170maybe-maintainer-clean-libctf: maintainer-clean-libctf
34171
34172maintainer-clean-libctf:
34173 @[ -f ./libctf/Makefile ] || exit 0; \
34174 r=`${PWD_COMMAND}`; export r; \
34175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34176 $(HOST_EXPORTS) \
34177 for flag in $(EXTRA_HOST_FLAGS) ; do \
34178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34179 done; \
34180 echo "Doing maintainer-clean in libctf"; \
34181 (cd $(HOST_SUBDIR)/libctf && \
34182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34184 "RANLIB=$${RANLIB}" \
34185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34186 maintainer-clean) \
34187 || exit 1
34188
34189@endif libctf
34190
34191
34192
1b6c0831
L
34193# ---------------------------------------
34194# Modules which run on the target machine
34195# ---------------------------------------
34196
34197
34198
34199
34200.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
34201maybe-configure-target-libstdc++-v3:
34202@if gcc-bootstrap
34203configure-target-libstdc++-v3: stage_current
34204@endif gcc-bootstrap
34205@if target-libstdc++-v3
34206maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
34207configure-target-libstdc++-v3:
34208 @r=`${PWD_COMMAND}`; export r; \
34209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34210 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
34211 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
34212 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34213 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34214 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34215 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34216 else \
34217 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34218 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34219 fi; \
34220 else \
34221 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34222 fi; \
34223 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 34224 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34225 $(RAW_CXX_TARGET_EXPORTS) \
34226 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
34227 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
34228 case $(srcdir) in \
34229 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34230 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34231 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34232 esac; \
34233 module_srcdir=libstdc++-v3; \
34234 rm -f no-such-file || : ; \
34235 CONFIG_SITE=no-such-file $(SHELL) \
34236 $$s/$$module_srcdir/configure \
34237 --srcdir=$${topdir}/$$module_srcdir \
34238 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34239 --target=${target_alias} \
34240 || exit 1
34241@endif target-libstdc++-v3
34242
34243
34244
34245.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
34246maybe-configure-stage1-target-libstdc++-v3:
34247@if target-libstdc++-v3-bootstrap
34248maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
34249configure-stage1-target-libstdc++-v3:
34250 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34251 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34252 @r=`${PWD_COMMAND}`; export r; \
34253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34254 TFLAGS="$(STAGE1_TFLAGS)"; \
34255 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34256 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34257 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34258 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34259 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34260 else \
34261 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34262 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34263 fi; \
34264 else \
34265 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34266 fi; \
34267 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34268 $(RAW_CXX_TARGET_EXPORTS) \
34269 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34270 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34271 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34272 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
34273 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34274 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34275 case $(srcdir) in \
34276 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34277 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34278 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34279 esac; \
34280 module_srcdir=libstdc++-v3; \
34281 $(SHELL) $$s/$$module_srcdir/configure \
34282 --srcdir=$${topdir}/$$module_srcdir \
34283 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34284 --target=${target_alias} \
34285 \
34286 $(STAGE1_CONFIGURE_FLAGS)
34287@endif target-libstdc++-v3-bootstrap
34288
34289.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
34290maybe-configure-stage2-target-libstdc++-v3:
34291@if target-libstdc++-v3-bootstrap
34292maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
34293configure-stage2-target-libstdc++-v3:
34294 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34295 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34296 @r=`${PWD_COMMAND}`; export r; \
34297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34298 TFLAGS="$(STAGE2_TFLAGS)"; \
34299 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34300 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34301 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34302 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34303 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34304 else \
34305 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34306 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34307 fi; \
34308 else \
34309 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34310 fi; \
34311 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34312 $(RAW_CXX_TARGET_EXPORTS) \
34313 \
34314 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34315 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34316 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34317 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
34318 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34319 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34320 case $(srcdir) in \
34321 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34322 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34323 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34324 esac; \
34325 module_srcdir=libstdc++-v3; \
34326 $(SHELL) $$s/$$module_srcdir/configure \
34327 --srcdir=$${topdir}/$$module_srcdir \
34328 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34329 --target=${target_alias} \
22121df0 34330 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34331 $(STAGE2_CONFIGURE_FLAGS)
34332@endif target-libstdc++-v3-bootstrap
34333
34334.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
34335maybe-configure-stage3-target-libstdc++-v3:
34336@if target-libstdc++-v3-bootstrap
34337maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
34338configure-stage3-target-libstdc++-v3:
34339 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34340 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34341 @r=`${PWD_COMMAND}`; export r; \
34342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34343 TFLAGS="$(STAGE3_TFLAGS)"; \
34344 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34345 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34346 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34347 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34348 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34349 else \
34350 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34351 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34352 fi; \
34353 else \
34354 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34355 fi; \
34356 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34357 $(RAW_CXX_TARGET_EXPORTS) \
34358 \
34359 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34360 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34361 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34362 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
34363 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34364 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34365 case $(srcdir) in \
34366 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34367 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34368 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34369 esac; \
34370 module_srcdir=libstdc++-v3; \
34371 $(SHELL) $$s/$$module_srcdir/configure \
34372 --srcdir=$${topdir}/$$module_srcdir \
34373 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34374 --target=${target_alias} \
22121df0 34375 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34376 $(STAGE3_CONFIGURE_FLAGS)
34377@endif target-libstdc++-v3-bootstrap
34378
34379.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
34380maybe-configure-stage4-target-libstdc++-v3:
34381@if target-libstdc++-v3-bootstrap
34382maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
34383configure-stage4-target-libstdc++-v3:
34384 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34385 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34386 @r=`${PWD_COMMAND}`; export r; \
34387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34388 TFLAGS="$(STAGE4_TFLAGS)"; \
34389 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34390 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34391 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34392 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34393 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34394 else \
34395 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34396 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34397 fi; \
34398 else \
34399 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34400 fi; \
34401 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34402 $(RAW_CXX_TARGET_EXPORTS) \
34403 \
34404 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34405 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34406 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34407 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
34408 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34409 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34410 case $(srcdir) in \
34411 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34412 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34413 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34414 esac; \
34415 module_srcdir=libstdc++-v3; \
34416 $(SHELL) $$s/$$module_srcdir/configure \
34417 --srcdir=$${topdir}/$$module_srcdir \
34418 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34419 --target=${target_alias} \
22121df0 34420 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34421 $(STAGE4_CONFIGURE_FLAGS)
34422@endif target-libstdc++-v3-bootstrap
34423
34424.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
34425maybe-configure-stageprofile-target-libstdc++-v3:
34426@if target-libstdc++-v3-bootstrap
34427maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
34428configure-stageprofile-target-libstdc++-v3:
34429 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34430 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34431 @r=`${PWD_COMMAND}`; export r; \
34432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34433 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34434 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34435 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34436 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34437 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34438 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34439 else \
34440 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34441 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34442 fi; \
34443 else \
34444 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34445 fi; \
34446 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34447 $(RAW_CXX_TARGET_EXPORTS) \
34448 \
34449 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34450 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34451 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34452 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
34453 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34454 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34455 case $(srcdir) in \
34456 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34457 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34458 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34459 esac; \
34460 module_srcdir=libstdc++-v3; \
34461 $(SHELL) $$s/$$module_srcdir/configure \
34462 --srcdir=$${topdir}/$$module_srcdir \
34463 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34464 --target=${target_alias} \
22121df0 34465 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34466 $(STAGEprofile_CONFIGURE_FLAGS)
34467@endif target-libstdc++-v3-bootstrap
34468
34469.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
34470maybe-configure-stagefeedback-target-libstdc++-v3:
34471@if target-libstdc++-v3-bootstrap
34472maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
34473configure-stagefeedback-target-libstdc++-v3:
34474 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34475 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
34476 @r=`${PWD_COMMAND}`; export r; \
34477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34478 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34479 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 34480 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
34481 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34482 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
34483 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
34484 else \
34485 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
34486 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34487 fi; \
34488 else \
34489 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
34490 fi; \
34491 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
34492 $(RAW_CXX_TARGET_EXPORTS) \
34493 \
34494 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
34495 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
34496 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
34497 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
34498 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
34499 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
34500 case $(srcdir) in \
34501 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34502 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
34503 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34504 esac; \
34505 module_srcdir=libstdc++-v3; \
34506 $(SHELL) $$s/$$module_srcdir/configure \
34507 --srcdir=$${topdir}/$$module_srcdir \
34508 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
34509 --target=${target_alias} \
22121df0 34510 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
34511 $(STAGEfeedback_CONFIGURE_FLAGS)
34512@endif target-libstdc++-v3-bootstrap
34513
34514
34515
34516
34517
34518.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
34519maybe-all-target-libstdc++-v3:
34520@if gcc-bootstrap
34521all-target-libstdc++-v3: stage_current
34522@endif gcc-bootstrap
34523@if target-libstdc++-v3
34524TARGET-target-libstdc++-v3=all
34525maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
34526all-target-libstdc++-v3: configure-target-libstdc++-v3
34527 @r=`${PWD_COMMAND}`; export r; \
34528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34529 $(RAW_CXX_TARGET_EXPORTS) \
34530 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34531 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34532 $(TARGET-target-libstdc++-v3))
34533@endif target-libstdc++-v3
34534
34535
34536
34537.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
34538.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
34539maybe-all-stage1-target-libstdc++-v3:
34540maybe-clean-stage1-target-libstdc++-v3:
34541@if target-libstdc++-v3-bootstrap
34542maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
34543all-stage1: all-stage1-target-libstdc++-v3
34544TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34545all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
34546 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34547 @r=`${PWD_COMMAND}`; export r; \
34548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34549 TFLAGS="$(STAGE1_TFLAGS)"; \
34550 $(RAW_CXX_TARGET_EXPORTS) \
34551 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34552 \
1b6c0831
L
34553 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34554 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34555 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34556 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34557 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34558 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34559 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34560 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34561 \
05a13254 34562 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
34563 $(TARGET-stage1-target-libstdc++-v3)
34564
34565maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
34566clean-stage1: clean-stage1-target-libstdc++-v3
34567clean-stage1-target-libstdc++-v3:
34568 @if [ $(current_stage) = stage1 ]; then \
34569 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34570 else \
34571 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
34572 $(MAKE) stage1-start; \
34573 fi; \
34574 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34575 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
34576 clean
34577@endif target-libstdc++-v3-bootstrap
34578
34579
34580.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
34581.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
34582maybe-all-stage2-target-libstdc++-v3:
34583maybe-clean-stage2-target-libstdc++-v3:
34584@if target-libstdc++-v3-bootstrap
34585maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
34586all-stage2: all-stage2-target-libstdc++-v3
34587TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34588all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
34589 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34590 @r=`${PWD_COMMAND}`; export r; \
34591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34592 TFLAGS="$(STAGE2_TFLAGS)"; \
34593 $(RAW_CXX_TARGET_EXPORTS) \
34594 \
34595 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34596 \
1b6c0831
L
34597 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34598 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34599 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34600 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34601 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34602 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34603 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34604 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34605 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
34606 $(TARGET-stage2-target-libstdc++-v3)
34607
34608maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
34609clean-stage2: clean-stage2-target-libstdc++-v3
34610clean-stage2-target-libstdc++-v3:
34611 @if [ $(current_stage) = stage2 ]; then \
34612 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34613 else \
34614 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
34615 $(MAKE) stage2-start; \
34616 fi; \
34617 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34618 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34619@endif target-libstdc++-v3-bootstrap
34620
34621
34622.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
34623.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
34624maybe-all-stage3-target-libstdc++-v3:
34625maybe-clean-stage3-target-libstdc++-v3:
34626@if target-libstdc++-v3-bootstrap
34627maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
34628all-stage3: all-stage3-target-libstdc++-v3
34629TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34630all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
34631 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34632 @r=`${PWD_COMMAND}`; export r; \
34633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34634 TFLAGS="$(STAGE3_TFLAGS)"; \
34635 $(RAW_CXX_TARGET_EXPORTS) \
34636 \
34637 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34638 \
1b6c0831
L
34639 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34640 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34641 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34642 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34643 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34644 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34645 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34646 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34647 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
34648 $(TARGET-stage3-target-libstdc++-v3)
34649
34650maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
34651clean-stage3: clean-stage3-target-libstdc++-v3
34652clean-stage3-target-libstdc++-v3:
34653 @if [ $(current_stage) = stage3 ]; then \
34654 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34655 else \
34656 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
34657 $(MAKE) stage3-start; \
34658 fi; \
34659 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34660 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34661@endif target-libstdc++-v3-bootstrap
34662
34663
34664.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
34665.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
34666maybe-all-stage4-target-libstdc++-v3:
34667maybe-clean-stage4-target-libstdc++-v3:
34668@if target-libstdc++-v3-bootstrap
34669maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
34670all-stage4: all-stage4-target-libstdc++-v3
34671TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34672all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
34673 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34674 @r=`${PWD_COMMAND}`; export r; \
34675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34676 TFLAGS="$(STAGE4_TFLAGS)"; \
34677 $(RAW_CXX_TARGET_EXPORTS) \
34678 \
34679 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34680 \
1b6c0831
L
34681 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34682 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34683 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34684 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34685 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34686 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34687 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34688 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34689 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
34690 $(TARGET-stage4-target-libstdc++-v3)
34691
34692maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
34693clean-stage4: clean-stage4-target-libstdc++-v3
34694clean-stage4-target-libstdc++-v3:
34695 @if [ $(current_stage) = stage4 ]; then \
34696 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34697 else \
34698 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
34699 $(MAKE) stage4-start; \
34700 fi; \
34701 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34702 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34703@endif target-libstdc++-v3-bootstrap
34704
34705
34706.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
34707.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
34708maybe-all-stageprofile-target-libstdc++-v3:
34709maybe-clean-stageprofile-target-libstdc++-v3:
34710@if target-libstdc++-v3-bootstrap
34711maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
34712all-stageprofile: all-stageprofile-target-libstdc++-v3
34713TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34714all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
34715 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34716 @r=`${PWD_COMMAND}`; export r; \
34717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34718 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34719 $(RAW_CXX_TARGET_EXPORTS) \
34720 \
34721 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34722 \
1b6c0831
L
34723 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34724 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34725 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34726 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34727 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34728 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34729 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34730 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34731 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
34732 $(TARGET-stageprofile-target-libstdc++-v3)
34733
34734maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
34735clean-stageprofile: clean-stageprofile-target-libstdc++-v3
34736clean-stageprofile-target-libstdc++-v3:
34737 @if [ $(current_stage) = stageprofile ]; then \
34738 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34739 else \
34740 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
34741 $(MAKE) stageprofile-start; \
34742 fi; \
34743 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34744 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34745@endif target-libstdc++-v3-bootstrap
34746
34747
34748.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
34749.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
34750maybe-all-stagefeedback-target-libstdc++-v3:
34751maybe-clean-stagefeedback-target-libstdc++-v3:
34752@if target-libstdc++-v3-bootstrap
34753maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
34754all-stagefeedback: all-stagefeedback-target-libstdc++-v3
34755TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
34756all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
34757 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34758 @r=`${PWD_COMMAND}`; export r; \
34759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34760 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34761 $(RAW_CXX_TARGET_EXPORTS) \
34762 \
34763 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 34764 \
1b6c0831
L
34765 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34766 CFLAGS="$(CFLAGS_FOR_TARGET)" \
34767 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
34768 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
34769 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34770 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34771 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34772 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 34773 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
34774 $(TARGET-stagefeedback-target-libstdc++-v3)
34775
34776maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
34777clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
34778clean-stagefeedback-target-libstdc++-v3:
34779 @if [ $(current_stage) = stagefeedback ]; then \
34780 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
34781 else \
34782 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
34783 $(MAKE) stagefeedback-start; \
34784 fi; \
34785 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34786 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
34787@endif target-libstdc++-v3-bootstrap
34788
34789
34790
34791
34792
34793
34794.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
34795maybe-check-target-libstdc++-v3:
34796@if target-libstdc++-v3
34797maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
34798
34799check-target-libstdc++-v3:
34800 @: $(MAKE); $(unstage)
34801 @r=`${PWD_COMMAND}`; export r; \
34802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34803 $(RAW_CXX_TARGET_EXPORTS) \
34804 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34805 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
34806
34807@endif target-libstdc++-v3
34808
34809.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
34810maybe-install-target-libstdc++-v3:
34811@if target-libstdc++-v3
34812maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
34813
34814install-target-libstdc++-v3: installdirs
34815 @: $(MAKE); $(unstage)
34816 @r=`${PWD_COMMAND}`; export r; \
34817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34818 $(RAW_CXX_TARGET_EXPORTS) \
34819 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34820 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
34821
34822@endif target-libstdc++-v3
34823
34824.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
34825maybe-install-strip-target-libstdc++-v3:
34826@if target-libstdc++-v3
34827maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
34828
34829install-strip-target-libstdc++-v3: installdirs
34830 @: $(MAKE); $(unstage)
34831 @r=`${PWD_COMMAND}`; export r; \
34832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34833 $(RAW_CXX_TARGET_EXPORTS) \
34834 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34835 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
34836
34837@endif target-libstdc++-v3
34838
34839# Other targets (info, dvi, pdf, etc.)
34840
34841.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
34842maybe-info-target-libstdc++-v3:
34843@if target-libstdc++-v3
34844maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
34845
34846info-target-libstdc++-v3: \
34847 configure-target-libstdc++-v3
34848 @: $(MAKE); $(unstage)
22121df0 34849 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34850 r=`${PWD_COMMAND}`; export r; \
34851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34852 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34853 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34854 for flag in $(EXTRA_TARGET_FLAGS); do \
34855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34856 done; \
34857 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34860 "RANLIB=$${RANLIB}" \
34861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34862 info) \
34863 || exit 1
34864
34865@endif target-libstdc++-v3
34866
34867.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
34868maybe-dvi-target-libstdc++-v3:
34869@if target-libstdc++-v3
34870maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
34871
34872dvi-target-libstdc++-v3: \
34873 configure-target-libstdc++-v3
34874 @: $(MAKE); $(unstage)
22121df0 34875 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34876 r=`${PWD_COMMAND}`; export r; \
34877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34878 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34879 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34880 for flag in $(EXTRA_TARGET_FLAGS); do \
34881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34882 done; \
34883 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34886 "RANLIB=$${RANLIB}" \
34887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34888 dvi) \
34889 || exit 1
34890
34891@endif target-libstdc++-v3
34892
34893.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
34894maybe-pdf-target-libstdc++-v3:
34895@if target-libstdc++-v3
34896maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
34897
34898pdf-target-libstdc++-v3: \
34899 configure-target-libstdc++-v3
34900 @: $(MAKE); $(unstage)
22121df0 34901 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34902 r=`${PWD_COMMAND}`; export r; \
34903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34904 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34905 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34906 for flag in $(EXTRA_TARGET_FLAGS); do \
34907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34908 done; \
34909 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34912 "RANLIB=$${RANLIB}" \
34913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34914 pdf) \
34915 || exit 1
34916
34917@endif target-libstdc++-v3
34918
34919.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
34920maybe-html-target-libstdc++-v3:
34921@if target-libstdc++-v3
34922maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
34923
34924html-target-libstdc++-v3: \
34925 configure-target-libstdc++-v3
34926 @: $(MAKE); $(unstage)
22121df0 34927 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34928 r=`${PWD_COMMAND}`; export r; \
34929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34930 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34931 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34932 for flag in $(EXTRA_TARGET_FLAGS); do \
34933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34934 done; \
34935 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34938 "RANLIB=$${RANLIB}" \
34939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34940 html) \
34941 || exit 1
34942
34943@endif target-libstdc++-v3
34944
34945.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
34946maybe-TAGS-target-libstdc++-v3:
34947@if target-libstdc++-v3
34948maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
34949
34950TAGS-target-libstdc++-v3: \
34951 configure-target-libstdc++-v3
34952 @: $(MAKE); $(unstage)
22121df0 34953 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34954 r=`${PWD_COMMAND}`; export r; \
34955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34956 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34957 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34958 for flag in $(EXTRA_TARGET_FLAGS); do \
34959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34960 done; \
34961 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34964 "RANLIB=$${RANLIB}" \
34965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34966 TAGS) \
34967 || exit 1
34968
34969@endif target-libstdc++-v3
34970
34971.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
34972maybe-install-info-target-libstdc++-v3:
34973@if target-libstdc++-v3
34974maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
34975
34976install-info-target-libstdc++-v3: \
34977 configure-target-libstdc++-v3 \
34978 info-target-libstdc++-v3
34979 @: $(MAKE); $(unstage)
22121df0 34980 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
34981 r=`${PWD_COMMAND}`; export r; \
34982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34983 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 34984 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
34985 for flag in $(EXTRA_TARGET_FLAGS); do \
34986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34987 done; \
34988 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
34989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34991 "RANLIB=$${RANLIB}" \
34992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34993 install-info) \
34994 || exit 1
34995
34996@endif target-libstdc++-v3
34997
34998.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
34999maybe-install-pdf-target-libstdc++-v3:
35000@if target-libstdc++-v3
35001maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
35002
35003install-pdf-target-libstdc++-v3: \
35004 configure-target-libstdc++-v3 \
35005 pdf-target-libstdc++-v3
35006 @: $(MAKE); $(unstage)
22121df0 35007 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35008 r=`${PWD_COMMAND}`; export r; \
35009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35010 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35011 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35012 for flag in $(EXTRA_TARGET_FLAGS); do \
35013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35014 done; \
35015 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35018 "RANLIB=$${RANLIB}" \
35019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35020 install-pdf) \
35021 || exit 1
35022
35023@endif target-libstdc++-v3
35024
35025.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
35026maybe-install-html-target-libstdc++-v3:
35027@if target-libstdc++-v3
35028maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
35029
35030install-html-target-libstdc++-v3: \
35031 configure-target-libstdc++-v3 \
35032 html-target-libstdc++-v3
35033 @: $(MAKE); $(unstage)
22121df0 35034 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35035 r=`${PWD_COMMAND}`; export r; \
35036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35037 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35038 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35039 for flag in $(EXTRA_TARGET_FLAGS); do \
35040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35041 done; \
35042 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35045 "RANLIB=$${RANLIB}" \
35046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35047 install-html) \
35048 || exit 1
35049
35050@endif target-libstdc++-v3
35051
35052.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
35053maybe-installcheck-target-libstdc++-v3:
35054@if target-libstdc++-v3
35055maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
35056
35057installcheck-target-libstdc++-v3: \
35058 configure-target-libstdc++-v3
35059 @: $(MAKE); $(unstage)
22121df0 35060 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35061 r=`${PWD_COMMAND}`; export r; \
35062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35063 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35064 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35065 for flag in $(EXTRA_TARGET_FLAGS); do \
35066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35067 done; \
35068 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35071 "RANLIB=$${RANLIB}" \
35072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35073 installcheck) \
35074 || exit 1
35075
35076@endif target-libstdc++-v3
35077
35078.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
35079maybe-mostlyclean-target-libstdc++-v3:
35080@if target-libstdc++-v3
35081maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
35082
35083mostlyclean-target-libstdc++-v3:
35084 @: $(MAKE); $(unstage)
22121df0 35085 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35086 r=`${PWD_COMMAND}`; export r; \
35087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35088 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35089 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35090 for flag in $(EXTRA_TARGET_FLAGS); do \
35091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35092 done; \
35093 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35096 "RANLIB=$${RANLIB}" \
35097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35098 mostlyclean) \
35099 || exit 1
35100
35101@endif target-libstdc++-v3
35102
35103.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
35104maybe-clean-target-libstdc++-v3:
35105@if target-libstdc++-v3
35106maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
35107
35108clean-target-libstdc++-v3:
35109 @: $(MAKE); $(unstage)
22121df0 35110 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35111 r=`${PWD_COMMAND}`; export r; \
35112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35113 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35114 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35115 for flag in $(EXTRA_TARGET_FLAGS); do \
35116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35117 done; \
35118 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35121 "RANLIB=$${RANLIB}" \
35122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35123 clean) \
35124 || exit 1
35125
35126@endif target-libstdc++-v3
35127
35128.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
35129maybe-distclean-target-libstdc++-v3:
35130@if target-libstdc++-v3
35131maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
35132
35133distclean-target-libstdc++-v3:
35134 @: $(MAKE); $(unstage)
22121df0 35135 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35136 r=`${PWD_COMMAND}`; export r; \
35137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35138 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35139 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35140 for flag in $(EXTRA_TARGET_FLAGS); do \
35141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35142 done; \
35143 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35146 "RANLIB=$${RANLIB}" \
35147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35148 distclean) \
35149 || exit 1
35150
35151@endif target-libstdc++-v3
35152
35153.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
35154maybe-maintainer-clean-target-libstdc++-v3:
35155@if target-libstdc++-v3
35156maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
35157
35158maintainer-clean-target-libstdc++-v3:
35159 @: $(MAKE); $(unstage)
22121df0 35160 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35161 r=`${PWD_COMMAND}`; export r; \
35162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35163 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35164 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35165 for flag in $(EXTRA_TARGET_FLAGS); do \
35166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35167 done; \
35168 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35171 "RANLIB=$${RANLIB}" \
35172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35173 maintainer-clean) \
35174 || exit 1
35175
35176@endif target-libstdc++-v3
35177
35178
35179
35180
35181
35182.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
35183maybe-configure-target-libsanitizer:
35184@if gcc-bootstrap
35185configure-target-libsanitizer: stage_current
35186@endif gcc-bootstrap
35187@if target-libsanitizer
35188maybe-configure-target-libsanitizer: configure-target-libsanitizer
35189configure-target-libsanitizer:
35190 @r=`${PWD_COMMAND}`; export r; \
35191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35192 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
35193 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
35194 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35195 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35196 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35197 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35198 else \
35199 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35200 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35201 fi; \
35202 else \
35203 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35204 fi; \
35205 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 35206 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35207 $(RAW_CXX_TARGET_EXPORTS) \
35208 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
35209 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
35210 case $(srcdir) in \
35211 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35212 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35213 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35214 esac; \
35215 module_srcdir=libsanitizer; \
35216 rm -f no-such-file || : ; \
35217 CONFIG_SITE=no-such-file $(SHELL) \
35218 $$s/$$module_srcdir/configure \
35219 --srcdir=$${topdir}/$$module_srcdir \
35220 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35221 --target=${target_alias} \
35222 || exit 1
35223@endif target-libsanitizer
35224
35225
35226
35227.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
35228maybe-configure-stage1-target-libsanitizer:
35229@if target-libsanitizer-bootstrap
35230maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
35231configure-stage1-target-libsanitizer:
35232 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35233 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35234 @r=`${PWD_COMMAND}`; export r; \
35235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35236 TFLAGS="$(STAGE1_TFLAGS)"; \
35237 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35238 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35239 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35240 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35241 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35242 else \
35243 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35244 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35245 fi; \
35246 else \
35247 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35248 fi; \
35249 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35250 $(RAW_CXX_TARGET_EXPORTS) \
35251 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35252 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35253 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35254 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
35255 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35256 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35257 case $(srcdir) in \
35258 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35259 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35260 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35261 esac; \
35262 module_srcdir=libsanitizer; \
35263 $(SHELL) $$s/$$module_srcdir/configure \
35264 --srcdir=$${topdir}/$$module_srcdir \
35265 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35266 --target=${target_alias} \
35267 \
35268 $(STAGE1_CONFIGURE_FLAGS)
35269@endif target-libsanitizer-bootstrap
35270
35271.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
35272maybe-configure-stage2-target-libsanitizer:
35273@if target-libsanitizer-bootstrap
35274maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
35275configure-stage2-target-libsanitizer:
35276 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35277 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35278 @r=`${PWD_COMMAND}`; export r; \
35279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35280 TFLAGS="$(STAGE2_TFLAGS)"; \
35281 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35282 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35283 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35284 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35285 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35286 else \
35287 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35288 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35289 fi; \
35290 else \
35291 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35292 fi; \
35293 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35294 $(RAW_CXX_TARGET_EXPORTS) \
35295 \
35296 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35297 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35298 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35299 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
35300 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35301 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35302 case $(srcdir) in \
35303 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35304 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35305 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35306 esac; \
35307 module_srcdir=libsanitizer; \
35308 $(SHELL) $$s/$$module_srcdir/configure \
35309 --srcdir=$${topdir}/$$module_srcdir \
35310 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35311 --target=${target_alias} \
22121df0 35312 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35313 $(STAGE2_CONFIGURE_FLAGS)
35314@endif target-libsanitizer-bootstrap
35315
35316.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
35317maybe-configure-stage3-target-libsanitizer:
35318@if target-libsanitizer-bootstrap
35319maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
35320configure-stage3-target-libsanitizer:
35321 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35322 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35323 @r=`${PWD_COMMAND}`; export r; \
35324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35325 TFLAGS="$(STAGE3_TFLAGS)"; \
35326 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35327 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35328 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35329 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35330 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35331 else \
35332 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35333 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35334 fi; \
35335 else \
35336 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35337 fi; \
35338 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35339 $(RAW_CXX_TARGET_EXPORTS) \
35340 \
35341 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35342 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35343 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35344 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
35345 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35346 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35347 case $(srcdir) in \
35348 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35349 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35350 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35351 esac; \
35352 module_srcdir=libsanitizer; \
35353 $(SHELL) $$s/$$module_srcdir/configure \
35354 --srcdir=$${topdir}/$$module_srcdir \
35355 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35356 --target=${target_alias} \
22121df0 35357 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35358 $(STAGE3_CONFIGURE_FLAGS)
35359@endif target-libsanitizer-bootstrap
35360
35361.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
35362maybe-configure-stage4-target-libsanitizer:
35363@if target-libsanitizer-bootstrap
35364maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
35365configure-stage4-target-libsanitizer:
35366 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35367 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35368 @r=`${PWD_COMMAND}`; export r; \
35369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35370 TFLAGS="$(STAGE4_TFLAGS)"; \
35371 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35372 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35373 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35374 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35375 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35376 else \
35377 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35378 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35379 fi; \
35380 else \
35381 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35382 fi; \
35383 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35384 $(RAW_CXX_TARGET_EXPORTS) \
35385 \
35386 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35387 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35388 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35389 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
35390 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35391 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35392 case $(srcdir) in \
35393 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35394 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35395 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35396 esac; \
35397 module_srcdir=libsanitizer; \
35398 $(SHELL) $$s/$$module_srcdir/configure \
35399 --srcdir=$${topdir}/$$module_srcdir \
35400 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35401 --target=${target_alias} \
22121df0 35402 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35403 $(STAGE4_CONFIGURE_FLAGS)
35404@endif target-libsanitizer-bootstrap
35405
35406.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
35407maybe-configure-stageprofile-target-libsanitizer:
35408@if target-libsanitizer-bootstrap
35409maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
35410configure-stageprofile-target-libsanitizer:
35411 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35412 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35413 @r=`${PWD_COMMAND}`; export r; \
35414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35415 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35416 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35417 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35418 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35419 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35420 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35421 else \
35422 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35423 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35424 fi; \
35425 else \
35426 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35427 fi; \
35428 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35429 $(RAW_CXX_TARGET_EXPORTS) \
35430 \
35431 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35432 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35433 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35434 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
35435 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35436 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35437 case $(srcdir) in \
35438 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35439 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35440 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35441 esac; \
35442 module_srcdir=libsanitizer; \
35443 $(SHELL) $$s/$$module_srcdir/configure \
35444 --srcdir=$${topdir}/$$module_srcdir \
35445 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35446 --target=${target_alias} \
22121df0 35447 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35448 $(STAGEprofile_CONFIGURE_FLAGS)
35449@endif target-libsanitizer-bootstrap
35450
35451.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
35452maybe-configure-stagefeedback-target-libsanitizer:
35453@if target-libsanitizer-bootstrap
35454maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
35455configure-stagefeedback-target-libsanitizer:
35456 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35457 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
35458 @r=`${PWD_COMMAND}`; export r; \
35459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35460 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35461 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 35462 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
35463 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35464 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
35465 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
35466 else \
35467 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
35468 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35469 fi; \
35470 else \
35471 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
35472 fi; \
35473 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
35474 $(RAW_CXX_TARGET_EXPORTS) \
35475 \
35476 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35477 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35478 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35479 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
35480 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
35481 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
35482 case $(srcdir) in \
35483 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35484 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
35485 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35486 esac; \
35487 module_srcdir=libsanitizer; \
35488 $(SHELL) $$s/$$module_srcdir/configure \
35489 --srcdir=$${topdir}/$$module_srcdir \
35490 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35491 --target=${target_alias} \
22121df0 35492 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35493 $(STAGEfeedback_CONFIGURE_FLAGS)
35494@endif target-libsanitizer-bootstrap
35495
35496
35497
35498
35499
35500.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
35501maybe-all-target-libsanitizer:
35502@if gcc-bootstrap
35503all-target-libsanitizer: stage_current
35504@endif gcc-bootstrap
35505@if target-libsanitizer
35506TARGET-target-libsanitizer=all
35507maybe-all-target-libsanitizer: all-target-libsanitizer
35508all-target-libsanitizer: configure-target-libsanitizer
35509 @r=`${PWD_COMMAND}`; export r; \
35510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35511 $(RAW_CXX_TARGET_EXPORTS) \
35512 (cd $(TARGET_SUBDIR)/libsanitizer && \
35513 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35514 $(TARGET-target-libsanitizer))
35515@endif target-libsanitizer
35516
35517
35518
35519.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
35520.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
35521maybe-all-stage1-target-libsanitizer:
35522maybe-clean-stage1-target-libsanitizer:
35523@if target-libsanitizer-bootstrap
35524maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
35525all-stage1: all-stage1-target-libsanitizer
35526TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
35527all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
35528 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35529 @r=`${PWD_COMMAND}`; export r; \
35530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35531 TFLAGS="$(STAGE1_TFLAGS)"; \
35532 $(RAW_CXX_TARGET_EXPORTS) \
35533 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35534 \
1b6c0831
L
35535 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35536 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35537 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35538 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35539 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35540 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35541 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35542 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35543 \
05a13254 35544 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
35545 $(TARGET-stage1-target-libsanitizer)
35546
35547maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
35548clean-stage1: clean-stage1-target-libsanitizer
35549clean-stage1-target-libsanitizer:
35550 @if [ $(current_stage) = stage1 ]; then \
35551 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
35552 else \
35553 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
35554 $(MAKE) stage1-start; \
35555 fi; \
35556 cd $(TARGET_SUBDIR)/libsanitizer && \
35557 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35558 clean
35559@endif target-libsanitizer-bootstrap
35560
35561
35562.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
35563.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
35564maybe-all-stage2-target-libsanitizer:
35565maybe-clean-stage2-target-libsanitizer:
35566@if target-libsanitizer-bootstrap
35567maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
35568all-stage2: all-stage2-target-libsanitizer
35569TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
35570all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
35571 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35572 @r=`${PWD_COMMAND}`; export r; \
35573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35574 TFLAGS="$(STAGE2_TFLAGS)"; \
35575 $(RAW_CXX_TARGET_EXPORTS) \
35576 \
35577 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35578 \
1b6c0831
L
35579 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35580 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35581 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35582 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35583 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35584 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35585 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35586 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35587 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
35588 $(TARGET-stage2-target-libsanitizer)
35589
35590maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
35591clean-stage2: clean-stage2-target-libsanitizer
35592clean-stage2-target-libsanitizer:
35593 @if [ $(current_stage) = stage2 ]; then \
35594 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
35595 else \
35596 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
35597 $(MAKE) stage2-start; \
35598 fi; \
35599 cd $(TARGET_SUBDIR)/libsanitizer && \
35600 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35601@endif target-libsanitizer-bootstrap
35602
35603
35604.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
35605.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
35606maybe-all-stage3-target-libsanitizer:
35607maybe-clean-stage3-target-libsanitizer:
35608@if target-libsanitizer-bootstrap
35609maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
35610all-stage3: all-stage3-target-libsanitizer
35611TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
35612all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
35613 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35614 @r=`${PWD_COMMAND}`; export r; \
35615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35616 TFLAGS="$(STAGE3_TFLAGS)"; \
35617 $(RAW_CXX_TARGET_EXPORTS) \
35618 \
35619 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35620 \
1b6c0831
L
35621 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35622 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35623 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35624 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35625 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35626 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35627 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35628 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35629 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
35630 $(TARGET-stage3-target-libsanitizer)
35631
35632maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
35633clean-stage3: clean-stage3-target-libsanitizer
35634clean-stage3-target-libsanitizer:
35635 @if [ $(current_stage) = stage3 ]; then \
35636 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
35637 else \
35638 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
35639 $(MAKE) stage3-start; \
35640 fi; \
35641 cd $(TARGET_SUBDIR)/libsanitizer && \
35642 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35643@endif target-libsanitizer-bootstrap
35644
35645
35646.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
35647.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
35648maybe-all-stage4-target-libsanitizer:
35649maybe-clean-stage4-target-libsanitizer:
35650@if target-libsanitizer-bootstrap
35651maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
35652all-stage4: all-stage4-target-libsanitizer
35653TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
35654all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
35655 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35656 @r=`${PWD_COMMAND}`; export r; \
35657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35658 TFLAGS="$(STAGE4_TFLAGS)"; \
35659 $(RAW_CXX_TARGET_EXPORTS) \
35660 \
35661 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35662 \
1b6c0831
L
35663 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35664 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35665 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35666 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
35667 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35668 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35669 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35670 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35671 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 35672 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 35673
1b6c0831
L
35674maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
35675clean-stage4: clean-stage4-target-libsanitizer
35676clean-stage4-target-libsanitizer:
e8a5fa9c 35677 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 35678 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 35679 else \
1b6c0831 35680 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
35681 $(MAKE) stage4-start; \
35682 fi; \
1b6c0831 35683 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 35684 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 35685@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
35686
35687
1b6c0831
L
35688.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
35689.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
35690maybe-all-stageprofile-target-libsanitizer:
35691maybe-clean-stageprofile-target-libsanitizer:
35692@if target-libsanitizer-bootstrap
35693maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
35694all-stageprofile: all-stageprofile-target-libsanitizer
35695TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
35696all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
35697 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35698 @r=`${PWD_COMMAND}`; export r; \
35699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35700 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35701 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 35702 \
1b6c0831 35703 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35704 \
e8a5fa9c
RW
35705 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35706 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35707 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35708 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35709 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35710 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35711 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35712 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35713 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 35714 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 35715
1b6c0831
L
35716maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
35717clean-stageprofile: clean-stageprofile-target-libsanitizer
35718clean-stageprofile-target-libsanitizer:
e8a5fa9c 35719 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 35720 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 35721 else \
1b6c0831 35722 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
35723 $(MAKE) stageprofile-start; \
35724 fi; \
1b6c0831 35725 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 35726 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 35727@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
35728
35729
1b6c0831
L
35730.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
35731.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
35732maybe-all-stagefeedback-target-libsanitizer:
35733maybe-clean-stagefeedback-target-libsanitizer:
35734@if target-libsanitizer-bootstrap
35735maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
35736all-stagefeedback: all-stagefeedback-target-libsanitizer
35737TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
35738all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
35739 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35740 @r=`${PWD_COMMAND}`; export r; \
35741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35742 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35743 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 35744 \
1b6c0831 35745 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 35746 \
e8a5fa9c
RW
35747 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35748 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35749 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35750 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35751 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35752 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35753 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35754 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35755 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 35756 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 35757
1b6c0831
L
35758maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
35759clean-stagefeedback: clean-stagefeedback-target-libsanitizer
35760clean-stagefeedback-target-libsanitizer:
e8a5fa9c 35761 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 35762 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 35763 else \
1b6c0831 35764 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
35765 $(MAKE) stagefeedback-start; \
35766 fi; \
1b6c0831 35767 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 35768 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 35769@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
35770
35771
35772
35773
d545f33b
PB
35774
35775
1b6c0831
L
35776.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
35777maybe-check-target-libsanitizer:
35778@if target-libsanitizer
35779maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 35780
1b6c0831 35781check-target-libsanitizer:
0aed8855 35782 @: $(MAKE); $(unstage)
b40e3958
L
35783 @r=`${PWD_COMMAND}`; export r; \
35784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35785 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 35786 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 35787 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 35788
1b6c0831 35789@endif target-libsanitizer
3866be5d 35790
1b6c0831
L
35791.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
35792maybe-install-target-libsanitizer:
35793@if target-libsanitizer
35794maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 35795
1b6c0831 35796install-target-libsanitizer: installdirs
0aed8855 35797 @: $(MAKE); $(unstage)
b40e3958
L
35798 @r=`${PWD_COMMAND}`; export r; \
35799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35800 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 35801 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 35802 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 35803
1b6c0831 35804@endif target-libsanitizer
e2b9e2dc 35805
1b6c0831
L
35806.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
35807maybe-install-strip-target-libsanitizer:
35808@if target-libsanitizer
35809maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 35810
1b6c0831 35811install-strip-target-libsanitizer: installdirs
9b980aa1
RW
35812 @: $(MAKE); $(unstage)
35813 @r=`${PWD_COMMAND}`; export r; \
35814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35815 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 35816 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
35817 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35818
1b6c0831 35819@endif target-libsanitizer
9b980aa1 35820
56a8fe78 35821# Other targets (info, dvi, pdf, etc.)
3866be5d 35822
1b6c0831
L
35823.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
35824maybe-info-target-libsanitizer:
35825@if target-libsanitizer
35826maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 35827
1b6c0831
L
35828info-target-libsanitizer: \
35829 configure-target-libsanitizer
0aed8855 35830 @: $(MAKE); $(unstage)
22121df0 35831 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35832 r=`${PWD_COMMAND}`; export r; \
b40e3958 35833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35834 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35835 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35836 for flag in $(EXTRA_TARGET_FLAGS); do \
35837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35838 done; \
1b6c0831 35839 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35842 "RANLIB=$${RANLIB}" \
0c24b341 35843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35844 info) \
4fa63067 35845 || exit 1
3866be5d 35846
1b6c0831 35847@endif target-libsanitizer
3866be5d 35848
1b6c0831
L
35849.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
35850maybe-dvi-target-libsanitizer:
35851@if target-libsanitizer
35852maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 35853
1b6c0831
L
35854dvi-target-libsanitizer: \
35855 configure-target-libsanitizer
0aed8855 35856 @: $(MAKE); $(unstage)
22121df0 35857 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35858 r=`${PWD_COMMAND}`; export r; \
b40e3958 35859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35860 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35861 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35862 for flag in $(EXTRA_TARGET_FLAGS); do \
35863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35864 done; \
1b6c0831 35865 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35868 "RANLIB=$${RANLIB}" \
0c24b341 35869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35870 dvi) \
4fa63067 35871 || exit 1
3866be5d 35872
1b6c0831 35873@endif target-libsanitizer
3866be5d 35874
1b6c0831
L
35875.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
35876maybe-pdf-target-libsanitizer:
35877@if target-libsanitizer
35878maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 35879
1b6c0831
L
35880pdf-target-libsanitizer: \
35881 configure-target-libsanitizer
56a8fe78 35882 @: $(MAKE); $(unstage)
22121df0 35883 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
35884 r=`${PWD_COMMAND}`; export r; \
35885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35886 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35887 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
35888 for flag in $(EXTRA_TARGET_FLAGS); do \
35889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35890 done; \
1b6c0831 35891 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
35892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35894 "RANLIB=$${RANLIB}" \
0c24b341 35895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
35896 pdf) \
35897 || exit 1
35898
1b6c0831 35899@endif target-libsanitizer
56a8fe78 35900
1b6c0831
L
35901.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
35902maybe-html-target-libsanitizer:
35903@if target-libsanitizer
35904maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 35905
1b6c0831
L
35906html-target-libsanitizer: \
35907 configure-target-libsanitizer
0aed8855 35908 @: $(MAKE); $(unstage)
22121df0 35909 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
35910 r=`${PWD_COMMAND}`; export r; \
35911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 35912 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35913 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
35914 for flag in $(EXTRA_TARGET_FLAGS); do \
35915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35916 done; \
1b6c0831 35917 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
35918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35920 "RANLIB=$${RANLIB}" \
0c24b341 35921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
35922 html) \
35923 || exit 1
35924
1b6c0831 35925@endif target-libsanitizer
6d389afc 35926
1b6c0831
L
35927.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
35928maybe-TAGS-target-libsanitizer:
35929@if target-libsanitizer
35930maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 35931
1b6c0831
L
35932TAGS-target-libsanitizer: \
35933 configure-target-libsanitizer
0aed8855 35934 @: $(MAKE); $(unstage)
22121df0 35935 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
35936 r=`${PWD_COMMAND}`; export r; \
35937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35938 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35939 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35940 for flag in $(EXTRA_TARGET_FLAGS); do \
35941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35942 done; \
1b6c0831 35943 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35946 "RANLIB=$${RANLIB}" \
0c24b341 35947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35948 TAGS) \
e2b9e2dc
NN
35949 || exit 1
35950
1b6c0831 35951@endif target-libsanitizer
3866be5d 35952
1b6c0831
L
35953.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
35954maybe-install-info-target-libsanitizer:
35955@if target-libsanitizer
35956maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 35957
1b6c0831
L
35958install-info-target-libsanitizer: \
35959 configure-target-libsanitizer \
35960 info-target-libsanitizer
0aed8855 35961 @: $(MAKE); $(unstage)
22121df0 35962 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 35963 r=`${PWD_COMMAND}`; export r; \
b40e3958 35964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 35965 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35966 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
35967 for flag in $(EXTRA_TARGET_FLAGS); do \
35968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35969 done; \
1b6c0831 35970 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
35971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35973 "RANLIB=$${RANLIB}" \
0c24b341 35974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 35975 install-info) \
4fa63067 35976 || exit 1
3866be5d 35977
1b6c0831 35978@endif target-libsanitizer
3866be5d 35979
1b6c0831
L
35980.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
35981maybe-install-pdf-target-libsanitizer:
35982@if target-libsanitizer
35983maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 35984
1b6c0831
L
35985install-pdf-target-libsanitizer: \
35986 configure-target-libsanitizer \
35987 pdf-target-libsanitizer
a3ca38d2 35988 @: $(MAKE); $(unstage)
22121df0 35989 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
35990 r=`${PWD_COMMAND}`; export r; \
35991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35992 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35993 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
35994 for flag in $(EXTRA_TARGET_FLAGS); do \
35995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35996 done; \
1b6c0831 35997 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
35998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36000 "RANLIB=$${RANLIB}" \
0c24b341 36001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
36002 install-pdf) \
36003 || exit 1
36004
1b6c0831 36005@endif target-libsanitizer
a3ca38d2 36006
1b6c0831
L
36007.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
36008maybe-install-html-target-libsanitizer:
36009@if target-libsanitizer
36010maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 36011
1b6c0831
L
36012install-html-target-libsanitizer: \
36013 configure-target-libsanitizer \
36014 html-target-libsanitizer
108a6f8e 36015 @: $(MAKE); $(unstage)
22121df0 36016 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
36017 r=`${PWD_COMMAND}`; export r; \
36018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36019 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36020 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
36021 for flag in $(EXTRA_TARGET_FLAGS); do \
36022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36023 done; \
1b6c0831 36024 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
36025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36027 "RANLIB=$${RANLIB}" \
0c24b341 36028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
36029 install-html) \
36030 || exit 1
36031
1b6c0831 36032@endif target-libsanitizer
108a6f8e 36033
1b6c0831
L
36034.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
36035maybe-installcheck-target-libsanitizer:
36036@if target-libsanitizer
36037maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 36038
1b6c0831
L
36039installcheck-target-libsanitizer: \
36040 configure-target-libsanitizer
0aed8855 36041 @: $(MAKE); $(unstage)
22121df0 36042 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36043 r=`${PWD_COMMAND}`; export r; \
b40e3958 36044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36045 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36046 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36047 for flag in $(EXTRA_TARGET_FLAGS); do \
36048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36049 done; \
1b6c0831 36050 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36053 "RANLIB=$${RANLIB}" \
0c24b341 36054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36055 installcheck) \
4fa63067 36056 || exit 1
3866be5d 36057
1b6c0831 36058@endif target-libsanitizer
3866be5d 36059
1b6c0831
L
36060.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
36061maybe-mostlyclean-target-libsanitizer:
36062@if target-libsanitizer
36063maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 36064
1b6c0831 36065mostlyclean-target-libsanitizer:
0aed8855 36066 @: $(MAKE); $(unstage)
22121df0 36067 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
36068 r=`${PWD_COMMAND}`; export r; \
36069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36070 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36071 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36072 for flag in $(EXTRA_TARGET_FLAGS); do \
36073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36074 done; \
1b6c0831 36075 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36078 "RANLIB=$${RANLIB}" \
0c24b341 36079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36080 mostlyclean) \
e2b9e2dc
NN
36081 || exit 1
36082
1b6c0831 36083@endif target-libsanitizer
4fa63067 36084
1b6c0831
L
36085.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
36086maybe-clean-target-libsanitizer:
36087@if target-libsanitizer
36088maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 36089
1b6c0831 36090clean-target-libsanitizer:
0aed8855 36091 @: $(MAKE); $(unstage)
22121df0 36092 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36093 r=`${PWD_COMMAND}`; export r; \
b40e3958 36094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36095 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36096 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36097 for flag in $(EXTRA_TARGET_FLAGS); do \
36098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36099 done; \
1b6c0831 36100 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36103 "RANLIB=$${RANLIB}" \
0c24b341 36104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36105 clean) \
4fa63067 36106 || exit 1
3866be5d 36107
1b6c0831 36108@endif target-libsanitizer
3866be5d 36109
1b6c0831
L
36110.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
36111maybe-distclean-target-libsanitizer:
36112@if target-libsanitizer
36113maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 36114
1b6c0831 36115distclean-target-libsanitizer:
0aed8855 36116 @: $(MAKE); $(unstage)
22121df0 36117 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36118 r=`${PWD_COMMAND}`; export r; \
b40e3958 36119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36120 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36121 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36122 for flag in $(EXTRA_TARGET_FLAGS); do \
36123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36124 done; \
1b6c0831 36125 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36128 "RANLIB=$${RANLIB}" \
0c24b341 36129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36130 distclean) \
4fa63067 36131 || exit 1
3866be5d 36132
1b6c0831 36133@endif target-libsanitizer
3866be5d 36134
1b6c0831
L
36135.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
36136maybe-maintainer-clean-target-libsanitizer:
36137@if target-libsanitizer
36138maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 36139
1b6c0831 36140maintainer-clean-target-libsanitizer:
0aed8855 36141 @: $(MAKE); $(unstage)
22121df0 36142 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36143 r=`${PWD_COMMAND}`; export r; \
b40e3958 36144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36145 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36146 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36147 for flag in $(EXTRA_TARGET_FLAGS); do \
36148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36149 done; \
1b6c0831 36150 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36153 "RANLIB=$${RANLIB}" \
0c24b341 36154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36155 maintainer-clean) \
4fa63067 36156 || exit 1
3866be5d 36157
1b6c0831 36158@endif target-libsanitizer
3866be5d 36159
4fa63067 36160
4fa63067 36161
a7254363
PB
36162
36163
1b6c0831
L
36164.PHONY: configure-target-libmpx maybe-configure-target-libmpx
36165maybe-configure-target-libmpx:
5286fdef 36166@if gcc-bootstrap
1b6c0831 36167configure-target-libmpx: stage_current
5286fdef 36168@endif gcc-bootstrap
1b6c0831
L
36169@if target-libmpx
36170maybe-configure-target-libmpx: configure-target-libmpx
36171configure-target-libmpx:
5286fdef
L
36172 @r=`${PWD_COMMAND}`; export r; \
36173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36174 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
36175 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
36176 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36177 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36178 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36179 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 36180 else \
1b6c0831
L
36181 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36182 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
36183 fi; \
36184 else \
1b6c0831 36185 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 36186 fi; \
1b6c0831 36187 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 36188 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
36189 $(NORMAL_TARGET_EXPORTS) \
36190 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
36191 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
36192 case $(srcdir) in \
36193 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36194 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
36195 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36196 esac; \
1b6c0831 36197 module_srcdir=libmpx; \
5286fdef 36198 rm -f no-such-file || : ; \
1b6c0831
L
36199 CONFIG_SITE=no-such-file $(SHELL) \
36200 $$s/$$module_srcdir/configure \
36201 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 36202 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36203 --target=${target_alias} \
5286fdef 36204 || exit 1
1b6c0831 36205@endif target-libmpx
5286fdef
L
36206
36207
36208
1b6c0831
L
36209.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
36210maybe-configure-stage1-target-libmpx:
36211@if target-libmpx-bootstrap
36212maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
36213configure-stage1-target-libmpx:
5eb08693 36214 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 36215 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36216 @r=`${PWD_COMMAND}`; export r; \
36217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36218 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 36219 echo "Checking multilib configuration for libmpx..."; \
22121df0 36220 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36221 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36222 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36223 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36224 else \
1b6c0831
L
36225 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36226 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36227 fi; \
36228 else \
1b6c0831 36229 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36230 fi; \
1b6c0831
L
36231 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36232 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36233 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36234 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36235 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36236 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
36237 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36238 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36239 case $(srcdir) in \
36240 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36241 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36242 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36243 esac; \
1b6c0831
L
36244 module_srcdir=libmpx; \
36245 $(SHELL) $$s/$$module_srcdir/configure \
36246 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36247 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
36248 --target=${target_alias} \
36249 \
5eb08693 36250 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 36251@endif target-libmpx-bootstrap
5eb08693 36252
1b6c0831
L
36253.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
36254maybe-configure-stage2-target-libmpx:
36255@if target-libmpx-bootstrap
36256maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
36257configure-stage2-target-libmpx:
5eb08693 36258 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 36259 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36260 @r=`${PWD_COMMAND}`; export r; \
36261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36262 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 36263 echo "Checking multilib configuration for libmpx..."; \
22121df0 36264 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36265 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36266 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36267 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36268 else \
1b6c0831
L
36269 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36270 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36271 fi; \
36272 else \
1b6c0831 36273 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36274 fi; \
1b6c0831
L
36275 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36276 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36277 \
36278 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36279 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36280 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36281 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
36282 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36283 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36284 case $(srcdir) in \
36285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36286 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36288 esac; \
1b6c0831
L
36289 module_srcdir=libmpx; \
36290 $(SHELL) $$s/$$module_srcdir/configure \
36291 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36292 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36293 --target=${target_alias} \
22121df0 36294 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36295 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 36296@endif target-libmpx-bootstrap
5eb08693 36297
1b6c0831
L
36298.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
36299maybe-configure-stage3-target-libmpx:
36300@if target-libmpx-bootstrap
36301maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
36302configure-stage3-target-libmpx:
5eb08693 36303 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 36304 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36305 @r=`${PWD_COMMAND}`; export r; \
36306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36307 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 36308 echo "Checking multilib configuration for libmpx..."; \
22121df0 36309 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36310 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36311 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36312 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36313 else \
1b6c0831
L
36314 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36315 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36316 fi; \
36317 else \
1b6c0831 36318 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36319 fi; \
1b6c0831
L
36320 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36321 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36322 \
36323 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36324 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36325 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36326 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
36327 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36328 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36329 case $(srcdir) in \
36330 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36331 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36332 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36333 esac; \
1b6c0831
L
36334 module_srcdir=libmpx; \
36335 $(SHELL) $$s/$$module_srcdir/configure \
36336 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36337 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36338 --target=${target_alias} \
22121df0 36339 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36340 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 36341@endif target-libmpx-bootstrap
5eb08693 36342
1b6c0831
L
36343.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
36344maybe-configure-stage4-target-libmpx:
36345@if target-libmpx-bootstrap
36346maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
36347configure-stage4-target-libmpx:
5eb08693 36348 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 36349 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36350 @r=`${PWD_COMMAND}`; export r; \
36351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36352 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 36353 echo "Checking multilib configuration for libmpx..."; \
22121df0 36354 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36355 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36356 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36357 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36358 else \
1b6c0831
L
36359 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36360 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36361 fi; \
36362 else \
1b6c0831 36363 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36364 fi; \
1b6c0831
L
36365 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36366 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36367 \
36368 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36369 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36370 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36371 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
36372 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36373 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36374 case $(srcdir) in \
36375 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36376 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36377 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36378 esac; \
1b6c0831
L
36379 module_srcdir=libmpx; \
36380 $(SHELL) $$s/$$module_srcdir/configure \
36381 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36382 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36383 --target=${target_alias} \
22121df0 36384 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36385 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 36386@endif target-libmpx-bootstrap
5eb08693 36387
1b6c0831
L
36388.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
36389maybe-configure-stageprofile-target-libmpx:
36390@if target-libmpx-bootstrap
36391maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
36392configure-stageprofile-target-libmpx:
5eb08693 36393 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 36394 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36395 @r=`${PWD_COMMAND}`; export r; \
36396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36397 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 36398 echo "Checking multilib configuration for libmpx..."; \
22121df0 36399 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36400 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36401 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36402 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36403 else \
1b6c0831
L
36404 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36405 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36406 fi; \
36407 else \
1b6c0831 36408 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36409 fi; \
1b6c0831
L
36410 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36411 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36412 \
36413 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36414 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36415 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36416 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
36417 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36418 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36419 case $(srcdir) in \
36420 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36421 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36422 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36423 esac; \
1b6c0831
L
36424 module_srcdir=libmpx; \
36425 $(SHELL) $$s/$$module_srcdir/configure \
36426 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36427 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36428 --target=${target_alias} \
22121df0 36429 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36430 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 36431@endif target-libmpx-bootstrap
5eb08693 36432
1b6c0831
L
36433.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
36434maybe-configure-stagefeedback-target-libmpx:
36435@if target-libmpx-bootstrap
36436maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
36437configure-stagefeedback-target-libmpx:
5eb08693 36438 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 36439 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
36440 @r=`${PWD_COMMAND}`; export r; \
36441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36442 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 36443 echo "Checking multilib configuration for libmpx..."; \
22121df0 36444 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
36445 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36446 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
36447 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 36448 else \
1b6c0831
L
36449 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
36450 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
36451 fi; \
36452 else \
1b6c0831 36453 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 36454 fi; \
1b6c0831
L
36455 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
36456 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
36457 \
36458 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36459 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36460 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36461 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
36462 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 36463 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
36464 case $(srcdir) in \
36465 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 36466 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
36467 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36468 esac; \
1b6c0831
L
36469 module_srcdir=libmpx; \
36470 $(SHELL) $$s/$$module_srcdir/configure \
36471 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 36472 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 36473 --target=${target_alias} \
22121df0 36474 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 36475 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 36476@endif target-libmpx-bootstrap
5eb08693
L
36477
36478
36479
5286fdef
L
36480
36481
1b6c0831
L
36482.PHONY: all-target-libmpx maybe-all-target-libmpx
36483maybe-all-target-libmpx:
5286fdef 36484@if gcc-bootstrap
1b6c0831 36485all-target-libmpx: stage_current
5286fdef 36486@endif gcc-bootstrap
1b6c0831
L
36487@if target-libmpx
36488TARGET-target-libmpx=all
36489maybe-all-target-libmpx: all-target-libmpx
36490all-target-libmpx: configure-target-libmpx
5286fdef
L
36491 @r=`${PWD_COMMAND}`; export r; \
36492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36493 $(NORMAL_TARGET_EXPORTS) \
36494 (cd $(TARGET_SUBDIR)/libmpx && \
36495 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
36496 $(TARGET-target-libmpx))
36497@endif target-libmpx
5286fdef
L
36498
36499
36500
1b6c0831
L
36501.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
36502.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
36503maybe-all-stage1-target-libmpx:
36504maybe-clean-stage1-target-libmpx:
36505@if target-libmpx-bootstrap
36506maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
36507all-stage1: all-stage1-target-libmpx
36508TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
36509all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
36510 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36511 @r=`${PWD_COMMAND}`; export r; \
36512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36513 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
36514 $(NORMAL_TARGET_EXPORTS) \
36515 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36516 \
5eb08693
L
36517 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36518 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36519 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36520 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36521 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36522 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36523 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36524 $(EXTRA_TARGET_FLAGS) \
5eb08693 36525 \
05a13254 36526 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 36527 $(TARGET-stage1-target-libmpx)
5eb08693 36528
1b6c0831
L
36529maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
36530clean-stage1: clean-stage1-target-libmpx
36531clean-stage1-target-libmpx:
5eb08693 36532 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 36533 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36534 else \
1b6c0831 36535 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
36536 $(MAKE) stage1-start; \
36537 fi; \
1b6c0831
L
36538 cd $(TARGET_SUBDIR)/libmpx && \
36539 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 36540 clean
1b6c0831
L
36541@endif target-libmpx-bootstrap
36542
36543
36544.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
36545.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
36546maybe-all-stage2-target-libmpx:
36547maybe-clean-stage2-target-libmpx:
36548@if target-libmpx-bootstrap
36549maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
36550all-stage2: all-stage2-target-libmpx
36551TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
36552all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
36553 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36554 @r=`${PWD_COMMAND}`; export r; \
36555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36556 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 36557 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36558 \
1b6c0831 36559 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36560 \
5eb08693
L
36561 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36562 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36563 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36564 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36565 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36566 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36567 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36568 $(EXTRA_TARGET_FLAGS) \
05a13254 36569 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 36570 $(TARGET-stage2-target-libmpx)
5eb08693 36571
1b6c0831
L
36572maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
36573clean-stage2: clean-stage2-target-libmpx
36574clean-stage2-target-libmpx:
5eb08693 36575 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 36576 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36577 else \
1b6c0831 36578 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
36579 $(MAKE) stage2-start; \
36580 fi; \
1b6c0831
L
36581 cd $(TARGET_SUBDIR)/libmpx && \
36582 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36583@endif target-libmpx-bootstrap
36584
36585
36586.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
36587.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
36588maybe-all-stage3-target-libmpx:
36589maybe-clean-stage3-target-libmpx:
36590@if target-libmpx-bootstrap
36591maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
36592all-stage3: all-stage3-target-libmpx
36593TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
36594all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
36595 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36596 @r=`${PWD_COMMAND}`; export r; \
36597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36598 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 36599 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36600 \
1b6c0831 36601 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36602 \
5eb08693
L
36603 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36604 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36605 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36606 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36607 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36608 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36609 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36610 $(EXTRA_TARGET_FLAGS) \
05a13254 36611 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 36612 $(TARGET-stage3-target-libmpx)
5eb08693 36613
1b6c0831
L
36614maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
36615clean-stage3: clean-stage3-target-libmpx
36616clean-stage3-target-libmpx:
5eb08693 36617 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 36618 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36619 else \
1b6c0831 36620 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
36621 $(MAKE) stage3-start; \
36622 fi; \
1b6c0831
L
36623 cd $(TARGET_SUBDIR)/libmpx && \
36624 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36625@endif target-libmpx-bootstrap
36626
36627
36628.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
36629.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
36630maybe-all-stage4-target-libmpx:
36631maybe-clean-stage4-target-libmpx:
36632@if target-libmpx-bootstrap
36633maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
36634all-stage4: all-stage4-target-libmpx
36635TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
36636all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
36637 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36638 @r=`${PWD_COMMAND}`; export r; \
36639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36640 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 36641 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36642 \
1b6c0831 36643 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36644 \
5eb08693
L
36645 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36646 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36647 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36648 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36649 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36650 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36651 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36652 $(EXTRA_TARGET_FLAGS) \
05a13254 36653 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 36654 $(TARGET-stage4-target-libmpx)
5eb08693 36655
1b6c0831
L
36656maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
36657clean-stage4: clean-stage4-target-libmpx
36658clean-stage4-target-libmpx:
5eb08693 36659 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 36660 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36661 else \
1b6c0831 36662 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
36663 $(MAKE) stage4-start; \
36664 fi; \
1b6c0831
L
36665 cd $(TARGET_SUBDIR)/libmpx && \
36666 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36667@endif target-libmpx-bootstrap
36668
36669
36670.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
36671.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
36672maybe-all-stageprofile-target-libmpx:
36673maybe-clean-stageprofile-target-libmpx:
36674@if target-libmpx-bootstrap
36675maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
36676all-stageprofile: all-stageprofile-target-libmpx
36677TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
36678all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
36679 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36680 @r=`${PWD_COMMAND}`; export r; \
36681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36682 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 36683 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36684 \
1b6c0831 36685 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36686 \
5eb08693
L
36687 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36688 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36689 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36690 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36691 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36692 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36693 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36694 $(EXTRA_TARGET_FLAGS) \
05a13254 36695 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 36696 $(TARGET-stageprofile-target-libmpx)
5eb08693 36697
1b6c0831
L
36698maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
36699clean-stageprofile: clean-stageprofile-target-libmpx
36700clean-stageprofile-target-libmpx:
5eb08693 36701 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 36702 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36703 else \
1b6c0831 36704 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
36705 $(MAKE) stageprofile-start; \
36706 fi; \
1b6c0831
L
36707 cd $(TARGET_SUBDIR)/libmpx && \
36708 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36709@endif target-libmpx-bootstrap
36710
36711
36712.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
36713.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
36714maybe-all-stagefeedback-target-libmpx:
36715maybe-clean-stagefeedback-target-libmpx:
36716@if target-libmpx-bootstrap
36717maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
36718all-stagefeedback: all-stagefeedback-target-libmpx
36719TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
36720all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
36721 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36722 @r=`${PWD_COMMAND}`; export r; \
36723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36724 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 36725 $(NORMAL_TARGET_EXPORTS) \
5eb08693 36726 \
1b6c0831 36727 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 36728 \
5eb08693
L
36729 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36730 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36731 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36732 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36733 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36734 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36735 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 36736 $(EXTRA_TARGET_FLAGS) \
05a13254 36737 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 36738 $(TARGET-stagefeedback-target-libmpx)
5eb08693 36739
1b6c0831
L
36740maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
36741clean-stagefeedback: clean-stagefeedback-target-libmpx
36742clean-stagefeedback-target-libmpx:
5eb08693 36743 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 36744 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 36745 else \
1b6c0831 36746 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
36747 $(MAKE) stagefeedback-start; \
36748 fi; \
1b6c0831
L
36749 cd $(TARGET_SUBDIR)/libmpx && \
36750 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
36751@endif target-libmpx-bootstrap
5eb08693
L
36752
36753
36754
36755
5286fdef
L
36756
36757
1b6c0831
L
36758.PHONY: check-target-libmpx maybe-check-target-libmpx
36759maybe-check-target-libmpx:
36760@if target-libmpx
36761maybe-check-target-libmpx: check-target-libmpx
5286fdef 36762
1b6c0831 36763check-target-libmpx:
5286fdef
L
36764 @: $(MAKE); $(unstage)
36765 @r=`${PWD_COMMAND}`; export r; \
36766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36767 $(NORMAL_TARGET_EXPORTS) \
36768 (cd $(TARGET_SUBDIR)/libmpx && \
36769 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 36770
1b6c0831 36771@endif target-libmpx
5286fdef 36772
1b6c0831
L
36773.PHONY: install-target-libmpx maybe-install-target-libmpx
36774maybe-install-target-libmpx:
36775@if target-libmpx
36776maybe-install-target-libmpx: install-target-libmpx
5286fdef 36777
1b6c0831 36778install-target-libmpx: installdirs
5286fdef
L
36779 @: $(MAKE); $(unstage)
36780 @r=`${PWD_COMMAND}`; export r; \
36781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36782 $(NORMAL_TARGET_EXPORTS) \
36783 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36784 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
36785
1b6c0831 36786@endif target-libmpx
5286fdef 36787
1b6c0831
L
36788.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
36789maybe-install-strip-target-libmpx:
36790@if target-libmpx
36791maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 36792
1b6c0831 36793install-strip-target-libmpx: installdirs
5286fdef
L
36794 @: $(MAKE); $(unstage)
36795 @r=`${PWD_COMMAND}`; export r; \
36796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
36797 $(NORMAL_TARGET_EXPORTS) \
36798 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36799 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36800
1b6c0831 36801@endif target-libmpx
5286fdef
L
36802
36803# Other targets (info, dvi, pdf, etc.)
36804
1b6c0831
L
36805.PHONY: maybe-info-target-libmpx info-target-libmpx
36806maybe-info-target-libmpx:
36807@if target-libmpx
36808maybe-info-target-libmpx: info-target-libmpx
5286fdef 36809
1b6c0831
L
36810info-target-libmpx: \
36811 configure-target-libmpx
5286fdef 36812 @: $(MAKE); $(unstage)
22121df0 36813 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36814 r=`${PWD_COMMAND}`; export r; \
36815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36816 $(NORMAL_TARGET_EXPORTS) \
22121df0 36817 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36818 for flag in $(EXTRA_TARGET_FLAGS); do \
36819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36820 done; \
1b6c0831 36821 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36824 "RANLIB=$${RANLIB}" \
36825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36826 info) \
36827 || exit 1
36828
1b6c0831 36829@endif target-libmpx
5286fdef 36830
1b6c0831
L
36831.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
36832maybe-dvi-target-libmpx:
36833@if target-libmpx
36834maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 36835
1b6c0831
L
36836dvi-target-libmpx: \
36837 configure-target-libmpx
5286fdef 36838 @: $(MAKE); $(unstage)
22121df0 36839 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36840 r=`${PWD_COMMAND}`; export r; \
36841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36842 $(NORMAL_TARGET_EXPORTS) \
22121df0 36843 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36844 for flag in $(EXTRA_TARGET_FLAGS); do \
36845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36846 done; \
1b6c0831 36847 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36850 "RANLIB=$${RANLIB}" \
36851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36852 dvi) \
36853 || exit 1
36854
1b6c0831 36855@endif target-libmpx
5286fdef 36856
1b6c0831
L
36857.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
36858maybe-pdf-target-libmpx:
36859@if target-libmpx
36860maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 36861
1b6c0831
L
36862pdf-target-libmpx: \
36863 configure-target-libmpx
5286fdef 36864 @: $(MAKE); $(unstage)
22121df0 36865 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36866 r=`${PWD_COMMAND}`; export r; \
36867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36868 $(NORMAL_TARGET_EXPORTS) \
22121df0 36869 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36870 for flag in $(EXTRA_TARGET_FLAGS); do \
36871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36872 done; \
1b6c0831 36873 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36876 "RANLIB=$${RANLIB}" \
36877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36878 pdf) \
36879 || exit 1
36880
1b6c0831 36881@endif target-libmpx
5286fdef 36882
1b6c0831
L
36883.PHONY: maybe-html-target-libmpx html-target-libmpx
36884maybe-html-target-libmpx:
36885@if target-libmpx
36886maybe-html-target-libmpx: html-target-libmpx
5286fdef 36887
1b6c0831
L
36888html-target-libmpx: \
36889 configure-target-libmpx
5286fdef 36890 @: $(MAKE); $(unstage)
22121df0 36891 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36892 r=`${PWD_COMMAND}`; export r; \
36893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36894 $(NORMAL_TARGET_EXPORTS) \
22121df0 36895 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36896 for flag in $(EXTRA_TARGET_FLAGS); do \
36897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36898 done; \
1b6c0831 36899 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36902 "RANLIB=$${RANLIB}" \
36903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36904 html) \
36905 || exit 1
36906
1b6c0831 36907@endif target-libmpx
5286fdef 36908
1b6c0831
L
36909.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
36910maybe-TAGS-target-libmpx:
36911@if target-libmpx
36912maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 36913
1b6c0831
L
36914TAGS-target-libmpx: \
36915 configure-target-libmpx
5286fdef 36916 @: $(MAKE); $(unstage)
22121df0 36917 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36918 r=`${PWD_COMMAND}`; export r; \
36919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36920 $(NORMAL_TARGET_EXPORTS) \
22121df0 36921 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36922 for flag in $(EXTRA_TARGET_FLAGS); do \
36923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36924 done; \
1b6c0831 36925 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36928 "RANLIB=$${RANLIB}" \
36929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36930 TAGS) \
36931 || exit 1
36932
1b6c0831 36933@endif target-libmpx
5286fdef 36934
1b6c0831
L
36935.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
36936maybe-install-info-target-libmpx:
36937@if target-libmpx
36938maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 36939
1b6c0831
L
36940install-info-target-libmpx: \
36941 configure-target-libmpx \
36942 info-target-libmpx
5286fdef 36943 @: $(MAKE); $(unstage)
22121df0 36944 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36945 r=`${PWD_COMMAND}`; export r; \
36946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36947 $(NORMAL_TARGET_EXPORTS) \
22121df0 36948 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36949 for flag in $(EXTRA_TARGET_FLAGS); do \
36950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36951 done; \
1b6c0831 36952 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36955 "RANLIB=$${RANLIB}" \
36956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36957 install-info) \
36958 || exit 1
36959
1b6c0831 36960@endif target-libmpx
5286fdef 36961
1b6c0831
L
36962.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
36963maybe-install-pdf-target-libmpx:
36964@if target-libmpx
36965maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 36966
1b6c0831
L
36967install-pdf-target-libmpx: \
36968 configure-target-libmpx \
36969 pdf-target-libmpx
5286fdef 36970 @: $(MAKE); $(unstage)
22121df0 36971 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36972 r=`${PWD_COMMAND}`; export r; \
36973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 36974 $(NORMAL_TARGET_EXPORTS) \
22121df0 36975 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
36976 for flag in $(EXTRA_TARGET_FLAGS); do \
36977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36978 done; \
1b6c0831 36979 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
36980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36982 "RANLIB=$${RANLIB}" \
36983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36984 install-pdf) \
36985 || exit 1
36986
1b6c0831 36987@endif target-libmpx
5286fdef 36988
1b6c0831
L
36989.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
36990maybe-install-html-target-libmpx:
36991@if target-libmpx
36992maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 36993
1b6c0831
L
36994install-html-target-libmpx: \
36995 configure-target-libmpx \
36996 html-target-libmpx
5286fdef 36997 @: $(MAKE); $(unstage)
22121df0 36998 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
36999 r=`${PWD_COMMAND}`; export r; \
37000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37001 $(NORMAL_TARGET_EXPORTS) \
22121df0 37002 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37003 for flag in $(EXTRA_TARGET_FLAGS); do \
37004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37005 done; \
1b6c0831 37006 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37009 "RANLIB=$${RANLIB}" \
37010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37011 install-html) \
37012 || exit 1
37013
1b6c0831 37014@endif target-libmpx
5286fdef 37015
1b6c0831
L
37016.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
37017maybe-installcheck-target-libmpx:
37018@if target-libmpx
37019maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 37020
1b6c0831
L
37021installcheck-target-libmpx: \
37022 configure-target-libmpx
5286fdef 37023 @: $(MAKE); $(unstage)
22121df0 37024 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37025 r=`${PWD_COMMAND}`; export r; \
37026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37027 $(NORMAL_TARGET_EXPORTS) \
22121df0 37028 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37029 for flag in $(EXTRA_TARGET_FLAGS); do \
37030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37031 done; \
1b6c0831 37032 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37035 "RANLIB=$${RANLIB}" \
37036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37037 installcheck) \
37038 || exit 1
37039
1b6c0831 37040@endif target-libmpx
5286fdef 37041
1b6c0831
L
37042.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
37043maybe-mostlyclean-target-libmpx:
37044@if target-libmpx
37045maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 37046
1b6c0831 37047mostlyclean-target-libmpx:
5286fdef 37048 @: $(MAKE); $(unstage)
22121df0 37049 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37050 r=`${PWD_COMMAND}`; export r; \
37051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37052 $(NORMAL_TARGET_EXPORTS) \
22121df0 37053 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37054 for flag in $(EXTRA_TARGET_FLAGS); do \
37055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37056 done; \
1b6c0831 37057 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37060 "RANLIB=$${RANLIB}" \
37061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37062 mostlyclean) \
37063 || exit 1
37064
1b6c0831 37065@endif target-libmpx
5286fdef 37066
1b6c0831
L
37067.PHONY: maybe-clean-target-libmpx clean-target-libmpx
37068maybe-clean-target-libmpx:
37069@if target-libmpx
37070maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 37071
1b6c0831 37072clean-target-libmpx:
5286fdef 37073 @: $(MAKE); $(unstage)
22121df0 37074 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37075 r=`${PWD_COMMAND}`; export r; \
37076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37077 $(NORMAL_TARGET_EXPORTS) \
22121df0 37078 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37079 for flag in $(EXTRA_TARGET_FLAGS); do \
37080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37081 done; \
1b6c0831 37082 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37085 "RANLIB=$${RANLIB}" \
37086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37087 clean) \
37088 || exit 1
37089
1b6c0831 37090@endif target-libmpx
5286fdef 37091
1b6c0831
L
37092.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
37093maybe-distclean-target-libmpx:
37094@if target-libmpx
37095maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 37096
1b6c0831 37097distclean-target-libmpx:
5286fdef 37098 @: $(MAKE); $(unstage)
22121df0 37099 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37100 r=`${PWD_COMMAND}`; export r; \
37101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37102 $(NORMAL_TARGET_EXPORTS) \
22121df0 37103 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37104 for flag in $(EXTRA_TARGET_FLAGS); do \
37105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37106 done; \
1b6c0831 37107 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37110 "RANLIB=$${RANLIB}" \
37111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37112 distclean) \
37113 || exit 1
37114
1b6c0831 37115@endif target-libmpx
5286fdef 37116
1b6c0831
L
37117.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
37118maybe-maintainer-clean-target-libmpx:
37119@if target-libmpx
37120maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 37121
1b6c0831 37122maintainer-clean-target-libmpx:
5286fdef 37123 @: $(MAKE); $(unstage)
22121df0 37124 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37125 r=`${PWD_COMMAND}`; export r; \
37126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37127 $(NORMAL_TARGET_EXPORTS) \
22121df0 37128 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37129 for flag in $(EXTRA_TARGET_FLAGS); do \
37130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37131 done; \
1b6c0831 37132 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37135 "RANLIB=$${RANLIB}" \
37136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37137 maintainer-clean) \
37138 || exit 1
37139
1b6c0831 37140@endif target-libmpx
5286fdef
L
37141
37142
37143
37144
37145
95e43135
JBG
37146.PHONY: configure-target-libvtv maybe-configure-target-libvtv
37147maybe-configure-target-libvtv:
37148@if gcc-bootstrap
37149configure-target-libvtv: stage_current
37150@endif gcc-bootstrap
37151@if target-libvtv
37152maybe-configure-target-libvtv: configure-target-libvtv
37153configure-target-libvtv:
37154 @r=`${PWD_COMMAND}`; export r; \
37155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37156 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
37157 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
37158 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37159 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37160 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37161 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37162 else \
37163 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37164 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37165 fi; \
37166 else \
37167 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37168 fi; \
37169 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 37170 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37171 $(RAW_CXX_TARGET_EXPORTS) \
37172 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
37173 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
37174 case $(srcdir) in \
37175 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37176 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37177 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37178 esac; \
1b6c0831 37179 module_srcdir=libvtv; \
95e43135 37180 rm -f no-such-file || : ; \
1b6c0831
L
37181 CONFIG_SITE=no-such-file $(SHELL) \
37182 $$s/$$module_srcdir/configure \
37183 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37184 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37185 --target=${target_alias} \
95e43135
JBG
37186 || exit 1
37187@endif target-libvtv
37188
37189
37190
37191.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
37192maybe-configure-stage1-target-libvtv:
37193@if target-libvtv-bootstrap
37194maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
37195configure-stage1-target-libvtv:
37196 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37197 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37198 @r=`${PWD_COMMAND}`; export r; \
37199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37200 TFLAGS="$(STAGE1_TFLAGS)"; \
37201 echo "Checking multilib configuration for libvtv..."; \
22121df0 37202 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37203 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37204 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37205 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37206 else \
37207 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37208 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37209 fi; \
37210 else \
37211 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37212 fi; \
37213 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37214 $(RAW_CXX_TARGET_EXPORTS) \
37215 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37216 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37217 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37218 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
37219 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37220 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37221 case $(srcdir) in \
37222 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37223 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37224 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37225 esac; \
1b6c0831
L
37226 module_srcdir=libvtv; \
37227 $(SHELL) $$s/$$module_srcdir/configure \
37228 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37229 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
37230 --target=${target_alias} \
37231 \
95e43135
JBG
37232 $(STAGE1_CONFIGURE_FLAGS)
37233@endif target-libvtv-bootstrap
37234
37235.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
37236maybe-configure-stage2-target-libvtv:
37237@if target-libvtv-bootstrap
37238maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
37239configure-stage2-target-libvtv:
37240 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37241 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37242 @r=`${PWD_COMMAND}`; export r; \
37243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37244 TFLAGS="$(STAGE2_TFLAGS)"; \
37245 echo "Checking multilib configuration for libvtv..."; \
22121df0 37246 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37247 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37248 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37249 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37250 else \
37251 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37252 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37253 fi; \
37254 else \
37255 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37256 fi; \
37257 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37258 $(RAW_CXX_TARGET_EXPORTS) \
37259 \
37260 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37261 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37262 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37263 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
37264 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37265 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37266 case $(srcdir) in \
37267 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37268 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37269 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37270 esac; \
1b6c0831
L
37271 module_srcdir=libvtv; \
37272 $(SHELL) $$s/$$module_srcdir/configure \
37273 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37274 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37275 --target=${target_alias} \
22121df0 37276 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37277 $(STAGE2_CONFIGURE_FLAGS)
37278@endif target-libvtv-bootstrap
37279
37280.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
37281maybe-configure-stage3-target-libvtv:
37282@if target-libvtv-bootstrap
37283maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
37284configure-stage3-target-libvtv:
37285 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37286 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37287 @r=`${PWD_COMMAND}`; export r; \
37288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37289 TFLAGS="$(STAGE3_TFLAGS)"; \
37290 echo "Checking multilib configuration for libvtv..."; \
22121df0 37291 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37292 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37293 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37294 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37295 else \
37296 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37297 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37298 fi; \
37299 else \
37300 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37301 fi; \
37302 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37303 $(RAW_CXX_TARGET_EXPORTS) \
37304 \
37305 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37306 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37307 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37308 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
37309 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37310 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37311 case $(srcdir) in \
37312 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37313 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37314 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37315 esac; \
1b6c0831
L
37316 module_srcdir=libvtv; \
37317 $(SHELL) $$s/$$module_srcdir/configure \
37318 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37319 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37320 --target=${target_alias} \
22121df0 37321 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37322 $(STAGE3_CONFIGURE_FLAGS)
37323@endif target-libvtv-bootstrap
37324
37325.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
37326maybe-configure-stage4-target-libvtv:
37327@if target-libvtv-bootstrap
37328maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
37329configure-stage4-target-libvtv:
37330 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37331 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37332 @r=`${PWD_COMMAND}`; export r; \
37333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37334 TFLAGS="$(STAGE4_TFLAGS)"; \
37335 echo "Checking multilib configuration for libvtv..."; \
22121df0 37336 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37337 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37338 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37339 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37340 else \
37341 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37342 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37343 fi; \
37344 else \
37345 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37346 fi; \
37347 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37348 $(RAW_CXX_TARGET_EXPORTS) \
37349 \
37350 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37351 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37352 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37353 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
37354 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37355 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37356 case $(srcdir) in \
37357 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37358 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37359 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37360 esac; \
1b6c0831
L
37361 module_srcdir=libvtv; \
37362 $(SHELL) $$s/$$module_srcdir/configure \
37363 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37364 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37365 --target=${target_alias} \
22121df0 37366 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37367 $(STAGE4_CONFIGURE_FLAGS)
37368@endif target-libvtv-bootstrap
37369
37370.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
37371maybe-configure-stageprofile-target-libvtv:
37372@if target-libvtv-bootstrap
37373maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
37374configure-stageprofile-target-libvtv:
37375 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37376 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37377 @r=`${PWD_COMMAND}`; export r; \
37378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37379 TFLAGS="$(STAGEprofile_TFLAGS)"; \
37380 echo "Checking multilib configuration for libvtv..."; \
22121df0 37381 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37382 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37383 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37384 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37385 else \
37386 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37387 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37388 fi; \
37389 else \
37390 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37391 fi; \
37392 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37393 $(RAW_CXX_TARGET_EXPORTS) \
37394 \
37395 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37396 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37397 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37398 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
37399 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37400 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37401 case $(srcdir) in \
37402 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37403 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37404 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37405 esac; \
1b6c0831
L
37406 module_srcdir=libvtv; \
37407 $(SHELL) $$s/$$module_srcdir/configure \
37408 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37409 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37410 --target=${target_alias} \
22121df0 37411 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37412 $(STAGEprofile_CONFIGURE_FLAGS)
37413@endif target-libvtv-bootstrap
37414
37415.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
37416maybe-configure-stagefeedback-target-libvtv:
37417@if target-libvtv-bootstrap
37418maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
37419configure-stagefeedback-target-libvtv:
37420 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37421 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
37422 @r=`${PWD_COMMAND}`; export r; \
37423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37424 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
37425 echo "Checking multilib configuration for libvtv..."; \
22121df0 37426 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
37427 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37428 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
37429 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
37430 else \
37431 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
37432 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37433 fi; \
37434 else \
37435 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
37436 fi; \
37437 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
37438 $(RAW_CXX_TARGET_EXPORTS) \
37439 \
37440 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37441 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37442 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37443 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
37444 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
37445 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
37446 case $(srcdir) in \
37447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37448 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
37449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37450 esac; \
1b6c0831
L
37451 module_srcdir=libvtv; \
37452 $(SHELL) $$s/$$module_srcdir/configure \
37453 --srcdir=$${topdir}/$$module_srcdir \
95e43135 37454 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37455 --target=${target_alias} \
22121df0 37456 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
37457 $(STAGEfeedback_CONFIGURE_FLAGS)
37458@endif target-libvtv-bootstrap
37459
37460
37461
37462
37463
37464.PHONY: all-target-libvtv maybe-all-target-libvtv
37465maybe-all-target-libvtv:
37466@if gcc-bootstrap
37467all-target-libvtv: stage_current
37468@endif gcc-bootstrap
37469@if target-libvtv
37470TARGET-target-libvtv=all
37471maybe-all-target-libvtv: all-target-libvtv
37472all-target-libvtv: configure-target-libvtv
37473 @r=`${PWD_COMMAND}`; export r; \
37474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37475 $(RAW_CXX_TARGET_EXPORTS) \
37476 (cd $(TARGET_SUBDIR)/libvtv && \
37477 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37478 $(TARGET-target-libvtv))
37479@endif target-libvtv
37480
37481
37482
37483.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
37484.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
37485maybe-all-stage1-target-libvtv:
37486maybe-clean-stage1-target-libvtv:
37487@if target-libvtv-bootstrap
37488maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
37489all-stage1: all-stage1-target-libvtv
37490TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
37491all-stage1-target-libvtv: configure-stage1-target-libvtv
37492 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37493 @r=`${PWD_COMMAND}`; export r; \
37494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37495 TFLAGS="$(STAGE1_TFLAGS)"; \
37496 $(RAW_CXX_TARGET_EXPORTS) \
37497 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37498 \
95e43135
JBG
37499 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37500 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37501 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37502 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37503 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37504 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37505 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37506 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37507 \
05a13254 37508 TFLAGS="$(STAGE1_TFLAGS)" \
95e43135
JBG
37509 $(TARGET-stage1-target-libvtv)
37510
37511maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
37512clean-stage1: clean-stage1-target-libvtv
37513clean-stage1-target-libvtv:
37514 @if [ $(current_stage) = stage1 ]; then \
37515 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37516 else \
37517 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
37518 $(MAKE) stage1-start; \
37519 fi; \
37520 cd $(TARGET_SUBDIR)/libvtv && \
37521 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
37522 clean
37523@endif target-libvtv-bootstrap
37524
37525
37526.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
37527.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
37528maybe-all-stage2-target-libvtv:
37529maybe-clean-stage2-target-libvtv:
37530@if target-libvtv-bootstrap
37531maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
37532all-stage2: all-stage2-target-libvtv
37533TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
37534all-stage2-target-libvtv: configure-stage2-target-libvtv
37535 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37536 @r=`${PWD_COMMAND}`; export r; \
37537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37538 TFLAGS="$(STAGE2_TFLAGS)"; \
37539 $(RAW_CXX_TARGET_EXPORTS) \
37540 \
37541 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37542 \
95e43135
JBG
37543 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37544 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37545 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37546 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37547 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37548 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37549 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37550 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37551 TFLAGS="$(STAGE2_TFLAGS)" \
95e43135
JBG
37552 $(TARGET-stage2-target-libvtv)
37553
37554maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
37555clean-stage2: clean-stage2-target-libvtv
37556clean-stage2-target-libvtv:
37557 @if [ $(current_stage) = stage2 ]; then \
37558 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37559 else \
37560 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
37561 $(MAKE) stage2-start; \
37562 fi; \
37563 cd $(TARGET_SUBDIR)/libvtv && \
37564 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37565@endif target-libvtv-bootstrap
37566
37567
37568.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
37569.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
37570maybe-all-stage3-target-libvtv:
37571maybe-clean-stage3-target-libvtv:
37572@if target-libvtv-bootstrap
37573maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
37574all-stage3: all-stage3-target-libvtv
37575TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
37576all-stage3-target-libvtv: configure-stage3-target-libvtv
37577 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37578 @r=`${PWD_COMMAND}`; export r; \
37579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37580 TFLAGS="$(STAGE3_TFLAGS)"; \
37581 $(RAW_CXX_TARGET_EXPORTS) \
37582 \
37583 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37584 \
95e43135
JBG
37585 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37586 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37587 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37588 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37589 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37590 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37591 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37592 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37593 TFLAGS="$(STAGE3_TFLAGS)" \
95e43135
JBG
37594 $(TARGET-stage3-target-libvtv)
37595
37596maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
37597clean-stage3: clean-stage3-target-libvtv
37598clean-stage3-target-libvtv:
37599 @if [ $(current_stage) = stage3 ]; then \
37600 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37601 else \
37602 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
37603 $(MAKE) stage3-start; \
37604 fi; \
37605 cd $(TARGET_SUBDIR)/libvtv && \
37606 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37607@endif target-libvtv-bootstrap
37608
37609
37610.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
37611.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
37612maybe-all-stage4-target-libvtv:
37613maybe-clean-stage4-target-libvtv:
37614@if target-libvtv-bootstrap
37615maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
37616all-stage4: all-stage4-target-libvtv
37617TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
37618all-stage4-target-libvtv: configure-stage4-target-libvtv
37619 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37620 @r=`${PWD_COMMAND}`; export r; \
37621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37622 TFLAGS="$(STAGE4_TFLAGS)"; \
37623 $(RAW_CXX_TARGET_EXPORTS) \
37624 \
37625 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37626 \
95e43135
JBG
37627 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37628 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37629 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37630 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37631 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37632 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37633 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37634 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37635 TFLAGS="$(STAGE4_TFLAGS)" \
95e43135
JBG
37636 $(TARGET-stage4-target-libvtv)
37637
37638maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
37639clean-stage4: clean-stage4-target-libvtv
37640clean-stage4-target-libvtv:
37641 @if [ $(current_stage) = stage4 ]; then \
37642 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37643 else \
37644 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
37645 $(MAKE) stage4-start; \
37646 fi; \
37647 cd $(TARGET_SUBDIR)/libvtv && \
37648 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37649@endif target-libvtv-bootstrap
37650
37651
37652.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
37653.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
37654maybe-all-stageprofile-target-libvtv:
37655maybe-clean-stageprofile-target-libvtv:
37656@if target-libvtv-bootstrap
37657maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
37658all-stageprofile: all-stageprofile-target-libvtv
37659TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
37660all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
37661 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37662 @r=`${PWD_COMMAND}`; export r; \
37663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37664 TFLAGS="$(STAGEprofile_TFLAGS)"; \
37665 $(RAW_CXX_TARGET_EXPORTS) \
37666 \
37667 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37668 \
95e43135
JBG
37669 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37670 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37671 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37672 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37673 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37674 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37675 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37676 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37677 TFLAGS="$(STAGEprofile_TFLAGS)" \
95e43135
JBG
37678 $(TARGET-stageprofile-target-libvtv)
37679
37680maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
37681clean-stageprofile: clean-stageprofile-target-libvtv
37682clean-stageprofile-target-libvtv:
37683 @if [ $(current_stage) = stageprofile ]; then \
37684 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37685 else \
37686 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
37687 $(MAKE) stageprofile-start; \
37688 fi; \
37689 cd $(TARGET_SUBDIR)/libvtv && \
37690 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37691@endif target-libvtv-bootstrap
37692
37693
37694.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
37695.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
37696maybe-all-stagefeedback-target-libvtv:
37697maybe-clean-stagefeedback-target-libvtv:
37698@if target-libvtv-bootstrap
37699maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
37700all-stagefeedback: all-stagefeedback-target-libvtv
37701TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
37702all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
37703 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37704 @r=`${PWD_COMMAND}`; export r; \
37705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37706 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
37707 $(RAW_CXX_TARGET_EXPORTS) \
37708 \
37709 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 37710 \
95e43135
JBG
37711 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37712 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37713 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37714 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37715 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37716 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37717 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
37718 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 37719 TFLAGS="$(STAGEfeedback_TFLAGS)" \
95e43135
JBG
37720 $(TARGET-stagefeedback-target-libvtv)
37721
37722maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
37723clean-stagefeedback: clean-stagefeedback-target-libvtv
37724clean-stagefeedback-target-libvtv:
37725 @if [ $(current_stage) = stagefeedback ]; then \
37726 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
37727 else \
37728 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
37729 $(MAKE) stagefeedback-start; \
37730 fi; \
37731 cd $(TARGET_SUBDIR)/libvtv && \
37732 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
37733@endif target-libvtv-bootstrap
37734
37735
37736
37737
37738
37739
37740.PHONY: check-target-libvtv maybe-check-target-libvtv
37741maybe-check-target-libvtv:
37742@if target-libvtv
37743maybe-check-target-libvtv: check-target-libvtv
37744
37745check-target-libvtv:
37746 @: $(MAKE); $(unstage)
37747 @r=`${PWD_COMMAND}`; export r; \
37748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37749 $(RAW_CXX_TARGET_EXPORTS) \
37750 (cd $(TARGET_SUBDIR)/libvtv && \
37751 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
37752
37753@endif target-libvtv
37754
37755.PHONY: install-target-libvtv maybe-install-target-libvtv
37756maybe-install-target-libvtv:
37757@if target-libvtv
37758maybe-install-target-libvtv: install-target-libvtv
37759
37760install-target-libvtv: installdirs
37761 @: $(MAKE); $(unstage)
37762 @r=`${PWD_COMMAND}`; export r; \
37763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37764 $(RAW_CXX_TARGET_EXPORTS) \
37765 (cd $(TARGET_SUBDIR)/libvtv && \
37766 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37767
37768@endif target-libvtv
37769
37770.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
37771maybe-install-strip-target-libvtv:
37772@if target-libvtv
37773maybe-install-strip-target-libvtv: install-strip-target-libvtv
37774
37775install-strip-target-libvtv: installdirs
37776 @: $(MAKE); $(unstage)
37777 @r=`${PWD_COMMAND}`; export r; \
37778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37779 $(RAW_CXX_TARGET_EXPORTS) \
37780 (cd $(TARGET_SUBDIR)/libvtv && \
37781 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37782
37783@endif target-libvtv
37784
37785# Other targets (info, dvi, pdf, etc.)
37786
37787.PHONY: maybe-info-target-libvtv info-target-libvtv
37788maybe-info-target-libvtv:
37789@if target-libvtv
37790maybe-info-target-libvtv: info-target-libvtv
37791
37792info-target-libvtv: \
37793 configure-target-libvtv
37794 @: $(MAKE); $(unstage)
22121df0 37795 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37796 r=`${PWD_COMMAND}`; export r; \
37797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37798 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37799 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37800 for flag in $(EXTRA_TARGET_FLAGS); do \
37801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37802 done; \
37803 (cd $(TARGET_SUBDIR)/libvtv && \
37804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37806 "RANLIB=$${RANLIB}" \
37807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37808 info) \
37809 || exit 1
37810
37811@endif target-libvtv
37812
37813.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
37814maybe-dvi-target-libvtv:
37815@if target-libvtv
37816maybe-dvi-target-libvtv: dvi-target-libvtv
37817
37818dvi-target-libvtv: \
37819 configure-target-libvtv
37820 @: $(MAKE); $(unstage)
22121df0 37821 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37822 r=`${PWD_COMMAND}`; export r; \
37823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37824 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37825 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37826 for flag in $(EXTRA_TARGET_FLAGS); do \
37827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37828 done; \
37829 (cd $(TARGET_SUBDIR)/libvtv && \
37830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37832 "RANLIB=$${RANLIB}" \
37833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37834 dvi) \
37835 || exit 1
37836
37837@endif target-libvtv
37838
37839.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
37840maybe-pdf-target-libvtv:
37841@if target-libvtv
37842maybe-pdf-target-libvtv: pdf-target-libvtv
37843
37844pdf-target-libvtv: \
37845 configure-target-libvtv
37846 @: $(MAKE); $(unstage)
22121df0 37847 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37848 r=`${PWD_COMMAND}`; export r; \
37849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37850 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37851 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37852 for flag in $(EXTRA_TARGET_FLAGS); do \
37853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37854 done; \
37855 (cd $(TARGET_SUBDIR)/libvtv && \
37856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37858 "RANLIB=$${RANLIB}" \
37859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37860 pdf) \
37861 || exit 1
37862
37863@endif target-libvtv
37864
37865.PHONY: maybe-html-target-libvtv html-target-libvtv
37866maybe-html-target-libvtv:
37867@if target-libvtv
37868maybe-html-target-libvtv: html-target-libvtv
37869
37870html-target-libvtv: \
37871 configure-target-libvtv
37872 @: $(MAKE); $(unstage)
22121df0 37873 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37874 r=`${PWD_COMMAND}`; export r; \
37875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37876 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37877 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37878 for flag in $(EXTRA_TARGET_FLAGS); do \
37879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37880 done; \
37881 (cd $(TARGET_SUBDIR)/libvtv && \
37882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37884 "RANLIB=$${RANLIB}" \
37885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37886 html) \
37887 || exit 1
37888
37889@endif target-libvtv
37890
37891.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
37892maybe-TAGS-target-libvtv:
37893@if target-libvtv
37894maybe-TAGS-target-libvtv: TAGS-target-libvtv
37895
37896TAGS-target-libvtv: \
37897 configure-target-libvtv
37898 @: $(MAKE); $(unstage)
22121df0 37899 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37900 r=`${PWD_COMMAND}`; export r; \
37901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37902 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37903 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37904 for flag in $(EXTRA_TARGET_FLAGS); do \
37905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37906 done; \
37907 (cd $(TARGET_SUBDIR)/libvtv && \
37908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37910 "RANLIB=$${RANLIB}" \
37911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37912 TAGS) \
37913 || exit 1
37914
37915@endif target-libvtv
37916
37917.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
37918maybe-install-info-target-libvtv:
37919@if target-libvtv
37920maybe-install-info-target-libvtv: install-info-target-libvtv
37921
37922install-info-target-libvtv: \
37923 configure-target-libvtv \
37924 info-target-libvtv
37925 @: $(MAKE); $(unstage)
22121df0 37926 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37927 r=`${PWD_COMMAND}`; export r; \
37928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37929 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37930 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37931 for flag in $(EXTRA_TARGET_FLAGS); do \
37932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37933 done; \
37934 (cd $(TARGET_SUBDIR)/libvtv && \
37935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37937 "RANLIB=$${RANLIB}" \
37938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37939 install-info) \
37940 || exit 1
37941
37942@endif target-libvtv
37943
37944.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
37945maybe-install-pdf-target-libvtv:
37946@if target-libvtv
37947maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
37948
37949install-pdf-target-libvtv: \
37950 configure-target-libvtv \
37951 pdf-target-libvtv
37952 @: $(MAKE); $(unstage)
22121df0 37953 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37954 r=`${PWD_COMMAND}`; export r; \
37955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37956 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37957 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37958 for flag in $(EXTRA_TARGET_FLAGS); do \
37959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37960 done; \
37961 (cd $(TARGET_SUBDIR)/libvtv && \
37962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37964 "RANLIB=$${RANLIB}" \
37965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37966 install-pdf) \
37967 || exit 1
37968
37969@endif target-libvtv
37970
37971.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
37972maybe-install-html-target-libvtv:
37973@if target-libvtv
37974maybe-install-html-target-libvtv: install-html-target-libvtv
37975
37976install-html-target-libvtv: \
37977 configure-target-libvtv \
37978 html-target-libvtv
37979 @: $(MAKE); $(unstage)
22121df0 37980 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
37981 r=`${PWD_COMMAND}`; export r; \
37982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37983 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37984 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
37985 for flag in $(EXTRA_TARGET_FLAGS); do \
37986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37987 done; \
37988 (cd $(TARGET_SUBDIR)/libvtv && \
37989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37991 "RANLIB=$${RANLIB}" \
37992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37993 install-html) \
37994 || exit 1
37995
37996@endif target-libvtv
37997
37998.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
37999maybe-installcheck-target-libvtv:
38000@if target-libvtv
38001maybe-installcheck-target-libvtv: installcheck-target-libvtv
38002
38003installcheck-target-libvtv: \
38004 configure-target-libvtv
38005 @: $(MAKE); $(unstage)
22121df0 38006 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38007 r=`${PWD_COMMAND}`; export r; \
38008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38009 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38010 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38011 for flag in $(EXTRA_TARGET_FLAGS); do \
38012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38013 done; \
38014 (cd $(TARGET_SUBDIR)/libvtv && \
38015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38017 "RANLIB=$${RANLIB}" \
38018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38019 installcheck) \
38020 || exit 1
38021
38022@endif target-libvtv
38023
38024.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
38025maybe-mostlyclean-target-libvtv:
38026@if target-libvtv
38027maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
38028
38029mostlyclean-target-libvtv:
38030 @: $(MAKE); $(unstage)
22121df0 38031 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38032 r=`${PWD_COMMAND}`; export r; \
38033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38034 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38035 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38036 for flag in $(EXTRA_TARGET_FLAGS); do \
38037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38038 done; \
38039 (cd $(TARGET_SUBDIR)/libvtv && \
38040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38042 "RANLIB=$${RANLIB}" \
38043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38044 mostlyclean) \
38045 || exit 1
38046
38047@endif target-libvtv
38048
38049.PHONY: maybe-clean-target-libvtv clean-target-libvtv
38050maybe-clean-target-libvtv:
38051@if target-libvtv
38052maybe-clean-target-libvtv: clean-target-libvtv
38053
38054clean-target-libvtv:
38055 @: $(MAKE); $(unstage)
22121df0 38056 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38057 r=`${PWD_COMMAND}`; export r; \
38058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38059 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38060 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38061 for flag in $(EXTRA_TARGET_FLAGS); do \
38062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38063 done; \
38064 (cd $(TARGET_SUBDIR)/libvtv && \
38065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38067 "RANLIB=$${RANLIB}" \
38068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38069 clean) \
38070 || exit 1
38071
38072@endif target-libvtv
38073
38074.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
38075maybe-distclean-target-libvtv:
38076@if target-libvtv
38077maybe-distclean-target-libvtv: distclean-target-libvtv
38078
38079distclean-target-libvtv:
38080 @: $(MAKE); $(unstage)
22121df0 38081 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38082 r=`${PWD_COMMAND}`; export r; \
38083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38084 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38085 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38086 for flag in $(EXTRA_TARGET_FLAGS); do \
38087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38088 done; \
38089 (cd $(TARGET_SUBDIR)/libvtv && \
38090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38092 "RANLIB=$${RANLIB}" \
38093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38094 distclean) \
38095 || exit 1
38096
38097@endif target-libvtv
38098
38099.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
38100maybe-maintainer-clean-target-libvtv:
38101@if target-libvtv
38102maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
38103
38104maintainer-clean-target-libvtv:
38105 @: $(MAKE); $(unstage)
22121df0 38106 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38107 r=`${PWD_COMMAND}`; export r; \
38108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38109 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38110 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38111 for flag in $(EXTRA_TARGET_FLAGS); do \
38112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38113 done; \
38114 (cd $(TARGET_SUBDIR)/libvtv && \
38115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38117 "RANLIB=$${RANLIB}" \
38118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38119 maintainer-clean) \
38120 || exit 1
38121
38122@endif target-libvtv
38123
38124
38125
38126
38127
e3f56a99
NC
38128.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
38129maybe-configure-target-libcilkrts:
38130@if gcc-bootstrap
38131configure-target-libcilkrts: stage_current
38132@endif gcc-bootstrap
38133@if target-libcilkrts
38134maybe-configure-target-libcilkrts: configure-target-libcilkrts
38135configure-target-libcilkrts:
38136 @: $(MAKE); $(unstage)
38137 @r=`${PWD_COMMAND}`; export r; \
38138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38139 echo "Checking multilib configuration for libcilkrts..."; \
38140 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
38141 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
38142 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
38143 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
38144 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
38145 else \
38146 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
38147 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
38148 fi; \
38149 else \
38150 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
38151 fi; \
38152 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
38153 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
38154 $(NORMAL_TARGET_EXPORTS) \
38155 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
38156 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
38157 case $(srcdir) in \
38158 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38159 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
38160 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38161 esac; \
38162 module_srcdir=libcilkrts; \
38163 rm -f no-such-file || : ; \
38164 CONFIG_SITE=no-such-file $(SHELL) \
38165 $$s/$$module_srcdir/configure \
38166 --srcdir=$${topdir}/$$module_srcdir \
38167 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38168 --target=${target_alias} \
38169 || exit 1
38170@endif target-libcilkrts
38171
38172
38173
38174
38175
38176.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
38177maybe-all-target-libcilkrts:
38178@if gcc-bootstrap
38179all-target-libcilkrts: stage_current
38180@endif gcc-bootstrap
38181@if target-libcilkrts
38182TARGET-target-libcilkrts=all
38183maybe-all-target-libcilkrts: all-target-libcilkrts
38184all-target-libcilkrts: configure-target-libcilkrts
38185 @: $(MAKE); $(unstage)
38186 @r=`${PWD_COMMAND}`; export r; \
38187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38188 $(NORMAL_TARGET_EXPORTS) \
38189 (cd $(TARGET_SUBDIR)/libcilkrts && \
38190 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
38191 $(TARGET-target-libcilkrts))
38192@endif target-libcilkrts
38193
38194
38195
38196
38197
38198.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
38199maybe-check-target-libcilkrts:
38200@if target-libcilkrts
38201maybe-check-target-libcilkrts: check-target-libcilkrts
38202
38203check-target-libcilkrts:
38204 @: $(MAKE); $(unstage)
38205 @r=`${PWD_COMMAND}`; export r; \
38206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38207 $(NORMAL_TARGET_EXPORTS) \
38208 (cd $(TARGET_SUBDIR)/libcilkrts && \
38209 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38210
38211@endif target-libcilkrts
38212
38213.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
38214maybe-install-target-libcilkrts:
38215@if target-libcilkrts
38216maybe-install-target-libcilkrts: install-target-libcilkrts
38217
38218install-target-libcilkrts: installdirs
38219 @: $(MAKE); $(unstage)
38220 @r=`${PWD_COMMAND}`; export r; \
38221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38222 $(NORMAL_TARGET_EXPORTS) \
38223 (cd $(TARGET_SUBDIR)/libcilkrts && \
38224 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38225
38226@endif target-libcilkrts
38227
38228.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
38229maybe-install-strip-target-libcilkrts:
38230@if target-libcilkrts
38231maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
38232
38233install-strip-target-libcilkrts: installdirs
38234 @: $(MAKE); $(unstage)
38235 @r=`${PWD_COMMAND}`; export r; \
38236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38237 $(NORMAL_TARGET_EXPORTS) \
38238 (cd $(TARGET_SUBDIR)/libcilkrts && \
38239 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38240
38241@endif target-libcilkrts
38242
38243# Other targets (info, dvi, pdf, etc.)
38244
38245.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
38246maybe-info-target-libcilkrts:
38247@if target-libcilkrts
38248maybe-info-target-libcilkrts: info-target-libcilkrts
38249
38250info-target-libcilkrts: \
38251 configure-target-libcilkrts
38252 @: $(MAKE); $(unstage)
38253 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38254 r=`${PWD_COMMAND}`; export r; \
38255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38256 $(NORMAL_TARGET_EXPORTS) \
38257 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
38258 for flag in $(EXTRA_TARGET_FLAGS); do \
38259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38260 done; \
38261 (cd $(TARGET_SUBDIR)/libcilkrts && \
38262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38264 "RANLIB=$${RANLIB}" \
38265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38266 info) \
38267 || exit 1
38268
38269@endif target-libcilkrts
38270
38271.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
38272maybe-dvi-target-libcilkrts:
38273@if target-libcilkrts
38274maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
38275
38276dvi-target-libcilkrts: \
38277 configure-target-libcilkrts
38278 @: $(MAKE); $(unstage)
38279 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38280 r=`${PWD_COMMAND}`; export r; \
38281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38282 $(NORMAL_TARGET_EXPORTS) \
38283 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
38284 for flag in $(EXTRA_TARGET_FLAGS); do \
38285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38286 done; \
38287 (cd $(TARGET_SUBDIR)/libcilkrts && \
38288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38290 "RANLIB=$${RANLIB}" \
38291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38292 dvi) \
38293 || exit 1
38294
38295@endif target-libcilkrts
38296
38297.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
38298maybe-pdf-target-libcilkrts:
38299@if target-libcilkrts
38300maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
38301
38302pdf-target-libcilkrts: \
38303 configure-target-libcilkrts
38304 @: $(MAKE); $(unstage)
38305 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38306 r=`${PWD_COMMAND}`; export r; \
38307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38308 $(NORMAL_TARGET_EXPORTS) \
38309 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
38310 for flag in $(EXTRA_TARGET_FLAGS); do \
38311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38312 done; \
38313 (cd $(TARGET_SUBDIR)/libcilkrts && \
38314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38316 "RANLIB=$${RANLIB}" \
38317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38318 pdf) \
38319 || exit 1
38320
38321@endif target-libcilkrts
38322
38323.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
38324maybe-html-target-libcilkrts:
38325@if target-libcilkrts
38326maybe-html-target-libcilkrts: html-target-libcilkrts
38327
38328html-target-libcilkrts: \
38329 configure-target-libcilkrts
38330 @: $(MAKE); $(unstage)
38331 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38332 r=`${PWD_COMMAND}`; export r; \
38333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38334 $(NORMAL_TARGET_EXPORTS) \
38335 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
38336 for flag in $(EXTRA_TARGET_FLAGS); do \
38337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38338 done; \
38339 (cd $(TARGET_SUBDIR)/libcilkrts && \
38340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38342 "RANLIB=$${RANLIB}" \
38343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38344 html) \
38345 || exit 1
38346
38347@endif target-libcilkrts
38348
38349.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
38350maybe-TAGS-target-libcilkrts:
38351@if target-libcilkrts
38352maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
38353
38354TAGS-target-libcilkrts: \
38355 configure-target-libcilkrts
38356 @: $(MAKE); $(unstage)
38357 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38358 r=`${PWD_COMMAND}`; export r; \
38359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38360 $(NORMAL_TARGET_EXPORTS) \
38361 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
38362 for flag in $(EXTRA_TARGET_FLAGS); do \
38363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38364 done; \
38365 (cd $(TARGET_SUBDIR)/libcilkrts && \
38366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38368 "RANLIB=$${RANLIB}" \
38369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38370 TAGS) \
38371 || exit 1
38372
38373@endif target-libcilkrts
38374
38375.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
38376maybe-install-info-target-libcilkrts:
38377@if target-libcilkrts
38378maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
38379
38380install-info-target-libcilkrts: \
38381 configure-target-libcilkrts \
38382 info-target-libcilkrts
38383 @: $(MAKE); $(unstage)
38384 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38385 r=`${PWD_COMMAND}`; export r; \
38386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38387 $(NORMAL_TARGET_EXPORTS) \
38388 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
38389 for flag in $(EXTRA_TARGET_FLAGS); do \
38390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38391 done; \
38392 (cd $(TARGET_SUBDIR)/libcilkrts && \
38393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38395 "RANLIB=$${RANLIB}" \
38396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38397 install-info) \
38398 || exit 1
38399
38400@endif target-libcilkrts
38401
38402.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
38403maybe-install-pdf-target-libcilkrts:
38404@if target-libcilkrts
38405maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
38406
38407install-pdf-target-libcilkrts: \
38408 configure-target-libcilkrts \
38409 pdf-target-libcilkrts
38410 @: $(MAKE); $(unstage)
38411 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38412 r=`${PWD_COMMAND}`; export r; \
38413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38414 $(NORMAL_TARGET_EXPORTS) \
38415 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
38416 for flag in $(EXTRA_TARGET_FLAGS); do \
38417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38418 done; \
38419 (cd $(TARGET_SUBDIR)/libcilkrts && \
38420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38422 "RANLIB=$${RANLIB}" \
38423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38424 install-pdf) \
38425 || exit 1
38426
38427@endif target-libcilkrts
38428
38429.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
38430maybe-install-html-target-libcilkrts:
38431@if target-libcilkrts
38432maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
38433
38434install-html-target-libcilkrts: \
38435 configure-target-libcilkrts \
38436 html-target-libcilkrts
38437 @: $(MAKE); $(unstage)
38438 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38439 r=`${PWD_COMMAND}`; export r; \
38440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38441 $(NORMAL_TARGET_EXPORTS) \
38442 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
38443 for flag in $(EXTRA_TARGET_FLAGS); do \
38444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38445 done; \
38446 (cd $(TARGET_SUBDIR)/libcilkrts && \
38447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38449 "RANLIB=$${RANLIB}" \
38450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38451 install-html) \
38452 || exit 1
38453
38454@endif target-libcilkrts
38455
38456.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
38457maybe-installcheck-target-libcilkrts:
38458@if target-libcilkrts
38459maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
38460
38461installcheck-target-libcilkrts: \
38462 configure-target-libcilkrts
38463 @: $(MAKE); $(unstage)
38464 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38465 r=`${PWD_COMMAND}`; export r; \
38466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38467 $(NORMAL_TARGET_EXPORTS) \
38468 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
38469 for flag in $(EXTRA_TARGET_FLAGS); do \
38470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38471 done; \
38472 (cd $(TARGET_SUBDIR)/libcilkrts && \
38473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38475 "RANLIB=$${RANLIB}" \
38476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38477 installcheck) \
38478 || exit 1
38479
38480@endif target-libcilkrts
38481
38482.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
38483maybe-mostlyclean-target-libcilkrts:
38484@if target-libcilkrts
38485maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
38486
38487mostlyclean-target-libcilkrts:
38488 @: $(MAKE); $(unstage)
38489 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38490 r=`${PWD_COMMAND}`; export r; \
38491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38492 $(NORMAL_TARGET_EXPORTS) \
38493 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
38494 for flag in $(EXTRA_TARGET_FLAGS); do \
38495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38496 done; \
38497 (cd $(TARGET_SUBDIR)/libcilkrts && \
38498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38500 "RANLIB=$${RANLIB}" \
38501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38502 mostlyclean) \
38503 || exit 1
38504
38505@endif target-libcilkrts
38506
38507.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
38508maybe-clean-target-libcilkrts:
38509@if target-libcilkrts
38510maybe-clean-target-libcilkrts: clean-target-libcilkrts
38511
38512clean-target-libcilkrts:
38513 @: $(MAKE); $(unstage)
38514 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38515 r=`${PWD_COMMAND}`; export r; \
38516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38517 $(NORMAL_TARGET_EXPORTS) \
38518 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
38519 for flag in $(EXTRA_TARGET_FLAGS); do \
38520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38521 done; \
38522 (cd $(TARGET_SUBDIR)/libcilkrts && \
38523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38525 "RANLIB=$${RANLIB}" \
38526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38527 clean) \
38528 || exit 1
38529
38530@endif target-libcilkrts
38531
38532.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
38533maybe-distclean-target-libcilkrts:
38534@if target-libcilkrts
38535maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
38536
38537distclean-target-libcilkrts:
38538 @: $(MAKE); $(unstage)
38539 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38540 r=`${PWD_COMMAND}`; export r; \
38541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38542 $(NORMAL_TARGET_EXPORTS) \
38543 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
38544 for flag in $(EXTRA_TARGET_FLAGS); do \
38545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38546 done; \
38547 (cd $(TARGET_SUBDIR)/libcilkrts && \
38548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38550 "RANLIB=$${RANLIB}" \
38551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38552 distclean) \
38553 || exit 1
38554
38555@endif target-libcilkrts
38556
38557.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
38558maybe-maintainer-clean-target-libcilkrts:
38559@if target-libcilkrts
38560maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
38561
38562maintainer-clean-target-libcilkrts:
38563 @: $(MAKE); $(unstage)
38564 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
38565 r=`${PWD_COMMAND}`; export r; \
38566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38567 $(NORMAL_TARGET_EXPORTS) \
38568 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
38569 for flag in $(EXTRA_TARGET_FLAGS); do \
38570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38571 done; \
38572 (cd $(TARGET_SUBDIR)/libcilkrts && \
38573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38575 "RANLIB=$${RANLIB}" \
38576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38577 maintainer-clean) \
38578 || exit 1
38579
38580@endif target-libcilkrts
38581
38582
38583
38584
38585
1b6c0831
L
38586.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
38587maybe-configure-target-liboffloadmic:
38588@if gcc-bootstrap
38589configure-target-liboffloadmic: stage_current
38590@endif gcc-bootstrap
38591@if target-liboffloadmic
38592maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
38593configure-target-liboffloadmic:
38594 @: $(MAKE); $(unstage)
38595 @r=`${PWD_COMMAND}`; export r; \
38596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38597 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
38598 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
38599 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
38600 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
38601 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
38602 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
38603 else \
38604 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
38605 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
38606 fi; \
38607 else \
38608 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
38609 fi; \
38610 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 38611 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
38612 $(NORMAL_TARGET_EXPORTS) \
38613 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
38614 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
38615 case $(srcdir) in \
38616 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38617 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
38618 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38619 esac; \
38620 module_srcdir=liboffloadmic; \
38621 rm -f no-such-file || : ; \
38622 CONFIG_SITE=no-such-file $(SHELL) \
38623 $$s/$$module_srcdir/configure \
38624 --srcdir=$${topdir}/$$module_srcdir \
38625 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
38626 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
38627 || exit 1
38628@endif target-liboffloadmic
38629
38630
38631
38632
38633
38634.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
38635maybe-all-target-liboffloadmic:
38636@if gcc-bootstrap
38637all-target-liboffloadmic: stage_current
38638@endif gcc-bootstrap
38639@if target-liboffloadmic
38640TARGET-target-liboffloadmic=all
38641maybe-all-target-liboffloadmic: all-target-liboffloadmic
38642all-target-liboffloadmic: configure-target-liboffloadmic
38643 @: $(MAKE); $(unstage)
38644 @r=`${PWD_COMMAND}`; export r; \
38645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38646 $(NORMAL_TARGET_EXPORTS) \
38647 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38648 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
38649 $(TARGET-target-liboffloadmic))
38650@endif target-liboffloadmic
38651
38652
38653
38654
38655
38656.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
38657maybe-check-target-liboffloadmic:
38658@if target-liboffloadmic
38659maybe-check-target-liboffloadmic: check-target-liboffloadmic
38660
38661check-target-liboffloadmic:
38662 @: $(MAKE); $(unstage)
38663 @r=`${PWD_COMMAND}`; export r; \
38664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38665 $(NORMAL_TARGET_EXPORTS) \
38666 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38667 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38668
38669@endif target-liboffloadmic
38670
38671.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
38672maybe-install-target-liboffloadmic:
38673@if target-liboffloadmic
38674maybe-install-target-liboffloadmic: install-target-liboffloadmic
38675
38676install-target-liboffloadmic: installdirs
38677 @: $(MAKE); $(unstage)
38678 @r=`${PWD_COMMAND}`; export r; \
38679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38680 $(NORMAL_TARGET_EXPORTS) \
38681 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38682 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38683
38684@endif target-liboffloadmic
38685
38686.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
38687maybe-install-strip-target-liboffloadmic:
38688@if target-liboffloadmic
38689maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
38690
38691install-strip-target-liboffloadmic: installdirs
38692 @: $(MAKE); $(unstage)
38693 @r=`${PWD_COMMAND}`; export r; \
38694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38695 $(NORMAL_TARGET_EXPORTS) \
38696 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38697 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38698
38699@endif target-liboffloadmic
38700
38701# Other targets (info, dvi, pdf, etc.)
38702
38703.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
38704maybe-info-target-liboffloadmic:
38705@if target-liboffloadmic
38706maybe-info-target-liboffloadmic: info-target-liboffloadmic
38707
38708info-target-liboffloadmic: \
38709 configure-target-liboffloadmic
38710 @: $(MAKE); $(unstage)
22121df0 38711 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38712 r=`${PWD_COMMAND}`; export r; \
38713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38714 $(NORMAL_TARGET_EXPORTS) \
22121df0 38715 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38716 for flag in $(EXTRA_TARGET_FLAGS); do \
38717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38718 done; \
38719 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38722 "RANLIB=$${RANLIB}" \
38723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38724 info) \
38725 || exit 1
38726
38727@endif target-liboffloadmic
38728
38729.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
38730maybe-dvi-target-liboffloadmic:
38731@if target-liboffloadmic
38732maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
38733
38734dvi-target-liboffloadmic: \
38735 configure-target-liboffloadmic
38736 @: $(MAKE); $(unstage)
22121df0 38737 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38738 r=`${PWD_COMMAND}`; export r; \
38739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38740 $(NORMAL_TARGET_EXPORTS) \
22121df0 38741 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38742 for flag in $(EXTRA_TARGET_FLAGS); do \
38743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38744 done; \
38745 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38748 "RANLIB=$${RANLIB}" \
38749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38750 dvi) \
38751 || exit 1
38752
38753@endif target-liboffloadmic
38754
38755.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
38756maybe-pdf-target-liboffloadmic:
38757@if target-liboffloadmic
38758maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
38759
38760pdf-target-liboffloadmic: \
38761 configure-target-liboffloadmic
38762 @: $(MAKE); $(unstage)
22121df0 38763 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38764 r=`${PWD_COMMAND}`; export r; \
38765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38766 $(NORMAL_TARGET_EXPORTS) \
22121df0 38767 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38768 for flag in $(EXTRA_TARGET_FLAGS); do \
38769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38770 done; \
38771 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38774 "RANLIB=$${RANLIB}" \
38775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38776 pdf) \
38777 || exit 1
38778
38779@endif target-liboffloadmic
38780
38781.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
38782maybe-html-target-liboffloadmic:
38783@if target-liboffloadmic
38784maybe-html-target-liboffloadmic: html-target-liboffloadmic
38785
38786html-target-liboffloadmic: \
38787 configure-target-liboffloadmic
38788 @: $(MAKE); $(unstage)
22121df0 38789 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38790 r=`${PWD_COMMAND}`; export r; \
38791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38792 $(NORMAL_TARGET_EXPORTS) \
22121df0 38793 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38794 for flag in $(EXTRA_TARGET_FLAGS); do \
38795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38796 done; \
38797 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38800 "RANLIB=$${RANLIB}" \
38801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38802 html) \
38803 || exit 1
38804
38805@endif target-liboffloadmic
38806
38807.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
38808maybe-TAGS-target-liboffloadmic:
38809@if target-liboffloadmic
38810maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
38811
38812TAGS-target-liboffloadmic: \
38813 configure-target-liboffloadmic
38814 @: $(MAKE); $(unstage)
22121df0 38815 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38816 r=`${PWD_COMMAND}`; export r; \
38817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38818 $(NORMAL_TARGET_EXPORTS) \
22121df0 38819 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38820 for flag in $(EXTRA_TARGET_FLAGS); do \
38821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38822 done; \
38823 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38826 "RANLIB=$${RANLIB}" \
38827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38828 TAGS) \
38829 || exit 1
38830
38831@endif target-liboffloadmic
38832
38833.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
38834maybe-install-info-target-liboffloadmic:
38835@if target-liboffloadmic
38836maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
38837
38838install-info-target-liboffloadmic: \
38839 configure-target-liboffloadmic \
38840 info-target-liboffloadmic
38841 @: $(MAKE); $(unstage)
22121df0 38842 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38843 r=`${PWD_COMMAND}`; export r; \
38844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38845 $(NORMAL_TARGET_EXPORTS) \
22121df0 38846 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38847 for flag in $(EXTRA_TARGET_FLAGS); do \
38848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38849 done; \
38850 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38853 "RANLIB=$${RANLIB}" \
38854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38855 install-info) \
38856 || exit 1
38857
38858@endif target-liboffloadmic
38859
38860.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
38861maybe-install-pdf-target-liboffloadmic:
38862@if target-liboffloadmic
38863maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
38864
38865install-pdf-target-liboffloadmic: \
38866 configure-target-liboffloadmic \
38867 pdf-target-liboffloadmic
38868 @: $(MAKE); $(unstage)
22121df0 38869 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38870 r=`${PWD_COMMAND}`; export r; \
38871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38872 $(NORMAL_TARGET_EXPORTS) \
22121df0 38873 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38874 for flag in $(EXTRA_TARGET_FLAGS); do \
38875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38876 done; \
38877 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38880 "RANLIB=$${RANLIB}" \
38881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38882 install-pdf) \
38883 || exit 1
38884
38885@endif target-liboffloadmic
38886
38887.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
38888maybe-install-html-target-liboffloadmic:
38889@if target-liboffloadmic
38890maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
38891
38892install-html-target-liboffloadmic: \
38893 configure-target-liboffloadmic \
38894 html-target-liboffloadmic
38895 @: $(MAKE); $(unstage)
22121df0 38896 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38897 r=`${PWD_COMMAND}`; export r; \
38898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38899 $(NORMAL_TARGET_EXPORTS) \
22121df0 38900 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38901 for flag in $(EXTRA_TARGET_FLAGS); do \
38902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38903 done; \
38904 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38907 "RANLIB=$${RANLIB}" \
38908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38909 install-html) \
38910 || exit 1
38911
38912@endif target-liboffloadmic
38913
38914.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
38915maybe-installcheck-target-liboffloadmic:
38916@if target-liboffloadmic
38917maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
38918
38919installcheck-target-liboffloadmic: \
38920 configure-target-liboffloadmic
38921 @: $(MAKE); $(unstage)
22121df0 38922 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38923 r=`${PWD_COMMAND}`; export r; \
38924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38925 $(NORMAL_TARGET_EXPORTS) \
22121df0 38926 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38927 for flag in $(EXTRA_TARGET_FLAGS); do \
38928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38929 done; \
38930 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38933 "RANLIB=$${RANLIB}" \
38934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38935 installcheck) \
38936 || exit 1
38937
38938@endif target-liboffloadmic
38939
38940.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
38941maybe-mostlyclean-target-liboffloadmic:
38942@if target-liboffloadmic
38943maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
38944
38945mostlyclean-target-liboffloadmic:
38946 @: $(MAKE); $(unstage)
22121df0 38947 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38948 r=`${PWD_COMMAND}`; export r; \
38949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38950 $(NORMAL_TARGET_EXPORTS) \
22121df0 38951 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38952 for flag in $(EXTRA_TARGET_FLAGS); do \
38953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38954 done; \
38955 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38958 "RANLIB=$${RANLIB}" \
38959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38960 mostlyclean) \
38961 || exit 1
38962
38963@endif target-liboffloadmic
38964
38965.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
38966maybe-clean-target-liboffloadmic:
38967@if target-liboffloadmic
38968maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
38969
38970clean-target-liboffloadmic:
38971 @: $(MAKE); $(unstage)
22121df0 38972 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38973 r=`${PWD_COMMAND}`; export r; \
38974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38975 $(NORMAL_TARGET_EXPORTS) \
22121df0 38976 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
38977 for flag in $(EXTRA_TARGET_FLAGS); do \
38978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38979 done; \
38980 (cd $(TARGET_SUBDIR)/liboffloadmic && \
38981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38983 "RANLIB=$${RANLIB}" \
38984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38985 clean) \
38986 || exit 1
38987
38988@endif target-liboffloadmic
38989
38990.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
38991maybe-distclean-target-liboffloadmic:
38992@if target-liboffloadmic
38993maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
38994
38995distclean-target-liboffloadmic:
38996 @: $(MAKE); $(unstage)
22121df0 38997 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
38998 r=`${PWD_COMMAND}`; export r; \
38999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39000 $(NORMAL_TARGET_EXPORTS) \
22121df0 39001 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39002 for flag in $(EXTRA_TARGET_FLAGS); do \
39003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39004 done; \
39005 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39008 "RANLIB=$${RANLIB}" \
39009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39010 distclean) \
39011 || exit 1
39012
39013@endif target-liboffloadmic
39014
39015.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
39016maybe-maintainer-clean-target-liboffloadmic:
39017@if target-liboffloadmic
39018maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
39019
39020maintainer-clean-target-liboffloadmic:
39021 @: $(MAKE); $(unstage)
22121df0 39022 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39023 r=`${PWD_COMMAND}`; export r; \
39024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39025 $(NORMAL_TARGET_EXPORTS) \
22121df0 39026 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39027 for flag in $(EXTRA_TARGET_FLAGS); do \
39028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39029 done; \
39030 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39033 "RANLIB=$${RANLIB}" \
39034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39035 maintainer-clean) \
39036 || exit 1
39037
39038@endif target-liboffloadmic
39039
39040
39041
39042
39043
a90ef4bf
JM
39044.PHONY: configure-target-libssp maybe-configure-target-libssp
39045maybe-configure-target-libssp:
4f0ef2d8 39046@if gcc-bootstrap
a90ef4bf 39047configure-target-libssp: stage_current
4f0ef2d8 39048@endif gcc-bootstrap
a90ef4bf
JM
39049@if target-libssp
39050maybe-configure-target-libssp: configure-target-libssp
39051configure-target-libssp:
0aed8855
PB
39052 @: $(MAKE); $(unstage)
39053 @r=`${PWD_COMMAND}`; export r; \
39054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39055 echo "Checking multilib configuration for libssp..."; \
22121df0
L
39056 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
39057 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39058 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
39059 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
39060 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 39061 else \
a90ef4bf
JM
39062 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
39063 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
39064 fi; \
39065 else \
a90ef4bf 39066 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 39067 fi; \
a90ef4bf 39068 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 39069 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 39070 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39071 echo Configuring in $(TARGET_SUBDIR)/libssp; \
39072 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 39073 case $(srcdir) in \
b00612cc 39074 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39075 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 39076 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 39077 esac; \
1b6c0831 39078 module_srcdir=libssp; \
4b1cb4fe 39079 rm -f no-such-file || : ; \
1b6c0831
L
39080 CONFIG_SITE=no-such-file $(SHELL) \
39081 $$s/$$module_srcdir/configure \
39082 --srcdir=$${topdir}/$$module_srcdir \
4b900473 39083 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39084 --target=${target_alias} \
4b1cb4fe 39085 || exit 1
a90ef4bf 39086@endif target-libssp
4b1cb4fe 39087
a7254363
PB
39088
39089
d545f33b
PB
39090
39091
a90ef4bf
JM
39092.PHONY: all-target-libssp maybe-all-target-libssp
39093maybe-all-target-libssp:
4f0ef2d8 39094@if gcc-bootstrap
a90ef4bf 39095all-target-libssp: stage_current
4f0ef2d8 39096@endif gcc-bootstrap
a90ef4bf
JM
39097@if target-libssp
39098TARGET-target-libssp=all
39099maybe-all-target-libssp: all-target-libssp
39100all-target-libssp: configure-target-libssp
0aed8855 39101 @: $(MAKE); $(unstage)
4b1cb4fe
DD
39102 @r=`${PWD_COMMAND}`; export r; \
39103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 39104 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39105 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 39106 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39107 $(TARGET-target-libssp))
39108@endif target-libssp
4b1cb4fe 39109
a7254363
PB
39110
39111
d545f33b
PB
39112
39113
a90ef4bf
JM
39114.PHONY: check-target-libssp maybe-check-target-libssp
39115maybe-check-target-libssp:
39116@if target-libssp
39117maybe-check-target-libssp: check-target-libssp
4b1cb4fe 39118
a90ef4bf 39119check-target-libssp:
0aed8855 39120 @: $(MAKE); $(unstage)
b40e3958
L
39121 @r=`${PWD_COMMAND}`; export r; \
39122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39123 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39124 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 39125 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 39126
a90ef4bf 39127@endif target-libssp
3866be5d 39128
a90ef4bf
JM
39129.PHONY: install-target-libssp maybe-install-target-libssp
39130maybe-install-target-libssp:
39131@if target-libssp
39132maybe-install-target-libssp: install-target-libssp
e2b9e2dc 39133
a90ef4bf 39134install-target-libssp: installdirs
0aed8855 39135 @: $(MAKE); $(unstage)
b40e3958
L
39136 @r=`${PWD_COMMAND}`; export r; \
39137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39138 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39139 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 39140 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 39141
a90ef4bf 39142@endif target-libssp
3866be5d 39143
a90ef4bf
JM
39144.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
39145maybe-install-strip-target-libssp:
39146@if target-libssp
39147maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 39148
a90ef4bf 39149install-strip-target-libssp: installdirs
9b980aa1
RW
39150 @: $(MAKE); $(unstage)
39151 @r=`${PWD_COMMAND}`; export r; \
39152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39153 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39154 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
39155 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39156
a90ef4bf 39157@endif target-libssp
9b980aa1 39158
56a8fe78 39159# Other targets (info, dvi, pdf, etc.)
3866be5d 39160
a90ef4bf
JM
39161.PHONY: maybe-info-target-libssp info-target-libssp
39162maybe-info-target-libssp:
39163@if target-libssp
39164maybe-info-target-libssp: info-target-libssp
3866be5d 39165
a90ef4bf
JM
39166info-target-libssp: \
39167 configure-target-libssp
0aed8855 39168 @: $(MAKE); $(unstage)
22121df0 39169 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
39170 r=`${PWD_COMMAND}`; export r; \
39171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39172 $(NORMAL_TARGET_EXPORTS) \
22121df0 39173 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39174 for flag in $(EXTRA_TARGET_FLAGS); do \
39175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39176 done; \
a90ef4bf 39177 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39180 "RANLIB=$${RANLIB}" \
0c24b341 39181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39182 info) \
4fa63067 39183 || exit 1
16ae0395 39184
a90ef4bf 39185@endif target-libssp
3866be5d 39186
a90ef4bf
JM
39187.PHONY: maybe-dvi-target-libssp dvi-target-libssp
39188maybe-dvi-target-libssp:
39189@if target-libssp
39190maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 39191
a90ef4bf
JM
39192dvi-target-libssp: \
39193 configure-target-libssp
0aed8855 39194 @: $(MAKE); $(unstage)
22121df0 39195 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
39196 r=`${PWD_COMMAND}`; export r; \
39197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39198 $(NORMAL_TARGET_EXPORTS) \
22121df0 39199 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39200 for flag in $(EXTRA_TARGET_FLAGS); do \
39201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39202 done; \
a90ef4bf 39203 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39206 "RANLIB=$${RANLIB}" \
0c24b341 39207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 39208 dvi) \
e2b9e2dc
NN
39209 || exit 1
39210
a90ef4bf 39211@endif target-libssp
3866be5d 39212
a90ef4bf
JM
39213.PHONY: maybe-pdf-target-libssp pdf-target-libssp
39214maybe-pdf-target-libssp:
39215@if target-libssp
39216maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 39217
a90ef4bf
JM
39218pdf-target-libssp: \
39219 configure-target-libssp
56a8fe78 39220 @: $(MAKE); $(unstage)
22121df0 39221 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
39222 r=`${PWD_COMMAND}`; export r; \
39223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39224 $(NORMAL_TARGET_EXPORTS) \
22121df0 39225 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
39226 for flag in $(EXTRA_TARGET_FLAGS); do \
39227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39228 done; \
a90ef4bf 39229 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
39230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39232 "RANLIB=$${RANLIB}" \
0c24b341 39233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
39234 pdf) \
39235 || exit 1
39236
a90ef4bf 39237@endif target-libssp
a3ca38d2 39238
a90ef4bf
JM
39239.PHONY: maybe-html-target-libssp html-target-libssp
39240maybe-html-target-libssp:
39241@if target-libssp
39242maybe-html-target-libssp: html-target-libssp
108a6f8e 39243
a90ef4bf
JM
39244html-target-libssp: \
39245 configure-target-libssp
108a6f8e 39246 @: $(MAKE); $(unstage)
22121df0 39247 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
39248 r=`${PWD_COMMAND}`; export r; \
39249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39250 $(NORMAL_TARGET_EXPORTS) \
22121df0 39251 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
39252 for flag in $(EXTRA_TARGET_FLAGS); do \
39253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39254 done; \
a90ef4bf 39255 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
39256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39258 "RANLIB=$${RANLIB}" \
0c24b341 39259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39260 html) \
108a6f8e
CD
39261 || exit 1
39262
a90ef4bf 39263@endif target-libssp
108a6f8e 39264
a90ef4bf
JM
39265.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
39266maybe-TAGS-target-libssp:
39267@if target-libssp
39268maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 39269
a90ef4bf
JM
39270TAGS-target-libssp: \
39271 configure-target-libssp
0aed8855 39272 @: $(MAKE); $(unstage)
22121df0 39273 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
39274 r=`${PWD_COMMAND}`; export r; \
39275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39276 $(NORMAL_TARGET_EXPORTS) \
22121df0 39277 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39278 for flag in $(EXTRA_TARGET_FLAGS); do \
39279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39280 done; \
a90ef4bf 39281 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39284 "RANLIB=$${RANLIB}" \
0c24b341 39285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39286 TAGS) \
e2b9e2dc
NN
39287 || exit 1
39288
a90ef4bf 39289@endif target-libssp
3866be5d 39290
a90ef4bf
JM
39291.PHONY: maybe-install-info-target-libssp install-info-target-libssp
39292maybe-install-info-target-libssp:
39293@if target-libssp
39294maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 39295
a90ef4bf
JM
39296install-info-target-libssp: \
39297 configure-target-libssp \
39298 info-target-libssp
0aed8855 39299 @: $(MAKE); $(unstage)
22121df0 39300 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 39301 r=`${PWD_COMMAND}`; export r; \
b40e3958 39302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39303 $(NORMAL_TARGET_EXPORTS) \
22121df0 39304 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39305 for flag in $(EXTRA_TARGET_FLAGS); do \
39306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39307 done; \
a90ef4bf 39308 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39311 "RANLIB=$${RANLIB}" \
0c24b341 39312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39313 install-info) \
4fa63067 39314 || exit 1
3866be5d 39315
a90ef4bf 39316@endif target-libssp
3866be5d 39317
a90ef4bf
JM
39318.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
39319maybe-install-pdf-target-libssp:
39320@if target-libssp
39321maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 39322
a90ef4bf
JM
39323install-pdf-target-libssp: \
39324 configure-target-libssp \
39325 pdf-target-libssp
0aed8855 39326 @: $(MAKE); $(unstage)
22121df0 39327 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 39328 r=`${PWD_COMMAND}`; export r; \
b40e3958 39329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39330 $(NORMAL_TARGET_EXPORTS) \
22121df0 39331 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39332 for flag in $(EXTRA_TARGET_FLAGS); do \
39333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39334 done; \
a90ef4bf 39335 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39338 "RANLIB=$${RANLIB}" \
0c24b341 39339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39340 install-pdf) \
4fa63067 39341 || exit 1
3866be5d 39342
a90ef4bf 39343@endif target-libssp
3866be5d 39344
a90ef4bf
JM
39345.PHONY: maybe-install-html-target-libssp install-html-target-libssp
39346maybe-install-html-target-libssp:
39347@if target-libssp
39348maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 39349
a90ef4bf
JM
39350install-html-target-libssp: \
39351 configure-target-libssp \
39352 html-target-libssp
0aed8855 39353 @: $(MAKE); $(unstage)
22121df0 39354 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
39355 r=`${PWD_COMMAND}`; export r; \
39356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39357 $(NORMAL_TARGET_EXPORTS) \
22121df0 39358 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39359 for flag in $(EXTRA_TARGET_FLAGS); do \
39360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39361 done; \
a90ef4bf 39362 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39365 "RANLIB=$${RANLIB}" \
0c24b341 39366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39367 install-html) \
e2b9e2dc
NN
39368 || exit 1
39369
a90ef4bf 39370@endif target-libssp
3866be5d 39371
a90ef4bf
JM
39372.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
39373maybe-installcheck-target-libssp:
39374@if target-libssp
39375maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 39376
a90ef4bf
JM
39377installcheck-target-libssp: \
39378 configure-target-libssp
0aed8855 39379 @: $(MAKE); $(unstage)
22121df0 39380 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 39381 r=`${PWD_COMMAND}`; export r; \
b40e3958 39382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 39383 $(NORMAL_TARGET_EXPORTS) \
22121df0 39384 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
39385 for flag in $(EXTRA_TARGET_FLAGS); do \
39386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39387 done; \
a90ef4bf 39388 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
39389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39391 "RANLIB=$${RANLIB}" \
0c24b341 39392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 39393 installcheck) \
6aa8ef82 39394 || exit 1
6aa8ef82 39395
a90ef4bf 39396@endif target-libssp
6aa8ef82 39397
a90ef4bf
JM
39398.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
39399maybe-mostlyclean-target-libssp:
39400@if target-libssp
39401maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 39402
a90ef4bf
JM
39403mostlyclean-target-libssp:
39404 @: $(MAKE); $(unstage)
22121df0 39405 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39406 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39408 $(NORMAL_TARGET_EXPORTS) \
22121df0 39409 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39410 for flag in $(EXTRA_TARGET_FLAGS); do \
39411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39412 done; \
39413 (cd $(TARGET_SUBDIR)/libssp && \
39414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39416 "RANLIB=$${RANLIB}" \
39417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39418 mostlyclean) \
39419 || exit 1
6aa8ef82 39420
a90ef4bf 39421@endif target-libssp
6aa8ef82 39422
a90ef4bf
JM
39423.PHONY: maybe-clean-target-libssp clean-target-libssp
39424maybe-clean-target-libssp:
39425@if target-libssp
39426maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 39427
a90ef4bf
JM
39428clean-target-libssp:
39429 @: $(MAKE); $(unstage)
22121df0 39430 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39431 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39433 $(NORMAL_TARGET_EXPORTS) \
22121df0 39434 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39435 for flag in $(EXTRA_TARGET_FLAGS); do \
39436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39437 done; \
39438 (cd $(TARGET_SUBDIR)/libssp && \
39439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39441 "RANLIB=$${RANLIB}" \
39442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39443 clean) \
39444 || exit 1
6aa8ef82 39445
a90ef4bf 39446@endif target-libssp
6aa8ef82 39447
a90ef4bf
JM
39448.PHONY: maybe-distclean-target-libssp distclean-target-libssp
39449maybe-distclean-target-libssp:
39450@if target-libssp
39451maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 39452
a90ef4bf
JM
39453distclean-target-libssp:
39454 @: $(MAKE); $(unstage)
22121df0 39455 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39456 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39458 $(NORMAL_TARGET_EXPORTS) \
22121df0 39459 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39460 for flag in $(EXTRA_TARGET_FLAGS); do \
39461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39462 done; \
39463 (cd $(TARGET_SUBDIR)/libssp && \
39464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39466 "RANLIB=$${RANLIB}" \
39467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39468 distclean) \
39469 || exit 1
6aa8ef82 39470
a90ef4bf 39471@endif target-libssp
6aa8ef82 39472
a90ef4bf
JM
39473.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
39474maybe-maintainer-clean-target-libssp:
39475@if target-libssp
39476maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 39477
a90ef4bf
JM
39478maintainer-clean-target-libssp:
39479 @: $(MAKE); $(unstage)
22121df0 39480 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 39481 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
39482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39483 $(NORMAL_TARGET_EXPORTS) \
22121df0 39484 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
39485 for flag in $(EXTRA_TARGET_FLAGS); do \
39486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39487 done; \
39488 (cd $(TARGET_SUBDIR)/libssp && \
39489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39491 "RANLIB=$${RANLIB}" \
39492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39493 maintainer-clean) \
39494 || exit 1
6aa8ef82 39495
a90ef4bf 39496@endif target-libssp
6aa8ef82
DJ
39497
39498
a90ef4bf
JM
39499
39500
39501
39502.PHONY: configure-target-newlib maybe-configure-target-newlib
39503maybe-configure-target-newlib:
39504@if gcc-bootstrap
39505configure-target-newlib: stage_current
39506@endif gcc-bootstrap
39507@if target-newlib
39508maybe-configure-target-newlib: configure-target-newlib
39509configure-target-newlib:
39510 @: $(MAKE); $(unstage)
6aa8ef82
DJ
39511 @r=`${PWD_COMMAND}`; export r; \
39512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39513 echo "Checking multilib configuration for newlib..."; \
22121df0
L
39514 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
39515 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39516 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
39517 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
39518 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
39519 else \
39520 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
39521 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
39522 fi; \
6aa8ef82 39523 else \
a90ef4bf 39524 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 39525 fi; \
a90ef4bf 39526 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 39527 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
39528 $(NORMAL_TARGET_EXPORTS) \
39529 echo Configuring in $(TARGET_SUBDIR)/newlib; \
39530 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
39531 case $(srcdir) in \
39532 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39533 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
39534 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39535 esac; \
1b6c0831 39536 module_srcdir=newlib; \
a90ef4bf 39537 rm -f no-such-file || : ; \
1b6c0831
L
39538 CONFIG_SITE=no-such-file $(SHELL) \
39539 $$s/$$module_srcdir/configure \
39540 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 39541 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39542 --target=${target_alias} \
a90ef4bf
JM
39543 || exit 1
39544@endif target-newlib
6aa8ef82
DJ
39545
39546
39547
39548
39549
a90ef4bf
JM
39550.PHONY: all-target-newlib maybe-all-target-newlib
39551maybe-all-target-newlib:
39552@if gcc-bootstrap
39553all-target-newlib: stage_current
39554@endif gcc-bootstrap
39555@if target-newlib
39556TARGET-target-newlib=all
39557maybe-all-target-newlib: all-target-newlib
39558all-target-newlib: configure-target-newlib
39559 @: $(MAKE); $(unstage)
39560 @r=`${PWD_COMMAND}`; export r; \
39561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39562 $(NORMAL_TARGET_EXPORTS) \
39563 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 39564 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
39565 $(TARGET-target-newlib))
39566@endif target-newlib
6aa8ef82 39567
6aa8ef82 39568
6aa8ef82 39569
6aa8ef82 39570
6aa8ef82 39571
a90ef4bf
JM
39572.PHONY: check-target-newlib maybe-check-target-newlib
39573maybe-check-target-newlib:
39574@if target-newlib
39575maybe-check-target-newlib: check-target-newlib
39576
39577check-target-newlib:
6aa8ef82
DJ
39578 @: $(MAKE); $(unstage)
39579 @r=`${PWD_COMMAND}`; export r; \
39580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39581 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39582 (cd $(TARGET_SUBDIR)/newlib && \
39583 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39584
39585@endif target-newlib
39586
39587.PHONY: install-target-newlib maybe-install-target-newlib
39588maybe-install-target-newlib:
39589@if target-newlib
39590maybe-install-target-newlib: install-target-newlib
39591
39592install-target-newlib: installdirs
39593 @: $(MAKE); $(unstage)
39594 @r=`${PWD_COMMAND}`; export r; \
39595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39596 $(NORMAL_TARGET_EXPORTS) \
39597 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39598 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39599
a90ef4bf 39600@endif target-newlib
6aa8ef82 39601
a90ef4bf
JM
39602.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
39603maybe-install-strip-target-newlib:
39604@if target-newlib
39605maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 39606
a90ef4bf 39607install-strip-target-newlib: installdirs
9b980aa1
RW
39608 @: $(MAKE); $(unstage)
39609 @r=`${PWD_COMMAND}`; export r; \
39610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39611 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 39612 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
39613 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39614
a90ef4bf 39615@endif target-newlib
9b980aa1 39616
6aa8ef82
DJ
39617# Other targets (info, dvi, pdf, etc.)
39618
a90ef4bf
JM
39619.PHONY: maybe-info-target-newlib info-target-newlib
39620maybe-info-target-newlib:
39621@if target-newlib
39622maybe-info-target-newlib: info-target-newlib
6aa8ef82 39623
a90ef4bf
JM
39624info-target-newlib: \
39625 configure-target-newlib
6aa8ef82 39626 @: $(MAKE); $(unstage)
22121df0 39627 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39628 r=`${PWD_COMMAND}`; export r; \
39629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39630 $(NORMAL_TARGET_EXPORTS) \
22121df0 39631 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39632 for flag in $(EXTRA_TARGET_FLAGS); do \
39633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39634 done; \
a90ef4bf 39635 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39638 "RANLIB=$${RANLIB}" \
0c24b341 39639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39640 info) \
39641 || exit 1
39642
a90ef4bf 39643@endif target-newlib
6aa8ef82 39644
a90ef4bf
JM
39645.PHONY: maybe-dvi-target-newlib dvi-target-newlib
39646maybe-dvi-target-newlib:
39647@if target-newlib
39648maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 39649
a90ef4bf
JM
39650dvi-target-newlib: \
39651 configure-target-newlib
6aa8ef82 39652 @: $(MAKE); $(unstage)
22121df0 39653 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39654 r=`${PWD_COMMAND}`; export r; \
39655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39656 $(NORMAL_TARGET_EXPORTS) \
22121df0 39657 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39658 for flag in $(EXTRA_TARGET_FLAGS); do \
39659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39660 done; \
a90ef4bf 39661 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39664 "RANLIB=$${RANLIB}" \
0c24b341 39665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39666 dvi) \
39667 || exit 1
39668
a90ef4bf 39669@endif target-newlib
6aa8ef82 39670
a90ef4bf
JM
39671.PHONY: maybe-pdf-target-newlib pdf-target-newlib
39672maybe-pdf-target-newlib:
39673@if target-newlib
39674maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 39675
a90ef4bf
JM
39676pdf-target-newlib: \
39677 configure-target-newlib
6aa8ef82 39678 @: $(MAKE); $(unstage)
22121df0 39679 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39680 r=`${PWD_COMMAND}`; export r; \
39681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39682 $(NORMAL_TARGET_EXPORTS) \
22121df0 39683 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39684 for flag in $(EXTRA_TARGET_FLAGS); do \
39685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39686 done; \
a90ef4bf 39687 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39690 "RANLIB=$${RANLIB}" \
0c24b341 39691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39692 pdf) \
39693 || exit 1
39694
a90ef4bf 39695@endif target-newlib
6aa8ef82 39696
a90ef4bf
JM
39697.PHONY: maybe-html-target-newlib html-target-newlib
39698maybe-html-target-newlib:
39699@if target-newlib
39700maybe-html-target-newlib: html-target-newlib
6aa8ef82 39701
a90ef4bf
JM
39702html-target-newlib: \
39703 configure-target-newlib
6aa8ef82 39704 @: $(MAKE); $(unstage)
22121df0 39705 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39706 r=`${PWD_COMMAND}`; export r; \
39707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39708 $(NORMAL_TARGET_EXPORTS) \
22121df0 39709 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39710 for flag in $(EXTRA_TARGET_FLAGS); do \
39711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39712 done; \
a90ef4bf 39713 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39716 "RANLIB=$${RANLIB}" \
0c24b341 39717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39718 html) \
39719 || exit 1
39720
a90ef4bf 39721@endif target-newlib
6aa8ef82 39722
a90ef4bf
JM
39723.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
39724maybe-TAGS-target-newlib:
39725@if target-newlib
39726maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 39727
a90ef4bf
JM
39728TAGS-target-newlib: \
39729 configure-target-newlib
6aa8ef82 39730 @: $(MAKE); $(unstage)
22121df0 39731 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39732 r=`${PWD_COMMAND}`; export r; \
39733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39734 $(NORMAL_TARGET_EXPORTS) \
22121df0 39735 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39736 for flag in $(EXTRA_TARGET_FLAGS); do \
39737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39738 done; \
a90ef4bf 39739 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39742 "RANLIB=$${RANLIB}" \
0c24b341 39743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39744 TAGS) \
39745 || exit 1
39746
a90ef4bf 39747@endif target-newlib
6aa8ef82 39748
a90ef4bf
JM
39749.PHONY: maybe-install-info-target-newlib install-info-target-newlib
39750maybe-install-info-target-newlib:
39751@if target-newlib
39752maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 39753
a90ef4bf
JM
39754install-info-target-newlib: \
39755 configure-target-newlib \
39756 info-target-newlib
6aa8ef82 39757 @: $(MAKE); $(unstage)
22121df0 39758 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39759 r=`${PWD_COMMAND}`; export r; \
39760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39761 $(NORMAL_TARGET_EXPORTS) \
22121df0 39762 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39763 for flag in $(EXTRA_TARGET_FLAGS); do \
39764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39765 done; \
a90ef4bf 39766 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39769 "RANLIB=$${RANLIB}" \
0c24b341 39770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39771 install-info) \
39772 || exit 1
39773
a90ef4bf 39774@endif target-newlib
6aa8ef82 39775
a90ef4bf
JM
39776.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
39777maybe-install-pdf-target-newlib:
39778@if target-newlib
39779maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 39780
a90ef4bf
JM
39781install-pdf-target-newlib: \
39782 configure-target-newlib \
39783 pdf-target-newlib
a3ca38d2 39784 @: $(MAKE); $(unstage)
22121df0 39785 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
39786 r=`${PWD_COMMAND}`; export r; \
39787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39788 $(NORMAL_TARGET_EXPORTS) \
22121df0 39789 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
39790 for flag in $(EXTRA_TARGET_FLAGS); do \
39791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39792 done; \
a90ef4bf 39793 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
39794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39796 "RANLIB=$${RANLIB}" \
0c24b341 39797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
39798 install-pdf) \
39799 || exit 1
39800
a90ef4bf 39801@endif target-newlib
a3ca38d2 39802
a90ef4bf
JM
39803.PHONY: maybe-install-html-target-newlib install-html-target-newlib
39804maybe-install-html-target-newlib:
39805@if target-newlib
39806maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 39807
a90ef4bf
JM
39808install-html-target-newlib: \
39809 configure-target-newlib \
39810 html-target-newlib
6aa8ef82 39811 @: $(MAKE); $(unstage)
22121df0 39812 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39813 r=`${PWD_COMMAND}`; export r; \
39814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39815 $(NORMAL_TARGET_EXPORTS) \
22121df0 39816 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39817 for flag in $(EXTRA_TARGET_FLAGS); do \
39818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39819 done; \
a90ef4bf 39820 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39823 "RANLIB=$${RANLIB}" \
0c24b341 39824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39825 install-html) \
39826 || exit 1
39827
a90ef4bf 39828@endif target-newlib
6aa8ef82 39829
a90ef4bf
JM
39830.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
39831maybe-installcheck-target-newlib:
39832@if target-newlib
39833maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 39834
a90ef4bf
JM
39835installcheck-target-newlib: \
39836 configure-target-newlib
6aa8ef82 39837 @: $(MAKE); $(unstage)
22121df0 39838 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39839 r=`${PWD_COMMAND}`; export r; \
39840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39841 $(NORMAL_TARGET_EXPORTS) \
22121df0 39842 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39843 for flag in $(EXTRA_TARGET_FLAGS); do \
39844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39845 done; \
a90ef4bf 39846 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39849 "RANLIB=$${RANLIB}" \
0c24b341 39850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39851 installcheck) \
39852 || exit 1
39853
a90ef4bf 39854@endif target-newlib
6aa8ef82 39855
a90ef4bf
JM
39856.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
39857maybe-mostlyclean-target-newlib:
39858@if target-newlib
39859maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 39860
a90ef4bf 39861mostlyclean-target-newlib:
6aa8ef82 39862 @: $(MAKE); $(unstage)
22121df0 39863 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39864 r=`${PWD_COMMAND}`; export r; \
39865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39866 $(NORMAL_TARGET_EXPORTS) \
22121df0 39867 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39868 for flag in $(EXTRA_TARGET_FLAGS); do \
39869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39870 done; \
a90ef4bf 39871 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39874 "RANLIB=$${RANLIB}" \
0c24b341 39875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39876 mostlyclean) \
39877 || exit 1
39878
a90ef4bf 39879@endif target-newlib
6aa8ef82 39880
a90ef4bf
JM
39881.PHONY: maybe-clean-target-newlib clean-target-newlib
39882maybe-clean-target-newlib:
39883@if target-newlib
39884maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 39885
a90ef4bf 39886clean-target-newlib:
6aa8ef82 39887 @: $(MAKE); $(unstage)
22121df0 39888 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39889 r=`${PWD_COMMAND}`; export r; \
39890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39891 $(NORMAL_TARGET_EXPORTS) \
22121df0 39892 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39893 for flag in $(EXTRA_TARGET_FLAGS); do \
39894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39895 done; \
a90ef4bf 39896 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39899 "RANLIB=$${RANLIB}" \
0c24b341 39900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39901 clean) \
39902 || exit 1
39903
a90ef4bf 39904@endif target-newlib
6aa8ef82 39905
a90ef4bf
JM
39906.PHONY: maybe-distclean-target-newlib distclean-target-newlib
39907maybe-distclean-target-newlib:
39908@if target-newlib
39909maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 39910
a90ef4bf 39911distclean-target-newlib:
6aa8ef82 39912 @: $(MAKE); $(unstage)
22121df0 39913 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39914 r=`${PWD_COMMAND}`; export r; \
39915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39916 $(NORMAL_TARGET_EXPORTS) \
22121df0 39917 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39918 for flag in $(EXTRA_TARGET_FLAGS); do \
39919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39920 done; \
a90ef4bf 39921 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39924 "RANLIB=$${RANLIB}" \
0c24b341 39925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39926 distclean) \
39927 || exit 1
39928
a90ef4bf 39929@endif target-newlib
6aa8ef82 39930
a90ef4bf
JM
39931.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
39932maybe-maintainer-clean-target-newlib:
39933@if target-newlib
39934maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 39935
a90ef4bf 39936maintainer-clean-target-newlib:
6aa8ef82 39937 @: $(MAKE); $(unstage)
22121df0 39938 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
39939 r=`${PWD_COMMAND}`; export r; \
39940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39941 $(NORMAL_TARGET_EXPORTS) \
22121df0 39942 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
39943 for flag in $(EXTRA_TARGET_FLAGS); do \
39944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39945 done; \
a90ef4bf 39946 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
39947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39949 "RANLIB=$${RANLIB}" \
0c24b341 39950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
39951 maintainer-clean) \
39952 || exit 1
39953
a90ef4bf 39954@endif target-newlib
6aa8ef82
DJ
39955
39956
39957
39958
39959
a90ef4bf
JM
39960.PHONY: configure-target-libgcc maybe-configure-target-libgcc
39961maybe-configure-target-libgcc:
e552509b 39962@if gcc-bootstrap
a90ef4bf 39963configure-target-libgcc: stage_current
e552509b 39964@endif gcc-bootstrap
a90ef4bf
JM
39965@if target-libgcc
39966maybe-configure-target-libgcc: configure-target-libgcc
39967configure-target-libgcc:
e552509b
ILT
39968 @r=`${PWD_COMMAND}`; export r; \
39969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 39970 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
39971 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
39972 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
39973 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39974 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
39975 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 39976 else \
a90ef4bf
JM
39977 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
39978 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
39979 fi; \
39980 else \
a90ef4bf 39981 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 39982 fi; \
a90ef4bf 39983 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 39984 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 39985 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
39986 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
39987 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
39988 case $(srcdir) in \
39989 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 39990 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
39991 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39992 esac; \
1b6c0831 39993 module_srcdir=libgcc; \
e552509b 39994 rm -f no-such-file || : ; \
1b6c0831
L
39995 CONFIG_SITE=no-such-file $(SHELL) \
39996 $$s/$$module_srcdir/configure \
39997 --srcdir=$${topdir}/$$module_srcdir \
e552509b 39998 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 39999 --target=${target_alias} \
e552509b 40000 || exit 1
a90ef4bf 40001@endif target-libgcc
e552509b
ILT
40002
40003
e552509b 40004
a90ef4bf
JM
40005.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
40006maybe-configure-stage1-target-libgcc:
40007@if target-libgcc-bootstrap
40008maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
40009configure-stage1-target-libgcc:
40010 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40011 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40012 @r=`${PWD_COMMAND}`; export r; \
40013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40014 TFLAGS="$(STAGE1_TFLAGS)"; \
40015 echo "Checking multilib configuration for libgcc..."; \
22121df0 40016 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40017 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40018 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40019 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40020 else \
40021 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40022 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40023 fi; \
40024 else \
40025 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40026 fi; \
40027 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40028 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40029 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40030 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40031 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40032 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
40033 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40034 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40035 case $(srcdir) in \
40036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40037 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40039 esac; \
1b6c0831
L
40040 module_srcdir=libgcc; \
40041 $(SHELL) $$s/$$module_srcdir/configure \
40042 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40043 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
40044 --target=${target_alias} \
40045 \
a90ef4bf
JM
40046 $(STAGE1_CONFIGURE_FLAGS)
40047@endif target-libgcc-bootstrap
e552509b 40048
a90ef4bf
JM
40049.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
40050maybe-configure-stage2-target-libgcc:
40051@if target-libgcc-bootstrap
40052maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
40053configure-stage2-target-libgcc:
40054 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
40055 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
40056 @r=`${PWD_COMMAND}`; export r; \
40057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40058 TFLAGS="$(STAGE2_TFLAGS)"; \
40059 echo "Checking multilib configuration for libgcc..."; \
22121df0 40060 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40061 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40062 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40063 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40064 else \
40065 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40066 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40067 fi; \
40068 else \
40069 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40070 fi; \
40071 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40072 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40073 \
40074 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40075 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40076 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40077 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
40078 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40079 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40080 case $(srcdir) in \
40081 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40082 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40083 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40084 esac; \
1b6c0831
L
40085 module_srcdir=libgcc; \
40086 $(SHELL) $$s/$$module_srcdir/configure \
40087 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40088 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40089 --target=${target_alias} \
22121df0 40090 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40091 $(STAGE2_CONFIGURE_FLAGS)
40092@endif target-libgcc-bootstrap
9b980aa1 40093
a90ef4bf
JM
40094.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
40095maybe-configure-stage3-target-libgcc:
40096@if target-libgcc-bootstrap
40097maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
40098configure-stage3-target-libgcc:
40099 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
40100 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
40101 @r=`${PWD_COMMAND}`; export r; \
40102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40103 TFLAGS="$(STAGE3_TFLAGS)"; \
40104 echo "Checking multilib configuration for libgcc..."; \
22121df0 40105 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40106 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40107 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40108 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40109 else \
40110 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40111 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40112 fi; \
40113 else \
40114 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40115 fi; \
40116 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 40117 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40118 \
40119 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40120 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40121 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40122 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
40123 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40124 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40125 case $(srcdir) in \
40126 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40127 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40128 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40129 esac; \
1b6c0831
L
40130 module_srcdir=libgcc; \
40131 $(SHELL) $$s/$$module_srcdir/configure \
40132 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40133 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40134 --target=${target_alias} \
22121df0 40135 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40136 $(STAGE3_CONFIGURE_FLAGS)
40137@endif target-libgcc-bootstrap
e552509b 40138
a90ef4bf
JM
40139.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
40140maybe-configure-stage4-target-libgcc:
40141@if target-libgcc-bootstrap
40142maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
40143configure-stage4-target-libgcc:
40144 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
40145 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
40146 @r=`${PWD_COMMAND}`; export r; \
e552509b 40147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40148 TFLAGS="$(STAGE4_TFLAGS)"; \
40149 echo "Checking multilib configuration for libgcc..."; \
22121df0 40150 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40151 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40152 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40153 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40154 else \
40155 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40156 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40157 fi; \
40158 else \
40159 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40160 fi; \
40161 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40162 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40163 \
40164 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40165 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40166 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40167 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
40168 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40169 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40170 case $(srcdir) in \
40171 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40172 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40173 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40174 esac; \
1b6c0831
L
40175 module_srcdir=libgcc; \
40176 $(SHELL) $$s/$$module_srcdir/configure \
40177 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40178 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40179 --target=${target_alias} \
22121df0 40180 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40181 $(STAGE4_CONFIGURE_FLAGS)
40182@endif target-libgcc-bootstrap
40183
40184.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
40185maybe-configure-stageprofile-target-libgcc:
40186@if target-libgcc-bootstrap
40187maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
40188configure-stageprofile-target-libgcc:
40189 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
40190 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
40191 @r=`${PWD_COMMAND}`; export r; \
e552509b 40192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40193 TFLAGS="$(STAGEprofile_TFLAGS)"; \
40194 echo "Checking multilib configuration for libgcc..."; \
22121df0 40195 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40196 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40197 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40198 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40199 else \
40200 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40201 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40202 fi; \
40203 else \
40204 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40205 fi; \
40206 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40207 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40208 \
40209 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40210 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40211 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40212 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
40213 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40214 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40215 case $(srcdir) in \
40216 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40217 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40218 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40219 esac; \
1b6c0831
L
40220 module_srcdir=libgcc; \
40221 $(SHELL) $$s/$$module_srcdir/configure \
40222 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40223 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40224 --target=${target_alias} \
22121df0 40225 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40226 $(STAGEprofile_CONFIGURE_FLAGS)
40227@endif target-libgcc-bootstrap
e552509b 40228
a90ef4bf
JM
40229.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
40230maybe-configure-stagefeedback-target-libgcc:
40231@if target-libgcc-bootstrap
40232maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
40233configure-stagefeedback-target-libgcc:
40234 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
40235 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
40236 @r=`${PWD_COMMAND}`; export r; \
e552509b 40237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40238 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
40239 echo "Checking multilib configuration for libgcc..."; \
22121df0 40240 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40241 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40242 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40243 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
40244 else \
40245 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40246 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40247 fi; \
40248 else \
40249 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
40250 fi; \
40251 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 40252 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40253 \
40254 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
40255 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
40256 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
40257 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
40258 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
40259 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
40260 case $(srcdir) in \
40261 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40262 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
40263 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40264 esac; \
1b6c0831
L
40265 module_srcdir=libgcc; \
40266 $(SHELL) $$s/$$module_srcdir/configure \
40267 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40268 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40269 --target=${target_alias} \
22121df0 40270 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
40271 $(STAGEfeedback_CONFIGURE_FLAGS)
40272@endif target-libgcc-bootstrap
e552509b 40273
e552509b 40274
e552509b 40275
e552509b 40276
e552509b 40277
a90ef4bf
JM
40278.PHONY: all-target-libgcc maybe-all-target-libgcc
40279maybe-all-target-libgcc:
40280@if gcc-bootstrap
40281all-target-libgcc: stage_current
40282@endif gcc-bootstrap
40283@if target-libgcc
40284TARGET-target-libgcc=all
40285maybe-all-target-libgcc: all-target-libgcc
40286all-target-libgcc: configure-target-libgcc
40287 @r=`${PWD_COMMAND}`; export r; \
e552509b 40288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40289 $(NORMAL_TARGET_EXPORTS) \
40290 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40291 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40292 $(TARGET-target-libgcc))
40293@endif target-libgcc
e552509b 40294
e552509b 40295
e552509b 40296
a90ef4bf
JM
40297.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
40298.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
40299maybe-all-stage1-target-libgcc:
40300maybe-clean-stage1-target-libgcc:
40301@if target-libgcc-bootstrap
40302maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
40303all-stage1: all-stage1-target-libgcc
40304TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
40305all-stage1-target-libgcc: configure-stage1-target-libgcc
40306 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
40307 @r=`${PWD_COMMAND}`; export r; \
e552509b 40308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40309 TFLAGS="$(STAGE1_TFLAGS)"; \
40310 $(NORMAL_TARGET_EXPORTS) \
40311 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40312 \
a90ef4bf
JM
40313 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40314 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40315 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40316 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40317 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40318 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40319 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
40320 $(EXTRA_TARGET_FLAGS) \
40321 \
05a13254 40322 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 40323 $(TARGET-stage1-target-libgcc)
e552509b 40324
a90ef4bf
JM
40325maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
40326clean-stage1: clean-stage1-target-libgcc
40327clean-stage1-target-libgcc:
40328 @if [ $(current_stage) = stage1 ]; then \
40329 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40330 else \
40331 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
40332 $(MAKE) stage1-start; \
40333 fi; \
40334 cd $(TARGET_SUBDIR)/libgcc && \
40335 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 40336 clean
a90ef4bf 40337@endif target-libgcc-bootstrap
e552509b 40338
e552509b 40339
a90ef4bf
JM
40340.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
40341.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
40342maybe-all-stage2-target-libgcc:
40343maybe-clean-stage2-target-libgcc:
40344@if target-libgcc-bootstrap
40345maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
40346all-stage2: all-stage2-target-libgcc
40347TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
40348all-stage2-target-libgcc: configure-stage2-target-libgcc
40349 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
40350 @r=`${PWD_COMMAND}`; export r; \
e552509b 40351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40352 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 40353 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40354 \
40355 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40356 \
a90ef4bf
JM
40357 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40358 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40359 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40360 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40361 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40362 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40363 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40364 $(EXTRA_TARGET_FLAGS) \
05a13254 40365 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 40366 $(TARGET-stage2-target-libgcc)
e552509b 40367
a90ef4bf
JM
40368maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
40369clean-stage2: clean-stage2-target-libgcc
40370clean-stage2-target-libgcc:
40371 @if [ $(current_stage) = stage2 ]; then \
40372 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40373 else \
40374 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
40375 $(MAKE) stage2-start; \
40376 fi; \
40377 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40378 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40379@endif target-libgcc-bootstrap
e552509b 40380
e552509b 40381
a90ef4bf
JM
40382.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
40383.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
40384maybe-all-stage3-target-libgcc:
40385maybe-clean-stage3-target-libgcc:
40386@if target-libgcc-bootstrap
40387maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
40388all-stage3: all-stage3-target-libgcc
40389TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
40390all-stage3-target-libgcc: configure-stage3-target-libgcc
40391 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
40392 @r=`${PWD_COMMAND}`; export r; \
e552509b 40393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40394 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 40395 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40396 \
40397 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40398 \
a90ef4bf
JM
40399 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40400 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40401 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40402 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40403 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40404 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40405 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40406 $(EXTRA_TARGET_FLAGS) \
05a13254 40407 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 40408 $(TARGET-stage3-target-libgcc)
e552509b 40409
a90ef4bf
JM
40410maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
40411clean-stage3: clean-stage3-target-libgcc
40412clean-stage3-target-libgcc:
40413 @if [ $(current_stage) = stage3 ]; then \
40414 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40415 else \
40416 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
40417 $(MAKE) stage3-start; \
40418 fi; \
40419 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40420 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40421@endif target-libgcc-bootstrap
e552509b 40422
e552509b 40423
a90ef4bf
JM
40424.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
40425.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
40426maybe-all-stage4-target-libgcc:
40427maybe-clean-stage4-target-libgcc:
40428@if target-libgcc-bootstrap
40429maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
40430all-stage4: all-stage4-target-libgcc
40431TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
40432all-stage4-target-libgcc: configure-stage4-target-libgcc
40433 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
40434 @r=`${PWD_COMMAND}`; export r; \
e552509b 40435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40436 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 40437 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40438 \
40439 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40440 \
a90ef4bf
JM
40441 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40442 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40443 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40444 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40445 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40446 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40447 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40448 $(EXTRA_TARGET_FLAGS) \
05a13254 40449 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 40450 $(TARGET-stage4-target-libgcc)
e552509b 40451
a90ef4bf
JM
40452maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
40453clean-stage4: clean-stage4-target-libgcc
40454clean-stage4-target-libgcc:
40455 @if [ $(current_stage) = stage4 ]; then \
40456 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40457 else \
40458 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
40459 $(MAKE) stage4-start; \
40460 fi; \
40461 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40462 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40463@endif target-libgcc-bootstrap
e552509b
ILT
40464
40465
a90ef4bf
JM
40466.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
40467.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
40468maybe-all-stageprofile-target-libgcc:
40469maybe-clean-stageprofile-target-libgcc:
40470@if target-libgcc-bootstrap
40471maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
40472all-stageprofile: all-stageprofile-target-libgcc
40473TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
40474all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
40475 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
40476 @r=`${PWD_COMMAND}`; export r; \
40477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40478 TFLAGS="$(STAGEprofile_TFLAGS)"; \
40479 $(NORMAL_TARGET_EXPORTS) \
40480 \
40481 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40482 \
a90ef4bf
JM
40483 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40484 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40485 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40486 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40487 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40488 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40489 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40490 $(EXTRA_TARGET_FLAGS) \
05a13254 40491 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
40492 $(TARGET-stageprofile-target-libgcc)
40493
40494maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
40495clean-stageprofile: clean-stageprofile-target-libgcc
40496clean-stageprofile-target-libgcc:
40497 @if [ $(current_stage) = stageprofile ]; then \
40498 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 40499 else \
a90ef4bf
JM
40500 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
40501 $(MAKE) stageprofile-start; \
c52c6897 40502 fi; \
a90ef4bf 40503 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40504 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40505@endif target-libgcc-bootstrap
d545f33b
PB
40506
40507
a90ef4bf
JM
40508.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
40509.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
40510maybe-all-stagefeedback-target-libgcc:
40511maybe-clean-stagefeedback-target-libgcc:
40512@if target-libgcc-bootstrap
40513maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
40514all-stagefeedback: all-stagefeedback-target-libgcc
40515TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
40516all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
40517 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
40518 @r=`${PWD_COMMAND}`; export r; \
40519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
40520 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
40521 $(NORMAL_TARGET_EXPORTS) \
40522 \
40523 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 40524 \
a90ef4bf
JM
40525 $(MAKE) $(BASE_FLAGS_TO_PASS) \
40526 CFLAGS="$(CFLAGS_FOR_TARGET)" \
40527 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
40528 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
40529 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
40530 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
40531 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
40532 $(EXTRA_TARGET_FLAGS) \
05a13254 40533 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
40534 $(TARGET-stagefeedback-target-libgcc)
40535
40536maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
40537clean-stagefeedback: clean-stagefeedback-target-libgcc
40538clean-stagefeedback-target-libgcc:
40539 @if [ $(current_stage) = stagefeedback ]; then \
40540 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
40541 else \
40542 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
40543 $(MAKE) stagefeedback-start; \
40544 fi; \
40545 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 40546 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 40547@endif target-libgcc-bootstrap
4b1cb4fe 40548
a7254363
PB
40549
40550
d545f33b
PB
40551
40552
4b1cb4fe 40553
a90ef4bf
JM
40554.PHONY: check-target-libgcc maybe-check-target-libgcc
40555maybe-check-target-libgcc:
40556@if target-libgcc
40557maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 40558
a90ef4bf
JM
40559# Dummy target for uncheckable module.
40560check-target-libgcc:
4b1cb4fe 40561
a90ef4bf 40562@endif target-libgcc
4b1cb4fe 40563
a90ef4bf
JM
40564.PHONY: install-target-libgcc maybe-install-target-libgcc
40565maybe-install-target-libgcc:
40566@if target-libgcc
40567maybe-install-target-libgcc: install-target-libgcc
40568
40569install-target-libgcc: installdirs
0aed8855 40570 @: $(MAKE); $(unstage)
4b1cb4fe
DD
40571 @r=`${PWD_COMMAND}`; export r; \
40572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40573 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40574 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 40575 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 40576
a90ef4bf 40577@endif target-libgcc
4b1cb4fe 40578
a90ef4bf
JM
40579.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
40580maybe-install-strip-target-libgcc:
40581@if target-libgcc
40582maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 40583
a90ef4bf 40584install-strip-target-libgcc: installdirs
9b980aa1
RW
40585 @: $(MAKE); $(unstage)
40586 @r=`${PWD_COMMAND}`; export r; \
40587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40588 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40589 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
40590 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40591
a90ef4bf 40592@endif target-libgcc
9b980aa1 40593
56a8fe78 40594# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 40595
a90ef4bf
JM
40596.PHONY: maybe-info-target-libgcc info-target-libgcc
40597maybe-info-target-libgcc:
40598@if target-libgcc
40599maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 40600
a90ef4bf
JM
40601info-target-libgcc: \
40602 configure-target-libgcc
0aed8855 40603 @: $(MAKE); $(unstage)
22121df0 40604 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40605 r=`${PWD_COMMAND}`; export r; \
40606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40607 $(NORMAL_TARGET_EXPORTS) \
22121df0 40608 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40609 for flag in $(EXTRA_TARGET_FLAGS); do \
40610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40611 done; \
a90ef4bf 40612 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40615 "RANLIB=$${RANLIB}" \
0c24b341 40616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40617 info) \
4b1cb4fe
DD
40618 || exit 1
40619
a90ef4bf 40620@endif target-libgcc
4b1cb4fe 40621
a90ef4bf
JM
40622.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
40623maybe-dvi-target-libgcc:
40624@if target-libgcc
40625maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 40626
a90ef4bf
JM
40627dvi-target-libgcc: \
40628 configure-target-libgcc
0aed8855 40629 @: $(MAKE); $(unstage)
22121df0 40630 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40631 r=`${PWD_COMMAND}`; export r; \
40632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40633 $(NORMAL_TARGET_EXPORTS) \
22121df0 40634 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40635 for flag in $(EXTRA_TARGET_FLAGS); do \
40636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40637 done; \
a90ef4bf 40638 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40641 "RANLIB=$${RANLIB}" \
0c24b341 40642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40643 dvi) \
4b1cb4fe
DD
40644 || exit 1
40645
a90ef4bf 40646@endif target-libgcc
4b1cb4fe 40647
a90ef4bf
JM
40648.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
40649maybe-pdf-target-libgcc:
40650@if target-libgcc
40651maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 40652
a90ef4bf
JM
40653pdf-target-libgcc: \
40654 configure-target-libgcc
56a8fe78 40655 @: $(MAKE); $(unstage)
22121df0 40656 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
40657 r=`${PWD_COMMAND}`; export r; \
40658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40659 $(NORMAL_TARGET_EXPORTS) \
22121df0 40660 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
40661 for flag in $(EXTRA_TARGET_FLAGS); do \
40662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40663 done; \
a90ef4bf 40664 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
40665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40667 "RANLIB=$${RANLIB}" \
0c24b341 40668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40669 pdf) \
40670 || exit 1
40671
a90ef4bf 40672@endif target-libgcc
56a8fe78 40673
a90ef4bf
JM
40674.PHONY: maybe-html-target-libgcc html-target-libgcc
40675maybe-html-target-libgcc:
40676@if target-libgcc
40677maybe-html-target-libgcc: html-target-libgcc
6d389afc 40678
a90ef4bf
JM
40679html-target-libgcc: \
40680 configure-target-libgcc
0aed8855 40681 @: $(MAKE); $(unstage)
22121df0 40682 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
40683 r=`${PWD_COMMAND}`; export r; \
40684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 40685 $(NORMAL_TARGET_EXPORTS) \
22121df0 40686 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
40687 for flag in $(EXTRA_TARGET_FLAGS); do \
40688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40689 done; \
a90ef4bf 40690 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
40691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40693 "RANLIB=$${RANLIB}" \
0c24b341 40694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
40695 html) \
40696 || exit 1
40697
a90ef4bf 40698@endif target-libgcc
6d389afc 40699
a90ef4bf
JM
40700.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
40701maybe-TAGS-target-libgcc:
40702@if target-libgcc
40703maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 40704
a90ef4bf
JM
40705TAGS-target-libgcc: \
40706 configure-target-libgcc
0aed8855 40707 @: $(MAKE); $(unstage)
22121df0 40708 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40709 r=`${PWD_COMMAND}`; export r; \
40710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40711 $(NORMAL_TARGET_EXPORTS) \
22121df0 40712 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40713 for flag in $(EXTRA_TARGET_FLAGS); do \
40714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40715 done; \
a90ef4bf 40716 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40719 "RANLIB=$${RANLIB}" \
0c24b341 40720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40721 TAGS) \
4b1cb4fe
DD
40722 || exit 1
40723
a90ef4bf 40724@endif target-libgcc
4b1cb4fe 40725
a90ef4bf
JM
40726.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
40727maybe-install-info-target-libgcc:
40728@if target-libgcc
40729maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 40730
a90ef4bf
JM
40731install-info-target-libgcc: \
40732 configure-target-libgcc \
40733 info-target-libgcc
0aed8855 40734 @: $(MAKE); $(unstage)
22121df0 40735 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40736 r=`${PWD_COMMAND}`; export r; \
40737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40738 $(NORMAL_TARGET_EXPORTS) \
22121df0 40739 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40740 for flag in $(EXTRA_TARGET_FLAGS); do \
40741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40742 done; \
a90ef4bf 40743 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40746 "RANLIB=$${RANLIB}" \
0c24b341 40747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40748 install-info) \
4b1cb4fe
DD
40749 || exit 1
40750
a90ef4bf 40751@endif target-libgcc
4b1cb4fe 40752
a90ef4bf
JM
40753.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
40754maybe-install-pdf-target-libgcc:
40755@if target-libgcc
40756maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 40757
a90ef4bf
JM
40758install-pdf-target-libgcc: \
40759 configure-target-libgcc \
40760 pdf-target-libgcc
a3ca38d2 40761 @: $(MAKE); $(unstage)
22121df0 40762 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
40763 r=`${PWD_COMMAND}`; export r; \
40764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40765 $(NORMAL_TARGET_EXPORTS) \
22121df0 40766 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
40767 for flag in $(EXTRA_TARGET_FLAGS); do \
40768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40769 done; \
a90ef4bf 40770 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
40771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40773 "RANLIB=$${RANLIB}" \
0c24b341 40774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40775 install-pdf) \
40776 || exit 1
40777
a90ef4bf 40778@endif target-libgcc
a3ca38d2 40779
a90ef4bf
JM
40780.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
40781maybe-install-html-target-libgcc:
40782@if target-libgcc
40783maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 40784
a90ef4bf
JM
40785install-html-target-libgcc: \
40786 configure-target-libgcc \
40787 html-target-libgcc
108a6f8e 40788 @: $(MAKE); $(unstage)
22121df0 40789 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
40790 r=`${PWD_COMMAND}`; export r; \
40791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40792 $(NORMAL_TARGET_EXPORTS) \
22121df0 40793 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
40794 for flag in $(EXTRA_TARGET_FLAGS); do \
40795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40796 done; \
a90ef4bf 40797 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
40798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40800 "RANLIB=$${RANLIB}" \
0c24b341 40801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
40802 install-html) \
40803 || exit 1
40804
a90ef4bf 40805@endif target-libgcc
108a6f8e 40806
a90ef4bf
JM
40807.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
40808maybe-installcheck-target-libgcc:
40809@if target-libgcc
40810maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 40811
a90ef4bf
JM
40812installcheck-target-libgcc: \
40813 configure-target-libgcc
0aed8855 40814 @: $(MAKE); $(unstage)
22121df0 40815 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40816 r=`${PWD_COMMAND}`; export r; \
40817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40818 $(NORMAL_TARGET_EXPORTS) \
22121df0 40819 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40820 for flag in $(EXTRA_TARGET_FLAGS); do \
40821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40822 done; \
a90ef4bf 40823 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40826 "RANLIB=$${RANLIB}" \
0c24b341 40827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40828 installcheck) \
4b1cb4fe
DD
40829 || exit 1
40830
a90ef4bf 40831@endif target-libgcc
4b1cb4fe 40832
a90ef4bf
JM
40833.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
40834maybe-mostlyclean-target-libgcc:
40835@if target-libgcc
40836maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 40837
a90ef4bf 40838mostlyclean-target-libgcc:
0aed8855 40839 @: $(MAKE); $(unstage)
22121df0 40840 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40841 r=`${PWD_COMMAND}`; export r; \
40842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40843 $(NORMAL_TARGET_EXPORTS) \
22121df0 40844 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40845 for flag in $(EXTRA_TARGET_FLAGS); do \
40846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40847 done; \
a90ef4bf 40848 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40851 "RANLIB=$${RANLIB}" \
0c24b341 40852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40853 mostlyclean) \
4b1cb4fe
DD
40854 || exit 1
40855
a90ef4bf 40856@endif target-libgcc
4b1cb4fe 40857
a90ef4bf
JM
40858.PHONY: maybe-clean-target-libgcc clean-target-libgcc
40859maybe-clean-target-libgcc:
40860@if target-libgcc
40861maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 40862
a90ef4bf 40863clean-target-libgcc:
0aed8855 40864 @: $(MAKE); $(unstage)
22121df0 40865 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40866 r=`${PWD_COMMAND}`; export r; \
40867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40868 $(NORMAL_TARGET_EXPORTS) \
22121df0 40869 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40870 for flag in $(EXTRA_TARGET_FLAGS); do \
40871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40872 done; \
a90ef4bf 40873 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40876 "RANLIB=$${RANLIB}" \
0c24b341 40877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40878 clean) \
4b1cb4fe
DD
40879 || exit 1
40880
a90ef4bf 40881@endif target-libgcc
4b1cb4fe 40882
a90ef4bf
JM
40883.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
40884maybe-distclean-target-libgcc:
40885@if target-libgcc
40886maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 40887
a90ef4bf 40888distclean-target-libgcc:
0aed8855 40889 @: $(MAKE); $(unstage)
22121df0 40890 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40891 r=`${PWD_COMMAND}`; export r; \
40892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40893 $(NORMAL_TARGET_EXPORTS) \
22121df0 40894 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40895 for flag in $(EXTRA_TARGET_FLAGS); do \
40896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40897 done; \
a90ef4bf 40898 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40901 "RANLIB=$${RANLIB}" \
0c24b341 40902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40903 distclean) \
4b1cb4fe
DD
40904 || exit 1
40905
a90ef4bf 40906@endif target-libgcc
4b1cb4fe 40907
a90ef4bf
JM
40908.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
40909maybe-maintainer-clean-target-libgcc:
40910@if target-libgcc
40911maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 40912
a90ef4bf 40913maintainer-clean-target-libgcc:
0aed8855 40914 @: $(MAKE); $(unstage)
22121df0 40915 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
40916 r=`${PWD_COMMAND}`; export r; \
40917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40918 $(NORMAL_TARGET_EXPORTS) \
22121df0 40919 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
40920 for flag in $(EXTRA_TARGET_FLAGS); do \
40921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40922 done; \
a90ef4bf 40923 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
40924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40926 "RANLIB=$${RANLIB}" \
0c24b341 40927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40928 maintainer-clean) \
4b1cb4fe
DD
40929 || exit 1
40930
a90ef4bf 40931@endif target-libgcc
4b1cb4fe
DD
40932
40933
3866be5d 40934
a7254363 40935
e90269c8 40936
2bf680c4
ILT
40937.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
40938maybe-configure-target-libbacktrace:
40939@if gcc-bootstrap
40940configure-target-libbacktrace: stage_current
40941@endif gcc-bootstrap
40942@if target-libbacktrace
40943maybe-configure-target-libbacktrace: configure-target-libbacktrace
40944configure-target-libbacktrace:
40945 @: $(MAKE); $(unstage)
40946 @r=`${PWD_COMMAND}`; export r; \
40947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40948 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
40949 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
40950 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
40951 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
40952 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
40953 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
40954 else \
40955 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
40956 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
40957 fi; \
40958 else \
40959 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
40960 fi; \
40961 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 40962 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
40963 $(NORMAL_TARGET_EXPORTS) \
40964 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
40965 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
40966 case $(srcdir) in \
40967 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40968 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
40969 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40970 esac; \
1b6c0831 40971 module_srcdir=libbacktrace; \
2bf680c4 40972 rm -f no-such-file || : ; \
1b6c0831
L
40973 CONFIG_SITE=no-such-file $(SHELL) \
40974 $$s/$$module_srcdir/configure \
40975 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 40976 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40977 --target=${target_alias} \
2bf680c4
ILT
40978 || exit 1
40979@endif target-libbacktrace
40980
40981
40982
40983
40984
40985.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
40986maybe-all-target-libbacktrace:
40987@if gcc-bootstrap
40988all-target-libbacktrace: stage_current
40989@endif gcc-bootstrap
40990@if target-libbacktrace
40991TARGET-target-libbacktrace=all
40992maybe-all-target-libbacktrace: all-target-libbacktrace
40993all-target-libbacktrace: configure-target-libbacktrace
40994 @: $(MAKE); $(unstage)
40995 @r=`${PWD_COMMAND}`; export r; \
40996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40997 $(NORMAL_TARGET_EXPORTS) \
40998 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 40999 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
41000 $(TARGET-target-libbacktrace))
41001@endif target-libbacktrace
41002
41003
41004
41005
41006
41007.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
41008maybe-check-target-libbacktrace:
41009@if target-libbacktrace
41010maybe-check-target-libbacktrace: check-target-libbacktrace
41011
41012check-target-libbacktrace:
41013 @: $(MAKE); $(unstage)
41014 @r=`${PWD_COMMAND}`; export r; \
41015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41016 $(NORMAL_TARGET_EXPORTS) \
41017 (cd $(TARGET_SUBDIR)/libbacktrace && \
41018 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
41019
41020@endif target-libbacktrace
41021
41022.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
41023maybe-install-target-libbacktrace:
41024@if target-libbacktrace
41025maybe-install-target-libbacktrace: install-target-libbacktrace
41026
41027install-target-libbacktrace: installdirs
41028 @: $(MAKE); $(unstage)
41029 @r=`${PWD_COMMAND}`; export r; \
41030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41031 $(NORMAL_TARGET_EXPORTS) \
41032 (cd $(TARGET_SUBDIR)/libbacktrace && \
41033 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
41034
41035@endif target-libbacktrace
41036
41037.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
41038maybe-install-strip-target-libbacktrace:
41039@if target-libbacktrace
41040maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
41041
41042install-strip-target-libbacktrace: installdirs
41043 @: $(MAKE); $(unstage)
41044 @r=`${PWD_COMMAND}`; export r; \
41045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41046 $(NORMAL_TARGET_EXPORTS) \
41047 (cd $(TARGET_SUBDIR)/libbacktrace && \
41048 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41049
41050@endif target-libbacktrace
41051
41052# Other targets (info, dvi, pdf, etc.)
41053
41054.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
41055maybe-info-target-libbacktrace:
41056@if target-libbacktrace
41057maybe-info-target-libbacktrace: info-target-libbacktrace
41058
41059info-target-libbacktrace: \
41060 configure-target-libbacktrace
41061 @: $(MAKE); $(unstage)
22121df0 41062 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41063 r=`${PWD_COMMAND}`; export r; \
41064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41065 $(NORMAL_TARGET_EXPORTS) \
22121df0 41066 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41067 for flag in $(EXTRA_TARGET_FLAGS); do \
41068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41069 done; \
41070 (cd $(TARGET_SUBDIR)/libbacktrace && \
41071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41073 "RANLIB=$${RANLIB}" \
41074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41075 info) \
41076 || exit 1
41077
41078@endif target-libbacktrace
41079
41080.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
41081maybe-dvi-target-libbacktrace:
41082@if target-libbacktrace
41083maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
41084
41085dvi-target-libbacktrace: \
41086 configure-target-libbacktrace
41087 @: $(MAKE); $(unstage)
22121df0 41088 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41089 r=`${PWD_COMMAND}`; export r; \
41090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41091 $(NORMAL_TARGET_EXPORTS) \
22121df0 41092 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41093 for flag in $(EXTRA_TARGET_FLAGS); do \
41094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41095 done; \
41096 (cd $(TARGET_SUBDIR)/libbacktrace && \
41097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41099 "RANLIB=$${RANLIB}" \
41100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41101 dvi) \
41102 || exit 1
41103
41104@endif target-libbacktrace
41105
41106.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
41107maybe-pdf-target-libbacktrace:
41108@if target-libbacktrace
41109maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
41110
41111pdf-target-libbacktrace: \
41112 configure-target-libbacktrace
41113 @: $(MAKE); $(unstage)
22121df0 41114 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41115 r=`${PWD_COMMAND}`; export r; \
41116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41117 $(NORMAL_TARGET_EXPORTS) \
22121df0 41118 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41119 for flag in $(EXTRA_TARGET_FLAGS); do \
41120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41121 done; \
41122 (cd $(TARGET_SUBDIR)/libbacktrace && \
41123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41125 "RANLIB=$${RANLIB}" \
41126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41127 pdf) \
41128 || exit 1
41129
41130@endif target-libbacktrace
41131
41132.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
41133maybe-html-target-libbacktrace:
41134@if target-libbacktrace
41135maybe-html-target-libbacktrace: html-target-libbacktrace
41136
41137html-target-libbacktrace: \
41138 configure-target-libbacktrace
41139 @: $(MAKE); $(unstage)
22121df0 41140 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41141 r=`${PWD_COMMAND}`; export r; \
41142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41143 $(NORMAL_TARGET_EXPORTS) \
22121df0 41144 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41145 for flag in $(EXTRA_TARGET_FLAGS); do \
41146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41147 done; \
41148 (cd $(TARGET_SUBDIR)/libbacktrace && \
41149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41151 "RANLIB=$${RANLIB}" \
41152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41153 html) \
41154 || exit 1
41155
41156@endif target-libbacktrace
41157
41158.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
41159maybe-TAGS-target-libbacktrace:
41160@if target-libbacktrace
41161maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
41162
41163TAGS-target-libbacktrace: \
41164 configure-target-libbacktrace
41165 @: $(MAKE); $(unstage)
22121df0 41166 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41167 r=`${PWD_COMMAND}`; export r; \
41168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41169 $(NORMAL_TARGET_EXPORTS) \
22121df0 41170 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41171 for flag in $(EXTRA_TARGET_FLAGS); do \
41172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41173 done; \
41174 (cd $(TARGET_SUBDIR)/libbacktrace && \
41175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41177 "RANLIB=$${RANLIB}" \
41178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41179 TAGS) \
41180 || exit 1
41181
41182@endif target-libbacktrace
41183
41184.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
41185maybe-install-info-target-libbacktrace:
41186@if target-libbacktrace
41187maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
41188
41189install-info-target-libbacktrace: \
41190 configure-target-libbacktrace \
41191 info-target-libbacktrace
41192 @: $(MAKE); $(unstage)
22121df0 41193 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41194 r=`${PWD_COMMAND}`; export r; \
41195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41196 $(NORMAL_TARGET_EXPORTS) \
22121df0 41197 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41198 for flag in $(EXTRA_TARGET_FLAGS); do \
41199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41200 done; \
41201 (cd $(TARGET_SUBDIR)/libbacktrace && \
41202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41204 "RANLIB=$${RANLIB}" \
41205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41206 install-info) \
41207 || exit 1
41208
41209@endif target-libbacktrace
41210
41211.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
41212maybe-install-pdf-target-libbacktrace:
41213@if target-libbacktrace
41214maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
41215
41216install-pdf-target-libbacktrace: \
41217 configure-target-libbacktrace \
41218 pdf-target-libbacktrace
41219 @: $(MAKE); $(unstage)
22121df0 41220 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41221 r=`${PWD_COMMAND}`; export r; \
41222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41223 $(NORMAL_TARGET_EXPORTS) \
22121df0 41224 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41225 for flag in $(EXTRA_TARGET_FLAGS); do \
41226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41227 done; \
41228 (cd $(TARGET_SUBDIR)/libbacktrace && \
41229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41231 "RANLIB=$${RANLIB}" \
41232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41233 install-pdf) \
41234 || exit 1
41235
41236@endif target-libbacktrace
41237
41238.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
41239maybe-install-html-target-libbacktrace:
41240@if target-libbacktrace
41241maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
41242
41243install-html-target-libbacktrace: \
41244 configure-target-libbacktrace \
41245 html-target-libbacktrace
41246 @: $(MAKE); $(unstage)
22121df0 41247 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41248 r=`${PWD_COMMAND}`; export r; \
41249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41250 $(NORMAL_TARGET_EXPORTS) \
22121df0 41251 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41252 for flag in $(EXTRA_TARGET_FLAGS); do \
41253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41254 done; \
41255 (cd $(TARGET_SUBDIR)/libbacktrace && \
41256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41258 "RANLIB=$${RANLIB}" \
41259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41260 install-html) \
41261 || exit 1
41262
41263@endif target-libbacktrace
41264
41265.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
41266maybe-installcheck-target-libbacktrace:
41267@if target-libbacktrace
41268maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
41269
41270installcheck-target-libbacktrace: \
41271 configure-target-libbacktrace
41272 @: $(MAKE); $(unstage)
22121df0 41273 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41274 r=`${PWD_COMMAND}`; export r; \
41275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41276 $(NORMAL_TARGET_EXPORTS) \
22121df0 41277 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41278 for flag in $(EXTRA_TARGET_FLAGS); do \
41279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41280 done; \
41281 (cd $(TARGET_SUBDIR)/libbacktrace && \
41282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41284 "RANLIB=$${RANLIB}" \
41285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41286 installcheck) \
41287 || exit 1
41288
41289@endif target-libbacktrace
41290
41291.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
41292maybe-mostlyclean-target-libbacktrace:
41293@if target-libbacktrace
41294maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
41295
41296mostlyclean-target-libbacktrace:
41297 @: $(MAKE); $(unstage)
22121df0 41298 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41299 r=`${PWD_COMMAND}`; export r; \
41300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41301 $(NORMAL_TARGET_EXPORTS) \
22121df0 41302 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41303 for flag in $(EXTRA_TARGET_FLAGS); do \
41304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41305 done; \
41306 (cd $(TARGET_SUBDIR)/libbacktrace && \
41307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41309 "RANLIB=$${RANLIB}" \
41310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41311 mostlyclean) \
41312 || exit 1
41313
41314@endif target-libbacktrace
41315
41316.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
41317maybe-clean-target-libbacktrace:
41318@if target-libbacktrace
41319maybe-clean-target-libbacktrace: clean-target-libbacktrace
41320
41321clean-target-libbacktrace:
41322 @: $(MAKE); $(unstage)
22121df0 41323 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41324 r=`${PWD_COMMAND}`; export r; \
41325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41326 $(NORMAL_TARGET_EXPORTS) \
22121df0 41327 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41328 for flag in $(EXTRA_TARGET_FLAGS); do \
41329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41330 done; \
41331 (cd $(TARGET_SUBDIR)/libbacktrace && \
41332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41334 "RANLIB=$${RANLIB}" \
41335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41336 clean) \
41337 || exit 1
41338
41339@endif target-libbacktrace
41340
41341.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
41342maybe-distclean-target-libbacktrace:
41343@if target-libbacktrace
41344maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
41345
41346distclean-target-libbacktrace:
41347 @: $(MAKE); $(unstage)
22121df0 41348 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41349 r=`${PWD_COMMAND}`; export r; \
41350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41351 $(NORMAL_TARGET_EXPORTS) \
22121df0 41352 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41353 for flag in $(EXTRA_TARGET_FLAGS); do \
41354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41355 done; \
41356 (cd $(TARGET_SUBDIR)/libbacktrace && \
41357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41359 "RANLIB=$${RANLIB}" \
41360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41361 distclean) \
41362 || exit 1
41363
41364@endif target-libbacktrace
41365
41366.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
41367maybe-maintainer-clean-target-libbacktrace:
41368@if target-libbacktrace
41369maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
41370
41371maintainer-clean-target-libbacktrace:
41372 @: $(MAKE); $(unstage)
22121df0 41373 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
41374 r=`${PWD_COMMAND}`; export r; \
41375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41376 $(NORMAL_TARGET_EXPORTS) \
22121df0 41377 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
41378 for flag in $(EXTRA_TARGET_FLAGS); do \
41379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41380 done; \
41381 (cd $(TARGET_SUBDIR)/libbacktrace && \
41382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41384 "RANLIB=$${RANLIB}" \
41385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41386 maintainer-clean) \
41387 || exit 1
41388
41389@endif target-libbacktrace
41390
41391
41392
41393
41394
a90ef4bf
JM
41395.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
41396maybe-configure-target-libquadmath:
4f0ef2d8 41397@if gcc-bootstrap
a90ef4bf 41398configure-target-libquadmath: stage_current
4f0ef2d8 41399@endif gcc-bootstrap
a90ef4bf
JM
41400@if target-libquadmath
41401maybe-configure-target-libquadmath: configure-target-libquadmath
41402configure-target-libquadmath:
0aed8855
PB
41403 @: $(MAKE); $(unstage)
41404 @r=`${PWD_COMMAND}`; export r; \
41405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41406 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
41407 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
41408 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41409 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
41410 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
41411 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 41412 else \
a90ef4bf
JM
41413 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
41414 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
41415 fi; \
41416 else \
a90ef4bf 41417 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 41418 fi; \
a90ef4bf 41419 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 41420 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 41421 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41422 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
41423 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 41424 case $(srcdir) in \
b00612cc 41425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41426 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 41427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 41428 esac; \
1b6c0831 41429 module_srcdir=libquadmath; \
4fa63067 41430 rm -f no-such-file || : ; \
1b6c0831
L
41431 CONFIG_SITE=no-such-file $(SHELL) \
41432 $$s/$$module_srcdir/configure \
41433 --srcdir=$${topdir}/$$module_srcdir \
4b900473 41434 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41435 --target=${target_alias} \
e2b9e2dc 41436 || exit 1
a90ef4bf 41437@endif target-libquadmath
e2b9e2dc 41438
a7254363
PB
41439
41440
d545f33b
PB
41441
41442
a90ef4bf
JM
41443.PHONY: all-target-libquadmath maybe-all-target-libquadmath
41444maybe-all-target-libquadmath:
4f0ef2d8 41445@if gcc-bootstrap
a90ef4bf 41446all-target-libquadmath: stage_current
4f0ef2d8 41447@endif gcc-bootstrap
a90ef4bf
JM
41448@if target-libquadmath
41449TARGET-target-libquadmath=all
41450maybe-all-target-libquadmath: all-target-libquadmath
41451all-target-libquadmath: configure-target-libquadmath
0aed8855 41452 @: $(MAKE); $(unstage)
b40e3958
L
41453 @r=`${PWD_COMMAND}`; export r; \
41454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 41455 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41456 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 41457 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41458 $(TARGET-target-libquadmath))
41459@endif target-libquadmath
3866be5d 41460
a7254363
PB
41461
41462
d545f33b
PB
41463
41464
a90ef4bf
JM
41465.PHONY: check-target-libquadmath maybe-check-target-libquadmath
41466maybe-check-target-libquadmath:
41467@if target-libquadmath
41468maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 41469
a90ef4bf 41470check-target-libquadmath:
0aed8855 41471 @: $(MAKE); $(unstage)
b40e3958
L
41472 @r=`${PWD_COMMAND}`; export r; \
41473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41474 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41475 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 41476 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 41477
a90ef4bf 41478@endif target-libquadmath
3866be5d 41479
a90ef4bf
JM
41480.PHONY: install-target-libquadmath maybe-install-target-libquadmath
41481maybe-install-target-libquadmath:
41482@if target-libquadmath
41483maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 41484
a90ef4bf 41485install-target-libquadmath: installdirs
0aed8855 41486 @: $(MAKE); $(unstage)
b40e3958
L
41487 @r=`${PWD_COMMAND}`; export r; \
41488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41489 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41490 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 41491 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 41492
a90ef4bf 41493@endif target-libquadmath
3866be5d 41494
a90ef4bf
JM
41495.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
41496maybe-install-strip-target-libquadmath:
41497@if target-libquadmath
41498maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 41499
a90ef4bf 41500install-strip-target-libquadmath: installdirs
9b980aa1
RW
41501 @: $(MAKE); $(unstage)
41502 @r=`${PWD_COMMAND}`; export r; \
41503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41504 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41505 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
41506 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41507
a90ef4bf 41508@endif target-libquadmath
9b980aa1 41509
56a8fe78 41510# Other targets (info, dvi, pdf, etc.)
4fa63067 41511
a90ef4bf
JM
41512.PHONY: maybe-info-target-libquadmath info-target-libquadmath
41513maybe-info-target-libquadmath:
41514@if target-libquadmath
41515maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 41516
a90ef4bf
JM
41517info-target-libquadmath: \
41518 configure-target-libquadmath
0aed8855 41519 @: $(MAKE); $(unstage)
22121df0 41520 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41521 r=`${PWD_COMMAND}`; export r; \
b40e3958 41522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41523 $(NORMAL_TARGET_EXPORTS) \
22121df0 41524 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41525 for flag in $(EXTRA_TARGET_FLAGS); do \
41526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41527 done; \
a90ef4bf 41528 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41531 "RANLIB=$${RANLIB}" \
0c24b341 41532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41533 info) \
4fa63067 41534 || exit 1
3866be5d 41535
a90ef4bf 41536@endif target-libquadmath
3866be5d 41537
a90ef4bf
JM
41538.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
41539maybe-dvi-target-libquadmath:
41540@if target-libquadmath
41541maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 41542
a90ef4bf
JM
41543dvi-target-libquadmath: \
41544 configure-target-libquadmath
0aed8855 41545 @: $(MAKE); $(unstage)
22121df0 41546 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41547 r=`${PWD_COMMAND}`; export r; \
b40e3958 41548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41549 $(NORMAL_TARGET_EXPORTS) \
22121df0 41550 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41551 for flag in $(EXTRA_TARGET_FLAGS); do \
41552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41553 done; \
a90ef4bf 41554 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41557 "RANLIB=$${RANLIB}" \
0c24b341 41558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41559 dvi) \
4fa63067 41560 || exit 1
3866be5d 41561
a90ef4bf 41562@endif target-libquadmath
3866be5d 41563
a90ef4bf
JM
41564.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
41565maybe-pdf-target-libquadmath:
41566@if target-libquadmath
41567maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 41568
a90ef4bf
JM
41569pdf-target-libquadmath: \
41570 configure-target-libquadmath
56a8fe78 41571 @: $(MAKE); $(unstage)
22121df0 41572 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
41573 r=`${PWD_COMMAND}`; export r; \
41574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41575 $(NORMAL_TARGET_EXPORTS) \
22121df0 41576 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
41577 for flag in $(EXTRA_TARGET_FLAGS); do \
41578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41579 done; \
a90ef4bf 41580 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
41581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41583 "RANLIB=$${RANLIB}" \
0c24b341 41584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41585 pdf) \
41586 || exit 1
41587
a90ef4bf 41588@endif target-libquadmath
56a8fe78 41589
a90ef4bf
JM
41590.PHONY: maybe-html-target-libquadmath html-target-libquadmath
41591maybe-html-target-libquadmath:
41592@if target-libquadmath
41593maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 41594
a90ef4bf
JM
41595html-target-libquadmath: \
41596 configure-target-libquadmath
0aed8855 41597 @: $(MAKE); $(unstage)
22121df0 41598 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
41599 r=`${PWD_COMMAND}`; export r; \
41600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41601 $(NORMAL_TARGET_EXPORTS) \
22121df0 41602 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
41603 for flag in $(EXTRA_TARGET_FLAGS); do \
41604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41605 done; \
a90ef4bf 41606 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
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}" \
6d389afc
MS
41611 html) \
41612 || exit 1
41613
a90ef4bf 41614@endif target-libquadmath
6d389afc 41615
a90ef4bf
JM
41616.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
41617maybe-TAGS-target-libquadmath:
41618@if target-libquadmath
41619maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 41620
a90ef4bf
JM
41621TAGS-target-libquadmath: \
41622 configure-target-libquadmath
0aed8855 41623 @: $(MAKE); $(unstage)
22121df0 41624 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
41625 r=`${PWD_COMMAND}`; export r; \
41626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41627 $(NORMAL_TARGET_EXPORTS) \
22121df0 41628 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41629 for flag in $(EXTRA_TARGET_FLAGS); do \
41630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41631 done; \
a90ef4bf 41632 (cd $(TARGET_SUBDIR)/libquadmath && \
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 TAGS) \
e2b9e2dc
NN
41638 || exit 1
41639
a90ef4bf 41640@endif target-libquadmath
4fa63067 41641
a90ef4bf
JM
41642.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
41643maybe-install-info-target-libquadmath:
41644@if target-libquadmath
41645maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 41646
a90ef4bf
JM
41647install-info-target-libquadmath: \
41648 configure-target-libquadmath \
41649 info-target-libquadmath
0aed8855 41650 @: $(MAKE); $(unstage)
22121df0 41651 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41652 r=`${PWD_COMMAND}`; export r; \
b40e3958 41653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41654 $(NORMAL_TARGET_EXPORTS) \
22121df0 41655 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41656 for flag in $(EXTRA_TARGET_FLAGS); do \
41657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41658 done; \
a90ef4bf 41659 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41662 "RANLIB=$${RANLIB}" \
0c24b341 41663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41664 install-info) \
4fa63067 41665 || exit 1
3866be5d 41666
a90ef4bf 41667@endif target-libquadmath
3866be5d 41668
a90ef4bf
JM
41669.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
41670maybe-install-pdf-target-libquadmath:
41671@if target-libquadmath
41672maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 41673
a90ef4bf
JM
41674install-pdf-target-libquadmath: \
41675 configure-target-libquadmath \
41676 pdf-target-libquadmath
a3ca38d2 41677 @: $(MAKE); $(unstage)
22121df0 41678 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
41679 r=`${PWD_COMMAND}`; export r; \
41680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41681 $(NORMAL_TARGET_EXPORTS) \
22121df0 41682 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
41683 for flag in $(EXTRA_TARGET_FLAGS); do \
41684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41685 done; \
a90ef4bf 41686 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
41687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41689 "RANLIB=$${RANLIB}" \
0c24b341 41690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41691 install-pdf) \
41692 || exit 1
41693
a90ef4bf 41694@endif target-libquadmath
a3ca38d2 41695
a90ef4bf
JM
41696.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
41697maybe-install-html-target-libquadmath:
41698@if target-libquadmath
41699maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 41700
a90ef4bf
JM
41701install-html-target-libquadmath: \
41702 configure-target-libquadmath \
41703 html-target-libquadmath
108a6f8e 41704 @: $(MAKE); $(unstage)
22121df0 41705 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
41706 r=`${PWD_COMMAND}`; export r; \
41707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41708 $(NORMAL_TARGET_EXPORTS) \
22121df0 41709 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
41710 for flag in $(EXTRA_TARGET_FLAGS); do \
41711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41712 done; \
a90ef4bf 41713 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
41714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41716 "RANLIB=$${RANLIB}" \
0c24b341 41717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41718 install-html) \
41719 || exit 1
41720
a90ef4bf 41721@endif target-libquadmath
108a6f8e 41722
a90ef4bf
JM
41723.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
41724maybe-installcheck-target-libquadmath:
41725@if target-libquadmath
41726maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 41727
a90ef4bf
JM
41728installcheck-target-libquadmath: \
41729 configure-target-libquadmath
0aed8855 41730 @: $(MAKE); $(unstage)
22121df0 41731 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41732 r=`${PWD_COMMAND}`; export r; \
b40e3958 41733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41734 $(NORMAL_TARGET_EXPORTS) \
22121df0 41735 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41736 for flag in $(EXTRA_TARGET_FLAGS); do \
41737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41738 done; \
a90ef4bf 41739 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41742 "RANLIB=$${RANLIB}" \
0c24b341 41743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41744 installcheck) \
4fa63067 41745 || exit 1
3866be5d 41746
a90ef4bf 41747@endif target-libquadmath
3866be5d 41748
a90ef4bf
JM
41749.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
41750maybe-mostlyclean-target-libquadmath:
41751@if target-libquadmath
41752maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 41753
a90ef4bf 41754mostlyclean-target-libquadmath:
0aed8855 41755 @: $(MAKE); $(unstage)
22121df0 41756 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41757 r=`${PWD_COMMAND}`; export r; \
b40e3958 41758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41759 $(NORMAL_TARGET_EXPORTS) \
22121df0 41760 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41761 for flag in $(EXTRA_TARGET_FLAGS); do \
41762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41763 done; \
a90ef4bf 41764 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41767 "RANLIB=$${RANLIB}" \
0c24b341 41768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41769 mostlyclean) \
4fa63067 41770 || exit 1
3866be5d 41771
a90ef4bf 41772@endif target-libquadmath
3866be5d 41773
a90ef4bf
JM
41774.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
41775maybe-clean-target-libquadmath:
41776@if target-libquadmath
41777maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 41778
a90ef4bf 41779clean-target-libquadmath:
0aed8855 41780 @: $(MAKE); $(unstage)
22121df0 41781 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
41782 r=`${PWD_COMMAND}`; export r; \
41783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41784 $(NORMAL_TARGET_EXPORTS) \
22121df0 41785 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41786 for flag in $(EXTRA_TARGET_FLAGS); do \
41787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41788 done; \
a90ef4bf 41789 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41792 "RANLIB=$${RANLIB}" \
0c24b341 41793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41794 clean) \
e2b9e2dc
NN
41795 || exit 1
41796
a90ef4bf 41797@endif target-libquadmath
3866be5d 41798
a90ef4bf
JM
41799.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
41800maybe-distclean-target-libquadmath:
41801@if target-libquadmath
41802maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 41803
a90ef4bf 41804distclean-target-libquadmath:
0aed8855 41805 @: $(MAKE); $(unstage)
22121df0 41806 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41807 r=`${PWD_COMMAND}`; export r; \
b40e3958 41808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41809 $(NORMAL_TARGET_EXPORTS) \
22121df0 41810 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41811 for flag in $(EXTRA_TARGET_FLAGS); do \
41812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41813 done; \
a90ef4bf 41814 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41817 "RANLIB=$${RANLIB}" \
0c24b341 41818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41819 distclean) \
4fa63067 41820 || exit 1
3866be5d 41821
a90ef4bf 41822@endif target-libquadmath
3866be5d 41823
a90ef4bf
JM
41824.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
41825maybe-maintainer-clean-target-libquadmath:
41826@if target-libquadmath
41827maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 41828
a90ef4bf 41829maintainer-clean-target-libquadmath:
0aed8855 41830 @: $(MAKE); $(unstage)
22121df0 41831 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 41832 r=`${PWD_COMMAND}`; export r; \
b40e3958 41833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41834 $(NORMAL_TARGET_EXPORTS) \
22121df0 41835 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
41836 for flag in $(EXTRA_TARGET_FLAGS); do \
41837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41838 done; \
a90ef4bf 41839 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
41840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41842 "RANLIB=$${RANLIB}" \
0c24b341 41843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41844 maintainer-clean) \
4fa63067 41845 || exit 1
3866be5d 41846
a90ef4bf 41847@endif target-libquadmath
3866be5d 41848
4fa63067 41849
4fa63067 41850
a7254363 41851
e90269c8 41852
a90ef4bf
JM
41853.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
41854maybe-configure-target-libgfortran:
e552509b 41855@if gcc-bootstrap
a90ef4bf 41856configure-target-libgfortran: stage_current
e552509b 41857@endif gcc-bootstrap
a90ef4bf
JM
41858@if target-libgfortran
41859maybe-configure-target-libgfortran: configure-target-libgfortran
41860configure-target-libgfortran:
e552509b
ILT
41861 @: $(MAKE); $(unstage)
41862 @r=`${PWD_COMMAND}`; export r; \
41863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41864 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
41865 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
41866 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41867 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
41868 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
41869 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 41870 else \
a90ef4bf
JM
41871 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
41872 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
41873 fi; \
41874 else \
a90ef4bf 41875 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 41876 fi; \
a90ef4bf 41877 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 41878 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 41879 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41880 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
41881 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
41882 case $(srcdir) in \
41883 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 41884 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
41885 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41886 esac; \
1b6c0831 41887 module_srcdir=libgfortran; \
e552509b 41888 rm -f no-such-file || : ; \
1b6c0831
L
41889 CONFIG_SITE=no-such-file $(SHELL) \
41890 $$s/$$module_srcdir/configure \
41891 --srcdir=$${topdir}/$$module_srcdir \
e552509b 41892 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41893 --target=${target_alias} \
e552509b 41894 || exit 1
a90ef4bf 41895@endif target-libgfortran
e552509b
ILT
41896
41897
41898
41899
41900
a90ef4bf
JM
41901.PHONY: all-target-libgfortran maybe-all-target-libgfortran
41902maybe-all-target-libgfortran:
e552509b 41903@if gcc-bootstrap
a90ef4bf 41904all-target-libgfortran: stage_current
e552509b 41905@endif gcc-bootstrap
a90ef4bf
JM
41906@if target-libgfortran
41907TARGET-target-libgfortran=all
41908maybe-all-target-libgfortran: all-target-libgfortran
41909all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
41910 @: $(MAKE); $(unstage)
41911 @r=`${PWD_COMMAND}`; export r; \
41912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41913 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41914 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 41915 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41916 $(TARGET-target-libgfortran))
41917@endif target-libgfortran
e552509b
ILT
41918
41919
41920
41921
41922
a90ef4bf
JM
41923.PHONY: check-target-libgfortran maybe-check-target-libgfortran
41924maybe-check-target-libgfortran:
41925@if target-libgfortran
41926maybe-check-target-libgfortran: check-target-libgfortran
e552509b 41927
a90ef4bf 41928check-target-libgfortran:
e552509b
ILT
41929 @: $(MAKE); $(unstage)
41930 @r=`${PWD_COMMAND}`; export r; \
41931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41932 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41933 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41934 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
41935
a90ef4bf 41936@endif target-libgfortran
e552509b 41937
a90ef4bf
JM
41938.PHONY: install-target-libgfortran maybe-install-target-libgfortran
41939maybe-install-target-libgfortran:
41940@if target-libgfortran
41941maybe-install-target-libgfortran: install-target-libgfortran
e552509b 41942
a90ef4bf 41943install-target-libgfortran: installdirs
e552509b
ILT
41944 @: $(MAKE); $(unstage)
41945 @r=`${PWD_COMMAND}`; export r; \
41946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41947 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41948 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41949 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
41950
a90ef4bf 41951@endif target-libgfortran
e552509b 41952
a90ef4bf
JM
41953.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
41954maybe-install-strip-target-libgfortran:
41955@if target-libgfortran
41956maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 41957
a90ef4bf 41958install-strip-target-libgfortran: installdirs
9b980aa1
RW
41959 @: $(MAKE); $(unstage)
41960 @r=`${PWD_COMMAND}`; export r; \
41961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41962 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41963 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
41964 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41965
a90ef4bf 41966@endif target-libgfortran
9b980aa1 41967
e552509b
ILT
41968# Other targets (info, dvi, pdf, etc.)
41969
a90ef4bf
JM
41970.PHONY: maybe-info-target-libgfortran info-target-libgfortran
41971maybe-info-target-libgfortran:
41972@if target-libgfortran
41973maybe-info-target-libgfortran: info-target-libgfortran
e552509b 41974
a90ef4bf
JM
41975info-target-libgfortran: \
41976 configure-target-libgfortran
e552509b 41977 @: $(MAKE); $(unstage)
22121df0 41978 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
41979 r=`${PWD_COMMAND}`; export r; \
41980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41981 $(NORMAL_TARGET_EXPORTS) \
22121df0 41982 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
41983 for flag in $(EXTRA_TARGET_FLAGS); do \
41984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41985 done; \
a90ef4bf 41986 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
41987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41989 "RANLIB=$${RANLIB}" \
41990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
41991 info) \
41992 || exit 1
41993
a90ef4bf 41994@endif target-libgfortran
e552509b 41995
a90ef4bf
JM
41996.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
41997maybe-dvi-target-libgfortran:
41998@if target-libgfortran
41999maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 42000
a90ef4bf
JM
42001dvi-target-libgfortran: \
42002 configure-target-libgfortran
e552509b 42003 @: $(MAKE); $(unstage)
22121df0 42004 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42005 r=`${PWD_COMMAND}`; export r; \
42006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42007 $(NORMAL_TARGET_EXPORTS) \
22121df0 42008 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42009 for flag in $(EXTRA_TARGET_FLAGS); do \
42010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42011 done; \
a90ef4bf 42012 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42015 "RANLIB=$${RANLIB}" \
42016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42017 dvi) \
42018 || exit 1
42019
a90ef4bf 42020@endif target-libgfortran
e552509b 42021
a90ef4bf
JM
42022.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
42023maybe-pdf-target-libgfortran:
42024@if target-libgfortran
42025maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 42026
a90ef4bf
JM
42027pdf-target-libgfortran: \
42028 configure-target-libgfortran
e552509b 42029 @: $(MAKE); $(unstage)
22121df0 42030 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42031 r=`${PWD_COMMAND}`; export r; \
42032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42033 $(NORMAL_TARGET_EXPORTS) \
22121df0 42034 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42035 for flag in $(EXTRA_TARGET_FLAGS); do \
42036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42037 done; \
a90ef4bf 42038 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42041 "RANLIB=$${RANLIB}" \
42042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42043 pdf) \
42044 || exit 1
42045
a90ef4bf 42046@endif target-libgfortran
e552509b 42047
a90ef4bf
JM
42048.PHONY: maybe-html-target-libgfortran html-target-libgfortran
42049maybe-html-target-libgfortran:
42050@if target-libgfortran
42051maybe-html-target-libgfortran: html-target-libgfortran
e552509b 42052
a90ef4bf
JM
42053html-target-libgfortran: \
42054 configure-target-libgfortran
e552509b 42055 @: $(MAKE); $(unstage)
22121df0 42056 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42057 r=`${PWD_COMMAND}`; export r; \
42058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42059 $(NORMAL_TARGET_EXPORTS) \
22121df0 42060 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42061 for flag in $(EXTRA_TARGET_FLAGS); do \
42062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42063 done; \
a90ef4bf 42064 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42067 "RANLIB=$${RANLIB}" \
42068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42069 html) \
42070 || exit 1
42071
a90ef4bf 42072@endif target-libgfortran
e552509b 42073
a90ef4bf
JM
42074.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
42075maybe-TAGS-target-libgfortran:
42076@if target-libgfortran
42077maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 42078
a90ef4bf
JM
42079TAGS-target-libgfortran: \
42080 configure-target-libgfortran
e552509b 42081 @: $(MAKE); $(unstage)
22121df0 42082 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42083 r=`${PWD_COMMAND}`; export r; \
42084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42085 $(NORMAL_TARGET_EXPORTS) \
22121df0 42086 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42087 for flag in $(EXTRA_TARGET_FLAGS); do \
42088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42089 done; \
a90ef4bf 42090 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42093 "RANLIB=$${RANLIB}" \
42094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42095 TAGS) \
42096 || exit 1
42097
a90ef4bf 42098@endif target-libgfortran
e552509b 42099
a90ef4bf
JM
42100.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
42101maybe-install-info-target-libgfortran:
42102@if target-libgfortran
42103maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 42104
a90ef4bf
JM
42105install-info-target-libgfortran: \
42106 configure-target-libgfortran \
42107 info-target-libgfortran
e552509b 42108 @: $(MAKE); $(unstage)
22121df0 42109 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42110 r=`${PWD_COMMAND}`; export r; \
42111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42112 $(NORMAL_TARGET_EXPORTS) \
22121df0 42113 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42114 for flag in $(EXTRA_TARGET_FLAGS); do \
42115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42116 done; \
a90ef4bf 42117 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42120 "RANLIB=$${RANLIB}" \
42121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42122 install-info) \
42123 || exit 1
42124
a90ef4bf 42125@endif target-libgfortran
e552509b 42126
a90ef4bf
JM
42127.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
42128maybe-install-pdf-target-libgfortran:
42129@if target-libgfortran
42130maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 42131
a90ef4bf
JM
42132install-pdf-target-libgfortran: \
42133 configure-target-libgfortran \
42134 pdf-target-libgfortran
e552509b 42135 @: $(MAKE); $(unstage)
22121df0 42136 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42137 r=`${PWD_COMMAND}`; export r; \
42138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42139 $(NORMAL_TARGET_EXPORTS) \
22121df0 42140 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42141 for flag in $(EXTRA_TARGET_FLAGS); do \
42142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42143 done; \
a90ef4bf 42144 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42147 "RANLIB=$${RANLIB}" \
42148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42149 install-pdf) \
42150 || exit 1
42151
a90ef4bf 42152@endif target-libgfortran
e552509b 42153
a90ef4bf
JM
42154.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
42155maybe-install-html-target-libgfortran:
42156@if target-libgfortran
42157maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 42158
a90ef4bf
JM
42159install-html-target-libgfortran: \
42160 configure-target-libgfortran \
42161 html-target-libgfortran
e552509b 42162 @: $(MAKE); $(unstage)
22121df0 42163 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42164 r=`${PWD_COMMAND}`; export r; \
42165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42166 $(NORMAL_TARGET_EXPORTS) \
22121df0 42167 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42168 for flag in $(EXTRA_TARGET_FLAGS); do \
42169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42170 done; \
a90ef4bf 42171 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42174 "RANLIB=$${RANLIB}" \
42175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42176 install-html) \
42177 || exit 1
42178
a90ef4bf 42179@endif target-libgfortran
e552509b 42180
a90ef4bf
JM
42181.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
42182maybe-installcheck-target-libgfortran:
42183@if target-libgfortran
42184maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 42185
a90ef4bf
JM
42186installcheck-target-libgfortran: \
42187 configure-target-libgfortran
e552509b 42188 @: $(MAKE); $(unstage)
22121df0 42189 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42190 r=`${PWD_COMMAND}`; export r; \
42191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42192 $(NORMAL_TARGET_EXPORTS) \
22121df0 42193 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42194 for flag in $(EXTRA_TARGET_FLAGS); do \
42195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42196 done; \
a90ef4bf 42197 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42200 "RANLIB=$${RANLIB}" \
42201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42202 installcheck) \
42203 || exit 1
42204
a90ef4bf 42205@endif target-libgfortran
e552509b 42206
a90ef4bf
JM
42207.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
42208maybe-mostlyclean-target-libgfortran:
42209@if target-libgfortran
42210maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 42211
a90ef4bf 42212mostlyclean-target-libgfortran:
e552509b 42213 @: $(MAKE); $(unstage)
22121df0 42214 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42215 r=`${PWD_COMMAND}`; export r; \
42216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42217 $(NORMAL_TARGET_EXPORTS) \
22121df0 42218 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42219 for flag in $(EXTRA_TARGET_FLAGS); do \
42220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42221 done; \
a90ef4bf 42222 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42225 "RANLIB=$${RANLIB}" \
42226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42227 mostlyclean) \
42228 || exit 1
42229
a90ef4bf 42230@endif target-libgfortran
e552509b 42231
a90ef4bf
JM
42232.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
42233maybe-clean-target-libgfortran:
42234@if target-libgfortran
42235maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 42236
a90ef4bf 42237clean-target-libgfortran:
e552509b 42238 @: $(MAKE); $(unstage)
22121df0 42239 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42240 r=`${PWD_COMMAND}`; export r; \
42241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42242 $(NORMAL_TARGET_EXPORTS) \
22121df0 42243 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42244 for flag in $(EXTRA_TARGET_FLAGS); do \
42245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42246 done; \
a90ef4bf 42247 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42250 "RANLIB=$${RANLIB}" \
42251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42252 clean) \
42253 || exit 1
42254
a90ef4bf 42255@endif target-libgfortran
e552509b 42256
a90ef4bf
JM
42257.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
42258maybe-distclean-target-libgfortran:
42259@if target-libgfortran
42260maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 42261
a90ef4bf 42262distclean-target-libgfortran:
e552509b 42263 @: $(MAKE); $(unstage)
22121df0 42264 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42265 r=`${PWD_COMMAND}`; export r; \
42266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42267 $(NORMAL_TARGET_EXPORTS) \
22121df0 42268 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42269 for flag in $(EXTRA_TARGET_FLAGS); do \
42270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42271 done; \
a90ef4bf 42272 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42275 "RANLIB=$${RANLIB}" \
42276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42277 distclean) \
42278 || exit 1
42279
a90ef4bf 42280@endif target-libgfortran
e552509b 42281
a90ef4bf
JM
42282.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
42283maybe-maintainer-clean-target-libgfortran:
42284@if target-libgfortran
42285maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 42286
a90ef4bf 42287maintainer-clean-target-libgfortran:
e552509b 42288 @: $(MAKE); $(unstage)
22121df0 42289 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42290 r=`${PWD_COMMAND}`; export r; \
42291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42292 $(NORMAL_TARGET_EXPORTS) \
22121df0 42293 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42294 for flag in $(EXTRA_TARGET_FLAGS); do \
42295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42296 done; \
a90ef4bf 42297 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42300 "RANLIB=$${RANLIB}" \
42301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42302 maintainer-clean) \
42303 || exit 1
42304
a90ef4bf 42305@endif target-libgfortran
e552509b
ILT
42306
42307
42308
42309
42310
a90ef4bf
JM
42311.PHONY: configure-target-libobjc maybe-configure-target-libobjc
42312maybe-configure-target-libobjc:
4f0ef2d8 42313@if gcc-bootstrap
a90ef4bf 42314configure-target-libobjc: stage_current
4f0ef2d8 42315@endif gcc-bootstrap
a90ef4bf
JM
42316@if target-libobjc
42317maybe-configure-target-libobjc: configure-target-libobjc
42318configure-target-libobjc:
0aed8855
PB
42319 @: $(MAKE); $(unstage)
42320 @r=`${PWD_COMMAND}`; export r; \
42321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42322 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
42323 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
42324 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42325 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
42326 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
42327 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 42328 else \
a90ef4bf
JM
42329 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
42330 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
42331 fi; \
42332 else \
a90ef4bf 42333 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 42334 fi; \
a90ef4bf 42335 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 42336 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 42337 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42338 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
42339 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 42340 case $(srcdir) in \
b00612cc 42341 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42342 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 42343 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 42344 esac; \
1b6c0831 42345 module_srcdir=libobjc; \
4fa63067 42346 rm -f no-such-file || : ; \
1b6c0831
L
42347 CONFIG_SITE=no-such-file $(SHELL) \
42348 $$s/$$module_srcdir/configure \
42349 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42350 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42351 --target=${target_alias} \
e2b9e2dc 42352 || exit 1
a90ef4bf 42353@endif target-libobjc
e2b9e2dc 42354
a7254363
PB
42355
42356
d545f33b
PB
42357
42358
a90ef4bf
JM
42359.PHONY: all-target-libobjc maybe-all-target-libobjc
42360maybe-all-target-libobjc:
4f0ef2d8 42361@if gcc-bootstrap
a90ef4bf 42362all-target-libobjc: stage_current
4f0ef2d8 42363@endif gcc-bootstrap
a90ef4bf
JM
42364@if target-libobjc
42365TARGET-target-libobjc=all
42366maybe-all-target-libobjc: all-target-libobjc
42367all-target-libobjc: configure-target-libobjc
0aed8855 42368 @: $(MAKE); $(unstage)
b40e3958
L
42369 @r=`${PWD_COMMAND}`; export r; \
42370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42371 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42372 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 42373 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42374 $(TARGET-target-libobjc))
42375@endif target-libobjc
3866be5d 42376
a7254363
PB
42377
42378
d545f33b
PB
42379
42380
a90ef4bf
JM
42381.PHONY: check-target-libobjc maybe-check-target-libobjc
42382maybe-check-target-libobjc:
42383@if target-libobjc
42384maybe-check-target-libobjc: check-target-libobjc
3866be5d 42385
a90ef4bf
JM
42386check-target-libobjc:
42387 @: $(MAKE); $(unstage)
42388 @r=`${PWD_COMMAND}`; export r; \
42389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42390 $(NORMAL_TARGET_EXPORTS) \
42391 (cd $(TARGET_SUBDIR)/libobjc && \
42392 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 42393
a90ef4bf 42394@endif target-libobjc
4fa63067 42395
a90ef4bf
JM
42396.PHONY: install-target-libobjc maybe-install-target-libobjc
42397maybe-install-target-libobjc:
42398@if target-libobjc
42399maybe-install-target-libobjc: install-target-libobjc
4fa63067 42400
a90ef4bf 42401install-target-libobjc: installdirs
0aed8855 42402 @: $(MAKE); $(unstage)
b40e3958
L
42403 @r=`${PWD_COMMAND}`; export r; \
42404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42405 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42406 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 42407 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 42408
a90ef4bf 42409@endif target-libobjc
3866be5d 42410
a90ef4bf
JM
42411.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
42412maybe-install-strip-target-libobjc:
42413@if target-libobjc
42414maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 42415
a90ef4bf 42416install-strip-target-libobjc: installdirs
9b980aa1
RW
42417 @: $(MAKE); $(unstage)
42418 @r=`${PWD_COMMAND}`; export r; \
42419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42420 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42421 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
42422 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42423
a90ef4bf 42424@endif target-libobjc
9b980aa1 42425
56a8fe78 42426# Other targets (info, dvi, pdf, etc.)
16ae0395 42427
a90ef4bf
JM
42428.PHONY: maybe-info-target-libobjc info-target-libobjc
42429maybe-info-target-libobjc:
42430@if target-libobjc
42431maybe-info-target-libobjc: info-target-libobjc
6d389afc 42432
a90ef4bf
JM
42433info-target-libobjc: \
42434 configure-target-libobjc
0aed8855 42435 @: $(MAKE); $(unstage)
22121df0 42436 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
42437 r=`${PWD_COMMAND}`; export r; \
42438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42439 $(NORMAL_TARGET_EXPORTS) \
22121df0 42440 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
42441 for flag in $(EXTRA_TARGET_FLAGS); do \
42442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42443 done; \
a90ef4bf 42444 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
42445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42447 "RANLIB=$${RANLIB}" \
0c24b341 42448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42449 info) \
42450 || exit 1
42451
a90ef4bf 42452@endif target-libobjc
6d389afc 42453
a90ef4bf
JM
42454.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
42455maybe-dvi-target-libobjc:
42456@if target-libobjc
42457maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 42458
a90ef4bf
JM
42459dvi-target-libobjc: \
42460 configure-target-libobjc
0aed8855 42461 @: $(MAKE); $(unstage)
22121df0 42462 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42463 r=`${PWD_COMMAND}`; export r; \
b40e3958 42464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42465 $(NORMAL_TARGET_EXPORTS) \
22121df0 42466 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42467 for flag in $(EXTRA_TARGET_FLAGS); do \
42468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42469 done; \
a90ef4bf 42470 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42473 "RANLIB=$${RANLIB}" \
0c24b341 42474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 42475 dvi) \
4fa63067 42476 || exit 1
3866be5d 42477
a90ef4bf 42478@endif target-libobjc
3866be5d 42479
a90ef4bf
JM
42480.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
42481maybe-pdf-target-libobjc:
42482@if target-libobjc
42483maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 42484
a90ef4bf
JM
42485pdf-target-libobjc: \
42486 configure-target-libobjc
56a8fe78 42487 @: $(MAKE); $(unstage)
22121df0 42488 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
42489 r=`${PWD_COMMAND}`; export r; \
42490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42491 $(NORMAL_TARGET_EXPORTS) \
22121df0 42492 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
42493 for flag in $(EXTRA_TARGET_FLAGS); do \
42494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42495 done; \
a90ef4bf 42496 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
42497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42499 "RANLIB=$${RANLIB}" \
0c24b341 42500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42501 pdf) \
42502 || exit 1
42503
a90ef4bf 42504@endif target-libobjc
56a8fe78 42505
a90ef4bf
JM
42506.PHONY: maybe-html-target-libobjc html-target-libobjc
42507maybe-html-target-libobjc:
42508@if target-libobjc
42509maybe-html-target-libobjc: html-target-libobjc
4fa63067 42510
a90ef4bf
JM
42511html-target-libobjc: \
42512 configure-target-libobjc
0aed8855 42513 @: $(MAKE); $(unstage)
22121df0 42514 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
42515 r=`${PWD_COMMAND}`; export r; \
42516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42517 $(NORMAL_TARGET_EXPORTS) \
22121df0 42518 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42519 for flag in $(EXTRA_TARGET_FLAGS); do \
42520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42521 done; \
a90ef4bf 42522 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42525 "RANLIB=$${RANLIB}" \
0c24b341 42526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 42527 html) \
e2b9e2dc
NN
42528 || exit 1
42529
a90ef4bf 42530@endif target-libobjc
4fa63067 42531
a90ef4bf
JM
42532.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
42533maybe-TAGS-target-libobjc:
42534@if target-libobjc
42535maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 42536
a90ef4bf
JM
42537TAGS-target-libobjc: \
42538 configure-target-libobjc
0aed8855 42539 @: $(MAKE); $(unstage)
22121df0 42540 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42541 r=`${PWD_COMMAND}`; export r; \
b40e3958 42542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42543 $(NORMAL_TARGET_EXPORTS) \
22121df0 42544 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42545 for flag in $(EXTRA_TARGET_FLAGS); do \
42546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42547 done; \
a90ef4bf 42548 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42551 "RANLIB=$${RANLIB}" \
0c24b341 42552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42553 TAGS) \
4fa63067 42554 || exit 1
3866be5d 42555
a90ef4bf 42556@endif target-libobjc
3866be5d 42557
a90ef4bf
JM
42558.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
42559maybe-install-info-target-libobjc:
42560@if target-libobjc
42561maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 42562
a90ef4bf
JM
42563install-info-target-libobjc: \
42564 configure-target-libobjc \
42565 info-target-libobjc
0aed8855 42566 @: $(MAKE); $(unstage)
22121df0 42567 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
42568 r=`${PWD_COMMAND}`; export r; \
42569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42570 $(NORMAL_TARGET_EXPORTS) \
22121df0 42571 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42572 for flag in $(EXTRA_TARGET_FLAGS); do \
42573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42574 done; \
a90ef4bf 42575 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42578 "RANLIB=$${RANLIB}" \
0c24b341 42579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42580 install-info) \
4fa63067 42581 || exit 1
3866be5d 42582
a90ef4bf 42583@endif target-libobjc
16ae0395 42584
a90ef4bf
JM
42585.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
42586maybe-install-pdf-target-libobjc:
42587@if target-libobjc
42588maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 42589
a90ef4bf
JM
42590install-pdf-target-libobjc: \
42591 configure-target-libobjc \
42592 pdf-target-libobjc
a3ca38d2 42593 @: $(MAKE); $(unstage)
22121df0 42594 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
42595 r=`${PWD_COMMAND}`; export r; \
42596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42597 $(NORMAL_TARGET_EXPORTS) \
22121df0 42598 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
42599 for flag in $(EXTRA_TARGET_FLAGS); do \
42600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42601 done; \
a90ef4bf 42602 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
42603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42605 "RANLIB=$${RANLIB}" \
0c24b341 42606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42607 install-pdf) \
42608 || exit 1
42609
a90ef4bf 42610@endif target-libobjc
a3ca38d2 42611
a90ef4bf
JM
42612.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
42613maybe-install-html-target-libobjc:
42614@if target-libobjc
42615maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 42616
a90ef4bf
JM
42617install-html-target-libobjc: \
42618 configure-target-libobjc \
42619 html-target-libobjc
108a6f8e 42620 @: $(MAKE); $(unstage)
22121df0 42621 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
42622 r=`${PWD_COMMAND}`; export r; \
42623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42624 $(NORMAL_TARGET_EXPORTS) \
22121df0 42625 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
42626 for flag in $(EXTRA_TARGET_FLAGS); do \
42627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42628 done; \
a90ef4bf 42629 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
42630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42632 "RANLIB=$${RANLIB}" \
0c24b341 42633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42634 install-html) \
42635 || exit 1
42636
a90ef4bf 42637@endif target-libobjc
108a6f8e 42638
a90ef4bf
JM
42639.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
42640maybe-installcheck-target-libobjc:
42641@if target-libobjc
42642maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 42643
a90ef4bf
JM
42644installcheck-target-libobjc: \
42645 configure-target-libobjc
0aed8855 42646 @: $(MAKE); $(unstage)
22121df0 42647 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 42648 r=`${PWD_COMMAND}`; export r; \
b40e3958 42649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42650 $(NORMAL_TARGET_EXPORTS) \
22121df0 42651 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
42652 for flag in $(EXTRA_TARGET_FLAGS); do \
42653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42654 done; \
a90ef4bf 42655 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
42656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42658 "RANLIB=$${RANLIB}" \
0c24b341 42659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42660 installcheck) \
4fa63067 42661 || exit 1
3866be5d 42662
a90ef4bf 42663@endif target-libobjc
3866be5d 42664
a90ef4bf
JM
42665.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
42666maybe-mostlyclean-target-libobjc:
42667@if target-libobjc
42668maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 42669
a90ef4bf
JM
42670mostlyclean-target-libobjc:
42671 @: $(MAKE); $(unstage)
22121df0 42672 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42673 r=`${PWD_COMMAND}`; export r; \
42674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42675 $(NORMAL_TARGET_EXPORTS) \
22121df0 42676 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42677 for flag in $(EXTRA_TARGET_FLAGS); do \
42678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42679 done; \
42680 (cd $(TARGET_SUBDIR)/libobjc && \
42681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42683 "RANLIB=$${RANLIB}" \
42684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42685 mostlyclean) \
42686 || exit 1
4fa63067 42687
a90ef4bf 42688@endif target-libobjc
4fa63067 42689
a90ef4bf
JM
42690.PHONY: maybe-clean-target-libobjc clean-target-libobjc
42691maybe-clean-target-libobjc:
42692@if target-libobjc
42693maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 42694
a90ef4bf
JM
42695clean-target-libobjc:
42696 @: $(MAKE); $(unstage)
22121df0 42697 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42698 r=`${PWD_COMMAND}`; export r; \
42699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42700 $(NORMAL_TARGET_EXPORTS) \
22121df0 42701 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42702 for flag in $(EXTRA_TARGET_FLAGS); do \
42703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42704 done; \
42705 (cd $(TARGET_SUBDIR)/libobjc && \
42706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42708 "RANLIB=$${RANLIB}" \
42709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42710 clean) \
42711 || exit 1
4fa63067 42712
a90ef4bf 42713@endif target-libobjc
4fa63067 42714
a90ef4bf
JM
42715.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
42716maybe-distclean-target-libobjc:
42717@if target-libobjc
42718maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 42719
a90ef4bf
JM
42720distclean-target-libobjc:
42721 @: $(MAKE); $(unstage)
22121df0 42722 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42723 r=`${PWD_COMMAND}`; export r; \
42724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42725 $(NORMAL_TARGET_EXPORTS) \
22121df0 42726 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42727 for flag in $(EXTRA_TARGET_FLAGS); do \
42728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42729 done; \
42730 (cd $(TARGET_SUBDIR)/libobjc && \
42731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42733 "RANLIB=$${RANLIB}" \
42734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42735 distclean) \
42736 || exit 1
4fa63067 42737
a90ef4bf 42738@endif target-libobjc
4fa63067 42739
a90ef4bf
JM
42740.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
42741maybe-maintainer-clean-target-libobjc:
42742@if target-libobjc
42743maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 42744
a90ef4bf
JM
42745maintainer-clean-target-libobjc:
42746 @: $(MAKE); $(unstage)
22121df0 42747 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
42748 r=`${PWD_COMMAND}`; export r; \
42749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42750 $(NORMAL_TARGET_EXPORTS) \
22121df0 42751 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
42752 for flag in $(EXTRA_TARGET_FLAGS); do \
42753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42754 done; \
42755 (cd $(TARGET_SUBDIR)/libobjc && \
42756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42758 "RANLIB=$${RANLIB}" \
42759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42760 maintainer-clean) \
42761 || exit 1
4fa63067 42762
a90ef4bf 42763@endif target-libobjc
4fa63067
NN
42764
42765
4fa63067 42766
4fa63067 42767
a7254363 42768
a90ef4bf
JM
42769.PHONY: configure-target-libgo maybe-configure-target-libgo
42770maybe-configure-target-libgo:
4f0ef2d8 42771@if gcc-bootstrap
a90ef4bf 42772configure-target-libgo: stage_current
4f0ef2d8 42773@endif gcc-bootstrap
a90ef4bf
JM
42774@if target-libgo
42775maybe-configure-target-libgo: configure-target-libgo
42776configure-target-libgo:
0aed8855
PB
42777 @: $(MAKE); $(unstage)
42778 @r=`${PWD_COMMAND}`; export r; \
42779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42780 echo "Checking multilib configuration for libgo..."; \
22121df0
L
42781 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
42782 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42783 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
42784 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
42785 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 42786 else \
a90ef4bf
JM
42787 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
42788 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
42789 fi; \
42790 else \
a90ef4bf 42791 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 42792 fi; \
a90ef4bf 42793 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 42794 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 42795 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42796 echo Configuring in $(TARGET_SUBDIR)/libgo; \
42797 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 42798 case $(srcdir) in \
b00612cc 42799 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42800 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 42801 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 42802 esac; \
1b6c0831 42803 module_srcdir=libgo; \
4fa63067 42804 rm -f no-such-file || : ; \
1b6c0831
L
42805 CONFIG_SITE=no-such-file $(SHELL) \
42806 $$s/$$module_srcdir/configure \
42807 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42808 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42809 --target=${target_alias} \
e2b9e2dc 42810 || exit 1
a90ef4bf 42811@endif target-libgo
e2b9e2dc 42812
a7254363
PB
42813
42814
d545f33b
PB
42815
42816
a90ef4bf
JM
42817.PHONY: all-target-libgo maybe-all-target-libgo
42818maybe-all-target-libgo:
4f0ef2d8 42819@if gcc-bootstrap
a90ef4bf 42820all-target-libgo: stage_current
4f0ef2d8 42821@endif gcc-bootstrap
a90ef4bf
JM
42822@if target-libgo
42823TARGET-target-libgo=all
42824maybe-all-target-libgo: all-target-libgo
42825all-target-libgo: configure-target-libgo
0aed8855 42826 @: $(MAKE); $(unstage)
b40e3958
L
42827 @r=`${PWD_COMMAND}`; export r; \
42828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42829 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42830 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 42831 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42832 $(TARGET-target-libgo))
42833@endif target-libgo
3866be5d 42834
a7254363
PB
42835
42836
d545f33b
PB
42837
42838
a90ef4bf
JM
42839.PHONY: check-target-libgo maybe-check-target-libgo
42840maybe-check-target-libgo:
42841@if target-libgo
42842maybe-check-target-libgo: check-target-libgo
3866be5d 42843
a90ef4bf 42844check-target-libgo:
0aed8855 42845 @: $(MAKE); $(unstage)
4fa63067
NN
42846 @r=`${PWD_COMMAND}`; export r; \
42847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42848 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42849 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 42850 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 42851
a90ef4bf 42852@endif target-libgo
3866be5d 42853
a90ef4bf
JM
42854.PHONY: install-target-libgo maybe-install-target-libgo
42855maybe-install-target-libgo:
42856@if target-libgo
42857maybe-install-target-libgo: install-target-libgo
16ae0395 42858
a90ef4bf 42859install-target-libgo: installdirs
0aed8855 42860 @: $(MAKE); $(unstage)
4fa63067
NN
42861 @r=`${PWD_COMMAND}`; export r; \
42862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42863 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42864 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 42865 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 42866
a90ef4bf 42867@endif target-libgo
3866be5d 42868
a90ef4bf
JM
42869.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
42870maybe-install-strip-target-libgo:
42871@if target-libgo
42872maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 42873
a90ef4bf 42874install-strip-target-libgo: installdirs
9b980aa1
RW
42875 @: $(MAKE); $(unstage)
42876 @r=`${PWD_COMMAND}`; export r; \
42877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42878 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42879 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
42880 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42881
a90ef4bf 42882@endif target-libgo
9b980aa1 42883
56a8fe78 42884# Other targets (info, dvi, pdf, etc.)
4fa63067 42885
a90ef4bf
JM
42886.PHONY: maybe-info-target-libgo info-target-libgo
42887maybe-info-target-libgo:
42888@if target-libgo
42889maybe-info-target-libgo: info-target-libgo
4fa63067 42890
a90ef4bf
JM
42891info-target-libgo: \
42892 configure-target-libgo
0aed8855 42893 @: $(MAKE); $(unstage)
22121df0 42894 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
42895 r=`${PWD_COMMAND}`; export r; \
42896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42897 $(NORMAL_TARGET_EXPORTS) \
22121df0 42898 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42899 for flag in $(EXTRA_TARGET_FLAGS); do \
42900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42901 done; \
a90ef4bf 42902 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42905 "RANLIB=$${RANLIB}" \
0c24b341 42906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42907 info) \
e2b9e2dc
NN
42908 || exit 1
42909
a90ef4bf 42910@endif target-libgo
3866be5d 42911
a90ef4bf
JM
42912.PHONY: maybe-dvi-target-libgo dvi-target-libgo
42913maybe-dvi-target-libgo:
42914@if target-libgo
42915maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 42916
a90ef4bf
JM
42917dvi-target-libgo: \
42918 configure-target-libgo
0aed8855 42919 @: $(MAKE); $(unstage)
22121df0 42920 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 42921 r=`${PWD_COMMAND}`; export r; \
b40e3958 42922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42923 $(NORMAL_TARGET_EXPORTS) \
22121df0 42924 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
42925 for flag in $(EXTRA_TARGET_FLAGS); do \
42926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42927 done; \
a90ef4bf 42928 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
42929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42931 "RANLIB=$${RANLIB}" \
0c24b341 42932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42933 dvi) \
4fa63067 42934 || exit 1
3866be5d 42935
a90ef4bf 42936@endif target-libgo
3866be5d 42937
a90ef4bf
JM
42938.PHONY: maybe-pdf-target-libgo pdf-target-libgo
42939maybe-pdf-target-libgo:
42940@if target-libgo
42941maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 42942
a90ef4bf
JM
42943pdf-target-libgo: \
42944 configure-target-libgo
56a8fe78 42945 @: $(MAKE); $(unstage)
22121df0 42946 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
42947 r=`${PWD_COMMAND}`; export r; \
42948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42949 $(NORMAL_TARGET_EXPORTS) \
22121df0 42950 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
42951 for flag in $(EXTRA_TARGET_FLAGS); do \
42952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42953 done; \
a90ef4bf 42954 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
42955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42957 "RANLIB=$${RANLIB}" \
0c24b341 42958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42959 pdf) \
42960 || exit 1
42961
a90ef4bf 42962@endif target-libgo
56a8fe78 42963
a90ef4bf
JM
42964.PHONY: maybe-html-target-libgo html-target-libgo
42965maybe-html-target-libgo:
42966@if target-libgo
42967maybe-html-target-libgo: html-target-libgo
6d389afc 42968
a90ef4bf
JM
42969html-target-libgo: \
42970 configure-target-libgo
0aed8855 42971 @: $(MAKE); $(unstage)
22121df0 42972 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
42973 r=`${PWD_COMMAND}`; export r; \
42974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42975 $(NORMAL_TARGET_EXPORTS) \
22121df0 42976 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
42977 for flag in $(EXTRA_TARGET_FLAGS); do \
42978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42979 done; \
a90ef4bf 42980 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
42981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42983 "RANLIB=$${RANLIB}" \
0c24b341 42984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42985 html) \
42986 || exit 1
42987
a90ef4bf 42988@endif target-libgo
6d389afc 42989
a90ef4bf
JM
42990.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
42991maybe-TAGS-target-libgo:
42992@if target-libgo
42993maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 42994
a90ef4bf
JM
42995TAGS-target-libgo: \
42996 configure-target-libgo
0aed8855 42997 @: $(MAKE); $(unstage)
22121df0 42998 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 42999 r=`${PWD_COMMAND}`; export r; \
b40e3958 43000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43001 $(NORMAL_TARGET_EXPORTS) \
22121df0 43002 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43003 for flag in $(EXTRA_TARGET_FLAGS); do \
43004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43005 done; \
a90ef4bf 43006 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43009 "RANLIB=$${RANLIB}" \
0c24b341 43010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43011 TAGS) \
4fa63067 43012 || exit 1
3866be5d 43013
a90ef4bf 43014@endif target-libgo
3866be5d 43015
a90ef4bf
JM
43016.PHONY: maybe-install-info-target-libgo install-info-target-libgo
43017maybe-install-info-target-libgo:
43018@if target-libgo
43019maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 43020
a90ef4bf
JM
43021install-info-target-libgo: \
43022 configure-target-libgo \
43023 info-target-libgo
0aed8855 43024 @: $(MAKE); $(unstage)
22121df0 43025 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43026 r=`${PWD_COMMAND}`; export r; \
43027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43028 $(NORMAL_TARGET_EXPORTS) \
22121df0 43029 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43030 for flag in $(EXTRA_TARGET_FLAGS); do \
43031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43032 done; \
a90ef4bf 43033 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43036 "RANLIB=$${RANLIB}" \
0c24b341 43037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43038 install-info) \
e2b9e2dc
NN
43039 || exit 1
43040
a90ef4bf 43041@endif target-libgo
4fa63067 43042
a90ef4bf
JM
43043.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
43044maybe-install-pdf-target-libgo:
43045@if target-libgo
43046maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 43047
a90ef4bf
JM
43048install-pdf-target-libgo: \
43049 configure-target-libgo \
43050 pdf-target-libgo
a3ca38d2 43051 @: $(MAKE); $(unstage)
22121df0 43052 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
43053 r=`${PWD_COMMAND}`; export r; \
43054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43055 $(NORMAL_TARGET_EXPORTS) \
22121df0 43056 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
43057 for flag in $(EXTRA_TARGET_FLAGS); do \
43058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43059 done; \
a90ef4bf 43060 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
43061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43063 "RANLIB=$${RANLIB}" \
0c24b341 43064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43065 install-pdf) \
43066 || exit 1
43067
a90ef4bf 43068@endif target-libgo
a3ca38d2 43069
a90ef4bf
JM
43070.PHONY: maybe-install-html-target-libgo install-html-target-libgo
43071maybe-install-html-target-libgo:
43072@if target-libgo
43073maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 43074
a90ef4bf
JM
43075install-html-target-libgo: \
43076 configure-target-libgo \
43077 html-target-libgo
108a6f8e 43078 @: $(MAKE); $(unstage)
22121df0 43079 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
43080 r=`${PWD_COMMAND}`; export r; \
43081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43082 $(NORMAL_TARGET_EXPORTS) \
22121df0 43083 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
43084 for flag in $(EXTRA_TARGET_FLAGS); do \
43085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43086 done; \
a90ef4bf 43087 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
43088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43090 "RANLIB=$${RANLIB}" \
0c24b341 43091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43092 install-html) \
43093 || exit 1
43094
a90ef4bf 43095@endif target-libgo
108a6f8e 43096
a90ef4bf
JM
43097.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
43098maybe-installcheck-target-libgo:
43099@if target-libgo
43100maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 43101
a90ef4bf
JM
43102installcheck-target-libgo: \
43103 configure-target-libgo
0aed8855 43104 @: $(MAKE); $(unstage)
22121df0 43105 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43106 r=`${PWD_COMMAND}`; export r; \
b40e3958 43107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43108 $(NORMAL_TARGET_EXPORTS) \
22121df0 43109 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43110 for flag in $(EXTRA_TARGET_FLAGS); do \
43111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43112 done; \
a90ef4bf 43113 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43116 "RANLIB=$${RANLIB}" \
0c24b341 43117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43118 installcheck) \
4fa63067 43119 || exit 1
3866be5d 43120
a90ef4bf 43121@endif target-libgo
3866be5d 43122
a90ef4bf
JM
43123.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
43124maybe-mostlyclean-target-libgo:
43125@if target-libgo
43126maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 43127
a90ef4bf 43128mostlyclean-target-libgo:
0aed8855 43129 @: $(MAKE); $(unstage)
22121df0 43130 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43131 r=`${PWD_COMMAND}`; export r; \
b40e3958 43132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43133 $(NORMAL_TARGET_EXPORTS) \
22121df0 43134 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43135 for flag in $(EXTRA_TARGET_FLAGS); do \
43136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43137 done; \
a90ef4bf 43138 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43141 "RANLIB=$${RANLIB}" \
0c24b341 43142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43143 mostlyclean) \
4fa63067 43144 || exit 1
3866be5d 43145
a90ef4bf 43146@endif target-libgo
3866be5d 43147
a90ef4bf
JM
43148.PHONY: maybe-clean-target-libgo clean-target-libgo
43149maybe-clean-target-libgo:
43150@if target-libgo
43151maybe-clean-target-libgo: clean-target-libgo
16ae0395 43152
a90ef4bf 43153clean-target-libgo:
0aed8855 43154 @: $(MAKE); $(unstage)
22121df0 43155 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43156 r=`${PWD_COMMAND}`; export r; \
b40e3958 43157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43158 $(NORMAL_TARGET_EXPORTS) \
22121df0 43159 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43160 for flag in $(EXTRA_TARGET_FLAGS); do \
43161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43162 done; \
a90ef4bf 43163 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43166 "RANLIB=$${RANLIB}" \
0c24b341 43167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43168 clean) \
4fa63067 43169 || exit 1
3866be5d 43170
a90ef4bf 43171@endif target-libgo
3866be5d 43172
a90ef4bf
JM
43173.PHONY: maybe-distclean-target-libgo distclean-target-libgo
43174maybe-distclean-target-libgo:
43175@if target-libgo
43176maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 43177
a90ef4bf 43178distclean-target-libgo:
0aed8855 43179 @: $(MAKE); $(unstage)
22121df0 43180 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43181 r=`${PWD_COMMAND}`; export r; \
43182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43183 $(NORMAL_TARGET_EXPORTS) \
22121df0 43184 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43185 for flag in $(EXTRA_TARGET_FLAGS); do \
43186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43187 done; \
a90ef4bf 43188 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43191 "RANLIB=$${RANLIB}" \
0c24b341 43192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43193 distclean) \
e2b9e2dc
NN
43194 || exit 1
43195
a90ef4bf 43196@endif target-libgo
3866be5d 43197
a90ef4bf
JM
43198.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
43199maybe-maintainer-clean-target-libgo:
43200@if target-libgo
43201maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 43202
a90ef4bf 43203maintainer-clean-target-libgo:
0aed8855 43204 @: $(MAKE); $(unstage)
22121df0 43205 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43206 r=`${PWD_COMMAND}`; export r; \
b40e3958 43207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43208 $(NORMAL_TARGET_EXPORTS) \
22121df0 43209 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43210 for flag in $(EXTRA_TARGET_FLAGS); do \
43211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43212 done; \
a90ef4bf 43213 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43216 "RANLIB=$${RANLIB}" \
0c24b341 43217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43218 maintainer-clean) \
4fa63067 43219 || exit 1
3866be5d 43220
a90ef4bf 43221@endif target-libgo
3866be5d 43222
16ae0395 43223
3866be5d 43224
e90269c8 43225
a7254363 43226
a90ef4bf
JM
43227.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
43228maybe-configure-target-libtermcap:
4f0ef2d8 43229@if gcc-bootstrap
a90ef4bf 43230configure-target-libtermcap: stage_current
4f0ef2d8 43231@endif gcc-bootstrap
a90ef4bf
JM
43232@if target-libtermcap
43233maybe-configure-target-libtermcap: configure-target-libtermcap
43234configure-target-libtermcap:
0aed8855
PB
43235 @: $(MAKE); $(unstage)
43236 @r=`${PWD_COMMAND}`; export r; \
43237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43238 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
43239 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
43240 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43241 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
43242 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
43243 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 43244 else \
a90ef4bf
JM
43245 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
43246 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
43247 fi; \
43248 else \
a90ef4bf 43249 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 43250 fi; \
a90ef4bf 43251 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 43252 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 43253 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43254 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
43255 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 43256 case $(srcdir) in \
b00612cc 43257 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43258 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 43259 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 43260 esac; \
1b6c0831 43261 module_srcdir=libtermcap; \
4fa63067 43262 rm -f no-such-file || : ; \
1b6c0831
L
43263 CONFIG_SITE=no-such-file $(SHELL) \
43264 $$s/$$module_srcdir/configure \
43265 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43266 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43267 --target=${target_alias} \
e2b9e2dc 43268 || exit 1
a90ef4bf 43269@endif target-libtermcap
e2b9e2dc 43270
a7254363
PB
43271
43272
d545f33b
PB
43273
43274
a90ef4bf
JM
43275.PHONY: all-target-libtermcap maybe-all-target-libtermcap
43276maybe-all-target-libtermcap:
4f0ef2d8 43277@if gcc-bootstrap
a90ef4bf 43278all-target-libtermcap: stage_current
4f0ef2d8 43279@endif gcc-bootstrap
a90ef4bf
JM
43280@if target-libtermcap
43281TARGET-target-libtermcap=all
43282maybe-all-target-libtermcap: all-target-libtermcap
43283all-target-libtermcap: configure-target-libtermcap
0aed8855 43284 @: $(MAKE); $(unstage)
b40e3958
L
43285 @r=`${PWD_COMMAND}`; export r; \
43286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43287 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43288 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 43289 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43290 $(TARGET-target-libtermcap))
43291@endif target-libtermcap
e393202e 43292
a7254363
PB
43293
43294
d545f33b
PB
43295
43296
a90ef4bf
JM
43297.PHONY: check-target-libtermcap maybe-check-target-libtermcap
43298maybe-check-target-libtermcap:
43299@if target-libtermcap
43300maybe-check-target-libtermcap: check-target-libtermcap
e393202e 43301
4fa63067 43302# Dummy target for uncheckable module.
a90ef4bf 43303check-target-libtermcap:
e393202e 43304
a90ef4bf 43305@endif target-libtermcap
e393202e 43306
a90ef4bf
JM
43307.PHONY: install-target-libtermcap maybe-install-target-libtermcap
43308maybe-install-target-libtermcap:
43309@if target-libtermcap
43310maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 43311
a90ef4bf 43312install-target-libtermcap: installdirs
0aed8855 43313 @: $(MAKE); $(unstage)
b40e3958
L
43314 @r=`${PWD_COMMAND}`; export r; \
43315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43316 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43317 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 43318 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 43319
a90ef4bf 43320@endif target-libtermcap
56a8fe78 43321
a90ef4bf
JM
43322.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
43323maybe-install-strip-target-libtermcap:
43324@if target-libtermcap
43325maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 43326
a90ef4bf 43327install-strip-target-libtermcap: installdirs
0aed8855 43328 @: $(MAKE); $(unstage)
a90ef4bf 43329 @r=`${PWD_COMMAND}`; export r; \
6d389afc 43330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43331 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43332 (cd $(TARGET_SUBDIR)/libtermcap && \
43333 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 43334
a90ef4bf 43335@endif target-libtermcap
6d389afc 43336
a90ef4bf 43337# Other targets (info, dvi, pdf, etc.)
16ae0395 43338
a90ef4bf
JM
43339.PHONY: maybe-info-target-libtermcap info-target-libtermcap
43340maybe-info-target-libtermcap:
43341@if target-libtermcap
43342maybe-info-target-libtermcap: info-target-libtermcap
43343
43344info-target-libtermcap: \
43345 configure-target-libtermcap
0aed8855 43346 @: $(MAKE); $(unstage)
22121df0 43347 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43348 r=`${PWD_COMMAND}`; export r; \
b40e3958 43349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43350 $(NORMAL_TARGET_EXPORTS) \
22121df0 43351 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43352 for flag in $(EXTRA_TARGET_FLAGS); do \
43353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43354 done; \
a90ef4bf 43355 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43358 "RANLIB=$${RANLIB}" \
0c24b341 43359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43360 info) \
4fa63067 43361 || exit 1
ce5b542e 43362
a90ef4bf 43363@endif target-libtermcap
ce5b542e 43364
a90ef4bf
JM
43365.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
43366maybe-dvi-target-libtermcap:
43367@if target-libtermcap
43368maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 43369
a90ef4bf
JM
43370dvi-target-libtermcap: \
43371 configure-target-libtermcap
0aed8855 43372 @: $(MAKE); $(unstage)
22121df0 43373 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
43374 r=`${PWD_COMMAND}`; export r; \
43375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43376 $(NORMAL_TARGET_EXPORTS) \
22121df0 43377 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43378 for flag in $(EXTRA_TARGET_FLAGS); do \
43379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43380 done; \
a90ef4bf 43381 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43384 "RANLIB=$${RANLIB}" \
0c24b341 43385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43386 dvi) \
e2b9e2dc
NN
43387 || exit 1
43388
a90ef4bf 43389@endif target-libtermcap
e393202e 43390
a90ef4bf
JM
43391.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
43392maybe-pdf-target-libtermcap:
43393@if target-libtermcap
43394maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 43395
a90ef4bf
JM
43396pdf-target-libtermcap: \
43397 configure-target-libtermcap
a3ca38d2 43398 @: $(MAKE); $(unstage)
22121df0 43399 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
43400 r=`${PWD_COMMAND}`; export r; \
43401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43402 $(NORMAL_TARGET_EXPORTS) \
22121df0 43403 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
43404 for flag in $(EXTRA_TARGET_FLAGS); do \
43405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43406 done; \
a90ef4bf 43407 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
43408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43410 "RANLIB=$${RANLIB}" \
0c24b341 43411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43412 pdf) \
a3ca38d2
DD
43413 || exit 1
43414
a90ef4bf 43415@endif target-libtermcap
a3ca38d2 43416
a90ef4bf
JM
43417.PHONY: maybe-html-target-libtermcap html-target-libtermcap
43418maybe-html-target-libtermcap:
43419@if target-libtermcap
43420maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 43421
a90ef4bf
JM
43422html-target-libtermcap: \
43423 configure-target-libtermcap
108a6f8e 43424 @: $(MAKE); $(unstage)
22121df0 43425 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
43426 r=`${PWD_COMMAND}`; export r; \
43427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43428 $(NORMAL_TARGET_EXPORTS) \
22121df0 43429 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
43430 for flag in $(EXTRA_TARGET_FLAGS); do \
43431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43432 done; \
a90ef4bf 43433 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
43434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43436 "RANLIB=$${RANLIB}" \
0c24b341 43437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43438 html) \
108a6f8e
CD
43439 || exit 1
43440
a90ef4bf 43441@endif target-libtermcap
108a6f8e 43442
a90ef4bf
JM
43443.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
43444maybe-TAGS-target-libtermcap:
43445@if target-libtermcap
43446maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 43447
a90ef4bf
JM
43448TAGS-target-libtermcap: \
43449 configure-target-libtermcap
0aed8855 43450 @: $(MAKE); $(unstage)
22121df0 43451 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
43452 r=`${PWD_COMMAND}`; export r; \
43453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43454 $(NORMAL_TARGET_EXPORTS) \
22121df0 43455 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43456 for flag in $(EXTRA_TARGET_FLAGS); do \
43457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43458 done; \
a90ef4bf 43459 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43462 "RANLIB=$${RANLIB}" \
0c24b341 43463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43464 TAGS) \
4fa63067 43465 || exit 1
3866be5d 43466
a90ef4bf 43467@endif target-libtermcap
3866be5d 43468
a90ef4bf
JM
43469.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
43470maybe-install-info-target-libtermcap:
43471@if target-libtermcap
43472maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 43473
a90ef4bf
JM
43474install-info-target-libtermcap: \
43475 configure-target-libtermcap \
43476 info-target-libtermcap
0aed8855 43477 @: $(MAKE); $(unstage)
22121df0 43478 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43479 r=`${PWD_COMMAND}`; export r; \
b40e3958 43480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43481 $(NORMAL_TARGET_EXPORTS) \
22121df0 43482 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43483 for flag in $(EXTRA_TARGET_FLAGS); do \
43484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43485 done; \
a90ef4bf 43486 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43489 "RANLIB=$${RANLIB}" \
0c24b341 43490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43491 install-info) \
4fa63067 43492 || exit 1
e393202e 43493
a90ef4bf 43494@endif target-libtermcap
3866be5d 43495
a90ef4bf
JM
43496.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
43497maybe-install-pdf-target-libtermcap:
43498@if target-libtermcap
43499maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 43500
a90ef4bf
JM
43501install-pdf-target-libtermcap: \
43502 configure-target-libtermcap \
43503 pdf-target-libtermcap
0aed8855 43504 @: $(MAKE); $(unstage)
22121df0 43505 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
43506 r=`${PWD_COMMAND}`; export r; \
43507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43508 $(NORMAL_TARGET_EXPORTS) \
22121df0 43509 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43510 for flag in $(EXTRA_TARGET_FLAGS); do \
43511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43512 done; \
a90ef4bf 43513 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43516 "RANLIB=$${RANLIB}" \
0c24b341 43517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43518 install-pdf) \
e2b9e2dc
NN
43519 || exit 1
43520
a90ef4bf 43521@endif target-libtermcap
e393202e 43522
a90ef4bf
JM
43523.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
43524maybe-install-html-target-libtermcap:
43525@if target-libtermcap
43526maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 43527
a90ef4bf
JM
43528install-html-target-libtermcap: \
43529 configure-target-libtermcap \
43530 html-target-libtermcap
0aed8855 43531 @: $(MAKE); $(unstage)
22121df0 43532 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
43533 r=`${PWD_COMMAND}`; export r; \
43534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43535 $(NORMAL_TARGET_EXPORTS) \
22121df0 43536 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43537 for flag in $(EXTRA_TARGET_FLAGS); do \
43538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43539 done; \
a90ef4bf 43540 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43543 "RANLIB=$${RANLIB}" \
0c24b341 43544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43545 install-html) \
4fa63067 43546 || exit 1
3866be5d 43547
a90ef4bf 43548@endif target-libtermcap
3866be5d 43549
a90ef4bf
JM
43550.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
43551maybe-installcheck-target-libtermcap:
43552@if target-libtermcap
43553maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 43554
a90ef4bf
JM
43555installcheck-target-libtermcap: \
43556 configure-target-libtermcap
0aed8855 43557 @: $(MAKE); $(unstage)
22121df0 43558 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 43559 r=`${PWD_COMMAND}`; export r; \
b40e3958 43560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43561 $(NORMAL_TARGET_EXPORTS) \
22121df0 43562 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
43563 for flag in $(EXTRA_TARGET_FLAGS); do \
43564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43565 done; \
a90ef4bf 43566 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
43567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43569 "RANLIB=$${RANLIB}" \
0c24b341 43570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 43571 installcheck) \
4fa63067 43572 || exit 1
3866be5d 43573
a90ef4bf
JM
43574@endif target-libtermcap
43575
43576.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
43577maybe-mostlyclean-target-libtermcap:
43578@if target-libtermcap
43579maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
43580
43581# libtermcap doesn't support mostlyclean.
43582mostlyclean-target-libtermcap:
43583
43584@endif target-libtermcap
3866be5d 43585
a90ef4bf
JM
43586.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
43587maybe-clean-target-libtermcap:
43588@if target-libtermcap
43589maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 43590
a90ef4bf
JM
43591# libtermcap doesn't support clean.
43592clean-target-libtermcap:
15723a45 43593
a90ef4bf 43594@endif target-libtermcap
e90269c8 43595
a90ef4bf
JM
43596.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
43597maybe-distclean-target-libtermcap:
43598@if target-libtermcap
43599maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 43600
a90ef4bf
JM
43601# libtermcap doesn't support distclean.
43602distclean-target-libtermcap:
43603
43604@endif target-libtermcap
43605
43606.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
43607maybe-maintainer-clean-target-libtermcap:
43608@if target-libtermcap
43609maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
43610
43611# libtermcap doesn't support maintainer-clean.
43612maintainer-clean-target-libtermcap:
43613
43614@endif target-libtermcap
43615
43616
43617
43618
43619
43620.PHONY: configure-target-winsup maybe-configure-target-winsup
43621maybe-configure-target-winsup:
4f0ef2d8 43622@if gcc-bootstrap
a90ef4bf 43623configure-target-winsup: stage_current
4f0ef2d8 43624@endif gcc-bootstrap
a90ef4bf
JM
43625@if target-winsup
43626maybe-configure-target-winsup: configure-target-winsup
43627configure-target-winsup:
0aed8855
PB
43628 @: $(MAKE); $(unstage)
43629 @r=`${PWD_COMMAND}`; export r; \
43630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43631 echo "Checking multilib configuration for winsup..."; \
22121df0
L
43632 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
43633 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43634 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
43635 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
43636 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 43637 else \
a90ef4bf
JM
43638 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
43639 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
43640 fi; \
43641 else \
a90ef4bf 43642 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 43643 fi; \
a90ef4bf 43644 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 43645 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 43646 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43647 echo Configuring in $(TARGET_SUBDIR)/winsup; \
43648 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 43649 case $(srcdir) in \
b00612cc 43650 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43651 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 43652 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 43653 esac; \
1b6c0831 43654 module_srcdir=winsup; \
bba45b8b 43655 rm -f no-such-file || : ; \
1b6c0831
L
43656 CONFIG_SITE=no-such-file $(SHELL) \
43657 $$s/$$module_srcdir/configure \
43658 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43659 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43660 --target=${target_alias} \
bba45b8b 43661 || exit 1
a90ef4bf 43662@endif target-winsup
e393202e 43663
a7254363
PB
43664
43665
d545f33b
PB
43666
43667
a90ef4bf
JM
43668.PHONY: all-target-winsup maybe-all-target-winsup
43669maybe-all-target-winsup:
4f0ef2d8 43670@if gcc-bootstrap
a90ef4bf 43671all-target-winsup: stage_current
4f0ef2d8 43672@endif gcc-bootstrap
a90ef4bf
JM
43673@if target-winsup
43674TARGET-target-winsup=all
43675maybe-all-target-winsup: all-target-winsup
43676all-target-winsup: configure-target-winsup
0aed8855 43677 @: $(MAKE); $(unstage)
b40e3958
L
43678 @r=`${PWD_COMMAND}`; export r; \
43679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43680 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43681 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 43682 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43683 $(TARGET-target-winsup))
43684@endif target-winsup
e393202e 43685
a7254363
PB
43686
43687
d545f33b
PB
43688
43689
a90ef4bf
JM
43690.PHONY: check-target-winsup maybe-check-target-winsup
43691maybe-check-target-winsup:
43692@if target-winsup
43693maybe-check-target-winsup: check-target-winsup
16ae0395 43694
a90ef4bf 43695check-target-winsup:
0aed8855 43696 @: $(MAKE); $(unstage)
b40e3958
L
43697 @r=`${PWD_COMMAND}`; export r; \
43698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43699 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43700 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 43701 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 43702
a90ef4bf 43703@endif target-winsup
e393202e 43704
a90ef4bf
JM
43705.PHONY: install-target-winsup maybe-install-target-winsup
43706maybe-install-target-winsup:
43707@if target-winsup
43708maybe-install-target-winsup: install-target-winsup
4fa63067 43709
a90ef4bf 43710install-target-winsup: installdirs
0aed8855 43711 @: $(MAKE); $(unstage)
4fa63067
NN
43712 @r=`${PWD_COMMAND}`; export r; \
43713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43714 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43715 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 43716 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 43717
a90ef4bf 43718@endif target-winsup
4fa63067 43719
a90ef4bf
JM
43720.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
43721maybe-install-strip-target-winsup:
43722@if target-winsup
43723maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 43724
a90ef4bf 43725install-strip-target-winsup: installdirs
9b980aa1
RW
43726 @: $(MAKE); $(unstage)
43727 @r=`${PWD_COMMAND}`; export r; \
43728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43729 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43730 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
43731 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43732
a90ef4bf 43733@endif target-winsup
9b980aa1 43734
56a8fe78 43735# Other targets (info, dvi, pdf, etc.)
4fa63067 43736
a90ef4bf
JM
43737.PHONY: maybe-info-target-winsup info-target-winsup
43738maybe-info-target-winsup:
43739@if target-winsup
43740maybe-info-target-winsup: info-target-winsup
4fa63067 43741
a90ef4bf
JM
43742info-target-winsup: \
43743 configure-target-winsup
0aed8855 43744 @: $(MAKE); $(unstage)
22121df0 43745 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43746 r=`${PWD_COMMAND}`; export r; \
43747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43748 $(NORMAL_TARGET_EXPORTS) \
22121df0 43749 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43750 for flag in $(EXTRA_TARGET_FLAGS); do \
43751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43752 done; \
a90ef4bf 43753 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43756 "RANLIB=$${RANLIB}" \
0c24b341 43757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43758 info) \
4fa63067
NN
43759 || exit 1
43760
a90ef4bf 43761@endif target-winsup
4fa63067 43762
a90ef4bf
JM
43763.PHONY: maybe-dvi-target-winsup dvi-target-winsup
43764maybe-dvi-target-winsup:
43765@if target-winsup
43766maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 43767
a90ef4bf
JM
43768dvi-target-winsup: \
43769 configure-target-winsup
0aed8855 43770 @: $(MAKE); $(unstage)
22121df0 43771 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43772 r=`${PWD_COMMAND}`; export r; \
43773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43774 $(NORMAL_TARGET_EXPORTS) \
22121df0 43775 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43776 for flag in $(EXTRA_TARGET_FLAGS); do \
43777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43778 done; \
a90ef4bf 43779 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43782 "RANLIB=$${RANLIB}" \
0c24b341 43783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43784 dvi) \
4fa63067
NN
43785 || exit 1
43786
a90ef4bf 43787@endif target-winsup
4fa63067 43788
a90ef4bf
JM
43789.PHONY: maybe-pdf-target-winsup pdf-target-winsup
43790maybe-pdf-target-winsup:
43791@if target-winsup
43792maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 43793
a90ef4bf
JM
43794pdf-target-winsup: \
43795 configure-target-winsup
56a8fe78 43796 @: $(MAKE); $(unstage)
22121df0 43797 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
43798 r=`${PWD_COMMAND}`; export r; \
43799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43800 $(NORMAL_TARGET_EXPORTS) \
22121df0 43801 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
43802 for flag in $(EXTRA_TARGET_FLAGS); do \
43803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43804 done; \
a90ef4bf 43805 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
43806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43808 "RANLIB=$${RANLIB}" \
0c24b341 43809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43810 pdf) \
43811 || exit 1
43812
a90ef4bf 43813@endif target-winsup
56a8fe78 43814
a90ef4bf
JM
43815.PHONY: maybe-html-target-winsup html-target-winsup
43816maybe-html-target-winsup:
43817@if target-winsup
43818maybe-html-target-winsup: html-target-winsup
6d389afc 43819
a90ef4bf
JM
43820html-target-winsup: \
43821 configure-target-winsup
0aed8855 43822 @: $(MAKE); $(unstage)
22121df0 43823 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
43824 r=`${PWD_COMMAND}`; export r; \
43825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43826 $(NORMAL_TARGET_EXPORTS) \
22121df0 43827 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
43828 for flag in $(EXTRA_TARGET_FLAGS); do \
43829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43830 done; \
a90ef4bf 43831 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
43832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43834 "RANLIB=$${RANLIB}" \
0c24b341 43835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43836 html) \
43837 || exit 1
43838
a90ef4bf 43839@endif target-winsup
6d389afc 43840
a90ef4bf
JM
43841.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
43842maybe-TAGS-target-winsup:
43843@if target-winsup
43844maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 43845
a90ef4bf
JM
43846TAGS-target-winsup: \
43847 configure-target-winsup
0aed8855 43848 @: $(MAKE); $(unstage)
22121df0 43849 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43850 r=`${PWD_COMMAND}`; export r; \
43851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43852 $(NORMAL_TARGET_EXPORTS) \
22121df0 43853 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43854 for flag in $(EXTRA_TARGET_FLAGS); do \
43855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43856 done; \
a90ef4bf 43857 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43860 "RANLIB=$${RANLIB}" \
0c24b341 43861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43862 TAGS) \
4fa63067
NN
43863 || exit 1
43864
a90ef4bf 43865@endif target-winsup
4fa63067 43866
a90ef4bf
JM
43867.PHONY: maybe-install-info-target-winsup install-info-target-winsup
43868maybe-install-info-target-winsup:
43869@if target-winsup
43870maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 43871
a90ef4bf
JM
43872install-info-target-winsup: \
43873 configure-target-winsup \
43874 info-target-winsup
0aed8855 43875 @: $(MAKE); $(unstage)
22121df0 43876 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43877 r=`${PWD_COMMAND}`; export r; \
43878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43879 $(NORMAL_TARGET_EXPORTS) \
22121df0 43880 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43881 for flag in $(EXTRA_TARGET_FLAGS); do \
43882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43883 done; \
a90ef4bf 43884 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43887 "RANLIB=$${RANLIB}" \
0c24b341 43888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43889 install-info) \
4fa63067
NN
43890 || exit 1
43891
a90ef4bf 43892@endif target-winsup
4fa63067 43893
a90ef4bf
JM
43894.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
43895maybe-install-pdf-target-winsup:
43896@if target-winsup
43897maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 43898
a90ef4bf
JM
43899install-pdf-target-winsup: \
43900 configure-target-winsup \
43901 pdf-target-winsup
a3ca38d2 43902 @: $(MAKE); $(unstage)
22121df0 43903 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
43904 r=`${PWD_COMMAND}`; export r; \
43905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43906 $(NORMAL_TARGET_EXPORTS) \
22121df0 43907 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
43908 for flag in $(EXTRA_TARGET_FLAGS); do \
43909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43910 done; \
a90ef4bf 43911 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
43912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43914 "RANLIB=$${RANLIB}" \
0c24b341 43915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43916 install-pdf) \
43917 || exit 1
43918
a90ef4bf 43919@endif target-winsup
a3ca38d2 43920
a90ef4bf
JM
43921.PHONY: maybe-install-html-target-winsup install-html-target-winsup
43922maybe-install-html-target-winsup:
43923@if target-winsup
43924maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 43925
a90ef4bf
JM
43926install-html-target-winsup: \
43927 configure-target-winsup \
43928 html-target-winsup
108a6f8e 43929 @: $(MAKE); $(unstage)
22121df0 43930 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
43931 r=`${PWD_COMMAND}`; export r; \
43932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43933 $(NORMAL_TARGET_EXPORTS) \
22121df0 43934 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
43935 for flag in $(EXTRA_TARGET_FLAGS); do \
43936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43937 done; \
a90ef4bf 43938 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
43939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43941 "RANLIB=$${RANLIB}" \
0c24b341 43942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43943 install-html) \
43944 || exit 1
43945
a90ef4bf 43946@endif target-winsup
108a6f8e 43947
a90ef4bf
JM
43948.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
43949maybe-installcheck-target-winsup:
43950@if target-winsup
43951maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 43952
a90ef4bf
JM
43953installcheck-target-winsup: \
43954 configure-target-winsup
0aed8855 43955 @: $(MAKE); $(unstage)
22121df0 43956 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43957 r=`${PWD_COMMAND}`; export r; \
43958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43959 $(NORMAL_TARGET_EXPORTS) \
22121df0 43960 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43961 for flag in $(EXTRA_TARGET_FLAGS); do \
43962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43963 done; \
a90ef4bf 43964 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43967 "RANLIB=$${RANLIB}" \
0c24b341 43968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43969 installcheck) \
4fa63067
NN
43970 || exit 1
43971
a90ef4bf 43972@endif target-winsup
4fa63067 43973
a90ef4bf
JM
43974.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
43975maybe-mostlyclean-target-winsup:
43976@if target-winsup
43977maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 43978
a90ef4bf 43979mostlyclean-target-winsup:
0aed8855 43980 @: $(MAKE); $(unstage)
22121df0 43981 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
43982 r=`${PWD_COMMAND}`; export r; \
43983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43984 $(NORMAL_TARGET_EXPORTS) \
22121df0 43985 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
43986 for flag in $(EXTRA_TARGET_FLAGS); do \
43987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43988 done; \
a90ef4bf 43989 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
43990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43992 "RANLIB=$${RANLIB}" \
0c24b341 43993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43994 mostlyclean) \
4fa63067
NN
43995 || exit 1
43996
a90ef4bf 43997@endif target-winsup
4fa63067 43998
a90ef4bf
JM
43999.PHONY: maybe-clean-target-winsup clean-target-winsup
44000maybe-clean-target-winsup:
44001@if target-winsup
44002maybe-clean-target-winsup: clean-target-winsup
4fa63067 44003
a90ef4bf 44004clean-target-winsup:
0aed8855 44005 @: $(MAKE); $(unstage)
22121df0 44006 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44007 r=`${PWD_COMMAND}`; export r; \
44008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44009 $(NORMAL_TARGET_EXPORTS) \
22121df0 44010 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44011 for flag in $(EXTRA_TARGET_FLAGS); do \
44012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44013 done; \
a90ef4bf 44014 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44017 "RANLIB=$${RANLIB}" \
0c24b341 44018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44019 clean) \
4fa63067
NN
44020 || exit 1
44021
a90ef4bf 44022@endif target-winsup
4fa63067 44023
a90ef4bf
JM
44024.PHONY: maybe-distclean-target-winsup distclean-target-winsup
44025maybe-distclean-target-winsup:
44026@if target-winsup
44027maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 44028
a90ef4bf 44029distclean-target-winsup:
0aed8855 44030 @: $(MAKE); $(unstage)
22121df0 44031 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44032 r=`${PWD_COMMAND}`; export r; \
44033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44034 $(NORMAL_TARGET_EXPORTS) \
22121df0 44035 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44036 for flag in $(EXTRA_TARGET_FLAGS); do \
44037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44038 done; \
a90ef4bf 44039 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44042 "RANLIB=$${RANLIB}" \
0c24b341 44043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44044 distclean) \
4fa63067
NN
44045 || exit 1
44046
a90ef4bf 44047@endif target-winsup
4fa63067 44048
a90ef4bf
JM
44049.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
44050maybe-maintainer-clean-target-winsup:
44051@if target-winsup
44052maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 44053
a90ef4bf 44054maintainer-clean-target-winsup:
0aed8855 44055 @: $(MAKE); $(unstage)
22121df0 44056 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44057 r=`${PWD_COMMAND}`; export r; \
44058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44059 $(NORMAL_TARGET_EXPORTS) \
22121df0 44060 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44061 for flag in $(EXTRA_TARGET_FLAGS); do \
44062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44063 done; \
a90ef4bf 44064 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44067 "RANLIB=$${RANLIB}" \
0c24b341 44068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44069 maintainer-clean) \
4fa63067 44070 || exit 1
16ae0395 44071
a90ef4bf 44072@endif target-winsup
e393202e
NN
44073
44074
15723a45 44075
e90269c8 44076
a7254363 44077
a90ef4bf
JM
44078.PHONY: configure-target-libgloss maybe-configure-target-libgloss
44079maybe-configure-target-libgloss:
4f0ef2d8 44080@if gcc-bootstrap
a90ef4bf 44081configure-target-libgloss: stage_current
4f0ef2d8 44082@endif gcc-bootstrap
a90ef4bf
JM
44083@if target-libgloss
44084maybe-configure-target-libgloss: configure-target-libgloss
44085configure-target-libgloss:
0aed8855
PB
44086 @: $(MAKE); $(unstage)
44087 @r=`${PWD_COMMAND}`; export r; \
44088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44089 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
44090 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
44091 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44092 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
44093 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
44094 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 44095 else \
a90ef4bf
JM
44096 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
44097 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
44098 fi; \
44099 else \
a90ef4bf 44100 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 44101 fi; \
a90ef4bf 44102 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 44103 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 44104 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44105 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
44106 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 44107 case $(srcdir) in \
b00612cc 44108 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44109 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 44110 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44111 esac; \
1b6c0831 44112 module_srcdir=libgloss; \
bba45b8b 44113 rm -f no-such-file || : ; \
1b6c0831
L
44114 CONFIG_SITE=no-such-file $(SHELL) \
44115 $$s/$$module_srcdir/configure \
44116 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44117 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44118 --target=${target_alias} \
bba45b8b 44119 || exit 1
a90ef4bf 44120@endif target-libgloss
e393202e 44121
a7254363
PB
44122
44123
d545f33b
PB
44124
44125
a90ef4bf
JM
44126.PHONY: all-target-libgloss maybe-all-target-libgloss
44127maybe-all-target-libgloss:
4f0ef2d8 44128@if gcc-bootstrap
a90ef4bf 44129all-target-libgloss: stage_current
4f0ef2d8 44130@endif gcc-bootstrap
a90ef4bf
JM
44131@if target-libgloss
44132TARGET-target-libgloss=all
44133maybe-all-target-libgloss: all-target-libgloss
44134all-target-libgloss: configure-target-libgloss
0aed8855 44135 @: $(MAKE); $(unstage)
b40e3958
L
44136 @r=`${PWD_COMMAND}`; export r; \
44137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44138 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44139 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 44140 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44141 $(TARGET-target-libgloss))
44142@endif target-libgloss
e393202e 44143
a7254363
PB
44144
44145
d545f33b
PB
44146
44147
a90ef4bf
JM
44148.PHONY: check-target-libgloss maybe-check-target-libgloss
44149maybe-check-target-libgloss:
44150@if target-libgloss
44151maybe-check-target-libgloss: check-target-libgloss
16ae0395 44152
a90ef4bf
JM
44153# Dummy target for uncheckable module.
44154check-target-libgloss:
930314a4 44155
a90ef4bf 44156@endif target-libgloss
e393202e 44157
a90ef4bf
JM
44158.PHONY: install-target-libgloss maybe-install-target-libgloss
44159maybe-install-target-libgloss:
44160@if target-libgloss
44161maybe-install-target-libgloss: install-target-libgloss
4fa63067 44162
a90ef4bf 44163install-target-libgloss: installdirs
0aed8855 44164 @: $(MAKE); $(unstage)
4fa63067
NN
44165 @r=`${PWD_COMMAND}`; export r; \
44166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44167 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44168 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 44169 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 44170
a90ef4bf 44171@endif target-libgloss
4fa63067 44172
a90ef4bf
JM
44173.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
44174maybe-install-strip-target-libgloss:
44175@if target-libgloss
44176maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 44177
a90ef4bf 44178install-strip-target-libgloss: installdirs
9b980aa1
RW
44179 @: $(MAKE); $(unstage)
44180 @r=`${PWD_COMMAND}`; export r; \
44181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44182 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44183 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
44184 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44185
a90ef4bf 44186@endif target-libgloss
9b980aa1 44187
56a8fe78 44188# Other targets (info, dvi, pdf, etc.)
4fa63067 44189
a90ef4bf
JM
44190.PHONY: maybe-info-target-libgloss info-target-libgloss
44191maybe-info-target-libgloss:
44192@if target-libgloss
44193maybe-info-target-libgloss: info-target-libgloss
4fa63067 44194
a90ef4bf
JM
44195info-target-libgloss: \
44196 configure-target-libgloss
0aed8855 44197 @: $(MAKE); $(unstage)
22121df0 44198 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44199 r=`${PWD_COMMAND}`; export r; \
44200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44201 $(NORMAL_TARGET_EXPORTS) \
22121df0 44202 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44203 for flag in $(EXTRA_TARGET_FLAGS); do \
44204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44205 done; \
a90ef4bf 44206 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44209 "RANLIB=$${RANLIB}" \
0c24b341 44210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44211 info) \
4fa63067
NN
44212 || exit 1
44213
a90ef4bf 44214@endif target-libgloss
4fa63067 44215
a90ef4bf
JM
44216.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
44217maybe-dvi-target-libgloss:
44218@if target-libgloss
44219maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 44220
a90ef4bf
JM
44221dvi-target-libgloss: \
44222 configure-target-libgloss
0aed8855 44223 @: $(MAKE); $(unstage)
22121df0 44224 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44225 r=`${PWD_COMMAND}`; export r; \
44226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44227 $(NORMAL_TARGET_EXPORTS) \
22121df0 44228 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44229 for flag in $(EXTRA_TARGET_FLAGS); do \
44230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44231 done; \
a90ef4bf 44232 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44235 "RANLIB=$${RANLIB}" \
0c24b341 44236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44237 dvi) \
4fa63067
NN
44238 || exit 1
44239
a90ef4bf 44240@endif target-libgloss
4fa63067 44241
a90ef4bf
JM
44242.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
44243maybe-pdf-target-libgloss:
44244@if target-libgloss
44245maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 44246
a90ef4bf
JM
44247pdf-target-libgloss: \
44248 configure-target-libgloss
56a8fe78 44249 @: $(MAKE); $(unstage)
22121df0 44250 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
44251 r=`${PWD_COMMAND}`; export r; \
44252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44253 $(NORMAL_TARGET_EXPORTS) \
22121df0 44254 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
44255 for flag in $(EXTRA_TARGET_FLAGS); do \
44256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44257 done; \
a90ef4bf 44258 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
44259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44261 "RANLIB=$${RANLIB}" \
0c24b341 44262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44263 pdf) \
44264 || exit 1
44265
a90ef4bf 44266@endif target-libgloss
56a8fe78 44267
a90ef4bf
JM
44268.PHONY: maybe-html-target-libgloss html-target-libgloss
44269maybe-html-target-libgloss:
44270@if target-libgloss
44271maybe-html-target-libgloss: html-target-libgloss
6d389afc 44272
a90ef4bf
JM
44273html-target-libgloss: \
44274 configure-target-libgloss
0aed8855 44275 @: $(MAKE); $(unstage)
22121df0 44276 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
44277 r=`${PWD_COMMAND}`; export r; \
44278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44279 $(NORMAL_TARGET_EXPORTS) \
22121df0 44280 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
44281 for flag in $(EXTRA_TARGET_FLAGS); do \
44282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44283 done; \
a90ef4bf 44284 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
44285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44287 "RANLIB=$${RANLIB}" \
0c24b341 44288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44289 html) \
44290 || exit 1
44291
a90ef4bf 44292@endif target-libgloss
6d389afc 44293
a90ef4bf
JM
44294.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
44295maybe-TAGS-target-libgloss:
44296@if target-libgloss
44297maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 44298
a90ef4bf
JM
44299TAGS-target-libgloss: \
44300 configure-target-libgloss
0aed8855 44301 @: $(MAKE); $(unstage)
22121df0 44302 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44303 r=`${PWD_COMMAND}`; export r; \
44304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44305 $(NORMAL_TARGET_EXPORTS) \
22121df0 44306 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44307 for flag in $(EXTRA_TARGET_FLAGS); do \
44308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44309 done; \
a90ef4bf 44310 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44313 "RANLIB=$${RANLIB}" \
0c24b341 44314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44315 TAGS) \
4fa63067
NN
44316 || exit 1
44317
a90ef4bf 44318@endif target-libgloss
4fa63067 44319
a90ef4bf
JM
44320.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
44321maybe-install-info-target-libgloss:
44322@if target-libgloss
44323maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 44324
a90ef4bf
JM
44325install-info-target-libgloss: \
44326 configure-target-libgloss \
44327 info-target-libgloss
0aed8855 44328 @: $(MAKE); $(unstage)
22121df0 44329 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44330 r=`${PWD_COMMAND}`; export r; \
44331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44332 $(NORMAL_TARGET_EXPORTS) \
22121df0 44333 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44334 for flag in $(EXTRA_TARGET_FLAGS); do \
44335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44336 done; \
a90ef4bf 44337 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44340 "RANLIB=$${RANLIB}" \
0c24b341 44341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44342 install-info) \
4fa63067
NN
44343 || exit 1
44344
a90ef4bf 44345@endif target-libgloss
4fa63067 44346
a90ef4bf
JM
44347.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
44348maybe-install-pdf-target-libgloss:
44349@if target-libgloss
44350maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 44351
a90ef4bf
JM
44352install-pdf-target-libgloss: \
44353 configure-target-libgloss \
44354 pdf-target-libgloss
a3ca38d2 44355 @: $(MAKE); $(unstage)
22121df0 44356 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
44357 r=`${PWD_COMMAND}`; export r; \
44358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44359 $(NORMAL_TARGET_EXPORTS) \
22121df0 44360 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
44361 for flag in $(EXTRA_TARGET_FLAGS); do \
44362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44363 done; \
a90ef4bf 44364 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
44365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44367 "RANLIB=$${RANLIB}" \
0c24b341 44368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44369 install-pdf) \
44370 || exit 1
44371
a90ef4bf 44372@endif target-libgloss
a3ca38d2 44373
a90ef4bf
JM
44374.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
44375maybe-install-html-target-libgloss:
44376@if target-libgloss
44377maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 44378
a90ef4bf
JM
44379install-html-target-libgloss: \
44380 configure-target-libgloss \
44381 html-target-libgloss
108a6f8e 44382 @: $(MAKE); $(unstage)
22121df0 44383 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
44384 r=`${PWD_COMMAND}`; export r; \
44385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44386 $(NORMAL_TARGET_EXPORTS) \
22121df0 44387 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
44388 for flag in $(EXTRA_TARGET_FLAGS); do \
44389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44390 done; \
a90ef4bf 44391 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
44392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44394 "RANLIB=$${RANLIB}" \
0c24b341 44395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44396 install-html) \
44397 || exit 1
44398
a90ef4bf 44399@endif target-libgloss
108a6f8e 44400
a90ef4bf
JM
44401.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
44402maybe-installcheck-target-libgloss:
44403@if target-libgloss
44404maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 44405
a90ef4bf
JM
44406installcheck-target-libgloss: \
44407 configure-target-libgloss
0aed8855 44408 @: $(MAKE); $(unstage)
22121df0 44409 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44410 r=`${PWD_COMMAND}`; export r; \
44411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44412 $(NORMAL_TARGET_EXPORTS) \
22121df0 44413 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44414 for flag in $(EXTRA_TARGET_FLAGS); do \
44415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44416 done; \
a90ef4bf 44417 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44420 "RANLIB=$${RANLIB}" \
0c24b341 44421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44422 installcheck) \
4fa63067
NN
44423 || exit 1
44424
a90ef4bf 44425@endif target-libgloss
4fa63067 44426
a90ef4bf
JM
44427.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
44428maybe-mostlyclean-target-libgloss:
44429@if target-libgloss
44430maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 44431
a90ef4bf 44432mostlyclean-target-libgloss:
0aed8855 44433 @: $(MAKE); $(unstage)
22121df0 44434 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44435 r=`${PWD_COMMAND}`; export r; \
44436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44437 $(NORMAL_TARGET_EXPORTS) \
22121df0 44438 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44439 for flag in $(EXTRA_TARGET_FLAGS); do \
44440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44441 done; \
a90ef4bf 44442 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44445 "RANLIB=$${RANLIB}" \
0c24b341 44446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44447 mostlyclean) \
4fa63067
NN
44448 || exit 1
44449
a90ef4bf 44450@endif target-libgloss
4fa63067 44451
a90ef4bf
JM
44452.PHONY: maybe-clean-target-libgloss clean-target-libgloss
44453maybe-clean-target-libgloss:
44454@if target-libgloss
44455maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 44456
a90ef4bf 44457clean-target-libgloss:
0aed8855 44458 @: $(MAKE); $(unstage)
22121df0 44459 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44460 r=`${PWD_COMMAND}`; export r; \
44461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44462 $(NORMAL_TARGET_EXPORTS) \
22121df0 44463 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44464 for flag in $(EXTRA_TARGET_FLAGS); do \
44465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44466 done; \
a90ef4bf 44467 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44470 "RANLIB=$${RANLIB}" \
0c24b341 44471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44472 clean) \
4fa63067
NN
44473 || exit 1
44474
a90ef4bf 44475@endif target-libgloss
4fa63067 44476
a90ef4bf
JM
44477.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
44478maybe-distclean-target-libgloss:
44479@if target-libgloss
44480maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 44481
a90ef4bf 44482distclean-target-libgloss:
0aed8855 44483 @: $(MAKE); $(unstage)
22121df0 44484 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44485 r=`${PWD_COMMAND}`; export r; \
44486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44487 $(NORMAL_TARGET_EXPORTS) \
22121df0 44488 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44489 for flag in $(EXTRA_TARGET_FLAGS); do \
44490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44491 done; \
a90ef4bf 44492 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44495 "RANLIB=$${RANLIB}" \
0c24b341 44496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44497 distclean) \
4fa63067
NN
44498 || exit 1
44499
a90ef4bf 44500@endif target-libgloss
4fa63067 44501
a90ef4bf
JM
44502.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
44503maybe-maintainer-clean-target-libgloss:
44504@if target-libgloss
44505maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 44506
a90ef4bf 44507maintainer-clean-target-libgloss:
0aed8855 44508 @: $(MAKE); $(unstage)
22121df0 44509 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
44510 r=`${PWD_COMMAND}`; export r; \
44511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44512 $(NORMAL_TARGET_EXPORTS) \
22121df0 44513 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
44514 for flag in $(EXTRA_TARGET_FLAGS); do \
44515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44516 done; \
a90ef4bf 44517 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
44518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44520 "RANLIB=$${RANLIB}" \
0c24b341 44521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44522 maintainer-clean) \
4fa63067 44523 || exit 1
16ae0395 44524
a90ef4bf 44525@endif target-libgloss
e393202e
NN
44526
44527
15723a45 44528
a7254363
PB
44529
44530
a7254363
PB
44531.PHONY: configure-target-libffi maybe-configure-target-libffi
44532maybe-configure-target-libffi:
4f0ef2d8
CD
44533@if gcc-bootstrap
44534configure-target-libffi: stage_current
44535@endif gcc-bootstrap
a7254363
PB
44536@if target-libffi
44537maybe-configure-target-libffi: configure-target-libffi
c52c6897 44538configure-target-libffi:
0aed8855
PB
44539 @: $(MAKE); $(unstage)
44540 @r=`${PWD_COMMAND}`; export r; \
44541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44542 echo "Checking multilib configuration for libffi..."; \
22121df0
L
44543 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
44544 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
44545 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
44546 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
44547 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
44548 else \
44549 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
44550 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
44551 fi; \
44552 else \
44553 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
44554 fi; \
44555 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 44556 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 44557 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
44558 echo Configuring in $(TARGET_SUBDIR)/libffi; \
44559 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 44560 case $(srcdir) in \
b00612cc
PB
44561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
44562 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
44563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44564 esac; \
1b6c0831 44565 module_srcdir=libffi; \
bba45b8b 44566 rm -f no-such-file || : ; \
1b6c0831
L
44567 CONFIG_SITE=no-such-file $(SHELL) \
44568 $$s/$$module_srcdir/configure \
44569 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44570 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44571 --target=${target_alias} \
bba45b8b 44572 || exit 1
6bd3dfaa 44573@endif target-libffi
e393202e 44574
a7254363
PB
44575
44576
d545f33b
PB
44577
44578
4fa63067
NN
44579.PHONY: all-target-libffi maybe-all-target-libffi
44580maybe-all-target-libffi:
4f0ef2d8
CD
44581@if gcc-bootstrap
44582all-target-libffi: stage_current
44583@endif gcc-bootstrap
6bd3dfaa 44584@if target-libffi
72b2455a 44585TARGET-target-libffi=all
6bd3dfaa 44586maybe-all-target-libffi: all-target-libffi
4fa63067 44587all-target-libffi: configure-target-libffi
0aed8855 44588 @: $(MAKE); $(unstage)
b40e3958
L
44589 @r=`${PWD_COMMAND}`; export r; \
44590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44591 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44592 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 44593 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 44594 $(TARGET-target-libffi))
6bd3dfaa 44595@endif target-libffi
e393202e 44596
a7254363
PB
44597
44598
d545f33b
PB
44599
44600
4fa63067
NN
44601.PHONY: check-target-libffi maybe-check-target-libffi
44602maybe-check-target-libffi:
6bd3dfaa
PB
44603@if target-libffi
44604maybe-check-target-libffi: check-target-libffi
16ae0395 44605
4fa63067 44606check-target-libffi:
0aed8855 44607 @: $(MAKE); $(unstage)
b40e3958
L
44608 @r=`${PWD_COMMAND}`; export r; \
44609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44610 $(NORMAL_TARGET_EXPORTS) \
4fa63067 44611 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 44612 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 44613
6bd3dfaa 44614@endif target-libffi
e393202e 44615
4fa63067
NN
44616.PHONY: install-target-libffi maybe-install-target-libffi
44617maybe-install-target-libffi:
6bd3dfaa
PB
44618@if target-libffi
44619maybe-install-target-libffi: install-target-libffi
16ae0395 44620
b836cb18
JBG
44621# Dummy target for uninstallable.
44622install-target-libffi:
e393202e 44623
6bd3dfaa 44624@endif target-libffi
e393202e 44625
9b980aa1
RW
44626.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
44627maybe-install-strip-target-libffi:
44628@if target-libffi
44629maybe-install-strip-target-libffi: install-strip-target-libffi
44630
b836cb18
JBG
44631# Dummy target for uninstallable.
44632install-strip-target-libffi:
9b980aa1
RW
44633
44634@endif target-libffi
44635
56a8fe78 44636# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
44637
44638.PHONY: maybe-info-target-libffi info-target-libffi
44639maybe-info-target-libffi:
6bd3dfaa
PB
44640@if target-libffi
44641maybe-info-target-libffi: info-target-libffi
4fa63067
NN
44642
44643info-target-libffi: \
44644 configure-target-libffi
0aed8855 44645 @: $(MAKE); $(unstage)
22121df0 44646 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44647 r=`${PWD_COMMAND}`; export r; \
44648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44649 $(NORMAL_TARGET_EXPORTS) \
22121df0 44650 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44651 for flag in $(EXTRA_TARGET_FLAGS); do \
44652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44653 done; \
44654 (cd $(TARGET_SUBDIR)/libffi && \
44655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44657 "RANLIB=$${RANLIB}" \
0c24b341 44658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44659 info) \
4fa63067
NN
44660 || exit 1
44661
6bd3dfaa 44662@endif target-libffi
4fa63067
NN
44663
44664.PHONY: maybe-dvi-target-libffi dvi-target-libffi
44665maybe-dvi-target-libffi:
6bd3dfaa
PB
44666@if target-libffi
44667maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
44668
44669dvi-target-libffi: \
44670 configure-target-libffi
0aed8855 44671 @: $(MAKE); $(unstage)
22121df0 44672 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44673 r=`${PWD_COMMAND}`; export r; \
44674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44675 $(NORMAL_TARGET_EXPORTS) \
22121df0 44676 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44677 for flag in $(EXTRA_TARGET_FLAGS); do \
44678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44679 done; \
44680 (cd $(TARGET_SUBDIR)/libffi && \
44681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44683 "RANLIB=$${RANLIB}" \
0c24b341 44684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44685 dvi) \
4fa63067
NN
44686 || exit 1
44687
6bd3dfaa 44688@endif target-libffi
4fa63067 44689
56a8fe78
DD
44690.PHONY: maybe-pdf-target-libffi pdf-target-libffi
44691maybe-pdf-target-libffi:
44692@if target-libffi
44693maybe-pdf-target-libffi: pdf-target-libffi
44694
44695pdf-target-libffi: \
44696 configure-target-libffi
44697 @: $(MAKE); $(unstage)
22121df0 44698 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
44699 r=`${PWD_COMMAND}`; export r; \
44700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44701 $(NORMAL_TARGET_EXPORTS) \
22121df0 44702 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
44703 for flag in $(EXTRA_TARGET_FLAGS); do \
44704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44705 done; \
44706 (cd $(TARGET_SUBDIR)/libffi && \
44707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44709 "RANLIB=$${RANLIB}" \
0c24b341 44710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44711 pdf) \
44712 || exit 1
44713
44714@endif target-libffi
44715
6d389afc
MS
44716.PHONY: maybe-html-target-libffi html-target-libffi
44717maybe-html-target-libffi:
44718@if target-libffi
44719maybe-html-target-libffi: html-target-libffi
44720
44721html-target-libffi: \
44722 configure-target-libffi
0aed8855 44723 @: $(MAKE); $(unstage)
22121df0 44724 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
44725 r=`${PWD_COMMAND}`; export r; \
44726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44727 $(NORMAL_TARGET_EXPORTS) \
22121df0 44728 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
44729 for flag in $(EXTRA_TARGET_FLAGS); do \
44730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44731 done; \
44732 (cd $(TARGET_SUBDIR)/libffi && \
44733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44735 "RANLIB=$${RANLIB}" \
0c24b341 44736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44737 html) \
44738 || exit 1
44739
44740@endif target-libffi
44741
4fa63067
NN
44742.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
44743maybe-TAGS-target-libffi:
6bd3dfaa
PB
44744@if target-libffi
44745maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
44746
44747TAGS-target-libffi: \
44748 configure-target-libffi
0aed8855 44749 @: $(MAKE); $(unstage)
22121df0 44750 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44751 r=`${PWD_COMMAND}`; export r; \
44752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44753 $(NORMAL_TARGET_EXPORTS) \
22121df0 44754 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44755 for flag in $(EXTRA_TARGET_FLAGS); do \
44756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44757 done; \
44758 (cd $(TARGET_SUBDIR)/libffi && \
44759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44761 "RANLIB=$${RANLIB}" \
0c24b341 44762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44763 TAGS) \
4fa63067
NN
44764 || exit 1
44765
6bd3dfaa 44766@endif target-libffi
4fa63067
NN
44767
44768.PHONY: maybe-install-info-target-libffi install-info-target-libffi
44769maybe-install-info-target-libffi:
6bd3dfaa
PB
44770@if target-libffi
44771maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
44772
44773install-info-target-libffi: \
44774 configure-target-libffi \
44775 info-target-libffi
0aed8855 44776 @: $(MAKE); $(unstage)
22121df0 44777 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44778 r=`${PWD_COMMAND}`; export r; \
44779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44780 $(NORMAL_TARGET_EXPORTS) \
22121df0 44781 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44782 for flag in $(EXTRA_TARGET_FLAGS); do \
44783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44784 done; \
44785 (cd $(TARGET_SUBDIR)/libffi && \
44786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44788 "RANLIB=$${RANLIB}" \
0c24b341 44789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44790 install-info) \
4fa63067
NN
44791 || exit 1
44792
6bd3dfaa 44793@endif target-libffi
4fa63067 44794
a3ca38d2
DD
44795.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
44796maybe-install-pdf-target-libffi:
44797@if target-libffi
44798maybe-install-pdf-target-libffi: install-pdf-target-libffi
44799
44800install-pdf-target-libffi: \
44801 configure-target-libffi \
44802 pdf-target-libffi
44803 @: $(MAKE); $(unstage)
22121df0 44804 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
44805 r=`${PWD_COMMAND}`; export r; \
44806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44807 $(NORMAL_TARGET_EXPORTS) \
22121df0 44808 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
44809 for flag in $(EXTRA_TARGET_FLAGS); do \
44810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44811 done; \
44812 (cd $(TARGET_SUBDIR)/libffi && \
44813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44815 "RANLIB=$${RANLIB}" \
0c24b341 44816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44817 install-pdf) \
44818 || exit 1
44819
44820@endif target-libffi
44821
108a6f8e
CD
44822.PHONY: maybe-install-html-target-libffi install-html-target-libffi
44823maybe-install-html-target-libffi:
44824@if target-libffi
44825maybe-install-html-target-libffi: install-html-target-libffi
44826
44827install-html-target-libffi: \
44828 configure-target-libffi \
44829 html-target-libffi
44830 @: $(MAKE); $(unstage)
22121df0 44831 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
44832 r=`${PWD_COMMAND}`; export r; \
44833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44834 $(NORMAL_TARGET_EXPORTS) \
22121df0 44835 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
44836 for flag in $(EXTRA_TARGET_FLAGS); do \
44837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44838 done; \
44839 (cd $(TARGET_SUBDIR)/libffi && \
44840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44842 "RANLIB=$${RANLIB}" \
0c24b341 44843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44844 install-html) \
44845 || exit 1
44846
44847@endif target-libffi
44848
4fa63067
NN
44849.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
44850maybe-installcheck-target-libffi:
6bd3dfaa
PB
44851@if target-libffi
44852maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
44853
44854installcheck-target-libffi: \
44855 configure-target-libffi
0aed8855 44856 @: $(MAKE); $(unstage)
22121df0 44857 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44858 r=`${PWD_COMMAND}`; export r; \
44859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44860 $(NORMAL_TARGET_EXPORTS) \
22121df0 44861 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44862 for flag in $(EXTRA_TARGET_FLAGS); do \
44863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44864 done; \
44865 (cd $(TARGET_SUBDIR)/libffi && \
44866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44868 "RANLIB=$${RANLIB}" \
0c24b341 44869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44870 installcheck) \
4fa63067
NN
44871 || exit 1
44872
6bd3dfaa 44873@endif target-libffi
4fa63067
NN
44874
44875.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
44876maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
44877@if target-libffi
44878maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
44879
44880mostlyclean-target-libffi:
0aed8855 44881 @: $(MAKE); $(unstage)
22121df0 44882 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44883 r=`${PWD_COMMAND}`; export r; \
44884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44885 $(NORMAL_TARGET_EXPORTS) \
22121df0 44886 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44887 for flag in $(EXTRA_TARGET_FLAGS); do \
44888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44889 done; \
44890 (cd $(TARGET_SUBDIR)/libffi && \
44891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44893 "RANLIB=$${RANLIB}" \
0c24b341 44894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44895 mostlyclean) \
4fa63067
NN
44896 || exit 1
44897
6bd3dfaa 44898@endif target-libffi
4fa63067
NN
44899
44900.PHONY: maybe-clean-target-libffi clean-target-libffi
44901maybe-clean-target-libffi:
6bd3dfaa
PB
44902@if target-libffi
44903maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
44904
44905clean-target-libffi:
0aed8855 44906 @: $(MAKE); $(unstage)
22121df0 44907 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44908 r=`${PWD_COMMAND}`; export r; \
44909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44910 $(NORMAL_TARGET_EXPORTS) \
22121df0 44911 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44912 for flag in $(EXTRA_TARGET_FLAGS); do \
44913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44914 done; \
44915 (cd $(TARGET_SUBDIR)/libffi && \
44916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44918 "RANLIB=$${RANLIB}" \
0c24b341 44919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44920 clean) \
4fa63067
NN
44921 || exit 1
44922
6bd3dfaa 44923@endif target-libffi
4fa63067
NN
44924
44925.PHONY: maybe-distclean-target-libffi distclean-target-libffi
44926maybe-distclean-target-libffi:
6bd3dfaa
PB
44927@if target-libffi
44928maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
44929
44930distclean-target-libffi:
0aed8855 44931 @: $(MAKE); $(unstage)
22121df0 44932 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44933 r=`${PWD_COMMAND}`; export r; \
44934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44935 $(NORMAL_TARGET_EXPORTS) \
22121df0 44936 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44937 for flag in $(EXTRA_TARGET_FLAGS); do \
44938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44939 done; \
44940 (cd $(TARGET_SUBDIR)/libffi && \
44941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44943 "RANLIB=$${RANLIB}" \
0c24b341 44944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44945 distclean) \
4fa63067
NN
44946 || exit 1
44947
6bd3dfaa 44948@endif target-libffi
4fa63067
NN
44949
44950.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
44951maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
44952@if target-libffi
44953maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
44954
44955maintainer-clean-target-libffi:
0aed8855 44956 @: $(MAKE); $(unstage)
22121df0 44957 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
44958 r=`${PWD_COMMAND}`; export r; \
44959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44960 $(NORMAL_TARGET_EXPORTS) \
22121df0 44961 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
44962 for flag in $(EXTRA_TARGET_FLAGS); do \
44963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44964 done; \
44965 (cd $(TARGET_SUBDIR)/libffi && \
44966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44968 "RANLIB=$${RANLIB}" \
0c24b341 44969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44970 maintainer-clean) \
4fa63067
NN
44971 || exit 1
44972
6bd3dfaa 44973@endif target-libffi
4fa63067
NN
44974
44975
15723a45 44976
a7254363 44977
15723a45 44978
a7254363
PB
44979.PHONY: configure-target-zlib maybe-configure-target-zlib
44980maybe-configure-target-zlib:
4f0ef2d8
CD
44981@if gcc-bootstrap
44982configure-target-zlib: stage_current
44983@endif gcc-bootstrap
a7254363
PB
44984@if target-zlib
44985maybe-configure-target-zlib: configure-target-zlib
c52c6897 44986configure-target-zlib:
0aed8855
PB
44987 @: $(MAKE); $(unstage)
44988 @r=`${PWD_COMMAND}`; export r; \
44989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44990 echo "Checking multilib configuration for zlib..."; \
22121df0
L
44991 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
44992 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
44993 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
44994 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
44995 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
44996 else \
44997 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
44998 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
44999 fi; \
45000 else \
45001 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
45002 fi; \
45003 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 45004 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 45005 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45006 echo Configuring in $(TARGET_SUBDIR)/zlib; \
45007 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 45008 case $(srcdir) in \
b00612cc
PB
45009 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45010 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
45011 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45012 esac; \
1b6c0831 45013 module_srcdir=zlib; \
bba45b8b 45014 rm -f no-such-file || : ; \
1b6c0831
L
45015 CONFIG_SITE=no-such-file $(SHELL) \
45016 $$s/$$module_srcdir/configure \
45017 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45018 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45019 --target=${target_alias} \
bba45b8b 45020 || exit 1
6bd3dfaa 45021@endif target-zlib
e393202e 45022
a7254363
PB
45023
45024
d545f33b
PB
45025
45026
4fa63067
NN
45027.PHONY: all-target-zlib maybe-all-target-zlib
45028maybe-all-target-zlib:
4f0ef2d8
CD
45029@if gcc-bootstrap
45030all-target-zlib: stage_current
45031@endif gcc-bootstrap
6bd3dfaa 45032@if target-zlib
72b2455a 45033TARGET-target-zlib=all
6bd3dfaa 45034maybe-all-target-zlib: all-target-zlib
4fa63067 45035all-target-zlib: configure-target-zlib
0aed8855 45036 @: $(MAKE); $(unstage)
b40e3958
L
45037 @r=`${PWD_COMMAND}`; export r; \
45038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45039 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45040 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 45041 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45042 $(TARGET-target-zlib))
6bd3dfaa 45043@endif target-zlib
e393202e 45044
a7254363
PB
45045
45046
d545f33b
PB
45047
45048
4fa63067
NN
45049.PHONY: check-target-zlib maybe-check-target-zlib
45050maybe-check-target-zlib:
6bd3dfaa
PB
45051@if target-zlib
45052maybe-check-target-zlib: check-target-zlib
16ae0395 45053
4fa63067 45054check-target-zlib:
0aed8855 45055 @: $(MAKE); $(unstage)
b40e3958
L
45056 @r=`${PWD_COMMAND}`; export r; \
45057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45058 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45059 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 45060 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 45061
6bd3dfaa 45062@endif target-zlib
930314a4 45063
4fa63067
NN
45064.PHONY: install-target-zlib maybe-install-target-zlib
45065maybe-install-target-zlib:
6bd3dfaa
PB
45066@if target-zlib
45067maybe-install-target-zlib: install-target-zlib
16ae0395 45068
4fa63067 45069install-target-zlib: installdirs
0aed8855 45070 @: $(MAKE); $(unstage)
b40e3958
L
45071 @r=`${PWD_COMMAND}`; export r; \
45072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45073 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45074 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 45075 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 45076
6bd3dfaa 45077@endif target-zlib
e393202e 45078
9b980aa1
RW
45079.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
45080maybe-install-strip-target-zlib:
45081@if target-zlib
45082maybe-install-strip-target-zlib: install-strip-target-zlib
45083
45084install-strip-target-zlib: installdirs
45085 @: $(MAKE); $(unstage)
45086 @r=`${PWD_COMMAND}`; export r; \
45087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45088 $(NORMAL_TARGET_EXPORTS) \
45089 (cd $(TARGET_SUBDIR)/zlib && \
45090 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45091
45092@endif target-zlib
45093
56a8fe78 45094# Other targets (info, dvi, pdf, etc.)
15723a45 45095
4fa63067
NN
45096.PHONY: maybe-info-target-zlib info-target-zlib
45097maybe-info-target-zlib:
6bd3dfaa
PB
45098@if target-zlib
45099maybe-info-target-zlib: info-target-zlib
15723a45 45100
4fa63067
NN
45101info-target-zlib: \
45102 configure-target-zlib
0aed8855 45103 @: $(MAKE); $(unstage)
22121df0 45104 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
45105 r=`${PWD_COMMAND}`; export r; \
45106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45107 $(NORMAL_TARGET_EXPORTS) \
22121df0 45108 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45109 for flag in $(EXTRA_TARGET_FLAGS); do \
45110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45111 done; \
45112 (cd $(TARGET_SUBDIR)/zlib && \
45113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45115 "RANLIB=$${RANLIB}" \
0c24b341 45116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45117 info) \
bba45b8b 45118 || exit 1
e393202e 45119
6bd3dfaa 45120@endif target-zlib
e393202e 45121
4fa63067
NN
45122.PHONY: maybe-dvi-target-zlib dvi-target-zlib
45123maybe-dvi-target-zlib:
6bd3dfaa
PB
45124@if target-zlib
45125maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 45126
4fa63067
NN
45127dvi-target-zlib: \
45128 configure-target-zlib
0aed8855 45129 @: $(MAKE); $(unstage)
22121df0 45130 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45131 r=`${PWD_COMMAND}`; export r; \
b40e3958 45132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45133 $(NORMAL_TARGET_EXPORTS) \
22121df0 45134 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45135 for flag in $(EXTRA_TARGET_FLAGS); do \
45136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45137 done; \
45138 (cd $(TARGET_SUBDIR)/zlib && \
45139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45141 "RANLIB=$${RANLIB}" \
0c24b341 45142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45143 dvi) \
4fa63067 45144 || exit 1
e393202e 45145
6bd3dfaa 45146@endif target-zlib
930314a4 45147
56a8fe78
DD
45148.PHONY: maybe-pdf-target-zlib pdf-target-zlib
45149maybe-pdf-target-zlib:
45150@if target-zlib
45151maybe-pdf-target-zlib: pdf-target-zlib
45152
45153pdf-target-zlib: \
45154 configure-target-zlib
45155 @: $(MAKE); $(unstage)
22121df0 45156 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
45157 r=`${PWD_COMMAND}`; export r; \
45158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45159 $(NORMAL_TARGET_EXPORTS) \
22121df0 45160 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
45161 for flag in $(EXTRA_TARGET_FLAGS); do \
45162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45163 done; \
45164 (cd $(TARGET_SUBDIR)/zlib && \
45165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45167 "RANLIB=$${RANLIB}" \
0c24b341 45168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45169 pdf) \
45170 || exit 1
45171
45172@endif target-zlib
45173
6d389afc
MS
45174.PHONY: maybe-html-target-zlib html-target-zlib
45175maybe-html-target-zlib:
45176@if target-zlib
45177maybe-html-target-zlib: html-target-zlib
45178
45179html-target-zlib: \
45180 configure-target-zlib
0aed8855 45181 @: $(MAKE); $(unstage)
22121df0 45182 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
45183 r=`${PWD_COMMAND}`; export r; \
45184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45185 $(NORMAL_TARGET_EXPORTS) \
22121df0 45186 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
45187 for flag in $(EXTRA_TARGET_FLAGS); do \
45188 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45189 done; \
45190 (cd $(TARGET_SUBDIR)/zlib && \
45191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45193 "RANLIB=$${RANLIB}" \
0c24b341 45194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45195 html) \
45196 || exit 1
45197
45198@endif target-zlib
45199
4fa63067
NN
45200.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
45201maybe-TAGS-target-zlib:
6bd3dfaa
PB
45202@if target-zlib
45203maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 45204
4fa63067
NN
45205TAGS-target-zlib: \
45206 configure-target-zlib
0aed8855 45207 @: $(MAKE); $(unstage)
22121df0 45208 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45209 r=`${PWD_COMMAND}`; export r; \
b40e3958 45210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45211 $(NORMAL_TARGET_EXPORTS) \
22121df0 45212 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45213 for flag in $(EXTRA_TARGET_FLAGS); do \
45214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45215 done; \
45216 (cd $(TARGET_SUBDIR)/zlib && \
45217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45219 "RANLIB=$${RANLIB}" \
0c24b341 45220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45221 TAGS) \
4fa63067 45222 || exit 1
e393202e 45223
6bd3dfaa 45224@endif target-zlib
15723a45 45225
4fa63067
NN
45226.PHONY: maybe-install-info-target-zlib install-info-target-zlib
45227maybe-install-info-target-zlib:
6bd3dfaa
PB
45228@if target-zlib
45229maybe-install-info-target-zlib: install-info-target-zlib
15723a45 45230
4fa63067
NN
45231install-info-target-zlib: \
45232 configure-target-zlib \
45233 info-target-zlib
0aed8855 45234 @: $(MAKE); $(unstage)
22121df0 45235 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
45236 r=`${PWD_COMMAND}`; export r; \
45237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45238 $(NORMAL_TARGET_EXPORTS) \
22121df0 45239 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45240 for flag in $(EXTRA_TARGET_FLAGS); do \
45241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45242 done; \
45243 (cd $(TARGET_SUBDIR)/zlib && \
45244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45246 "RANLIB=$${RANLIB}" \
0c24b341 45247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45248 install-info) \
bba45b8b 45249 || exit 1
e393202e 45250
6bd3dfaa 45251@endif target-zlib
16ae0395 45252
a3ca38d2
DD
45253.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
45254maybe-install-pdf-target-zlib:
45255@if target-zlib
45256maybe-install-pdf-target-zlib: install-pdf-target-zlib
45257
45258install-pdf-target-zlib: \
45259 configure-target-zlib \
45260 pdf-target-zlib
45261 @: $(MAKE); $(unstage)
22121df0 45262 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
45263 r=`${PWD_COMMAND}`; export r; \
45264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45265 $(NORMAL_TARGET_EXPORTS) \
22121df0 45266 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
45267 for flag in $(EXTRA_TARGET_FLAGS); do \
45268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45269 done; \
45270 (cd $(TARGET_SUBDIR)/zlib && \
45271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45273 "RANLIB=$${RANLIB}" \
0c24b341 45274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45275 install-pdf) \
45276 || exit 1
45277
45278@endif target-zlib
45279
108a6f8e
CD
45280.PHONY: maybe-install-html-target-zlib install-html-target-zlib
45281maybe-install-html-target-zlib:
45282@if target-zlib
45283maybe-install-html-target-zlib: install-html-target-zlib
45284
45285install-html-target-zlib: \
45286 configure-target-zlib \
45287 html-target-zlib
45288 @: $(MAKE); $(unstage)
22121df0 45289 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
45290 r=`${PWD_COMMAND}`; export r; \
45291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45292 $(NORMAL_TARGET_EXPORTS) \
22121df0 45293 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
45294 for flag in $(EXTRA_TARGET_FLAGS); do \
45295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45296 done; \
45297 (cd $(TARGET_SUBDIR)/zlib && \
45298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45300 "RANLIB=$${RANLIB}" \
0c24b341 45301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45302 install-html) \
45303 || exit 1
45304
45305@endif target-zlib
45306
4fa63067
NN
45307.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
45308maybe-installcheck-target-zlib:
6bd3dfaa
PB
45309@if target-zlib
45310maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 45311
4fa63067
NN
45312installcheck-target-zlib: \
45313 configure-target-zlib
0aed8855 45314 @: $(MAKE); $(unstage)
22121df0 45315 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
45316 r=`${PWD_COMMAND}`; export r; \
45317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45318 $(NORMAL_TARGET_EXPORTS) \
22121df0 45319 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45320 for flag in $(EXTRA_TARGET_FLAGS); do \
45321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45322 done; \
45323 (cd $(TARGET_SUBDIR)/zlib && \
45324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45326 "RANLIB=$${RANLIB}" \
0c24b341 45327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45328 installcheck) \
4fa63067 45329 || exit 1
e393202e 45330
6bd3dfaa 45331@endif target-zlib
16ae0395 45332
4fa63067
NN
45333.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
45334maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
45335@if target-zlib
45336maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 45337
4fa63067 45338mostlyclean-target-zlib:
0aed8855 45339 @: $(MAKE); $(unstage)
22121df0 45340 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
45341 r=`${PWD_COMMAND}`; export r; \
45342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45343 $(NORMAL_TARGET_EXPORTS) \
22121df0 45344 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45345 for flag in $(EXTRA_TARGET_FLAGS); do \
45346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45347 done; \
45348 (cd $(TARGET_SUBDIR)/zlib && \
45349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45351 "RANLIB=$${RANLIB}" \
0c24b341 45352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45353 mostlyclean) \
4fa63067 45354 || exit 1
e393202e 45355
6bd3dfaa 45356@endif target-zlib
15723a45 45357
4fa63067
NN
45358.PHONY: maybe-clean-target-zlib clean-target-zlib
45359maybe-clean-target-zlib:
6bd3dfaa
PB
45360@if target-zlib
45361maybe-clean-target-zlib: clean-target-zlib
15723a45 45362
4fa63067 45363clean-target-zlib:
0aed8855 45364 @: $(MAKE); $(unstage)
22121df0 45365 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
45366 r=`${PWD_COMMAND}`; export r; \
45367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45368 $(NORMAL_TARGET_EXPORTS) \
22121df0 45369 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45370 for flag in $(EXTRA_TARGET_FLAGS); do \
45371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45372 done; \
45373 (cd $(TARGET_SUBDIR)/zlib && \
45374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45376 "RANLIB=$${RANLIB}" \
0c24b341 45377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45378 clean) \
bba45b8b 45379 || exit 1
e393202e 45380
6bd3dfaa 45381@endif target-zlib
e393202e 45382
4fa63067
NN
45383.PHONY: maybe-distclean-target-zlib distclean-target-zlib
45384maybe-distclean-target-zlib:
6bd3dfaa
PB
45385@if target-zlib
45386maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 45387
4fa63067 45388distclean-target-zlib:
0aed8855 45389 @: $(MAKE); $(unstage)
22121df0 45390 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45391 r=`${PWD_COMMAND}`; export r; \
b40e3958 45392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45393 $(NORMAL_TARGET_EXPORTS) \
22121df0 45394 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45395 for flag in $(EXTRA_TARGET_FLAGS); do \
45396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45397 done; \
45398 (cd $(TARGET_SUBDIR)/zlib && \
45399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45401 "RANLIB=$${RANLIB}" \
0c24b341 45402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45403 distclean) \
4fa63067 45404 || exit 1
e393202e 45405
6bd3dfaa 45406@endif target-zlib
e393202e 45407
4fa63067
NN
45408.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
45409maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
45410@if target-zlib
45411maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 45412
4fa63067 45413maintainer-clean-target-zlib:
0aed8855 45414 @: $(MAKE); $(unstage)
22121df0 45415 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 45416 r=`${PWD_COMMAND}`; export r; \
b40e3958 45417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45418 $(NORMAL_TARGET_EXPORTS) \
22121df0 45419 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
45420 for flag in $(EXTRA_TARGET_FLAGS); do \
45421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45422 done; \
45423 (cd $(TARGET_SUBDIR)/zlib && \
45424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45426 "RANLIB=$${RANLIB}" \
0c24b341 45427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45428 maintainer-clean) \
4fa63067 45429 || exit 1
e393202e 45430
6bd3dfaa 45431@endif target-zlib
930314a4 45432
4fa63067 45433
15723a45 45434
a7254363 45435
e90269c8 45436
a7254363
PB
45437.PHONY: configure-target-rda maybe-configure-target-rda
45438maybe-configure-target-rda:
4f0ef2d8
CD
45439@if gcc-bootstrap
45440configure-target-rda: stage_current
45441@endif gcc-bootstrap
a7254363
PB
45442@if target-rda
45443maybe-configure-target-rda: configure-target-rda
c52c6897 45444configure-target-rda:
0aed8855
PB
45445 @: $(MAKE); $(unstage)
45446 @r=`${PWD_COMMAND}`; export r; \
45447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45448 echo "Checking multilib configuration for rda..."; \
22121df0
L
45449 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
45450 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
45451 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
45452 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
45453 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
45454 else \
45455 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
45456 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
45457 fi; \
45458 else \
45459 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
45460 fi; \
45461 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 45462 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 45463 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45464 echo Configuring in $(TARGET_SUBDIR)/rda; \
45465 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 45466 case $(srcdir) in \
b00612cc
PB
45467 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45468 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
45469 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45470 esac; \
1b6c0831 45471 module_srcdir=rda; \
bba45b8b 45472 rm -f no-such-file || : ; \
1b6c0831
L
45473 CONFIG_SITE=no-such-file $(SHELL) \
45474 $$s/$$module_srcdir/configure \
45475 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45476 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45477 --target=${target_alias} \
bba45b8b 45478 || exit 1
6bd3dfaa 45479@endif target-rda
49b7683b 45480
a7254363
PB
45481
45482
d545f33b
PB
45483
45484
4fa63067
NN
45485.PHONY: all-target-rda maybe-all-target-rda
45486maybe-all-target-rda:
4f0ef2d8
CD
45487@if gcc-bootstrap
45488all-target-rda: stage_current
45489@endif gcc-bootstrap
6bd3dfaa 45490@if target-rda
72b2455a 45491TARGET-target-rda=all
6bd3dfaa 45492maybe-all-target-rda: all-target-rda
4fa63067 45493all-target-rda: configure-target-rda
0aed8855 45494 @: $(MAKE); $(unstage)
b40e3958
L
45495 @r=`${PWD_COMMAND}`; export r; \
45496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45497 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45498 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 45499 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45500 $(TARGET-target-rda))
6bd3dfaa 45501@endif target-rda
252b5132 45502
a7254363
PB
45503
45504
d545f33b
PB
45505
45506
4fa63067
NN
45507.PHONY: check-target-rda maybe-check-target-rda
45508maybe-check-target-rda:
6bd3dfaa
PB
45509@if target-rda
45510maybe-check-target-rda: check-target-rda
16ae0395 45511
4fa63067 45512check-target-rda:
0aed8855 45513 @: $(MAKE); $(unstage)
b40e3958
L
45514 @r=`${PWD_COMMAND}`; export r; \
45515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45516 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45517 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 45518 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 45519
6bd3dfaa 45520@endif target-rda
930314a4 45521
4fa63067
NN
45522.PHONY: install-target-rda maybe-install-target-rda
45523maybe-install-target-rda:
6bd3dfaa
PB
45524@if target-rda
45525maybe-install-target-rda: install-target-rda
16ae0395 45526
4fa63067 45527install-target-rda: installdirs
0aed8855 45528 @: $(MAKE); $(unstage)
b40e3958
L
45529 @r=`${PWD_COMMAND}`; export r; \
45530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45531 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45532 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 45533 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 45534
6bd3dfaa 45535@endif target-rda
e393202e 45536
9b980aa1
RW
45537.PHONY: install-strip-target-rda maybe-install-strip-target-rda
45538maybe-install-strip-target-rda:
45539@if target-rda
45540maybe-install-strip-target-rda: install-strip-target-rda
45541
45542install-strip-target-rda: installdirs
45543 @: $(MAKE); $(unstage)
45544 @r=`${PWD_COMMAND}`; export r; \
45545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45546 $(NORMAL_TARGET_EXPORTS) \
45547 (cd $(TARGET_SUBDIR)/rda && \
45548 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45549
45550@endif target-rda
45551
56a8fe78 45552# Other targets (info, dvi, pdf, etc.)
15723a45 45553
4fa63067
NN
45554.PHONY: maybe-info-target-rda info-target-rda
45555maybe-info-target-rda:
6bd3dfaa
PB
45556@if target-rda
45557maybe-info-target-rda: info-target-rda
15723a45 45558
4fa63067
NN
45559info-target-rda: \
45560 configure-target-rda
0aed8855 45561 @: $(MAKE); $(unstage)
22121df0 45562 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45563 r=`${PWD_COMMAND}`; export r; \
45564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45565 $(NORMAL_TARGET_EXPORTS) \
22121df0 45566 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45567 for flag in $(EXTRA_TARGET_FLAGS); do \
45568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45569 done; \
45570 (cd $(TARGET_SUBDIR)/rda && \
45571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45573 "RANLIB=$${RANLIB}" \
0c24b341 45574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45575 info) \
bba45b8b 45576 || exit 1
252b5132 45577
6bd3dfaa 45578@endif target-rda
4fa63067
NN
45579
45580.PHONY: maybe-dvi-target-rda dvi-target-rda
45581maybe-dvi-target-rda:
6bd3dfaa
PB
45582@if target-rda
45583maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
45584
45585dvi-target-rda: \
45586 configure-target-rda
0aed8855 45587 @: $(MAKE); $(unstage)
22121df0 45588 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45589 r=`${PWD_COMMAND}`; export r; \
b40e3958 45590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45591 $(NORMAL_TARGET_EXPORTS) \
22121df0 45592 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45593 for flag in $(EXTRA_TARGET_FLAGS); do \
45594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45595 done; \
45596 (cd $(TARGET_SUBDIR)/rda && \
45597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45599 "RANLIB=$${RANLIB}" \
0c24b341 45600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45601 dvi) \
4fa63067 45602 || exit 1
252b5132 45603
6bd3dfaa 45604@endif target-rda
16ae0395 45605
56a8fe78
DD
45606.PHONY: maybe-pdf-target-rda pdf-target-rda
45607maybe-pdf-target-rda:
45608@if target-rda
45609maybe-pdf-target-rda: pdf-target-rda
45610
45611pdf-target-rda: \
45612 configure-target-rda
45613 @: $(MAKE); $(unstage)
22121df0 45614 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
45615 r=`${PWD_COMMAND}`; export r; \
45616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45617 $(NORMAL_TARGET_EXPORTS) \
22121df0 45618 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
45619 for flag in $(EXTRA_TARGET_FLAGS); do \
45620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45621 done; \
45622 (cd $(TARGET_SUBDIR)/rda && \
45623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45625 "RANLIB=$${RANLIB}" \
0c24b341 45626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45627 pdf) \
45628 || exit 1
45629
45630@endif target-rda
45631
6d389afc
MS
45632.PHONY: maybe-html-target-rda html-target-rda
45633maybe-html-target-rda:
45634@if target-rda
45635maybe-html-target-rda: html-target-rda
45636
45637html-target-rda: \
45638 configure-target-rda
0aed8855 45639 @: $(MAKE); $(unstage)
22121df0 45640 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
45641 r=`${PWD_COMMAND}`; export r; \
45642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45643 $(NORMAL_TARGET_EXPORTS) \
22121df0 45644 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
45645 for flag in $(EXTRA_TARGET_FLAGS); do \
45646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45647 done; \
45648 (cd $(TARGET_SUBDIR)/rda && \
45649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45651 "RANLIB=$${RANLIB}" \
0c24b341 45652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45653 html) \
45654 || exit 1
45655
45656@endif target-rda
45657
4fa63067
NN
45658.PHONY: maybe-TAGS-target-rda TAGS-target-rda
45659maybe-TAGS-target-rda:
6bd3dfaa
PB
45660@if target-rda
45661maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
45662
45663TAGS-target-rda: \
45664 configure-target-rda
0aed8855 45665 @: $(MAKE); $(unstage)
22121df0 45666 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45667 r=`${PWD_COMMAND}`; export r; \
b40e3958 45668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45669 $(NORMAL_TARGET_EXPORTS) \
22121df0 45670 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45671 for flag in $(EXTRA_TARGET_FLAGS); do \
45672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45673 done; \
45674 (cd $(TARGET_SUBDIR)/rda && \
45675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45677 "RANLIB=$${RANLIB}" \
0c24b341 45678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45679 TAGS) \
4fa63067 45680 || exit 1
e393202e 45681
6bd3dfaa 45682@endif target-rda
930314a4 45683
4fa63067
NN
45684.PHONY: maybe-install-info-target-rda install-info-target-rda
45685maybe-install-info-target-rda:
6bd3dfaa
PB
45686@if target-rda
45687maybe-install-info-target-rda: install-info-target-rda
16ae0395 45688
4fa63067
NN
45689install-info-target-rda: \
45690 configure-target-rda \
45691 info-target-rda
0aed8855 45692 @: $(MAKE); $(unstage)
22121df0 45693 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45694 r=`${PWD_COMMAND}`; export r; \
b40e3958 45695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45696 $(NORMAL_TARGET_EXPORTS) \
22121df0 45697 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45698 for flag in $(EXTRA_TARGET_FLAGS); do \
45699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45700 done; \
45701 (cd $(TARGET_SUBDIR)/rda && \
45702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45704 "RANLIB=$${RANLIB}" \
0c24b341 45705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45706 install-info) \
4fa63067 45707 || exit 1
252b5132 45708
6bd3dfaa 45709@endif target-rda
e393202e 45710
a3ca38d2
DD
45711.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
45712maybe-install-pdf-target-rda:
45713@if target-rda
45714maybe-install-pdf-target-rda: install-pdf-target-rda
45715
45716install-pdf-target-rda: \
45717 configure-target-rda \
45718 pdf-target-rda
45719 @: $(MAKE); $(unstage)
22121df0 45720 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
45721 r=`${PWD_COMMAND}`; export r; \
45722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45723 $(NORMAL_TARGET_EXPORTS) \
22121df0 45724 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
45725 for flag in $(EXTRA_TARGET_FLAGS); do \
45726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45727 done; \
45728 (cd $(TARGET_SUBDIR)/rda && \
45729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45731 "RANLIB=$${RANLIB}" \
0c24b341 45732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45733 install-pdf) \
45734 || exit 1
45735
45736@endif target-rda
45737
108a6f8e
CD
45738.PHONY: maybe-install-html-target-rda install-html-target-rda
45739maybe-install-html-target-rda:
45740@if target-rda
45741maybe-install-html-target-rda: install-html-target-rda
45742
45743install-html-target-rda: \
45744 configure-target-rda \
45745 html-target-rda
45746 @: $(MAKE); $(unstage)
22121df0 45747 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
45748 r=`${PWD_COMMAND}`; export r; \
45749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45750 $(NORMAL_TARGET_EXPORTS) \
22121df0 45751 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
45752 for flag in $(EXTRA_TARGET_FLAGS); do \
45753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45754 done; \
45755 (cd $(TARGET_SUBDIR)/rda && \
45756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45758 "RANLIB=$${RANLIB}" \
0c24b341 45759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45760 install-html) \
45761 || exit 1
45762
45763@endif target-rda
45764
4fa63067
NN
45765.PHONY: maybe-installcheck-target-rda installcheck-target-rda
45766maybe-installcheck-target-rda:
6bd3dfaa
PB
45767@if target-rda
45768maybe-installcheck-target-rda: installcheck-target-rda
15723a45 45769
4fa63067
NN
45770installcheck-target-rda: \
45771 configure-target-rda
0aed8855 45772 @: $(MAKE); $(unstage)
22121df0 45773 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
45774 r=`${PWD_COMMAND}`; export r; \
45775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45776 $(NORMAL_TARGET_EXPORTS) \
22121df0 45777 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45778 for flag in $(EXTRA_TARGET_FLAGS); do \
45779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45780 done; \
45781 (cd $(TARGET_SUBDIR)/rda && \
45782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45784 "RANLIB=$${RANLIB}" \
0c24b341 45785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45786 installcheck) \
4fa63067 45787 || exit 1
15723a45 45788
6bd3dfaa 45789@endif target-rda
4fa63067
NN
45790
45791.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
45792maybe-mostlyclean-target-rda:
6bd3dfaa
PB
45793@if target-rda
45794maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
45795
45796mostlyclean-target-rda:
0aed8855 45797 @: $(MAKE); $(unstage)
22121df0 45798 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
45799 r=`${PWD_COMMAND}`; export r; \
45800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45801 $(NORMAL_TARGET_EXPORTS) \
22121df0 45802 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45803 for flag in $(EXTRA_TARGET_FLAGS); do \
45804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45805 done; \
45806 (cd $(TARGET_SUBDIR)/rda && \
45807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45809 "RANLIB=$${RANLIB}" \
0c24b341 45810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45811 mostlyclean) \
bba45b8b 45812 || exit 1
252b5132 45813
6bd3dfaa 45814@endif target-rda
4fa63067
NN
45815
45816.PHONY: maybe-clean-target-rda clean-target-rda
45817maybe-clean-target-rda:
6bd3dfaa
PB
45818@if target-rda
45819maybe-clean-target-rda: clean-target-rda
4fa63067
NN
45820
45821clean-target-rda:
0aed8855 45822 @: $(MAKE); $(unstage)
22121df0 45823 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45824 r=`${PWD_COMMAND}`; export r; \
b40e3958 45825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45826 $(NORMAL_TARGET_EXPORTS) \
22121df0 45827 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45828 for flag in $(EXTRA_TARGET_FLAGS); do \
45829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45830 done; \
bba45b8b 45831 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45834 "RANLIB=$${RANLIB}" \
0c24b341 45835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45836 clean) \
4fa63067 45837 || exit 1
252b5132 45838
6bd3dfaa 45839@endif target-rda
16ae0395 45840
4fa63067
NN
45841.PHONY: maybe-distclean-target-rda distclean-target-rda
45842maybe-distclean-target-rda:
6bd3dfaa
PB
45843@if target-rda
45844maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
45845
45846distclean-target-rda:
0aed8855 45847 @: $(MAKE); $(unstage)
22121df0 45848 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45849 r=`${PWD_COMMAND}`; export r; \
b40e3958 45850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45851 $(NORMAL_TARGET_EXPORTS) \
22121df0 45852 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45853 for flag in $(EXTRA_TARGET_FLAGS); do \
45854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45855 done; \
bba45b8b 45856 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45859 "RANLIB=$${RANLIB}" \
0c24b341 45860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45861 distclean) \
4fa63067 45862 || exit 1
252b5132 45863
6bd3dfaa 45864@endif target-rda
930314a4 45865
4fa63067
NN
45866.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
45867maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
45868@if target-rda
45869maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 45870
4fa63067 45871maintainer-clean-target-rda:
0aed8855 45872 @: $(MAKE); $(unstage)
22121df0 45873 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 45874 r=`${PWD_COMMAND}`; export r; \
b40e3958 45875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45876 $(NORMAL_TARGET_EXPORTS) \
22121df0 45877 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
45878 for flag in $(EXTRA_TARGET_FLAGS); do \
45879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45880 done; \
bba45b8b 45881 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
45882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45884 "RANLIB=$${RANLIB}" \
0c24b341 45885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45886 maintainer-clean) \
4fa63067
NN
45887 || exit 1
45888
6bd3dfaa 45889@endif target-rda
252b5132 45890
e393202e 45891
a2592b1b 45892
a7254363
PB
45893
45894
45895.PHONY: configure-target-libada maybe-configure-target-libada
45896maybe-configure-target-libada:
4f0ef2d8
CD
45897@if gcc-bootstrap
45898configure-target-libada: stage_current
45899@endif gcc-bootstrap
a7254363
PB
45900@if target-libada
45901maybe-configure-target-libada: configure-target-libada
c52c6897 45902configure-target-libada:
0aed8855
PB
45903 @: $(MAKE); $(unstage)
45904 @r=`${PWD_COMMAND}`; export r; \
45905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45906 echo "Checking multilib configuration for libada..."; \
22121df0
L
45907 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
45908 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
45909 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
45910 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
45911 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
45912 else \
45913 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
45914 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
45915 fi; \
45916 else \
45917 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
45918 fi; \
45919 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 45920 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 45921 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
45922 echo Configuring in $(TARGET_SUBDIR)/libada; \
45923 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
45924 case $(srcdir) in \
b00612cc
PB
45925 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45926 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
45927 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 45928 esac; \
1b6c0831 45929 module_srcdir=libada; \
a2592b1b 45930 rm -f no-such-file || : ; \
1b6c0831
L
45931 CONFIG_SITE=no-such-file $(SHELL) \
45932 $$s/$$module_srcdir/configure \
45933 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45934 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45935 --target=${target_alias} \
a2592b1b 45936 || exit 1
6bd3dfaa 45937@endif target-libada
a2592b1b 45938
a7254363
PB
45939
45940
d545f33b
PB
45941
45942
4fa63067
NN
45943.PHONY: all-target-libada maybe-all-target-libada
45944maybe-all-target-libada:
4f0ef2d8
CD
45945@if gcc-bootstrap
45946all-target-libada: stage_current
45947@endif gcc-bootstrap
6bd3dfaa 45948@if target-libada
72b2455a 45949TARGET-target-libada=all
6bd3dfaa 45950maybe-all-target-libada: all-target-libada
4fa63067 45951all-target-libada: configure-target-libada
0aed8855 45952 @: $(MAKE); $(unstage)
4fa63067
NN
45953 @r=`${PWD_COMMAND}`; export r; \
45954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45955 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45956 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 45957 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45958 $(TARGET-target-libada))
6bd3dfaa 45959@endif target-libada
4fa63067 45960
a7254363
PB
45961
45962
d545f33b
PB
45963
45964
4fa63067
NN
45965.PHONY: check-target-libada maybe-check-target-libada
45966maybe-check-target-libada:
6bd3dfaa
PB
45967@if target-libada
45968maybe-check-target-libada: check-target-libada
4fa63067
NN
45969
45970check-target-libada:
0aed8855 45971 @: $(MAKE); $(unstage)
4fa63067
NN
45972 @r=`${PWD_COMMAND}`; export r; \
45973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45974 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45975 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45976 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 45977
6bd3dfaa 45978@endif target-libada
4fa63067
NN
45979
45980.PHONY: install-target-libada maybe-install-target-libada
45981maybe-install-target-libada:
6bd3dfaa
PB
45982@if target-libada
45983maybe-install-target-libada: install-target-libada
4fa63067
NN
45984
45985install-target-libada: installdirs
0aed8855 45986 @: $(MAKE); $(unstage)
4fa63067
NN
45987 @r=`${PWD_COMMAND}`; export r; \
45988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45989 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45990 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 45991 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45992
6bd3dfaa 45993@endif target-libada
4fa63067 45994
9b980aa1
RW
45995.PHONY: install-strip-target-libada maybe-install-strip-target-libada
45996maybe-install-strip-target-libada:
45997@if target-libada
45998maybe-install-strip-target-libada: install-strip-target-libada
45999
46000install-strip-target-libada: installdirs
46001 @: $(MAKE); $(unstage)
46002 @r=`${PWD_COMMAND}`; export r; \
46003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46004 $(NORMAL_TARGET_EXPORTS) \
46005 (cd $(TARGET_SUBDIR)/libada && \
46006 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46007
46008@endif target-libada
46009
56a8fe78 46010# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
46011
46012.PHONY: maybe-info-target-libada info-target-libada
46013maybe-info-target-libada:
6bd3dfaa
PB
46014@if target-libada
46015maybe-info-target-libada: info-target-libada
4fa63067
NN
46016
46017info-target-libada: \
46018 configure-target-libada
0aed8855 46019 @: $(MAKE); $(unstage)
22121df0 46020 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46021 r=`${PWD_COMMAND}`; export r; \
46022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46023 $(NORMAL_TARGET_EXPORTS) \
22121df0 46024 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46025 for flag in $(EXTRA_TARGET_FLAGS); do \
46026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46027 done; \
46028 (cd $(TARGET_SUBDIR)/libada && \
46029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46031 "RANLIB=$${RANLIB}" \
0c24b341 46032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46033 info) \
4fa63067
NN
46034 || exit 1
46035
6bd3dfaa 46036@endif target-libada
4fa63067
NN
46037
46038.PHONY: maybe-dvi-target-libada dvi-target-libada
46039maybe-dvi-target-libada:
6bd3dfaa
PB
46040@if target-libada
46041maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
46042
46043dvi-target-libada: \
46044 configure-target-libada
0aed8855 46045 @: $(MAKE); $(unstage)
22121df0 46046 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46047 r=`${PWD_COMMAND}`; export r; \
46048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46049 $(NORMAL_TARGET_EXPORTS) \
22121df0 46050 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46051 for flag in $(EXTRA_TARGET_FLAGS); do \
46052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46053 done; \
46054 (cd $(TARGET_SUBDIR)/libada && \
46055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46057 "RANLIB=$${RANLIB}" \
0c24b341 46058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46059 dvi) \
4fa63067
NN
46060 || exit 1
46061
6bd3dfaa 46062@endif target-libada
4fa63067 46063
56a8fe78
DD
46064.PHONY: maybe-pdf-target-libada pdf-target-libada
46065maybe-pdf-target-libada:
46066@if target-libada
46067maybe-pdf-target-libada: pdf-target-libada
46068
46069pdf-target-libada: \
46070 configure-target-libada
46071 @: $(MAKE); $(unstage)
22121df0 46072 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
46073 r=`${PWD_COMMAND}`; export r; \
46074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46075 $(NORMAL_TARGET_EXPORTS) \
22121df0 46076 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
46077 for flag in $(EXTRA_TARGET_FLAGS); do \
46078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46079 done; \
46080 (cd $(TARGET_SUBDIR)/libada && \
46081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46083 "RANLIB=$${RANLIB}" \
0c24b341 46084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46085 pdf) \
46086 || exit 1
46087
46088@endif target-libada
46089
6d389afc
MS
46090.PHONY: maybe-html-target-libada html-target-libada
46091maybe-html-target-libada:
46092@if target-libada
46093maybe-html-target-libada: html-target-libada
46094
46095html-target-libada: \
46096 configure-target-libada
0aed8855 46097 @: $(MAKE); $(unstage)
22121df0 46098 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
46099 r=`${PWD_COMMAND}`; export r; \
46100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46101 $(NORMAL_TARGET_EXPORTS) \
22121df0 46102 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
46103 for flag in $(EXTRA_TARGET_FLAGS); do \
46104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46105 done; \
46106 (cd $(TARGET_SUBDIR)/libada && \
46107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46109 "RANLIB=$${RANLIB}" \
0c24b341 46110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46111 html) \
46112 || exit 1
46113
46114@endif target-libada
46115
4fa63067
NN
46116.PHONY: maybe-TAGS-target-libada TAGS-target-libada
46117maybe-TAGS-target-libada:
6bd3dfaa
PB
46118@if target-libada
46119maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
46120
46121TAGS-target-libada: \
46122 configure-target-libada
0aed8855 46123 @: $(MAKE); $(unstage)
22121df0 46124 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46125 r=`${PWD_COMMAND}`; export r; \
46126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46127 $(NORMAL_TARGET_EXPORTS) \
22121df0 46128 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46129 for flag in $(EXTRA_TARGET_FLAGS); do \
46130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46131 done; \
46132 (cd $(TARGET_SUBDIR)/libada && \
46133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46135 "RANLIB=$${RANLIB}" \
0c24b341 46136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46137 TAGS) \
4fa63067
NN
46138 || exit 1
46139
6bd3dfaa 46140@endif target-libada
4fa63067
NN
46141
46142.PHONY: maybe-install-info-target-libada install-info-target-libada
46143maybe-install-info-target-libada:
6bd3dfaa
PB
46144@if target-libada
46145maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
46146
46147install-info-target-libada: \
46148 configure-target-libada \
46149 info-target-libada
0aed8855 46150 @: $(MAKE); $(unstage)
22121df0 46151 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46152 r=`${PWD_COMMAND}`; export r; \
46153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46154 $(NORMAL_TARGET_EXPORTS) \
22121df0 46155 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46156 for flag in $(EXTRA_TARGET_FLAGS); do \
46157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46158 done; \
46159 (cd $(TARGET_SUBDIR)/libada && \
46160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46162 "RANLIB=$${RANLIB}" \
0c24b341 46163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46164 install-info) \
4fa63067
NN
46165 || exit 1
46166
6bd3dfaa 46167@endif target-libada
4fa63067 46168
a3ca38d2
DD
46169.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
46170maybe-install-pdf-target-libada:
46171@if target-libada
46172maybe-install-pdf-target-libada: install-pdf-target-libada
46173
46174install-pdf-target-libada: \
46175 configure-target-libada \
46176 pdf-target-libada
46177 @: $(MAKE); $(unstage)
22121df0 46178 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
46179 r=`${PWD_COMMAND}`; export r; \
46180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46181 $(NORMAL_TARGET_EXPORTS) \
22121df0 46182 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
46183 for flag in $(EXTRA_TARGET_FLAGS); do \
46184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46185 done; \
46186 (cd $(TARGET_SUBDIR)/libada && \
46187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46189 "RANLIB=$${RANLIB}" \
0c24b341 46190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46191 install-pdf) \
46192 || exit 1
46193
46194@endif target-libada
46195
108a6f8e
CD
46196.PHONY: maybe-install-html-target-libada install-html-target-libada
46197maybe-install-html-target-libada:
46198@if target-libada
46199maybe-install-html-target-libada: install-html-target-libada
46200
46201install-html-target-libada: \
46202 configure-target-libada \
46203 html-target-libada
46204 @: $(MAKE); $(unstage)
22121df0 46205 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
46206 r=`${PWD_COMMAND}`; export r; \
46207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46208 $(NORMAL_TARGET_EXPORTS) \
22121df0 46209 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
46210 for flag in $(EXTRA_TARGET_FLAGS); do \
46211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46212 done; \
46213 (cd $(TARGET_SUBDIR)/libada && \
46214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46216 "RANLIB=$${RANLIB}" \
0c24b341 46217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46218 install-html) \
46219 || exit 1
46220
46221@endif target-libada
46222
4fa63067
NN
46223.PHONY: maybe-installcheck-target-libada installcheck-target-libada
46224maybe-installcheck-target-libada:
6bd3dfaa
PB
46225@if target-libada
46226maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
46227
46228installcheck-target-libada: \
46229 configure-target-libada
0aed8855 46230 @: $(MAKE); $(unstage)
22121df0 46231 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46232 r=`${PWD_COMMAND}`; export r; \
46233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46234 $(NORMAL_TARGET_EXPORTS) \
22121df0 46235 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46236 for flag in $(EXTRA_TARGET_FLAGS); do \
46237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46238 done; \
46239 (cd $(TARGET_SUBDIR)/libada && \
46240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46242 "RANLIB=$${RANLIB}" \
0c24b341 46243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46244 installcheck) \
4fa63067
NN
46245 || exit 1
46246
6bd3dfaa 46247@endif target-libada
4fa63067
NN
46248
46249.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
46250maybe-mostlyclean-target-libada:
6bd3dfaa
PB
46251@if target-libada
46252maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
46253
46254mostlyclean-target-libada:
0aed8855 46255 @: $(MAKE); $(unstage)
22121df0 46256 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46257 r=`${PWD_COMMAND}`; export r; \
46258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46259 $(NORMAL_TARGET_EXPORTS) \
22121df0 46260 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46261 for flag in $(EXTRA_TARGET_FLAGS); do \
46262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46263 done; \
46264 (cd $(TARGET_SUBDIR)/libada && \
46265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46267 "RANLIB=$${RANLIB}" \
0c24b341 46268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46269 mostlyclean) \
4fa63067
NN
46270 || exit 1
46271
6bd3dfaa 46272@endif target-libada
4fa63067
NN
46273
46274.PHONY: maybe-clean-target-libada clean-target-libada
46275maybe-clean-target-libada:
6bd3dfaa
PB
46276@if target-libada
46277maybe-clean-target-libada: clean-target-libada
4fa63067
NN
46278
46279clean-target-libada:
0aed8855 46280 @: $(MAKE); $(unstage)
22121df0 46281 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
46282 r=`${PWD_COMMAND}`; export r; \
46283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46284 $(NORMAL_TARGET_EXPORTS) \
22121df0 46285 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46286 for flag in $(EXTRA_TARGET_FLAGS); do \
46287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46288 done; \
46289 (cd $(TARGET_SUBDIR)/libada && \
46290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46292 "RANLIB=$${RANLIB}" \
0c24b341 46293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46294 clean) \
4fa63067
NN
46295 || exit 1
46296
6bd3dfaa 46297@endif target-libada
a2592b1b 46298
4fa63067
NN
46299.PHONY: maybe-distclean-target-libada distclean-target-libada
46300maybe-distclean-target-libada:
6bd3dfaa
PB
46301@if target-libada
46302maybe-distclean-target-libada: distclean-target-libada
a2592b1b 46303
4fa63067 46304distclean-target-libada:
0aed8855 46305 @: $(MAKE); $(unstage)
22121df0 46306 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 46307 r=`${PWD_COMMAND}`; export r; \
a2592b1b 46308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46309 $(NORMAL_TARGET_EXPORTS) \
22121df0 46310 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46311 for flag in $(EXTRA_TARGET_FLAGS); do \
46312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46313 done; \
a2592b1b 46314 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
46315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46317 "RANLIB=$${RANLIB}" \
0c24b341 46318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46319 distclean) \
4fa63067 46320 || exit 1
a2592b1b 46321
6bd3dfaa 46322@endif target-libada
a2592b1b 46323
4fa63067
NN
46324.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
46325maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
46326@if target-libada
46327maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 46328
4fa63067 46329maintainer-clean-target-libada:
0aed8855 46330 @: $(MAKE); $(unstage)
22121df0 46331 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 46332 r=`${PWD_COMMAND}`; export r; \
a2592b1b 46333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46334 $(NORMAL_TARGET_EXPORTS) \
22121df0 46335 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
46336 for flag in $(EXTRA_TARGET_FLAGS); do \
46337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46338 done; \
a2592b1b 46339 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
46340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46342 "RANLIB=$${RANLIB}" \
0c24b341 46343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46344 maintainer-clean) \
4fa63067
NN
46345 || exit 1
46346
6bd3dfaa 46347@endif target-libada
a2592b1b
DD
46348
46349
e393202e 46350
b3ded179
PB
46351
46352
46353.PHONY: configure-target-libgomp maybe-configure-target-libgomp
46354maybe-configure-target-libgomp:
4f0ef2d8
CD
46355@if gcc-bootstrap
46356configure-target-libgomp: stage_current
46357@endif gcc-bootstrap
b3ded179
PB
46358@if target-libgomp
46359maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 46360configure-target-libgomp:
b3ded179
PB
46361 @r=`${PWD_COMMAND}`; export r; \
46362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46363 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
46364 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
46365 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
46366 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46367 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46368 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46369 else \
46370 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46371 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46372 fi; \
46373 else \
46374 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
46375 fi; \
46376 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 46377 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 46378 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
46379 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
46380 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
46381 case $(srcdir) in \
46382 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46383 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46384 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46385 esac; \
1b6c0831 46386 module_srcdir=libgomp; \
b3ded179 46387 rm -f no-such-file || : ; \
1b6c0831
L
46388 CONFIG_SITE=no-such-file $(SHELL) \
46389 $$s/$$module_srcdir/configure \
46390 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46391 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46392 --target=${target_alias} \
b3ded179
PB
46393 || exit 1
46394@endif target-libgomp
46395
46396
46397
911e63d0
JR
46398.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
46399maybe-configure-stage1-target-libgomp:
46400@if target-libgomp-bootstrap
46401maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
46402configure-stage1-target-libgomp:
46403 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46404 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46405 @r=`${PWD_COMMAND}`; export r; \
46406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46407 TFLAGS="$(STAGE1_TFLAGS)"; \
46408 echo "Checking multilib configuration for libgomp..."; \
22121df0 46409 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46410 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46411 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46412 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46413 else \
46414 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46415 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46416 fi; \
46417 else \
46418 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46419 fi; \
46420 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46421 $(NORMAL_TARGET_EXPORTS) \
46422 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46423 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46424 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46425 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
46426 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46427 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46428 case $(srcdir) in \
46429 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46430 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46431 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46432 esac; \
1b6c0831
L
46433 module_srcdir=libgomp; \
46434 $(SHELL) $$s/$$module_srcdir/configure \
46435 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46436 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
46437 --target=${target_alias} \
46438 \
911e63d0
JR
46439 $(STAGE1_CONFIGURE_FLAGS)
46440@endif target-libgomp-bootstrap
46441
46442.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
46443maybe-configure-stage2-target-libgomp:
46444@if target-libgomp-bootstrap
46445maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
46446configure-stage2-target-libgomp:
46447 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46448 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46449 @r=`${PWD_COMMAND}`; export r; \
46450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46451 TFLAGS="$(STAGE2_TFLAGS)"; \
46452 echo "Checking multilib configuration for libgomp..."; \
22121df0 46453 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46454 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46455 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46456 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46457 else \
46458 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46459 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46460 fi; \
46461 else \
46462 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46463 fi; \
46464 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46465 $(NORMAL_TARGET_EXPORTS) \
46466 \
46467 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46468 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46469 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46470 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
46471 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46472 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46473 case $(srcdir) in \
46474 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46475 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46476 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46477 esac; \
1b6c0831
L
46478 module_srcdir=libgomp; \
46479 $(SHELL) $$s/$$module_srcdir/configure \
46480 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46481 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46482 --target=${target_alias} \
22121df0 46483 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46484 $(STAGE2_CONFIGURE_FLAGS)
46485@endif target-libgomp-bootstrap
46486
46487.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
46488maybe-configure-stage3-target-libgomp:
46489@if target-libgomp-bootstrap
46490maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
46491configure-stage3-target-libgomp:
46492 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46493 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46494 @r=`${PWD_COMMAND}`; export r; \
46495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46496 TFLAGS="$(STAGE3_TFLAGS)"; \
46497 echo "Checking multilib configuration for libgomp..."; \
22121df0 46498 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46499 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46500 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46501 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46502 else \
46503 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46504 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46505 fi; \
46506 else \
46507 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46508 fi; \
46509 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46510 $(NORMAL_TARGET_EXPORTS) \
46511 \
46512 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46513 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46514 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46515 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
46516 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46517 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46518 case $(srcdir) in \
46519 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46520 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46521 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46522 esac; \
1b6c0831
L
46523 module_srcdir=libgomp; \
46524 $(SHELL) $$s/$$module_srcdir/configure \
46525 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46526 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46527 --target=${target_alias} \
22121df0 46528 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46529 $(STAGE3_CONFIGURE_FLAGS)
46530@endif target-libgomp-bootstrap
46531
46532.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
46533maybe-configure-stage4-target-libgomp:
46534@if target-libgomp-bootstrap
46535maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
46536configure-stage4-target-libgomp:
46537 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46538 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46539 @r=`${PWD_COMMAND}`; export r; \
46540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46541 TFLAGS="$(STAGE4_TFLAGS)"; \
46542 echo "Checking multilib configuration for libgomp..."; \
22121df0 46543 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46544 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46545 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46546 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46547 else \
46548 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46549 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46550 fi; \
46551 else \
46552 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46553 fi; \
46554 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46555 $(NORMAL_TARGET_EXPORTS) \
46556 \
46557 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46558 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46559 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46560 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
46561 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46562 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46563 case $(srcdir) in \
46564 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46565 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46566 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46567 esac; \
1b6c0831
L
46568 module_srcdir=libgomp; \
46569 $(SHELL) $$s/$$module_srcdir/configure \
46570 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46571 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46572 --target=${target_alias} \
22121df0 46573 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46574 $(STAGE4_CONFIGURE_FLAGS)
46575@endif target-libgomp-bootstrap
46576
46577.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
46578maybe-configure-stageprofile-target-libgomp:
46579@if target-libgomp-bootstrap
46580maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46581configure-stageprofile-target-libgomp:
46582 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46583 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46584 @r=`${PWD_COMMAND}`; export r; \
46585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46586 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46587 echo "Checking multilib configuration for libgomp..."; \
22121df0 46588 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46589 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46590 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46591 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46592 else \
46593 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46594 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46595 fi; \
46596 else \
46597 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46598 fi; \
46599 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46600 $(NORMAL_TARGET_EXPORTS) \
46601 \
46602 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46603 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46604 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46605 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
46606 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46607 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46608 case $(srcdir) in \
46609 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46610 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46611 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46612 esac; \
1b6c0831
L
46613 module_srcdir=libgomp; \
46614 $(SHELL) $$s/$$module_srcdir/configure \
46615 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46616 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46617 --target=${target_alias} \
22121df0 46618 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46619 $(STAGEprofile_CONFIGURE_FLAGS)
46620@endif target-libgomp-bootstrap
46621
46622.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
46623maybe-configure-stagefeedback-target-libgomp:
46624@if target-libgomp-bootstrap
46625maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46626configure-stagefeedback-target-libgomp:
46627 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46628 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
46629 @r=`${PWD_COMMAND}`; export r; \
46630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46631 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46632 echo "Checking multilib configuration for libgomp..."; \
22121df0 46633 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
46634 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46635 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
46636 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
46637 else \
46638 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
46639 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46640 fi; \
46641 else \
46642 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
46643 fi; \
46644 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
46645 $(NORMAL_TARGET_EXPORTS) \
46646 \
46647 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
46648 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
46649 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
46650 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
46651 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
46652 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
46653 case $(srcdir) in \
46654 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46655 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
46656 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
46657 esac; \
1b6c0831
L
46658 module_srcdir=libgomp; \
46659 $(SHELL) $$s/$$module_srcdir/configure \
46660 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 46661 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46662 --target=${target_alias} \
22121df0 46663 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
46664 $(STAGEfeedback_CONFIGURE_FLAGS)
46665@endif target-libgomp-bootstrap
46666
46667
46668
b3ded179
PB
46669
46670
46671.PHONY: all-target-libgomp maybe-all-target-libgomp
46672maybe-all-target-libgomp:
4f0ef2d8
CD
46673@if gcc-bootstrap
46674all-target-libgomp: stage_current
46675@endif gcc-bootstrap
b3ded179
PB
46676@if target-libgomp
46677TARGET-target-libgomp=all
46678maybe-all-target-libgomp: all-target-libgomp
46679all-target-libgomp: configure-target-libgomp
b3ded179
PB
46680 @r=`${PWD_COMMAND}`; export r; \
46681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46682 $(NORMAL_TARGET_EXPORTS) \
b3ded179 46683 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46684 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46685 $(TARGET-target-libgomp))
b3ded179
PB
46686@endif target-libgomp
46687
46688
46689
911e63d0
JR
46690.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
46691.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
46692maybe-all-stage1-target-libgomp:
46693maybe-clean-stage1-target-libgomp:
46694@if target-libgomp-bootstrap
46695maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
46696all-stage1: all-stage1-target-libgomp
46697TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
46698all-stage1-target-libgomp: configure-stage1-target-libgomp
46699 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
46700 @r=`${PWD_COMMAND}`; export r; \
46701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46702 TFLAGS="$(STAGE1_TFLAGS)"; \
46703 $(NORMAL_TARGET_EXPORTS) \
46704 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46705 \
911e63d0
JR
46706 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46707 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46708 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46709 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46710 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46711 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46712 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
46713 $(EXTRA_TARGET_FLAGS) \
46714 \
05a13254 46715 TFLAGS="$(STAGE1_TFLAGS)" \
911e63d0
JR
46716 $(TARGET-stage1-target-libgomp)
46717
46718maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
46719clean-stage1: clean-stage1-target-libgomp
46720clean-stage1-target-libgomp:
46721 @if [ $(current_stage) = stage1 ]; then \
46722 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46723 else \
46724 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
46725 $(MAKE) stage1-start; \
46726 fi; \
46727 cd $(TARGET_SUBDIR)/libgomp && \
46728 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 46729 clean
911e63d0
JR
46730@endif target-libgomp-bootstrap
46731
46732
46733.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
46734.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
46735maybe-all-stage2-target-libgomp:
46736maybe-clean-stage2-target-libgomp:
46737@if target-libgomp-bootstrap
46738maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
46739all-stage2: all-stage2-target-libgomp
46740TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
46741all-stage2-target-libgomp: configure-stage2-target-libgomp
46742 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
46743 @r=`${PWD_COMMAND}`; export r; \
46744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46745 TFLAGS="$(STAGE2_TFLAGS)"; \
46746 $(NORMAL_TARGET_EXPORTS) \
46747 \
46748 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46749 \
911e63d0
JR
46750 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46751 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46752 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46753 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46754 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46755 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46756 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46757 $(EXTRA_TARGET_FLAGS) \
05a13254 46758 TFLAGS="$(STAGE2_TFLAGS)" \
911e63d0
JR
46759 $(TARGET-stage2-target-libgomp)
46760
46761maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
46762clean-stage2: clean-stage2-target-libgomp
46763clean-stage2-target-libgomp:
46764 @if [ $(current_stage) = stage2 ]; then \
46765 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46766 else \
46767 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
46768 $(MAKE) stage2-start; \
46769 fi; \
46770 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46771 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46772@endif target-libgomp-bootstrap
46773
46774
46775.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
46776.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
46777maybe-all-stage3-target-libgomp:
46778maybe-clean-stage3-target-libgomp:
46779@if target-libgomp-bootstrap
46780maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
46781all-stage3: all-stage3-target-libgomp
46782TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
46783all-stage3-target-libgomp: configure-stage3-target-libgomp
46784 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
46785 @r=`${PWD_COMMAND}`; export r; \
46786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46787 TFLAGS="$(STAGE3_TFLAGS)"; \
46788 $(NORMAL_TARGET_EXPORTS) \
46789 \
46790 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46791 \
911e63d0
JR
46792 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46793 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46794 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46795 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46796 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46797 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46798 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46799 $(EXTRA_TARGET_FLAGS) \
05a13254 46800 TFLAGS="$(STAGE3_TFLAGS)" \
911e63d0
JR
46801 $(TARGET-stage3-target-libgomp)
46802
46803maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
46804clean-stage3: clean-stage3-target-libgomp
46805clean-stage3-target-libgomp:
46806 @if [ $(current_stage) = stage3 ]; then \
46807 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46808 else \
46809 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
46810 $(MAKE) stage3-start; \
46811 fi; \
46812 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46813 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46814@endif target-libgomp-bootstrap
46815
46816
46817.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
46818.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
46819maybe-all-stage4-target-libgomp:
46820maybe-clean-stage4-target-libgomp:
46821@if target-libgomp-bootstrap
46822maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
46823all-stage4: all-stage4-target-libgomp
46824TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
46825all-stage4-target-libgomp: configure-stage4-target-libgomp
46826 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
46827 @r=`${PWD_COMMAND}`; export r; \
46828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46829 TFLAGS="$(STAGE4_TFLAGS)"; \
46830 $(NORMAL_TARGET_EXPORTS) \
46831 \
46832 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46833 \
911e63d0
JR
46834 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46835 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46836 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46837 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46838 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46839 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46840 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46841 $(EXTRA_TARGET_FLAGS) \
05a13254 46842 TFLAGS="$(STAGE4_TFLAGS)" \
911e63d0
JR
46843 $(TARGET-stage4-target-libgomp)
46844
46845maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
46846clean-stage4: clean-stage4-target-libgomp
46847clean-stage4-target-libgomp:
46848 @if [ $(current_stage) = stage4 ]; then \
46849 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46850 else \
46851 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
46852 $(MAKE) stage4-start; \
46853 fi; \
46854 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46855 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46856@endif target-libgomp-bootstrap
46857
46858
46859.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
46860.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
46861maybe-all-stageprofile-target-libgomp:
46862maybe-clean-stageprofile-target-libgomp:
46863@if target-libgomp-bootstrap
46864maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
46865all-stageprofile: all-stageprofile-target-libgomp
46866TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
46867all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
46868 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
46869 @r=`${PWD_COMMAND}`; export r; \
46870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46871 TFLAGS="$(STAGEprofile_TFLAGS)"; \
46872 $(NORMAL_TARGET_EXPORTS) \
46873 \
46874 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46875 \
911e63d0
JR
46876 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46877 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46878 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46879 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46880 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46881 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46882 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46883 $(EXTRA_TARGET_FLAGS) \
05a13254 46884 TFLAGS="$(STAGEprofile_TFLAGS)" \
911e63d0
JR
46885 $(TARGET-stageprofile-target-libgomp)
46886
46887maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
46888clean-stageprofile: clean-stageprofile-target-libgomp
46889clean-stageprofile-target-libgomp:
46890 @if [ $(current_stage) = stageprofile ]; then \
46891 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46892 else \
46893 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
46894 $(MAKE) stageprofile-start; \
46895 fi; \
46896 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46897 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46898@endif target-libgomp-bootstrap
46899
46900
46901.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
46902.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
46903maybe-all-stagefeedback-target-libgomp:
46904maybe-clean-stagefeedback-target-libgomp:
46905@if target-libgomp-bootstrap
46906maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
46907all-stagefeedback: all-stagefeedback-target-libgomp
46908TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
46909all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
46910 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
46911 @r=`${PWD_COMMAND}`; export r; \
46912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46913 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
46914 $(NORMAL_TARGET_EXPORTS) \
46915 \
46916 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 46917 \
911e63d0
JR
46918 $(MAKE) $(BASE_FLAGS_TO_PASS) \
46919 CFLAGS="$(CFLAGS_FOR_TARGET)" \
46920 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
46921 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
46922 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
46923 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
46924 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
46925 $(EXTRA_TARGET_FLAGS) \
05a13254 46926 TFLAGS="$(STAGEfeedback_TFLAGS)" \
911e63d0
JR
46927 $(TARGET-stagefeedback-target-libgomp)
46928
46929maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
46930clean-stagefeedback: clean-stagefeedback-target-libgomp
46931clean-stagefeedback-target-libgomp:
46932 @if [ $(current_stage) = stagefeedback ]; then \
46933 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
46934 else \
46935 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
46936 $(MAKE) stagefeedback-start; \
46937 fi; \
46938 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 46939 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
46940@endif target-libgomp-bootstrap
46941
46942
46943
46944
b3ded179
PB
46945
46946
46947.PHONY: check-target-libgomp maybe-check-target-libgomp
46948maybe-check-target-libgomp:
46949@if target-libgomp
46950maybe-check-target-libgomp: check-target-libgomp
46951
46952check-target-libgomp:
46953 @: $(MAKE); $(unstage)
46954 @r=`${PWD_COMMAND}`; export r; \
46955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46956 $(NORMAL_TARGET_EXPORTS) \
46957 (cd $(TARGET_SUBDIR)/libgomp && \
46958 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
46959
46960@endif target-libgomp
46961
46962.PHONY: install-target-libgomp maybe-install-target-libgomp
46963maybe-install-target-libgomp:
46964@if target-libgomp
46965maybe-install-target-libgomp: install-target-libgomp
46966
46967install-target-libgomp: installdirs
46968 @: $(MAKE); $(unstage)
46969 @r=`${PWD_COMMAND}`; export r; \
46970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46971 $(NORMAL_TARGET_EXPORTS) \
46972 (cd $(TARGET_SUBDIR)/libgomp && \
46973 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
46974
46975@endif target-libgomp
46976
9b980aa1
RW
46977.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
46978maybe-install-strip-target-libgomp:
46979@if target-libgomp
46980maybe-install-strip-target-libgomp: install-strip-target-libgomp
46981
46982install-strip-target-libgomp: installdirs
46983 @: $(MAKE); $(unstage)
46984 @r=`${PWD_COMMAND}`; export r; \
46985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46986 $(NORMAL_TARGET_EXPORTS) \
46987 (cd $(TARGET_SUBDIR)/libgomp && \
46988 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46989
46990@endif target-libgomp
46991
56a8fe78 46992# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
46993
46994.PHONY: maybe-info-target-libgomp info-target-libgomp
46995maybe-info-target-libgomp:
46996@if target-libgomp
46997maybe-info-target-libgomp: info-target-libgomp
46998
46999info-target-libgomp: \
47000 configure-target-libgomp
47001 @: $(MAKE); $(unstage)
22121df0 47002 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47003 r=`${PWD_COMMAND}`; export r; \
47004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47005 $(NORMAL_TARGET_EXPORTS) \
22121df0 47006 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47007 for flag in $(EXTRA_TARGET_FLAGS); do \
47008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47009 done; \
47010 (cd $(TARGET_SUBDIR)/libgomp && \
47011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47013 "RANLIB=$${RANLIB}" \
0c24b341 47014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47015 info) \
47016 || exit 1
47017
47018@endif target-libgomp
47019
47020.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
47021maybe-dvi-target-libgomp:
47022@if target-libgomp
47023maybe-dvi-target-libgomp: dvi-target-libgomp
47024
47025dvi-target-libgomp: \
47026 configure-target-libgomp
47027 @: $(MAKE); $(unstage)
22121df0 47028 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47029 r=`${PWD_COMMAND}`; export r; \
47030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47031 $(NORMAL_TARGET_EXPORTS) \
22121df0 47032 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47033 for flag in $(EXTRA_TARGET_FLAGS); do \
47034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47035 done; \
47036 (cd $(TARGET_SUBDIR)/libgomp && \
47037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47039 "RANLIB=$${RANLIB}" \
0c24b341 47040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47041 dvi) \
47042 || exit 1
47043
47044@endif target-libgomp
47045
56a8fe78
DD
47046.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
47047maybe-pdf-target-libgomp:
47048@if target-libgomp
47049maybe-pdf-target-libgomp: pdf-target-libgomp
47050
47051pdf-target-libgomp: \
47052 configure-target-libgomp
47053 @: $(MAKE); $(unstage)
22121df0 47054 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
47055 r=`${PWD_COMMAND}`; export r; \
47056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47057 $(NORMAL_TARGET_EXPORTS) \
22121df0 47058 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
47059 for flag in $(EXTRA_TARGET_FLAGS); do \
47060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47061 done; \
47062 (cd $(TARGET_SUBDIR)/libgomp && \
47063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47065 "RANLIB=$${RANLIB}" \
0c24b341 47066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
47067 pdf) \
47068 || exit 1
47069
47070@endif target-libgomp
47071
b3ded179
PB
47072.PHONY: maybe-html-target-libgomp html-target-libgomp
47073maybe-html-target-libgomp:
47074@if target-libgomp
47075maybe-html-target-libgomp: html-target-libgomp
47076
47077html-target-libgomp: \
47078 configure-target-libgomp
47079 @: $(MAKE); $(unstage)
22121df0 47080 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47081 r=`${PWD_COMMAND}`; export r; \
47082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47083 $(NORMAL_TARGET_EXPORTS) \
22121df0 47084 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47085 for flag in $(EXTRA_TARGET_FLAGS); do \
47086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47087 done; \
47088 (cd $(TARGET_SUBDIR)/libgomp && \
47089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47091 "RANLIB=$${RANLIB}" \
0c24b341 47092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47093 html) \
47094 || exit 1
47095
47096@endif target-libgomp
47097
47098.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
47099maybe-TAGS-target-libgomp:
47100@if target-libgomp
47101maybe-TAGS-target-libgomp: TAGS-target-libgomp
47102
47103TAGS-target-libgomp: \
47104 configure-target-libgomp
47105 @: $(MAKE); $(unstage)
22121df0 47106 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47107 r=`${PWD_COMMAND}`; export r; \
47108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47109 $(NORMAL_TARGET_EXPORTS) \
22121df0 47110 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47111 for flag in $(EXTRA_TARGET_FLAGS); do \
47112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47113 done; \
47114 (cd $(TARGET_SUBDIR)/libgomp && \
47115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47117 "RANLIB=$${RANLIB}" \
0c24b341 47118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47119 TAGS) \
47120 || exit 1
47121
47122@endif target-libgomp
47123
47124.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
47125maybe-install-info-target-libgomp:
47126@if target-libgomp
47127maybe-install-info-target-libgomp: install-info-target-libgomp
47128
47129install-info-target-libgomp: \
47130 configure-target-libgomp \
47131 info-target-libgomp
47132 @: $(MAKE); $(unstage)
22121df0 47133 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47134 r=`${PWD_COMMAND}`; export r; \
47135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47136 $(NORMAL_TARGET_EXPORTS) \
22121df0 47137 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47138 for flag in $(EXTRA_TARGET_FLAGS); do \
47139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47140 done; \
47141 (cd $(TARGET_SUBDIR)/libgomp && \
47142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47144 "RANLIB=$${RANLIB}" \
0c24b341 47145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47146 install-info) \
47147 || exit 1
47148
47149@endif target-libgomp
47150
a3ca38d2
DD
47151.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
47152maybe-install-pdf-target-libgomp:
47153@if target-libgomp
47154maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
47155
47156install-pdf-target-libgomp: \
47157 configure-target-libgomp \
47158 pdf-target-libgomp
47159 @: $(MAKE); $(unstage)
22121df0 47160 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
47161 r=`${PWD_COMMAND}`; export r; \
47162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47163 $(NORMAL_TARGET_EXPORTS) \
22121df0 47164 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
47165 for flag in $(EXTRA_TARGET_FLAGS); do \
47166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47167 done; \
47168 (cd $(TARGET_SUBDIR)/libgomp && \
47169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47171 "RANLIB=$${RANLIB}" \
0c24b341 47172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
47173 install-pdf) \
47174 || exit 1
47175
47176@endif target-libgomp
47177
108a6f8e
CD
47178.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
47179maybe-install-html-target-libgomp:
47180@if target-libgomp
47181maybe-install-html-target-libgomp: install-html-target-libgomp
47182
47183install-html-target-libgomp: \
47184 configure-target-libgomp \
47185 html-target-libgomp
47186 @: $(MAKE); $(unstage)
22121df0 47187 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
47188 r=`${PWD_COMMAND}`; export r; \
47189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47190 $(NORMAL_TARGET_EXPORTS) \
22121df0 47191 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
47192 for flag in $(EXTRA_TARGET_FLAGS); do \
47193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47194 done; \
47195 (cd $(TARGET_SUBDIR)/libgomp && \
47196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47198 "RANLIB=$${RANLIB}" \
0c24b341 47199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
47200 install-html) \
47201 || exit 1
47202
47203@endif target-libgomp
47204
b3ded179
PB
47205.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
47206maybe-installcheck-target-libgomp:
47207@if target-libgomp
47208maybe-installcheck-target-libgomp: installcheck-target-libgomp
47209
47210installcheck-target-libgomp: \
47211 configure-target-libgomp
47212 @: $(MAKE); $(unstage)
22121df0 47213 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47214 r=`${PWD_COMMAND}`; export r; \
47215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47216 $(NORMAL_TARGET_EXPORTS) \
22121df0 47217 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47218 for flag in $(EXTRA_TARGET_FLAGS); do \
47219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47220 done; \
47221 (cd $(TARGET_SUBDIR)/libgomp && \
47222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47224 "RANLIB=$${RANLIB}" \
0c24b341 47225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47226 installcheck) \
47227 || exit 1
47228
47229@endif target-libgomp
47230
47231.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
47232maybe-mostlyclean-target-libgomp:
47233@if target-libgomp
47234maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
47235
47236mostlyclean-target-libgomp:
47237 @: $(MAKE); $(unstage)
22121df0 47238 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47239 r=`${PWD_COMMAND}`; export r; \
47240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47241 $(NORMAL_TARGET_EXPORTS) \
22121df0 47242 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47243 for flag in $(EXTRA_TARGET_FLAGS); do \
47244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47245 done; \
47246 (cd $(TARGET_SUBDIR)/libgomp && \
47247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47249 "RANLIB=$${RANLIB}" \
0c24b341 47250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47251 mostlyclean) \
47252 || exit 1
47253
47254@endif target-libgomp
47255
47256.PHONY: maybe-clean-target-libgomp clean-target-libgomp
47257maybe-clean-target-libgomp:
47258@if target-libgomp
47259maybe-clean-target-libgomp: clean-target-libgomp
47260
47261clean-target-libgomp:
47262 @: $(MAKE); $(unstage)
22121df0 47263 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47264 r=`${PWD_COMMAND}`; export r; \
47265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47266 $(NORMAL_TARGET_EXPORTS) \
22121df0 47267 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47268 for flag in $(EXTRA_TARGET_FLAGS); do \
47269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47270 done; \
47271 (cd $(TARGET_SUBDIR)/libgomp && \
47272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47274 "RANLIB=$${RANLIB}" \
0c24b341 47275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47276 clean) \
47277 || exit 1
47278
47279@endif target-libgomp
47280
47281.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
47282maybe-distclean-target-libgomp:
47283@if target-libgomp
47284maybe-distclean-target-libgomp: distclean-target-libgomp
47285
47286distclean-target-libgomp:
47287 @: $(MAKE); $(unstage)
22121df0 47288 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47289 r=`${PWD_COMMAND}`; export r; \
47290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47291 $(NORMAL_TARGET_EXPORTS) \
22121df0 47292 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47293 for flag in $(EXTRA_TARGET_FLAGS); do \
47294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47295 done; \
47296 (cd $(TARGET_SUBDIR)/libgomp && \
47297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47299 "RANLIB=$${RANLIB}" \
0c24b341 47300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47301 distclean) \
47302 || exit 1
47303
47304@endif target-libgomp
47305
47306.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
47307maybe-maintainer-clean-target-libgomp:
47308@if target-libgomp
47309maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
47310
47311maintainer-clean-target-libgomp:
47312 @: $(MAKE); $(unstage)
22121df0 47313 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
47314 r=`${PWD_COMMAND}`; export r; \
47315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47316 $(NORMAL_TARGET_EXPORTS) \
22121df0 47317 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
47318 for flag in $(EXTRA_TARGET_FLAGS); do \
47319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47320 done; \
47321 (cd $(TARGET_SUBDIR)/libgomp && \
47322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47324 "RANLIB=$${RANLIB}" \
0c24b341 47325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
47326 maintainer-clean) \
47327 || exit 1
47328
47329@endif target-libgomp
47330
47331
47332
7ec59b9e
L
47333
47334
47335.PHONY: configure-target-libitm maybe-configure-target-libitm
47336maybe-configure-target-libitm:
47337@if gcc-bootstrap
47338configure-target-libitm: stage_current
47339@endif gcc-bootstrap
47340@if target-libitm
47341maybe-configure-target-libitm: configure-target-libitm
47342configure-target-libitm:
47343 @: $(MAKE); $(unstage)
47344 @r=`${PWD_COMMAND}`; export r; \
47345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47346 echo "Checking multilib configuration for libitm..."; \
22121df0
L
47347 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
47348 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47349 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
47350 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
47351 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
47352 else \
47353 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
47354 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
47355 fi; \
47356 else \
47357 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
47358 fi; \
47359 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 47360 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
47361 $(NORMAL_TARGET_EXPORTS) \
47362 echo Configuring in $(TARGET_SUBDIR)/libitm; \
47363 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
47364 case $(srcdir) in \
47365 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47366 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
47367 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47368 esac; \
1b6c0831 47369 module_srcdir=libitm; \
7ec59b9e 47370 rm -f no-such-file || : ; \
1b6c0831
L
47371 CONFIG_SITE=no-such-file $(SHELL) \
47372 $$s/$$module_srcdir/configure \
47373 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47374 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47375 --target=${target_alias} \
7ec59b9e
L
47376 || exit 1
47377@endif target-libitm
47378
47379
47380
47381
47382
47383.PHONY: all-target-libitm maybe-all-target-libitm
47384maybe-all-target-libitm:
47385@if gcc-bootstrap
47386all-target-libitm: stage_current
47387@endif gcc-bootstrap
47388@if target-libitm
47389TARGET-target-libitm=all
47390maybe-all-target-libitm: all-target-libitm
47391all-target-libitm: configure-target-libitm
47392 @: $(MAKE); $(unstage)
47393 @r=`${PWD_COMMAND}`; export r; \
47394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47395 $(NORMAL_TARGET_EXPORTS) \
47396 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 47397 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47398 $(TARGET-target-libitm))
47399@endif target-libitm
47400
47401
47402
47403
47404
47405.PHONY: check-target-libitm maybe-check-target-libitm
47406maybe-check-target-libitm:
47407@if target-libitm
47408maybe-check-target-libitm: check-target-libitm
47409
47410check-target-libitm:
47411 @: $(MAKE); $(unstage)
47412 @r=`${PWD_COMMAND}`; export r; \
47413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47414 $(NORMAL_TARGET_EXPORTS) \
47415 (cd $(TARGET_SUBDIR)/libitm && \
47416 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47417
47418@endif target-libitm
47419
47420.PHONY: install-target-libitm maybe-install-target-libitm
47421maybe-install-target-libitm:
47422@if target-libitm
47423maybe-install-target-libitm: install-target-libitm
47424
47425install-target-libitm: installdirs
47426 @: $(MAKE); $(unstage)
47427 @r=`${PWD_COMMAND}`; export r; \
47428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47429 $(NORMAL_TARGET_EXPORTS) \
47430 (cd $(TARGET_SUBDIR)/libitm && \
47431 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47432
47433@endif target-libitm
47434
47435.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
47436maybe-install-strip-target-libitm:
47437@if target-libitm
47438maybe-install-strip-target-libitm: install-strip-target-libitm
47439
47440install-strip-target-libitm: installdirs
47441 @: $(MAKE); $(unstage)
47442 @r=`${PWD_COMMAND}`; export r; \
47443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47444 $(NORMAL_TARGET_EXPORTS) \
47445 (cd $(TARGET_SUBDIR)/libitm && \
47446 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47447
47448@endif target-libitm
47449
47450# Other targets (info, dvi, pdf, etc.)
47451
47452.PHONY: maybe-info-target-libitm info-target-libitm
47453maybe-info-target-libitm:
47454@if target-libitm
47455maybe-info-target-libitm: info-target-libitm
47456
47457info-target-libitm: \
47458 configure-target-libitm
47459 @: $(MAKE); $(unstage)
22121df0 47460 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47461 r=`${PWD_COMMAND}`; export r; \
47462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47463 $(NORMAL_TARGET_EXPORTS) \
22121df0 47464 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47465 for flag in $(EXTRA_TARGET_FLAGS); do \
47466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47467 done; \
47468 (cd $(TARGET_SUBDIR)/libitm && \
47469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47471 "RANLIB=$${RANLIB}" \
47472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47473 info) \
47474 || exit 1
47475
47476@endif target-libitm
47477
47478.PHONY: maybe-dvi-target-libitm dvi-target-libitm
47479maybe-dvi-target-libitm:
47480@if target-libitm
47481maybe-dvi-target-libitm: dvi-target-libitm
47482
47483dvi-target-libitm: \
47484 configure-target-libitm
47485 @: $(MAKE); $(unstage)
22121df0 47486 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47487 r=`${PWD_COMMAND}`; export r; \
47488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47489 $(NORMAL_TARGET_EXPORTS) \
22121df0 47490 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47491 for flag in $(EXTRA_TARGET_FLAGS); do \
47492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47493 done; \
47494 (cd $(TARGET_SUBDIR)/libitm && \
47495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47497 "RANLIB=$${RANLIB}" \
47498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47499 dvi) \
47500 || exit 1
47501
47502@endif target-libitm
47503
47504.PHONY: maybe-pdf-target-libitm pdf-target-libitm
47505maybe-pdf-target-libitm:
47506@if target-libitm
47507maybe-pdf-target-libitm: pdf-target-libitm
47508
47509pdf-target-libitm: \
47510 configure-target-libitm
47511 @: $(MAKE); $(unstage)
22121df0 47512 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47513 r=`${PWD_COMMAND}`; export r; \
47514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47515 $(NORMAL_TARGET_EXPORTS) \
22121df0 47516 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47517 for flag in $(EXTRA_TARGET_FLAGS); do \
47518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47519 done; \
47520 (cd $(TARGET_SUBDIR)/libitm && \
47521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47523 "RANLIB=$${RANLIB}" \
47524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47525 pdf) \
47526 || exit 1
47527
47528@endif target-libitm
47529
47530.PHONY: maybe-html-target-libitm html-target-libitm
47531maybe-html-target-libitm:
47532@if target-libitm
47533maybe-html-target-libitm: html-target-libitm
47534
47535html-target-libitm: \
47536 configure-target-libitm
47537 @: $(MAKE); $(unstage)
22121df0 47538 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47539 r=`${PWD_COMMAND}`; export r; \
47540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47541 $(NORMAL_TARGET_EXPORTS) \
22121df0 47542 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47543 for flag in $(EXTRA_TARGET_FLAGS); do \
47544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47545 done; \
47546 (cd $(TARGET_SUBDIR)/libitm && \
47547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47549 "RANLIB=$${RANLIB}" \
47550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47551 html) \
47552 || exit 1
47553
47554@endif target-libitm
47555
47556.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
47557maybe-TAGS-target-libitm:
47558@if target-libitm
47559maybe-TAGS-target-libitm: TAGS-target-libitm
47560
47561TAGS-target-libitm: \
47562 configure-target-libitm
47563 @: $(MAKE); $(unstage)
22121df0 47564 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47565 r=`${PWD_COMMAND}`; export r; \
47566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47567 $(NORMAL_TARGET_EXPORTS) \
22121df0 47568 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47569 for flag in $(EXTRA_TARGET_FLAGS); do \
47570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47571 done; \
47572 (cd $(TARGET_SUBDIR)/libitm && \
47573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47575 "RANLIB=$${RANLIB}" \
47576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47577 TAGS) \
47578 || exit 1
47579
47580@endif target-libitm
47581
47582.PHONY: maybe-install-info-target-libitm install-info-target-libitm
47583maybe-install-info-target-libitm:
47584@if target-libitm
47585maybe-install-info-target-libitm: install-info-target-libitm
47586
47587install-info-target-libitm: \
47588 configure-target-libitm \
47589 info-target-libitm
47590 @: $(MAKE); $(unstage)
22121df0 47591 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47592 r=`${PWD_COMMAND}`; export r; \
47593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47594 $(NORMAL_TARGET_EXPORTS) \
22121df0 47595 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47596 for flag in $(EXTRA_TARGET_FLAGS); do \
47597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47598 done; \
47599 (cd $(TARGET_SUBDIR)/libitm && \
47600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47602 "RANLIB=$${RANLIB}" \
47603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47604 install-info) \
47605 || exit 1
47606
47607@endif target-libitm
47608
47609.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
47610maybe-install-pdf-target-libitm:
47611@if target-libitm
47612maybe-install-pdf-target-libitm: install-pdf-target-libitm
47613
47614install-pdf-target-libitm: \
47615 configure-target-libitm \
47616 pdf-target-libitm
47617 @: $(MAKE); $(unstage)
22121df0 47618 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47619 r=`${PWD_COMMAND}`; export r; \
47620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47621 $(NORMAL_TARGET_EXPORTS) \
22121df0 47622 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47623 for flag in $(EXTRA_TARGET_FLAGS); do \
47624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47625 done; \
47626 (cd $(TARGET_SUBDIR)/libitm && \
47627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47629 "RANLIB=$${RANLIB}" \
47630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47631 install-pdf) \
47632 || exit 1
47633
47634@endif target-libitm
47635
47636.PHONY: maybe-install-html-target-libitm install-html-target-libitm
47637maybe-install-html-target-libitm:
47638@if target-libitm
47639maybe-install-html-target-libitm: install-html-target-libitm
47640
47641install-html-target-libitm: \
47642 configure-target-libitm \
47643 html-target-libitm
47644 @: $(MAKE); $(unstage)
22121df0 47645 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47646 r=`${PWD_COMMAND}`; export r; \
47647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47648 $(NORMAL_TARGET_EXPORTS) \
22121df0 47649 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47650 for flag in $(EXTRA_TARGET_FLAGS); do \
47651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47652 done; \
47653 (cd $(TARGET_SUBDIR)/libitm && \
47654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47656 "RANLIB=$${RANLIB}" \
47657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47658 install-html) \
47659 || exit 1
47660
47661@endif target-libitm
47662
47663.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
47664maybe-installcheck-target-libitm:
47665@if target-libitm
47666maybe-installcheck-target-libitm: installcheck-target-libitm
47667
47668installcheck-target-libitm: \
47669 configure-target-libitm
47670 @: $(MAKE); $(unstage)
22121df0 47671 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47672 r=`${PWD_COMMAND}`; export r; \
47673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47674 $(NORMAL_TARGET_EXPORTS) \
22121df0 47675 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47676 for flag in $(EXTRA_TARGET_FLAGS); do \
47677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47678 done; \
47679 (cd $(TARGET_SUBDIR)/libitm && \
47680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47682 "RANLIB=$${RANLIB}" \
47683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47684 installcheck) \
47685 || exit 1
47686
47687@endif target-libitm
47688
47689.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
47690maybe-mostlyclean-target-libitm:
47691@if target-libitm
47692maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
47693
47694mostlyclean-target-libitm:
47695 @: $(MAKE); $(unstage)
22121df0 47696 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47697 r=`${PWD_COMMAND}`; export r; \
47698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47699 $(NORMAL_TARGET_EXPORTS) \
22121df0 47700 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47701 for flag in $(EXTRA_TARGET_FLAGS); do \
47702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47703 done; \
47704 (cd $(TARGET_SUBDIR)/libitm && \
47705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47707 "RANLIB=$${RANLIB}" \
47708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47709 mostlyclean) \
47710 || exit 1
47711
47712@endif target-libitm
47713
47714.PHONY: maybe-clean-target-libitm clean-target-libitm
47715maybe-clean-target-libitm:
47716@if target-libitm
47717maybe-clean-target-libitm: clean-target-libitm
47718
47719clean-target-libitm:
47720 @: $(MAKE); $(unstage)
22121df0 47721 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47722 r=`${PWD_COMMAND}`; export r; \
47723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47724 $(NORMAL_TARGET_EXPORTS) \
22121df0 47725 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47726 for flag in $(EXTRA_TARGET_FLAGS); do \
47727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47728 done; \
47729 (cd $(TARGET_SUBDIR)/libitm && \
47730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47732 "RANLIB=$${RANLIB}" \
47733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47734 clean) \
47735 || exit 1
47736
47737@endif target-libitm
47738
47739.PHONY: maybe-distclean-target-libitm distclean-target-libitm
47740maybe-distclean-target-libitm:
47741@if target-libitm
47742maybe-distclean-target-libitm: distclean-target-libitm
47743
47744distclean-target-libitm:
47745 @: $(MAKE); $(unstage)
22121df0 47746 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47747 r=`${PWD_COMMAND}`; export r; \
47748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47749 $(NORMAL_TARGET_EXPORTS) \
22121df0 47750 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47751 for flag in $(EXTRA_TARGET_FLAGS); do \
47752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47753 done; \
47754 (cd $(TARGET_SUBDIR)/libitm && \
47755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47757 "RANLIB=$${RANLIB}" \
47758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47759 distclean) \
47760 || exit 1
47761
47762@endif target-libitm
47763
47764.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
47765maybe-maintainer-clean-target-libitm:
47766@if target-libitm
47767maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
47768
47769maintainer-clean-target-libitm:
47770 @: $(MAKE); $(unstage)
22121df0 47771 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
47772 r=`${PWD_COMMAND}`; export r; \
47773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47774 $(NORMAL_TARGET_EXPORTS) \
22121df0 47775 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
47776 for flag in $(EXTRA_TARGET_FLAGS); do \
47777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47778 done; \
47779 (cd $(TARGET_SUBDIR)/libitm && \
47780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47782 "RANLIB=$${RANLIB}" \
47783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47784 maintainer-clean) \
47785 || exit 1
47786
47787@endif target-libitm
47788
47789
47790
47791
47792
47793.PHONY: configure-target-libatomic maybe-configure-target-libatomic
47794maybe-configure-target-libatomic:
47795@if gcc-bootstrap
47796configure-target-libatomic: stage_current
47797@endif gcc-bootstrap
47798@if target-libatomic
47799maybe-configure-target-libatomic: configure-target-libatomic
47800configure-target-libatomic:
47801 @: $(MAKE); $(unstage)
47802 @r=`${PWD_COMMAND}`; export r; \
47803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47804 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
47805 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
47806 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
47807 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47808 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
47809 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
47810 else \
47811 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
47812 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47813 fi; \
47814 else \
47815 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
47816 fi; \
47817 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 47818 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
47819 $(NORMAL_TARGET_EXPORTS) \
47820 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
47821 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
47822 case $(srcdir) in \
47823 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47824 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
47825 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47826 esac; \
1b6c0831 47827 module_srcdir=libatomic; \
7ec59b9e 47828 rm -f no-such-file || : ; \
1b6c0831
L
47829 CONFIG_SITE=no-such-file $(SHELL) \
47830 $$s/$$module_srcdir/configure \
47831 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 47832 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47833 --target=${target_alias} \
7ec59b9e
L
47834 || exit 1
47835@endif target-libatomic
47836
47837
47838
47839
47840
47841.PHONY: all-target-libatomic maybe-all-target-libatomic
47842maybe-all-target-libatomic:
47843@if gcc-bootstrap
47844all-target-libatomic: stage_current
47845@endif gcc-bootstrap
47846@if target-libatomic
47847TARGET-target-libatomic=all
47848maybe-all-target-libatomic: all-target-libatomic
47849all-target-libatomic: configure-target-libatomic
47850 @: $(MAKE); $(unstage)
47851 @r=`${PWD_COMMAND}`; export r; \
47852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47853 $(NORMAL_TARGET_EXPORTS) \
47854 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 47855 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
47856 $(TARGET-target-libatomic))
47857@endif target-libatomic
47858
47859
47860
47861
47862
47863.PHONY: check-target-libatomic maybe-check-target-libatomic
47864maybe-check-target-libatomic:
47865@if target-libatomic
47866maybe-check-target-libatomic: check-target-libatomic
47867
47868check-target-libatomic:
47869 @: $(MAKE); $(unstage)
47870 @r=`${PWD_COMMAND}`; export r; \
47871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47872 $(NORMAL_TARGET_EXPORTS) \
47873 (cd $(TARGET_SUBDIR)/libatomic && \
47874 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47875
47876@endif target-libatomic
47877
47878.PHONY: install-target-libatomic maybe-install-target-libatomic
47879maybe-install-target-libatomic:
47880@if target-libatomic
47881maybe-install-target-libatomic: install-target-libatomic
47882
47883install-target-libatomic: installdirs
47884 @: $(MAKE); $(unstage)
47885 @r=`${PWD_COMMAND}`; export r; \
47886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47887 $(NORMAL_TARGET_EXPORTS) \
47888 (cd $(TARGET_SUBDIR)/libatomic && \
47889 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47890
47891@endif target-libatomic
47892
47893.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
47894maybe-install-strip-target-libatomic:
47895@if target-libatomic
47896maybe-install-strip-target-libatomic: install-strip-target-libatomic
47897
47898install-strip-target-libatomic: installdirs
47899 @: $(MAKE); $(unstage)
47900 @r=`${PWD_COMMAND}`; export r; \
47901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47902 $(NORMAL_TARGET_EXPORTS) \
47903 (cd $(TARGET_SUBDIR)/libatomic && \
47904 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47905
47906@endif target-libatomic
47907
47908# Other targets (info, dvi, pdf, etc.)
47909
47910.PHONY: maybe-info-target-libatomic info-target-libatomic
47911maybe-info-target-libatomic:
47912@if target-libatomic
47913maybe-info-target-libatomic: info-target-libatomic
47914
47915info-target-libatomic: \
47916 configure-target-libatomic
47917 @: $(MAKE); $(unstage)
22121df0 47918 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47919 r=`${PWD_COMMAND}`; export r; \
47920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47921 $(NORMAL_TARGET_EXPORTS) \
22121df0 47922 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47923 for flag in $(EXTRA_TARGET_FLAGS); do \
47924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47925 done; \
47926 (cd $(TARGET_SUBDIR)/libatomic && \
47927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47929 "RANLIB=$${RANLIB}" \
47930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47931 info) \
47932 || exit 1
47933
47934@endif target-libatomic
47935
47936.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
47937maybe-dvi-target-libatomic:
47938@if target-libatomic
47939maybe-dvi-target-libatomic: dvi-target-libatomic
47940
47941dvi-target-libatomic: \
47942 configure-target-libatomic
47943 @: $(MAKE); $(unstage)
22121df0 47944 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47945 r=`${PWD_COMMAND}`; export r; \
47946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47947 $(NORMAL_TARGET_EXPORTS) \
22121df0 47948 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47949 for flag in $(EXTRA_TARGET_FLAGS); do \
47950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47951 done; \
47952 (cd $(TARGET_SUBDIR)/libatomic && \
47953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47955 "RANLIB=$${RANLIB}" \
47956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47957 dvi) \
47958 || exit 1
47959
47960@endif target-libatomic
47961
47962.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
47963maybe-pdf-target-libatomic:
47964@if target-libatomic
47965maybe-pdf-target-libatomic: pdf-target-libatomic
47966
47967pdf-target-libatomic: \
47968 configure-target-libatomic
47969 @: $(MAKE); $(unstage)
22121df0 47970 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47971 r=`${PWD_COMMAND}`; export r; \
47972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47973 $(NORMAL_TARGET_EXPORTS) \
22121df0 47974 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
47975 for flag in $(EXTRA_TARGET_FLAGS); do \
47976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47977 done; \
47978 (cd $(TARGET_SUBDIR)/libatomic && \
47979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47981 "RANLIB=$${RANLIB}" \
47982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
47983 pdf) \
47984 || exit 1
47985
47986@endif target-libatomic
47987
47988.PHONY: maybe-html-target-libatomic html-target-libatomic
47989maybe-html-target-libatomic:
47990@if target-libatomic
47991maybe-html-target-libatomic: html-target-libatomic
47992
47993html-target-libatomic: \
47994 configure-target-libatomic
47995 @: $(MAKE); $(unstage)
22121df0 47996 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
47997 r=`${PWD_COMMAND}`; export r; \
47998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47999 $(NORMAL_TARGET_EXPORTS) \
22121df0 48000 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48001 for flag in $(EXTRA_TARGET_FLAGS); do \
48002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48003 done; \
48004 (cd $(TARGET_SUBDIR)/libatomic && \
48005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48007 "RANLIB=$${RANLIB}" \
48008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48009 html) \
48010 || exit 1
48011
48012@endif target-libatomic
48013
48014.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
48015maybe-TAGS-target-libatomic:
48016@if target-libatomic
48017maybe-TAGS-target-libatomic: TAGS-target-libatomic
48018
48019TAGS-target-libatomic: \
48020 configure-target-libatomic
48021 @: $(MAKE); $(unstage)
22121df0 48022 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48023 r=`${PWD_COMMAND}`; export r; \
48024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48025 $(NORMAL_TARGET_EXPORTS) \
22121df0 48026 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48027 for flag in $(EXTRA_TARGET_FLAGS); do \
48028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48029 done; \
48030 (cd $(TARGET_SUBDIR)/libatomic && \
48031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48033 "RANLIB=$${RANLIB}" \
48034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48035 TAGS) \
48036 || exit 1
48037
48038@endif target-libatomic
48039
48040.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
48041maybe-install-info-target-libatomic:
48042@if target-libatomic
48043maybe-install-info-target-libatomic: install-info-target-libatomic
48044
48045install-info-target-libatomic: \
48046 configure-target-libatomic \
48047 info-target-libatomic
48048 @: $(MAKE); $(unstage)
22121df0 48049 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48050 r=`${PWD_COMMAND}`; export r; \
48051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48052 $(NORMAL_TARGET_EXPORTS) \
22121df0 48053 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48054 for flag in $(EXTRA_TARGET_FLAGS); do \
48055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48056 done; \
48057 (cd $(TARGET_SUBDIR)/libatomic && \
48058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48060 "RANLIB=$${RANLIB}" \
48061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48062 install-info) \
48063 || exit 1
48064
48065@endif target-libatomic
48066
48067.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
48068maybe-install-pdf-target-libatomic:
48069@if target-libatomic
48070maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
48071
48072install-pdf-target-libatomic: \
48073 configure-target-libatomic \
48074 pdf-target-libatomic
48075 @: $(MAKE); $(unstage)
22121df0 48076 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48077 r=`${PWD_COMMAND}`; export r; \
48078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48079 $(NORMAL_TARGET_EXPORTS) \
22121df0 48080 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48081 for flag in $(EXTRA_TARGET_FLAGS); do \
48082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48083 done; \
48084 (cd $(TARGET_SUBDIR)/libatomic && \
48085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48087 "RANLIB=$${RANLIB}" \
48088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48089 install-pdf) \
48090 || exit 1
48091
48092@endif target-libatomic
48093
48094.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
48095maybe-install-html-target-libatomic:
48096@if target-libatomic
48097maybe-install-html-target-libatomic: install-html-target-libatomic
48098
48099install-html-target-libatomic: \
48100 configure-target-libatomic \
48101 html-target-libatomic
48102 @: $(MAKE); $(unstage)
22121df0 48103 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48104 r=`${PWD_COMMAND}`; export r; \
48105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48106 $(NORMAL_TARGET_EXPORTS) \
22121df0 48107 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48108 for flag in $(EXTRA_TARGET_FLAGS); do \
48109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48110 done; \
48111 (cd $(TARGET_SUBDIR)/libatomic && \
48112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48114 "RANLIB=$${RANLIB}" \
48115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48116 install-html) \
48117 || exit 1
48118
48119@endif target-libatomic
48120
48121.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
48122maybe-installcheck-target-libatomic:
48123@if target-libatomic
48124maybe-installcheck-target-libatomic: installcheck-target-libatomic
48125
48126installcheck-target-libatomic: \
48127 configure-target-libatomic
48128 @: $(MAKE); $(unstage)
22121df0 48129 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48130 r=`${PWD_COMMAND}`; export r; \
48131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48132 $(NORMAL_TARGET_EXPORTS) \
22121df0 48133 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48134 for flag in $(EXTRA_TARGET_FLAGS); do \
48135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48136 done; \
48137 (cd $(TARGET_SUBDIR)/libatomic && \
48138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48140 "RANLIB=$${RANLIB}" \
48141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48142 installcheck) \
48143 || exit 1
48144
48145@endif target-libatomic
48146
48147.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
48148maybe-mostlyclean-target-libatomic:
48149@if target-libatomic
48150maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
48151
48152mostlyclean-target-libatomic:
48153 @: $(MAKE); $(unstage)
22121df0 48154 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48155 r=`${PWD_COMMAND}`; export r; \
48156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48157 $(NORMAL_TARGET_EXPORTS) \
22121df0 48158 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48159 for flag in $(EXTRA_TARGET_FLAGS); do \
48160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48161 done; \
48162 (cd $(TARGET_SUBDIR)/libatomic && \
48163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48165 "RANLIB=$${RANLIB}" \
48166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48167 mostlyclean) \
48168 || exit 1
48169
48170@endif target-libatomic
48171
48172.PHONY: maybe-clean-target-libatomic clean-target-libatomic
48173maybe-clean-target-libatomic:
48174@if target-libatomic
48175maybe-clean-target-libatomic: clean-target-libatomic
48176
48177clean-target-libatomic:
48178 @: $(MAKE); $(unstage)
22121df0 48179 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48180 r=`${PWD_COMMAND}`; export r; \
48181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48182 $(NORMAL_TARGET_EXPORTS) \
22121df0 48183 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48184 for flag in $(EXTRA_TARGET_FLAGS); do \
48185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48186 done; \
48187 (cd $(TARGET_SUBDIR)/libatomic && \
48188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48190 "RANLIB=$${RANLIB}" \
48191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48192 clean) \
48193 || exit 1
48194
48195@endif target-libatomic
48196
48197.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
48198maybe-distclean-target-libatomic:
48199@if target-libatomic
48200maybe-distclean-target-libatomic: distclean-target-libatomic
48201
48202distclean-target-libatomic:
48203 @: $(MAKE); $(unstage)
22121df0 48204 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48205 r=`${PWD_COMMAND}`; export r; \
48206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48207 $(NORMAL_TARGET_EXPORTS) \
22121df0 48208 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48209 for flag in $(EXTRA_TARGET_FLAGS); do \
48210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48211 done; \
48212 (cd $(TARGET_SUBDIR)/libatomic && \
48213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48215 "RANLIB=$${RANLIB}" \
48216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48217 distclean) \
48218 || exit 1
48219
48220@endif target-libatomic
48221
48222.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
48223maybe-maintainer-clean-target-libatomic:
48224@if target-libatomic
48225maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
48226
48227maintainer-clean-target-libatomic:
48228 @: $(MAKE); $(unstage)
22121df0 48229 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48230 r=`${PWD_COMMAND}`; export r; \
48231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48232 $(NORMAL_TARGET_EXPORTS) \
22121df0 48233 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48234 for flag in $(EXTRA_TARGET_FLAGS); do \
48235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48236 done; \
48237 (cd $(TARGET_SUBDIR)/libatomic && \
48238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48240 "RANLIB=$${RANLIB}" \
48241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48242 maintainer-clean) \
48243 || exit 1
48244
48245@endif target-libatomic
48246
48247
48248
7ec59b9e
L
48249@if target-libgomp
48250.PHONY: check-target-libgomp-c++
48251check-target-libgomp-c++:
48252 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
48253
e0541124
EB
48254.PHONY: check-target-libgomp-fortran
48255check-target-libgomp-fortran:
48256 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
48257
7ec59b9e
L
48258@endif target-libgomp
48259
48260@if target-libitm
48261.PHONY: check-target-libitm-c++
48262check-target-libitm-c++:
48263 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
48264
48265@endif target-libitm
48266
15723a45
NN
48267# ----------
48268# GCC module
48269# ----------
48270
319cab08 48271@if gcc-no-bootstrap
252b5132 48272.PHONY: cross
72b2455a 48273cross: all-build all-gas all-ld
b40e3958
L
48274 @r=`${PWD_COMMAND}`; export r; \
48275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 48276 $(HOST_EXPORTS) \
252b5132 48277 echo "Building the C and C++ compiler"; \
5cec67bf 48278 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 48279 @r=`${PWD_COMMAND}`; export r; \
22121df0 48280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 48281 echo "Building runtime libraries"; \
656fdd47 48282 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 48283@endif gcc-no-bootstrap
252b5132 48284
6bd3dfaa 48285@if gcc
c50523ce
L
48286
48287.PHONY: check-gcc-c check-c
48288check-gcc-c:
48289 r=`${PWD_COMMAND}`; export r; \
48290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48291 $(HOST_EXPORTS) \
48292 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
48293check-c: check-gcc-c
48294
48295.PHONY: check-gcc-c++ check-c++
7d695d07 48296check-gcc-c++:
c50523ce
L
48297 r=`${PWD_COMMAND}`; export r; \
48298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48299 $(HOST_EXPORTS) \
7ec59b9e 48300 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 48301check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
48302
48303.PHONY: check-gcc-fortran check-fortran
48304check-gcc-fortran:
48305 r=`${PWD_COMMAND}`; export r; \
48306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48307 $(HOST_EXPORTS) \
48308 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e0541124 48309check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran
c50523ce 48310
c50523ce
L
48311.PHONY: check-gcc-ada check-ada
48312check-gcc-ada:
48313 r=`${PWD_COMMAND}`; export r; \
48314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48315 $(HOST_EXPORTS) \
48316 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
48317check-ada: check-gcc-ada check-target-libada
48318
48319.PHONY: check-gcc-objc check-objc
48320check-gcc-objc:
48321 r=`${PWD_COMMAND}`; export r; \
48322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48323 $(HOST_EXPORTS) \
48324 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
48325check-objc: check-gcc-objc check-target-libobjc
48326
48327.PHONY: check-gcc-obj-c++ check-obj-c++
48328check-gcc-obj-c++:
48329 r=`${PWD_COMMAND}`; export r; \
48330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48331 $(HOST_EXPORTS) \
48332 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
48333check-obj-c++: check-gcc-obj-c++
7d695d07 48334
e552509b
ILT
48335.PHONY: check-gcc-go check-go
48336check-gcc-go:
48337 r=`${PWD_COMMAND}`; export r; \
48338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48339 $(HOST_EXPORTS) \
48340 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
e3f56a99 48341check-go: check-gcc-go check-target-libgo
e552509b 48342
252b5132 48343
7ec59b9e
L
48344# The gcc part of install-no-fixedincludes, which relies on an intimate
48345# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
48346.PHONY: gcc-install-no-fixedincludes
48347gcc-install-no-fixedincludes:
15723a45 48348 @if [ -f ./gcc/Makefile ]; then \
b40e3958 48349 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 48350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 48351 $(HOST_EXPORTS) \
7ec59b9e
L
48352 (cd ./gcc \
48353 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 48354 else true; fi
6bd3dfaa 48355@endif gcc
4fa63067 48356
b813574b
PB
48357# ---------------------
48358# GCC bootstrap support
48359# ---------------------
4fa63067 48360
b813574b
PB
48361# We track the current stage (the one in 'gcc') in the stage_current file.
48362# stage_last instead tracks the stage that was built last. These targets
48363# are dummy when toplevel bootstrap is not active.
4fa63067 48364
f70224b5 48365# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
48366# there, so $(unstage) should be run at various points. To avoid excessive
48367# recursive invocations of make, we "inline" them using a variable. These
48368# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
48369# to avoid warnings from the GNU Make job server.
f70224b5
PB
48370
48371unstage = :
48372stage = :
c52c6897 48373current_stage = ""
f70224b5 48374
b813574b 48375@if gcc-bootstrap
9daf3993 48376unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 48377stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 48378current_stage = "`cat stage_current 2> /dev/null`"
b813574b 48379@endif gcc-bootstrap
4fa63067 48380
f70224b5
PB
48381.PHONY: unstage stage
48382unstage:
0aed8855 48383 @: $(MAKE); $(unstage)
b813574b 48384stage:
0aed8855 48385 @: $(MAKE); $(stage)
1d39f329 48386
80911fe1
PB
48387# Disable commands for lean bootstrap.
48388LEAN = false
48389
dfdffa2c
PB
48390# We name the build directories for the various stages "stage1-gcc",
48391# "stage2-gcc","stage3-gcc", etc.
48392
48393# Since the 'compare' process will fail (on debugging information) if any
48394# directory names are different, we need to link the gcc directory for
0aed8855 48395# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
48396# the build directories constant as well. For the latter, we use naked names
48397# like 'gcc', because the scripts in that directory assume it. We use
48398# mv on platforms where symlinks to directories do not work or are not
48399# reliable.
48400
1d39f329
NN
48401# 'touch' doesn't work right on some platforms.
48402STAMP = echo timestamp >
48403
dfdffa2c
PB
48404# We only want to compare .o files, so set this!
48405objext = .o
48406
dfdffa2c 48407
319cab08 48408.PHONY: stage1-start stage1-end
dfdffa2c 48409
656fdd47 48410stage1-start::
0aed8855 48411 @: $(MAKE); $(stage); \
22121df0 48412 echo stage1 > stage_current; \
b00612cc 48413 echo stage1 > stage_last; \
0aed8855 48414 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48415@if bfd
b00612cc
PB
48416 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
48417 mkdir stage1-bfd; \
22121df0 48418 mv stage1-bfd bfd
72b2455a
PB
48419@endif bfd
48420@if opcodes
b00612cc
PB
48421 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
48422 mkdir stage1-opcodes; \
22121df0 48423 mv stage1-opcodes opcodes
72b2455a
PB
48424@endif opcodes
48425@if binutils
b00612cc
PB
48426 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
48427 mkdir stage1-binutils; \
22121df0 48428 mv stage1-binutils binutils
72b2455a 48429@endif binutils
201f096f 48430@if fixincludes
48431 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
48432 mkdir stage1-fixincludes; \
22121df0 48433 mv stage1-fixincludes fixincludes
201f096f 48434@endif fixincludes
72b2455a 48435@if gas
b00612cc
PB
48436 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
48437 mkdir stage1-gas; \
22121df0 48438 mv stage1-gas gas
72b2455a
PB
48439@endif gas
48440@if gcc
b00612cc
PB
48441 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
48442 mkdir stage1-gcc; \
22121df0 48443 mv stage1-gcc gcc
72b2455a 48444@endif gcc
4b900473
PB
48445@if gmp
48446 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
48447 mkdir stage1-gmp; \
22121df0 48448 mv stage1-gmp gmp
4b900473
PB
48449@endif gmp
48450@if mpfr
48451 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
48452 mkdir stage1-mpfr; \
22121df0 48453 mv stage1-mpfr mpfr
4b900473 48454@endif mpfr
e8a5fa9c
RW
48455@if mpc
48456 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
48457 mkdir stage1-mpc; \
22121df0 48458 mv stage1-mpc mpc
e8a5fa9c 48459@endif mpc
7ec59b9e
L
48460@if isl
48461 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
48462 mkdir stage1-isl; \
22121df0 48463 mv stage1-isl isl
7ec59b9e 48464@endif isl
1f53ca9a
AO
48465@if libelf
48466 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
48467 mkdir stage1-libelf; \
22121df0 48468 mv stage1-libelf libelf
1f53ca9a 48469@endif libelf
93f9b408
ILT
48470@if gold
48471 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
48472 mkdir stage1-gold; \
22121df0 48473 mv stage1-gold gold
93f9b408 48474@endif gold
72b2455a 48475@if intl
b00612cc
PB
48476 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
48477 mkdir stage1-intl; \
22121df0 48478 mv stage1-intl intl
72b2455a
PB
48479@endif intl
48480@if ld
b00612cc
PB
48481 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
48482 mkdir stage1-ld; \
22121df0 48483 mv stage1-ld ld
72b2455a 48484@endif ld
2bf680c4
ILT
48485@if libbacktrace
48486 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
48487 mkdir stage1-libbacktrace; \
22121df0 48488 mv stage1-libbacktrace libbacktrace
2bf680c4 48489@endif libbacktrace
72b2455a 48490@if libcpp
b00612cc
PB
48491 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
48492 mkdir stage1-libcpp; \
22121df0 48493 mv stage1-libcpp libcpp
72b2455a 48494@endif libcpp
be01d343
PB
48495@if libdecnumber
48496 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
48497 mkdir stage1-libdecnumber; \
22121df0 48498 mv stage1-libdecnumber libdecnumber
be01d343 48499@endif libdecnumber
72b2455a 48500@if libiberty
b00612cc
PB
48501 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
48502 mkdir stage1-libiberty; \
22121df0 48503 mv stage1-libiberty libiberty
72b2455a 48504@endif libiberty
1b6c0831
L
48505@if libiberty-linker-plugin
48506 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
48507 mkdir stage1-libiberty-linker-plugin; \
22121df0 48508 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 48509@endif libiberty-linker-plugin
016a3251
DD
48510@if libiconv
48511 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
48512 mkdir stage1-libiconv; \
48513 mv stage1-libiconv libiconv
48514@endif libiconv
72b2455a 48515@if zlib
b00612cc
PB
48516 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
48517 mkdir stage1-zlib; \
22121df0 48518 mv stage1-zlib zlib
72b2455a 48519@endif zlib
700d40ca
ILT
48520@if lto-plugin
48521 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
48522 mkdir stage1-lto-plugin; \
22121df0 48523 mv stage1-lto-plugin lto-plugin
700d40ca 48524@endif lto-plugin
0e65dfba
NA
48525@if libctf
48526 @cd $(HOST_SUBDIR); [ -d stage1-libctf ] || \
48527 mkdir stage1-libctf; \
48528 mv stage1-libctf libctf
48529@endif libctf
0aed8855
PB
48530 @[ -d stage1-$(TARGET_SUBDIR) ] || \
48531 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 48532 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 48533
80911fe1 48534stage1-end::
72b2455a 48535@if bfd
22121df0
L
48536 @if test -d $(HOST_SUBDIR)/bfd; then \
48537 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 48538 fi
72b2455a
PB
48539@endif bfd
48540@if opcodes
22121df0
L
48541 @if test -d $(HOST_SUBDIR)/opcodes; then \
48542 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 48543 fi
72b2455a
PB
48544@endif opcodes
48545@if binutils
22121df0
L
48546 @if test -d $(HOST_SUBDIR)/binutils; then \
48547 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 48548 fi
72b2455a 48549@endif binutils
201f096f 48550@if fixincludes
22121df0
L
48551 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48552 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 48553 fi
48554@endif fixincludes
72b2455a 48555@if gas
22121df0
L
48556 @if test -d $(HOST_SUBDIR)/gas; then \
48557 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 48558 fi
72b2455a
PB
48559@endif gas
48560@if gcc
22121df0
L
48561 @if test -d $(HOST_SUBDIR)/gcc; then \
48562 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 48563 fi
72b2455a 48564@endif gcc
4b900473 48565@if gmp
22121df0
L
48566 @if test -d $(HOST_SUBDIR)/gmp; then \
48567 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
48568 fi
48569@endif gmp
48570@if mpfr
22121df0
L
48571 @if test -d $(HOST_SUBDIR)/mpfr; then \
48572 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
48573 fi
48574@endif mpfr
e8a5fa9c 48575@if mpc
22121df0
L
48576 @if test -d $(HOST_SUBDIR)/mpc; then \
48577 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
48578 fi
48579@endif mpc
7ec59b9e 48580@if isl
22121df0
L
48581 @if test -d $(HOST_SUBDIR)/isl; then \
48582 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 48583 fi
7ec59b9e 48584@endif isl
1f53ca9a 48585@if libelf
22121df0
L
48586 @if test -d $(HOST_SUBDIR)/libelf; then \
48587 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
48588 fi
48589@endif libelf
93f9b408 48590@if gold
22121df0
L
48591 @if test -d $(HOST_SUBDIR)/gold; then \
48592 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
48593 fi
48594@endif gold
72b2455a 48595@if intl
22121df0
L
48596 @if test -d $(HOST_SUBDIR)/intl; then \
48597 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 48598 fi
72b2455a
PB
48599@endif intl
48600@if ld
22121df0
L
48601 @if test -d $(HOST_SUBDIR)/ld; then \
48602 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 48603 fi
72b2455a 48604@endif ld
2bf680c4 48605@if libbacktrace
22121df0
L
48606 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48607 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
48608 fi
48609@endif libbacktrace
72b2455a 48610@if libcpp
22121df0
L
48611 @if test -d $(HOST_SUBDIR)/libcpp; then \
48612 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 48613 fi
72b2455a 48614@endif libcpp
be01d343 48615@if libdecnumber
22121df0
L
48616 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48617 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 48618 fi
be01d343 48619@endif libdecnumber
72b2455a 48620@if libiberty
22121df0
L
48621 @if test -d $(HOST_SUBDIR)/libiberty; then \
48622 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 48623 fi
72b2455a 48624@endif libiberty
1b6c0831 48625@if libiberty-linker-plugin
22121df0
L
48626 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48627 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
48628 fi
48629@endif libiberty-linker-plugin
016a3251
DD
48630@if libiconv
48631 @if test -d $(HOST_SUBDIR)/libiconv; then \
48632 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
48633 fi
48634@endif libiconv
72b2455a 48635@if zlib
22121df0
L
48636 @if test -d $(HOST_SUBDIR)/zlib; then \
48637 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 48638 fi
72b2455a 48639@endif zlib
700d40ca 48640@if lto-plugin
22121df0
L
48641 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48642 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
48643 fi
48644@endif lto-plugin
0e65dfba
NA
48645@if libctf
48646 @if test -d $(HOST_SUBDIR)/libctf; then \
48647 cd $(HOST_SUBDIR); mv libctf stage1-libctf; \
48648 fi
48649@endif libctf
22121df0
L
48650 @if test -d $(TARGET_SUBDIR); then \
48651 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 48652 fi
80911fe1 48653 rm -f stage_current
dfdffa2c 48654
973601e1 48655# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 48656# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48657# reconfigured either.
319cab08 48658.PHONY: stage1-bubble
656fdd47 48659stage1-bubble::
e360f423
PB
48660 @r=`${PWD_COMMAND}`; export r; \
48661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48662 if test -f stage1-lean ; then \
48663 echo Skipping rebuild of stage1; \
9cb3fa6f 48664 else \
f70224b5
PB
48665 $(MAKE) stage1-start; \
48666 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 48667 fi
72b2455a 48668
0df3d27f 48669.PHONY: all-stage1 clean-stage1
0df3d27f 48670do-clean: clean-stage1
0df3d27f 48671
72b2455a
PB
48672# FIXME: Will not need to be conditional when toplevel bootstrap is the
48673# only possibility, but now it conflicts with no-bootstrap rules
48674@if gcc-bootstrap
48675
48676
48677
48678
0df3d27f 48679# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 48680
0df3d27f 48681.PHONY: distclean-stage1
72b2455a 48682distclean-stage1::
0aed8855 48683 @: $(MAKE); $(stage)
e00a73e3 48684 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 48685 rm -rf stage1-*
72b2455a
PB
48686
48687
48688@endif gcc-bootstrap
48689
48690
48691.PHONY: stage2-start stage2-end
48692
48693stage2-start::
0aed8855 48694 @: $(MAKE); $(stage); \
22121df0 48695 echo stage2 > stage_current; \
b00612cc 48696 echo stage2 > stage_last; \
0aed8855 48697 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 48698@if bfd
b00612cc
PB
48699 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
48700 mkdir stage2-bfd; \
22121df0 48701 mv stage2-bfd bfd; \
80911fe1 48702 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
48703@endif bfd
48704@if opcodes
b00612cc
PB
48705 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
48706 mkdir stage2-opcodes; \
22121df0 48707 mv stage2-opcodes opcodes; \
80911fe1 48708 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
48709@endif opcodes
48710@if binutils
b00612cc
PB
48711 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
48712 mkdir stage2-binutils; \
22121df0 48713 mv stage2-binutils binutils; \
80911fe1 48714 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 48715@endif binutils
201f096f 48716@if fixincludes
48717 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
48718 mkdir stage2-fixincludes; \
22121df0 48719 mv stage2-fixincludes fixincludes; \
201f096f 48720 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
48721@endif fixincludes
72b2455a 48722@if gas
b00612cc
PB
48723 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
48724 mkdir stage2-gas; \
22121df0 48725 mv stage2-gas gas; \
80911fe1 48726 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
48727@endif gas
48728@if gcc
b00612cc
PB
48729 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
48730 mkdir stage2-gcc; \
22121df0 48731 mv stage2-gcc gcc; \
80911fe1 48732 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 48733@endif gcc
4b900473
PB
48734@if gmp
48735 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
48736 mkdir stage2-gmp; \
22121df0 48737 mv stage2-gmp gmp; \
4b900473
PB
48738 mv stage1-gmp prev-gmp || test -f stage1-lean
48739@endif gmp
48740@if mpfr
48741 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
48742 mkdir stage2-mpfr; \
22121df0 48743 mv stage2-mpfr mpfr; \
4b900473
PB
48744 mv stage1-mpfr prev-mpfr || test -f stage1-lean
48745@endif mpfr
e8a5fa9c
RW
48746@if mpc
48747 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
48748 mkdir stage2-mpc; \
22121df0 48749 mv stage2-mpc mpc; \
e8a5fa9c
RW
48750 mv stage1-mpc prev-mpc || test -f stage1-lean
48751@endif mpc
7ec59b9e
L
48752@if isl
48753 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
48754 mkdir stage2-isl; \
22121df0 48755 mv stage2-isl isl; \
7ec59b9e
L
48756 mv stage1-isl prev-isl || test -f stage1-lean
48757@endif isl
1f53ca9a
AO
48758@if libelf
48759 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
48760 mkdir stage2-libelf; \
22121df0 48761 mv stage2-libelf libelf; \
1f53ca9a
AO
48762 mv stage1-libelf prev-libelf || test -f stage1-lean
48763@endif libelf
93f9b408
ILT
48764@if gold
48765 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
48766 mkdir stage2-gold; \
22121df0 48767 mv stage2-gold gold; \
93f9b408
ILT
48768 mv stage1-gold prev-gold || test -f stage1-lean
48769@endif gold
72b2455a 48770@if intl
b00612cc
PB
48771 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
48772 mkdir stage2-intl; \
22121df0 48773 mv stage2-intl intl; \
80911fe1 48774 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
48775@endif intl
48776@if ld
b00612cc
PB
48777 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
48778 mkdir stage2-ld; \
22121df0 48779 mv stage2-ld ld; \
80911fe1 48780 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 48781@endif ld
2bf680c4
ILT
48782@if libbacktrace
48783 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
48784 mkdir stage2-libbacktrace; \
22121df0 48785 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
48786 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
48787@endif libbacktrace
72b2455a 48788@if libcpp
b00612cc
PB
48789 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
48790 mkdir stage2-libcpp; \
22121df0 48791 mv stage2-libcpp libcpp; \
80911fe1 48792 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 48793@endif libcpp
be01d343
PB
48794@if libdecnumber
48795 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
48796 mkdir stage2-libdecnumber; \
22121df0 48797 mv stage2-libdecnumber libdecnumber; \
80911fe1 48798 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 48799@endif libdecnumber
72b2455a 48800@if libiberty
b00612cc
PB
48801 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
48802 mkdir stage2-libiberty; \
22121df0 48803 mv stage2-libiberty libiberty; \
80911fe1 48804 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 48805@endif libiberty
1b6c0831
L
48806@if libiberty-linker-plugin
48807 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
48808 mkdir stage2-libiberty-linker-plugin; \
22121df0 48809 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
48810 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
48811@endif libiberty-linker-plugin
016a3251
DD
48812@if libiconv
48813 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
48814 mkdir stage2-libiconv; \
48815 mv stage2-libiconv libiconv; \
48816 mv stage1-libiconv prev-libiconv || test -f stage1-lean
48817@endif libiconv
72b2455a 48818@if zlib
b00612cc
PB
48819 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
48820 mkdir stage2-zlib; \
22121df0 48821 mv stage2-zlib zlib; \
80911fe1 48822 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 48823@endif zlib
700d40ca
ILT
48824@if lto-plugin
48825 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
48826 mkdir stage2-lto-plugin; \
22121df0 48827 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
48828 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
48829@endif lto-plugin
0e65dfba
NA
48830@if libctf
48831 @cd $(HOST_SUBDIR); [ -d stage2-libctf ] || \
48832 mkdir stage2-libctf; \
48833 mv stage2-libctf libctf; \
48834 mv stage1-libctf prev-libctf || test -f stage1-lean
48835@endif libctf
0aed8855
PB
48836 @[ -d stage2-$(TARGET_SUBDIR) ] || \
48837 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 48838 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 48839 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 48840
80911fe1 48841stage2-end::
72b2455a 48842@if bfd
22121df0
L
48843 @if test -d $(HOST_SUBDIR)/bfd; then \
48844 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
48845 mv prev-bfd stage1-bfd; : ; \
0aed8855 48846 fi
72b2455a
PB
48847@endif bfd
48848@if opcodes
22121df0
L
48849 @if test -d $(HOST_SUBDIR)/opcodes; then \
48850 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
48851 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 48852 fi
72b2455a
PB
48853@endif opcodes
48854@if binutils
22121df0
L
48855 @if test -d $(HOST_SUBDIR)/binutils; then \
48856 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
48857 mv prev-binutils stage1-binutils; : ; \
0aed8855 48858 fi
72b2455a 48859@endif binutils
201f096f 48860@if fixincludes
22121df0
L
48861 @if test -d $(HOST_SUBDIR)/fixincludes; then \
48862 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
48863 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 48864 fi
48865@endif fixincludes
72b2455a 48866@if gas
22121df0
L
48867 @if test -d $(HOST_SUBDIR)/gas; then \
48868 cd $(HOST_SUBDIR); mv gas stage2-gas; \
48869 mv prev-gas stage1-gas; : ; \
0aed8855 48870 fi
72b2455a
PB
48871@endif gas
48872@if gcc
22121df0
L
48873 @if test -d $(HOST_SUBDIR)/gcc; then \
48874 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
48875 mv prev-gcc stage1-gcc; : ; \
0aed8855 48876 fi
72b2455a 48877@endif gcc
4b900473 48878@if gmp
22121df0
L
48879 @if test -d $(HOST_SUBDIR)/gmp; then \
48880 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
48881 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
48882 fi
48883@endif gmp
48884@if mpfr
22121df0
L
48885 @if test -d $(HOST_SUBDIR)/mpfr; then \
48886 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
48887 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
48888 fi
48889@endif mpfr
e8a5fa9c 48890@if mpc
22121df0
L
48891 @if test -d $(HOST_SUBDIR)/mpc; then \
48892 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
48893 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
48894 fi
48895@endif mpc
7ec59b9e 48896@if isl
22121df0
L
48897 @if test -d $(HOST_SUBDIR)/isl; then \
48898 cd $(HOST_SUBDIR); mv isl stage2-isl; \
48899 mv prev-isl stage1-isl; : ; \
e28c595f 48900 fi
7ec59b9e 48901@endif isl
1f53ca9a 48902@if libelf
22121df0
L
48903 @if test -d $(HOST_SUBDIR)/libelf; then \
48904 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
48905 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
48906 fi
48907@endif libelf
93f9b408 48908@if gold
22121df0
L
48909 @if test -d $(HOST_SUBDIR)/gold; then \
48910 cd $(HOST_SUBDIR); mv gold stage2-gold; \
48911 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
48912 fi
48913@endif gold
72b2455a 48914@if intl
22121df0
L
48915 @if test -d $(HOST_SUBDIR)/intl; then \
48916 cd $(HOST_SUBDIR); mv intl stage2-intl; \
48917 mv prev-intl stage1-intl; : ; \
0aed8855 48918 fi
72b2455a
PB
48919@endif intl
48920@if ld
22121df0
L
48921 @if test -d $(HOST_SUBDIR)/ld; then \
48922 cd $(HOST_SUBDIR); mv ld stage2-ld; \
48923 mv prev-ld stage1-ld; : ; \
0aed8855 48924 fi
72b2455a 48925@endif ld
2bf680c4 48926@if libbacktrace
22121df0
L
48927 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
48928 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
48929 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
48930 fi
48931@endif libbacktrace
72b2455a 48932@if libcpp
22121df0
L
48933 @if test -d $(HOST_SUBDIR)/libcpp; then \
48934 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
48935 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 48936 fi
72b2455a 48937@endif libcpp
be01d343 48938@if libdecnumber
22121df0
L
48939 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
48940 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
48941 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 48942 fi
be01d343 48943@endif libdecnumber
72b2455a 48944@if libiberty
22121df0
L
48945 @if test -d $(HOST_SUBDIR)/libiberty; then \
48946 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
48947 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 48948 fi
72b2455a 48949@endif libiberty
1b6c0831 48950@if libiberty-linker-plugin
22121df0
L
48951 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
48952 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
48953 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
48954 fi
48955@endif libiberty-linker-plugin
016a3251
DD
48956@if libiconv
48957 @if test -d $(HOST_SUBDIR)/libiconv; then \
48958 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
48959 mv prev-libiconv stage1-libiconv; : ; \
48960 fi
48961@endif libiconv
72b2455a 48962@if zlib
22121df0
L
48963 @if test -d $(HOST_SUBDIR)/zlib; then \
48964 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
48965 mv prev-zlib stage1-zlib; : ; \
0aed8855 48966 fi
72b2455a 48967@endif zlib
700d40ca 48968@if lto-plugin
22121df0
L
48969 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
48970 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
48971 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
48972 fi
48973@endif lto-plugin
0e65dfba
NA
48974@if libctf
48975 @if test -d $(HOST_SUBDIR)/libctf; then \
48976 cd $(HOST_SUBDIR); mv libctf stage2-libctf; \
48977 mv prev-libctf stage1-libctf; : ; \
48978 fi
48979@endif libctf
22121df0
L
48980 @if test -d $(TARGET_SUBDIR); then \
48981 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
48982 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 48983 fi
80911fe1 48984 rm -f stage_current
72b2455a 48985
973601e1 48986# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 48987# remade, but not reconfigured. The next stage (if any) will not be
675492f0 48988# reconfigured either.
72b2455a
PB
48989.PHONY: stage2-bubble
48990stage2-bubble:: stage1-bubble
e360f423
PB
48991 @r=`${PWD_COMMAND}`; export r; \
48992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
48993 if test -f stage2-lean || test -f stage1-lean ; then \
48994 echo Skipping rebuild of stage2; \
9cb3fa6f 48995 else \
f70224b5
PB
48996 $(MAKE) stage2-start; \
48997 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 48998 fi
72b2455a 48999
0df3d27f 49000.PHONY: all-stage2 clean-stage2
0df3d27f 49001do-clean: clean-stage2
0df3d27f 49002
72b2455a
PB
49003# FIXME: Will not need to be conditional when toplevel bootstrap is the
49004# only possibility, but now it conflicts with no-bootstrap rules
49005@if gcc-bootstrap
49006
49007
49008
80911fe1 49009.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
49010bootstrap2:
49011 echo stage2 > stage_final
49012 @r=`${PWD_COMMAND}`; export r; \
49013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49014 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 49015 @: $(MAKE); $(unstage)
be01d343
PB
49016 @r=`${PWD_COMMAND}`; export r; \
49017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49018 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 49019 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 49020
80911fe1
PB
49021bootstrap2-lean:
49022 echo stage2 > stage_final
49023 @r=`${PWD_COMMAND}`; export r; \
49024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49025 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
49026 @: $(MAKE); $(unstage)
49027 @r=`${PWD_COMMAND}`; export r; \
49028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49029 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
49030 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49031
72b2455a 49032
0df3d27f 49033# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49034distclean-stage1:: distclean-stage2
0df3d27f 49035.PHONY: distclean-stage2
72b2455a 49036distclean-stage2::
0aed8855 49037 @: $(MAKE); $(stage)
e00a73e3 49038 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 49039 rm -rf stage2-*
72b2455a
PB
49040
49041
49042@endif gcc-bootstrap
49043
49044
49045.PHONY: stage3-start stage3-end
49046
49047stage3-start::
0aed8855 49048 @: $(MAKE); $(stage); \
22121df0 49049 echo stage3 > stage_current; \
b00612cc 49050 echo stage3 > stage_last; \
0aed8855 49051 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49052@if bfd
b00612cc
PB
49053 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
49054 mkdir stage3-bfd; \
22121df0 49055 mv stage3-bfd bfd; \
80911fe1 49056 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
49057@endif bfd
49058@if opcodes
b00612cc
PB
49059 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
49060 mkdir stage3-opcodes; \
22121df0 49061 mv stage3-opcodes opcodes; \
80911fe1 49062 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
49063@endif opcodes
49064@if binutils
b00612cc
PB
49065 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
49066 mkdir stage3-binutils; \
22121df0 49067 mv stage3-binutils binutils; \
80911fe1 49068 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 49069@endif binutils
201f096f 49070@if fixincludes
49071 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
49072 mkdir stage3-fixincludes; \
22121df0 49073 mv stage3-fixincludes fixincludes; \
201f096f 49074 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
49075@endif fixincludes
72b2455a 49076@if gas
b00612cc
PB
49077 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
49078 mkdir stage3-gas; \
22121df0 49079 mv stage3-gas gas; \
80911fe1 49080 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
49081@endif gas
49082@if gcc
b00612cc
PB
49083 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
49084 mkdir stage3-gcc; \
22121df0 49085 mv stage3-gcc gcc; \
80911fe1 49086 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 49087@endif gcc
4b900473
PB
49088@if gmp
49089 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
49090 mkdir stage3-gmp; \
22121df0 49091 mv stage3-gmp gmp; \
4b900473
PB
49092 mv stage2-gmp prev-gmp || test -f stage2-lean
49093@endif gmp
49094@if mpfr
49095 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
49096 mkdir stage3-mpfr; \
22121df0 49097 mv stage3-mpfr mpfr; \
4b900473
PB
49098 mv stage2-mpfr prev-mpfr || test -f stage2-lean
49099@endif mpfr
e8a5fa9c
RW
49100@if mpc
49101 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
49102 mkdir stage3-mpc; \
22121df0 49103 mv stage3-mpc mpc; \
e8a5fa9c
RW
49104 mv stage2-mpc prev-mpc || test -f stage2-lean
49105@endif mpc
7ec59b9e
L
49106@if isl
49107 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
49108 mkdir stage3-isl; \
22121df0 49109 mv stage3-isl isl; \
7ec59b9e
L
49110 mv stage2-isl prev-isl || test -f stage2-lean
49111@endif isl
1f53ca9a
AO
49112@if libelf
49113 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
49114 mkdir stage3-libelf; \
22121df0 49115 mv stage3-libelf libelf; \
1f53ca9a
AO
49116 mv stage2-libelf prev-libelf || test -f stage2-lean
49117@endif libelf
93f9b408
ILT
49118@if gold
49119 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
49120 mkdir stage3-gold; \
22121df0 49121 mv stage3-gold gold; \
93f9b408
ILT
49122 mv stage2-gold prev-gold || test -f stage2-lean
49123@endif gold
72b2455a 49124@if intl
b00612cc
PB
49125 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
49126 mkdir stage3-intl; \
22121df0 49127 mv stage3-intl intl; \
80911fe1 49128 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
49129@endif intl
49130@if ld
b00612cc
PB
49131 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
49132 mkdir stage3-ld; \
22121df0 49133 mv stage3-ld ld; \
80911fe1 49134 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 49135@endif ld
2bf680c4
ILT
49136@if libbacktrace
49137 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
49138 mkdir stage3-libbacktrace; \
22121df0 49139 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
49140 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
49141@endif libbacktrace
72b2455a 49142@if libcpp
b00612cc
PB
49143 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
49144 mkdir stage3-libcpp; \
22121df0 49145 mv stage3-libcpp libcpp; \
80911fe1 49146 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 49147@endif libcpp
be01d343
PB
49148@if libdecnumber
49149 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
49150 mkdir stage3-libdecnumber; \
22121df0 49151 mv stage3-libdecnumber libdecnumber; \
80911fe1 49152 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 49153@endif libdecnumber
72b2455a 49154@if libiberty
b00612cc
PB
49155 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
49156 mkdir stage3-libiberty; \
22121df0 49157 mv stage3-libiberty libiberty; \
80911fe1 49158 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 49159@endif libiberty
1b6c0831
L
49160@if libiberty-linker-plugin
49161 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
49162 mkdir stage3-libiberty-linker-plugin; \
22121df0 49163 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49164 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
49165@endif libiberty-linker-plugin
016a3251
DD
49166@if libiconv
49167 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
49168 mkdir stage3-libiconv; \
49169 mv stage3-libiconv libiconv; \
49170 mv stage2-libiconv prev-libiconv || test -f stage2-lean
49171@endif libiconv
72b2455a 49172@if zlib
b00612cc
PB
49173 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
49174 mkdir stage3-zlib; \
22121df0 49175 mv stage3-zlib zlib; \
80911fe1 49176 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 49177@endif zlib
700d40ca
ILT
49178@if lto-plugin
49179 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
49180 mkdir stage3-lto-plugin; \
22121df0 49181 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
49182 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
49183@endif lto-plugin
0e65dfba
NA
49184@if libctf
49185 @cd $(HOST_SUBDIR); [ -d stage3-libctf ] || \
49186 mkdir stage3-libctf; \
49187 mv stage3-libctf libctf; \
49188 mv stage2-libctf prev-libctf || test -f stage2-lean
49189@endif libctf
0aed8855
PB
49190 @[ -d stage3-$(TARGET_SUBDIR) ] || \
49191 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 49192 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49193 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 49194
80911fe1 49195stage3-end::
72b2455a 49196@if bfd
22121df0
L
49197 @if test -d $(HOST_SUBDIR)/bfd; then \
49198 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
49199 mv prev-bfd stage2-bfd; : ; \
0aed8855 49200 fi
72b2455a
PB
49201@endif bfd
49202@if opcodes
22121df0
L
49203 @if test -d $(HOST_SUBDIR)/opcodes; then \
49204 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
49205 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 49206 fi
72b2455a
PB
49207@endif opcodes
49208@if binutils
22121df0
L
49209 @if test -d $(HOST_SUBDIR)/binutils; then \
49210 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
49211 mv prev-binutils stage2-binutils; : ; \
0aed8855 49212 fi
72b2455a 49213@endif binutils
201f096f 49214@if fixincludes
22121df0
L
49215 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49216 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
49217 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 49218 fi
49219@endif fixincludes
72b2455a 49220@if gas
22121df0
L
49221 @if test -d $(HOST_SUBDIR)/gas; then \
49222 cd $(HOST_SUBDIR); mv gas stage3-gas; \
49223 mv prev-gas stage2-gas; : ; \
0aed8855 49224 fi
72b2455a
PB
49225@endif gas
49226@if gcc
22121df0
L
49227 @if test -d $(HOST_SUBDIR)/gcc; then \
49228 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
49229 mv prev-gcc stage2-gcc; : ; \
0aed8855 49230 fi
72b2455a 49231@endif gcc
4b900473 49232@if gmp
22121df0
L
49233 @if test -d $(HOST_SUBDIR)/gmp; then \
49234 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
49235 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
49236 fi
49237@endif gmp
49238@if mpfr
22121df0
L
49239 @if test -d $(HOST_SUBDIR)/mpfr; then \
49240 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
49241 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
49242 fi
49243@endif mpfr
e8a5fa9c 49244@if mpc
22121df0
L
49245 @if test -d $(HOST_SUBDIR)/mpc; then \
49246 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
49247 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
49248 fi
49249@endif mpc
7ec59b9e 49250@if isl
22121df0
L
49251 @if test -d $(HOST_SUBDIR)/isl; then \
49252 cd $(HOST_SUBDIR); mv isl stage3-isl; \
49253 mv prev-isl stage2-isl; : ; \
e28c595f 49254 fi
7ec59b9e 49255@endif isl
1f53ca9a 49256@if libelf
22121df0
L
49257 @if test -d $(HOST_SUBDIR)/libelf; then \
49258 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
49259 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
49260 fi
49261@endif libelf
93f9b408 49262@if gold
22121df0
L
49263 @if test -d $(HOST_SUBDIR)/gold; then \
49264 cd $(HOST_SUBDIR); mv gold stage3-gold; \
49265 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
49266 fi
49267@endif gold
72b2455a 49268@if intl
22121df0
L
49269 @if test -d $(HOST_SUBDIR)/intl; then \
49270 cd $(HOST_SUBDIR); mv intl stage3-intl; \
49271 mv prev-intl stage2-intl; : ; \
0aed8855 49272 fi
72b2455a
PB
49273@endif intl
49274@if ld
22121df0
L
49275 @if test -d $(HOST_SUBDIR)/ld; then \
49276 cd $(HOST_SUBDIR); mv ld stage3-ld; \
49277 mv prev-ld stage2-ld; : ; \
0aed8855 49278 fi
72b2455a 49279@endif ld
2bf680c4 49280@if libbacktrace
22121df0
L
49281 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49282 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
49283 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
49284 fi
49285@endif libbacktrace
72b2455a 49286@if libcpp
22121df0
L
49287 @if test -d $(HOST_SUBDIR)/libcpp; then \
49288 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
49289 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 49290 fi
72b2455a 49291@endif libcpp
be01d343 49292@if libdecnumber
22121df0
L
49293 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49294 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
49295 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 49296 fi
be01d343 49297@endif libdecnumber
72b2455a 49298@if libiberty
22121df0
L
49299 @if test -d $(HOST_SUBDIR)/libiberty; then \
49300 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
49301 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 49302 fi
72b2455a 49303@endif libiberty
1b6c0831 49304@if libiberty-linker-plugin
22121df0
L
49305 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49306 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
49307 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
49308 fi
49309@endif libiberty-linker-plugin
016a3251
DD
49310@if libiconv
49311 @if test -d $(HOST_SUBDIR)/libiconv; then \
49312 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
49313 mv prev-libiconv stage2-libiconv; : ; \
49314 fi
49315@endif libiconv
72b2455a 49316@if zlib
22121df0
L
49317 @if test -d $(HOST_SUBDIR)/zlib; then \
49318 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
49319 mv prev-zlib stage2-zlib; : ; \
0aed8855 49320 fi
72b2455a 49321@endif zlib
700d40ca 49322@if lto-plugin
22121df0
L
49323 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49324 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
49325 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
49326 fi
49327@endif lto-plugin
0e65dfba
NA
49328@if libctf
49329 @if test -d $(HOST_SUBDIR)/libctf; then \
49330 cd $(HOST_SUBDIR); mv libctf stage3-libctf; \
49331 mv prev-libctf stage2-libctf; : ; \
49332 fi
49333@endif libctf
22121df0
L
49334 @if test -d $(TARGET_SUBDIR); then \
49335 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
49336 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 49337 fi
80911fe1 49338 rm -f stage_current
72b2455a 49339
973601e1 49340# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 49341# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49342# reconfigured either.
72b2455a
PB
49343.PHONY: stage3-bubble
49344stage3-bubble:: stage2-bubble
e360f423
PB
49345 @r=`${PWD_COMMAND}`; export r; \
49346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49347 if test -f stage3-lean || test -f stage2-lean ; then \
49348 echo Skipping rebuild of stage3; \
9cb3fa6f 49349 else \
f70224b5 49350 $(MAKE) stage3-start; \
80911fe1 49351 if $(LEAN); then \
22121df0
L
49352 rm -rf stage1-*; \
49353 $(STAMP) stage1-lean; \
80911fe1 49354 fi; \
f70224b5 49355 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 49356 fi
f6d183c0 49357 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 49358
0df3d27f 49359.PHONY: all-stage3 clean-stage3
0df3d27f 49360do-clean: clean-stage3
0df3d27f 49361
d545f33b
PB
49362# FIXME: Will not need to be conditional when toplevel bootstrap is the
49363# only possibility, but now it conflicts with no-bootstrap rules
49364@if gcc-bootstrap
72b2455a 49365
d545f33b 49366compare:
e360f423
PB
49367 @r=`${PWD_COMMAND}`; export r; \
49368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49369 if test -f stage2-lean; then \
22121df0
L
49370 echo Cannot compare object files as stage 2 was deleted.; \
49371 exit 0; \
d545f33b 49372 fi; \
0aed8855 49373 : $(MAKE); $(stage); \
22121df0
L
49374 rm -f .bad_compare; \
49375 echo Comparing stages 2 and 3; \
fda13ee8
AO
49376 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
49377 files=`find stage3-* -name "*$(objext)" -print | \
22121df0 49378 sed -n s,^stage$$sed-,,p`; \
e3f56a99 49379 for file in $${files}; do \
fda13ee8
AO
49380 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
49381 if test ! -f $$f1; then continue; fi; \
8520c408 49382 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
49383 if test $$? -eq 1; then \
49384 case $$file in \
e8a5fa9c 49385 @compare_exclusions@) \
f70224b5
PB
49386 echo warning: $$file differs ;; \
49387 *) \
49388 echo $$file differs >> .bad_compare ;; \
22121df0
L
49389 esac; \
49390 fi; \
49391 done; \
d545f33b
PB
49392 if [ -f .bad_compare ]; then \
49393 echo "Bootstrap comparison failure!"; \
49394 cat .bad_compare; \
49395 exit 1; \
49396 else \
c52c6897 49397 echo Comparison successful.; \
22121df0 49398 fi; \
d545f33b 49399 $(STAMP) compare
80911fe1
PB
49400 if $(LEAN); then \
49401 rm -rf stage2-*; \
49402 $(STAMP) stage2-lean; \
49403 fi
9cb3fa6f 49404
72b2455a 49405
72b2455a 49406
80911fe1 49407.PHONY: bootstrap bootstrap-lean
be01d343
PB
49408bootstrap:
49409 echo stage3 > stage_final
49410 @r=`${PWD_COMMAND}`; export r; \
49411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49412 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 49413 @: $(MAKE); $(unstage)
be01d343
PB
49414 @r=`${PWD_COMMAND}`; export r; \
49415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49416 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 49417 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49418
80911fe1
PB
49419bootstrap-lean:
49420 echo stage3 > stage_final
49421 @r=`${PWD_COMMAND}`; export r; \
49422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49423 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
49424 @: $(MAKE); $(unstage)
49425 @r=`${PWD_COMMAND}`; export r; \
49426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49427 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
49428 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49429
72b2455a 49430
d545f33b
PB
49431# Rules to wipe a stage and all the following ones, also used for cleanstrap
49432distclean-stage2:: distclean-stage3
49433.PHONY: distclean-stage3
49434distclean-stage3::
0aed8855 49435 @: $(MAKE); $(stage)
e00a73e3 49436 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 49437 rm -rf stage3-* compare
0df3d27f 49438
9cb3fa6f 49439
d545f33b 49440.PHONY: cleanstrap
e00a73e3
PB
49441cleanstrap: do-distclean local-clean
49442 echo stage3 > stage_final
49443 @r=`${PWD_COMMAND}`; export r; \
49444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49445 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
49446 @: $(MAKE); $(unstage)
49447 @r=`${PWD_COMMAND}`; export r; \
49448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49449 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
49450 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49451
49452@endif gcc-bootstrap
49453
49454
72b2455a
PB
49455.PHONY: stage4-start stage4-end
49456
49457stage4-start::
0aed8855 49458 @: $(MAKE); $(stage); \
22121df0 49459 echo stage4 > stage_current; \
b00612cc 49460 echo stage4 > stage_last; \
0aed8855 49461 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49462@if bfd
b00612cc
PB
49463 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
49464 mkdir stage4-bfd; \
22121df0 49465 mv stage4-bfd bfd; \
80911fe1 49466 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
49467@endif bfd
49468@if opcodes
b00612cc
PB
49469 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
49470 mkdir stage4-opcodes; \
22121df0 49471 mv stage4-opcodes opcodes; \
80911fe1 49472 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
49473@endif opcodes
49474@if binutils
b00612cc
PB
49475 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
49476 mkdir stage4-binutils; \
22121df0 49477 mv stage4-binutils binutils; \
80911fe1 49478 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 49479@endif binutils
201f096f 49480@if fixincludes
49481 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
49482 mkdir stage4-fixincludes; \
22121df0 49483 mv stage4-fixincludes fixincludes; \
201f096f 49484 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
49485@endif fixincludes
72b2455a 49486@if gas
b00612cc
PB
49487 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
49488 mkdir stage4-gas; \
22121df0 49489 mv stage4-gas gas; \
80911fe1 49490 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
49491@endif gas
49492@if gcc
b00612cc
PB
49493 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
49494 mkdir stage4-gcc; \
22121df0 49495 mv stage4-gcc gcc; \
80911fe1 49496 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 49497@endif gcc
4b900473
PB
49498@if gmp
49499 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
49500 mkdir stage4-gmp; \
22121df0 49501 mv stage4-gmp gmp; \
4b900473
PB
49502 mv stage3-gmp prev-gmp || test -f stage3-lean
49503@endif gmp
49504@if mpfr
49505 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
49506 mkdir stage4-mpfr; \
22121df0 49507 mv stage4-mpfr mpfr; \
4b900473
PB
49508 mv stage3-mpfr prev-mpfr || test -f stage3-lean
49509@endif mpfr
e8a5fa9c
RW
49510@if mpc
49511 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
49512 mkdir stage4-mpc; \
22121df0 49513 mv stage4-mpc mpc; \
e8a5fa9c
RW
49514 mv stage3-mpc prev-mpc || test -f stage3-lean
49515@endif mpc
7ec59b9e
L
49516@if isl
49517 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
49518 mkdir stage4-isl; \
22121df0 49519 mv stage4-isl isl; \
7ec59b9e
L
49520 mv stage3-isl prev-isl || test -f stage3-lean
49521@endif isl
1f53ca9a
AO
49522@if libelf
49523 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
49524 mkdir stage4-libelf; \
22121df0 49525 mv stage4-libelf libelf; \
1f53ca9a
AO
49526 mv stage3-libelf prev-libelf || test -f stage3-lean
49527@endif libelf
93f9b408
ILT
49528@if gold
49529 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
49530 mkdir stage4-gold; \
22121df0 49531 mv stage4-gold gold; \
93f9b408
ILT
49532 mv stage3-gold prev-gold || test -f stage3-lean
49533@endif gold
72b2455a 49534@if intl
b00612cc
PB
49535 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
49536 mkdir stage4-intl; \
22121df0 49537 mv stage4-intl intl; \
80911fe1 49538 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
49539@endif intl
49540@if ld
b00612cc
PB
49541 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
49542 mkdir stage4-ld; \
22121df0 49543 mv stage4-ld ld; \
80911fe1 49544 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 49545@endif ld
2bf680c4
ILT
49546@if libbacktrace
49547 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
49548 mkdir stage4-libbacktrace; \
22121df0 49549 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
49550 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
49551@endif libbacktrace
72b2455a 49552@if libcpp
b00612cc
PB
49553 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
49554 mkdir stage4-libcpp; \
22121df0 49555 mv stage4-libcpp libcpp; \
80911fe1 49556 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 49557@endif libcpp
be01d343
PB
49558@if libdecnumber
49559 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
49560 mkdir stage4-libdecnumber; \
22121df0 49561 mv stage4-libdecnumber libdecnumber; \
80911fe1 49562 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 49563@endif libdecnumber
72b2455a 49564@if libiberty
b00612cc
PB
49565 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
49566 mkdir stage4-libiberty; \
22121df0 49567 mv stage4-libiberty libiberty; \
80911fe1 49568 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 49569@endif libiberty
1b6c0831
L
49570@if libiberty-linker-plugin
49571 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
49572 mkdir stage4-libiberty-linker-plugin; \
22121df0 49573 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49574 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
49575@endif libiberty-linker-plugin
016a3251
DD
49576@if libiconv
49577 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
49578 mkdir stage4-libiconv; \
49579 mv stage4-libiconv libiconv; \
49580 mv stage3-libiconv prev-libiconv || test -f stage3-lean
49581@endif libiconv
72b2455a 49582@if zlib
b00612cc
PB
49583 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
49584 mkdir stage4-zlib; \
22121df0 49585 mv stage4-zlib zlib; \
80911fe1 49586 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 49587@endif zlib
700d40ca
ILT
49588@if lto-plugin
49589 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
49590 mkdir stage4-lto-plugin; \
22121df0 49591 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
49592 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
49593@endif lto-plugin
0e65dfba
NA
49594@if libctf
49595 @cd $(HOST_SUBDIR); [ -d stage4-libctf ] || \
49596 mkdir stage4-libctf; \
49597 mv stage4-libctf libctf; \
49598 mv stage3-libctf prev-libctf || test -f stage3-lean
49599@endif libctf
0aed8855
PB
49600 @[ -d stage4-$(TARGET_SUBDIR) ] || \
49601 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 49602 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49603 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 49604
80911fe1 49605stage4-end::
72b2455a 49606@if bfd
22121df0
L
49607 @if test -d $(HOST_SUBDIR)/bfd; then \
49608 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
49609 mv prev-bfd stage3-bfd; : ; \
0aed8855 49610 fi
72b2455a
PB
49611@endif bfd
49612@if opcodes
22121df0
L
49613 @if test -d $(HOST_SUBDIR)/opcodes; then \
49614 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
49615 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 49616 fi
72b2455a
PB
49617@endif opcodes
49618@if binutils
22121df0
L
49619 @if test -d $(HOST_SUBDIR)/binutils; then \
49620 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
49621 mv prev-binutils stage3-binutils; : ; \
0aed8855 49622 fi
72b2455a 49623@endif binutils
201f096f 49624@if fixincludes
22121df0
L
49625 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49626 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
49627 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 49628 fi
49629@endif fixincludes
72b2455a 49630@if gas
22121df0
L
49631 @if test -d $(HOST_SUBDIR)/gas; then \
49632 cd $(HOST_SUBDIR); mv gas stage4-gas; \
49633 mv prev-gas stage3-gas; : ; \
0aed8855 49634 fi
72b2455a
PB
49635@endif gas
49636@if gcc
22121df0
L
49637 @if test -d $(HOST_SUBDIR)/gcc; then \
49638 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
49639 mv prev-gcc stage3-gcc; : ; \
0aed8855 49640 fi
72b2455a 49641@endif gcc
4b900473 49642@if gmp
22121df0
L
49643 @if test -d $(HOST_SUBDIR)/gmp; then \
49644 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
49645 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
49646 fi
49647@endif gmp
49648@if mpfr
22121df0
L
49649 @if test -d $(HOST_SUBDIR)/mpfr; then \
49650 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
49651 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
49652 fi
49653@endif mpfr
e8a5fa9c 49654@if mpc
22121df0
L
49655 @if test -d $(HOST_SUBDIR)/mpc; then \
49656 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
49657 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
49658 fi
49659@endif mpc
7ec59b9e 49660@if isl
22121df0
L
49661 @if test -d $(HOST_SUBDIR)/isl; then \
49662 cd $(HOST_SUBDIR); mv isl stage4-isl; \
49663 mv prev-isl stage3-isl; : ; \
e28c595f 49664 fi
7ec59b9e 49665@endif isl
1f53ca9a 49666@if libelf
22121df0
L
49667 @if test -d $(HOST_SUBDIR)/libelf; then \
49668 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
49669 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
49670 fi
49671@endif libelf
93f9b408 49672@if gold
22121df0
L
49673 @if test -d $(HOST_SUBDIR)/gold; then \
49674 cd $(HOST_SUBDIR); mv gold stage4-gold; \
49675 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
49676 fi
49677@endif gold
72b2455a 49678@if intl
22121df0
L
49679 @if test -d $(HOST_SUBDIR)/intl; then \
49680 cd $(HOST_SUBDIR); mv intl stage4-intl; \
49681 mv prev-intl stage3-intl; : ; \
0aed8855 49682 fi
72b2455a
PB
49683@endif intl
49684@if ld
22121df0
L
49685 @if test -d $(HOST_SUBDIR)/ld; then \
49686 cd $(HOST_SUBDIR); mv ld stage4-ld; \
49687 mv prev-ld stage3-ld; : ; \
0aed8855 49688 fi
72b2455a 49689@endif ld
2bf680c4 49690@if libbacktrace
22121df0
L
49691 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49692 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
49693 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
49694 fi
49695@endif libbacktrace
72b2455a 49696@if libcpp
22121df0
L
49697 @if test -d $(HOST_SUBDIR)/libcpp; then \
49698 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
49699 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 49700 fi
72b2455a 49701@endif libcpp
be01d343 49702@if libdecnumber
22121df0
L
49703 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49704 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
49705 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 49706 fi
be01d343 49707@endif libdecnumber
72b2455a 49708@if libiberty
22121df0
L
49709 @if test -d $(HOST_SUBDIR)/libiberty; then \
49710 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
49711 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 49712 fi
72b2455a 49713@endif libiberty
1b6c0831 49714@if libiberty-linker-plugin
22121df0
L
49715 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49716 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
49717 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
49718 fi
49719@endif libiberty-linker-plugin
016a3251
DD
49720@if libiconv
49721 @if test -d $(HOST_SUBDIR)/libiconv; then \
49722 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
49723 mv prev-libiconv stage3-libiconv; : ; \
49724 fi
49725@endif libiconv
72b2455a 49726@if zlib
22121df0
L
49727 @if test -d $(HOST_SUBDIR)/zlib; then \
49728 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
49729 mv prev-zlib stage3-zlib; : ; \
0aed8855 49730 fi
72b2455a 49731@endif zlib
700d40ca 49732@if lto-plugin
22121df0
L
49733 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49734 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
49735 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
49736 fi
49737@endif lto-plugin
0e65dfba
NA
49738@if libctf
49739 @if test -d $(HOST_SUBDIR)/libctf; then \
49740 cd $(HOST_SUBDIR); mv libctf stage4-libctf; \
49741 mv prev-libctf stage3-libctf; : ; \
49742 fi
49743@endif libctf
22121df0
L
49744 @if test -d $(TARGET_SUBDIR); then \
49745 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
49746 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 49747 fi
80911fe1 49748 rm -f stage_current
72b2455a 49749
973601e1 49750# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 49751# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49752# reconfigured either.
72b2455a
PB
49753.PHONY: stage4-bubble
49754stage4-bubble:: stage3-bubble
e360f423
PB
49755 @r=`${PWD_COMMAND}`; export r; \
49756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49757 if test -f stage4-lean || test -f stage3-lean ; then \
49758 echo Skipping rebuild of stage4; \
9cb3fa6f 49759 else \
f70224b5 49760 $(MAKE) stage4-start; \
80911fe1 49761 if $(LEAN); then \
22121df0
L
49762 rm -rf stage2-*; \
49763 $(STAMP) stage2-lean; \
80911fe1 49764 fi; \
f70224b5 49765 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 49766 fi
f6d183c0 49767 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 49768
0df3d27f 49769.PHONY: all-stage4 clean-stage4
0df3d27f 49770do-clean: clean-stage4
0df3d27f 49771
d545f33b
PB
49772# FIXME: Will not need to be conditional when toplevel bootstrap is the
49773# only possibility, but now it conflicts with no-bootstrap rules
49774@if gcc-bootstrap
72b2455a 49775
d545f33b 49776compare3:
e360f423
PB
49777 @r=`${PWD_COMMAND}`; export r; \
49778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49779 if test -f stage3-lean; then \
22121df0
L
49780 echo Cannot compare object files as stage 3 was deleted.; \
49781 exit 0; \
d545f33b 49782 fi; \
0aed8855 49783 : $(MAKE); $(stage); \
22121df0
L
49784 rm -f .bad_compare; \
49785 echo Comparing stages 3 and 4; \
fda13ee8
AO
49786 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
49787 files=`find stage4-* -name "*$(objext)" -print | \
22121df0 49788 sed -n s,^stage$$sed-,,p`; \
e3f56a99 49789 for file in $${files}; do \
fda13ee8
AO
49790 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
49791 if test ! -f $$f1; then continue; fi; \
8520c408 49792 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
49793 if test $$? -eq 1; then \
49794 case $$file in \
e8a5fa9c 49795 @compare_exclusions@) \
f70224b5
PB
49796 echo warning: $$file differs ;; \
49797 *) \
49798 echo $$file differs >> .bad_compare ;; \
22121df0
L
49799 esac; \
49800 fi; \
49801 done; \
d545f33b
PB
49802 if [ -f .bad_compare ]; then \
49803 echo "Bootstrap comparison failure!"; \
49804 cat .bad_compare; \
49805 exit 1; \
49806 else \
c52c6897 49807 echo Comparison successful.; \
22121df0 49808 fi; \
d545f33b 49809 $(STAMP) compare3
80911fe1
PB
49810 if $(LEAN); then \
49811 rm -rf stage3-*; \
49812 $(STAMP) stage3-lean; \
49813 fi
9cb3fa6f 49814
72b2455a 49815
72b2455a 49816
80911fe1 49817.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
49818bootstrap4:
49819 echo stage4 > stage_final
49820 @r=`${PWD_COMMAND}`; export r; \
49821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49822 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 49823 @: $(MAKE); $(unstage)
be01d343
PB
49824 @r=`${PWD_COMMAND}`; export r; \
49825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49826 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 49827 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 49828
80911fe1
PB
49829bootstrap4-lean:
49830 echo stage4 > stage_final
49831 @r=`${PWD_COMMAND}`; export r; \
49832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49833 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
49834 @: $(MAKE); $(unstage)
49835 @r=`${PWD_COMMAND}`; export r; \
49836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 49837 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
49838 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
49839
72b2455a 49840
d545f33b
PB
49841# Rules to wipe a stage and all the following ones, also used for cleanstrap
49842distclean-stage3:: distclean-stage4
49843.PHONY: distclean-stage4
49844distclean-stage4::
0aed8855 49845 @: $(MAKE); $(stage)
e00a73e3 49846 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 49847 rm -rf stage4-* compare3
0df3d27f 49848
9cb3fa6f 49849
d545f33b 49850@endif gcc-bootstrap
72b2455a
PB
49851
49852
49853.PHONY: stageprofile-start stageprofile-end
49854
49855stageprofile-start::
0aed8855 49856 @: $(MAKE); $(stage); \
22121df0 49857 echo stageprofile > stage_current; \
b00612cc 49858 echo stageprofile > stage_last; \
0aed8855 49859 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49860@if bfd
b00612cc
PB
49861 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
49862 mkdir stageprofile-bfd; \
22121df0 49863 mv stageprofile-bfd bfd; \
80911fe1 49864 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49865@endif bfd
49866@if opcodes
b00612cc
PB
49867 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
49868 mkdir stageprofile-opcodes; \
22121df0 49869 mv stageprofile-opcodes opcodes; \
80911fe1 49870 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49871@endif opcodes
49872@if binutils
b00612cc
PB
49873 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
49874 mkdir stageprofile-binutils; \
22121df0 49875 mv stageprofile-binutils binutils; \
80911fe1 49876 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49877@endif binutils
201f096f 49878@if fixincludes
49879 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
49880 mkdir stageprofile-fixincludes; \
22121df0 49881 mv stageprofile-fixincludes fixincludes; \
201f096f 49882 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49883@endif fixincludes
72b2455a 49884@if gas
b00612cc
PB
49885 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
49886 mkdir stageprofile-gas; \
22121df0 49887 mv stageprofile-gas gas; \
80911fe1 49888 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49889@endif gas
49890@if gcc
b00612cc
PB
49891 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
49892 mkdir stageprofile-gcc; \
22121df0 49893 mv stageprofile-gcc gcc; \
80911fe1 49894 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49895@endif gcc
4b900473
PB
49896@if gmp
49897 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
49898 mkdir stageprofile-gmp; \
22121df0 49899 mv stageprofile-gmp gmp; \
4b900473
PB
49900 mv stage1-gmp prev-gmp || test -f stage1-lean
49901@endif gmp
49902@if mpfr
49903 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
49904 mkdir stageprofile-mpfr; \
22121df0 49905 mv stageprofile-mpfr mpfr; \
4b900473
PB
49906 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49907@endif mpfr
e8a5fa9c
RW
49908@if mpc
49909 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
49910 mkdir stageprofile-mpc; \
22121df0 49911 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
49912 mv stage1-mpc prev-mpc || test -f stage1-lean
49913@endif mpc
7ec59b9e
L
49914@if isl
49915 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
49916 mkdir stageprofile-isl; \
22121df0 49917 mv stageprofile-isl isl; \
7ec59b9e
L
49918 mv stage1-isl prev-isl || test -f stage1-lean
49919@endif isl
1f53ca9a
AO
49920@if libelf
49921 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
49922 mkdir stageprofile-libelf; \
22121df0 49923 mv stageprofile-libelf libelf; \
1f53ca9a
AO
49924 mv stage1-libelf prev-libelf || test -f stage1-lean
49925@endif libelf
93f9b408
ILT
49926@if gold
49927 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
49928 mkdir stageprofile-gold; \
22121df0 49929 mv stageprofile-gold gold; \
93f9b408
ILT
49930 mv stage1-gold prev-gold || test -f stage1-lean
49931@endif gold
72b2455a 49932@if intl
b00612cc
PB
49933 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
49934 mkdir stageprofile-intl; \
22121df0 49935 mv stageprofile-intl intl; \
80911fe1 49936 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49937@endif intl
49938@if ld
b00612cc
PB
49939 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
49940 mkdir stageprofile-ld; \
22121df0 49941 mv stageprofile-ld ld; \
80911fe1 49942 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49943@endif ld
2bf680c4
ILT
49944@if libbacktrace
49945 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
49946 mkdir stageprofile-libbacktrace; \
22121df0 49947 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
49948 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49949@endif libbacktrace
72b2455a 49950@if libcpp
b00612cc
PB
49951 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
49952 mkdir stageprofile-libcpp; \
22121df0 49953 mv stageprofile-libcpp libcpp; \
80911fe1 49954 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49955@endif libcpp
be01d343
PB
49956@if libdecnumber
49957 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
49958 mkdir stageprofile-libdecnumber; \
22121df0 49959 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 49960 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49961@endif libdecnumber
72b2455a 49962@if libiberty
b00612cc
PB
49963 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
49964 mkdir stageprofile-libiberty; \
22121df0 49965 mv stageprofile-libiberty libiberty; \
80911fe1 49966 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49967@endif libiberty
1b6c0831
L
49968@if libiberty-linker-plugin
49969 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
49970 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 49971 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49972 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49973@endif libiberty-linker-plugin
016a3251
DD
49974@if libiconv
49975 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
49976 mkdir stageprofile-libiconv; \
49977 mv stageprofile-libiconv libiconv; \
49978 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49979@endif libiconv
72b2455a 49980@if zlib
d545f33b
PB
49981 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
49982 mkdir stageprofile-zlib; \
22121df0 49983 mv stageprofile-zlib zlib; \
80911fe1 49984 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 49985@endif zlib
700d40ca
ILT
49986@if lto-plugin
49987 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
49988 mkdir stageprofile-lto-plugin; \
22121df0 49989 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
49990 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49991@endif lto-plugin
0e65dfba
NA
49992@if libctf
49993 @cd $(HOST_SUBDIR); [ -d stageprofile-libctf ] || \
49994 mkdir stageprofile-libctf; \
49995 mv stageprofile-libctf libctf; \
49996 mv stage1-libctf prev-libctf || test -f stage1-lean
49997@endif libctf
0aed8855
PB
49998 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
49999 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 50000 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50001 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 50002
80911fe1 50003stageprofile-end::
d545f33b 50004@if bfd
22121df0
L
50005 @if test -d $(HOST_SUBDIR)/bfd; then \
50006 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
50007 mv prev-bfd stage1-bfd; : ; \
0aed8855 50008 fi
d545f33b
PB
50009@endif bfd
50010@if opcodes
22121df0
L
50011 @if test -d $(HOST_SUBDIR)/opcodes; then \
50012 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
50013 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 50014 fi
d545f33b
PB
50015@endif opcodes
50016@if binutils
22121df0
L
50017 @if test -d $(HOST_SUBDIR)/binutils; then \
50018 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
50019 mv prev-binutils stage1-binutils; : ; \
0aed8855 50020 fi
d545f33b 50021@endif binutils
201f096f 50022@if fixincludes
22121df0
L
50023 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50024 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
50025 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 50026 fi
50027@endif fixincludes
d545f33b 50028@if gas
22121df0
L
50029 @if test -d $(HOST_SUBDIR)/gas; then \
50030 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
50031 mv prev-gas stage1-gas; : ; \
0aed8855 50032 fi
d545f33b
PB
50033@endif gas
50034@if gcc
22121df0
L
50035 @if test -d $(HOST_SUBDIR)/gcc; then \
50036 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
50037 mv prev-gcc stage1-gcc; : ; \
0aed8855 50038 fi
d545f33b 50039@endif gcc
4b900473 50040@if gmp
22121df0
L
50041 @if test -d $(HOST_SUBDIR)/gmp; then \
50042 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
50043 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
50044 fi
50045@endif gmp
50046@if mpfr
22121df0
L
50047 @if test -d $(HOST_SUBDIR)/mpfr; then \
50048 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
50049 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
50050 fi
50051@endif mpfr
e8a5fa9c 50052@if mpc
22121df0
L
50053 @if test -d $(HOST_SUBDIR)/mpc; then \
50054 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
50055 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
50056 fi
50057@endif mpc
7ec59b9e 50058@if isl
22121df0
L
50059 @if test -d $(HOST_SUBDIR)/isl; then \
50060 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
50061 mv prev-isl stage1-isl; : ; \
e28c595f 50062 fi
7ec59b9e 50063@endif isl
1f53ca9a 50064@if libelf
22121df0
L
50065 @if test -d $(HOST_SUBDIR)/libelf; then \
50066 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
50067 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
50068 fi
50069@endif libelf
93f9b408 50070@if gold
22121df0
L
50071 @if test -d $(HOST_SUBDIR)/gold; then \
50072 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
50073 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
50074 fi
50075@endif gold
d545f33b 50076@if intl
22121df0
L
50077 @if test -d $(HOST_SUBDIR)/intl; then \
50078 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
50079 mv prev-intl stage1-intl; : ; \
0aed8855 50080 fi
d545f33b
PB
50081@endif intl
50082@if ld
22121df0
L
50083 @if test -d $(HOST_SUBDIR)/ld; then \
50084 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
50085 mv prev-ld stage1-ld; : ; \
0aed8855 50086 fi
d545f33b 50087@endif ld
2bf680c4 50088@if libbacktrace
22121df0
L
50089 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50090 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
50091 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
50092 fi
50093@endif libbacktrace
d545f33b 50094@if libcpp
22121df0
L
50095 @if test -d $(HOST_SUBDIR)/libcpp; then \
50096 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
50097 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 50098 fi
d545f33b 50099@endif libcpp
be01d343 50100@if libdecnumber
22121df0
L
50101 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50102 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
50103 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 50104 fi
be01d343 50105@endif libdecnumber
d545f33b 50106@if libiberty
22121df0
L
50107 @if test -d $(HOST_SUBDIR)/libiberty; then \
50108 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
50109 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 50110 fi
d545f33b 50111@endif libiberty
1b6c0831 50112@if libiberty-linker-plugin
22121df0
L
50113 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50114 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
50115 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
50116 fi
50117@endif libiberty-linker-plugin
016a3251
DD
50118@if libiconv
50119 @if test -d $(HOST_SUBDIR)/libiconv; then \
50120 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
50121 mv prev-libiconv stage1-libiconv; : ; \
50122 fi
50123@endif libiconv
d545f33b 50124@if zlib
22121df0
L
50125 @if test -d $(HOST_SUBDIR)/zlib; then \
50126 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
50127 mv prev-zlib stage1-zlib; : ; \
0aed8855 50128 fi
d545f33b 50129@endif zlib
700d40ca 50130@if lto-plugin
22121df0
L
50131 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50132 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
50133 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
50134 fi
50135@endif lto-plugin
0e65dfba
NA
50136@if libctf
50137 @if test -d $(HOST_SUBDIR)/libctf; then \
50138 cd $(HOST_SUBDIR); mv libctf stageprofile-libctf; \
50139 mv prev-libctf stage1-libctf; : ; \
50140 fi
50141@endif libctf
22121df0
L
50142 @if test -d $(TARGET_SUBDIR); then \
50143 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
50144 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 50145 fi
80911fe1 50146 rm -f stage_current
72b2455a 50147
973601e1 50148# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 50149# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50150# reconfigured either.
d545f33b
PB
50151.PHONY: stageprofile-bubble
50152stageprofile-bubble:: stage1-bubble
e360f423
PB
50153 @r=`${PWD_COMMAND}`; export r; \
50154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50155 if test -f stageprofile-lean || test -f stage1-lean ; then \
50156 echo Skipping rebuild of stageprofile; \
d545f33b 50157 else \
f70224b5
PB
50158 $(MAKE) stageprofile-start; \
50159 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 50160 fi
72b2455a 50161
d545f33b
PB
50162.PHONY: all-stageprofile clean-stageprofile
50163do-clean: clean-stageprofile
0df3d27f 50164
72b2455a
PB
50165# FIXME: Will not need to be conditional when toplevel bootstrap is the
50166# only possibility, but now it conflicts with no-bootstrap rules
50167@if gcc-bootstrap
50168
50169
50170
50171
0df3d27f 50172# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 50173distclean-stage1:: distclean-stageprofile
0df3d27f 50174.PHONY: distclean-stageprofile
72b2455a 50175distclean-stageprofile::
0aed8855 50176 @: $(MAKE); $(stage)
e00a73e3 50177 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 50178 rm -rf stageprofile-*
dfdffa2c
PB
50179
50180
72b2455a 50181@endif gcc-bootstrap
dfdffa2c
PB
50182
50183
72b2455a 50184.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 50185
72b2455a 50186stagefeedback-start::
0aed8855 50187 @: $(MAKE); $(stage); \
22121df0 50188 echo stagefeedback > stage_current; \
b00612cc 50189 echo stagefeedback > stage_last; \
0aed8855 50190 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50191@if bfd
b00612cc
PB
50192 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
50193 mkdir stagefeedback-bfd; \
22121df0 50194 mv stagefeedback-bfd bfd; \
e3f56a99 50195 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
50196@endif bfd
50197@if opcodes
b00612cc
PB
50198 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
50199 mkdir stagefeedback-opcodes; \
22121df0 50200 mv stagefeedback-opcodes opcodes; \
e3f56a99 50201 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
50202@endif opcodes
50203@if binutils
b00612cc
PB
50204 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
50205 mkdir stagefeedback-binutils; \
22121df0 50206 mv stagefeedback-binutils binutils; \
e3f56a99 50207 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 50208@endif binutils
201f096f 50209@if fixincludes
50210 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
50211 mkdir stagefeedback-fixincludes; \
22121df0 50212 mv stagefeedback-fixincludes fixincludes; \
e3f56a99 50213 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
201f096f 50214@endif fixincludes
72b2455a 50215@if gas
b00612cc
PB
50216 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
50217 mkdir stagefeedback-gas; \
22121df0 50218 mv stagefeedback-gas gas; \
e3f56a99 50219 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
50220@endif gas
50221@if gcc
b00612cc
PB
50222 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
50223 mkdir stagefeedback-gcc; \
22121df0 50224 mv stagefeedback-gcc gcc; \
e3f56a99 50225 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 50226@endif gcc
4b900473
PB
50227@if gmp
50228 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
50229 mkdir stagefeedback-gmp; \
22121df0 50230 mv stagefeedback-gmp gmp; \
e3f56a99 50231 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
4b900473
PB
50232@endif gmp
50233@if mpfr
50234 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
50235 mkdir stagefeedback-mpfr; \
22121df0 50236 mv stagefeedback-mpfr mpfr; \
e3f56a99 50237 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
4b900473 50238@endif mpfr
e8a5fa9c
RW
50239@if mpc
50240 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
50241 mkdir stagefeedback-mpc; \
22121df0 50242 mv stagefeedback-mpc mpc; \
e3f56a99 50243 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
e8a5fa9c 50244@endif mpc
7ec59b9e
L
50245@if isl
50246 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
50247 mkdir stagefeedback-isl; \
22121df0 50248 mv stagefeedback-isl isl; \
e3f56a99 50249 mv stageprofile-isl prev-isl || test -f stageprofile-lean
7ec59b9e 50250@endif isl
1f53ca9a
AO
50251@if libelf
50252 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
50253 mkdir stagefeedback-libelf; \
22121df0 50254 mv stagefeedback-libelf libelf; \
e3f56a99 50255 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
1f53ca9a 50256@endif libelf
93f9b408
ILT
50257@if gold
50258 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
50259 mkdir stagefeedback-gold; \
22121df0 50260 mv stagefeedback-gold gold; \
e3f56a99 50261 mv stageprofile-gold prev-gold || test -f stageprofile-lean
93f9b408 50262@endif gold
72b2455a 50263@if intl
b00612cc
PB
50264 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
50265 mkdir stagefeedback-intl; \
22121df0 50266 mv stagefeedback-intl intl; \
e3f56a99 50267 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
50268@endif intl
50269@if ld
b00612cc
PB
50270 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
50271 mkdir stagefeedback-ld; \
22121df0 50272 mv stagefeedback-ld ld; \
e3f56a99 50273 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 50274@endif ld
2bf680c4
ILT
50275@if libbacktrace
50276 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
50277 mkdir stagefeedback-libbacktrace; \
22121df0 50278 mv stagefeedback-libbacktrace libbacktrace; \
e3f56a99 50279 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
2bf680c4 50280@endif libbacktrace
72b2455a 50281@if libcpp
b00612cc
PB
50282 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
50283 mkdir stagefeedback-libcpp; \
22121df0 50284 mv stagefeedback-libcpp libcpp; \
e3f56a99 50285 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 50286@endif libcpp
be01d343
PB
50287@if libdecnumber
50288 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
50289 mkdir stagefeedback-libdecnumber; \
22121df0 50290 mv stagefeedback-libdecnumber libdecnumber; \
e3f56a99 50291 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 50292@endif libdecnumber
72b2455a 50293@if libiberty
b00612cc
PB
50294 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
50295 mkdir stagefeedback-libiberty; \
22121df0 50296 mv stagefeedback-libiberty libiberty; \
e3f56a99 50297 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 50298@endif libiberty
1b6c0831
L
50299@if libiberty-linker-plugin
50300 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
50301 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 50302 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
e3f56a99 50303 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
1b6c0831 50304@endif libiberty-linker-plugin
016a3251
DD
50305@if libiconv
50306 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
50307 mkdir stagefeedback-libiconv; \
50308 mv stagefeedback-libiconv libiconv; \
e3f56a99 50309 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
016a3251 50310@endif libiconv
72b2455a 50311@if zlib
b00612cc
PB
50312 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
50313 mkdir stagefeedback-zlib; \
22121df0 50314 mv stagefeedback-zlib zlib; \
e3f56a99 50315 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 50316@endif zlib
700d40ca
ILT
50317@if lto-plugin
50318 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
50319 mkdir stagefeedback-lto-plugin; \
22121df0 50320 mv stagefeedback-lto-plugin lto-plugin; \
e3f56a99 50321 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
700d40ca 50322@endif lto-plugin
0e65dfba
NA
50323@if libctf
50324 @cd $(HOST_SUBDIR); [ -d stagefeedback-libctf ] || \
50325 mkdir stagefeedback-libctf; \
50326 mv stagefeedback-libctf libctf; \
e3f56a99 50327 mv stageprofile-libctf prev-libctf || test -f stageprofile-lean
0e65dfba 50328@endif libctf
0aed8855
PB
50329 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
50330 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 50331 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
e3f56a99 50332 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 50333
80911fe1 50334stagefeedback-end::
72b2455a 50335@if bfd
22121df0
L
50336 @if test -d $(HOST_SUBDIR)/bfd; then \
50337 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
e3f56a99 50338 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 50339 fi
72b2455a
PB
50340@endif bfd
50341@if opcodes
22121df0
L
50342 @if test -d $(HOST_SUBDIR)/opcodes; then \
50343 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
e3f56a99 50344 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 50345 fi
72b2455a
PB
50346@endif opcodes
50347@if binutils
22121df0
L
50348 @if test -d $(HOST_SUBDIR)/binutils; then \
50349 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
e3f56a99 50350 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 50351 fi
72b2455a 50352@endif binutils
201f096f 50353@if fixincludes
22121df0
L
50354 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50355 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
e3f56a99 50356 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 50357 fi
50358@endif fixincludes
72b2455a 50359@if gas
22121df0
L
50360 @if test -d $(HOST_SUBDIR)/gas; then \
50361 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
e3f56a99 50362 mv prev-gas stageprofile-gas; : ; \
0aed8855 50363 fi
72b2455a
PB
50364@endif gas
50365@if gcc
22121df0
L
50366 @if test -d $(HOST_SUBDIR)/gcc; then \
50367 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
e3f56a99 50368 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 50369 fi
72b2455a 50370@endif gcc
4b900473 50371@if gmp
22121df0
L
50372 @if test -d $(HOST_SUBDIR)/gmp; then \
50373 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
e3f56a99 50374 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
50375 fi
50376@endif gmp
50377@if mpfr
22121df0
L
50378 @if test -d $(HOST_SUBDIR)/mpfr; then \
50379 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
e3f56a99 50380 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
50381 fi
50382@endif mpfr
e8a5fa9c 50383@if mpc
22121df0
L
50384 @if test -d $(HOST_SUBDIR)/mpc; then \
50385 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
e3f56a99 50386 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
50387 fi
50388@endif mpc
7ec59b9e 50389@if isl
22121df0
L
50390 @if test -d $(HOST_SUBDIR)/isl; then \
50391 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
e3f56a99 50392 mv prev-isl stageprofile-isl; : ; \
e28c595f 50393 fi
7ec59b9e 50394@endif isl
1f53ca9a 50395@if libelf
22121df0
L
50396 @if test -d $(HOST_SUBDIR)/libelf; then \
50397 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
e3f56a99 50398 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
50399 fi
50400@endif libelf
93f9b408 50401@if gold
22121df0
L
50402 @if test -d $(HOST_SUBDIR)/gold; then \
50403 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
e3f56a99 50404 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
50405 fi
50406@endif gold
72b2455a 50407@if intl
22121df0
L
50408 @if test -d $(HOST_SUBDIR)/intl; then \
50409 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
e3f56a99 50410 mv prev-intl stageprofile-intl; : ; \
0aed8855 50411 fi
72b2455a
PB
50412@endif intl
50413@if ld
22121df0
L
50414 @if test -d $(HOST_SUBDIR)/ld; then \
50415 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
e3f56a99 50416 mv prev-ld stageprofile-ld; : ; \
0aed8855 50417 fi
72b2455a 50418@endif ld
2bf680c4 50419@if libbacktrace
22121df0
L
50420 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50421 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
e3f56a99 50422 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
50423 fi
50424@endif libbacktrace
72b2455a 50425@if libcpp
22121df0
L
50426 @if test -d $(HOST_SUBDIR)/libcpp; then \
50427 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
e3f56a99 50428 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 50429 fi
72b2455a 50430@endif libcpp
be01d343 50431@if libdecnumber
22121df0
L
50432 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50433 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
e3f56a99 50434 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 50435 fi
be01d343 50436@endif libdecnumber
72b2455a 50437@if libiberty
22121df0
L
50438 @if test -d $(HOST_SUBDIR)/libiberty; then \
50439 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
e3f56a99 50440 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 50441 fi
72b2455a 50442@endif libiberty
1b6c0831 50443@if libiberty-linker-plugin
22121df0
L
50444 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50445 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
e3f56a99 50446 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
50447 fi
50448@endif libiberty-linker-plugin
016a3251
DD
50449@if libiconv
50450 @if test -d $(HOST_SUBDIR)/libiconv; then \
50451 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
e3f56a99 50452 mv prev-libiconv stageprofile-libiconv; : ; \
016a3251
DD
50453 fi
50454@endif libiconv
72b2455a 50455@if zlib
22121df0
L
50456 @if test -d $(HOST_SUBDIR)/zlib; then \
50457 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
e3f56a99 50458 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 50459 fi
72b2455a 50460@endif zlib
700d40ca 50461@if lto-plugin
22121df0
L
50462 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50463 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
e3f56a99 50464 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
50465 fi
50466@endif lto-plugin
0e65dfba
NA
50467@if libctf
50468 @if test -d $(HOST_SUBDIR)/libctf; then \
50469 cd $(HOST_SUBDIR); mv libctf stagefeedback-libctf; \
e3f56a99 50470 mv prev-libctf stageprofile-libctf; : ; \
0e65dfba
NA
50471 fi
50472@endif libctf
22121df0
L
50473 @if test -d $(TARGET_SUBDIR); then \
50474 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
e3f56a99 50475 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 50476 fi
80911fe1 50477 rm -f stage_current
dfdffa2c 50478
973601e1 50479# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 50480# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50481# reconfigured either.
72b2455a 50482.PHONY: stagefeedback-bubble
e3f56a99 50483stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
50484 @r=`${PWD_COMMAND}`; export r; \
50485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e3f56a99 50486 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
22121df0 50487 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 50488 else \
f70224b5
PB
50489 $(MAKE) stagefeedback-start; \
50490 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 50491 fi
72b2455a 50492
0df3d27f 50493.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 50494do-clean: clean-stagefeedback
0df3d27f 50495
72b2455a
PB
50496# FIXME: Will not need to be conditional when toplevel bootstrap is the
50497# only possibility, but now it conflicts with no-bootstrap rules
50498@if gcc-bootstrap
656fdd47
PB
50499
50500
50501
80911fe1 50502.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
50503profiledbootstrap:
50504 echo stagefeedback > stage_final
50505 @r=`${PWD_COMMAND}`; export r; \
50506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50507 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 50508 @: $(MAKE); $(unstage)
be01d343
PB
50509 @r=`${PWD_COMMAND}`; export r; \
50510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50511 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 50512 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 50513
80911fe1
PB
50514profiledbootstrap-lean:
50515 echo stagefeedback > stage_final
50516 @r=`${PWD_COMMAND}`; export r; \
50517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50518 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
50519 @: $(MAKE); $(unstage)
50520 @r=`${PWD_COMMAND}`; export r; \
50521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50522 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
50523 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50524
656fdd47 50525
0df3d27f 50526# Rules to wipe a stage and all the following ones, also used for cleanstrap
e3f56a99 50527distclean-stageprofile:: distclean-stagefeedback
0df3d27f 50528.PHONY: distclean-stagefeedback
656fdd47 50529distclean-stagefeedback::
0aed8855 50530 @: $(MAKE); $(stage)
e00a73e3 50531 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 50532 rm -rf stagefeedback-*
656fdd47
PB
50533
50534
72b2455a 50535@endif gcc-bootstrap
656fdd47
PB
50536
50537
50538
7d329e61
PB
50539stageprofile-end::
50540 $(MAKE) distclean-stagefeedback
656fdd47 50541
7d329e61 50542stagefeedback-start::
656fdd47
PB
50543 @r=`${PWD_COMMAND}`; export r; \
50544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 50545 for i in prev-*; do \
22121df0 50546 j=`echo $$i | sed s/^prev-//`; \
7d329e61 50547 cd $$r/$$i && \
22121df0
L
50548 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
50549 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 50550 done
b8908782 50551
0df3d27f 50552@if gcc-bootstrap
0df3d27f 50553do-distclean: distclean-stage1
c52c6897
PB
50554
50555# Provide a GCC build when we're building target libraries. This does
50556# not work as a dependency, just as the minimum necessary to avoid errors.
50557stage_last:
314b2e66
AS
50558 @r=`${PWD_COMMAND}`; export r; \
50559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 50560 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 50561
4f0ef2d8
CD
50562# Same as unstage, but not phony and defaulting to stage1-start. We place
50563# it in the dependency so that for example `make -j3 all-gcc' works.
50564stage_current:
50565 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
50566
c52c6897 50567.PHONY: restrap
266df637 50568restrap::
c52c6897 50569 @: $(MAKE); $(stage)
e3f56a99 50570 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 50571restrap:: all
c380fdd8 50572@endif gcc-bootstrap
c52c6897 50573
ae831be5
NN
50574# --------------------------------------
50575# Dependencies between different modules
50576# --------------------------------------
252b5132 50577
9e6ce191 50578# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 50579@if gcc-bootstrap
e8a5fa9c
RW
50580configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
50581configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
50582configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
50583configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
50584configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
50585configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
50586configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
50587configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
50588configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
50589configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
50590configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
50591configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
50592configure-stage1-target-libmpx: maybe-all-stage1-gcc
50593configure-stage2-target-libmpx: maybe-all-stage2-gcc
50594configure-stage3-target-libmpx: maybe-all-stage3-gcc
50595configure-stage4-target-libmpx: maybe-all-stage4-gcc
50596configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
50597configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
50598configure-stage1-target-libvtv: maybe-all-stage1-gcc
50599configure-stage2-target-libvtv: maybe-all-stage2-gcc
50600configure-stage3-target-libvtv: maybe-all-stage3-gcc
50601configure-stage4-target-libvtv: maybe-all-stage4-gcc
50602configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
50603configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
e3f56a99 50604configure-target-libcilkrts: stage_last
1b6c0831 50605configure-target-liboffloadmic: stage_last
c52c6897 50606configure-target-libssp: stage_last
c52c6897 50607configure-target-newlib: stage_last
6aa8ef82
DJ
50608configure-stage1-target-libgcc: maybe-all-stage1-gcc
50609configure-stage2-target-libgcc: maybe-all-stage2-gcc
50610configure-stage3-target-libgcc: maybe-all-stage3-gcc
50611configure-stage4-target-libgcc: maybe-all-stage4-gcc
50612configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
50613configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 50614configure-target-libbacktrace: stage_last
e552509b 50615configure-target-libquadmath: stage_last
c52c6897
PB
50616configure-target-libgfortran: stage_last
50617configure-target-libobjc: stage_last
e552509b 50618configure-target-libgo: stage_last
c52c6897
PB
50619configure-target-libtermcap: stage_last
50620configure-target-winsup: stage_last
50621configure-target-libgloss: stage_last
c52c6897 50622configure-target-libffi: stage_last
c52c6897 50623configure-target-zlib: stage_last
c52c6897
PB
50624configure-target-rda: stage_last
50625configure-target-libada: stage_last
911e63d0
JR
50626configure-stage1-target-libgomp: maybe-all-stage1-gcc
50627configure-stage2-target-libgomp: maybe-all-stage2-gcc
50628configure-stage3-target-libgomp: maybe-all-stage3-gcc
50629configure-stage4-target-libgomp: maybe-all-stage4-gcc
50630configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
50631configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
50632configure-target-libitm: stage_last
50633configure-target-libatomic: stage_last
c52c6897 50634@endif gcc-bootstrap
9e6ce191 50635
c52c6897 50636@if gcc-no-bootstrap
9e6ce191 50637configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 50638configure-target-libsanitizer: maybe-all-gcc
1b6c0831 50639configure-target-libmpx: maybe-all-gcc
95e43135 50640configure-target-libvtv: maybe-all-gcc
e3f56a99 50641configure-target-libcilkrts: maybe-all-gcc
1b6c0831 50642configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 50643configure-target-libssp: maybe-all-gcc
9e6ce191 50644configure-target-newlib: maybe-all-gcc
6aa8ef82 50645configure-target-libgcc: maybe-all-gcc
2bf680c4 50646configure-target-libbacktrace: maybe-all-gcc
e552509b 50647configure-target-libquadmath: maybe-all-gcc
9e6ce191 50648configure-target-libgfortran: maybe-all-gcc
9e6ce191 50649configure-target-libobjc: maybe-all-gcc
e552509b 50650configure-target-libgo: maybe-all-gcc
9e6ce191 50651configure-target-libtermcap: maybe-all-gcc
9e6ce191 50652configure-target-winsup: maybe-all-gcc
9e6ce191 50653configure-target-libgloss: maybe-all-gcc
9e6ce191 50654configure-target-libffi: maybe-all-gcc
9e6ce191 50655configure-target-zlib: maybe-all-gcc
9e6ce191 50656configure-target-rda: maybe-all-gcc
9e6ce191 50657configure-target-libada: maybe-all-gcc
b3ded179 50658configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
50659configure-target-libitm: maybe-all-gcc
50660configure-target-libatomic: maybe-all-gcc
c52c6897 50661@endif gcc-no-bootstrap
b3ded179 50662
9e6ce191 50663
ae831be5
NN
50664# There are two types of dependencies here: 'hard' dependencies, where one
50665# module simply won't build without the other; and 'soft' dependencies, where
50666# if the depended-on module is missing, the depending module will do without
50667# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 50668# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
50669# it's safer to use a soft dependency.
50670
9e6ce191
PB
50671
50672
50673
50674
c60fe18b 50675
9e6ce191
PB
50676# With all the machinery above in place, it is pretty easy to generate
50677# dependencies. Host dependencies are a bit more complex because we have
50678# to check for bootstrap/prebootstrap dependencies. To resolve
50679# prebootstrap dependencies, prebootstrap modules are gathered in
50680# a hash table.
6a9cf61e
PB
50681all-build-bison: maybe-all-build-texinfo
50682all-build-flex: maybe-all-build-texinfo
9e6ce191 50683all-build-flex: maybe-all-build-bison
9e6ce191 50684all-build-flex: maybe-all-build-m4
6a9cf61e 50685all-build-libiberty: maybe-all-build-texinfo
9e6ce191 50686all-build-m4: maybe-all-build-texinfo
ee025550 50687all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 50688all-build-libcpp: maybe-all-build-libiberty
9e6ce191 50689configure-gcc: maybe-configure-intl
9e6ce191
PB
50690configure-stage1-gcc: maybe-configure-stage1-intl
50691configure-stage2-gcc: maybe-configure-stage2-intl
50692configure-stage3-gcc: maybe-configure-stage3-intl
50693configure-stage4-gcc: maybe-configure-stage4-intl
50694configure-stageprofile-gcc: maybe-configure-stageprofile-intl
50695configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8 50696configure-gcc: maybe-all-gmp
861ea9c8
L
50697configure-stage1-gcc: maybe-all-stage1-gmp
50698configure-stage2-gcc: maybe-all-stage2-gmp
50699configure-stage3-gcc: maybe-all-stage3-gmp
50700configure-stage4-gcc: maybe-all-stage4-gmp
50701configure-stageprofile-gcc: maybe-all-stageprofile-gmp
50702configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831 50703configure-gcc: maybe-all-mpfr
1b6c0831
L
50704configure-stage1-gcc: maybe-all-stage1-mpfr
50705configure-stage2-gcc: maybe-all-stage2-mpfr
50706configure-stage3-gcc: maybe-all-stage3-mpfr
50707configure-stage4-gcc: maybe-all-stage4-mpfr
50708configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
50709configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
50710configure-gcc: maybe-all-mpc
1b6c0831
L
50711configure-stage1-gcc: maybe-all-stage1-mpc
50712configure-stage2-gcc: maybe-all-stage2-mpc
50713configure-stage3-gcc: maybe-all-stage3-mpc
50714configure-stage4-gcc: maybe-all-stage4-mpc
50715configure-stageprofile-gcc: maybe-all-stageprofile-mpc
50716configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
50717configure-gcc: maybe-all-isl
1b6c0831
L
50718configure-stage1-gcc: maybe-all-stage1-isl
50719configure-stage2-gcc: maybe-all-stage2-isl
50720configure-stage3-gcc: maybe-all-stage3-isl
50721configure-stage4-gcc: maybe-all-stage4-isl
50722configure-stageprofile-gcc: maybe-all-stageprofile-isl
50723configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a 50724configure-gcc: maybe-all-lto-plugin
8d8eef9a
RW
50725configure-stage1-gcc: maybe-all-stage1-lto-plugin
50726configure-stage2-gcc: maybe-all-stage2-lto-plugin
50727configure-stage3-gcc: maybe-all-stage3-lto-plugin
50728configure-stage4-gcc: maybe-all-stage4-lto-plugin
50729configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50730configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b 50731configure-gcc: maybe-all-binutils
c60fe18b
PB
50732configure-stage1-gcc: maybe-all-stage1-binutils
50733configure-stage2-gcc: maybe-all-stage2-binutils
50734configure-stage3-gcc: maybe-all-stage3-binutils
50735configure-stage4-gcc: maybe-all-stage4-binutils
50736configure-stageprofile-gcc: maybe-all-stageprofile-binutils
50737configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
50738configure-gcc: maybe-all-gas
c60fe18b
PB
50739configure-stage1-gcc: maybe-all-stage1-gas
50740configure-stage2-gcc: maybe-all-stage2-gas
50741configure-stage3-gcc: maybe-all-stage3-gas
50742configure-stage4-gcc: maybe-all-stage4-gas
50743configure-stageprofile-gcc: maybe-all-stageprofile-gas
50744configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
50745configure-gcc: maybe-all-ld
c60fe18b
PB
50746configure-stage1-gcc: maybe-all-stage1-ld
50747configure-stage2-gcc: maybe-all-stage2-ld
50748configure-stage3-gcc: maybe-all-stage3-ld
50749configure-stage4-gcc: maybe-all-stage4-ld
50750configure-stageprofile-gcc: maybe-all-stageprofile-ld
50751configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408 50752configure-gcc: maybe-all-gold
93f9b408
ILT
50753configure-stage1-gcc: maybe-all-stage1-gold
50754configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 50755configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
50756configure-stage4-gcc: maybe-all-stage4-gold
50757configure-stageprofile-gcc: maybe-all-stageprofile-gold
50758configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480 50759configure-gcc: maybe-all-libelf
7530c480
AO
50760configure-stage1-gcc: maybe-all-stage1-libelf
50761configure-stage2-gcc: maybe-all-stage2-libelf
50762configure-stage3-gcc: maybe-all-stage3-libelf
50763configure-stage4-gcc: maybe-all-stage4-libelf
50764configure-stageprofile-gcc: maybe-all-stageprofile-libelf
50765configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251 50766configure-gcc: maybe-all-libiconv
016a3251
DD
50767configure-stage1-gcc: maybe-all-stage1-libiconv
50768configure-stage2-gcc: maybe-all-stage2-libiconv
50769configure-stage3-gcc: maybe-all-stage3-libiconv
50770configure-stage4-gcc: maybe-all-stage4-libiconv
50771configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
50772configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191 50773all-gcc: all-libiberty
9e6ce191
PB
50774all-stage1-gcc: all-stage1-libiberty
50775all-stage2-gcc: all-stage2-libiberty
50776all-stage3-gcc: all-stage3-libiberty
50777all-stage4-gcc: all-stage4-libiberty
50778all-stageprofile-gcc: all-stageprofile-libiberty
50779all-stagefeedback-gcc: all-stagefeedback-libiberty
50780all-gcc: maybe-all-intl
9e6ce191
PB
50781all-stage1-gcc: maybe-all-stage1-intl
50782all-stage2-gcc: maybe-all-stage2-intl
50783all-stage3-gcc: maybe-all-stage3-intl
50784all-stage4-gcc: maybe-all-stage4-intl
50785all-stageprofile-gcc: maybe-all-stageprofile-intl
50786all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473 50787all-gcc: maybe-all-mpfr
4b900473
PB
50788all-stage1-gcc: maybe-all-stage1-mpfr
50789all-stage2-gcc: maybe-all-stage2-mpfr
50790all-stage3-gcc: maybe-all-stage3-mpfr
50791all-stage4-gcc: maybe-all-stage4-mpfr
50792all-stageprofile-gcc: maybe-all-stageprofile-mpfr
50793all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c 50794all-gcc: maybe-all-mpc
e8a5fa9c
RW
50795all-stage1-gcc: maybe-all-stage1-mpc
50796all-stage2-gcc: maybe-all-stage2-mpc
50797all-stage3-gcc: maybe-all-stage3-mpc
50798all-stage4-gcc: maybe-all-stage4-mpc
50799all-stageprofile-gcc: maybe-all-stageprofile-mpc
50800all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831 50801all-gcc: maybe-all-isl
1b6c0831
L
50802all-stage1-gcc: maybe-all-stage1-isl
50803all-stage2-gcc: maybe-all-stage2-isl
50804all-stage3-gcc: maybe-all-stage3-isl
50805all-stage4-gcc: maybe-all-stage4-isl
50806all-stageprofile-gcc: maybe-all-stageprofile-isl
50807all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a 50808all-gcc: maybe-all-build-texinfo
72b2455a
PB
50809all-stage1-gcc: maybe-all-build-texinfo
50810all-stage2-gcc: maybe-all-build-texinfo
50811all-stage3-gcc: maybe-all-build-texinfo
50812all-stage4-gcc: maybe-all-build-texinfo
50813all-stageprofile-gcc: maybe-all-build-texinfo
50814all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a 50815all-gcc: maybe-all-build-bison
72b2455a
PB
50816all-stage1-gcc: maybe-all-build-bison
50817all-stage2-gcc: maybe-all-build-bison
50818all-stage3-gcc: maybe-all-build-bison
50819all-stage4-gcc: maybe-all-build-bison
50820all-stageprofile-gcc: maybe-all-build-bison
50821all-stagefeedback-gcc: maybe-all-build-bison
72b2455a 50822all-gcc: maybe-all-build-flex
72b2455a
PB
50823all-stage1-gcc: maybe-all-build-flex
50824all-stage2-gcc: maybe-all-build-flex
50825all-stage3-gcc: maybe-all-build-flex
50826all-stage4-gcc: maybe-all-build-flex
50827all-stageprofile-gcc: maybe-all-build-flex
50828all-stagefeedback-gcc: maybe-all-build-flex
ee025550 50829all-gcc: maybe-all-build-libiberty
ee025550
PB
50830all-stage1-gcc: maybe-all-build-libiberty
50831all-stage2-gcc: maybe-all-build-libiberty
50832all-stage3-gcc: maybe-all-build-libiberty
50833all-stage4-gcc: maybe-all-build-libiberty
50834all-stageprofile-gcc: maybe-all-build-libiberty
50835all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550 50836all-gcc: maybe-all-build-fixincludes
ee025550
PB
50837all-stage1-gcc: maybe-all-build-fixincludes
50838all-stage2-gcc: maybe-all-build-fixincludes
50839all-stage3-gcc: maybe-all-build-fixincludes
50840all-stage4-gcc: maybe-all-build-fixincludes
50841all-stageprofile-gcc: maybe-all-build-fixincludes
50842all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831 50843all-gcc: maybe-all-build-libcpp
1b6c0831
L
50844all-stage1-gcc: maybe-all-build-libcpp
50845all-stage2-gcc: maybe-all-build-libcpp
50846all-stage3-gcc: maybe-all-build-libcpp
50847all-stage4-gcc: maybe-all-build-libcpp
50848all-stageprofile-gcc: maybe-all-build-libcpp
50849all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191 50850all-gcc: maybe-all-zlib
9e6ce191
PB
50851all-stage1-gcc: maybe-all-stage1-zlib
50852all-stage2-gcc: maybe-all-stage2-zlib
50853all-stage3-gcc: maybe-all-stage3-zlib
50854all-stage4-gcc: maybe-all-stage4-zlib
50855all-stageprofile-gcc: maybe-all-stageprofile-zlib
50856all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b 50857all-gcc: all-libbacktrace
8e71395b
L
50858all-stage1-gcc: all-stage1-libbacktrace
50859all-stage2-gcc: all-stage2-libbacktrace
50860all-stage3-gcc: all-stage3-libbacktrace
50861all-stage4-gcc: all-stage4-libbacktrace
50862all-stageprofile-gcc: all-stageprofile-libbacktrace
50863all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191 50864all-gcc: all-libcpp
9e6ce191
PB
50865all-stage1-gcc: all-stage1-libcpp
50866all-stage2-gcc: all-stage2-libcpp
50867all-stage3-gcc: all-stage3-libcpp
50868all-stage4-gcc: all-stage4-libcpp
50869all-stageprofile-gcc: all-stageprofile-libcpp
50870all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343 50871all-gcc: all-libdecnumber
be01d343
PB
50872all-stage1-gcc: all-stage1-libdecnumber
50873all-stage2-gcc: all-stage2-libdecnumber
50874all-stage3-gcc: all-stage3-libdecnumber
50875all-stage4-gcc: all-stage4-libdecnumber
50876all-stageprofile-gcc: all-stageprofile-libdecnumber
50877all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c 50878all-gcc: maybe-all-libiberty
d3ed111c
GK
50879all-stage1-gcc: maybe-all-stage1-libiberty
50880all-stage2-gcc: maybe-all-stage2-libiberty
50881all-stage3-gcc: maybe-all-stage3-libiberty
50882all-stage4-gcc: maybe-all-stage4-libiberty
50883all-stageprofile-gcc: maybe-all-stageprofile-libiberty
50884all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
50885all-gcc: maybe-all-fixincludes
201f096f 50886all-stage1-gcc: maybe-all-stage1-fixincludes
50887all-stage2-gcc: maybe-all-stage2-fixincludes
50888all-stage3-gcc: maybe-all-stage3-fixincludes
50889all-stage4-gcc: maybe-all-stage4-fixincludes
50890all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
50891all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a 50892all-gcc: maybe-all-lto-plugin
8d8eef9a
RW
50893all-stage1-gcc: maybe-all-stage1-lto-plugin
50894all-stage2-gcc: maybe-all-stage2-lto-plugin
50895all-stage3-gcc: maybe-all-stage3-lto-plugin
50896all-stage4-gcc: maybe-all-stage4-lto-plugin
50897all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
50898all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251 50899all-gcc: maybe-all-libiconv
016a3251
DD
50900all-stage1-gcc: maybe-all-stage1-libiconv
50901all-stage2-gcc: maybe-all-stage2-libiconv
50902all-stage3-gcc: maybe-all-stage3-libiconv
50903all-stage4-gcc: maybe-all-stage4-libiconv
50904all-stageprofile-gcc: maybe-all-stageprofile-libiconv
50905all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d 50906info-gcc: maybe-all-build-libiberty
57eefe4d
RW
50907info-stage1-gcc: maybe-all-build-libiberty
50908info-stage2-gcc: maybe-all-build-libiberty
50909info-stage3-gcc: maybe-all-build-libiberty
50910info-stage4-gcc: maybe-all-build-libiberty
50911info-stageprofile-gcc: maybe-all-build-libiberty
50912info-stagefeedback-gcc: maybe-all-build-libiberty
50913dvi-gcc: maybe-all-build-libiberty
57eefe4d
RW
50914dvi-stage1-gcc: maybe-all-build-libiberty
50915dvi-stage2-gcc: maybe-all-build-libiberty
50916dvi-stage3-gcc: maybe-all-build-libiberty
50917dvi-stage4-gcc: maybe-all-build-libiberty
50918dvi-stageprofile-gcc: maybe-all-build-libiberty
50919dvi-stagefeedback-gcc: maybe-all-build-libiberty
50920pdf-gcc: maybe-all-build-libiberty
57eefe4d
RW
50921pdf-stage1-gcc: maybe-all-build-libiberty
50922pdf-stage2-gcc: maybe-all-build-libiberty
50923pdf-stage3-gcc: maybe-all-build-libiberty
50924pdf-stage4-gcc: maybe-all-build-libiberty
50925pdf-stageprofile-gcc: maybe-all-build-libiberty
50926pdf-stagefeedback-gcc: maybe-all-build-libiberty
50927html-gcc: maybe-all-build-libiberty
57eefe4d
RW
50928html-stage1-gcc: maybe-all-build-libiberty
50929html-stage2-gcc: maybe-all-build-libiberty
50930html-stage3-gcc: maybe-all-build-libiberty
50931html-stage4-gcc: maybe-all-build-libiberty
50932html-stageprofile-gcc: maybe-all-build-libiberty
50933html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 50934install-gcc: maybe-install-fixincludes
8d8eef9a 50935install-gcc: maybe-install-lto-plugin
9b980aa1 50936install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 50937install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191 50938configure-libcpp: configure-libiberty
9e6ce191
PB
50939configure-stage1-libcpp: configure-stage1-libiberty
50940configure-stage2-libcpp: configure-stage2-libiberty
50941configure-stage3-libcpp: configure-stage3-libiberty
50942configure-stage4-libcpp: configure-stage4-libiberty
50943configure-stageprofile-libcpp: configure-stageprofile-libiberty
50944configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
50945configure-libcpp: maybe-configure-intl
9e6ce191
PB
50946configure-stage1-libcpp: maybe-configure-stage1-intl
50947configure-stage2-libcpp: maybe-configure-stage2-intl
50948configure-stage3-libcpp: maybe-configure-stage3-intl
50949configure-stage4-libcpp: maybe-configure-stage4-intl
50950configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
50951configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251 50952configure-libcpp: maybe-all-libiconv
016a3251
DD
50953configure-stage1-libcpp: maybe-all-stage1-libiconv
50954configure-stage2-libcpp: maybe-all-stage2-libiconv
50955configure-stage3-libcpp: maybe-all-stage3-libiconv
50956configure-stage4-libcpp: maybe-all-stage4-libiconv
50957configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50958configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191 50959all-libcpp: all-libiberty
9e6ce191
PB
50960all-stage1-libcpp: all-stage1-libiberty
50961all-stage2-libcpp: all-stage2-libiberty
50962all-stage3-libcpp: all-stage3-libiberty
50963all-stage4-libcpp: all-stage4-libiberty
50964all-stageprofile-libcpp: all-stageprofile-libiberty
50965all-stagefeedback-libcpp: all-stagefeedback-libiberty
50966all-libcpp: maybe-all-intl
9e6ce191
PB
50967all-stage1-libcpp: maybe-all-stage1-intl
50968all-stage2-libcpp: maybe-all-stage2-intl
50969all-stage3-libcpp: maybe-all-stage3-intl
50970all-stage4-libcpp: maybe-all-stage4-intl
50971all-stageprofile-libcpp: maybe-all-stageprofile-intl
50972all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251 50973all-libcpp: maybe-all-libiconv
016a3251
DD
50974all-stage1-libcpp: maybe-all-stage1-libiconv
50975all-stage2-libcpp: maybe-all-stage2-libiconv
50976all-stage3-libcpp: maybe-all-stage3-libiconv
50977all-stage4-libcpp: maybe-all-stage4-libiconv
50978all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
50979all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 50980all-fixincludes: maybe-all-libiberty
201f096f 50981all-stage1-fixincludes: maybe-all-stage1-libiberty
50982all-stage2-fixincludes: maybe-all-stage2-libiberty
50983all-stage3-fixincludes: maybe-all-stage3-libiberty
50984all-stage4-fixincludes: maybe-all-stage4-libiberty
50985all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
50986all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 50987all-gnattools: maybe-all-target-libada
8d8eef9a 50988all-lto-plugin: maybe-all-libiberty
8d8eef9a
RW
50989all-stage1-lto-plugin: maybe-all-stage1-libiberty
50990all-stage2-lto-plugin: maybe-all-stage2-libiberty
50991all-stage3-lto-plugin: maybe-all-stage3-libiberty
50992all-stage4-lto-plugin: maybe-all-stage4-libiberty
50993all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
50994all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831 50995all-lto-plugin: maybe-all-libiberty-linker-plugin
1b6c0831
L
50996all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
50997all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
50998all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
50999all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
51000all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
51001all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
1b6c0831 51002all-gotools: maybe-all-target-libgo
016a3251 51003configure-intl: maybe-all-libiconv
016a3251
DD
51004configure-stage1-intl: maybe-all-stage1-libiconv
51005configure-stage2-intl: maybe-all-stage2-libiconv
51006configure-stage3-intl: maybe-all-stage3-libiconv
51007configure-stage4-intl: maybe-all-stage4-libiconv
51008configure-stageprofile-intl: maybe-all-stageprofile-libiconv
51009configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473 51010configure-mpfr: maybe-all-gmp
4b900473
PB
51011configure-stage1-mpfr: maybe-all-stage1-gmp
51012configure-stage2-mpfr: maybe-all-stage2-gmp
51013configure-stage3-mpfr: maybe-all-stage3-gmp
51014configure-stage4-mpfr: maybe-all-stage4-gmp
51015configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
51016configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c 51017configure-mpc: maybe-all-mpfr
e8a5fa9c
RW
51018configure-stage1-mpc: maybe-all-stage1-mpfr
51019configure-stage2-mpc: maybe-all-stage2-mpfr
51020configure-stage3-mpc: maybe-all-stage3-mpfr
51021configure-stage4-mpc: maybe-all-stage4-mpfr
51022configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
51023configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e 51024configure-isl: maybe-all-gmp
7ec59b9e
L
51025configure-stage1-isl: maybe-all-stage1-gmp
51026configure-stage2-isl: maybe-all-stage2-gmp
51027configure-stage3-isl: maybe-all-stage3-gmp
51028configure-stage4-isl: maybe-all-stage4-gmp
51029configure-stageprofile-isl: maybe-all-stageprofile-gmp
51030configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251 51031all-intl: maybe-all-libiconv
016a3251
DD
51032all-stage1-intl: maybe-all-stage1-libiconv
51033all-stage2-intl: maybe-all-stage2-libiconv
51034all-stage3-intl: maybe-all-stage3-libiconv
51035all-stage4-intl: maybe-all-stage4-libiconv
51036all-stageprofile-intl: maybe-all-stageprofile-libiconv
51037all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
9e6ce191 51038configure-gdb: maybe-configure-sim
73cc7272
TT
51039configure-gdb: maybe-all-gnulib
51040all-gdb: maybe-all-gnulib
9e6ce191 51041all-gdb: maybe-all-readline
72b2455a 51042all-gdb: maybe-all-build-bison
9e6ce191 51043all-gdb: maybe-all-sim
dbbe5f95 51044all-gdb: maybe-all-libtermcap
9e6ce191
PB
51045configure-libgui: maybe-configure-tcl
51046configure-libgui: maybe-configure-tk
51047all-libgui: maybe-all-tcl
51048all-libgui: maybe-all-tk
51049all-libgui: maybe-all-itcl
b4a77b47 51050configure-bfd: configure-libiberty
9e6ce191
PB
51051configure-stage1-bfd: configure-stage1-libiberty
51052configure-stage2-bfd: configure-stage2-libiberty
51053configure-stage3-bfd: configure-stage3-libiberty
51054configure-stage4-bfd: configure-stage4-libiberty
51055configure-stageprofile-bfd: configure-stageprofile-libiberty
51056configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23 51057configure-bfd: maybe-configure-intl
20e95c23
DJ
51058configure-stage1-bfd: maybe-configure-stage1-intl
51059configure-stage2-bfd: maybe-configure-stage2-intl
51060configure-stage3-bfd: maybe-configure-stage3-intl
51061configure-stage4-bfd: maybe-configure-stage4-intl
51062configure-stageprofile-bfd: maybe-configure-stageprofile-intl
51063configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191 51064all-bfd: maybe-all-libiberty
9e6ce191
PB
51065all-stage1-bfd: maybe-all-stage1-libiberty
51066all-stage2-bfd: maybe-all-stage2-libiberty
51067all-stage3-bfd: maybe-all-stage3-libiberty
51068all-stage4-bfd: maybe-all-stage4-libiberty
51069all-stageprofile-bfd: maybe-all-stageprofile-libiberty
51070all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
51071all-bfd: maybe-all-intl
9e6ce191
PB
51072all-stage1-bfd: maybe-all-stage1-intl
51073all-stage2-bfd: maybe-all-stage2-intl
51074all-stage3-bfd: maybe-all-stage3-intl
51075all-stage4-bfd: maybe-all-stage4-intl
51076all-stageprofile-bfd: maybe-all-stageprofile-intl
51077all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea 51078all-bfd: maybe-all-zlib
d2d67aea
L
51079all-stage1-bfd: maybe-all-stage1-zlib
51080all-stage2-bfd: maybe-all-stage2-zlib
51081all-stage3-bfd: maybe-all-stage3-zlib
51082all-stage4-bfd: maybe-all-stage4-zlib
51083all-stageprofile-bfd: maybe-all-stageprofile-zlib
51084all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67 51085configure-opcodes: configure-libiberty
66775d67
AM
51086configure-stage1-opcodes: configure-stage1-libiberty
51087configure-stage2-opcodes: configure-stage2-libiberty
66775d67 51088configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
51089configure-stage4-opcodes: configure-stage4-libiberty
51090configure-stageprofile-opcodes: configure-stageprofile-libiberty
51091configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
51092all-opcodes: maybe-all-libiberty
66775d67
AM
51093all-stage1-opcodes: maybe-all-stage1-libiberty
51094all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 51095all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
51096all-stage4-opcodes: maybe-all-stage4-libiberty
51097all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
51098all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23 51099configure-binutils: maybe-configure-intl
20e95c23
DJ
51100configure-stage1-binutils: maybe-configure-stage1-intl
51101configure-stage2-binutils: maybe-configure-stage2-intl
51102configure-stage3-binutils: maybe-configure-stage3-intl
51103configure-stage4-binutils: maybe-configure-stage4-intl
51104configure-stageprofile-binutils: maybe-configure-stageprofile-intl
51105configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191 51106all-binutils: maybe-all-libiberty
9e6ce191
PB
51107all-stage1-binutils: maybe-all-stage1-libiberty
51108all-stage2-binutils: maybe-all-stage2-libiberty
51109all-stage3-binutils: maybe-all-stage3-libiberty
51110all-stage4-binutils: maybe-all-stage4-libiberty
51111all-stageprofile-binutils: maybe-all-stageprofile-libiberty
51112all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
51113all-binutils: maybe-all-opcodes
9e6ce191
PB
51114all-stage1-binutils: maybe-all-stage1-opcodes
51115all-stage2-binutils: maybe-all-stage2-opcodes
51116all-stage3-binutils: maybe-all-stage3-opcodes
51117all-stage4-binutils: maybe-all-stage4-opcodes
51118all-stageprofile-binutils: maybe-all-stageprofile-opcodes
51119all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
51120all-binutils: maybe-all-bfd
9e6ce191
PB
51121all-stage1-binutils: maybe-all-stage1-bfd
51122all-stage2-binutils: maybe-all-stage2-bfd
51123all-stage3-binutils: maybe-all-stage3-bfd
51124all-stage4-binutils: maybe-all-stage4-bfd
51125all-stageprofile-binutils: maybe-all-stageprofile-bfd
51126all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a 51127all-binutils: maybe-all-build-flex
72b2455a
PB
51128all-stage1-binutils: maybe-all-build-flex
51129all-stage2-binutils: maybe-all-build-flex
51130all-stage3-binutils: maybe-all-build-flex
51131all-stage4-binutils: maybe-all-build-flex
51132all-stageprofile-binutils: maybe-all-build-flex
51133all-stagefeedback-binutils: maybe-all-build-flex
72b2455a 51134all-binutils: maybe-all-build-bison
72b2455a
PB
51135all-stage1-binutils: maybe-all-build-bison
51136all-stage2-binutils: maybe-all-build-bison
51137all-stage3-binutils: maybe-all-build-bison
51138all-stage4-binutils: maybe-all-build-bison
51139all-stageprofile-binutils: maybe-all-build-bison
51140all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191 51141all-binutils: maybe-all-intl
9e6ce191
PB
51142all-stage1-binutils: maybe-all-stage1-intl
51143all-stage2-binutils: maybe-all-stage2-intl
51144all-stage3-binutils: maybe-all-stage3-intl
51145all-stage4-binutils: maybe-all-stage4-intl
51146all-stageprofile-binutils: maybe-all-stageprofile-intl
51147all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685 51148all-binutils: maybe-all-gas
0140d685
L
51149all-stage1-binutils: maybe-all-stage1-gas
51150all-stage2-binutils: maybe-all-stage2-gas
51151all-stage3-binutils: maybe-all-stage3-gas
51152all-stage4-binutils: maybe-all-stage4-gas
51153all-stageprofile-binutils: maybe-all-stageprofile-gas
51154all-stagefeedback-binutils: maybe-all-stagefeedback-gas
0e65dfba
NA
51155all-binutils: maybe-all-libctf
51156all-stage1-binutils: maybe-all-stage1-libctf
51157all-stage2-binutils: maybe-all-stage2-libctf
51158all-stage3-binutils: maybe-all-stage3-libctf
51159all-stage4-binutils: maybe-all-stage4-libctf
51160all-stageprofile-binutils: maybe-all-stageprofile-libctf
51161all-stagefeedback-binutils: maybe-all-stagefeedback-libctf
ae831be5 51162install-binutils: maybe-install-opcodes
9b980aa1 51163install-strip-binutils: maybe-install-strip-opcodes
cf662e21 51164install-opcodes: maybe-install-bfd
9b980aa1 51165install-strip-opcodes: maybe-install-strip-bfd
20e95c23 51166configure-gas: maybe-configure-intl
20e95c23
DJ
51167configure-stage1-gas: maybe-configure-stage1-intl
51168configure-stage2-gas: maybe-configure-stage2-intl
51169configure-stage3-gas: maybe-configure-stage3-intl
51170configure-stage4-gas: maybe-configure-stage4-intl
51171configure-stageprofile-gas: maybe-configure-stageprofile-intl
51172configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191 51173all-gas: maybe-all-libiberty
9e6ce191
PB
51174all-stage1-gas: maybe-all-stage1-libiberty
51175all-stage2-gas: maybe-all-stage2-libiberty
51176all-stage3-gas: maybe-all-stage3-libiberty
51177all-stage4-gas: maybe-all-stage4-libiberty
51178all-stageprofile-gas: maybe-all-stageprofile-libiberty
51179all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
51180all-gas: maybe-all-opcodes
9e6ce191
PB
51181all-stage1-gas: maybe-all-stage1-opcodes
51182all-stage2-gas: maybe-all-stage2-opcodes
51183all-stage3-gas: maybe-all-stage3-opcodes
51184all-stage4-gas: maybe-all-stage4-opcodes
51185all-stageprofile-gas: maybe-all-stageprofile-opcodes
51186all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
51187all-gas: maybe-all-bfd
9e6ce191
PB
51188all-stage1-gas: maybe-all-stage1-bfd
51189all-stage2-gas: maybe-all-stage2-bfd
51190all-stage3-gas: maybe-all-stage3-bfd
51191all-stage4-gas: maybe-all-stage4-bfd
51192all-stageprofile-gas: maybe-all-stageprofile-bfd
51193all-stagefeedback-gas: maybe-all-stagefeedback-bfd
51194all-gas: maybe-all-intl
9e6ce191
PB
51195all-stage1-gas: maybe-all-stage1-intl
51196all-stage2-gas: maybe-all-stage2-intl
51197all-stage3-gas: maybe-all-stage3-intl
51198all-stage4-gas: maybe-all-stage4-intl
51199all-stageprofile-gas: maybe-all-stageprofile-intl
51200all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 51201configure-ld: maybe-configure-intl
20e95c23
DJ
51202configure-stage1-ld: maybe-configure-stage1-intl
51203configure-stage2-ld: maybe-configure-stage2-intl
51204configure-stage3-ld: maybe-configure-stage3-intl
51205configure-stage4-ld: maybe-configure-stage4-intl
51206configure-stageprofile-ld: maybe-configure-stageprofile-intl
51207configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191 51208all-ld: maybe-all-libiberty
9e6ce191
PB
51209all-stage1-ld: maybe-all-stage1-libiberty
51210all-stage2-ld: maybe-all-stage2-libiberty
51211all-stage3-ld: maybe-all-stage3-libiberty
51212all-stage4-ld: maybe-all-stage4-libiberty
51213all-stageprofile-ld: maybe-all-stageprofile-libiberty
51214all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
51215all-ld: maybe-all-bfd
9e6ce191
PB
51216all-stage1-ld: maybe-all-stage1-bfd
51217all-stage2-ld: maybe-all-stage2-bfd
51218all-stage3-ld: maybe-all-stage3-bfd
51219all-stage4-ld: maybe-all-stage4-bfd
51220all-stageprofile-ld: maybe-all-stageprofile-bfd
51221all-stagefeedback-ld: maybe-all-stagefeedback-bfd
51222all-ld: maybe-all-opcodes
9e6ce191
PB
51223all-stage1-ld: maybe-all-stage1-opcodes
51224all-stage2-ld: maybe-all-stage2-opcodes
51225all-stage3-ld: maybe-all-stage3-opcodes
51226all-stage4-ld: maybe-all-stage4-opcodes
51227all-stageprofile-ld: maybe-all-stageprofile-opcodes
51228all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a 51229all-ld: maybe-all-build-bison
72b2455a
PB
51230all-stage1-ld: maybe-all-build-bison
51231all-stage2-ld: maybe-all-build-bison
51232all-stage3-ld: maybe-all-build-bison
51233all-stage4-ld: maybe-all-build-bison
51234all-stageprofile-ld: maybe-all-build-bison
51235all-stagefeedback-ld: maybe-all-build-bison
72b2455a 51236all-ld: maybe-all-build-flex
72b2455a
PB
51237all-stage1-ld: maybe-all-build-flex
51238all-stage2-ld: maybe-all-build-flex
51239all-stage3-ld: maybe-all-build-flex
51240all-stage4-ld: maybe-all-build-flex
51241all-stageprofile-ld: maybe-all-build-flex
51242all-stagefeedback-ld: maybe-all-build-flex
9e6ce191 51243all-ld: maybe-all-intl
9e6ce191
PB
51244all-stage1-ld: maybe-all-stage1-intl
51245all-stage2-ld: maybe-all-stage2-intl
51246all-stage3-ld: maybe-all-stage3-intl
51247all-stage4-ld: maybe-all-stage4-intl
51248all-stageprofile-ld: maybe-all-stageprofile-intl
51249all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685 51250all-ld: maybe-all-gas
0140d685
L
51251all-stage1-ld: maybe-all-stage1-gas
51252all-stage2-ld: maybe-all-stage2-gas
51253all-stage3-ld: maybe-all-stage3-gas
51254all-stage4-ld: maybe-all-stage4-gas
51255all-stageprofile-ld: maybe-all-stageprofile-gas
51256all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403 51257all-ld: maybe-all-binutils
a6305403
YS
51258all-stage1-ld: maybe-all-stage1-binutils
51259all-stage2-ld: maybe-all-stage2-binutils
51260all-stage3-ld: maybe-all-stage3-binutils
51261all-stage4-ld: maybe-all-stage4-binutils
51262all-stageprofile-ld: maybe-all-stageprofile-binutils
51263all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 51264install-ld: maybe-install-gold
9b980aa1 51265install-strip-ld: maybe-install-strip-gold
93f9b408 51266configure-gold: maybe-configure-intl
93f9b408
ILT
51267configure-stage1-gold: maybe-configure-stage1-intl
51268configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 51269configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
51270configure-stage4-gold: maybe-configure-stage4-intl
51271configure-stageprofile-gold: maybe-configure-stageprofile-intl
51272configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
51273all-gold: maybe-all-libiberty
93f9b408
ILT
51274all-stage1-gold: maybe-all-stage1-libiberty
51275all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 51276all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
51277all-stage4-gold: maybe-all-stage4-libiberty
51278all-stageprofile-gold: maybe-all-stageprofile-libiberty
51279all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
51280all-gold: maybe-all-intl
93f9b408
ILT
51281all-stage1-gold: maybe-all-stage1-intl
51282all-stage2-gold: maybe-all-stage2-intl
93f9b408 51283all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
51284all-stage4-gold: maybe-all-stage4-intl
51285all-stageprofile-gold: maybe-all-stageprofile-intl
51286all-stagefeedback-gold: maybe-all-stagefeedback-intl
51287all-gold: maybe-all-bfd
93f9b408
ILT
51288all-stage1-gold: maybe-all-stage1-bfd
51289all-stage2-gold: maybe-all-stage2-bfd
93f9b408 51290all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
51291all-stage4-gold: maybe-all-stage4-bfd
51292all-stageprofile-gold: maybe-all-stageprofile-bfd
51293all-stagefeedback-gold: maybe-all-stagefeedback-bfd
51294all-gold: maybe-all-build-bison
93f9b408
ILT
51295all-stage1-gold: maybe-all-build-bison
51296all-stage2-gold: maybe-all-build-bison
93f9b408 51297all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
51298all-stage4-gold: maybe-all-build-bison
51299all-stageprofile-gold: maybe-all-build-bison
51300all-stagefeedback-gold: maybe-all-build-bison
0140d685 51301all-gold: maybe-all-gas
0140d685
L
51302all-stage1-gold: maybe-all-stage1-gas
51303all-stage2-gold: maybe-all-stage2-gas
51304all-stage3-gold: maybe-all-stage3-gas
51305all-stage4-gold: maybe-all-stage4-gas
51306all-stageprofile-gold: maybe-all-stageprofile-gas
51307all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97 51308check-gold: maybe-all-binutils
e5164e97
ILT
51309check-stage1-gold: maybe-all-stage1-binutils
51310check-stage2-gold: maybe-all-stage2-binutils
e5164e97 51311check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
51312check-stage4-gold: maybe-all-stage4-binutils
51313check-stageprofile-gold: maybe-all-stageprofile-binutils
51314check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca 51315check-gold: maybe-all-gas
700d40ca
ILT
51316check-stage1-gold: maybe-all-stage1-gas
51317check-stage2-gold: maybe-all-stage2-gas
51318check-stage3-gold: maybe-all-stage3-gas
51319check-stage4-gold: maybe-all-stage4-gas
51320check-stageprofile-gold: maybe-all-stageprofile-gas
51321check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee 51322configure-opcodes: maybe-configure-intl
7206a0ee
JJ
51323configure-stage1-opcodes: maybe-configure-stage1-intl
51324configure-stage2-opcodes: maybe-configure-stage2-intl
51325configure-stage3-opcodes: maybe-configure-stage3-intl
51326configure-stage4-opcodes: maybe-configure-stage4-intl
51327configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
51328configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191 51329all-opcodes: maybe-all-bfd
9e6ce191
PB
51330all-stage1-opcodes: maybe-all-stage1-bfd
51331all-stage2-opcodes: maybe-all-stage2-bfd
51332all-stage3-opcodes: maybe-all-stage3-bfd
51333all-stage4-opcodes: maybe-all-stage4-bfd
51334all-stageprofile-opcodes: maybe-all-stageprofile-bfd
51335all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
51336all-opcodes: maybe-all-libiberty
9e6ce191
PB
51337all-stage1-opcodes: maybe-all-stage1-libiberty
51338all-stage2-opcodes: maybe-all-stage2-libiberty
51339all-stage3-opcodes: maybe-all-stage3-libiberty
51340all-stage4-opcodes: maybe-all-stage4-libiberty
51341all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
51342all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee 51343all-opcodes: maybe-all-intl
7206a0ee
JJ
51344all-stage1-opcodes: maybe-all-stage1-intl
51345all-stage2-opcodes: maybe-all-stage2-intl
51346all-stage3-opcodes: maybe-all-stage3-intl
51347all-stage4-opcodes: maybe-all-stage4-intl
51348all-stageprofile-opcodes: maybe-all-stageprofile-intl
51349all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
51350all-dejagnu: maybe-all-tcl
51351all-dejagnu: maybe-all-expect
51352all-dejagnu: maybe-all-tk
51353configure-expect: maybe-configure-tcl
51354configure-expect: maybe-configure-tk
51355all-expect: maybe-all-tcl
51356all-expect: maybe-all-tk
51357configure-itcl: maybe-configure-tcl
51358configure-itcl: maybe-configure-tk
51359all-itcl: maybe-all-tcl
51360all-itcl: maybe-all-tk
ae831be5 51361install-itcl: maybe-install-tcl
9b980aa1 51362install-strip-itcl: maybe-install-strip-tcl
b4a77b47 51363configure-tk: maybe-configure-tcl
ae831be5 51364all-tk: maybe-all-tcl
9e6ce191
PB
51365all-sid: maybe-all-tcl
51366all-sid: maybe-all-tk
51367install-sid: maybe-install-tcl
9b980aa1 51368install-strip-sid: maybe-install-strip-tcl
9e6ce191 51369install-sid: maybe-install-tk
9b980aa1 51370install-strip-sid: maybe-install-strip-tk
9e6ce191
PB
51371all-sim: maybe-all-readline
51372all-sim: maybe-configure-gdb
72b2455a 51373all-fastjar: maybe-all-build-texinfo
0e65dfba
NA
51374all-libctf: all-libiberty
51375all-stage1-libctf: all-stage1-libiberty
51376all-stage2-libctf: all-stage2-libiberty
51377all-stage3-libctf: all-stage3-libiberty
51378all-stage4-libctf: all-stage4-libiberty
51379all-stageprofile-libctf: all-stageprofile-libiberty
51380all-stagefeedback-libctf: all-stagefeedback-libiberty
51381all-libctf: maybe-all-bfd
51382all-stage1-libctf: maybe-all-stage1-bfd
51383all-stage2-libctf: maybe-all-stage2-bfd
51384all-stage3-libctf: maybe-all-stage3-bfd
51385all-stage4-libctf: maybe-all-stage4-bfd
51386all-stageprofile-libctf: maybe-all-stageprofile-bfd
51387all-stagefeedback-libctf: maybe-all-stagefeedback-bfd
51388all-libctf: maybe-all-zlib
51389all-stage1-libctf: maybe-all-stage1-zlib
51390all-stage2-libctf: maybe-all-stage2-zlib
51391all-stage3-libctf: maybe-all-stage3-zlib
51392all-stage4-libctf: maybe-all-stage4-zlib
51393all-stageprofile-libctf: maybe-all-stageprofile-zlib
51394all-stagefeedback-libctf: maybe-all-stagefeedback-zlib
9698cf9b
NA
51395configure-libctf: maybe-all-bfd
51396configure-stage1-libctf: maybe-all-stage1-bfd
51397configure-stage2-libctf: maybe-all-stage2-bfd
51398configure-stage3-libctf: maybe-all-stage3-bfd
51399configure-stage4-libctf: maybe-all-stage4-bfd
51400configure-stageprofile-libctf: maybe-all-stageprofile-bfd
51401configure-stagefeedback-libctf: maybe-all-stagefeedback-bfd
51402configure-libctf: maybe-all-intl
51403configure-stage1-libctf: maybe-all-stage1-intl
51404configure-stage2-libctf: maybe-all-stage2-intl
51405configure-stage3-libctf: maybe-all-stage3-intl
51406configure-stage4-libctf: maybe-all-stage4-intl
51407configure-stageprofile-libctf: maybe-all-stageprofile-intl
51408configure-stagefeedback-libctf: maybe-all-stagefeedback-intl
51409configure-libctf: maybe-all-zlib
51410configure-stage1-libctf: maybe-all-stage1-zlib
51411configure-stage2-libctf: maybe-all-stage2-zlib
51412configure-stage3-libctf: maybe-all-stage3-zlib
51413configure-stage4-libctf: maybe-all-stage4-zlib
51414configure-stageprofile-libctf: maybe-all-stageprofile-zlib
51415configure-stagefeedback-libctf: maybe-all-stagefeedback-zlib
51416configure-libctf: maybe-all-libiconv
51417configure-stage1-libctf: maybe-all-stage1-libiconv
51418configure-stage2-libctf: maybe-all-stage2-libiconv
51419configure-stage3-libctf: maybe-all-stage3-libiconv
51420configure-stage4-libctf: maybe-all-stage4-libiconv
51421configure-stageprofile-libctf: maybe-all-stageprofile-libiconv
51422configure-stagefeedback-libctf: maybe-all-stagefeedback-libiconv
72b2455a 51423all-bison: maybe-all-build-texinfo
72b2455a 51424all-flex: maybe-all-build-bison
9e6ce191 51425all-flex: maybe-all-m4
72b2455a 51426all-flex: maybe-all-build-texinfo
72b2455a 51427all-m4: maybe-all-build-texinfo
b4a77b47 51428configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 51429all-target-fastjar: maybe-all-target-zlib
e552509b 51430configure-target-libgo: maybe-configure-target-libffi
8e71395b 51431all-target-libgo: maybe-all-target-libbacktrace
e552509b 51432all-target-libgo: maybe-all-target-libffi
9417cd2f 51433all-target-libgo: maybe-all-target-libatomic
cff87f51 51434configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
51435configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
51436configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
51437configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
51438configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
51439configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
51440configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
5286fdef 51441configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
51442configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
51443configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
51444configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
51445configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
51446configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
51447configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135 51448configure-target-libvtv: maybe-all-target-libstdc++-v3
95e43135
JBG
51449configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
51450configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
51451configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
51452configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
51453configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
51454configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0 51455all-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
51456all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
51457all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
51458all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
51459all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
51460all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
51461all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
9417cd2f
JBG
51462install-target-libgo: maybe-install-target-libatomic
51463install-target-libgfortran: maybe-install-target-libquadmath
51464install-target-libgfortran: maybe-install-target-libgcc
3dae1673 51465install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 51466install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
51467install-target-libvtv: maybe-install-target-libstdc++-v3
51468install-target-libvtv: maybe-install-target-libgcc
e3f56a99
NC
51469install-target-libcilkrts: maybe-install-target-libstdc++-v3
51470install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
51471install-target-liboffloadmic: maybe-install-target-libstdc++-v3
51472install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
51473install-target-libitm: maybe-install-target-libgcc
51474install-target-libobjc: maybe-install-target-libgcc
51475install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 51476all-target-libgloss: maybe-all-target-newlib
9e6ce191 51477all-target-winsup: maybe-all-target-libtermcap
e552509b 51478configure-target-libgfortran: maybe-all-target-libquadmath
68996839 51479configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
51480
51481
4119873a
AO
51482@if gcc-bootstrap
51483configure-gnattools: stage_last
51484configure-libcc1: stage_last
51485configure-utils: stage_last
51486configure-gdb: stage_last
51487configure-gprof: stage_last
51488configure-sid: stage_last
51489configure-sim: stage_last
51490configure-fastjar: stage_last
51491configure-bison: stage_last
51492configure-flex: stage_last
51493configure-m4: stage_last
51494@endif gcc-bootstrap
51495
51496@unless gcc-bootstrap
51497all-gnattools: maybe-all-target-libstdc++-v3
51498configure-libcc1: maybe-configure-gcc
51499all-libcc1: maybe-all-gcc
51500all-utils: maybe-all-libiberty
51501configure-gdb: maybe-all-intl
51502configure-gdb: maybe-all-bfd
51503configure-gdb: maybe-all-libiconv
51504all-gdb: maybe-all-libiberty
51505all-gdb: maybe-all-libiconv
51506all-gdb: maybe-all-opcodes
51507all-gdb: maybe-all-libdecnumber
51508configure-gprof: maybe-configure-intl
51509all-gprof: maybe-all-libiberty
51510all-gprof: maybe-all-bfd
51511all-gprof: maybe-all-opcodes
51512all-gprof: maybe-all-intl
51513all-gprof: maybe-all-gas
51514all-sid: maybe-all-libiberty
51515all-sid: maybe-all-bfd
51516all-sid: maybe-all-opcodes
51517configure-sim: maybe-configure-intl
51518all-sim: maybe-all-intl
51519all-sim: maybe-all-libiberty
51520all-sim: maybe-all-bfd
51521all-sim: maybe-all-opcodes
51522all-fastjar: maybe-all-zlib
51523all-fastjar: maybe-all-libiberty
51524all-bison: maybe-all-intl
51525all-flex: maybe-all-intl
51526all-m4: maybe-all-intl
51527configure-target-libgo: maybe-all-target-libstdc++-v3
51528configure-target-liboffloadmic: maybe-configure-target-libgomp
51529all-target-liboffloadmic: maybe-all-target-libgomp
51530configure-target-newlib: maybe-all-binutils
51531configure-target-newlib: maybe-all-ld
51532@endunless gcc-bootstrap
51533
6aa8ef82
DJ
51534# Dependencies for target modules on other target modules are
51535# described by lang_env_dependencies; the defaults apply to anything
51536# not mentioned there.
51537
51538
51539@if gcc-bootstrap
e8a5fa9c
RW
51540configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
51541configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
51542configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
51543configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
51544configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
51545configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
51546configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
51547configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
51548configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
51549configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
51550configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
51551configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
51552configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
51553configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
51554configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
51555configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
51556configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
51557configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
51558configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
51559configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
51560configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
51561configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
51562configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
51563configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
51564configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
51565configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
51566configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
51567configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
51568configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
51569configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
51570@endif gcc-bootstrap
51571
51572@if gcc-no-bootstrap
51573configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 51574configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 51575configure-target-libmpx: maybe-all-target-libgcc
95e43135 51576configure-target-libvtv: maybe-all-target-libgcc
e3f56a99 51577configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 51578configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 51579configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 51580configure-target-newlib: maybe-all-target-libgcc
2bf680c4 51581configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 51582configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
51583configure-target-libgfortran: maybe-all-target-libgcc
51584configure-target-libobjc: maybe-all-target-libgcc
e552509b 51585configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
51586configure-target-libtermcap: maybe-all-target-libgcc
51587configure-target-winsup: maybe-all-target-libgcc
51588configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82 51589configure-target-libffi: maybe-all-target-libgcc
6aa8ef82 51590configure-target-zlib: maybe-all-target-libgcc
6aa8ef82
DJ
51591configure-target-rda: maybe-all-target-libgcc
51592configure-target-libada: maybe-all-target-libgcc
51593configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
51594configure-target-libitm: maybe-all-target-libgcc
51595configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
51596@endif gcc-no-bootstrap
51597
51598
51599configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
51600
5286fdef
L
51601configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
51602
1b6c0831
L
51603configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
51604
95e43135
JBG
51605configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
51606
e3f56a99
NC
51607configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
51608configure-target-libcilkrts: maybe-all-target-libstdc++-v3
51609
1b6c0831
L
51610configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
51611configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
51612
6aa8ef82
DJ
51613configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
51614
51615
51616
2bf680c4
ILT
51617configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
51618
e552509b
ILT
51619configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
51620
6aa8ef82
DJ
51621configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
51622
51623configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
51624
e552509b
ILT
51625configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
51626
6aa8ef82
DJ
51627configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
51628
51629configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
51630
51631
6aa8ef82 51632configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 51633configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82 51634
6aa8ef82
DJ
51635configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
51636
6aa8ef82
DJ
51637configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
51638
51639configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
51640
51641configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
51642
7ec59b9e
L
51643configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
51644configure-target-libitm: maybe-all-target-libstdc++-v3
51645
51646configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
51647
6aa8ef82 51648
907be67c 51649CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 51650GDB_TK = @GDB_TK@
907be67c
DJ
51651INSTALL_GDB_TK = @INSTALL_GDB_TK@
51652configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 51653all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 51654install-gdb: $(INSTALL_GDB_TK)
907a7241 51655
a2cc058a
NN
51656# Serialization dependencies. Host configures don't work well in parallel to
51657# each other, due to contention over config.cache. Target configures and
51658# build configures are similar.
51659@serialization_dependencies@
51660
15723a45
NN
51661# --------------------------------
51662# Regenerating top level configury
51663# --------------------------------
252b5132 51664
14a2a2f1 51665# Rebuilding Makefile.in, using autogen.
43be203f 51666AUTOGEN = autogen
6b784d9f 51667$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 51668 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 51669
a0da8069 51670# Rebuilding Makefile.
43be203f
AO
51671Makefile: $(srcdir)/Makefile.in config.status
51672 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
51673
479759c8 51674config.status: configure
10ecffb9 51675 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 51676
a0da8069 51677# Rebuilding configure.
43be203f 51678AUTOCONF = autoconf
da888c87 51679$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
0597bdc4
AM
51680 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
51681 $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
51682 $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
51683 $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
43be203f 51684 cd $(srcdir) && $(AUTOCONF)
252b5132 51685
3728fade
NN
51686# ------------------------------
51687# Special directives to GNU Make
51688# ------------------------------
51689
3728fade
NN
51690# Don't pass command-line variables to submakes.
51691.NOEXPORT:
51692MAKEOVERRIDES=
51693
252b5132 51694# end of Makefile.in