gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / Makefile.in
CommitLineData
405ea7a0
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
252b5132
RH
3#
4# Makefile for directory with subdirs to build.
5cec67bf 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
52cf9762 6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
e3f56a99 7# 2011, 2012, 2013, 2014, 2015, 2016, 2017
1b05fbbd 8# Free Software Foundation
252b5132
RH
9#
10# This file is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
e8a5fa9c 12# the Free Software Foundation; either version 3 of the License, or
252b5132
RH
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
e8a5fa9c
RW
21# along with this program; see the file COPYING3. If not see
22# <http://www.gnu.org/licenses/>.
252b5132
RH
23#
24
0bb6ea20
HPN
25# First, test for a proper version of make, but only where one is required.
26
27@if gcc
28ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty.
29$(error GNU make version 3.80 or newer is required.)
30endif
31@endif gcc
32
50212802
NN
33# -------------------------------
34# Standard Autoconf-set variables
35# -------------------------------
583d52d7 36VPATH=@srcdir@
583d52d7 37
c6b750e1 38build_alias=@build_noncanonical@
4b900473
PB
39build_vendor=@build_vendor@
40build_os=@build_os@
7f121bbf 41build=@build@
c6b750e1 42host_alias=@host_noncanonical@
4b900473
PB
43host_vendor=@host_vendor@
44host_os=@host_os@
7f121bbf 45host=@host@
c6b750e1 46target_alias=@target_noncanonical@
4b900473
PB
47target_vendor=@target_vendor@
48target_os=@target_os@
7f121bbf 49target=@target@
583d52d7 50
50212802 51program_transform_name = @program_transform_name@
403d9505
NN
52
53prefix = @prefix@
54exec_prefix = @exec_prefix@
55
50212802
NN
56srcdir = @srcdir@
57
403d9505
NN
58bindir = @bindir@
59sbindir = @sbindir@
60libexecdir = @libexecdir@
61datadir = @datadir@
62sysconfdir = @sysconfdir@
63sharedstatedir = @sharedstatedir@
64localstatedir = @localstatedir@
65libdir = @libdir@
66includedir = @includedir@
67oldincludedir = @oldincludedir@
68infodir = @infodir@
108a6f8e
CD
69datarootdir = @datarootdir@
70docdir = @docdir@
a3ca38d2 71pdfdir = @pdfdir@
108a6f8e 72htmldir = @htmldir@
403d9505 73mandir = @mandir@
252b5132
RH
74man1dir = $(mandir)/man1
75man2dir = $(mandir)/man2
76man3dir = $(mandir)/man3
77man4dir = $(mandir)/man4
78man5dir = $(mandir)/man5
79man6dir = $(mandir)/man6
80man7dir = $(mandir)/man7
81man8dir = $(mandir)/man8
82man9dir = $(mandir)/man9
d5de0a84 83
e5c3f801
NN
84INSTALL = @INSTALL@
85INSTALL_PROGRAM = @INSTALL_PROGRAM@
86INSTALL_SCRIPT = @INSTALL_SCRIPT@
87INSTALL_DATA = @INSTALL_DATA@
656fdd47
PB
88LN = @LN@
89LN_S = @LN_S@
77d7106f
AM
90MAINT = @MAINT@
91MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
92MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
252b5132 93
50212802
NN
94# -------------------------------------------------
95# Miscellaneous non-standard autoconf-set variables
96# -------------------------------------------------
252b5132 97
50212802
NN
98# The gcc driver likes to know the arguments it was configured with.
99TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
252b5132 100
50212802
NN
101tooldir = @tooldir@
102build_tooldir = @build_tooldir@
252b5132 103
50212802
NN
104# This is the name of the environment variable used for the path to
105# the libraries.
106RPATH_ENVVAR = @RPATH_ENVVAR@
252b5132 107
3bbd2f8f
AL
108# On targets where RPATH_ENVVAR is PATH, a subdirectory of the GCC build path
109# is used instead of the directory itself to avoid including built
110# executables in PATH.
111GCC_SHLIB_SUBDIR = @GCC_SHLIB_SUBDIR@
112
50212802
NN
113# Build programs are put under this directory.
114BUILD_SUBDIR = @build_subdir@
115# This is set by the configure script to the arguments to use when configuring
116# directories built for the build system.
a7254363 117BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
6a9cf61e 118
e8a5fa9c
RW
119# Linker flags to use on the host, for stage1 or when not
120# bootstrapping.
121STAGE1_LDFLAGS = @stage1_ldflags@
122
123# Libraries to use on the host, for stage1 or when not bootstrapping.
124STAGE1_LIBS = @stage1_libs@
125
126# Linker flags to use for stage2 and later.
127POSTSTAGE1_LDFLAGS = @poststage1_ldflags@
128
129# Libraries to use for stage2 and later.
130POSTSTAGE1_LIBS = @poststage1_libs@
131
6a9cf61e
PB
132# This is the list of variables to export in the environment when
133# configuring any subdirectory. It must also be exported whenever
134# recursing into a build directory in case that directory's Makefile
135# re-runs configure.
136BASE_EXPORTS = \
137 FLEX="$(FLEX)"; export FLEX; \
138 LEX="$(LEX)"; export LEX; \
139 BISON="$(BISON)"; export BISON; \
140 YACC="$(YACC)"; export YACC; \
141 M4="$(M4)"; export M4; \
8e957354
PB
142 SED="$(SED)"; export SED; \
143 AWK="$(AWK)"; export AWK; \
6a9cf61e
PB
144 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
145
378fce5b 146# This is the list of variables to export in the environment when
6a9cf61e 147# configuring subdirectories for the build system.
378fce5b 148BUILD_EXPORTS = \
6a9cf61e 149 $(BASE_EXPORTS) \
378fce5b
DD
150 AR="$(AR_FOR_BUILD)"; export AR; \
151 AS="$(AS_FOR_BUILD)"; export AS; \
152 CC="$(CC_FOR_BUILD)"; export CC; \
153 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
154 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
155 CXX="$(CXX_FOR_BUILD)"; export CXX; \
156 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
378fce5b 157 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
e552509b
ILT
158 GOC="$(GOC_FOR_BUILD)"; export GOC; \
159 GOCFLAGS="$(GOCFLAGS_FOR_BUILD)"; export GOCFLAGS; \
378fce5b
DD
160 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
161 LD="$(LD_FOR_BUILD)"; export LD; \
162 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
163 NM="$(NM_FOR_BUILD)"; export NM; \
164 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
0c24b341
NC
165 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
166 WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
50212802 167
6641ce42 168# These variables must be set on the make command line for directories
2440009d 169# built for the build system to override those in BASE_FLAGS_TO_PASS.
6641ce42
JM
170EXTRA_BUILD_FLAGS = \
171 CFLAGS="$(CFLAGS_FOR_BUILD)" \
172 LDFLAGS="$(LDFLAGS_FOR_BUILD)"
173
50212802
NN
174# This is the list of directories to built for the host system.
175SUBDIRS = @configdirs@
911e63d0 176TARGET_CONFIGDIRS = @target_configdirs@
50212802
NN
177# This is set by the configure script to the arguments to use when configuring
178# directories built for the host system.
179HOST_CONFIGARGS = @host_configargs@
b00612cc
PB
180# Host programs are put under this directory, which is . except if building
181# with srcdir=..
182HOST_SUBDIR = @host_subdir@
378fce5b 183# This is the list of variables to export in the environment when
be01d343
PB
184# configuring subdirectories for the host system. We need to pass
185# some to the GCC configure because of its hybrid host/target nature.
378fce5b 186HOST_EXPORTS = \
6a9cf61e 187 $(BASE_EXPORTS) \
378fce5b 188 CC="$(CC)"; export CC; \
da888c87 189 ADA_CFLAGS="$(ADA_CFLAGS)"; export ADA_CFLAGS; \
378fce5b
DD
190 CFLAGS="$(CFLAGS)"; export CFLAGS; \
191 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
192 CXX="$(CXX)"; export CXX; \
193 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1b05fbbd 194 GFORTRAN="$(GFORTRAN)"; export GFORTRAN; \
9b980aa1 195 GOC="$(GOC)"; export GOC; \
378fce5b
DD
196 AR="$(AR)"; export AR; \
197 AS="$(AS)"; export AS; \
198 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
199 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
200 LD="$(LD)"; export LD; \
e8a5fa9c 201 LDFLAGS="$(STAGE1_LDFLAGS) $(LDFLAGS)"; export LDFLAGS; \
378fce5b
DD
202 NM="$(NM)"; export NM; \
203 RANLIB="$(RANLIB)"; export RANLIB; \
204 WINDRES="$(WINDRES)"; export WINDRES; \
0c24b341 205 WINDMC="$(WINDMC)"; export WINDMC; \
378fce5b 206 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
95b6a1f2 207 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
b121d7d4 208 READELF="$(READELF)"; export READELF; \
be01d343
PB
209 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
210 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
211 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
212 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
213 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
214 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
6b91c541 215 OBJCOPY_FOR_TARGET="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY_FOR_TARGET; \
be01d343 216 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
b121d7d4 217 READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
378fce5b 218 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
e8a5fa9c 219 HOST_LIBS="$(STAGE1_LIBS)"; export HOST_LIBS; \
378fce5b 220 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
315b3b02 221 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1b6c0831 222 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
7ec59b9e 223 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
e3f56a99 224 ISLVER="$(HOST_ISLVER)"; export ISLVER; \
22121df0
L
225 LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
226 LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
4849dfd8 227 XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \
f70224b5
PB
228@if gcc-bootstrap
229 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
230@endif gcc-bootstrap
e90269c8 231 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
378fce5b 232
1f53ca9a
AO
233POSTSTAGE1_CXX_EXPORT = \
234 CXX='$(CXX)'; export CXX; \
235 CXX_FOR_BUILD='$(CXX_FOR_BUILD)'; export CXX_FOR_BUILD;
236@if target-libstdc++-v3-bootstrap
237# Override the above if we're bootstrapping C++.
238POSTSTAGE1_CXX_EXPORT = \
d2489204 239 CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xg++$(exeext) \
1f53ca9a 240 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \
1d14850f 241 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
ffdd6afc 242 -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
abca8d87 243 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \
244 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \
245 `if $(LEAN); then echo ' -isystem '; else echo ' -I'; fi`$$s/libstdc++-v3/libsupc++ \
ffdd6afc
ILT
246 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
247 -L$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs"; \
248 export CXX; \
1f53ca9a
AO
249 CXX_FOR_BUILD="$$CXX"; export CXX_FOR_BUILD;
250@endif target-libstdc++-v3-bootstrap
251
378fce5b 252# Similar, for later GCC stages.
d545f33b 253POSTSTAGE1_HOST_EXPORTS = \
7ffa0b57 254 $(HOST_EXPORTS) \
b00612cc 255 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
1b05fbbd
AO
256 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ \
257 $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
258 CC_FOR_BUILD="$$CC"; export CC_FOR_BUILD; \
1f53ca9a 259 $(POSTSTAGE1_CXX_EXPORT) \
1b6c0831 260 $(LTO_EXPORTS) \
e8a5fa9c
RW
261 GNATBIND="$$r/$(HOST_SUBDIR)/prev-gcc/gnatbind"; export GNATBIND; \
262 LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \
263 HOST_LIBS="$(POSTSTAGE1_LIBS)"; export HOST_LIBS;
50212802 264
50212802
NN
265# Target libraries are put under this directory:
266TARGET_SUBDIR = @target_subdir@
267# This is set by the configure script to the arguments to use when configuring
268# directories built for the target.
a7254363 269TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
378fce5b 270# This is the list of variables to export in the environment when
f2b2dd91 271# configuring subdirectories for the target system.
378fce5b 272BASE_TARGET_EXPORTS = \
6a9cf61e 273 $(BASE_EXPORTS) \
378fce5b 274 AR="$(AR_FOR_TARGET)"; export AR; \
be01d343 275 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1b05fbbd
AO
276 CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
277 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
378fce5b 278 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
06bcb89d 279 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1b05fbbd 280 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1b05fbbd 281 GFORTRAN="$(GFORTRAN_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GFORTRAN; \
e552509b 282 GOC="$(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export GOC; \
378fce5b 283 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
be01d343 284 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
378fce5b 285 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7e0f7140 286 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
be01d343 287 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
5ae72758 288 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
6b91c541 289 OBJCOPY="$(OBJCOPY_FOR_TARGET)"; export OBJCOPY; \
378fce5b 290 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
b121d7d4 291 READELF="$(READELF_FOR_TARGET)"; export READELF; \
7e0f7140 292 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
315b3b02 293 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0c24b341 294 WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
f2b2dd91
RW
295@if gcc-bootstrap
296 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
297@endif gcc-bootstrap
911e63d0
JR
298 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
299 TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;
378fce5b
DD
300
301RAW_CXX_TARGET_EXPORTS = \
302 $(BASE_TARGET_EXPORTS) \
303 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
1b05fbbd 304 CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
378fce5b
DD
305
306NORMAL_TARGET_EXPORTS = \
307 $(BASE_TARGET_EXPORTS) \
1b05fbbd 308 CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
50212802 309
4b1cb4fe
DD
310# Where to find GMP
311HOST_GMPLIBS = @gmplibs@
312HOST_GMPINC = @gmpinc@
313
4849dfd8 314# Where to find isl
1b6c0831 315HOST_ISLLIBS = @isllibs@
7ec59b9e 316HOST_ISLINC = @islinc@
e3f56a99 317HOST_ISLVER = @islver@
e28c595f 318
700d40ca
ILT
319# Where to find libelf
320HOST_LIBELFLIBS = @libelflibs@
321HOST_LIBELFINC = @libelfinc@
322
50212802
NN
323# ----------------------------------------------
324# Programs producing files for the BUILD machine
325# ----------------------------------------------
326
f6c1938b 327SHELL = @SHELL@
50212802
NN
328
329# pwd command to use. Allow user to override default by setting PWDCMD in
330# the environment to account for automounters. The make variable must not
331# be called PWDCMD, otherwise the value set here is passed to make
332# subprocesses and overrides the setting from the user's environment.
b40e3958
L
333# Don't use PWD since it is a common shell environment variable and we
334# don't want to corrupt it.
335PWD_COMMAND = $${PWDCMD-pwd}
50212802
NN
336
337# compilers to use to create programs which must be run in the build
338# environment.
b5714970
PB
339AR_FOR_BUILD = @AR_FOR_BUILD@
340AS_FOR_BUILD = @AS_FOR_BUILD@
50212802 341CC_FOR_BUILD = @CC_FOR_BUILD@
5fbad20a 342CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
b5714970
PB
343CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
344CXX_FOR_BUILD = @CXX_FOR_BUILD@
345DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
b5714970 346GFORTRAN_FOR_BUILD = @GFORTRAN_FOR_BUILD@
9b980aa1 347GOC_FOR_BUILD = @GOC_FOR_BUILD@
b5714970
PB
348LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
349LD_FOR_BUILD = @LD_FOR_BUILD@
350NM_FOR_BUILD = @NM_FOR_BUILD@
351RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
352WINDMC_FOR_BUILD = @WINDMC_FOR_BUILD@
353WINDRES_FOR_BUILD = @WINDRES_FOR_BUILD@
50212802
NN
354
355# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
356# here so that they can be overridden by Makefile fragments.
50212802
NN
357BUILD_PREFIX = @BUILD_PREFIX@
358BUILD_PREFIX_1 = @BUILD_PREFIX_1@
252b5132 359
0df3d27f
PB
360# Flags to pass to stage2 and later makes. They are defined
361# here so that they can be overridden by Makefile fragments.
362BOOT_CFLAGS= -g -O2
f6d183c0 363BOOT_LDFLAGS=
d7b9dae9 364BOOT_ADAFLAGS= -gnatpg
0df3d27f 365
8e957354
PB
366AWK = @AWK@
367SED = @SED@
be01d343
PB
368BISON = @BISON@
369YACC = @YACC@
370FLEX = @FLEX@
371LEX = @LEX@
372M4 = @M4@
373MAKEINFO = @MAKEINFO@
374EXPECT = @EXPECT@
375RUNTEST = @RUNTEST@
252b5132 376
e3f56a99 377AUTO_PROFILE = gcc-auto-profile -c 1000000
05a13254 378
252b5132
RH
379# This just becomes part of the MAKEINFO definition passed down to
380# sub-makes. It lets flags be given on the command line while still
381# using the makeinfo from the object tree.
62a3fc85
DD
382# (Default to avoid splitting info files by setting the threshold high.)
383MAKEINFOFLAGS = --split-size=5000000
252b5132 384
50212802
NN
385# ---------------------------------------------
386# Programs producing files for the HOST machine
387# ---------------------------------------------
252b5132 388
50212802 389AS = @AS@
50ad1254 390AR = @AR@ @AR_PLUGIN_OPTION@
50212802 391AR_FLAGS = rc
50212802 392CC = @CC@
50212802 393CXX = @CXX@
50212802 394DLLTOOL = @DLLTOOL@
50212802 395LD = @LD@
be01d343
PB
396LIPO = @LIPO@
397NM = @NM@
80911fe1 398OBJDUMP = @OBJDUMP@
50ad1254 399RANLIB = @RANLIB@ @RANLIB_PLUGIN_OPTION@
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
af019bfd
L
415# Pass additional PGO and LTO compiler options to the PGO build.
416BUILD_CFLAGS = $(PGO_BUILD_CFLAGS) $(PGO_BUILD_LTO_CFLAGS)
417override CFLAGS += $(BUILD_CFLAGS)
418override CXXFLAGS += $(BUILD_CFLAGS)
419
420# Additional PGO and LTO compiler options to generate profiling data
421# for the PGO build.
422PGO_BUILD_GEN_FLAGS_TO_PASS = \
423 PGO_BUILD_CFLAGS="@PGO_BUILD_GEN_CFLAGS@" \
424 PGO_BUILD_LTO_CFLAGS="@PGO_BUILD_LTO_CFLAGS@"
425
426# NB: Filter out any compiler options which may fail PGO training runs.
427PGO_BUILD_TRAINING_CFLAGS:= \
428 $(filter-out -Werror=%,$(CFLAGS))
429PGO_BUILD_TRAINING_CXXFLAGS:=\
430 $(filter-out -Werror=%,$(CXXFLAGS))
431PGO_BUILD_TRAINING_CFLAGS:= \
432 $(filter-out -Wall,$(PGO_BUILD_TRAINING_CFLAGS))
433PGO_BUILD_TRAINING_CXXFLAGS:= \
434 $(filter-out -Wall,$(PGO_BUILD_TRAINING_CXXFLAGS))
435PGO_BUILD_TRAINING_CFLAGS:= \
436 $(filter-out -specs=%,$(PGO_BUILD_TRAINING_CFLAGS))
437PGO_BUILD_TRAINING_CXXFLAGS:= \
438 $(filter-out -specs=%,$(PGO_BUILD_TRAINING_CXXFLAGS))
439PGO_BUILD_TRAINING_FLAGS_TO_PASS = \
440 PGO_BUILD_TRAINING=yes \
441 CFLAGS_FOR_TARGET="$(PGO_BUILD_TRAINING_CFLAGS)" \
442 CXXFLAGS_FOR_TARGET="$(PGO_BUILD_TRAINING_CXXFLAGS)"
443
444# Ignore "make check" errors in PGO training runs.
445PGO_BUILD_TRAINING_MFLAGS = -i
446
447# Additional PGO and LTO compiler options to use profiling data for the
448# PGO build.
449PGO_BUILD_USE_FLAGS_TO_PASS = \
450 PGO_BUILD_CFLAGS="@PGO_BUILD_USE_CFLAGS@" \
451 PGO_BUILD_LTO_CFLAGS="@PGO_BUILD_LTO_CFLAGS@"
452
453# PGO training targets for the PGO build. FIXME: Add gold tests to
454# training.
455PGO-TRAINING-TARGETS = binutils gas gdb ld sim
456PGO_BUILD_TRAINING = $(addprefix maybe-check-,$(PGO-TRAINING-TARGETS))
457
05a13254
NC
458CREATE_GCOV = create_gcov
459
1b05fbbd
AO
460TFLAGS =
461
462# Defaults for all stages; some are overridden below.
463
464STAGE_CFLAGS = $(BOOT_CFLAGS)
465STAGE_TFLAGS = $(TFLAGS)
466STAGE_CONFIGURE_FLAGS=@stage2_werror_flag@
467
468
469# Defaults for stage 1; some are overridden below.
470STAGE1_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
471STAGE1_CXXFLAGS = $(CXXFLAGS)
472@if target-libstdc++-v3-bootstrap
473# Override the above if we're bootstrapping C++.
474STAGE1_CXXFLAGS = $(STAGE1_CFLAGS)
475@endif target-libstdc++-v3-bootstrap
1b05fbbd 476STAGE1_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 477STAGE1_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
478
479# Defaults for stage 2; some are overridden below.
480STAGE2_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
481STAGE2_CXXFLAGS = $(CXXFLAGS)
482@if target-libstdc++-v3-bootstrap
483# Override the above if we're bootstrapping C++.
484STAGE2_CXXFLAGS = $(STAGE2_CFLAGS)
485@endif target-libstdc++-v3-bootstrap
1b05fbbd 486STAGE2_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 487STAGE2_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
488
489# Defaults for stage 3; some are overridden below.
490STAGE3_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
491STAGE3_CXXFLAGS = $(CXXFLAGS)
492@if target-libstdc++-v3-bootstrap
493# Override the above if we're bootstrapping C++.
494STAGE3_CXXFLAGS = $(STAGE3_CFLAGS)
495@endif target-libstdc++-v3-bootstrap
1b05fbbd 496STAGE3_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 497STAGE3_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
498
499# Defaults for stage 4; some are overridden below.
500STAGE4_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
501STAGE4_CXXFLAGS = $(CXXFLAGS)
502@if target-libstdc++-v3-bootstrap
503# Override the above if we're bootstrapping C++.
504STAGE4_CXXFLAGS = $(STAGE4_CFLAGS)
505@endif target-libstdc++-v3-bootstrap
1b05fbbd 506STAGE4_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 507STAGE4_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
508
509# Defaults for stage profile; some are overridden below.
510STAGEprofile_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
511STAGEprofile_CXXFLAGS = $(CXXFLAGS)
512@if target-libstdc++-v3-bootstrap
513# Override the above if we're bootstrapping C++.
514STAGEprofile_CXXFLAGS = $(STAGEprofile_CFLAGS)
515@endif target-libstdc++-v3-bootstrap
1b05fbbd 516STAGEprofile_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 517STAGEprofile_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
518
519# Defaults for stage feedback; some are overridden below.
520STAGEfeedback_CFLAGS = $(STAGE_CFLAGS)
1f53ca9a
AO
521STAGEfeedback_CXXFLAGS = $(CXXFLAGS)
522@if target-libstdc++-v3-bootstrap
523# Override the above if we're bootstrapping C++.
524STAGEfeedback_CXXFLAGS = $(STAGEfeedback_CFLAGS)
525@endif target-libstdc++-v3-bootstrap
1b05fbbd 526STAGEfeedback_TFLAGS = $(STAGE_TFLAGS)
7ec59b9e 527STAGEfeedback_CONFIGURE_FLAGS = $(STAGE_CONFIGURE_FLAGS)
1b05fbbd
AO
528
529
22121df0
L
530# By default, C and C++ are the only stage1 languages, because they are the
531# only ones we require to build with the bootstrap compiler, and also the
532# only ones useful for building stage2.
8a0d8a5c 533
1b05fbbd 534STAGE1_CFLAGS = @stage1_cflags@
1f53ca9a
AO
535STAGE1_CHECKING = @stage1_checking@
536STAGE1_LANGUAGES = @stage1_languages@
1b05fbbd
AO
537# * We force-disable intermodule optimizations, even if
538# --enable-intermodule was passed, since the installed compiler
539# probably can't handle them. Luckily, autoconf always respects
540# the last argument when conflicting --enable arguments are passed.
541# * Likewise, we force-disable coverage flags, since the installed
542# compiler probably has never heard of them.
880b18d1 543# * We also disable -Wformat, since older GCCs don't understand newer %s.
1b05fbbd 544STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
880b18d1 545 --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
546 --disable-build-format-warnings
8a0d8a5c 547
1b05fbbd
AO
548STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
549STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
8520c408 550
e3f56a99
NC
551STAGEfeedback_CFLAGS = $(STAGE3_CFLAGS) -fprofile-use
552STAGEfeedback_TFLAGS = $(STAGE3_TFLAGS)
7f6ef0c0 553
05a13254
NC
554STAGEautoprofile_CFLAGS = $(STAGE2_CFLAGS) -g
555STAGEautoprofile_TFLAGS = $(STAGE2_TFLAGS)
556
557STAGEautofeedback_CFLAGS = $(STAGE3_CFLAGS)
558STAGEautofeedback_TFLAGS = $(STAGE3_TFLAGS)
559
8520c408
AO
560do-compare = @do_compare@
561do-compare3 = $(do-compare)
8520c408 562
50212802
NN
563# -----------------------------------------------
564# Programs producing files for the TARGET machine
565# -----------------------------------------------
0da52010 566
50212802 567AR_FOR_TARGET=@AR_FOR_TARGET@
852e5f18 568AS_FOR_TARGET=@AS_FOR_TARGET@
1b05fbbd 569CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@
55db4b87 570
50212802
NN
571# If GCC_FOR_TARGET is not overriden on the command line, then this
572# variable is passed down to the gcc Makefile, where it is used to
573# build libgcc2.a. We define it here so that it can itself be
574# overridden on the command line.
1b05fbbd
AO
575GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@
576CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@
577RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@
1b05fbbd 578GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@
e552509b 579GOC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GOC_FOR_TARGET@
852e5f18 580DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
50212802 581LD_FOR_TARGET=@LD_FOR_TARGET@
50212802 582
7e0f7140 583LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
50212802 584NM_FOR_TARGET=@NM_FOR_TARGET@
5ae72758 585OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
6b91c541 586OBJCOPY_FOR_TARGET=@OBJCOPY_FOR_TARGET@
852e5f18 587RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
b121d7d4 588READELF_FOR_TARGET=@READELF_FOR_TARGET@
7e0f7140 589STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
50212802 590WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
0c24b341 591WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
252b5132 592
be01d343
PB
593COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
594COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
595COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
596
7f6ef0c0
PB
597CFLAGS_FOR_TARGET = @CFLAGS_FOR_TARGET@
598CXXFLAGS_FOR_TARGET = @CXXFLAGS_FOR_TARGET@
7f6ef0c0 599
be01d343
PB
600LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
601LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
91c1f14c 602LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
e552509b 603GOCFLAGS_FOR_TARGET = -O2 -g
50212802 604
1b05fbbd
AO
605FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
606SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
607DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@
608
609XGCC_FLAGS_FOR_TARGET = $(FLAGS_FOR_TARGET) $(SYSROOT_CFLAGS_FOR_TARGET) $(DEBUG_PREFIX_CFLAGS_FOR_TARGET)
610
50212802
NN
611# ------------------------------------
612# Miscellaneous targets and flag lists
613# ------------------------------------
614
252b5132
RH
615# The first rule in the file had better be this one. Don't put any above it.
616# This lives here to allow makefile fragments to contain dependencies.
f70224b5 617all:
252b5132 618
252b5132 619#### host and target specific makefile fragments come in here.
a0da8069
NN
620@target_makefile_frag@
621@alphaieee_frag@
622@ospace_frag@
623@host_makefile_frag@
252b5132
RH
624###
625
e90269c8 626# This is the list of directories that may be needed in RPATH_ENVVAR
18a8530e 627# so that programs built for the target machine work.
e3f56a99 628TARGET_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
629
630@if target-libstdc++-v3
18a8530e 631TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
e90269c8
PB
632@endif target-libstdc++-v3
633
5286fdef
L
634@if target-libsanitizer
635TARGET_LIB_PATH_libsanitizer = $$r/$(TARGET_SUBDIR)/libsanitizer/.libs:
636@endif target-libsanitizer
637
1b6c0831
L
638@if target-libmpx
639TARGET_LIB_PATH_libmpx = $$r/$(TARGET_SUBDIR)/libmpx/.libs:
640@endif target-libmpx
641
95e43135
JBG
642@if target-libvtv
643TARGET_LIB_PATH_libvtv = $$r/$(TARGET_SUBDIR)/libvtv/.libs:
644@endif target-libvtv
645
e3f56a99
NC
646@if target-libcilkrts
647TARGET_LIB_PATH_libcilkrts = $$r/$(TARGET_SUBDIR)/libcilkrts/.libs:
648@endif target-libcilkrts
649
1b6c0831
L
650@if target-liboffloadmic
651TARGET_LIB_PATH_liboffloadmic = $$r/$(TARGET_SUBDIR)/liboffloadmic/.libs:
652@endif target-liboffloadmic
653
064d0a7c
PB
654@if target-libssp
655TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
656@endif target-libssp
657
b3ded179
PB
658@if target-libgomp
659TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
660@endif target-libgomp
661
7ec59b9e
L
662@if target-libitm
663TARGET_LIB_PATH_libitm = $$r/$(TARGET_SUBDIR)/libitm/.libs:
664@endif target-libitm
665
666@if target-libatomic
667TARGET_LIB_PATH_libatomic = $$r/$(TARGET_SUBDIR)/libatomic/.libs:
668@endif target-libatomic
669
e90269c8
PB
670
671
672# This is the list of directories that may be needed in RPATH_ENVVAR
673# so that programs built for the host machine work.
1b6c0831 674HOST_LIB_PATH = $(HOST_LIB_PATH_gmp)$(HOST_LIB_PATH_mpfr)$(HOST_LIB_PATH_mpc)$(HOST_LIB_PATH_isl)$(HOST_LIB_PATH_libelf)
e90269c8
PB
675
676# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
677@if gcc
3bbd2f8f 678HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc$(GCC_SHLIB_SUBDIR):$$r/$(HOST_SUBDIR)/prev-gcc$(GCC_SHLIB_SUBDIR):
e90269c8
PB
679@endif gcc
680
681
4b900473
PB
682@if gmp
683HOST_LIB_PATH_gmp = \
684 $$r/$(HOST_SUBDIR)/gmp/.libs:$$r/$(HOST_SUBDIR)/prev-gmp/.libs:
685@endif gmp
686
687@if mpfr
688HOST_LIB_PATH_mpfr = \
05a13254 689 $$r/$(HOST_SUBDIR)/mpfr/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpfr/src/.libs:
4b900473
PB
690@endif mpfr
691
e8a5fa9c
RW
692@if mpc
693HOST_LIB_PATH_mpc = \
05a13254 694 $$r/$(HOST_SUBDIR)/mpc/src/.libs:$$r/$(HOST_SUBDIR)/prev-mpc/src/.libs:
e8a5fa9c
RW
695@endif mpc
696
7ec59b9e
L
697@if isl
698HOST_LIB_PATH_isl = \
699 $$r/$(HOST_SUBDIR)/isl/.libs:$$r/$(HOST_SUBDIR)/prev-isl/.libs:
700@endif isl
e28c595f 701
1f53ca9a
AO
702@if libelf
703HOST_LIB_PATH_libelf = \
704 $$r/$(HOST_SUBDIR)/libelf/.libs:$$r/$(HOST_SUBDIR)/prev-libelf/.libs:
705@endif libelf
706
e90269c8 707
87cda2cf
AO
708CXX_FOR_TARGET_FLAG_TO_PASS = \
709 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)"
710@if target-libstdc++-v3
711# CXX_FOR_TARGET is tricky to get right for target libs that require a
712# functional C++ compiler. When we recurse, if we expand
713# CXX_FOR_TARGET before configuring libstdc++-v3, we won't get
714# libstdc++ include flags from the script. Instead, we get an
715# -funconfigured-* word, so that we'll get errors if this invalid C++
716# command line is used for anything, but also so that we can use the
717# word to decide whether or not to pass on this CXX_FOR_TARGET. If we
718# don't pass it on, sub-make will use the default definition, that
719# re-expands it at the time of use, so we'll get it right when we need
720# it. One potential exception is the expansion of CXX_FOR_TARGET
721# passed down as part of CXX within TARGET_FLAGS, but this wouldn't
722# really work, for C++ host programs can't depend on the current-stage
723# C++ target library.
724CXX_FOR_TARGET_FLAG_TO_PASS = \
725 $(shell if echo "$(CXX_FOR_TARGET)" | grep " -funconfigured-" > /dev/null; then :; else echo '"CXX_FOR_TARGET=$(CXX_FOR_TARGET)"'; fi)
726@endif target-libstdc++-v3
727
22121df0
L
728# Flags to pass down to all sub-makes. STAGE*FLAGS,
729# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
730# overrideable (for a bootstrap build stage1 also builds gcc.info).
252b5132 731BASE_FLAGS_TO_PASS = \
497f816e 732 "DESTDIR=$(DESTDIR)" \
252b5132 733 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
252b5132 734 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
252b5132
RH
735 "bindir=$(bindir)" \
736 "datadir=$(datadir)" \
737 "exec_prefix=$(exec_prefix)" \
738 "includedir=$(includedir)" \
108a6f8e
CD
739 "datarootdir=$(datarootdir)" \
740 "docdir=$(docdir)" \
252b5132 741 "infodir=$(infodir)" \
a3ca38d2 742 "pdfdir=$(pdfdir)" \
108a6f8e 743 "htmldir=$(htmldir)" \
252b5132
RH
744 "libdir=$(libdir)" \
745 "libexecdir=$(libexecdir)" \
746 "lispdir=$(lispdir)" \
747 "localstatedir=$(localstatedir)" \
748 "mandir=$(mandir)" \
749 "oldincludedir=$(oldincludedir)" \
750 "prefix=$(prefix)" \
751 "sbindir=$(sbindir)" \
752 "sharedstatedir=$(sharedstatedir)" \
753 "sysconfdir=$(sysconfdir)" \
754 "tooldir=$(tooldir)" \
ba73c63f 755 "build_tooldir=$(build_tooldir)" \
12f0bd74 756 "target_alias=$(target_alias)" \
8e957354 757 "AWK=$(AWK)" \
12f0bd74
NN
758 "BISON=$(BISON)" \
759 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
b2edd3b5 760 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
12f0bd74
NN
761 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
762 "EXPECT=$(EXPECT)" \
6a9cf61e 763 "FLEX=$(FLEX)" \
12f0bd74
NN
764 "INSTALL=$(INSTALL)" \
765 "INSTALL_DATA=$(INSTALL_DATA)" \
766 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
767 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
6641ce42 768 "LDFLAGS_FOR_BUILD=$(LDFLAGS_FOR_BUILD)" \
12f0bd74
NN
769 "LEX=$(LEX)" \
770 "M4=$(M4)" \
771 "MAKE=$(MAKE)" \
772 "RUNTEST=$(RUNTEST)" \
773 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
8e957354 774 "SED=$(SED)" \
12f0bd74
NN
775 "SHELL=$(SHELL)" \
776 "YACC=$(YACC)" \
c52c6897 777 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
da888c87 778 "ADA_CFLAGS=$(ADA_CFLAGS)" \
12f0bd74 779 "AR_FLAGS=$(AR_FLAGS)" \
c52c6897 780 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
f6d183c0
PB
781 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
782 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
12f0bd74
NN
783 "CFLAGS=$(CFLAGS)" \
784 "CXXFLAGS=$(CXXFLAGS)" \
785 "LDFLAGS=$(LDFLAGS)" \
786 "LIBCFLAGS=$(LIBCFLAGS)" \
787 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
8a0d8a5c 788 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
80911fe1 789 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
a0323144
PB
790 "GNATBIND=$(GNATBIND)" \
791 "GNATMAKE=$(GNATMAKE)" \
12f0bd74
NN
792 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
793 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
794 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
795 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
06bcb89d 796 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
12f0bd74
NN
797 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
798 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
1b05fbbd 799 "FLAGS_FOR_TARGET=$(FLAGS_FOR_TARGET)" \
4b1cb4fe 800 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
e552509b
ILT
801 "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
802 "GOCFLAGS_FOR_TARGET=$(GOCFLAGS_FOR_TARGET)" \
12f0bd74 803 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
7e0f7140 804 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
414e5532 805 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
12f0bd74
NN
806 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
807 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
808 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
5ae72758 809 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
6b91c541 810 "OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET)" \
12f0bd74 811 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
b121d7d4 812 "READELF_FOR_TARGET=$(READELF_FOR_TARGET)" \
7e0f7140 813 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
12f0bd74 814 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
0c24b341 815 "WINDMC_FOR_TARGET=$(WINDMC_FOR_TARGET)" \
1b05fbbd 816 "BUILD_CONFIG=$(BUILD_CONFIG)" \
c52c6897 817 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
80911fe1 818 "LEAN=$(LEAN)" \
1b05fbbd 819 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
1f53ca9a 820 "STAGE1_CXXFLAGS=$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
821 "STAGE1_TFLAGS=$(STAGE1_TFLAGS)" \
822 "STAGE2_CFLAGS=$(STAGE2_CFLAGS)" \
1f53ca9a 823 "STAGE2_CXXFLAGS=$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
824 "STAGE2_TFLAGS=$(STAGE2_TFLAGS)" \
825 "STAGE3_CFLAGS=$(STAGE3_CFLAGS)" \
1f53ca9a 826 "STAGE3_CXXFLAGS=$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
827 "STAGE3_TFLAGS=$(STAGE3_TFLAGS)" \
828 "STAGE4_CFLAGS=$(STAGE4_CFLAGS)" \
1f53ca9a 829 "STAGE4_CXXFLAGS=$(STAGE4_CXXFLAGS)" \
1b05fbbd
AO
830 "STAGE4_TFLAGS=$(STAGE4_TFLAGS)" \
831 "STAGEprofile_CFLAGS=$(STAGEprofile_CFLAGS)" \
1f53ca9a 832 "STAGEprofile_CXXFLAGS=$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
833 "STAGEprofile_TFLAGS=$(STAGEprofile_TFLAGS)" \
834 "STAGEfeedback_CFLAGS=$(STAGEfeedback_CFLAGS)" \
1f53ca9a 835 "STAGEfeedback_CXXFLAGS=$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd 836 "STAGEfeedback_TFLAGS=$(STAGEfeedback_TFLAGS)" \
87cda2cf 837 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
1b05fbbd 838 "TFLAGS=$(TFLAGS)" \
10ecffb9 839 "CONFIG_SHELL=$(SHELL)" \
52cf9762
NC
840 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
841 $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
252b5132 842
55db4b87
PB
843# We leave this in just in case, but it is not needed anymore.
844RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
656fdd47 845
252b5132
RH
846# Flags to pass down to most sub-makes, in which we're building with
847# the host environment.
252b5132
RH
848EXTRA_HOST_FLAGS = \
849 'AR=$(AR)' \
850 'AS=$(AS)' \
851 'CC=$(CC)' \
852 'CXX=$(CXX)' \
853 'DLLTOOL=$(DLLTOOL)' \
1b05fbbd 854 'GFORTRAN=$(GFORTRAN)' \
9b980aa1 855 'GOC=$(GOC)' \
252b5132 856 'LD=$(LD)' \
be01d343 857 'LIPO=$(LIPO)' \
252b5132 858 'NM=$(NM)' \
80911fe1 859 'OBJDUMP=$(OBJDUMP)' \
b9459e83 860 'RANLIB=$(RANLIB)' \
b121d7d4 861 'READELF=$(READELF)' \
be01d343 862 'STRIP=$(STRIP)' \
0c24b341 863 'WINDRES=$(WINDRES)' \
05a13254
NC
864 'WINDMC=$(WINDMC)' \
865 'CREATE_GCOV=$(CREATE_GCOV)'
252b5132
RH
866
867FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
868
b3676d82
EB
869# Flags to pass to stage1 or when not bootstrapping.
870
871STAGE1_FLAGS_TO_PASS = \
872 LDFLAGS="$${LDFLAGS}" \
873 HOST_LIBS="$${HOST_LIBS}"
874
8a0d8a5c
PB
875# Flags to pass to stage2 and later makes.
876
877POSTSTAGE1_FLAGS_TO_PASS = \
e8a5fa9c
RW
878 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
879 CXX="$${CXX}" CXX_FOR_BUILD="$${CXX_FOR_BUILD}" \
880 GNATBIND="$${GNATBIND}" \
1f53ca9a
AO
881 LDFLAGS="$${LDFLAGS}" \
882 HOST_LIBS="$${HOST_LIBS}" \
1b6c0831 883 $(LTO_FLAGS_TO_PASS) \
8a0d8a5c
PB
884 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
885
f91ca6bc
IB
886@if gcc-bootstrap
887EXTRA_HOST_EXPORTS = if [ $(current_stage) != stage1 ]; then \
888 $(POSTSTAGE1_HOST_EXPORTS) \
22121df0 889 fi;
f91ca6bc
IB
890
891EXTRA_BOOTSTRAP_FLAGS = CC="$$CC" CXX="$$CXX" LDFLAGS="$$LDFLAGS"
892@endif gcc-bootstrap
893
252b5132 894# Flags to pass down to makes which are built with the target environment.
0aed8855
PB
895# The double $ decreases the length of the command line; those variables
896# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
7f6ef0c0
PB
897# *_CFLAGS_FOR_TARGET variables are not passed down and most often empty,
898# so we expand them here.
252b5132
RH
899EXTRA_TARGET_FLAGS = \
900 'AR=$$(AR_FOR_TARGET)' \
0aed8855 901 'AS=$(COMPILER_AS_FOR_TARGET)' \
1b05fbbd
AO
902 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
903 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
1b6c0831
L
904 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
905 -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
906 $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
1b05fbbd 907 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
252b5132 908 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
1b05fbbd 909 'GFORTRAN=$$(GFORTRAN_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
9b980aa1 910 'GOC=$$(GOC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
e552509b 911 'GOCFLAGS=$$(GOCFLAGS_FOR_TARGET)' \
0aed8855 912 'LD=$(COMPILER_LD_FOR_TARGET)' \
414e5532 913 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
1b05fbbd
AO
914 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
915 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
0aed8855 916 'NM=$(COMPILER_NM_FOR_TARGET)' \
5ae72758 917 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
6b91c541 918 'OBJCOPY=$$(OBJCOPY_FOR_TARGET)' \
252b5132 919 'RANLIB=$$(RANLIB_FOR_TARGET)' \
b121d7d4 920 'READELF=$$(READELF_FOR_TARGET)' \
0c24b341 921 'WINDRES=$$(WINDRES_FOR_TARGET)' \
1b05fbbd
AO
922 'WINDMC=$$(WINDMC_FOR_TARGET)' \
923 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
1b6c0831
L
924 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
925 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
1b05fbbd 926 "TFLAGS=$$TFLAGS"
252b5132
RH
927
928TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
929
930# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
931# unfortunately needs the native compiler and the target ar and
932# ranlib.
933# If any variables are added here, they must be added to do-*, below.
2a4cbe27 934# The BUILD_* variables are a special case, which are used for the gcc
252b5132
RH
935# cross-building scheme.
936EXTRA_GCC_FLAGS = \
252b5132 937 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
3dee29da 938 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
98dd765a 939 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
252b5132 940
f0b24077 941GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
252b5132 942
1b05fbbd 943@if gcc
96655cc4 944BUILD_CONFIG = @BUILD_CONFIG@
1b05fbbd
AO
945ifneq ($(BUILD_CONFIG),)
946include $(foreach CONFIG, $(BUILD_CONFIG), $(srcdir)/config/$(CONFIG).mk)
947endif
948@endif gcc
949
dd12c3a8 950.PHONY: configure-host
b813574b 951configure-host: \
dd12c3a8
NN
952 maybe-configure-bfd \
953 maybe-configure-opcodes \
954 maybe-configure-binutils \
955 maybe-configure-bison \
f9806fa5 956 maybe-configure-cgen \
dd12c3a8 957 maybe-configure-dejagnu \
dd12c3a8
NN
958 maybe-configure-etc \
959 maybe-configure-fastjar \
d3ed111c 960 maybe-configure-fixincludes \
dd12c3a8
NN
961 maybe-configure-flex \
962 maybe-configure-gas \
b813574b 963 maybe-configure-gcc \
4b900473
PB
964 maybe-configure-gmp \
965 maybe-configure-mpfr \
e8a5fa9c 966 maybe-configure-mpc \
7ec59b9e 967 maybe-configure-isl \
1f53ca9a 968 maybe-configure-libelf \
93f9b408 969 maybe-configure-gold \
dd12c3a8 970 maybe-configure-gprof \
dd12c3a8
NN
971 maybe-configure-intl \
972 maybe-configure-tcl \
973 maybe-configure-itcl \
974 maybe-configure-ld \
2bf680c4 975 maybe-configure-libbacktrace \
04cf1b77 976 maybe-configure-libcpp \
be01d343 977 maybe-configure-libdecnumber \
dd12c3a8
NN
978 maybe-configure-libgui \
979 maybe-configure-libiberty \
1b6c0831 980 maybe-configure-libiberty-linker-plugin \
dc448a7b 981 maybe-configure-libiconv \
dd12c3a8 982 maybe-configure-m4 \
dd12c3a8 983 maybe-configure-readline \
dd12c3a8
NN
984 maybe-configure-sid \
985 maybe-configure-sim \
dd12c3a8 986 maybe-configure-texinfo \
dd12c3a8 987 maybe-configure-zlib \
73cc7272 988 maybe-configure-gnulib \
01027315 989 maybe-configure-gdbsupport \
919adfe8 990 maybe-configure-gdbserver \
dd12c3a8
NN
991 maybe-configure-gdb \
992 maybe-configure-expect \
993 maybe-configure-guile \
994 maybe-configure-tk \
dd12c3a8 995 maybe-configure-libtermcap \
b00612cc 996 maybe-configure-utils \
700d40ca 997 maybe-configure-gnattools \
1b6c0831
L
998 maybe-configure-lto-plugin \
999 maybe-configure-libcc1 \
0e65dfba
NA
1000 maybe-configure-gotools \
1001 maybe-configure-libctf
dd12c3a8
NN
1002.PHONY: configure-target
1003configure-target: \
1004 maybe-configure-target-libstdc++-v3 \
5286fdef 1005 maybe-configure-target-libsanitizer \
1b6c0831 1006 maybe-configure-target-libmpx \
95e43135 1007 maybe-configure-target-libvtv \
e3f56a99 1008 maybe-configure-target-libcilkrts \
1b6c0831 1009 maybe-configure-target-liboffloadmic \
064d0a7c 1010 maybe-configure-target-libssp \
dd12c3a8 1011 maybe-configure-target-newlib \
6aa8ef82 1012 maybe-configure-target-libgcc \
2bf680c4 1013 maybe-configure-target-libbacktrace \
e552509b 1014 maybe-configure-target-libquadmath \
4b1cb4fe 1015 maybe-configure-target-libgfortran \
dd12c3a8 1016 maybe-configure-target-libobjc \
e552509b 1017 maybe-configure-target-libgo \
dd12c3a8
NN
1018 maybe-configure-target-libtermcap \
1019 maybe-configure-target-winsup \
1020 maybe-configure-target-libgloss \
dd12c3a8 1021 maybe-configure-target-libffi \
dd12c3a8 1022 maybe-configure-target-zlib \
a2592b1b 1023 maybe-configure-target-rda \
b3ded179 1024 maybe-configure-target-libada \
7ec59b9e
L
1025 maybe-configure-target-libgomp \
1026 maybe-configure-target-libitm \
1027 maybe-configure-target-libatomic
252b5132 1028
319cab08
PB
1029# The target built for a native non-bootstrap build.
1030.PHONY: all
af019bfd
L
1031
1032# --enable-pgo-build enables the PGO build.
1033# 1. First build with -fprofile-generate.
1034# 2. Use "make maybe-check-*" to generate profiling data.
1035# 3. Use "make clean" to remove the previous build.
1036# 4. Rebuild with -fprofile-use.
f70224b5
PB
1037all:
1038@if gcc-bootstrap
be01d343 1039 [ -f stage_final ] || echo stage3 > stage_final
f70224b5
PB
1040 @r=`${PWD_COMMAND}`; export r; \
1041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
0aed8855 1042 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
f70224b5 1043@endif gcc-bootstrap
0aed8855 1044 @: $(MAKE); $(unstage)
af019bfd 1045 +@r=`${PWD_COMMAND}`; export r; \
f70224b5 1046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 1047@if gcc-bootstrap
b5233201 1048 if [ -f stage_last ]; then \
07fc31c9 1049 TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
be01d343 1050 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
f70224b5 1051 else \
1b05fbbd 1052@endif gcc-bootstrap
af019bfd
L
1053 $(MAKE) $(RECURSE_FLAGS_TO_PASS) \
1054 $(PGO_BUILD_GEN_FLAGS_TO_PASS) all-host all-target \
1055@if pgo-build
1056 && $(MAKE) $(RECURSE_FLAGS_TO_PASS) \
1057 $(PGO_BUILD_TRAINING_MFLAGS) \
1058 $(PGO_BUILD_TRAINING_FLAGS_TO_PASS) \
1059 $(PGO_BUILD_TRAINING) \
1060 && $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean \
1061 && $(MAKE) $(RECURSE_FLAGS_TO_PASS) \
1062 $(PGO_BUILD_USE_FLAGS_TO_PASS) all-host all-target \
1063@endif pgo-build
b5233201
AO
1064@if gcc-bootstrap
1065 ; \
04ec0acb 1066 fi \
b5233201 1067@endif gcc-bootstrap
04ec0acb 1068 && :
6a9cf61e
PB
1069
1070.PHONY: all-build
c52c6897
PB
1071
1072all-build: maybe-all-build-libiberty
1073all-build: maybe-all-build-bison
c52c6897
PB
1074all-build: maybe-all-build-flex
1075all-build: maybe-all-build-m4
1076all-build: maybe-all-build-texinfo
1077all-build: maybe-all-build-fixincludes
1b6c0831 1078all-build: maybe-all-build-libcpp
c52c6897 1079
dd12c3a8 1080.PHONY: all-host
c52c6897 1081
c52c6897
PB
1082@if bfd-no-bootstrap
1083all-host: maybe-all-bfd
1084@endif bfd-no-bootstrap
1085@if opcodes-no-bootstrap
1086all-host: maybe-all-opcodes
1087@endif opcodes-no-bootstrap
1088@if binutils-no-bootstrap
1089all-host: maybe-all-binutils
1090@endif binutils-no-bootstrap
1091all-host: maybe-all-bison
f9806fa5 1092all-host: maybe-all-cgen
c52c6897 1093all-host: maybe-all-dejagnu
c52c6897
PB
1094all-host: maybe-all-etc
1095all-host: maybe-all-fastjar
201f096f 1096@if fixincludes-no-bootstrap
c52c6897 1097all-host: maybe-all-fixincludes
201f096f 1098@endif fixincludes-no-bootstrap
c52c6897
PB
1099all-host: maybe-all-flex
1100@if gas-no-bootstrap
1101all-host: maybe-all-gas
1102@endif gas-no-bootstrap
1103@if gcc-no-bootstrap
1104all-host: maybe-all-gcc
1105@endif gcc-no-bootstrap
4b900473
PB
1106@if gmp-no-bootstrap
1107all-host: maybe-all-gmp
1108@endif gmp-no-bootstrap
1109@if mpfr-no-bootstrap
1110all-host: maybe-all-mpfr
1111@endif mpfr-no-bootstrap
e8a5fa9c
RW
1112@if mpc-no-bootstrap
1113all-host: maybe-all-mpc
1114@endif mpc-no-bootstrap
7ec59b9e
L
1115@if isl-no-bootstrap
1116all-host: maybe-all-isl
1117@endif isl-no-bootstrap
1f53ca9a
AO
1118@if libelf-no-bootstrap
1119all-host: maybe-all-libelf
1120@endif libelf-no-bootstrap
93f9b408
ILT
1121@if gold-no-bootstrap
1122all-host: maybe-all-gold
1123@endif gold-no-bootstrap
c52c6897 1124all-host: maybe-all-gprof
c52c6897
PB
1125@if intl-no-bootstrap
1126all-host: maybe-all-intl
1127@endif intl-no-bootstrap
1128all-host: maybe-all-tcl
1129all-host: maybe-all-itcl
1130@if ld-no-bootstrap
1131all-host: maybe-all-ld
1132@endif ld-no-bootstrap
2bf680c4
ILT
1133@if libbacktrace-no-bootstrap
1134all-host: maybe-all-libbacktrace
1135@endif libbacktrace-no-bootstrap
c52c6897
PB
1136@if libcpp-no-bootstrap
1137all-host: maybe-all-libcpp
1138@endif libcpp-no-bootstrap
1139@if libdecnumber-no-bootstrap
1140all-host: maybe-all-libdecnumber
1141@endif libdecnumber-no-bootstrap
1142all-host: maybe-all-libgui
1143@if libiberty-no-bootstrap
1144all-host: maybe-all-libiberty
1145@endif libiberty-no-bootstrap
1b6c0831
L
1146@if libiberty-linker-plugin-no-bootstrap
1147all-host: maybe-all-libiberty-linker-plugin
1148@endif libiberty-linker-plugin-no-bootstrap
016a3251 1149@if libiconv-no-bootstrap
dc448a7b 1150all-host: maybe-all-libiconv
016a3251 1151@endif libiconv-no-bootstrap
c52c6897 1152all-host: maybe-all-m4
c52c6897 1153all-host: maybe-all-readline
c52c6897
PB
1154all-host: maybe-all-sid
1155all-host: maybe-all-sim
c52c6897 1156all-host: maybe-all-texinfo
c52c6897
PB
1157@if zlib-no-bootstrap
1158all-host: maybe-all-zlib
1159@endif zlib-no-bootstrap
73cc7272 1160all-host: maybe-all-gnulib
01027315 1161all-host: maybe-all-gdbsupport
919adfe8 1162all-host: maybe-all-gdbserver
c52c6897
PB
1163all-host: maybe-all-gdb
1164all-host: maybe-all-expect
1165all-host: maybe-all-guile
1166all-host: maybe-all-tk
1167all-host: maybe-all-libtermcap
1168all-host: maybe-all-utils
1169all-host: maybe-all-gnattools
700d40ca
ILT
1170@if lto-plugin-no-bootstrap
1171all-host: maybe-all-lto-plugin
1172@endif lto-plugin-no-bootstrap
1b6c0831
L
1173all-host: maybe-all-libcc1
1174all-host: maybe-all-gotools
0e65dfba
NA
1175@if libctf-no-bootstrap
1176all-host: maybe-all-libctf
1177@endif libctf-no-bootstrap
c52c6897 1178
dd12c3a8 1179.PHONY: all-target
c52c6897 1180
e8a5fa9c 1181@if target-libstdc++-v3-no-bootstrap
c52c6897 1182all-target: maybe-all-target-libstdc++-v3
e8a5fa9c 1183@endif target-libstdc++-v3-no-bootstrap
5eb08693 1184@if target-libsanitizer-no-bootstrap
5286fdef 1185all-target: maybe-all-target-libsanitizer
5eb08693 1186@endif target-libsanitizer-no-bootstrap
1b6c0831
L
1187@if target-libmpx-no-bootstrap
1188all-target: maybe-all-target-libmpx
1189@endif target-libmpx-no-bootstrap
95e43135
JBG
1190@if target-libvtv-no-bootstrap
1191all-target: maybe-all-target-libvtv
1192@endif target-libvtv-no-bootstrap
e3f56a99 1193all-target: maybe-all-target-libcilkrts
1b6c0831 1194all-target: maybe-all-target-liboffloadmic
c52c6897 1195all-target: maybe-all-target-libssp
c52c6897 1196all-target: maybe-all-target-newlib
f86e35b8 1197@if target-libgcc-no-bootstrap
6aa8ef82 1198all-target: maybe-all-target-libgcc
f86e35b8 1199@endif target-libgcc-no-bootstrap
2bf680c4 1200all-target: maybe-all-target-libbacktrace
e552509b 1201all-target: maybe-all-target-libquadmath
c52c6897
PB
1202all-target: maybe-all-target-libgfortran
1203all-target: maybe-all-target-libobjc
e552509b 1204all-target: maybe-all-target-libgo
c52c6897
PB
1205all-target: maybe-all-target-libtermcap
1206all-target: maybe-all-target-winsup
1207all-target: maybe-all-target-libgloss
c52c6897 1208all-target: maybe-all-target-libffi
c52c6897 1209all-target: maybe-all-target-zlib
c52c6897
PB
1210all-target: maybe-all-target-rda
1211all-target: maybe-all-target-libada
911e63d0 1212@if target-libgomp-no-bootstrap
c52c6897 1213all-target: maybe-all-target-libgomp
911e63d0 1214@endif target-libgomp-no-bootstrap
7ec59b9e
L
1215all-target: maybe-all-target-libitm
1216all-target: maybe-all-target-libatomic
252b5132
RH
1217
1218# Do a target for all the subdirectories. A ``make do-X'' will do a
1219# ``make X'' in all subdirectories (because, in general, there is a
1220# dependency (below) of X upon do-X, a ``make X'' will also do this,
1221# but it may do additional work as well).
e393202e 1222
2a4cbe27 1223.PHONY: do-info
f70224b5 1224do-info:
0aed8855 1225 @: $(MAKE); $(unstage)
e360f423
PB
1226 @r=`${PWD_COMMAND}`; export r; \
1227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1228 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
f70224b5 1229 info-target
f70224b5 1230
e393202e 1231
2a4cbe27 1232.PHONY: info-host
c52c6897 1233
c52c6897
PB
1234info-host: maybe-info-bfd
1235info-host: maybe-info-opcodes
1236info-host: maybe-info-binutils
1237info-host: maybe-info-bison
f9806fa5 1238info-host: maybe-info-cgen
c52c6897 1239info-host: maybe-info-dejagnu
c52c6897
PB
1240info-host: maybe-info-etc
1241info-host: maybe-info-fastjar
c52c6897
PB
1242info-host: maybe-info-fixincludes
1243info-host: maybe-info-flex
1244info-host: maybe-info-gas
1245info-host: maybe-info-gcc
4b900473
PB
1246info-host: maybe-info-gmp
1247info-host: maybe-info-mpfr
e8a5fa9c 1248info-host: maybe-info-mpc
7ec59b9e 1249info-host: maybe-info-isl
1f53ca9a 1250info-host: maybe-info-libelf
93f9b408 1251info-host: maybe-info-gold
c52c6897 1252info-host: maybe-info-gprof
c52c6897
PB
1253info-host: maybe-info-intl
1254info-host: maybe-info-tcl
1255info-host: maybe-info-itcl
1256info-host: maybe-info-ld
2bf680c4 1257info-host: maybe-info-libbacktrace
c52c6897
PB
1258info-host: maybe-info-libcpp
1259info-host: maybe-info-libdecnumber
1260info-host: maybe-info-libgui
1261info-host: maybe-info-libiberty
1b6c0831 1262info-host: maybe-info-libiberty-linker-plugin
dc448a7b 1263info-host: maybe-info-libiconv
c52c6897 1264info-host: maybe-info-m4
c52c6897 1265info-host: maybe-info-readline
c52c6897
PB
1266info-host: maybe-info-sid
1267info-host: maybe-info-sim
c52c6897 1268info-host: maybe-info-texinfo
c52c6897 1269info-host: maybe-info-zlib
73cc7272 1270info-host: maybe-info-gnulib
01027315 1271info-host: maybe-info-gdbsupport
919adfe8 1272info-host: maybe-info-gdbserver
c52c6897
PB
1273info-host: maybe-info-gdb
1274info-host: maybe-info-expect
1275info-host: maybe-info-guile
1276info-host: maybe-info-tk
1277info-host: maybe-info-libtermcap
1278info-host: maybe-info-utils
1279info-host: maybe-info-gnattools
700d40ca 1280info-host: maybe-info-lto-plugin
1b6c0831
L
1281info-host: maybe-info-libcc1
1282info-host: maybe-info-gotools
0e65dfba 1283info-host: maybe-info-libctf
252b5132 1284
2a4cbe27 1285.PHONY: info-target
c52c6897
PB
1286
1287info-target: maybe-info-target-libstdc++-v3
5286fdef 1288info-target: maybe-info-target-libsanitizer
1b6c0831 1289info-target: maybe-info-target-libmpx
95e43135 1290info-target: maybe-info-target-libvtv
e3f56a99 1291info-target: maybe-info-target-libcilkrts
1b6c0831 1292info-target: maybe-info-target-liboffloadmic
c52c6897 1293info-target: maybe-info-target-libssp
c52c6897 1294info-target: maybe-info-target-newlib
6aa8ef82 1295info-target: maybe-info-target-libgcc
2bf680c4 1296info-target: maybe-info-target-libbacktrace
e552509b 1297info-target: maybe-info-target-libquadmath
c52c6897
PB
1298info-target: maybe-info-target-libgfortran
1299info-target: maybe-info-target-libobjc
e552509b 1300info-target: maybe-info-target-libgo
c52c6897
PB
1301info-target: maybe-info-target-libtermcap
1302info-target: maybe-info-target-winsup
1303info-target: maybe-info-target-libgloss
c52c6897 1304info-target: maybe-info-target-libffi
c52c6897 1305info-target: maybe-info-target-zlib
c52c6897
PB
1306info-target: maybe-info-target-rda
1307info-target: maybe-info-target-libada
1308info-target: maybe-info-target-libgomp
7ec59b9e
L
1309info-target: maybe-info-target-libitm
1310info-target: maybe-info-target-libatomic
252b5132 1311
4fa63067 1312.PHONY: do-dvi
f70224b5 1313do-dvi:
0aed8855 1314 @: $(MAKE); $(unstage)
e360f423
PB
1315 @r=`${PWD_COMMAND}`; export r; \
1316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1317 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
f70224b5 1318 dvi-target
f70224b5 1319
2a4cbe27 1320
4fa63067 1321.PHONY: dvi-host
c52c6897 1322
c52c6897
PB
1323dvi-host: maybe-dvi-bfd
1324dvi-host: maybe-dvi-opcodes
1325dvi-host: maybe-dvi-binutils
1326dvi-host: maybe-dvi-bison
f9806fa5 1327dvi-host: maybe-dvi-cgen
c52c6897 1328dvi-host: maybe-dvi-dejagnu
c52c6897
PB
1329dvi-host: maybe-dvi-etc
1330dvi-host: maybe-dvi-fastjar
c52c6897
PB
1331dvi-host: maybe-dvi-fixincludes
1332dvi-host: maybe-dvi-flex
1333dvi-host: maybe-dvi-gas
1334dvi-host: maybe-dvi-gcc
4b900473
PB
1335dvi-host: maybe-dvi-gmp
1336dvi-host: maybe-dvi-mpfr
e8a5fa9c 1337dvi-host: maybe-dvi-mpc
7ec59b9e 1338dvi-host: maybe-dvi-isl
1f53ca9a 1339dvi-host: maybe-dvi-libelf
93f9b408 1340dvi-host: maybe-dvi-gold
c52c6897 1341dvi-host: maybe-dvi-gprof
c52c6897
PB
1342dvi-host: maybe-dvi-intl
1343dvi-host: maybe-dvi-tcl
1344dvi-host: maybe-dvi-itcl
1345dvi-host: maybe-dvi-ld
2bf680c4 1346dvi-host: maybe-dvi-libbacktrace
c52c6897
PB
1347dvi-host: maybe-dvi-libcpp
1348dvi-host: maybe-dvi-libdecnumber
1349dvi-host: maybe-dvi-libgui
1350dvi-host: maybe-dvi-libiberty
1b6c0831 1351dvi-host: maybe-dvi-libiberty-linker-plugin
dc448a7b 1352dvi-host: maybe-dvi-libiconv
c52c6897 1353dvi-host: maybe-dvi-m4
c52c6897 1354dvi-host: maybe-dvi-readline
c52c6897
PB
1355dvi-host: maybe-dvi-sid
1356dvi-host: maybe-dvi-sim
c52c6897 1357dvi-host: maybe-dvi-texinfo
c52c6897 1358dvi-host: maybe-dvi-zlib
73cc7272 1359dvi-host: maybe-dvi-gnulib
01027315 1360dvi-host: maybe-dvi-gdbsupport
919adfe8 1361dvi-host: maybe-dvi-gdbserver
c52c6897
PB
1362dvi-host: maybe-dvi-gdb
1363dvi-host: maybe-dvi-expect
1364dvi-host: maybe-dvi-guile
1365dvi-host: maybe-dvi-tk
1366dvi-host: maybe-dvi-libtermcap
1367dvi-host: maybe-dvi-utils
1368dvi-host: maybe-dvi-gnattools
700d40ca 1369dvi-host: maybe-dvi-lto-plugin
1b6c0831
L
1370dvi-host: maybe-dvi-libcc1
1371dvi-host: maybe-dvi-gotools
0e65dfba 1372dvi-host: maybe-dvi-libctf
2a4cbe27 1373
4fa63067 1374.PHONY: dvi-target
c52c6897
PB
1375
1376dvi-target: maybe-dvi-target-libstdc++-v3
5286fdef 1377dvi-target: maybe-dvi-target-libsanitizer
1b6c0831 1378dvi-target: maybe-dvi-target-libmpx
95e43135 1379dvi-target: maybe-dvi-target-libvtv
e3f56a99 1380dvi-target: maybe-dvi-target-libcilkrts
1b6c0831 1381dvi-target: maybe-dvi-target-liboffloadmic
c52c6897 1382dvi-target: maybe-dvi-target-libssp
c52c6897 1383dvi-target: maybe-dvi-target-newlib
6aa8ef82 1384dvi-target: maybe-dvi-target-libgcc
2bf680c4 1385dvi-target: maybe-dvi-target-libbacktrace
e552509b 1386dvi-target: maybe-dvi-target-libquadmath
c52c6897
PB
1387dvi-target: maybe-dvi-target-libgfortran
1388dvi-target: maybe-dvi-target-libobjc
e552509b 1389dvi-target: maybe-dvi-target-libgo
c52c6897
PB
1390dvi-target: maybe-dvi-target-libtermcap
1391dvi-target: maybe-dvi-target-winsup
1392dvi-target: maybe-dvi-target-libgloss
c52c6897 1393dvi-target: maybe-dvi-target-libffi
c52c6897 1394dvi-target: maybe-dvi-target-zlib
c52c6897
PB
1395dvi-target: maybe-dvi-target-rda
1396dvi-target: maybe-dvi-target-libada
1397dvi-target: maybe-dvi-target-libgomp
7ec59b9e
L
1398dvi-target: maybe-dvi-target-libitm
1399dvi-target: maybe-dvi-target-libatomic
2a4cbe27 1400
56a8fe78
DD
1401.PHONY: do-pdf
1402do-pdf:
1403 @: $(MAKE); $(unstage)
1404 @r=`${PWD_COMMAND}`; export r; \
1405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1406 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1407 pdf-target
1408
1409
1410.PHONY: pdf-host
1411
56a8fe78
DD
1412pdf-host: maybe-pdf-bfd
1413pdf-host: maybe-pdf-opcodes
1414pdf-host: maybe-pdf-binutils
1415pdf-host: maybe-pdf-bison
f9806fa5 1416pdf-host: maybe-pdf-cgen
56a8fe78 1417pdf-host: maybe-pdf-dejagnu
56a8fe78
DD
1418pdf-host: maybe-pdf-etc
1419pdf-host: maybe-pdf-fastjar
56a8fe78
DD
1420pdf-host: maybe-pdf-fixincludes
1421pdf-host: maybe-pdf-flex
1422pdf-host: maybe-pdf-gas
1423pdf-host: maybe-pdf-gcc
4b900473
PB
1424pdf-host: maybe-pdf-gmp
1425pdf-host: maybe-pdf-mpfr
e8a5fa9c 1426pdf-host: maybe-pdf-mpc
7ec59b9e 1427pdf-host: maybe-pdf-isl
1f53ca9a 1428pdf-host: maybe-pdf-libelf
93f9b408 1429pdf-host: maybe-pdf-gold
56a8fe78 1430pdf-host: maybe-pdf-gprof
56a8fe78
DD
1431pdf-host: maybe-pdf-intl
1432pdf-host: maybe-pdf-tcl
1433pdf-host: maybe-pdf-itcl
1434pdf-host: maybe-pdf-ld
2bf680c4 1435pdf-host: maybe-pdf-libbacktrace
56a8fe78
DD
1436pdf-host: maybe-pdf-libcpp
1437pdf-host: maybe-pdf-libdecnumber
1438pdf-host: maybe-pdf-libgui
1439pdf-host: maybe-pdf-libiberty
1b6c0831 1440pdf-host: maybe-pdf-libiberty-linker-plugin
dc448a7b 1441pdf-host: maybe-pdf-libiconv
56a8fe78 1442pdf-host: maybe-pdf-m4
56a8fe78 1443pdf-host: maybe-pdf-readline
56a8fe78
DD
1444pdf-host: maybe-pdf-sid
1445pdf-host: maybe-pdf-sim
56a8fe78 1446pdf-host: maybe-pdf-texinfo
56a8fe78 1447pdf-host: maybe-pdf-zlib
73cc7272 1448pdf-host: maybe-pdf-gnulib
01027315 1449pdf-host: maybe-pdf-gdbsupport
919adfe8 1450pdf-host: maybe-pdf-gdbserver
56a8fe78
DD
1451pdf-host: maybe-pdf-gdb
1452pdf-host: maybe-pdf-expect
1453pdf-host: maybe-pdf-guile
1454pdf-host: maybe-pdf-tk
1455pdf-host: maybe-pdf-libtermcap
1456pdf-host: maybe-pdf-utils
1457pdf-host: maybe-pdf-gnattools
700d40ca 1458pdf-host: maybe-pdf-lto-plugin
1b6c0831
L
1459pdf-host: maybe-pdf-libcc1
1460pdf-host: maybe-pdf-gotools
0e65dfba 1461pdf-host: maybe-pdf-libctf
56a8fe78
DD
1462
1463.PHONY: pdf-target
1464
1465pdf-target: maybe-pdf-target-libstdc++-v3
5286fdef 1466pdf-target: maybe-pdf-target-libsanitizer
1b6c0831 1467pdf-target: maybe-pdf-target-libmpx
95e43135 1468pdf-target: maybe-pdf-target-libvtv
e3f56a99 1469pdf-target: maybe-pdf-target-libcilkrts
1b6c0831 1470pdf-target: maybe-pdf-target-liboffloadmic
56a8fe78
DD
1471pdf-target: maybe-pdf-target-libssp
1472pdf-target: maybe-pdf-target-newlib
6aa8ef82 1473pdf-target: maybe-pdf-target-libgcc
2bf680c4 1474pdf-target: maybe-pdf-target-libbacktrace
e552509b 1475pdf-target: maybe-pdf-target-libquadmath
56a8fe78
DD
1476pdf-target: maybe-pdf-target-libgfortran
1477pdf-target: maybe-pdf-target-libobjc
e552509b 1478pdf-target: maybe-pdf-target-libgo
56a8fe78
DD
1479pdf-target: maybe-pdf-target-libtermcap
1480pdf-target: maybe-pdf-target-winsup
1481pdf-target: maybe-pdf-target-libgloss
56a8fe78 1482pdf-target: maybe-pdf-target-libffi
56a8fe78 1483pdf-target: maybe-pdf-target-zlib
56a8fe78
DD
1484pdf-target: maybe-pdf-target-rda
1485pdf-target: maybe-pdf-target-libada
1486pdf-target: maybe-pdf-target-libgomp
7ec59b9e
L
1487pdf-target: maybe-pdf-target-libitm
1488pdf-target: maybe-pdf-target-libatomic
56a8fe78 1489
6d389afc 1490.PHONY: do-html
f70224b5 1491do-html:
0aed8855 1492 @: $(MAKE); $(unstage)
e360f423
PB
1493 @r=`${PWD_COMMAND}`; export r; \
1494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1495 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
f70224b5 1496 html-target
f70224b5 1497
6d389afc
MS
1498
1499.PHONY: html-host
c52c6897 1500
c52c6897
PB
1501html-host: maybe-html-bfd
1502html-host: maybe-html-opcodes
1503html-host: maybe-html-binutils
1504html-host: maybe-html-bison
f9806fa5 1505html-host: maybe-html-cgen
c52c6897 1506html-host: maybe-html-dejagnu
c52c6897
PB
1507html-host: maybe-html-etc
1508html-host: maybe-html-fastjar
c52c6897
PB
1509html-host: maybe-html-fixincludes
1510html-host: maybe-html-flex
1511html-host: maybe-html-gas
1512html-host: maybe-html-gcc
4b900473
PB
1513html-host: maybe-html-gmp
1514html-host: maybe-html-mpfr
e8a5fa9c 1515html-host: maybe-html-mpc
7ec59b9e 1516html-host: maybe-html-isl
1f53ca9a 1517html-host: maybe-html-libelf
93f9b408 1518html-host: maybe-html-gold
c52c6897 1519html-host: maybe-html-gprof
c52c6897
PB
1520html-host: maybe-html-intl
1521html-host: maybe-html-tcl
1522html-host: maybe-html-itcl
1523html-host: maybe-html-ld
2bf680c4 1524html-host: maybe-html-libbacktrace
c52c6897
PB
1525html-host: maybe-html-libcpp
1526html-host: maybe-html-libdecnumber
1527html-host: maybe-html-libgui
1528html-host: maybe-html-libiberty
1b6c0831 1529html-host: maybe-html-libiberty-linker-plugin
dc448a7b 1530html-host: maybe-html-libiconv
c52c6897 1531html-host: maybe-html-m4
c52c6897 1532html-host: maybe-html-readline
c52c6897
PB
1533html-host: maybe-html-sid
1534html-host: maybe-html-sim
c52c6897 1535html-host: maybe-html-texinfo
c52c6897 1536html-host: maybe-html-zlib
73cc7272 1537html-host: maybe-html-gnulib
01027315 1538html-host: maybe-html-gdbsupport
919adfe8 1539html-host: maybe-html-gdbserver
c52c6897
PB
1540html-host: maybe-html-gdb
1541html-host: maybe-html-expect
1542html-host: maybe-html-guile
1543html-host: maybe-html-tk
1544html-host: maybe-html-libtermcap
1545html-host: maybe-html-utils
1546html-host: maybe-html-gnattools
700d40ca 1547html-host: maybe-html-lto-plugin
1b6c0831
L
1548html-host: maybe-html-libcc1
1549html-host: maybe-html-gotools
0e65dfba 1550html-host: maybe-html-libctf
6d389afc
MS
1551
1552.PHONY: html-target
c52c6897
PB
1553
1554html-target: maybe-html-target-libstdc++-v3
5286fdef 1555html-target: maybe-html-target-libsanitizer
1b6c0831 1556html-target: maybe-html-target-libmpx
95e43135 1557html-target: maybe-html-target-libvtv
e3f56a99 1558html-target: maybe-html-target-libcilkrts
1b6c0831 1559html-target: maybe-html-target-liboffloadmic
c52c6897 1560html-target: maybe-html-target-libssp
c52c6897 1561html-target: maybe-html-target-newlib
6aa8ef82 1562html-target: maybe-html-target-libgcc
2bf680c4 1563html-target: maybe-html-target-libbacktrace
e552509b 1564html-target: maybe-html-target-libquadmath
c52c6897
PB
1565html-target: maybe-html-target-libgfortran
1566html-target: maybe-html-target-libobjc
e552509b 1567html-target: maybe-html-target-libgo
c52c6897
PB
1568html-target: maybe-html-target-libtermcap
1569html-target: maybe-html-target-winsup
1570html-target: maybe-html-target-libgloss
c52c6897 1571html-target: maybe-html-target-libffi
c52c6897 1572html-target: maybe-html-target-zlib
c52c6897
PB
1573html-target: maybe-html-target-rda
1574html-target: maybe-html-target-libada
1575html-target: maybe-html-target-libgomp
7ec59b9e
L
1576html-target: maybe-html-target-libitm
1577html-target: maybe-html-target-libatomic
6d389afc 1578
4fa63067 1579.PHONY: do-TAGS
f70224b5 1580do-TAGS:
0aed8855 1581 @: $(MAKE); $(unstage)
e360f423
PB
1582 @r=`${PWD_COMMAND}`; export r; \
1583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1584 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
f70224b5 1585 TAGS-target
f70224b5 1586
2a4cbe27 1587
4fa63067 1588.PHONY: TAGS-host
c52c6897 1589
c52c6897
PB
1590TAGS-host: maybe-TAGS-bfd
1591TAGS-host: maybe-TAGS-opcodes
1592TAGS-host: maybe-TAGS-binutils
1593TAGS-host: maybe-TAGS-bison
f9806fa5 1594TAGS-host: maybe-TAGS-cgen
c52c6897 1595TAGS-host: maybe-TAGS-dejagnu
c52c6897
PB
1596TAGS-host: maybe-TAGS-etc
1597TAGS-host: maybe-TAGS-fastjar
c52c6897
PB
1598TAGS-host: maybe-TAGS-fixincludes
1599TAGS-host: maybe-TAGS-flex
1600TAGS-host: maybe-TAGS-gas
1601TAGS-host: maybe-TAGS-gcc
4b900473
PB
1602TAGS-host: maybe-TAGS-gmp
1603TAGS-host: maybe-TAGS-mpfr
e8a5fa9c 1604TAGS-host: maybe-TAGS-mpc
7ec59b9e 1605TAGS-host: maybe-TAGS-isl
1f53ca9a 1606TAGS-host: maybe-TAGS-libelf
93f9b408 1607TAGS-host: maybe-TAGS-gold
c52c6897 1608TAGS-host: maybe-TAGS-gprof
c52c6897
PB
1609TAGS-host: maybe-TAGS-intl
1610TAGS-host: maybe-TAGS-tcl
1611TAGS-host: maybe-TAGS-itcl
1612TAGS-host: maybe-TAGS-ld
2bf680c4 1613TAGS-host: maybe-TAGS-libbacktrace
c52c6897
PB
1614TAGS-host: maybe-TAGS-libcpp
1615TAGS-host: maybe-TAGS-libdecnumber
1616TAGS-host: maybe-TAGS-libgui
1617TAGS-host: maybe-TAGS-libiberty
1b6c0831 1618TAGS-host: maybe-TAGS-libiberty-linker-plugin
dc448a7b 1619TAGS-host: maybe-TAGS-libiconv
c52c6897 1620TAGS-host: maybe-TAGS-m4
c52c6897 1621TAGS-host: maybe-TAGS-readline
c52c6897
PB
1622TAGS-host: maybe-TAGS-sid
1623TAGS-host: maybe-TAGS-sim
c52c6897 1624TAGS-host: maybe-TAGS-texinfo
c52c6897 1625TAGS-host: maybe-TAGS-zlib
73cc7272 1626TAGS-host: maybe-TAGS-gnulib
01027315 1627TAGS-host: maybe-TAGS-gdbsupport
919adfe8 1628TAGS-host: maybe-TAGS-gdbserver
c52c6897
PB
1629TAGS-host: maybe-TAGS-gdb
1630TAGS-host: maybe-TAGS-expect
1631TAGS-host: maybe-TAGS-guile
1632TAGS-host: maybe-TAGS-tk
1633TAGS-host: maybe-TAGS-libtermcap
1634TAGS-host: maybe-TAGS-utils
1635TAGS-host: maybe-TAGS-gnattools
700d40ca 1636TAGS-host: maybe-TAGS-lto-plugin
1b6c0831
L
1637TAGS-host: maybe-TAGS-libcc1
1638TAGS-host: maybe-TAGS-gotools
0e65dfba 1639TAGS-host: maybe-TAGS-libctf
2a4cbe27 1640
4fa63067 1641.PHONY: TAGS-target
c52c6897
PB
1642
1643TAGS-target: maybe-TAGS-target-libstdc++-v3
5286fdef 1644TAGS-target: maybe-TAGS-target-libsanitizer
1b6c0831 1645TAGS-target: maybe-TAGS-target-libmpx
95e43135 1646TAGS-target: maybe-TAGS-target-libvtv
e3f56a99 1647TAGS-target: maybe-TAGS-target-libcilkrts
1b6c0831 1648TAGS-target: maybe-TAGS-target-liboffloadmic
c52c6897 1649TAGS-target: maybe-TAGS-target-libssp
c52c6897 1650TAGS-target: maybe-TAGS-target-newlib
6aa8ef82 1651TAGS-target: maybe-TAGS-target-libgcc
2bf680c4 1652TAGS-target: maybe-TAGS-target-libbacktrace
e552509b 1653TAGS-target: maybe-TAGS-target-libquadmath
c52c6897
PB
1654TAGS-target: maybe-TAGS-target-libgfortran
1655TAGS-target: maybe-TAGS-target-libobjc
e552509b 1656TAGS-target: maybe-TAGS-target-libgo
c52c6897
PB
1657TAGS-target: maybe-TAGS-target-libtermcap
1658TAGS-target: maybe-TAGS-target-winsup
1659TAGS-target: maybe-TAGS-target-libgloss
c52c6897 1660TAGS-target: maybe-TAGS-target-libffi
c52c6897 1661TAGS-target: maybe-TAGS-target-zlib
c52c6897
PB
1662TAGS-target: maybe-TAGS-target-rda
1663TAGS-target: maybe-TAGS-target-libada
1664TAGS-target: maybe-TAGS-target-libgomp
7ec59b9e
L
1665TAGS-target: maybe-TAGS-target-libitm
1666TAGS-target: maybe-TAGS-target-libatomic
a2592b1b 1667
4fa63067 1668.PHONY: do-install-info
f70224b5 1669do-install-info:
0aed8855 1670 @: $(MAKE); $(unstage)
e360f423
PB
1671 @r=`${PWD_COMMAND}`; export r; \
1672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1673 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
f70224b5 1674 install-info-target
f70224b5 1675
a2592b1b 1676
4fa63067 1677.PHONY: install-info-host
c52c6897 1678
c52c6897
PB
1679install-info-host: maybe-install-info-bfd
1680install-info-host: maybe-install-info-opcodes
1681install-info-host: maybe-install-info-binutils
1682install-info-host: maybe-install-info-bison
f9806fa5 1683install-info-host: maybe-install-info-cgen
c52c6897 1684install-info-host: maybe-install-info-dejagnu
c52c6897
PB
1685install-info-host: maybe-install-info-etc
1686install-info-host: maybe-install-info-fastjar
c52c6897
PB
1687install-info-host: maybe-install-info-fixincludes
1688install-info-host: maybe-install-info-flex
1689install-info-host: maybe-install-info-gas
1690install-info-host: maybe-install-info-gcc
4b900473
PB
1691install-info-host: maybe-install-info-gmp
1692install-info-host: maybe-install-info-mpfr
e8a5fa9c 1693install-info-host: maybe-install-info-mpc
7ec59b9e 1694install-info-host: maybe-install-info-isl
1f53ca9a 1695install-info-host: maybe-install-info-libelf
93f9b408 1696install-info-host: maybe-install-info-gold
c52c6897 1697install-info-host: maybe-install-info-gprof
c52c6897
PB
1698install-info-host: maybe-install-info-intl
1699install-info-host: maybe-install-info-tcl
1700install-info-host: maybe-install-info-itcl
1701install-info-host: maybe-install-info-ld
2bf680c4 1702install-info-host: maybe-install-info-libbacktrace
c52c6897
PB
1703install-info-host: maybe-install-info-libcpp
1704install-info-host: maybe-install-info-libdecnumber
1705install-info-host: maybe-install-info-libgui
1706install-info-host: maybe-install-info-libiberty
1b6c0831 1707install-info-host: maybe-install-info-libiberty-linker-plugin
dc448a7b 1708install-info-host: maybe-install-info-libiconv
c52c6897 1709install-info-host: maybe-install-info-m4
c52c6897 1710install-info-host: maybe-install-info-readline
c52c6897
PB
1711install-info-host: maybe-install-info-sid
1712install-info-host: maybe-install-info-sim
c52c6897 1713install-info-host: maybe-install-info-texinfo
c52c6897 1714install-info-host: maybe-install-info-zlib
73cc7272 1715install-info-host: maybe-install-info-gnulib
01027315 1716install-info-host: maybe-install-info-gdbsupport
919adfe8 1717install-info-host: maybe-install-info-gdbserver
c52c6897
PB
1718install-info-host: maybe-install-info-gdb
1719install-info-host: maybe-install-info-expect
1720install-info-host: maybe-install-info-guile
1721install-info-host: maybe-install-info-tk
1722install-info-host: maybe-install-info-libtermcap
1723install-info-host: maybe-install-info-utils
1724install-info-host: maybe-install-info-gnattools
700d40ca 1725install-info-host: maybe-install-info-lto-plugin
1b6c0831
L
1726install-info-host: maybe-install-info-libcc1
1727install-info-host: maybe-install-info-gotools
0e65dfba 1728install-info-host: maybe-install-info-libctf
a2592b1b 1729
4fa63067 1730.PHONY: install-info-target
c52c6897
PB
1731
1732install-info-target: maybe-install-info-target-libstdc++-v3
5286fdef 1733install-info-target: maybe-install-info-target-libsanitizer
1b6c0831 1734install-info-target: maybe-install-info-target-libmpx
95e43135 1735install-info-target: maybe-install-info-target-libvtv
e3f56a99 1736install-info-target: maybe-install-info-target-libcilkrts
1b6c0831 1737install-info-target: maybe-install-info-target-liboffloadmic
c52c6897 1738install-info-target: maybe-install-info-target-libssp
c52c6897 1739install-info-target: maybe-install-info-target-newlib
6aa8ef82 1740install-info-target: maybe-install-info-target-libgcc
2bf680c4 1741install-info-target: maybe-install-info-target-libbacktrace
e552509b 1742install-info-target: maybe-install-info-target-libquadmath
c52c6897
PB
1743install-info-target: maybe-install-info-target-libgfortran
1744install-info-target: maybe-install-info-target-libobjc
e552509b 1745install-info-target: maybe-install-info-target-libgo
c52c6897
PB
1746install-info-target: maybe-install-info-target-libtermcap
1747install-info-target: maybe-install-info-target-winsup
1748install-info-target: maybe-install-info-target-libgloss
c52c6897 1749install-info-target: maybe-install-info-target-libffi
c52c6897 1750install-info-target: maybe-install-info-target-zlib
c52c6897
PB
1751install-info-target: maybe-install-info-target-rda
1752install-info-target: maybe-install-info-target-libada
1753install-info-target: maybe-install-info-target-libgomp
7ec59b9e
L
1754install-info-target: maybe-install-info-target-libitm
1755install-info-target: maybe-install-info-target-libatomic
2a4cbe27 1756
a3ca38d2
DD
1757.PHONY: do-install-pdf
1758do-install-pdf:
1759 @: $(MAKE); $(unstage)
1760 @r=`${PWD_COMMAND}`; export r; \
1761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1762 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-pdf-host \
1763 install-pdf-target
1764
1765
1766.PHONY: install-pdf-host
1767
a3ca38d2
DD
1768install-pdf-host: maybe-install-pdf-bfd
1769install-pdf-host: maybe-install-pdf-opcodes
1770install-pdf-host: maybe-install-pdf-binutils
1771install-pdf-host: maybe-install-pdf-bison
f9806fa5 1772install-pdf-host: maybe-install-pdf-cgen
a3ca38d2 1773install-pdf-host: maybe-install-pdf-dejagnu
a3ca38d2
DD
1774install-pdf-host: maybe-install-pdf-etc
1775install-pdf-host: maybe-install-pdf-fastjar
a3ca38d2
DD
1776install-pdf-host: maybe-install-pdf-fixincludes
1777install-pdf-host: maybe-install-pdf-flex
1778install-pdf-host: maybe-install-pdf-gas
1779install-pdf-host: maybe-install-pdf-gcc
a3ca38d2
DD
1780install-pdf-host: maybe-install-pdf-gmp
1781install-pdf-host: maybe-install-pdf-mpfr
e8a5fa9c 1782install-pdf-host: maybe-install-pdf-mpc
7ec59b9e 1783install-pdf-host: maybe-install-pdf-isl
1f53ca9a 1784install-pdf-host: maybe-install-pdf-libelf
93f9b408 1785install-pdf-host: maybe-install-pdf-gold
a3ca38d2 1786install-pdf-host: maybe-install-pdf-gprof
a3ca38d2
DD
1787install-pdf-host: maybe-install-pdf-intl
1788install-pdf-host: maybe-install-pdf-tcl
1789install-pdf-host: maybe-install-pdf-itcl
1790install-pdf-host: maybe-install-pdf-ld
2bf680c4 1791install-pdf-host: maybe-install-pdf-libbacktrace
a3ca38d2
DD
1792install-pdf-host: maybe-install-pdf-libcpp
1793install-pdf-host: maybe-install-pdf-libdecnumber
1794install-pdf-host: maybe-install-pdf-libgui
1795install-pdf-host: maybe-install-pdf-libiberty
1b6c0831 1796install-pdf-host: maybe-install-pdf-libiberty-linker-plugin
dc448a7b 1797install-pdf-host: maybe-install-pdf-libiconv
a3ca38d2 1798install-pdf-host: maybe-install-pdf-m4
a3ca38d2 1799install-pdf-host: maybe-install-pdf-readline
a3ca38d2
DD
1800install-pdf-host: maybe-install-pdf-sid
1801install-pdf-host: maybe-install-pdf-sim
a3ca38d2 1802install-pdf-host: maybe-install-pdf-texinfo
a3ca38d2 1803install-pdf-host: maybe-install-pdf-zlib
73cc7272 1804install-pdf-host: maybe-install-pdf-gnulib
01027315 1805install-pdf-host: maybe-install-pdf-gdbsupport
919adfe8 1806install-pdf-host: maybe-install-pdf-gdbserver
a3ca38d2
DD
1807install-pdf-host: maybe-install-pdf-gdb
1808install-pdf-host: maybe-install-pdf-expect
1809install-pdf-host: maybe-install-pdf-guile
1810install-pdf-host: maybe-install-pdf-tk
1811install-pdf-host: maybe-install-pdf-libtermcap
1812install-pdf-host: maybe-install-pdf-utils
1813install-pdf-host: maybe-install-pdf-gnattools
700d40ca 1814install-pdf-host: maybe-install-pdf-lto-plugin
1b6c0831
L
1815install-pdf-host: maybe-install-pdf-libcc1
1816install-pdf-host: maybe-install-pdf-gotools
0e65dfba 1817install-pdf-host: maybe-install-pdf-libctf
a3ca38d2
DD
1818
1819.PHONY: install-pdf-target
1820
1821install-pdf-target: maybe-install-pdf-target-libstdc++-v3
5286fdef 1822install-pdf-target: maybe-install-pdf-target-libsanitizer
1b6c0831 1823install-pdf-target: maybe-install-pdf-target-libmpx
95e43135 1824install-pdf-target: maybe-install-pdf-target-libvtv
e3f56a99 1825install-pdf-target: maybe-install-pdf-target-libcilkrts
1b6c0831 1826install-pdf-target: maybe-install-pdf-target-liboffloadmic
a3ca38d2
DD
1827install-pdf-target: maybe-install-pdf-target-libssp
1828install-pdf-target: maybe-install-pdf-target-newlib
1829install-pdf-target: maybe-install-pdf-target-libgcc
2bf680c4 1830install-pdf-target: maybe-install-pdf-target-libbacktrace
e552509b 1831install-pdf-target: maybe-install-pdf-target-libquadmath
a3ca38d2
DD
1832install-pdf-target: maybe-install-pdf-target-libgfortran
1833install-pdf-target: maybe-install-pdf-target-libobjc
e552509b 1834install-pdf-target: maybe-install-pdf-target-libgo
a3ca38d2
DD
1835install-pdf-target: maybe-install-pdf-target-libtermcap
1836install-pdf-target: maybe-install-pdf-target-winsup
1837install-pdf-target: maybe-install-pdf-target-libgloss
a3ca38d2 1838install-pdf-target: maybe-install-pdf-target-libffi
a3ca38d2 1839install-pdf-target: maybe-install-pdf-target-zlib
a3ca38d2
DD
1840install-pdf-target: maybe-install-pdf-target-rda
1841install-pdf-target: maybe-install-pdf-target-libada
1842install-pdf-target: maybe-install-pdf-target-libgomp
7ec59b9e
L
1843install-pdf-target: maybe-install-pdf-target-libitm
1844install-pdf-target: maybe-install-pdf-target-libatomic
a3ca38d2 1845
108a6f8e
CD
1846.PHONY: do-install-html
1847do-install-html:
1848 @: $(MAKE); $(unstage)
1849 @r=`${PWD_COMMAND}`; export r; \
1850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1851 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1852 install-html-target
1853
1854
1855.PHONY: install-html-host
1856
108a6f8e
CD
1857install-html-host: maybe-install-html-bfd
1858install-html-host: maybe-install-html-opcodes
1859install-html-host: maybe-install-html-binutils
1860install-html-host: maybe-install-html-bison
f9806fa5 1861install-html-host: maybe-install-html-cgen
108a6f8e 1862install-html-host: maybe-install-html-dejagnu
108a6f8e
CD
1863install-html-host: maybe-install-html-etc
1864install-html-host: maybe-install-html-fastjar
108a6f8e
CD
1865install-html-host: maybe-install-html-fixincludes
1866install-html-host: maybe-install-html-flex
1867install-html-host: maybe-install-html-gas
1868install-html-host: maybe-install-html-gcc
4b900473
PB
1869install-html-host: maybe-install-html-gmp
1870install-html-host: maybe-install-html-mpfr
e8a5fa9c 1871install-html-host: maybe-install-html-mpc
7ec59b9e 1872install-html-host: maybe-install-html-isl
1f53ca9a 1873install-html-host: maybe-install-html-libelf
93f9b408 1874install-html-host: maybe-install-html-gold
108a6f8e 1875install-html-host: maybe-install-html-gprof
108a6f8e
CD
1876install-html-host: maybe-install-html-intl
1877install-html-host: maybe-install-html-tcl
1878install-html-host: maybe-install-html-itcl
1879install-html-host: maybe-install-html-ld
2bf680c4 1880install-html-host: maybe-install-html-libbacktrace
108a6f8e
CD
1881install-html-host: maybe-install-html-libcpp
1882install-html-host: maybe-install-html-libdecnumber
1883install-html-host: maybe-install-html-libgui
1884install-html-host: maybe-install-html-libiberty
1b6c0831 1885install-html-host: maybe-install-html-libiberty-linker-plugin
dc448a7b 1886install-html-host: maybe-install-html-libiconv
108a6f8e 1887install-html-host: maybe-install-html-m4
108a6f8e 1888install-html-host: maybe-install-html-readline
108a6f8e
CD
1889install-html-host: maybe-install-html-sid
1890install-html-host: maybe-install-html-sim
108a6f8e 1891install-html-host: maybe-install-html-texinfo
108a6f8e 1892install-html-host: maybe-install-html-zlib
73cc7272 1893install-html-host: maybe-install-html-gnulib
01027315 1894install-html-host: maybe-install-html-gdbsupport
919adfe8 1895install-html-host: maybe-install-html-gdbserver
108a6f8e
CD
1896install-html-host: maybe-install-html-gdb
1897install-html-host: maybe-install-html-expect
1898install-html-host: maybe-install-html-guile
1899install-html-host: maybe-install-html-tk
1900install-html-host: maybe-install-html-libtermcap
1901install-html-host: maybe-install-html-utils
1902install-html-host: maybe-install-html-gnattools
700d40ca 1903install-html-host: maybe-install-html-lto-plugin
1b6c0831
L
1904install-html-host: maybe-install-html-libcc1
1905install-html-host: maybe-install-html-gotools
0e65dfba 1906install-html-host: maybe-install-html-libctf
108a6f8e
CD
1907
1908.PHONY: install-html-target
1909
1910install-html-target: maybe-install-html-target-libstdc++-v3
5286fdef 1911install-html-target: maybe-install-html-target-libsanitizer
1b6c0831 1912install-html-target: maybe-install-html-target-libmpx
95e43135 1913install-html-target: maybe-install-html-target-libvtv
e3f56a99 1914install-html-target: maybe-install-html-target-libcilkrts
1b6c0831 1915install-html-target: maybe-install-html-target-liboffloadmic
108a6f8e 1916install-html-target: maybe-install-html-target-libssp
108a6f8e 1917install-html-target: maybe-install-html-target-newlib
6aa8ef82 1918install-html-target: maybe-install-html-target-libgcc
2bf680c4 1919install-html-target: maybe-install-html-target-libbacktrace
e552509b 1920install-html-target: maybe-install-html-target-libquadmath
108a6f8e
CD
1921install-html-target: maybe-install-html-target-libgfortran
1922install-html-target: maybe-install-html-target-libobjc
e552509b 1923install-html-target: maybe-install-html-target-libgo
108a6f8e
CD
1924install-html-target: maybe-install-html-target-libtermcap
1925install-html-target: maybe-install-html-target-winsup
1926install-html-target: maybe-install-html-target-libgloss
108a6f8e 1927install-html-target: maybe-install-html-target-libffi
108a6f8e 1928install-html-target: maybe-install-html-target-zlib
108a6f8e
CD
1929install-html-target: maybe-install-html-target-rda
1930install-html-target: maybe-install-html-target-libada
1931install-html-target: maybe-install-html-target-libgomp
7ec59b9e
L
1932install-html-target: maybe-install-html-target-libitm
1933install-html-target: maybe-install-html-target-libatomic
108a6f8e 1934
2a4cbe27 1935.PHONY: do-installcheck
f70224b5 1936do-installcheck:
0aed8855 1937 @: $(MAKE); $(unstage)
e360f423
PB
1938 @r=`${PWD_COMMAND}`; export r; \
1939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1940 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
f70224b5 1941 installcheck-target
f70224b5 1942
2a4cbe27
NN
1943
1944.PHONY: installcheck-host
c52c6897 1945
c52c6897
PB
1946installcheck-host: maybe-installcheck-bfd
1947installcheck-host: maybe-installcheck-opcodes
1948installcheck-host: maybe-installcheck-binutils
1949installcheck-host: maybe-installcheck-bison
f9806fa5 1950installcheck-host: maybe-installcheck-cgen
c52c6897 1951installcheck-host: maybe-installcheck-dejagnu
c52c6897
PB
1952installcheck-host: maybe-installcheck-etc
1953installcheck-host: maybe-installcheck-fastjar
c52c6897
PB
1954installcheck-host: maybe-installcheck-fixincludes
1955installcheck-host: maybe-installcheck-flex
1956installcheck-host: maybe-installcheck-gas
1957installcheck-host: maybe-installcheck-gcc
4b900473
PB
1958installcheck-host: maybe-installcheck-gmp
1959installcheck-host: maybe-installcheck-mpfr
e8a5fa9c 1960installcheck-host: maybe-installcheck-mpc
7ec59b9e 1961installcheck-host: maybe-installcheck-isl
1f53ca9a 1962installcheck-host: maybe-installcheck-libelf
93f9b408 1963installcheck-host: maybe-installcheck-gold
c52c6897 1964installcheck-host: maybe-installcheck-gprof
c52c6897
PB
1965installcheck-host: maybe-installcheck-intl
1966installcheck-host: maybe-installcheck-tcl
1967installcheck-host: maybe-installcheck-itcl
1968installcheck-host: maybe-installcheck-ld
2bf680c4 1969installcheck-host: maybe-installcheck-libbacktrace
c52c6897
PB
1970installcheck-host: maybe-installcheck-libcpp
1971installcheck-host: maybe-installcheck-libdecnumber
1972installcheck-host: maybe-installcheck-libgui
1973installcheck-host: maybe-installcheck-libiberty
1b6c0831 1974installcheck-host: maybe-installcheck-libiberty-linker-plugin
dc448a7b 1975installcheck-host: maybe-installcheck-libiconv
c52c6897 1976installcheck-host: maybe-installcheck-m4
c52c6897 1977installcheck-host: maybe-installcheck-readline
c52c6897
PB
1978installcheck-host: maybe-installcheck-sid
1979installcheck-host: maybe-installcheck-sim
c52c6897 1980installcheck-host: maybe-installcheck-texinfo
c52c6897 1981installcheck-host: maybe-installcheck-zlib
73cc7272 1982installcheck-host: maybe-installcheck-gnulib
01027315 1983installcheck-host: maybe-installcheck-gdbsupport
919adfe8 1984installcheck-host: maybe-installcheck-gdbserver
c52c6897
PB
1985installcheck-host: maybe-installcheck-gdb
1986installcheck-host: maybe-installcheck-expect
1987installcheck-host: maybe-installcheck-guile
1988installcheck-host: maybe-installcheck-tk
1989installcheck-host: maybe-installcheck-libtermcap
1990installcheck-host: maybe-installcheck-utils
1991installcheck-host: maybe-installcheck-gnattools
700d40ca 1992installcheck-host: maybe-installcheck-lto-plugin
1b6c0831
L
1993installcheck-host: maybe-installcheck-libcc1
1994installcheck-host: maybe-installcheck-gotools
0e65dfba 1995installcheck-host: maybe-installcheck-libctf
2a4cbe27
NN
1996
1997.PHONY: installcheck-target
c52c6897
PB
1998
1999installcheck-target: maybe-installcheck-target-libstdc++-v3
5286fdef 2000installcheck-target: maybe-installcheck-target-libsanitizer
1b6c0831 2001installcheck-target: maybe-installcheck-target-libmpx
95e43135 2002installcheck-target: maybe-installcheck-target-libvtv
e3f56a99 2003installcheck-target: maybe-installcheck-target-libcilkrts
1b6c0831 2004installcheck-target: maybe-installcheck-target-liboffloadmic
c52c6897 2005installcheck-target: maybe-installcheck-target-libssp
c52c6897 2006installcheck-target: maybe-installcheck-target-newlib
6aa8ef82 2007installcheck-target: maybe-installcheck-target-libgcc
2bf680c4 2008installcheck-target: maybe-installcheck-target-libbacktrace
e552509b 2009installcheck-target: maybe-installcheck-target-libquadmath
c52c6897
PB
2010installcheck-target: maybe-installcheck-target-libgfortran
2011installcheck-target: maybe-installcheck-target-libobjc
e552509b 2012installcheck-target: maybe-installcheck-target-libgo
c52c6897
PB
2013installcheck-target: maybe-installcheck-target-libtermcap
2014installcheck-target: maybe-installcheck-target-winsup
2015installcheck-target: maybe-installcheck-target-libgloss
c52c6897 2016installcheck-target: maybe-installcheck-target-libffi
c52c6897 2017installcheck-target: maybe-installcheck-target-zlib
c52c6897
PB
2018installcheck-target: maybe-installcheck-target-rda
2019installcheck-target: maybe-installcheck-target-libada
2020installcheck-target: maybe-installcheck-target-libgomp
7ec59b9e
L
2021installcheck-target: maybe-installcheck-target-libitm
2022installcheck-target: maybe-installcheck-target-libatomic
2a4cbe27 2023
4fa63067 2024.PHONY: do-mostlyclean
f70224b5 2025do-mostlyclean:
0aed8855 2026 @: $(MAKE); $(unstage)
e360f423
PB
2027 @r=`${PWD_COMMAND}`; export r; \
2028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2029 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
f70224b5 2030 mostlyclean-target
f70224b5 2031
2a4cbe27 2032
4fa63067 2033.PHONY: mostlyclean-host
c52c6897 2034
c52c6897
PB
2035mostlyclean-host: maybe-mostlyclean-bfd
2036mostlyclean-host: maybe-mostlyclean-opcodes
2037mostlyclean-host: maybe-mostlyclean-binutils
2038mostlyclean-host: maybe-mostlyclean-bison
f9806fa5 2039mostlyclean-host: maybe-mostlyclean-cgen
c52c6897 2040mostlyclean-host: maybe-mostlyclean-dejagnu
c52c6897
PB
2041mostlyclean-host: maybe-mostlyclean-etc
2042mostlyclean-host: maybe-mostlyclean-fastjar
c52c6897
PB
2043mostlyclean-host: maybe-mostlyclean-fixincludes
2044mostlyclean-host: maybe-mostlyclean-flex
2045mostlyclean-host: maybe-mostlyclean-gas
2046mostlyclean-host: maybe-mostlyclean-gcc
4b900473
PB
2047mostlyclean-host: maybe-mostlyclean-gmp
2048mostlyclean-host: maybe-mostlyclean-mpfr
e8a5fa9c 2049mostlyclean-host: maybe-mostlyclean-mpc
7ec59b9e 2050mostlyclean-host: maybe-mostlyclean-isl
1f53ca9a 2051mostlyclean-host: maybe-mostlyclean-libelf
93f9b408 2052mostlyclean-host: maybe-mostlyclean-gold
c52c6897 2053mostlyclean-host: maybe-mostlyclean-gprof
c52c6897
PB
2054mostlyclean-host: maybe-mostlyclean-intl
2055mostlyclean-host: maybe-mostlyclean-tcl
2056mostlyclean-host: maybe-mostlyclean-itcl
2057mostlyclean-host: maybe-mostlyclean-ld
2bf680c4 2058mostlyclean-host: maybe-mostlyclean-libbacktrace
c52c6897
PB
2059mostlyclean-host: maybe-mostlyclean-libcpp
2060mostlyclean-host: maybe-mostlyclean-libdecnumber
2061mostlyclean-host: maybe-mostlyclean-libgui
2062mostlyclean-host: maybe-mostlyclean-libiberty
1b6c0831 2063mostlyclean-host: maybe-mostlyclean-libiberty-linker-plugin
dc448a7b 2064mostlyclean-host: maybe-mostlyclean-libiconv
c52c6897 2065mostlyclean-host: maybe-mostlyclean-m4
c52c6897 2066mostlyclean-host: maybe-mostlyclean-readline
c52c6897
PB
2067mostlyclean-host: maybe-mostlyclean-sid
2068mostlyclean-host: maybe-mostlyclean-sim
c52c6897 2069mostlyclean-host: maybe-mostlyclean-texinfo
c52c6897 2070mostlyclean-host: maybe-mostlyclean-zlib
73cc7272 2071mostlyclean-host: maybe-mostlyclean-gnulib
01027315 2072mostlyclean-host: maybe-mostlyclean-gdbsupport
919adfe8 2073mostlyclean-host: maybe-mostlyclean-gdbserver
c52c6897
PB
2074mostlyclean-host: maybe-mostlyclean-gdb
2075mostlyclean-host: maybe-mostlyclean-expect
2076mostlyclean-host: maybe-mostlyclean-guile
2077mostlyclean-host: maybe-mostlyclean-tk
2078mostlyclean-host: maybe-mostlyclean-libtermcap
2079mostlyclean-host: maybe-mostlyclean-utils
2080mostlyclean-host: maybe-mostlyclean-gnattools
700d40ca 2081mostlyclean-host: maybe-mostlyclean-lto-plugin
1b6c0831
L
2082mostlyclean-host: maybe-mostlyclean-libcc1
2083mostlyclean-host: maybe-mostlyclean-gotools
0e65dfba 2084mostlyclean-host: maybe-mostlyclean-libctf
2a4cbe27 2085
4fa63067 2086.PHONY: mostlyclean-target
c52c6897
PB
2087
2088mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
5286fdef 2089mostlyclean-target: maybe-mostlyclean-target-libsanitizer
1b6c0831 2090mostlyclean-target: maybe-mostlyclean-target-libmpx
95e43135 2091mostlyclean-target: maybe-mostlyclean-target-libvtv
e3f56a99 2092mostlyclean-target: maybe-mostlyclean-target-libcilkrts
1b6c0831 2093mostlyclean-target: maybe-mostlyclean-target-liboffloadmic
c52c6897 2094mostlyclean-target: maybe-mostlyclean-target-libssp
c52c6897 2095mostlyclean-target: maybe-mostlyclean-target-newlib
6aa8ef82 2096mostlyclean-target: maybe-mostlyclean-target-libgcc
2bf680c4 2097mostlyclean-target: maybe-mostlyclean-target-libbacktrace
e552509b 2098mostlyclean-target: maybe-mostlyclean-target-libquadmath
c52c6897
PB
2099mostlyclean-target: maybe-mostlyclean-target-libgfortran
2100mostlyclean-target: maybe-mostlyclean-target-libobjc
e552509b 2101mostlyclean-target: maybe-mostlyclean-target-libgo
c52c6897
PB
2102mostlyclean-target: maybe-mostlyclean-target-libtermcap
2103mostlyclean-target: maybe-mostlyclean-target-winsup
2104mostlyclean-target: maybe-mostlyclean-target-libgloss
c52c6897 2105mostlyclean-target: maybe-mostlyclean-target-libffi
c52c6897 2106mostlyclean-target: maybe-mostlyclean-target-zlib
c52c6897
PB
2107mostlyclean-target: maybe-mostlyclean-target-rda
2108mostlyclean-target: maybe-mostlyclean-target-libada
2109mostlyclean-target: maybe-mostlyclean-target-libgomp
7ec59b9e
L
2110mostlyclean-target: maybe-mostlyclean-target-libitm
2111mostlyclean-target: maybe-mostlyclean-target-libatomic
2a4cbe27 2112
4fa63067 2113.PHONY: do-clean
f70224b5 2114do-clean:
0aed8855 2115 @: $(MAKE); $(unstage)
e360f423
PB
2116 @r=`${PWD_COMMAND}`; export r; \
2117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2118 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
f70224b5 2119 clean-target
f70224b5 2120
2a4cbe27 2121
4fa63067 2122.PHONY: clean-host
c52c6897 2123
c52c6897
PB
2124clean-host: maybe-clean-bfd
2125clean-host: maybe-clean-opcodes
2126clean-host: maybe-clean-binutils
2127clean-host: maybe-clean-bison
f9806fa5 2128clean-host: maybe-clean-cgen
c52c6897 2129clean-host: maybe-clean-dejagnu
c52c6897
PB
2130clean-host: maybe-clean-etc
2131clean-host: maybe-clean-fastjar
c52c6897
PB
2132clean-host: maybe-clean-fixincludes
2133clean-host: maybe-clean-flex
2134clean-host: maybe-clean-gas
2135clean-host: maybe-clean-gcc
4b900473
PB
2136clean-host: maybe-clean-gmp
2137clean-host: maybe-clean-mpfr
e8a5fa9c 2138clean-host: maybe-clean-mpc
7ec59b9e 2139clean-host: maybe-clean-isl
1f53ca9a 2140clean-host: maybe-clean-libelf
93f9b408 2141clean-host: maybe-clean-gold
c52c6897 2142clean-host: maybe-clean-gprof
c52c6897
PB
2143clean-host: maybe-clean-intl
2144clean-host: maybe-clean-tcl
2145clean-host: maybe-clean-itcl
2146clean-host: maybe-clean-ld
2bf680c4 2147clean-host: maybe-clean-libbacktrace
c52c6897
PB
2148clean-host: maybe-clean-libcpp
2149clean-host: maybe-clean-libdecnumber
2150clean-host: maybe-clean-libgui
2151clean-host: maybe-clean-libiberty
1b6c0831 2152clean-host: maybe-clean-libiberty-linker-plugin
dc448a7b 2153clean-host: maybe-clean-libiconv
c52c6897 2154clean-host: maybe-clean-m4
c52c6897 2155clean-host: maybe-clean-readline
c52c6897
PB
2156clean-host: maybe-clean-sid
2157clean-host: maybe-clean-sim
c52c6897 2158clean-host: maybe-clean-texinfo
c52c6897 2159clean-host: maybe-clean-zlib
73cc7272 2160clean-host: maybe-clean-gnulib
01027315 2161clean-host: maybe-clean-gdbsupport
919adfe8 2162clean-host: maybe-clean-gdbserver
c52c6897
PB
2163clean-host: maybe-clean-gdb
2164clean-host: maybe-clean-expect
2165clean-host: maybe-clean-guile
2166clean-host: maybe-clean-tk
2167clean-host: maybe-clean-libtermcap
2168clean-host: maybe-clean-utils
2169clean-host: maybe-clean-gnattools
700d40ca 2170clean-host: maybe-clean-lto-plugin
1b6c0831
L
2171clean-host: maybe-clean-libcc1
2172clean-host: maybe-clean-gotools
0e65dfba 2173clean-host: maybe-clean-libctf
2a4cbe27 2174
4fa63067 2175.PHONY: clean-target
c52c6897
PB
2176
2177clean-target: maybe-clean-target-libstdc++-v3
5286fdef 2178clean-target: maybe-clean-target-libsanitizer
1b6c0831 2179clean-target: maybe-clean-target-libmpx
95e43135 2180clean-target: maybe-clean-target-libvtv
e3f56a99 2181clean-target: maybe-clean-target-libcilkrts
1b6c0831 2182clean-target: maybe-clean-target-liboffloadmic
c52c6897 2183clean-target: maybe-clean-target-libssp
c52c6897 2184clean-target: maybe-clean-target-newlib
6aa8ef82 2185clean-target: maybe-clean-target-libgcc
2bf680c4 2186clean-target: maybe-clean-target-libbacktrace
e552509b 2187clean-target: maybe-clean-target-libquadmath
c52c6897
PB
2188clean-target: maybe-clean-target-libgfortran
2189clean-target: maybe-clean-target-libobjc
e552509b 2190clean-target: maybe-clean-target-libgo
c52c6897
PB
2191clean-target: maybe-clean-target-libtermcap
2192clean-target: maybe-clean-target-winsup
2193clean-target: maybe-clean-target-libgloss
c52c6897 2194clean-target: maybe-clean-target-libffi
c52c6897 2195clean-target: maybe-clean-target-zlib
c52c6897
PB
2196clean-target: maybe-clean-target-rda
2197clean-target: maybe-clean-target-libada
2198clean-target: maybe-clean-target-libgomp
7ec59b9e
L
2199clean-target: maybe-clean-target-libitm
2200clean-target: maybe-clean-target-libatomic
2a4cbe27 2201
4fa63067 2202.PHONY: do-distclean
f70224b5 2203do-distclean:
0aed8855 2204 @: $(MAKE); $(unstage)
e360f423
PB
2205 @r=`${PWD_COMMAND}`; export r; \
2206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2207 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
f70224b5 2208 distclean-target
f70224b5 2209
2a4cbe27 2210
4fa63067 2211.PHONY: distclean-host
c52c6897 2212
c52c6897
PB
2213distclean-host: maybe-distclean-bfd
2214distclean-host: maybe-distclean-opcodes
2215distclean-host: maybe-distclean-binutils
2216distclean-host: maybe-distclean-bison
f9806fa5 2217distclean-host: maybe-distclean-cgen
c52c6897 2218distclean-host: maybe-distclean-dejagnu
c52c6897
PB
2219distclean-host: maybe-distclean-etc
2220distclean-host: maybe-distclean-fastjar
c52c6897
PB
2221distclean-host: maybe-distclean-fixincludes
2222distclean-host: maybe-distclean-flex
2223distclean-host: maybe-distclean-gas
2224distclean-host: maybe-distclean-gcc
4b900473
PB
2225distclean-host: maybe-distclean-gmp
2226distclean-host: maybe-distclean-mpfr
e8a5fa9c 2227distclean-host: maybe-distclean-mpc
7ec59b9e 2228distclean-host: maybe-distclean-isl
1f53ca9a 2229distclean-host: maybe-distclean-libelf
93f9b408 2230distclean-host: maybe-distclean-gold
c52c6897 2231distclean-host: maybe-distclean-gprof
c52c6897
PB
2232distclean-host: maybe-distclean-intl
2233distclean-host: maybe-distclean-tcl
2234distclean-host: maybe-distclean-itcl
2235distclean-host: maybe-distclean-ld
2bf680c4 2236distclean-host: maybe-distclean-libbacktrace
c52c6897
PB
2237distclean-host: maybe-distclean-libcpp
2238distclean-host: maybe-distclean-libdecnumber
2239distclean-host: maybe-distclean-libgui
2240distclean-host: maybe-distclean-libiberty
1b6c0831 2241distclean-host: maybe-distclean-libiberty-linker-plugin
dc448a7b 2242distclean-host: maybe-distclean-libiconv
c52c6897 2243distclean-host: maybe-distclean-m4
c52c6897 2244distclean-host: maybe-distclean-readline
c52c6897
PB
2245distclean-host: maybe-distclean-sid
2246distclean-host: maybe-distclean-sim
c52c6897 2247distclean-host: maybe-distclean-texinfo
c52c6897 2248distclean-host: maybe-distclean-zlib
73cc7272 2249distclean-host: maybe-distclean-gnulib
01027315 2250distclean-host: maybe-distclean-gdbsupport
919adfe8 2251distclean-host: maybe-distclean-gdbserver
c52c6897
PB
2252distclean-host: maybe-distclean-gdb
2253distclean-host: maybe-distclean-expect
2254distclean-host: maybe-distclean-guile
2255distclean-host: maybe-distclean-tk
2256distclean-host: maybe-distclean-libtermcap
2257distclean-host: maybe-distclean-utils
2258distclean-host: maybe-distclean-gnattools
700d40ca 2259distclean-host: maybe-distclean-lto-plugin
1b6c0831
L
2260distclean-host: maybe-distclean-libcc1
2261distclean-host: maybe-distclean-gotools
0e65dfba 2262distclean-host: maybe-distclean-libctf
2a4cbe27 2263
4fa63067 2264.PHONY: distclean-target
c52c6897
PB
2265
2266distclean-target: maybe-distclean-target-libstdc++-v3
5286fdef 2267distclean-target: maybe-distclean-target-libsanitizer
1b6c0831 2268distclean-target: maybe-distclean-target-libmpx
95e43135 2269distclean-target: maybe-distclean-target-libvtv
e3f56a99 2270distclean-target: maybe-distclean-target-libcilkrts
1b6c0831 2271distclean-target: maybe-distclean-target-liboffloadmic
c52c6897 2272distclean-target: maybe-distclean-target-libssp
c52c6897 2273distclean-target: maybe-distclean-target-newlib
6aa8ef82 2274distclean-target: maybe-distclean-target-libgcc
2bf680c4 2275distclean-target: maybe-distclean-target-libbacktrace
e552509b 2276distclean-target: maybe-distclean-target-libquadmath
c52c6897
PB
2277distclean-target: maybe-distclean-target-libgfortran
2278distclean-target: maybe-distclean-target-libobjc
e552509b 2279distclean-target: maybe-distclean-target-libgo
c52c6897
PB
2280distclean-target: maybe-distclean-target-libtermcap
2281distclean-target: maybe-distclean-target-winsup
2282distclean-target: maybe-distclean-target-libgloss
c52c6897 2283distclean-target: maybe-distclean-target-libffi
c52c6897 2284distclean-target: maybe-distclean-target-zlib
c52c6897
PB
2285distclean-target: maybe-distclean-target-rda
2286distclean-target: maybe-distclean-target-libada
2287distclean-target: maybe-distclean-target-libgomp
7ec59b9e
L
2288distclean-target: maybe-distclean-target-libitm
2289distclean-target: maybe-distclean-target-libatomic
2a4cbe27 2290
4fa63067 2291.PHONY: do-maintainer-clean
f70224b5 2292do-maintainer-clean:
0aed8855 2293 @: $(MAKE); $(unstage)
e360f423
PB
2294 @r=`${PWD_COMMAND}`; export r; \
2295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2296 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
f70224b5 2297 maintainer-clean-target
f70224b5 2298
2a4cbe27 2299
4fa63067 2300.PHONY: maintainer-clean-host
c52c6897 2301
c52c6897
PB
2302maintainer-clean-host: maybe-maintainer-clean-bfd
2303maintainer-clean-host: maybe-maintainer-clean-opcodes
2304maintainer-clean-host: maybe-maintainer-clean-binutils
2305maintainer-clean-host: maybe-maintainer-clean-bison
f9806fa5 2306maintainer-clean-host: maybe-maintainer-clean-cgen
c52c6897 2307maintainer-clean-host: maybe-maintainer-clean-dejagnu
c52c6897
PB
2308maintainer-clean-host: maybe-maintainer-clean-etc
2309maintainer-clean-host: maybe-maintainer-clean-fastjar
c52c6897
PB
2310maintainer-clean-host: maybe-maintainer-clean-fixincludes
2311maintainer-clean-host: maybe-maintainer-clean-flex
2312maintainer-clean-host: maybe-maintainer-clean-gas
2313maintainer-clean-host: maybe-maintainer-clean-gcc
4b900473
PB
2314maintainer-clean-host: maybe-maintainer-clean-gmp
2315maintainer-clean-host: maybe-maintainer-clean-mpfr
e8a5fa9c 2316maintainer-clean-host: maybe-maintainer-clean-mpc
7ec59b9e 2317maintainer-clean-host: maybe-maintainer-clean-isl
1f53ca9a 2318maintainer-clean-host: maybe-maintainer-clean-libelf
93f9b408 2319maintainer-clean-host: maybe-maintainer-clean-gold
c52c6897 2320maintainer-clean-host: maybe-maintainer-clean-gprof
c52c6897
PB
2321maintainer-clean-host: maybe-maintainer-clean-intl
2322maintainer-clean-host: maybe-maintainer-clean-tcl
2323maintainer-clean-host: maybe-maintainer-clean-itcl
2324maintainer-clean-host: maybe-maintainer-clean-ld
2bf680c4 2325maintainer-clean-host: maybe-maintainer-clean-libbacktrace
c52c6897
PB
2326maintainer-clean-host: maybe-maintainer-clean-libcpp
2327maintainer-clean-host: maybe-maintainer-clean-libdecnumber
2328maintainer-clean-host: maybe-maintainer-clean-libgui
2329maintainer-clean-host: maybe-maintainer-clean-libiberty
1b6c0831 2330maintainer-clean-host: maybe-maintainer-clean-libiberty-linker-plugin
dc448a7b 2331maintainer-clean-host: maybe-maintainer-clean-libiconv
c52c6897 2332maintainer-clean-host: maybe-maintainer-clean-m4
c52c6897 2333maintainer-clean-host: maybe-maintainer-clean-readline
c52c6897
PB
2334maintainer-clean-host: maybe-maintainer-clean-sid
2335maintainer-clean-host: maybe-maintainer-clean-sim
c52c6897 2336maintainer-clean-host: maybe-maintainer-clean-texinfo
c52c6897 2337maintainer-clean-host: maybe-maintainer-clean-zlib
73cc7272 2338maintainer-clean-host: maybe-maintainer-clean-gnulib
01027315 2339maintainer-clean-host: maybe-maintainer-clean-gdbsupport
919adfe8 2340maintainer-clean-host: maybe-maintainer-clean-gdbserver
c52c6897
PB
2341maintainer-clean-host: maybe-maintainer-clean-gdb
2342maintainer-clean-host: maybe-maintainer-clean-expect
2343maintainer-clean-host: maybe-maintainer-clean-guile
2344maintainer-clean-host: maybe-maintainer-clean-tk
2345maintainer-clean-host: maybe-maintainer-clean-libtermcap
2346maintainer-clean-host: maybe-maintainer-clean-utils
2347maintainer-clean-host: maybe-maintainer-clean-gnattools
700d40ca 2348maintainer-clean-host: maybe-maintainer-clean-lto-plugin
1b6c0831
L
2349maintainer-clean-host: maybe-maintainer-clean-libcc1
2350maintainer-clean-host: maybe-maintainer-clean-gotools
0e65dfba 2351maintainer-clean-host: maybe-maintainer-clean-libctf
2a4cbe27 2352
4fa63067 2353.PHONY: maintainer-clean-target
c52c6897
PB
2354
2355maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
5286fdef 2356maintainer-clean-target: maybe-maintainer-clean-target-libsanitizer
1b6c0831 2357maintainer-clean-target: maybe-maintainer-clean-target-libmpx
95e43135 2358maintainer-clean-target: maybe-maintainer-clean-target-libvtv
e3f56a99 2359maintainer-clean-target: maybe-maintainer-clean-target-libcilkrts
1b6c0831 2360maintainer-clean-target: maybe-maintainer-clean-target-liboffloadmic
c52c6897 2361maintainer-clean-target: maybe-maintainer-clean-target-libssp
c52c6897 2362maintainer-clean-target: maybe-maintainer-clean-target-newlib
6aa8ef82 2363maintainer-clean-target: maybe-maintainer-clean-target-libgcc
2bf680c4 2364maintainer-clean-target: maybe-maintainer-clean-target-libbacktrace
e552509b 2365maintainer-clean-target: maybe-maintainer-clean-target-libquadmath
c52c6897
PB
2366maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2367maintainer-clean-target: maybe-maintainer-clean-target-libobjc
e552509b 2368maintainer-clean-target: maybe-maintainer-clean-target-libgo
c52c6897
PB
2369maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2370maintainer-clean-target: maybe-maintainer-clean-target-winsup
2371maintainer-clean-target: maybe-maintainer-clean-target-libgloss
c52c6897 2372maintainer-clean-target: maybe-maintainer-clean-target-libffi
c52c6897 2373maintainer-clean-target: maybe-maintainer-clean-target-zlib
c52c6897
PB
2374maintainer-clean-target: maybe-maintainer-clean-target-rda
2375maintainer-clean-target: maybe-maintainer-clean-target-libada
2376maintainer-clean-target: maybe-maintainer-clean-target-libgomp
7ec59b9e
L
2377maintainer-clean-target: maybe-maintainer-clean-target-libitm
2378maintainer-clean-target: maybe-maintainer-clean-target-libatomic
2a4cbe27 2379
2a4cbe27 2380
4fa63067 2381# Here are the targets which correspond to the do-X targets.
2a4cbe27 2382
a3ca38d2
DD
2383.PHONY: info installcheck dvi pdf html
2384.PHONY: install-info install-pdf install-html
4fa63067
NN
2385.PHONY: clean distclean mostlyclean maintainer-clean realclean
2386.PHONY: local-clean local-distclean local-maintainer-clean
2387info: do-info
2388installcheck: do-installcheck
2389dvi: do-dvi
56a8fe78 2390pdf: do-pdf
6d389afc 2391html: do-html
2a4cbe27 2392
4fa63067
NN
2393# Make sure makeinfo is built before we do a `make info', if we're
2394# in fact building texinfo.
2395do-info: maybe-all-texinfo
2a4cbe27 2396
4fa63067 2397install-info: do-install-info dir.info
b40e3958 2398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
2399 if [ -f dir.info ]; then \
2400 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info; \
2401 else true; fi
2a4cbe27 2402
a3ca38d2
DD
2403install-pdf: do-install-pdf
2404
108a6f8e
CD
2405install-html: do-install-html
2406
4fa63067
NN
2407local-clean:
2408 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
2a4cbe27 2409
4fa63067
NN
2410local-distclean:
2411 -rm -f Makefile config.status config.cache mh-frag mt-frag
bb7dc663 2412 -rm -f maybedep.tmp serdep.tmp stage_final
4fa63067
NN
2413 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2414 rm -rf $(TARGET_SUBDIR); \
2415 else true; fi
2416 -rm -rf $(BUILD_SUBDIR)
b00612cc
PB
2417 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2418 rm -rf $(HOST_SUBDIR); \
2419 else true; fi
4fa63067
NN
2420 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2421 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2422 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2423 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
bb7dc663
NC
2424 -rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
2425 -rmdir texinfo zlib 2>/dev/null
18fa8f9c 2426 -find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
2a4cbe27 2427
4fa63067
NN
2428local-maintainer-clean:
2429 @echo "This command is intended for maintainers to use;"
2430 @echo "it deletes files that may require special tools to rebuild."
2a4cbe27 2431
4fa63067
NN
2432clean: do-clean local-clean
2433mostlyclean: do-mostlyclean local-clean
2434distclean: do-distclean local-clean local-distclean
2435maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
2436maintainer-clean: local-distclean
2437realclean: maintainer-clean
2a4cbe27 2438
4fa63067 2439# Check target.
2a4cbe27 2440
4fa63067
NN
2441.PHONY: check do-check
2442check: do-check
2a4cbe27 2443
4fa63067 2444# Only include modules actually being configured and built.
f70224b5
PB
2445.PHONY: check-host
2446check-host: \
4fa63067
NN
2447 maybe-check-bfd \
2448 maybe-check-opcodes \
2449 maybe-check-binutils \
2450 maybe-check-bison \
f9806fa5 2451 maybe-check-cgen \
4fa63067 2452 maybe-check-dejagnu \
4fa63067
NN
2453 maybe-check-etc \
2454 maybe-check-fastjar \
d3ed111c 2455 maybe-check-fixincludes \
4fa63067
NN
2456 maybe-check-flex \
2457 maybe-check-gas \
b813574b 2458 maybe-check-gcc \
4b900473
PB
2459 maybe-check-gmp \
2460 maybe-check-mpfr \
e8a5fa9c 2461 maybe-check-mpc \
7ec59b9e 2462 maybe-check-isl \
1f53ca9a 2463 maybe-check-libelf \
93f9b408 2464 maybe-check-gold \
4fa63067 2465 maybe-check-gprof \
4fa63067
NN
2466 maybe-check-intl \
2467 maybe-check-tcl \
2468 maybe-check-itcl \
2469 maybe-check-ld \
2bf680c4 2470 maybe-check-libbacktrace \
04cf1b77 2471 maybe-check-libcpp \
be01d343 2472 maybe-check-libdecnumber \
4fa63067
NN
2473 maybe-check-libgui \
2474 maybe-check-libiberty \
1b6c0831 2475 maybe-check-libiberty-linker-plugin \
dc448a7b 2476 maybe-check-libiconv \
4fa63067 2477 maybe-check-m4 \
4fa63067 2478 maybe-check-readline \
4fa63067
NN
2479 maybe-check-sid \
2480 maybe-check-sim \
4fa63067 2481 maybe-check-texinfo \
4fa63067 2482 maybe-check-zlib \
73cc7272 2483 maybe-check-gnulib \
01027315 2484 maybe-check-gdbsupport \
919adfe8 2485 maybe-check-gdbserver \
4fa63067
NN
2486 maybe-check-gdb \
2487 maybe-check-expect \
2488 maybe-check-guile \
2489 maybe-check-tk \
4fa63067
NN
2490 maybe-check-libtermcap \
2491 maybe-check-utils \
700d40ca 2492 maybe-check-gnattools \
1b6c0831
L
2493 maybe-check-lto-plugin \
2494 maybe-check-libcc1 \
0e65dfba
NA
2495 maybe-check-gotools \
2496 maybe-check-libctf
f70224b5
PB
2497
2498.PHONY: check-target
2499check-target: \
4fa63067 2500 maybe-check-target-libstdc++-v3 \
5286fdef 2501 maybe-check-target-libsanitizer \
1b6c0831 2502 maybe-check-target-libmpx \
95e43135 2503 maybe-check-target-libvtv \
e3f56a99 2504 maybe-check-target-libcilkrts \
1b6c0831 2505 maybe-check-target-liboffloadmic \
064d0a7c 2506 maybe-check-target-libssp \
4fa63067 2507 maybe-check-target-newlib \
6aa8ef82 2508 maybe-check-target-libgcc \
2bf680c4 2509 maybe-check-target-libbacktrace \
e552509b 2510 maybe-check-target-libquadmath \
4b1cb4fe 2511 maybe-check-target-libgfortran \
4fa63067 2512 maybe-check-target-libobjc \
e552509b 2513 maybe-check-target-libgo \
4fa63067
NN
2514 maybe-check-target-libtermcap \
2515 maybe-check-target-winsup \
2516 maybe-check-target-libgloss \
4fa63067 2517 maybe-check-target-libffi \
4fa63067 2518 maybe-check-target-zlib \
4fa63067 2519 maybe-check-target-rda \
b3ded179 2520 maybe-check-target-libada \
7ec59b9e
L
2521 maybe-check-target-libgomp \
2522 maybe-check-target-libitm \
2523 maybe-check-target-libatomic
f70224b5
PB
2524
2525do-check:
0aed8855 2526 @: $(MAKE); $(unstage)
e360f423
PB
2527 @r=`${PWD_COMMAND}`; export r; \
2528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2529 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
2a4cbe27 2530
4fa63067 2531# Automated reporting of test results.
2a4cbe27 2532
4fa63067
NN
2533warning.log: build.log
2534 $(srcdir)/contrib/warn_summary build.log > $@
2a4cbe27 2535
4fa63067
NN
2536mail-report.log:
2537 if test x'$(BOOT_CFLAGS)' != x''; then \
2538 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2539 fi; \
2540 $(srcdir)/contrib/test_summary -t >$@
2541 chmod +x $@
2542 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2543
4fa63067
NN
2544mail-report-with-warnings.log: warning.log
2545 if test x'$(BOOT_CFLAGS)' != x''; then \
2546 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2547 fi; \
2548 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2549 chmod +x $@
2550 echo If you really want to send e-mail, run ./$@ now
2a4cbe27 2551
1b6c0831
L
2552# Local Vim config
2553
2554$(srcdir)/.local.vimrc:
22121df0 2555 $(LN_S) contrib/vimrc $@
1b6c0831
L
2556
2557$(srcdir)/.lvimrc:
22121df0 2558 $(LN_S) contrib/vimrc $@
1b6c0831
L
2559
2560vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
2561
2562.PHONY: vimrc
2563
4849dfd8
NC
2564# clang-format config
2565
2566$(srcdir)/.clang-format:
2567 $(LN_S) contrib/clang-format $@
2568
2569clang-format: $(srcdir)/.clang-format
2570
2571.PHONY: clang-format
2572
4fa63067 2573# Installation targets.
2a4cbe27 2574
4fa63067 2575.PHONY: install uninstall
f70224b5 2576install:
0aed8855 2577 @: $(MAKE); $(unstage)
e360f423
PB
2578 @r=`${PWD_COMMAND}`; export r; \
2579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2580 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
2a4cbe27 2581
4fa63067
NN
2582.PHONY: install-host-nogcc
2583install-host-nogcc: \
4fa63067
NN
2584 maybe-install-bfd \
2585 maybe-install-opcodes \
2586 maybe-install-binutils \
2587 maybe-install-bison \
f9806fa5 2588 maybe-install-cgen \
4fa63067 2589 maybe-install-dejagnu \
4fa63067
NN
2590 maybe-install-etc \
2591 maybe-install-fastjar \
d3ed111c 2592 maybe-install-fixincludes \
4fa63067
NN
2593 maybe-install-flex \
2594 maybe-install-gas \
4b900473
PB
2595 maybe-install-gmp \
2596 maybe-install-mpfr \
e8a5fa9c 2597 maybe-install-mpc \
7ec59b9e 2598 maybe-install-isl \
1f53ca9a 2599 maybe-install-libelf \
93f9b408 2600 maybe-install-gold \
4fa63067 2601 maybe-install-gprof \
4fa63067
NN
2602 maybe-install-intl \
2603 maybe-install-tcl \
2604 maybe-install-itcl \
2605 maybe-install-ld \
2bf680c4 2606 maybe-install-libbacktrace \
04cf1b77 2607 maybe-install-libcpp \
be01d343 2608 maybe-install-libdecnumber \
4fa63067
NN
2609 maybe-install-libgui \
2610 maybe-install-libiberty \
1b6c0831 2611 maybe-install-libiberty-linker-plugin \
dc448a7b 2612 maybe-install-libiconv \
4fa63067 2613 maybe-install-m4 \
4fa63067 2614 maybe-install-readline \
4fa63067
NN
2615 maybe-install-sid \
2616 maybe-install-sim \
4fa63067 2617 maybe-install-texinfo \
4fa63067 2618 maybe-install-zlib \
73cc7272 2619 maybe-install-gnulib \
01027315 2620 maybe-install-gdbsupport \
919adfe8 2621 maybe-install-gdbserver \
4fa63067
NN
2622 maybe-install-gdb \
2623 maybe-install-expect \
2624 maybe-install-guile \
2625 maybe-install-tk \
4fa63067 2626 maybe-install-libtermcap \
b00612cc 2627 maybe-install-utils \
700d40ca 2628 maybe-install-gnattools \
1b6c0831
L
2629 maybe-install-lto-plugin \
2630 maybe-install-libcc1 \
0e65dfba
NA
2631 maybe-install-gotools \
2632 maybe-install-libctf
2a4cbe27 2633
4fa63067 2634.PHONY: install-host
b813574b 2635install-host: \
4fa63067
NN
2636 maybe-install-bfd \
2637 maybe-install-opcodes \
2638 maybe-install-binutils \
2639 maybe-install-bison \
f9806fa5 2640 maybe-install-cgen \
4fa63067 2641 maybe-install-dejagnu \
4fa63067
NN
2642 maybe-install-etc \
2643 maybe-install-fastjar \
d3ed111c 2644 maybe-install-fixincludes \
4fa63067
NN
2645 maybe-install-flex \
2646 maybe-install-gas \
b813574b 2647 maybe-install-gcc \
4b900473
PB
2648 maybe-install-gmp \
2649 maybe-install-mpfr \
e8a5fa9c 2650 maybe-install-mpc \
7ec59b9e 2651 maybe-install-isl \
1f53ca9a 2652 maybe-install-libelf \
93f9b408 2653 maybe-install-gold \
4fa63067 2654 maybe-install-gprof \
4fa63067
NN
2655 maybe-install-intl \
2656 maybe-install-tcl \
2657 maybe-install-itcl \
2658 maybe-install-ld \
2bf680c4 2659 maybe-install-libbacktrace \
04cf1b77 2660 maybe-install-libcpp \
be01d343 2661 maybe-install-libdecnumber \
4fa63067
NN
2662 maybe-install-libgui \
2663 maybe-install-libiberty \
1b6c0831 2664 maybe-install-libiberty-linker-plugin \
dc448a7b 2665 maybe-install-libiconv \
4fa63067 2666 maybe-install-m4 \
4fa63067 2667 maybe-install-readline \
4fa63067
NN
2668 maybe-install-sid \
2669 maybe-install-sim \
4fa63067 2670 maybe-install-texinfo \
4fa63067 2671 maybe-install-zlib \
73cc7272 2672 maybe-install-gnulib \
01027315 2673 maybe-install-gdbsupport \
919adfe8 2674 maybe-install-gdbserver \
4fa63067
NN
2675 maybe-install-gdb \
2676 maybe-install-expect \
2677 maybe-install-guile \
2678 maybe-install-tk \
4fa63067 2679 maybe-install-libtermcap \
b00612cc 2680 maybe-install-utils \
700d40ca 2681 maybe-install-gnattools \
1b6c0831
L
2682 maybe-install-lto-plugin \
2683 maybe-install-libcc1 \
0e65dfba
NA
2684 maybe-install-gotools \
2685 maybe-install-libctf
2a4cbe27 2686
4fa63067
NN
2687.PHONY: install-target
2688install-target: \
2689 maybe-install-target-libstdc++-v3 \
5286fdef 2690 maybe-install-target-libsanitizer \
1b6c0831 2691 maybe-install-target-libmpx \
95e43135 2692 maybe-install-target-libvtv \
e3f56a99 2693 maybe-install-target-libcilkrts \
1b6c0831 2694 maybe-install-target-liboffloadmic \
064d0a7c 2695 maybe-install-target-libssp \
4fa63067 2696 maybe-install-target-newlib \
6aa8ef82 2697 maybe-install-target-libgcc \
2bf680c4 2698 maybe-install-target-libbacktrace \
e552509b 2699 maybe-install-target-libquadmath \
4b1cb4fe 2700 maybe-install-target-libgfortran \
4fa63067 2701 maybe-install-target-libobjc \
e552509b 2702 maybe-install-target-libgo \
4fa63067
NN
2703 maybe-install-target-libtermcap \
2704 maybe-install-target-winsup \
2705 maybe-install-target-libgloss \
4fa63067 2706 maybe-install-target-libffi \
4fa63067 2707 maybe-install-target-zlib \
4fa63067 2708 maybe-install-target-rda \
b3ded179 2709 maybe-install-target-libada \
7ec59b9e
L
2710 maybe-install-target-libgomp \
2711 maybe-install-target-libitm \
2712 maybe-install-target-libatomic
2a4cbe27 2713
4fa63067
NN
2714uninstall:
2715 @echo "the uninstall target is not supported in this tree"
2a4cbe27 2716
4fa63067
NN
2717.PHONY: install.all
2718install.all: install-no-fixedincludes
22121df0
L
2719 @if [ -f ./gcc/Makefile ]; then \
2720 r=`${PWD_COMMAND}`; export r; \
0aed8855 2721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 2722 $(HOST_EXPORTS) \
4fa63067 2723 (cd ./gcc && \
22121df0 2724 $(MAKE) $(FLAGS_TO_PASS) install-headers); \
4fa63067 2725 else \
22121df0 2726 true; \
4fa63067 2727 fi
2a4cbe27 2728
7ec59b9e
L
2729# install-no-fixedincludes is used to allow the elaboration of binary packages
2730# suitable for distribution, where we cannot include the fixed system header
2731# files.
4fa63067
NN
2732.PHONY: install-no-fixedincludes
2733install-no-fixedincludes: installdirs install-host-nogcc \
7ec59b9e 2734 install-target gcc-install-no-fixedincludes
2a4cbe27 2735
9b980aa1
RW
2736.PHONY: install-strip
2737install-strip:
2738 @: $(MAKE); $(unstage)
2739 @r=`${PWD_COMMAND}`; export r; \
2740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2741 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-strip-host install-strip-target
2742
2743.PHONY: install-strip-host
2744install-strip-host: \
9b980aa1
RW
2745 maybe-install-strip-bfd \
2746 maybe-install-strip-opcodes \
2747 maybe-install-strip-binutils \
2748 maybe-install-strip-bison \
9b980aa1
RW
2749 maybe-install-strip-cgen \
2750 maybe-install-strip-dejagnu \
9b980aa1
RW
2751 maybe-install-strip-etc \
2752 maybe-install-strip-fastjar \
9b980aa1
RW
2753 maybe-install-strip-fixincludes \
2754 maybe-install-strip-flex \
2755 maybe-install-strip-gas \
2756 maybe-install-strip-gcc \
9b980aa1
RW
2757 maybe-install-strip-gmp \
2758 maybe-install-strip-mpfr \
2759 maybe-install-strip-mpc \
7ec59b9e 2760 maybe-install-strip-isl \
9b980aa1 2761 maybe-install-strip-libelf \
9b980aa1
RW
2762 maybe-install-strip-gold \
2763 maybe-install-strip-gprof \
9b980aa1
RW
2764 maybe-install-strip-intl \
2765 maybe-install-strip-tcl \
2766 maybe-install-strip-itcl \
2767 maybe-install-strip-ld \
2bf680c4 2768 maybe-install-strip-libbacktrace \
9b980aa1
RW
2769 maybe-install-strip-libcpp \
2770 maybe-install-strip-libdecnumber \
2771 maybe-install-strip-libgui \
2772 maybe-install-strip-libiberty \
1b6c0831 2773 maybe-install-strip-libiberty-linker-plugin \
9b980aa1 2774 maybe-install-strip-libiconv \
9b980aa1 2775 maybe-install-strip-m4 \
9b980aa1 2776 maybe-install-strip-readline \
9b980aa1
RW
2777 maybe-install-strip-sid \
2778 maybe-install-strip-sim \
9b980aa1 2779 maybe-install-strip-texinfo \
9b980aa1 2780 maybe-install-strip-zlib \
73cc7272 2781 maybe-install-strip-gnulib \
01027315 2782 maybe-install-strip-gdbsupport \
919adfe8 2783 maybe-install-strip-gdbserver \
9b980aa1
RW
2784 maybe-install-strip-gdb \
2785 maybe-install-strip-expect \
2786 maybe-install-strip-guile \
2787 maybe-install-strip-tk \
2788 maybe-install-strip-libtermcap \
2789 maybe-install-strip-utils \
2790 maybe-install-strip-gnattools \
1b6c0831
L
2791 maybe-install-strip-lto-plugin \
2792 maybe-install-strip-libcc1 \
0e65dfba
NA
2793 maybe-install-strip-gotools \
2794 maybe-install-strip-libctf
9b980aa1
RW
2795
2796.PHONY: install-strip-target
2797install-strip-target: \
2798 maybe-install-strip-target-libstdc++-v3 \
5286fdef 2799 maybe-install-strip-target-libsanitizer \
1b6c0831 2800 maybe-install-strip-target-libmpx \
95e43135 2801 maybe-install-strip-target-libvtv \
e3f56a99 2802 maybe-install-strip-target-libcilkrts \
1b6c0831 2803 maybe-install-strip-target-liboffloadmic \
9b980aa1
RW
2804 maybe-install-strip-target-libssp \
2805 maybe-install-strip-target-newlib \
2806 maybe-install-strip-target-libgcc \
2bf680c4 2807 maybe-install-strip-target-libbacktrace \
9b980aa1
RW
2808 maybe-install-strip-target-libquadmath \
2809 maybe-install-strip-target-libgfortran \
2810 maybe-install-strip-target-libobjc \
2811 maybe-install-strip-target-libgo \
2812 maybe-install-strip-target-libtermcap \
2813 maybe-install-strip-target-winsup \
2814 maybe-install-strip-target-libgloss \
9b980aa1 2815 maybe-install-strip-target-libffi \
9b980aa1 2816 maybe-install-strip-target-zlib \
9b980aa1
RW
2817 maybe-install-strip-target-rda \
2818 maybe-install-strip-target-libada \
7ec59b9e
L
2819 maybe-install-strip-target-libgomp \
2820 maybe-install-strip-target-libitm \
2821 maybe-install-strip-target-libatomic
9b980aa1
RW
2822
2823
4fa63067 2824### other supporting targets
2a4cbe27 2825
4fa63067
NN
2826MAKEDIRS= \
2827 $(DESTDIR)$(prefix) \
2828 $(DESTDIR)$(exec_prefix)
2829.PHONY: installdirs
2830installdirs: mkinstalldirs
2831 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2a4cbe27 2832
4fa63067 2833dir.info: do-install-info
22121df0
L
2834 if [ -f $(srcdir)/texinfo/gen-info-dir ]; then \
2835 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new; \
2836 mv -f dir.info.new dir.info; \
2837 else true; \
4fa63067 2838 fi
2a4cbe27 2839
4fa63067
NN
2840dist:
2841 @echo "Building a full distribution of this tree isn't done"
2842 @echo "via 'make dist'. Check out the etc/ subdirectory"
2a4cbe27 2843
4fa63067 2844etags tags: TAGS
2a4cbe27 2845
4fa63067
NN
2846# Right now this just builds TAGS in each subdirectory. emacs19 has the
2847# ability to use several tags files at once, so there is probably no need
2848# to combine them into one big TAGS file (like CVS 1.3 does). We could
2849# (if we felt like it) have this Makefile write a piece of elisp which
2850# the user could load to tell emacs19 where all the TAGS files we just
2851# built are.
2852TAGS: do-TAGS
2a4cbe27 2853
a7254363
PB
2854# ------------------------------------
2855# Macros for configure and all targets
2856# ------------------------------------
2857
2858
2859
2860
2861
4fa63067
NN
2862# --------------------------------------
2863# Modules which run on the build machine
2864# --------------------------------------
2865
a7254363 2866
4fa63067
NN
2867.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2868maybe-configure-build-libiberty:
4f0ef2d8
CD
2869@if gcc-bootstrap
2870configure-build-libiberty: stage_current
2871@endif gcc-bootstrap
6bd3dfaa
PB
2872@if build-libiberty
2873maybe-configure-build-libiberty: configure-build-libiberty
c52c6897 2874configure-build-libiberty:
0aed8855 2875 @: $(MAKE); $(unstage)
c52c6897 2876 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2878 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 2879 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty; \
1f53ca9a 2880 $(BUILD_EXPORTS) \
4fa63067
NN
2881 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2882 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2883 case $(srcdir) in \
b00612cc
PB
2884 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2885 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2886 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 2887 esac; \
1b6c0831 2888 module_srcdir=libiberty; \
4fa63067 2889 rm -f no-such-file || : ; \
1b6c0831
L
2890 CONFIG_SITE=no-such-file $(SHELL) \
2891 $$s/$$module_srcdir/configure \
2892 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2893 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2894 --target=${target_alias} \
2a4cbe27 2895 || exit 1
6bd3dfaa 2896@endif build-libiberty
2a4cbe27 2897
a7254363
PB
2898
2899
d545f33b
PB
2900
2901
4fa63067
NN
2902.PHONY: all-build-libiberty maybe-all-build-libiberty
2903maybe-all-build-libiberty:
4f0ef2d8
CD
2904@if gcc-bootstrap
2905all-build-libiberty: stage_current
2906@endif gcc-bootstrap
6bd3dfaa 2907@if build-libiberty
72b2455a 2908TARGET-build-libiberty=all
6bd3dfaa 2909maybe-all-build-libiberty: all-build-libiberty
4fa63067 2910all-build-libiberty: configure-build-libiberty
0aed8855 2911 @: $(MAKE); $(unstage)
4fa63067 2912 @r=`${PWD_COMMAND}`; export r; \
b40e3958 2913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2914 $(BUILD_EXPORTS) \
72b2455a 2915 (cd $(BUILD_SUBDIR)/libiberty && \
b3676d82 2916 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2917 $(TARGET-build-libiberty))
6bd3dfaa 2918@endif build-libiberty
2a4cbe27 2919
a7254363
PB
2920
2921
d545f33b
PB
2922
2923
6a9cf61e
PB
2924.PHONY: configure-build-bison maybe-configure-build-bison
2925maybe-configure-build-bison:
4f0ef2d8
CD
2926@if gcc-bootstrap
2927configure-build-bison: stage_current
2928@endif gcc-bootstrap
6a9cf61e
PB
2929@if build-bison
2930maybe-configure-build-bison: configure-build-bison
c52c6897 2931configure-build-bison:
0aed8855 2932 @: $(MAKE); $(unstage)
c52c6897 2933 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2935 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
22121df0 2936 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison; \
1f53ca9a 2937 $(BUILD_EXPORTS) \
6a9cf61e
PB
2938 echo Configuring in $(BUILD_SUBDIR)/bison; \
2939 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2940 case $(srcdir) in \
b00612cc
PB
2941 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2942 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2943 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 2944 esac; \
1b6c0831 2945 module_srcdir=bison; \
6a9cf61e 2946 rm -f no-such-file || : ; \
1b6c0831
L
2947 CONFIG_SITE=no-such-file $(SHELL) \
2948 $$s/$$module_srcdir/configure \
2949 --srcdir=$${topdir}/$$module_srcdir \
4b900473 2950 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 2951 --target=${target_alias} \
6a9cf61e
PB
2952 || exit 1
2953@endif build-bison
2954
a7254363
PB
2955
2956
d545f33b
PB
2957
2958
6a9cf61e
PB
2959.PHONY: all-build-bison maybe-all-build-bison
2960maybe-all-build-bison:
4f0ef2d8
CD
2961@if gcc-bootstrap
2962all-build-bison: stage_current
2963@endif gcc-bootstrap
6a9cf61e 2964@if build-bison
72b2455a 2965TARGET-build-bison=all
6a9cf61e
PB
2966maybe-all-build-bison: all-build-bison
2967all-build-bison: configure-build-bison
0aed8855 2968 @: $(MAKE); $(unstage)
6a9cf61e
PB
2969 @r=`${PWD_COMMAND}`; export r; \
2970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 2971 $(BUILD_EXPORTS) \
72b2455a 2972 (cd $(BUILD_SUBDIR)/bison && \
b3676d82 2973 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 2974 $(TARGET-build-bison))
6a9cf61e
PB
2975@endif build-bison
2976
a7254363
PB
2977
2978
d545f33b
PB
2979
2980
6a9cf61e
PB
2981.PHONY: configure-build-flex maybe-configure-build-flex
2982maybe-configure-build-flex:
4f0ef2d8
CD
2983@if gcc-bootstrap
2984configure-build-flex: stage_current
2985@endif gcc-bootstrap
6a9cf61e
PB
2986@if build-flex
2987maybe-configure-build-flex: configure-build-flex
c52c6897 2988configure-build-flex:
0aed8855 2989 @: $(MAKE); $(unstage)
c52c6897 2990 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 2991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 2992 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
22121df0 2993 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex; \
1f53ca9a 2994 $(BUILD_EXPORTS) \
6a9cf61e
PB
2995 echo Configuring in $(BUILD_SUBDIR)/flex; \
2996 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2997 case $(srcdir) in \
b00612cc
PB
2998 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2999 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
3000 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3001 esac; \
1b6c0831 3002 module_srcdir=flex; \
6a9cf61e 3003 rm -f no-such-file || : ; \
1b6c0831
L
3004 CONFIG_SITE=no-such-file $(SHELL) \
3005 $$s/$$module_srcdir/configure \
3006 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3007 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3008 --target=${target_alias} \
6a9cf61e
PB
3009 || exit 1
3010@endif build-flex
3011
a7254363
PB
3012
3013
d545f33b
PB
3014
3015
6a9cf61e
PB
3016.PHONY: all-build-flex maybe-all-build-flex
3017maybe-all-build-flex:
4f0ef2d8
CD
3018@if gcc-bootstrap
3019all-build-flex: stage_current
3020@endif gcc-bootstrap
6a9cf61e 3021@if build-flex
72b2455a 3022TARGET-build-flex=all
6a9cf61e
PB
3023maybe-all-build-flex: all-build-flex
3024all-build-flex: configure-build-flex
0aed8855 3025 @: $(MAKE); $(unstage)
6a9cf61e
PB
3026 @r=`${PWD_COMMAND}`; export r; \
3027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3028 $(BUILD_EXPORTS) \
72b2455a 3029 (cd $(BUILD_SUBDIR)/flex && \
b3676d82 3030 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3031 $(TARGET-build-flex))
6a9cf61e
PB
3032@endif build-flex
3033
a7254363
PB
3034
3035
d545f33b
PB
3036
3037
6a9cf61e
PB
3038.PHONY: configure-build-m4 maybe-configure-build-m4
3039maybe-configure-build-m4:
4f0ef2d8
CD
3040@if gcc-bootstrap
3041configure-build-m4: stage_current
3042@endif gcc-bootstrap
6a9cf61e
PB
3043@if build-m4
3044maybe-configure-build-m4: configure-build-m4
c52c6897 3045configure-build-m4:
0aed8855 3046 @: $(MAKE); $(unstage)
c52c6897 3047 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3049 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
22121df0 3050 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4; \
1f53ca9a 3051 $(BUILD_EXPORTS) \
6a9cf61e
PB
3052 echo Configuring in $(BUILD_SUBDIR)/m4; \
3053 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
3054 case $(srcdir) in \
b00612cc
PB
3055 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3056 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
3057 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3058 esac; \
1b6c0831 3059 module_srcdir=m4; \
6a9cf61e 3060 rm -f no-such-file || : ; \
1b6c0831
L
3061 CONFIG_SITE=no-such-file $(SHELL) \
3062 $$s/$$module_srcdir/configure \
3063 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3064 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3065 --target=${target_alias} \
6a9cf61e
PB
3066 || exit 1
3067@endif build-m4
3068
a7254363
PB
3069
3070
d545f33b
PB
3071
3072
6a9cf61e
PB
3073.PHONY: all-build-m4 maybe-all-build-m4
3074maybe-all-build-m4:
4f0ef2d8
CD
3075@if gcc-bootstrap
3076all-build-m4: stage_current
3077@endif gcc-bootstrap
6a9cf61e 3078@if build-m4
72b2455a 3079TARGET-build-m4=all
6a9cf61e
PB
3080maybe-all-build-m4: all-build-m4
3081all-build-m4: configure-build-m4
0aed8855 3082 @: $(MAKE); $(unstage)
6a9cf61e
PB
3083 @r=`${PWD_COMMAND}`; export r; \
3084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3085 $(BUILD_EXPORTS) \
72b2455a 3086 (cd $(BUILD_SUBDIR)/m4 && \
b3676d82 3087 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3088 $(TARGET-build-m4))
6a9cf61e
PB
3089@endif build-m4
3090
a7254363
PB
3091
3092
d545f33b
PB
3093
3094
6a9cf61e
PB
3095.PHONY: configure-build-texinfo maybe-configure-build-texinfo
3096maybe-configure-build-texinfo:
4f0ef2d8
CD
3097@if gcc-bootstrap
3098configure-build-texinfo: stage_current
3099@endif gcc-bootstrap
6a9cf61e
PB
3100@if build-texinfo
3101maybe-configure-build-texinfo: configure-build-texinfo
c52c6897 3102configure-build-texinfo:
0aed8855 3103 @: $(MAKE); $(unstage)
c52c6897 3104 @r=`${PWD_COMMAND}`; export r; \
6a9cf61e 3105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3106 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 3107 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo; \
1f53ca9a 3108 $(BUILD_EXPORTS) \
6a9cf61e
PB
3109 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
3110 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
3111 case $(srcdir) in \
b00612cc
PB
3112 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3113 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
3114 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6a9cf61e 3115 esac; \
1b6c0831 3116 module_srcdir=texinfo; \
6a9cf61e 3117 rm -f no-such-file || : ; \
1b6c0831
L
3118 CONFIG_SITE=no-such-file $(SHELL) \
3119 $$s/$$module_srcdir/configure \
3120 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3121 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3122 --target=${target_alias} \
6a9cf61e
PB
3123 || exit 1
3124@endif build-texinfo
3125
a7254363
PB
3126
3127
d545f33b
PB
3128
3129
6a9cf61e
PB
3130.PHONY: all-build-texinfo maybe-all-build-texinfo
3131maybe-all-build-texinfo:
4f0ef2d8
CD
3132@if gcc-bootstrap
3133all-build-texinfo: stage_current
3134@endif gcc-bootstrap
6a9cf61e 3135@if build-texinfo
72b2455a 3136TARGET-build-texinfo=all
6a9cf61e
PB
3137maybe-all-build-texinfo: all-build-texinfo
3138all-build-texinfo: configure-build-texinfo
0aed8855 3139 @: $(MAKE); $(unstage)
6a9cf61e
PB
3140 @r=`${PWD_COMMAND}`; export r; \
3141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3142 $(BUILD_EXPORTS) \
72b2455a 3143 (cd $(BUILD_SUBDIR)/texinfo && \
b3676d82 3144 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3145 $(TARGET-build-texinfo))
6a9cf61e
PB
3146@endif build-texinfo
3147
a7254363
PB
3148
3149
d545f33b
PB
3150
3151
ee025550
PB
3152.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
3153maybe-configure-build-fixincludes:
4f0ef2d8
CD
3154@if gcc-bootstrap
3155configure-build-fixincludes: stage_current
3156@endif gcc-bootstrap
ee025550
PB
3157@if build-fixincludes
3158maybe-configure-build-fixincludes: configure-build-fixincludes
c52c6897 3159configure-build-fixincludes:
0aed8855 3160 @: $(MAKE); $(unstage)
c52c6897 3161 @r=`${PWD_COMMAND}`; export r; \
ee025550 3162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 3163 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 3164 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes; \
1f53ca9a 3165 $(BUILD_EXPORTS) \
ee025550
PB
3166 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
3167 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
3168 case $(srcdir) in \
b00612cc
PB
3169 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3170 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
3171 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
ee025550 3172 esac; \
1b6c0831 3173 module_srcdir=fixincludes; \
ee025550 3174 rm -f no-such-file || : ; \
1b6c0831
L
3175 CONFIG_SITE=no-such-file $(SHELL) \
3176 $$s/$$module_srcdir/configure \
3177 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3178 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
1b6c0831 3179 --target=${target_alias} \
ee025550
PB
3180 || exit 1
3181@endif build-fixincludes
3182
a7254363
PB
3183
3184
d545f33b
PB
3185
3186
ee025550
PB
3187.PHONY: all-build-fixincludes maybe-all-build-fixincludes
3188maybe-all-build-fixincludes:
4f0ef2d8
CD
3189@if gcc-bootstrap
3190all-build-fixincludes: stage_current
3191@endif gcc-bootstrap
ee025550
PB
3192@if build-fixincludes
3193TARGET-build-fixincludes=all
3194maybe-all-build-fixincludes: all-build-fixincludes
3195all-build-fixincludes: configure-build-fixincludes
0aed8855 3196 @: $(MAKE); $(unstage)
ee025550
PB
3197 @r=`${PWD_COMMAND}`; export r; \
3198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 3199 $(BUILD_EXPORTS) \
ee025550 3200 (cd $(BUILD_SUBDIR)/fixincludes && \
b3676d82 3201 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
7f6ef0c0 3202 $(TARGET-build-fixincludes))
ee025550
PB
3203@endif build-fixincludes
3204
2a4cbe27 3205
a7254363 3206
d545f33b
PB
3207
3208
1b6c0831
L
3209.PHONY: configure-build-libcpp maybe-configure-build-libcpp
3210maybe-configure-build-libcpp:
3211@if gcc-bootstrap
3212configure-build-libcpp: stage_current
3213@endif gcc-bootstrap
3214@if build-libcpp
3215maybe-configure-build-libcpp: configure-build-libcpp
3216configure-build-libcpp:
3217 @: $(MAKE); $(unstage)
3218 @r=`${PWD_COMMAND}`; export r; \
3219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3220 test ! -f $(BUILD_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 3221 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libcpp; \
1b6c0831
L
3222 $(BUILD_EXPORTS) \
3223 echo Configuring in $(BUILD_SUBDIR)/libcpp; \
3224 cd "$(BUILD_SUBDIR)/libcpp" || exit 1; \
3225 case $(srcdir) in \
3226 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3227 *) topdir=`echo $(BUILD_SUBDIR)/libcpp/ | \
3228 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3229 esac; \
3230 module_srcdir=libcpp; \
3231 rm -f no-such-file || : ; \
3232 CONFIG_SITE=no-such-file $(SHELL) \
3233 $$s/$$module_srcdir/configure \
3234 --srcdir=$${topdir}/$$module_srcdir \
3235 $(BUILD_CONFIGARGS) --build=${build_alias} --host=${build_alias} \
3236 --target=${target_alias} --disable-nls am_cv_func_iconv=no \
3237 || exit 1
3238@endif build-libcpp
3239
3240
3241
3242
3243
3244.PHONY: all-build-libcpp maybe-all-build-libcpp
3245maybe-all-build-libcpp:
3246@if gcc-bootstrap
3247all-build-libcpp: stage_current
3248@endif gcc-bootstrap
3249@if build-libcpp
3250TARGET-build-libcpp=all
3251maybe-all-build-libcpp: all-build-libcpp
3252all-build-libcpp: configure-build-libcpp
3253 @: $(MAKE); $(unstage)
3254 @r=`${PWD_COMMAND}`; export r; \
3255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3256 $(BUILD_EXPORTS) \
3257 (cd $(BUILD_SUBDIR)/libcpp && \
3258 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_BUILD_FLAGS) \
3259 $(TARGET-build-libcpp))
3260@endif build-libcpp
3261
3262
3263
3264
3265
4fa63067
NN
3266# --------------------------------------
3267# Modules which run on the host machine
3268# --------------------------------------
2a4cbe27 3269
a7254363 3270
a90ef4bf
JM
3271.PHONY: configure-bfd maybe-configure-bfd
3272maybe-configure-bfd:
4f0ef2d8 3273@if gcc-bootstrap
a90ef4bf 3274configure-bfd: stage_current
4f0ef2d8 3275@endif gcc-bootstrap
a90ef4bf
JM
3276@if bfd
3277maybe-configure-bfd: configure-bfd
3278configure-bfd:
c52c6897 3279 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3281 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
22121df0 3282 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
1f53ca9a 3283 $(HOST_EXPORTS) \
a90ef4bf
JM
3284 echo Configuring in $(HOST_SUBDIR)/bfd; \
3285 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
4fa63067 3286 case $(srcdir) in \
b00612cc 3287 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 3288 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
b00612cc 3289 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 3290 esac; \
1b6c0831
L
3291 module_srcdir=bfd; \
3292 $(SHELL) \
3293 $$s/$$module_srcdir/configure \
3294 --srcdir=$${topdir}/$$module_srcdir \
4b900473 3295 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3296 --target=${target_alias} \
2a4cbe27 3297 || exit 1
a90ef4bf 3298@endif bfd
a7254363 3299
d545f33b
PB
3300
3301
a90ef4bf
JM
3302.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
3303maybe-configure-stage1-bfd:
3304@if bfd-bootstrap
3305maybe-configure-stage1-bfd: configure-stage1-bfd
3306configure-stage1-bfd:
3307 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3308 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067
NN
3309 @r=`${PWD_COMMAND}`; export r; \
3310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3311 TFLAGS="$(STAGE1_TFLAGS)"; \
3312 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
3313 $(HOST_EXPORTS) \
3314 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
3315 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
3316 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
3317 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd; \
3318 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3319 cd $(HOST_SUBDIR)/bfd || exit 1; \
3320 case $(srcdir) in \
3321 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3322 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3323 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3324 esac; \
1b6c0831
L
3325 module_srcdir=bfd; \
3326 $(SHELL) $$s/$$module_srcdir/configure \
3327 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3328 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
3329 --target=${target_alias} \
3330 \
a90ef4bf
JM
3331 $(STAGE1_CONFIGURE_FLAGS)
3332@endif bfd-bootstrap
2a4cbe27 3333
a90ef4bf
JM
3334.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
3335maybe-configure-stage2-bfd:
3336@if bfd-bootstrap
3337maybe-configure-stage2-bfd: configure-stage2-bfd
3338configure-stage2-bfd:
3339 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3340 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3341 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3343 TFLAGS="$(STAGE2_TFLAGS)"; \
3344 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3345 $(HOST_EXPORTS) \
a90ef4bf
JM
3346 $(POSTSTAGE1_HOST_EXPORTS) \
3347 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
3348 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
3349 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3350 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd; \
3351 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3352 cd $(HOST_SUBDIR)/bfd || exit 1; \
3353 case $(srcdir) in \
3354 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3355 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3356 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3357 esac; \
1b6c0831
L
3358 module_srcdir=bfd; \
3359 $(SHELL) $$s/$$module_srcdir/configure \
3360 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3361 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3362 --target=${target_alias} \
22121df0 3363 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3364 $(STAGE2_CONFIGURE_FLAGS)
3365@endif bfd-bootstrap
2a4cbe27 3366
a90ef4bf
JM
3367.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
3368maybe-configure-stage3-bfd:
3369@if bfd-bootstrap
3370maybe-configure-stage3-bfd: configure-stage3-bfd
3371configure-stage3-bfd:
3372 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3373 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
4fa63067 3374 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3376 TFLAGS="$(STAGE3_TFLAGS)"; \
3377 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3378 $(HOST_EXPORTS) \
a90ef4bf
JM
3379 $(POSTSTAGE1_HOST_EXPORTS) \
3380 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
3381 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
3382 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3383 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd; \
3384 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3385 cd $(HOST_SUBDIR)/bfd || exit 1; \
3386 case $(srcdir) in \
3387 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3388 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3389 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3390 esac; \
1b6c0831
L
3391 module_srcdir=bfd; \
3392 $(SHELL) $$s/$$module_srcdir/configure \
3393 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3394 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3395 --target=${target_alias} \
22121df0 3396 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3397 $(STAGE3_CONFIGURE_FLAGS)
3398@endif bfd-bootstrap
9b980aa1 3399
a90ef4bf
JM
3400.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
3401maybe-configure-stage4-bfd:
3402@if bfd-bootstrap
3403maybe-configure-stage4-bfd: configure-stage4-bfd
3404configure-stage4-bfd:
3405 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3406 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
9b980aa1
RW
3407 @r=`${PWD_COMMAND}`; export r; \
3408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3409 TFLAGS="$(STAGE4_TFLAGS)"; \
3410 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
9b980aa1 3411 $(HOST_EXPORTS) \
a90ef4bf
JM
3412 $(POSTSTAGE1_HOST_EXPORTS) \
3413 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
3414 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
3415 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3416 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd; \
3417 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3418 cd $(HOST_SUBDIR)/bfd || exit 1; \
3419 case $(srcdir) in \
3420 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3421 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3422 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3423 esac; \
1b6c0831
L
3424 module_srcdir=bfd; \
3425 $(SHELL) $$s/$$module_srcdir/configure \
3426 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3427 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3428 --target=${target_alias} \
22121df0 3429 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3430 $(STAGE4_CONFIGURE_FLAGS)
3431@endif bfd-bootstrap
4fa63067 3432
a90ef4bf
JM
3433.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
3434maybe-configure-stageprofile-bfd:
3435@if bfd-bootstrap
3436maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
3437configure-stageprofile-bfd:
3438 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3439 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3440 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3442 TFLAGS="$(STAGEprofile_TFLAGS)"; \
3443 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3444 $(HOST_EXPORTS) \
a90ef4bf
JM
3445 $(POSTSTAGE1_HOST_EXPORTS) \
3446 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
3447 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
3448 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3449 echo Configuring stage profile in $(HOST_SUBDIR)/bfd; \
3450 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3451 cd $(HOST_SUBDIR)/bfd || exit 1; \
3452 case $(srcdir) in \
3453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3454 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3456 esac; \
1b6c0831
L
3457 module_srcdir=bfd; \
3458 $(SHELL) $$s/$$module_srcdir/configure \
3459 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3460 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3461 --target=${target_alias} \
22121df0 3462 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3463 $(STAGEprofile_CONFIGURE_FLAGS)
3464@endif bfd-bootstrap
2a4cbe27 3465
a90ef4bf
JM
3466.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
3467maybe-configure-stagefeedback-bfd:
3468@if bfd-bootstrap
3469maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
3470configure-stagefeedback-bfd:
3471 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
3472 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
3473 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3475 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3476 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
378fce5b 3477 $(HOST_EXPORTS) \
a90ef4bf
JM
3478 $(POSTSTAGE1_HOST_EXPORTS) \
3479 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
3480 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
3481 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
3482 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd; \
3483 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd; \
a90ef4bf
JM
3484 cd $(HOST_SUBDIR)/bfd || exit 1; \
3485 case $(srcdir) in \
3486 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3487 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
3488 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3489 esac; \
1b6c0831
L
3490 module_srcdir=bfd; \
3491 $(SHELL) $$s/$$module_srcdir/configure \
3492 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 3493 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 3494 --target=${target_alias} \
22121df0 3495 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
3496 $(STAGEfeedback_CONFIGURE_FLAGS)
3497@endif bfd-bootstrap
2a4cbe27 3498
56a8fe78 3499
56a8fe78 3500
56a8fe78 3501
6d389afc 3502
a90ef4bf
JM
3503.PHONY: all-bfd maybe-all-bfd
3504maybe-all-bfd:
3505@if gcc-bootstrap
3506all-bfd: stage_current
3507@endif gcc-bootstrap
3508@if bfd
3509TARGET-bfd=all
3510maybe-all-bfd: all-bfd
3511all-bfd: configure-bfd
3512 @r=`${PWD_COMMAND}`; export r; \
6d389afc 3513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3514 $(HOST_EXPORTS) \
3515 (cd $(HOST_SUBDIR)/bfd && \
b3676d82 3516 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
3517 $(TARGET-bfd))
3518@endif bfd
6d389afc 3519
6d389afc 3520
2a4cbe27 3521
a90ef4bf
JM
3522.PHONY: all-stage1-bfd maybe-all-stage1-bfd
3523.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
3524maybe-all-stage1-bfd:
3525maybe-clean-stage1-bfd:
3526@if bfd-bootstrap
3527maybe-all-stage1-bfd: all-stage1-bfd
3528all-stage1: all-stage1-bfd
3529TARGET-stage1-bfd = $(TARGET-bfd)
3530all-stage1-bfd: configure-stage1-bfd
3531 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
3532 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3534 TFLAGS="$(STAGE1_TFLAGS)"; \
3535 $(HOST_EXPORTS) \
3536 cd $(HOST_SUBDIR)/bfd && \
05a13254 3537 \
a90ef4bf
JM
3538 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3539 CFLAGS="$(STAGE1_CFLAGS)" \
3540 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
3541 LIBCFLAGS="$(LIBCFLAGS)" \
3542 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3543 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3544 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
3545 $(EXTRA_HOST_FLAGS) \
3546 $(STAGE1_FLAGS_TO_PASS) \
05a13254 3547 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 3548 $(TARGET-stage1-bfd)
2a4cbe27 3549
a90ef4bf
JM
3550maybe-clean-stage1-bfd: clean-stage1-bfd
3551clean-stage1: clean-stage1-bfd
3552clean-stage1-bfd:
3553 @if [ $(current_stage) = stage1 ]; then \
3554 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3555 else \
3556 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
3557 $(MAKE) stage1-start; \
3558 fi; \
3559 cd $(HOST_SUBDIR)/bfd && \
3560 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 3561 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3562@endif bfd-bootstrap
2a4cbe27 3563
2a4cbe27 3564
a90ef4bf
JM
3565.PHONY: all-stage2-bfd maybe-all-stage2-bfd
3566.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
3567maybe-all-stage2-bfd:
3568maybe-clean-stage2-bfd:
3569@if bfd-bootstrap
3570maybe-all-stage2-bfd: all-stage2-bfd
3571all-stage2: all-stage2-bfd
3572TARGET-stage2-bfd = $(TARGET-bfd)
3573all-stage2-bfd: configure-stage2-bfd
3574 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
3575 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3577 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 3578 $(HOST_EXPORTS) \
a90ef4bf
JM
3579 $(POSTSTAGE1_HOST_EXPORTS) \
3580 cd $(HOST_SUBDIR)/bfd && \
05a13254 3581 \
a90ef4bf
JM
3582 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3583 CFLAGS="$(STAGE2_CFLAGS)" \
3584 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
3585 LIBCFLAGS="$(STAGE2_CFLAGS)" \
3586 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3587 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3588 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3589 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3590 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 3591 $(TARGET-stage2-bfd)
2a4cbe27 3592
a90ef4bf
JM
3593maybe-clean-stage2-bfd: clean-stage2-bfd
3594clean-stage2: clean-stage2-bfd
3595clean-stage2-bfd:
3596 @if [ $(current_stage) = stage2 ]; then \
3597 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3598 else \
3599 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
3600 $(MAKE) stage2-start; \
3601 fi; \
3602 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3603 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3604@endif bfd-bootstrap
2a4cbe27 3605
a3ca38d2 3606
a90ef4bf
JM
3607.PHONY: all-stage3-bfd maybe-all-stage3-bfd
3608.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
3609maybe-all-stage3-bfd:
3610maybe-clean-stage3-bfd:
3611@if bfd-bootstrap
3612maybe-all-stage3-bfd: all-stage3-bfd
3613all-stage3: all-stage3-bfd
3614TARGET-stage3-bfd = $(TARGET-bfd)
3615all-stage3-bfd: configure-stage3-bfd
3616 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
3617 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 3618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3619 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 3620 $(HOST_EXPORTS) \
a90ef4bf
JM
3621 $(POSTSTAGE1_HOST_EXPORTS) \
3622 cd $(HOST_SUBDIR)/bfd && \
05a13254 3623 \
a90ef4bf
JM
3624 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3625 CFLAGS="$(STAGE3_CFLAGS)" \
3626 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
3627 LIBCFLAGS="$(STAGE3_CFLAGS)" \
3628 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3629 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3630 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3631 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3632 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 3633 $(TARGET-stage3-bfd)
a3ca38d2 3634
a90ef4bf
JM
3635maybe-clean-stage3-bfd: clean-stage3-bfd
3636clean-stage3: clean-stage3-bfd
3637clean-stage3-bfd:
3638 @if [ $(current_stage) = stage3 ]; then \
3639 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3640 else \
3641 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
3642 $(MAKE) stage3-start; \
3643 fi; \
3644 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3645 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3646@endif bfd-bootstrap
a3ca38d2 3647
108a6f8e 3648
a90ef4bf
JM
3649.PHONY: all-stage4-bfd maybe-all-stage4-bfd
3650.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
3651maybe-all-stage4-bfd:
3652maybe-clean-stage4-bfd:
3653@if bfd-bootstrap
3654maybe-all-stage4-bfd: all-stage4-bfd
3655all-stage4: all-stage4-bfd
3656TARGET-stage4-bfd = $(TARGET-bfd)
3657all-stage4-bfd: configure-stage4-bfd
3658 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
3659 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 3660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3661 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 3662 $(HOST_EXPORTS) \
a90ef4bf
JM
3663 $(POSTSTAGE1_HOST_EXPORTS) \
3664 cd $(HOST_SUBDIR)/bfd && \
05a13254 3665 \
a90ef4bf
JM
3666 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3667 CFLAGS="$(STAGE4_CFLAGS)" \
3668 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
3669 LIBCFLAGS="$(STAGE4_CFLAGS)" \
3670 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3671 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3672 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3673 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3674 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 3675 $(TARGET-stage4-bfd)
108a6f8e 3676
a90ef4bf
JM
3677maybe-clean-stage4-bfd: clean-stage4-bfd
3678clean-stage4: clean-stage4-bfd
3679clean-stage4-bfd:
3680 @if [ $(current_stage) = stage4 ]; then \
3681 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3682 else \
3683 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
3684 $(MAKE) stage4-start; \
3685 fi; \
3686 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3687 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3688@endif bfd-bootstrap
108a6f8e 3689
2a4cbe27 3690
a90ef4bf
JM
3691.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
3692.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
3693maybe-all-stageprofile-bfd:
3694maybe-clean-stageprofile-bfd:
3695@if bfd-bootstrap
3696maybe-all-stageprofile-bfd: all-stageprofile-bfd
3697all-stageprofile: all-stageprofile-bfd
3698TARGET-stageprofile-bfd = $(TARGET-bfd)
3699all-stageprofile-bfd: configure-stageprofile-bfd
3700 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
3701 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 3703 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 3704 $(HOST_EXPORTS) \
a90ef4bf
JM
3705 $(POSTSTAGE1_HOST_EXPORTS) \
3706 cd $(HOST_SUBDIR)/bfd && \
05a13254 3707 \
a90ef4bf
JM
3708 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3709 CFLAGS="$(STAGEprofile_CFLAGS)" \
3710 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
3711 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
3712 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3713 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3714 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3715 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3716 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 3717 $(TARGET-stageprofile-bfd)
2a4cbe27 3718
a90ef4bf
JM
3719maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
3720clean-stageprofile: clean-stageprofile-bfd
3721clean-stageprofile-bfd:
3722 @if [ $(current_stage) = stageprofile ]; then \
3723 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3724 else \
3725 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
3726 $(MAKE) stageprofile-start; \
3727 fi; \
3728 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3729 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3730@endif bfd-bootstrap
2a4cbe27 3731
a7254363 3732
a90ef4bf
JM
3733.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
3734.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
3735maybe-all-stagefeedback-bfd:
3736maybe-clean-stagefeedback-bfd:
3737@if bfd-bootstrap
3738maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
3739all-stagefeedback: all-stagefeedback-bfd
3740TARGET-stagefeedback-bfd = $(TARGET-bfd)
3741all-stagefeedback-bfd: configure-stagefeedback-bfd
3742 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 3743 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
3745 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
3746 $(HOST_EXPORTS) \
3747 $(POSTSTAGE1_HOST_EXPORTS) \
3748 cd $(HOST_SUBDIR)/bfd && \
05a13254 3749 \
a90ef4bf
JM
3750 $(MAKE) $(BASE_FLAGS_TO_PASS) \
3751 CFLAGS="$(STAGEfeedback_CFLAGS)" \
3752 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
3753 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
3754 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
3755 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
3756 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
3757 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 3758 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 3759 $(TARGET-stagefeedback-bfd)
d545f33b 3760
a90ef4bf
JM
3761maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
3762clean-stagefeedback: clean-stagefeedback-bfd
3763clean-stagefeedback-bfd:
3764 @if [ $(current_stage) = stagefeedback ]; then \
3765 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
3766 else \
3767 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
3768 $(MAKE) stagefeedback-start; \
3769 fi; \
3770 cd $(HOST_SUBDIR)/bfd && \
b3676d82 3771 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 3772@endif bfd-bootstrap
d545f33b 3773
2a4cbe27 3774
a7254363 3775
d545f33b
PB
3776
3777
a90ef4bf
JM
3778.PHONY: check-bfd maybe-check-bfd
3779maybe-check-bfd:
3780@if bfd
3781maybe-check-bfd: check-bfd
2a4cbe27 3782
a90ef4bf 3783check-bfd:
0aed8855 3784 @: $(MAKE); $(unstage)
4fa63067 3785 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 3787 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 3788 (cd $(HOST_SUBDIR)/bfd && \
f91ca6bc 3789 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 3790
a90ef4bf 3791@endif bfd
2a4cbe27 3792
a90ef4bf
JM
3793.PHONY: install-bfd maybe-install-bfd
3794maybe-install-bfd:
3795@if bfd
3796maybe-install-bfd: install-bfd
2a4cbe27 3797
a90ef4bf 3798install-bfd: installdirs
0aed8855 3799 @: $(MAKE); $(unstage)
4fa63067 3800 @r=`${PWD_COMMAND}`; export r; \
b40e3958 3801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3802 $(HOST_EXPORTS) \
a90ef4bf 3803 (cd $(HOST_SUBDIR)/bfd && \
2da12f12 3804 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 3805
a90ef4bf 3806@endif bfd
2a4cbe27 3807
a90ef4bf
JM
3808.PHONY: install-strip-bfd maybe-install-strip-bfd
3809maybe-install-strip-bfd:
3810@if bfd
3811maybe-install-strip-bfd: install-strip-bfd
9b980aa1 3812
a90ef4bf 3813install-strip-bfd: installdirs
9b980aa1
RW
3814 @: $(MAKE); $(unstage)
3815 @r=`${PWD_COMMAND}`; export r; \
3816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3817 $(HOST_EXPORTS) \
a90ef4bf 3818 (cd $(HOST_SUBDIR)/bfd && \
9b980aa1
RW
3819 $(MAKE) $(FLAGS_TO_PASS) install-strip)
3820
a90ef4bf 3821@endif bfd
9b980aa1 3822
56a8fe78 3823# Other targets (info, dvi, pdf, etc.)
2a4cbe27 3824
a90ef4bf
JM
3825.PHONY: maybe-info-bfd info-bfd
3826maybe-info-bfd:
3827@if bfd
3828maybe-info-bfd: info-bfd
4fa63067 3829
a90ef4bf
JM
3830info-bfd: \
3831 configure-bfd
3832 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3833 r=`${PWD_COMMAND}`; export r; \
3834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3835 $(HOST_EXPORTS) \
b813574b 3836 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3838 done; \
22121df0 3839 echo "Doing info in bfd"; \
a90ef4bf 3840 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3843 "RANLIB=$${RANLIB}" \
0c24b341 3844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3845 info) \
2a4cbe27
NN
3846 || exit 1
3847
a90ef4bf 3848@endif bfd
2a4cbe27 3849
a90ef4bf
JM
3850.PHONY: maybe-dvi-bfd dvi-bfd
3851maybe-dvi-bfd:
3852@if bfd
3853maybe-dvi-bfd: dvi-bfd
2a4cbe27 3854
a90ef4bf
JM
3855dvi-bfd: \
3856 configure-bfd
3857 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3858 r=`${PWD_COMMAND}`; export r; \
3859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3860 $(HOST_EXPORTS) \
b813574b 3861 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3863 done; \
22121df0 3864 echo "Doing dvi in bfd"; \
a90ef4bf 3865 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3868 "RANLIB=$${RANLIB}" \
0c24b341 3869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3870 dvi) \
2a4cbe27
NN
3871 || exit 1
3872
a90ef4bf 3873@endif bfd
2a4cbe27 3874
a90ef4bf
JM
3875.PHONY: maybe-pdf-bfd pdf-bfd
3876maybe-pdf-bfd:
3877@if bfd
3878maybe-pdf-bfd: pdf-bfd
56a8fe78 3879
a90ef4bf
JM
3880pdf-bfd: \
3881 configure-bfd
3882 @[ -f ./bfd/Makefile ] || exit 0; \
56a8fe78
DD
3883 r=`${PWD_COMMAND}`; export r; \
3884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3885 $(HOST_EXPORTS) \
3886 for flag in $(EXTRA_HOST_FLAGS) ; do \
3887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3888 done; \
22121df0 3889 echo "Doing pdf in bfd"; \
a90ef4bf 3890 (cd $(HOST_SUBDIR)/bfd && \
56a8fe78
DD
3891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3893 "RANLIB=$${RANLIB}" \
0c24b341 3894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
3895 pdf) \
3896 || exit 1
3897
a90ef4bf 3898@endif bfd
56a8fe78 3899
a90ef4bf
JM
3900.PHONY: maybe-html-bfd html-bfd
3901maybe-html-bfd:
3902@if bfd
3903maybe-html-bfd: html-bfd
6d389afc 3904
a90ef4bf
JM
3905html-bfd: \
3906 configure-bfd
3907 @[ -f ./bfd/Makefile ] || exit 0; \
6d389afc
MS
3908 r=`${PWD_COMMAND}`; export r; \
3909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
3910 $(HOST_EXPORTS) \
3911 for flag in $(EXTRA_HOST_FLAGS) ; do \
3912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3913 done; \
22121df0 3914 echo "Doing html in bfd"; \
a90ef4bf 3915 (cd $(HOST_SUBDIR)/bfd && \
6d389afc
MS
3916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3918 "RANLIB=$${RANLIB}" \
0c24b341 3919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
3920 html) \
3921 || exit 1
3922
a90ef4bf 3923@endif bfd
6d389afc 3924
a90ef4bf
JM
3925.PHONY: maybe-TAGS-bfd TAGS-bfd
3926maybe-TAGS-bfd:
3927@if bfd
3928maybe-TAGS-bfd: TAGS-bfd
2a4cbe27 3929
a90ef4bf
JM
3930TAGS-bfd: \
3931 configure-bfd
3932 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3933 r=`${PWD_COMMAND}`; export r; \
3934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3935 $(HOST_EXPORTS) \
b813574b 3936 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3938 done; \
22121df0 3939 echo "Doing TAGS in bfd"; \
a90ef4bf 3940 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3943 "RANLIB=$${RANLIB}" \
0c24b341 3944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3945 TAGS) \
2a4cbe27
NN
3946 || exit 1
3947
a90ef4bf 3948@endif bfd
2a4cbe27 3949
a90ef4bf
JM
3950.PHONY: maybe-install-info-bfd install-info-bfd
3951maybe-install-info-bfd:
3952@if bfd
3953maybe-install-info-bfd: install-info-bfd
2a4cbe27 3954
a90ef4bf
JM
3955install-info-bfd: \
3956 configure-bfd \
3957 info-bfd
3958 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
3959 r=`${PWD_COMMAND}`; export r; \
3960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 3961 $(HOST_EXPORTS) \
b813574b 3962 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
3963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3964 done; \
22121df0 3965 echo "Doing install-info in bfd"; \
a90ef4bf 3966 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
3967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3969 "RANLIB=$${RANLIB}" \
0c24b341 3970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 3971 install-info) \
2a4cbe27
NN
3972 || exit 1
3973
a90ef4bf 3974@endif bfd
2a4cbe27 3975
a90ef4bf
JM
3976.PHONY: maybe-install-pdf-bfd install-pdf-bfd
3977maybe-install-pdf-bfd:
3978@if bfd
3979maybe-install-pdf-bfd: install-pdf-bfd
a3ca38d2 3980
a90ef4bf
JM
3981install-pdf-bfd: \
3982 configure-bfd \
3983 pdf-bfd
3984 @[ -f ./bfd/Makefile ] || exit 0; \
a3ca38d2
DD
3985 r=`${PWD_COMMAND}`; export r; \
3986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3987 $(HOST_EXPORTS) \
3988 for flag in $(EXTRA_HOST_FLAGS) ; do \
3989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3990 done; \
22121df0 3991 echo "Doing install-pdf in bfd"; \
a90ef4bf 3992 (cd $(HOST_SUBDIR)/bfd && \
a3ca38d2
DD
3993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3995 "RANLIB=$${RANLIB}" \
0c24b341 3996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
3997 install-pdf) \
3998 || exit 1
3999
a90ef4bf 4000@endif bfd
a3ca38d2 4001
a90ef4bf
JM
4002.PHONY: maybe-install-html-bfd install-html-bfd
4003maybe-install-html-bfd:
4004@if bfd
4005maybe-install-html-bfd: install-html-bfd
108a6f8e 4006
a90ef4bf
JM
4007install-html-bfd: \
4008 configure-bfd \
4009 html-bfd
4010 @[ -f ./bfd/Makefile ] || exit 0; \
108a6f8e
CD
4011 r=`${PWD_COMMAND}`; export r; \
4012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4013 $(HOST_EXPORTS) \
4014 for flag in $(EXTRA_HOST_FLAGS) ; do \
4015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4016 done; \
22121df0 4017 echo "Doing install-html in bfd"; \
a90ef4bf 4018 (cd $(HOST_SUBDIR)/bfd && \
108a6f8e
CD
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}" \
108a6f8e
CD
4023 install-html) \
4024 || exit 1
4025
a90ef4bf 4026@endif bfd
108a6f8e 4027
a90ef4bf
JM
4028.PHONY: maybe-installcheck-bfd installcheck-bfd
4029maybe-installcheck-bfd:
4030@if bfd
4031maybe-installcheck-bfd: installcheck-bfd
2a4cbe27 4032
a90ef4bf
JM
4033installcheck-bfd: \
4034 configure-bfd
4035 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4036 r=`${PWD_COMMAND}`; export r; \
4037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4038 $(HOST_EXPORTS) \
b813574b 4039 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4041 done; \
22121df0 4042 echo "Doing installcheck in bfd"; \
a90ef4bf 4043 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4046 "RANLIB=$${RANLIB}" \
0c24b341 4047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4048 installcheck) \
2a4cbe27
NN
4049 || exit 1
4050
a90ef4bf 4051@endif bfd
2a4cbe27 4052
a90ef4bf
JM
4053.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
4054maybe-mostlyclean-bfd:
4055@if bfd
4056maybe-mostlyclean-bfd: mostlyclean-bfd
2a4cbe27 4057
a90ef4bf
JM
4058mostlyclean-bfd:
4059 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4060 r=`${PWD_COMMAND}`; export r; \
4061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4062 $(HOST_EXPORTS) \
b813574b 4063 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4065 done; \
22121df0 4066 echo "Doing mostlyclean in bfd"; \
a90ef4bf 4067 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4070 "RANLIB=$${RANLIB}" \
0c24b341 4071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4072 mostlyclean) \
2a4cbe27
NN
4073 || exit 1
4074
a90ef4bf 4075@endif bfd
2a4cbe27 4076
a90ef4bf
JM
4077.PHONY: maybe-clean-bfd clean-bfd
4078maybe-clean-bfd:
4079@if bfd
4080maybe-clean-bfd: clean-bfd
2a4cbe27 4081
a90ef4bf
JM
4082clean-bfd:
4083 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4084 r=`${PWD_COMMAND}`; export r; \
4085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4086 $(HOST_EXPORTS) \
b813574b 4087 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4089 done; \
22121df0 4090 echo "Doing clean in bfd"; \
a90ef4bf 4091 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4094 "RANLIB=$${RANLIB}" \
0c24b341 4095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4096 clean) \
2a4cbe27
NN
4097 || exit 1
4098
a90ef4bf 4099@endif bfd
2a4cbe27 4100
a90ef4bf
JM
4101.PHONY: maybe-distclean-bfd distclean-bfd
4102maybe-distclean-bfd:
4103@if bfd
4104maybe-distclean-bfd: distclean-bfd
2a4cbe27 4105
a90ef4bf
JM
4106distclean-bfd:
4107 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4108 r=`${PWD_COMMAND}`; export r; \
4109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4110 $(HOST_EXPORTS) \
b813574b 4111 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4113 done; \
22121df0 4114 echo "Doing distclean in bfd"; \
a90ef4bf 4115 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4118 "RANLIB=$${RANLIB}" \
0c24b341 4119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4120 distclean) \
2a4cbe27
NN
4121 || exit 1
4122
a90ef4bf 4123@endif bfd
2a4cbe27 4124
a90ef4bf
JM
4125.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4126maybe-maintainer-clean-bfd:
4127@if bfd
4128maybe-maintainer-clean-bfd: maintainer-clean-bfd
2a4cbe27 4129
a90ef4bf
JM
4130maintainer-clean-bfd:
4131 @[ -f ./bfd/Makefile ] || exit 0; \
b40e3958
L
4132 r=`${PWD_COMMAND}`; export r; \
4133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4134 $(HOST_EXPORTS) \
b813574b 4135 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4137 done; \
22121df0 4138 echo "Doing maintainer-clean in bfd"; \
a90ef4bf 4139 (cd $(HOST_SUBDIR)/bfd && \
2a4cbe27
NN
4140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4142 "RANLIB=$${RANLIB}" \
0c24b341 4143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4144 maintainer-clean) \
2a4cbe27
NN
4145 || exit 1
4146
a90ef4bf 4147@endif bfd
2a4cbe27 4148
2a4cbe27 4149
a7254363 4150
a90ef4bf
JM
4151.PHONY: configure-opcodes maybe-configure-opcodes
4152maybe-configure-opcodes:
4f0ef2d8 4153@if gcc-bootstrap
a90ef4bf 4154configure-opcodes: stage_current
4f0ef2d8 4155@endif gcc-bootstrap
a90ef4bf
JM
4156@if opcodes
4157maybe-configure-opcodes: configure-opcodes
4158configure-opcodes:
c52c6897 4159 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 4161 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
22121df0 4162 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
1f53ca9a 4163 $(HOST_EXPORTS) \
a90ef4bf
JM
4164 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4165 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
4fa63067 4166 case $(srcdir) in \
b00612cc 4167 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 4168 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
b00612cc 4169 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 4170 esac; \
1b6c0831
L
4171 module_srcdir=opcodes; \
4172 $(SHELL) \
4173 $$s/$$module_srcdir/configure \
4174 --srcdir=$${topdir}/$$module_srcdir \
4b900473 4175 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4176 --target=${target_alias} \
2a4cbe27 4177 || exit 1
a90ef4bf 4178@endif opcodes
a7254363 4179
d545f33b
PB
4180
4181
a90ef4bf
JM
4182.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4183maybe-configure-stage1-opcodes:
4184@if opcodes-bootstrap
4185maybe-configure-stage1-opcodes: configure-stage1-opcodes
4186configure-stage1-opcodes:
4187 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4188 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4189 @r=`${PWD_COMMAND}`; export r; \
4190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4191 TFLAGS="$(STAGE1_TFLAGS)"; \
4192 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4193 $(HOST_EXPORTS) \
4194 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
4195 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
4196 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
4197 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes; \
4198 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4199 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4200 case $(srcdir) in \
4201 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4202 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4203 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4204 esac; \
1b6c0831
L
4205 module_srcdir=opcodes; \
4206 $(SHELL) $$s/$$module_srcdir/configure \
4207 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4208 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
4209 --target=${target_alias} \
4210 \
a90ef4bf
JM
4211 $(STAGE1_CONFIGURE_FLAGS)
4212@endif opcodes-bootstrap
2a4cbe27 4213
a90ef4bf
JM
4214.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4215maybe-configure-stage2-opcodes:
4216@if opcodes-bootstrap
4217maybe-configure-stage2-opcodes: configure-stage2-opcodes
4218configure-stage2-opcodes:
4219 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4220 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067 4221 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4223 TFLAGS="$(STAGE2_TFLAGS)"; \
4224 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4225 $(HOST_EXPORTS) \
a90ef4bf
JM
4226 $(POSTSTAGE1_HOST_EXPORTS) \
4227 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
4228 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
4229 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4230 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes; \
4231 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4232 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4233 case $(srcdir) in \
4234 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4235 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4236 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4237 esac; \
1b6c0831
L
4238 module_srcdir=opcodes; \
4239 $(SHELL) $$s/$$module_srcdir/configure \
4240 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4241 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4242 --target=${target_alias} \
22121df0 4243 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4244 $(STAGE2_CONFIGURE_FLAGS)
4245@endif opcodes-bootstrap
2a4cbe27 4246
a90ef4bf
JM
4247.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4248maybe-configure-stage3-opcodes:
4249@if opcodes-bootstrap
4250maybe-configure-stage3-opcodes: configure-stage3-opcodes
4251configure-stage3-opcodes:
4252 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4253 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4fa63067
NN
4254 @r=`${PWD_COMMAND}`; export r; \
4255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4256 TFLAGS="$(STAGE3_TFLAGS)"; \
4257 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4258 $(HOST_EXPORTS) \
a90ef4bf
JM
4259 $(POSTSTAGE1_HOST_EXPORTS) \
4260 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
4261 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
4262 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4263 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes; \
4264 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4265 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4266 case $(srcdir) in \
4267 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4268 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4269 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4270 esac; \
1b6c0831
L
4271 module_srcdir=opcodes; \
4272 $(SHELL) $$s/$$module_srcdir/configure \
4273 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4274 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4275 --target=${target_alias} \
22121df0 4276 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4277 $(STAGE3_CONFIGURE_FLAGS)
4278@endif opcodes-bootstrap
9b980aa1 4279
a90ef4bf
JM
4280.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
4281maybe-configure-stage4-opcodes:
4282@if opcodes-bootstrap
4283maybe-configure-stage4-opcodes: configure-stage4-opcodes
4284configure-stage4-opcodes:
4285 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4286 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
9b980aa1
RW
4287 @r=`${PWD_COMMAND}`; export r; \
4288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4289 TFLAGS="$(STAGE4_TFLAGS)"; \
4290 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
9b980aa1 4291 $(HOST_EXPORTS) \
a90ef4bf
JM
4292 $(POSTSTAGE1_HOST_EXPORTS) \
4293 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
4294 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
4295 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4296 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes; \
4297 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4298 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4299 case $(srcdir) in \
4300 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4301 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4302 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4303 esac; \
1b6c0831
L
4304 module_srcdir=opcodes; \
4305 $(SHELL) $$s/$$module_srcdir/configure \
4306 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4307 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4308 --target=${target_alias} \
22121df0 4309 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4310 $(STAGE4_CONFIGURE_FLAGS)
4311@endif opcodes-bootstrap
4fa63067 4312
a90ef4bf
JM
4313.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
4314maybe-configure-stageprofile-opcodes:
4315@if opcodes-bootstrap
4316maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
4317configure-stageprofile-opcodes:
4318 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4319 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4320 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
4322 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4323 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
378fce5b 4324 $(HOST_EXPORTS) \
a90ef4bf
JM
4325 $(POSTSTAGE1_HOST_EXPORTS) \
4326 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
4327 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
4328 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4329 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes; \
4330 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4331 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4332 case $(srcdir) in \
4333 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4334 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4335 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4336 esac; \
1b6c0831
L
4337 module_srcdir=opcodes; \
4338 $(SHELL) $$s/$$module_srcdir/configure \
4339 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4340 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4341 --target=${target_alias} \
22121df0 4342 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4343 $(STAGEprofile_CONFIGURE_FLAGS)
4344@endif opcodes-bootstrap
4345
4346.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
4347maybe-configure-stagefeedback-opcodes:
4348@if opcodes-bootstrap
4349maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
4350configure-stagefeedback-opcodes:
4351 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4352 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
4353 @r=`${PWD_COMMAND}`; export r; \
4354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4355 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4356 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4357 $(HOST_EXPORTS) \
4358 $(POSTSTAGE1_HOST_EXPORTS) \
4359 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
4360 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
4361 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
4362 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes; \
4363 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes; \
a90ef4bf
JM
4364 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4365 case $(srcdir) in \
4366 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4367 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4368 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4369 esac; \
1b6c0831
L
4370 module_srcdir=opcodes; \
4371 $(SHELL) $$s/$$module_srcdir/configure \
4372 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 4373 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 4374 --target=${target_alias} \
22121df0 4375 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
4376 $(STAGEfeedback_CONFIGURE_FLAGS)
4377@endif opcodes-bootstrap
4378
4379
4380
4381
4382
4383.PHONY: all-opcodes maybe-all-opcodes
4384maybe-all-opcodes:
4385@if gcc-bootstrap
4386all-opcodes: stage_current
4387@endif gcc-bootstrap
4388@if opcodes
4389TARGET-opcodes=all
4390maybe-all-opcodes: all-opcodes
4391all-opcodes: configure-opcodes
4392 @r=`${PWD_COMMAND}`; export r; \
4393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4394 $(HOST_EXPORTS) \
4395 (cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4396 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
4397 $(TARGET-opcodes))
4398@endif opcodes
4399
4400
4401
4402.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
4403.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
4404maybe-all-stage1-opcodes:
4405maybe-clean-stage1-opcodes:
4406@if opcodes-bootstrap
4407maybe-all-stage1-opcodes: all-stage1-opcodes
4408all-stage1: all-stage1-opcodes
4409TARGET-stage1-opcodes = $(TARGET-opcodes)
4410all-stage1-opcodes: configure-stage1-opcodes
4411 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
4412 @r=`${PWD_COMMAND}`; export r; \
4413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4414 TFLAGS="$(STAGE1_TFLAGS)"; \
4415 $(HOST_EXPORTS) \
4416 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4417 \
a90ef4bf
JM
4418 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4419 CFLAGS="$(STAGE1_CFLAGS)" \
4420 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
4421 LIBCFLAGS="$(LIBCFLAGS)" \
4422 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4423 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4424 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
4425 $(EXTRA_HOST_FLAGS) \
4426 $(STAGE1_FLAGS_TO_PASS) \
05a13254 4427 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
4428 $(TARGET-stage1-opcodes)
4429
4430maybe-clean-stage1-opcodes: clean-stage1-opcodes
4431clean-stage1: clean-stage1-opcodes
4432clean-stage1-opcodes:
4433 @if [ $(current_stage) = stage1 ]; then \
4434 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4435 else \
4436 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
4437 $(MAKE) stage1-start; \
4438 fi; \
4439 cd $(HOST_SUBDIR)/opcodes && \
4440 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 4441 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4442@endif opcodes-bootstrap
4443
4444
4445.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
4446.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
4447maybe-all-stage2-opcodes:
4448maybe-clean-stage2-opcodes:
4449@if opcodes-bootstrap
4450maybe-all-stage2-opcodes: all-stage2-opcodes
4451all-stage2: all-stage2-opcodes
4452TARGET-stage2-opcodes = $(TARGET-opcodes)
4453all-stage2-opcodes: configure-stage2-opcodes
4454 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
4455 @r=`${PWD_COMMAND}`; export r; \
4456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4457 TFLAGS="$(STAGE2_TFLAGS)"; \
4458 $(HOST_EXPORTS) \
4459 $(POSTSTAGE1_HOST_EXPORTS) \
4460 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4461 \
a90ef4bf
JM
4462 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4463 CFLAGS="$(STAGE2_CFLAGS)" \
4464 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
4465 LIBCFLAGS="$(STAGE2_CFLAGS)" \
4466 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4467 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4468 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4469 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4470 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
4471 $(TARGET-stage2-opcodes)
4472
4473maybe-clean-stage2-opcodes: clean-stage2-opcodes
4474clean-stage2: clean-stage2-opcodes
4475clean-stage2-opcodes:
4476 @if [ $(current_stage) = stage2 ]; then \
4477 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4478 else \
4479 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
4480 $(MAKE) stage2-start; \
4481 fi; \
4482 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4483 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4484@endif opcodes-bootstrap
4485
4486
4487.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
4488.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
4489maybe-all-stage3-opcodes:
4490maybe-clean-stage3-opcodes:
4491@if opcodes-bootstrap
4492maybe-all-stage3-opcodes: all-stage3-opcodes
4493all-stage3: all-stage3-opcodes
4494TARGET-stage3-opcodes = $(TARGET-opcodes)
4495all-stage3-opcodes: configure-stage3-opcodes
4496 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
4497 @r=`${PWD_COMMAND}`; export r; \
4498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4499 TFLAGS="$(STAGE3_TFLAGS)"; \
4500 $(HOST_EXPORTS) \
4501 $(POSTSTAGE1_HOST_EXPORTS) \
4502 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4503 \
a90ef4bf
JM
4504 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4505 CFLAGS="$(STAGE3_CFLAGS)" \
4506 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
4507 LIBCFLAGS="$(STAGE3_CFLAGS)" \
4508 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4509 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4510 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4511 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4512 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
4513 $(TARGET-stage3-opcodes)
4514
4515maybe-clean-stage3-opcodes: clean-stage3-opcodes
4516clean-stage3: clean-stage3-opcodes
4517clean-stage3-opcodes:
4518 @if [ $(current_stage) = stage3 ]; then \
4519 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4520 else \
4521 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
4522 $(MAKE) stage3-start; \
4523 fi; \
4524 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4525 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4526@endif opcodes-bootstrap
4527
4528
4529.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
4530.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
4531maybe-all-stage4-opcodes:
4532maybe-clean-stage4-opcodes:
4533@if opcodes-bootstrap
4534maybe-all-stage4-opcodes: all-stage4-opcodes
4535all-stage4: all-stage4-opcodes
4536TARGET-stage4-opcodes = $(TARGET-opcodes)
4537all-stage4-opcodes: configure-stage4-opcodes
4538 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
4539 @r=`${PWD_COMMAND}`; export r; \
4540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4541 TFLAGS="$(STAGE4_TFLAGS)"; \
4542 $(HOST_EXPORTS) \
4543 $(POSTSTAGE1_HOST_EXPORTS) \
4544 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4545 \
a90ef4bf
JM
4546 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4547 CFLAGS="$(STAGE4_CFLAGS)" \
4548 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
4549 LIBCFLAGS="$(STAGE4_CFLAGS)" \
4550 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4551 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4552 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4553 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4554 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
4555 $(TARGET-stage4-opcodes)
4556
4557maybe-clean-stage4-opcodes: clean-stage4-opcodes
4558clean-stage4: clean-stage4-opcodes
4559clean-stage4-opcodes:
4560 @if [ $(current_stage) = stage4 ]; then \
4561 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4562 else \
4563 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
4564 $(MAKE) stage4-start; \
4565 fi; \
4566 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4567 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4568@endif opcodes-bootstrap
4569
4570
4571.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
4572.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
4573maybe-all-stageprofile-opcodes:
4574maybe-clean-stageprofile-opcodes:
4575@if opcodes-bootstrap
4576maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
4577all-stageprofile: all-stageprofile-opcodes
4578TARGET-stageprofile-opcodes = $(TARGET-opcodes)
4579all-stageprofile-opcodes: configure-stageprofile-opcodes
4580 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
4581 @r=`${PWD_COMMAND}`; export r; \
4582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4583 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4584 $(HOST_EXPORTS) \
4585 $(POSTSTAGE1_HOST_EXPORTS) \
4586 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4587 \
a90ef4bf
JM
4588 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4589 CFLAGS="$(STAGEprofile_CFLAGS)" \
4590 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
4591 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
4592 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4593 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4594 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4595 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4596 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
4597 $(TARGET-stageprofile-opcodes)
4598
4599maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
4600clean-stageprofile: clean-stageprofile-opcodes
4601clean-stageprofile-opcodes:
4602 @if [ $(current_stage) = stageprofile ]; then \
4603 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4604 else \
4605 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
4606 $(MAKE) stageprofile-start; \
4607 fi; \
4608 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4609 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4610@endif opcodes-bootstrap
4611
4612
4613.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
4614.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
4615maybe-all-stagefeedback-opcodes:
4616maybe-clean-stagefeedback-opcodes:
4617@if opcodes-bootstrap
4618maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
4619all-stagefeedback: all-stagefeedback-opcodes
4620TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
4621all-stagefeedback-opcodes: configure-stagefeedback-opcodes
4622 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4623 @r=`${PWD_COMMAND}`; export r; \
4624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4625 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4626 $(HOST_EXPORTS) \
4627 $(POSTSTAGE1_HOST_EXPORTS) \
4628 cd $(HOST_SUBDIR)/opcodes && \
05a13254 4629 \
a90ef4bf
JM
4630 $(MAKE) $(BASE_FLAGS_TO_PASS) \
4631 CFLAGS="$(STAGEfeedback_CFLAGS)" \
4632 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
4633 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
4634 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
4635 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
4636 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
4637 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 4638 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
4639 $(TARGET-stagefeedback-opcodes)
4640
4641maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
4642clean-stagefeedback: clean-stagefeedback-opcodes
4643clean-stagefeedback-opcodes:
4644 @if [ $(current_stage) = stagefeedback ]; then \
4645 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
4646 else \
4647 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
4648 $(MAKE) stagefeedback-start; \
4649 fi; \
4650 cd $(HOST_SUBDIR)/opcodes && \
b3676d82 4651 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
4652@endif opcodes-bootstrap
4653
4654
4655
4656
4657
4658.PHONY: check-opcodes maybe-check-opcodes
4659maybe-check-opcodes:
4660@if opcodes
4661maybe-check-opcodes: check-opcodes
4662
4663check-opcodes:
0aed8855 4664 @: $(MAKE); $(unstage)
a90ef4bf 4665 @r=`${PWD_COMMAND}`; export r; \
b40e3958 4666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 4667 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 4668 (cd $(HOST_SUBDIR)/opcodes && \
f91ca6bc 4669 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 4670
a90ef4bf 4671@endif opcodes
2a4cbe27 4672
a90ef4bf
JM
4673.PHONY: install-opcodes maybe-install-opcodes
4674maybe-install-opcodes:
4675@if opcodes
4676maybe-install-opcodes: install-opcodes
56a8fe78 4677
a90ef4bf 4678install-opcodes: installdirs
56a8fe78 4679 @: $(MAKE); $(unstage)
a90ef4bf 4680 @r=`${PWD_COMMAND}`; export r; \
56a8fe78
DD
4681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4682 $(HOST_EXPORTS) \
a90ef4bf
JM
4683 (cd $(HOST_SUBDIR)/opcodes && \
4684 $(MAKE) $(FLAGS_TO_PASS) install)
56a8fe78 4685
a90ef4bf 4686@endif opcodes
56a8fe78 4687
a90ef4bf
JM
4688.PHONY: install-strip-opcodes maybe-install-strip-opcodes
4689maybe-install-strip-opcodes:
4690@if opcodes
4691maybe-install-strip-opcodes: install-strip-opcodes
6d389afc 4692
a90ef4bf 4693install-strip-opcodes: installdirs
0aed8855 4694 @: $(MAKE); $(unstage)
a90ef4bf
JM
4695 @r=`${PWD_COMMAND}`; export r; \
4696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4697 $(HOST_EXPORTS) \
4698 (cd $(HOST_SUBDIR)/opcodes && \
4699 $(MAKE) $(FLAGS_TO_PASS) install-strip)
4700
4701@endif opcodes
4702
4703# Other targets (info, dvi, pdf, etc.)
4704
4705.PHONY: maybe-info-opcodes info-opcodes
4706maybe-info-opcodes:
4707@if opcodes
4708maybe-info-opcodes: info-opcodes
4709
4710info-opcodes: \
4711 configure-opcodes
4712 @[ -f ./opcodes/Makefile ] || exit 0; \
6d389afc
MS
4713 r=`${PWD_COMMAND}`; export r; \
4714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
4715 $(HOST_EXPORTS) \
4716 for flag in $(EXTRA_HOST_FLAGS) ; do \
4717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4718 done; \
22121df0 4719 echo "Doing info in opcodes"; \
a90ef4bf 4720 (cd $(HOST_SUBDIR)/opcodes && \
6d389afc
MS
4721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4723 "RANLIB=$${RANLIB}" \
0c24b341 4724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4725 info) \
6d389afc
MS
4726 || exit 1
4727
a90ef4bf 4728@endif opcodes
6d389afc 4729
a90ef4bf
JM
4730.PHONY: maybe-dvi-opcodes dvi-opcodes
4731maybe-dvi-opcodes:
4732@if opcodes
4733maybe-dvi-opcodes: dvi-opcodes
2a4cbe27 4734
a90ef4bf
JM
4735dvi-opcodes: \
4736 configure-opcodes
4737 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4738 r=`${PWD_COMMAND}`; export r; \
4739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4740 $(HOST_EXPORTS) \
b813574b 4741 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4743 done; \
22121df0 4744 echo "Doing dvi in opcodes"; \
a90ef4bf 4745 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4748 "RANLIB=$${RANLIB}" \
0c24b341 4749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4750 dvi) \
2a4cbe27
NN
4751 || exit 1
4752
a90ef4bf 4753@endif opcodes
2a4cbe27 4754
a90ef4bf
JM
4755.PHONY: maybe-pdf-opcodes pdf-opcodes
4756maybe-pdf-opcodes:
4757@if opcodes
4758maybe-pdf-opcodes: pdf-opcodes
2a4cbe27 4759
a90ef4bf
JM
4760pdf-opcodes: \
4761 configure-opcodes
4762 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4763 r=`${PWD_COMMAND}`; export r; \
4764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4765 $(HOST_EXPORTS) \
b813574b 4766 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4768 done; \
22121df0 4769 echo "Doing pdf in opcodes"; \
a90ef4bf 4770 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4773 "RANLIB=$${RANLIB}" \
0c24b341 4774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4775 pdf) \
2a4cbe27
NN
4776 || exit 1
4777
a90ef4bf 4778@endif opcodes
2a4cbe27 4779
a90ef4bf
JM
4780.PHONY: maybe-html-opcodes html-opcodes
4781maybe-html-opcodes:
4782@if opcodes
4783maybe-html-opcodes: html-opcodes
a3ca38d2 4784
a90ef4bf
JM
4785html-opcodes: \
4786 configure-opcodes
4787 @[ -f ./opcodes/Makefile ] || exit 0; \
a3ca38d2
DD
4788 r=`${PWD_COMMAND}`; export r; \
4789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4790 $(HOST_EXPORTS) \
4791 for flag in $(EXTRA_HOST_FLAGS) ; do \
4792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4793 done; \
22121df0 4794 echo "Doing html in opcodes"; \
a90ef4bf 4795 (cd $(HOST_SUBDIR)/opcodes && \
a3ca38d2
DD
4796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4798 "RANLIB=$${RANLIB}" \
0c24b341 4799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4800 html) \
a3ca38d2
DD
4801 || exit 1
4802
a90ef4bf 4803@endif opcodes
a3ca38d2 4804
a90ef4bf
JM
4805.PHONY: maybe-TAGS-opcodes TAGS-opcodes
4806maybe-TAGS-opcodes:
4807@if opcodes
4808maybe-TAGS-opcodes: TAGS-opcodes
108a6f8e 4809
a90ef4bf
JM
4810TAGS-opcodes: \
4811 configure-opcodes
4812 @[ -f ./opcodes/Makefile ] || exit 0; \
108a6f8e
CD
4813 r=`${PWD_COMMAND}`; export r; \
4814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4815 $(HOST_EXPORTS) \
4816 for flag in $(EXTRA_HOST_FLAGS) ; do \
4817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4818 done; \
22121df0 4819 echo "Doing TAGS in opcodes"; \
a90ef4bf 4820 (cd $(HOST_SUBDIR)/opcodes && \
108a6f8e
CD
4821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4823 "RANLIB=$${RANLIB}" \
0c24b341 4824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4825 TAGS) \
108a6f8e
CD
4826 || exit 1
4827
a90ef4bf 4828@endif opcodes
108a6f8e 4829
a90ef4bf
JM
4830.PHONY: maybe-install-info-opcodes install-info-opcodes
4831maybe-install-info-opcodes:
4832@if opcodes
4833maybe-install-info-opcodes: install-info-opcodes
2a4cbe27 4834
a90ef4bf
JM
4835install-info-opcodes: \
4836 configure-opcodes \
4837 info-opcodes
4838 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4839 r=`${PWD_COMMAND}`; export r; \
4840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4841 $(HOST_EXPORTS) \
b813574b 4842 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4844 done; \
22121df0 4845 echo "Doing install-info in opcodes"; \
a90ef4bf 4846 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4849 "RANLIB=$${RANLIB}" \
0c24b341 4850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4851 install-info) \
2a4cbe27
NN
4852 || exit 1
4853
a90ef4bf 4854@endif opcodes
2a4cbe27 4855
a90ef4bf
JM
4856.PHONY: maybe-install-pdf-opcodes install-pdf-opcodes
4857maybe-install-pdf-opcodes:
4858@if opcodes
4859maybe-install-pdf-opcodes: install-pdf-opcodes
2a4cbe27 4860
a90ef4bf
JM
4861install-pdf-opcodes: \
4862 configure-opcodes \
4863 pdf-opcodes
4864 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4865 r=`${PWD_COMMAND}`; export r; \
4866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4867 $(HOST_EXPORTS) \
b813574b 4868 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4870 done; \
22121df0 4871 echo "Doing install-pdf in opcodes"; \
a90ef4bf 4872 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4875 "RANLIB=$${RANLIB}" \
0c24b341 4876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4877 install-pdf) \
2a4cbe27
NN
4878 || exit 1
4879
a90ef4bf 4880@endif opcodes
2a4cbe27 4881
a90ef4bf
JM
4882.PHONY: maybe-install-html-opcodes install-html-opcodes
4883maybe-install-html-opcodes:
4884@if opcodes
4885maybe-install-html-opcodes: install-html-opcodes
2a4cbe27 4886
a90ef4bf
JM
4887install-html-opcodes: \
4888 configure-opcodes \
4889 html-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 install-html 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}" \
a90ef4bf 4903 install-html) \
2a4cbe27
NN
4904 || exit 1
4905
a90ef4bf 4906@endif opcodes
2a4cbe27 4907
a90ef4bf
JM
4908.PHONY: maybe-installcheck-opcodes installcheck-opcodes
4909maybe-installcheck-opcodes:
4910@if opcodes
4911maybe-installcheck-opcodes: installcheck-opcodes
2a4cbe27 4912
a90ef4bf
JM
4913installcheck-opcodes: \
4914 configure-opcodes
4915 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4916 r=`${PWD_COMMAND}`; export r; \
4917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4918 $(HOST_EXPORTS) \
b813574b 4919 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4921 done; \
22121df0 4922 echo "Doing installcheck in opcodes"; \
a90ef4bf 4923 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4926 "RANLIB=$${RANLIB}" \
0c24b341 4927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 4928 installcheck) \
2a4cbe27
NN
4929 || exit 1
4930
a90ef4bf 4931@endif opcodes
2a4cbe27 4932
a90ef4bf
JM
4933.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
4934maybe-mostlyclean-opcodes:
4935@if opcodes
4936maybe-mostlyclean-opcodes: mostlyclean-opcodes
2a4cbe27 4937
a90ef4bf
JM
4938mostlyclean-opcodes:
4939 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4940 r=`${PWD_COMMAND}`; export r; \
4941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4942 $(HOST_EXPORTS) \
b813574b 4943 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4945 done; \
22121df0 4946 echo "Doing mostlyclean in opcodes"; \
a90ef4bf 4947 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4950 "RANLIB=$${RANLIB}" \
0c24b341 4951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4952 mostlyclean) \
2a4cbe27
NN
4953 || exit 1
4954
a90ef4bf 4955@endif opcodes
2a4cbe27 4956
a90ef4bf
JM
4957.PHONY: maybe-clean-opcodes clean-opcodes
4958maybe-clean-opcodes:
4959@if opcodes
4960maybe-clean-opcodes: clean-opcodes
2a4cbe27 4961
a90ef4bf
JM
4962clean-opcodes:
4963 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4964 r=`${PWD_COMMAND}`; export r; \
4965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4966 $(HOST_EXPORTS) \
b813574b 4967 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4969 done; \
22121df0 4970 echo "Doing clean in opcodes"; \
a90ef4bf 4971 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4974 "RANLIB=$${RANLIB}" \
0c24b341 4975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 4976 clean) \
2a4cbe27
NN
4977 || exit 1
4978
a90ef4bf 4979@endif opcodes
2a4cbe27 4980
a90ef4bf
JM
4981.PHONY: maybe-distclean-opcodes distclean-opcodes
4982maybe-distclean-opcodes:
4983@if opcodes
4984maybe-distclean-opcodes: distclean-opcodes
2a4cbe27 4985
a90ef4bf
JM
4986distclean-opcodes:
4987 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
4988 r=`${PWD_COMMAND}`; export r; \
4989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 4990 $(HOST_EXPORTS) \
b813574b 4991 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
4992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4993 done; \
22121df0 4994 echo "Doing distclean in opcodes"; \
a90ef4bf 4995 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
4996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4998 "RANLIB=$${RANLIB}" \
0c24b341 4999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5000 distclean) \
2a4cbe27
NN
5001 || exit 1
5002
a90ef4bf 5003@endif opcodes
2a4cbe27 5004
a90ef4bf
JM
5005.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
5006maybe-maintainer-clean-opcodes:
5007@if opcodes
5008maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
2a4cbe27 5009
a90ef4bf
JM
5010maintainer-clean-opcodes:
5011 @[ -f ./opcodes/Makefile ] || exit 0; \
b40e3958
L
5012 r=`${PWD_COMMAND}`; export r; \
5013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5014 $(HOST_EXPORTS) \
b813574b 5015 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5017 done; \
22121df0 5018 echo "Doing maintainer-clean in opcodes"; \
a90ef4bf 5019 (cd $(HOST_SUBDIR)/opcodes && \
2a4cbe27
NN
5020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5022 "RANLIB=$${RANLIB}" \
0c24b341 5023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5024 maintainer-clean) \
2a4cbe27
NN
5025 || exit 1
5026
a90ef4bf 5027@endif opcodes
2a4cbe27 5028
2a4cbe27 5029
a7254363 5030
a90ef4bf
JM
5031.PHONY: configure-binutils maybe-configure-binutils
5032maybe-configure-binutils:
4f0ef2d8 5033@if gcc-bootstrap
a90ef4bf 5034configure-binutils: stage_current
4f0ef2d8 5035@endif gcc-bootstrap
a90ef4bf
JM
5036@if binutils
5037maybe-configure-binutils: configure-binutils
5038configure-binutils:
c52c6897
PB
5039 @r=`${PWD_COMMAND}`; export r; \
5040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5041 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
22121df0 5042 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
1f53ca9a 5043 $(HOST_EXPORTS) \
a90ef4bf
JM
5044 echo Configuring in $(HOST_SUBDIR)/binutils; \
5045 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
4fa63067 5046 case $(srcdir) in \
b00612cc 5047 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5048 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
b00612cc 5049 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5050 esac; \
1b6c0831
L
5051 module_srcdir=binutils; \
5052 $(SHELL) \
5053 $$s/$$module_srcdir/configure \
5054 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5055 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5056 --target=${target_alias} \
2a4cbe27 5057 || exit 1
a90ef4bf 5058@endif binutils
2a4cbe27 5059
a7254363
PB
5060
5061
a90ef4bf
JM
5062.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
5063maybe-configure-stage1-binutils:
5064@if binutils-bootstrap
5065maybe-configure-stage1-binutils: configure-stage1-binutils
5066configure-stage1-binutils:
c52c6897 5067 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 5068 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5069 @r=`${PWD_COMMAND}`; export r; \
5070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5071 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 5072 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
1b05fbbd 5073 $(HOST_EXPORTS) \
8ee82aff 5074 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5075 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
5076 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
5077 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils; \
5078 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5079 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5080 case $(srcdir) in \
5081 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5082 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5083 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5084 esac; \
1b6c0831
L
5085 module_srcdir=binutils; \
5086 $(SHELL) $$s/$$module_srcdir/configure \
5087 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5088 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
5089 --target=${target_alias} \
5090 \
1b05fbbd 5091 $(STAGE1_CONFIGURE_FLAGS)
a90ef4bf 5092@endif binutils-bootstrap
d545f33b 5093
a90ef4bf
JM
5094.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
5095maybe-configure-stage2-binutils:
5096@if binutils-bootstrap
5097maybe-configure-stage2-binutils: configure-stage2-binutils
5098configure-stage2-binutils:
c52c6897 5099 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 5100 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5101 @r=`${PWD_COMMAND}`; export r; \
5102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5103 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 5104 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5105 $(HOST_EXPORTS) \
1b05fbbd 5106 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5107 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5108 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
5109 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5110 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils; \
5111 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5112 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5113 case $(srcdir) in \
5114 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5115 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5116 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5117 esac; \
1b6c0831
L
5118 module_srcdir=binutils; \
5119 $(SHELL) $$s/$$module_srcdir/configure \
5120 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5121 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5122 --target=${target_alias} \
22121df0 5123 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5124 $(STAGE2_CONFIGURE_FLAGS)
a90ef4bf 5125@endif binutils-bootstrap
8520c408 5126
a90ef4bf
JM
5127.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5128maybe-configure-stage3-binutils:
5129@if binutils-bootstrap
5130maybe-configure-stage3-binutils: configure-stage3-binutils
5131configure-stage3-binutils:
c52c6897 5132 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 5133 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5134 @r=`${PWD_COMMAND}`; export r; \
5135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5136 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 5137 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5138 $(HOST_EXPORTS) \
1b05fbbd 5139 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5140 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5141 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
5142 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5143 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils; \
5144 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5145 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5146 case $(srcdir) in \
5147 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5148 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5149 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5150 esac; \
1b6c0831
L
5151 module_srcdir=binutils; \
5152 $(SHELL) $$s/$$module_srcdir/configure \
5153 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5154 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5155 --target=${target_alias} \
22121df0 5156 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5157 $(STAGE3_CONFIGURE_FLAGS)
a90ef4bf 5158@endif binutils-bootstrap
8520c408 5159
a90ef4bf
JM
5160.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5161maybe-configure-stage4-binutils:
5162@if binutils-bootstrap
5163maybe-configure-stage4-binutils: configure-stage4-binutils
5164configure-stage4-binutils:
c52c6897 5165 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 5166 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5167 @r=`${PWD_COMMAND}`; export r; \
5168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5169 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 5170 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5171 $(HOST_EXPORTS) \
1b05fbbd 5172 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 5173 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5174 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
5175 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5176 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils; \
5177 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5178 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5179 case $(srcdir) in \
5180 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5181 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5182 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5183 esac; \
1b6c0831
L
5184 module_srcdir=binutils; \
5185 $(SHELL) $$s/$$module_srcdir/configure \
5186 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5187 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5188 --target=${target_alias} \
22121df0 5189 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5190 $(STAGE4_CONFIGURE_FLAGS)
a90ef4bf 5191@endif binutils-bootstrap
d545f33b 5192
a90ef4bf
JM
5193.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5194maybe-configure-stageprofile-binutils:
5195@if binutils-bootstrap
5196maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
5197configure-stageprofile-binutils:
c52c6897 5198 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 5199 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5200 @r=`${PWD_COMMAND}`; export r; \
5201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5202 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 5203 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5204 $(HOST_EXPORTS) \
1b05fbbd
AO
5205 $(POSTSTAGE1_HOST_EXPORTS) \
5206 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5207 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
5208 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5209 echo Configuring stage profile in $(HOST_SUBDIR)/binutils; \
5210 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5211 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5212 case $(srcdir) in \
5213 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5214 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5215 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5216 esac; \
1b6c0831
L
5217 module_srcdir=binutils; \
5218 $(SHELL) $$s/$$module_srcdir/configure \
5219 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5220 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5221 --target=${target_alias} \
22121df0 5222 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5223 $(STAGEprofile_CONFIGURE_FLAGS)
a90ef4bf 5224@endif binutils-bootstrap
d545f33b 5225
a90ef4bf
JM
5226.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5227maybe-configure-stagefeedback-binutils:
5228@if binutils-bootstrap
5229maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
5230configure-stagefeedback-binutils:
c52c6897 5231 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 5232 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
c52c6897
PB
5233 @r=`${PWD_COMMAND}`; export r; \
5234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5235 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 5236 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
d545f33b 5237 $(HOST_EXPORTS) \
1b05fbbd
AO
5238 $(POSTSTAGE1_HOST_EXPORTS) \
5239 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
5240 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
5241 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
5242 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils; \
5243 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils; \
a90ef4bf 5244 cd $(HOST_SUBDIR)/binutils || exit 1; \
d545f33b
PB
5245 case $(srcdir) in \
5246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5247 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
d545f33b
PB
5248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5249 esac; \
1b6c0831
L
5250 module_srcdir=binutils; \
5251 $(SHELL) $$s/$$module_srcdir/configure \
5252 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5253 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5254 --target=${target_alias} \
22121df0 5255 --with-build-libsubdir=$(HOST_SUBDIR) \
1b05fbbd 5256 $(STAGEfeedback_CONFIGURE_FLAGS)
a90ef4bf 5257@endif binutils-bootstrap
d545f33b
PB
5258
5259
5260
5261
5262
a90ef4bf
JM
5263.PHONY: all-binutils maybe-all-binutils
5264maybe-all-binutils:
4f0ef2d8 5265@if gcc-bootstrap
a90ef4bf 5266all-binutils: stage_current
4f0ef2d8 5267@endif gcc-bootstrap
a90ef4bf
JM
5268@if binutils
5269TARGET-binutils=all
5270maybe-all-binutils: all-binutils
5271all-binutils: configure-binutils
c52c6897 5272 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 5274 $(HOST_EXPORTS) \
a90ef4bf 5275 (cd $(HOST_SUBDIR)/binutils && \
b3676d82 5276 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5277 $(TARGET-binutils))
5278@endif binutils
2a4cbe27 5279
a7254363 5280
d545f33b 5281
a90ef4bf
JM
5282.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5283.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5284maybe-all-stage1-binutils:
5285maybe-clean-stage1-binutils:
5286@if binutils-bootstrap
5287maybe-all-stage1-binutils: all-stage1-binutils
5288all-stage1: all-stage1-binutils
5289TARGET-stage1-binutils = $(TARGET-binutils)
5290all-stage1-binutils: configure-stage1-binutils
c52c6897 5291 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
5292 @r=`${PWD_COMMAND}`; export r; \
5293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5294 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 5295 $(HOST_EXPORTS) \
a90ef4bf 5296 cd $(HOST_SUBDIR)/binutils && \
05a13254 5297 \
7f6ef0c0 5298 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5299 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 5300 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
5301 LIBCFLAGS="$(LIBCFLAGS)" \
5302 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5303 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5304 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
5305 $(EXTRA_HOST_FLAGS) \
5306 $(STAGE1_FLAGS_TO_PASS) \
05a13254 5307 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 5308 $(TARGET-stage1-binutils)
d545f33b 5309
a90ef4bf
JM
5310maybe-clean-stage1-binutils: clean-stage1-binutils
5311clean-stage1: clean-stage1-binutils
5312clean-stage1-binutils:
9dbaa842 5313 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 5314 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5315 else \
a90ef4bf 5316 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5317 $(MAKE) stage1-start; \
5318 fi; \
a90ef4bf 5319 cd $(HOST_SUBDIR)/binutils && \
7f6ef0c0 5320 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 5321 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5322@endif binutils-bootstrap
d545f33b
PB
5323
5324
a90ef4bf
JM
5325.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5326.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5327maybe-all-stage2-binutils:
5328maybe-clean-stage2-binutils:
5329@if binutils-bootstrap
5330maybe-all-stage2-binutils: all-stage2-binutils
5331all-stage2: all-stage2-binutils
5332TARGET-stage2-binutils = $(TARGET-binutils)
5333all-stage2-binutils: configure-stage2-binutils
c52c6897 5334 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
5335 @r=`${PWD_COMMAND}`; export r; \
5336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5337 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 5338 $(HOST_EXPORTS) \
1f53ca9a 5339 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5340 cd $(HOST_SUBDIR)/binutils && \
05a13254 5341 \
7f6ef0c0 5342 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5343 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 5344 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
5345 LIBCFLAGS="$(STAGE2_CFLAGS)" \
5346 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5347 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5348 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5349 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5350 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 5351 $(TARGET-stage2-binutils)
d545f33b 5352
a90ef4bf
JM
5353maybe-clean-stage2-binutils: clean-stage2-binutils
5354clean-stage2: clean-stage2-binutils
5355clean-stage2-binutils:
9dbaa842 5356 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 5357 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5358 else \
a90ef4bf 5359 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5360 $(MAKE) stage2-start; \
5361 fi; \
a90ef4bf 5362 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5363 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5364@endif binutils-bootstrap
d545f33b
PB
5365
5366
a90ef4bf
JM
5367.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5368.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5369maybe-all-stage3-binutils:
5370maybe-clean-stage3-binutils:
5371@if binutils-bootstrap
5372maybe-all-stage3-binutils: all-stage3-binutils
5373all-stage3: all-stage3-binutils
5374TARGET-stage3-binutils = $(TARGET-binutils)
5375all-stage3-binutils: configure-stage3-binutils
c52c6897 5376 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
5377 @r=`${PWD_COMMAND}`; export r; \
5378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5379 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 5380 $(HOST_EXPORTS) \
1f53ca9a 5381 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5382 cd $(HOST_SUBDIR)/binutils && \
05a13254 5383 \
7f6ef0c0 5384 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5385 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 5386 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
5387 LIBCFLAGS="$(STAGE3_CFLAGS)" \
5388 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5389 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5390 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5391 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5392 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 5393 $(TARGET-stage3-binutils)
d545f33b 5394
a90ef4bf
JM
5395maybe-clean-stage3-binutils: clean-stage3-binutils
5396clean-stage3: clean-stage3-binutils
5397clean-stage3-binutils:
9dbaa842 5398 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 5399 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5400 else \
a90ef4bf 5401 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5402 $(MAKE) stage3-start; \
5403 fi; \
a90ef4bf 5404 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5405 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5406@endif binutils-bootstrap
d545f33b
PB
5407
5408
a90ef4bf
JM
5409.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5410.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5411maybe-all-stage4-binutils:
5412maybe-clean-stage4-binutils:
5413@if binutils-bootstrap
5414maybe-all-stage4-binutils: all-stage4-binutils
5415all-stage4: all-stage4-binutils
5416TARGET-stage4-binutils = $(TARGET-binutils)
5417all-stage4-binutils: configure-stage4-binutils
c52c6897 5418 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
5419 @r=`${PWD_COMMAND}`; export r; \
5420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5421 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 5422 $(HOST_EXPORTS) \
1f53ca9a 5423 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5424 cd $(HOST_SUBDIR)/binutils && \
05a13254 5425 \
7f6ef0c0 5426 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5427 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 5428 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 5429 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
5430 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5431 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5432 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5433 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5434 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 5435 $(TARGET-stage4-binutils)
d545f33b 5436
a90ef4bf
JM
5437maybe-clean-stage4-binutils: clean-stage4-binutils
5438clean-stage4: clean-stage4-binutils
5439clean-stage4-binutils:
9dbaa842 5440 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 5441 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5442 else \
a90ef4bf 5443 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5444 $(MAKE) stage4-start; \
5445 fi; \
a90ef4bf 5446 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5447 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5448@endif binutils-bootstrap
d545f33b
PB
5449
5450
a90ef4bf
JM
5451.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5452.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5453maybe-all-stageprofile-binutils:
5454maybe-clean-stageprofile-binutils:
5455@if binutils-bootstrap
5456maybe-all-stageprofile-binutils: all-stageprofile-binutils
5457all-stageprofile: all-stageprofile-binutils
5458TARGET-stageprofile-binutils = $(TARGET-binutils)
5459all-stageprofile-binutils: configure-stageprofile-binutils
c52c6897 5460 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
5461 @r=`${PWD_COMMAND}`; export r; \
5462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5463 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 5464 $(HOST_EXPORTS) \
1f53ca9a 5465 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5466 cd $(HOST_SUBDIR)/binutils && \
05a13254 5467 \
7f6ef0c0 5468 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5469 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 5470 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
5471 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
5472 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5473 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5474 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5475 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5476 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 5477 $(TARGET-stageprofile-binutils)
d545f33b 5478
a90ef4bf
JM
5479maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5480clean-stageprofile: clean-stageprofile-binutils
5481clean-stageprofile-binutils:
9dbaa842 5482 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 5483 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5484 else \
a90ef4bf 5485 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5486 $(MAKE) stageprofile-start; \
5487 fi; \
a90ef4bf 5488 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5489 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5490@endif binutils-bootstrap
d545f33b
PB
5491
5492
a90ef4bf
JM
5493.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5494.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5495maybe-all-stagefeedback-binutils:
5496maybe-clean-stagefeedback-binutils:
5497@if binutils-bootstrap
5498maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5499all-stagefeedback: all-stagefeedback-binutils
5500TARGET-stagefeedback-binutils = $(TARGET-binutils)
5501all-stagefeedback-binutils: configure-stagefeedback-binutils
c52c6897 5502 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
5503 @r=`${PWD_COMMAND}`; export r; \
5504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 5505 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 5506 $(HOST_EXPORTS) \
1f53ca9a 5507 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 5508 cd $(HOST_SUBDIR)/binutils && \
05a13254 5509 \
7f6ef0c0 5510 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 5511 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 5512 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
5513 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
5514 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
5515 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
5516 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
5517 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 5518 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 5519 $(TARGET-stagefeedback-binutils)
d545f33b 5520
a90ef4bf
JM
5521maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
5522clean-stagefeedback: clean-stagefeedback-binutils
5523clean-stagefeedback-binutils:
9dbaa842 5524 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 5525 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
9dbaa842 5526 else \
a90ef4bf 5527 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
9dbaa842
DD
5528 $(MAKE) stagefeedback-start; \
5529 fi; \
a90ef4bf 5530 cd $(HOST_SUBDIR)/binutils && \
b3676d82 5531 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 5532@endif binutils-bootstrap
d545f33b
PB
5533
5534
5535
5536
5537
a90ef4bf
JM
5538.PHONY: check-binutils maybe-check-binutils
5539maybe-check-binutils:
5540@if binutils
5541maybe-check-binutils: check-binutils
2a4cbe27 5542
a90ef4bf 5543check-binutils:
0aed8855 5544 @: $(MAKE); $(unstage)
4fa63067 5545 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5547 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 5548 (cd $(HOST_SUBDIR)/binutils && \
f91ca6bc 5549 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 5550
a90ef4bf 5551@endif binutils
2a4cbe27 5552
a90ef4bf
JM
5553.PHONY: install-binutils maybe-install-binutils
5554maybe-install-binutils:
5555@if binutils
5556maybe-install-binutils: install-binutils
2a4cbe27 5557
a90ef4bf 5558install-binutils: installdirs
0aed8855 5559 @: $(MAKE); $(unstage)
4fa63067 5560 @r=`${PWD_COMMAND}`; export r; \
b40e3958 5561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5562 $(HOST_EXPORTS) \
a90ef4bf 5563 (cd $(HOST_SUBDIR)/binutils && \
2da12f12 5564 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5565
a90ef4bf 5566@endif binutils
2a4cbe27 5567
a90ef4bf
JM
5568.PHONY: install-strip-binutils maybe-install-strip-binutils
5569maybe-install-strip-binutils:
5570@if binutils
5571maybe-install-strip-binutils: install-strip-binutils
9b980aa1 5572
a90ef4bf 5573install-strip-binutils: installdirs
9b980aa1
RW
5574 @: $(MAKE); $(unstage)
5575 @r=`${PWD_COMMAND}`; export r; \
5576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5577 $(HOST_EXPORTS) \
a90ef4bf 5578 (cd $(HOST_SUBDIR)/binutils && \
9b980aa1
RW
5579 $(MAKE) $(FLAGS_TO_PASS) install-strip)
5580
a90ef4bf 5581@endif binutils
9b980aa1 5582
56a8fe78 5583# Other targets (info, dvi, pdf, etc.)
2a4cbe27 5584
a90ef4bf
JM
5585.PHONY: maybe-info-binutils info-binutils
5586maybe-info-binutils:
5587@if binutils
5588maybe-info-binutils: info-binutils
4fa63067 5589
a90ef4bf
JM
5590info-binutils: \
5591 configure-binutils
5592 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5593 r=`${PWD_COMMAND}`; export r; \
5594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5595 $(HOST_EXPORTS) \
b813574b 5596 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5598 done; \
22121df0 5599 echo "Doing info in binutils"; \
a90ef4bf 5600 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5603 "RANLIB=$${RANLIB}" \
0c24b341 5604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5605 info) \
2a4cbe27
NN
5606 || exit 1
5607
a90ef4bf 5608@endif binutils
2a4cbe27 5609
a90ef4bf
JM
5610.PHONY: maybe-dvi-binutils dvi-binutils
5611maybe-dvi-binutils:
5612@if binutils
5613maybe-dvi-binutils: dvi-binutils
2a4cbe27 5614
a90ef4bf
JM
5615dvi-binutils: \
5616 configure-binutils
5617 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5618 r=`${PWD_COMMAND}`; export r; \
5619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5620 $(HOST_EXPORTS) \
b813574b 5621 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5623 done; \
22121df0 5624 echo "Doing dvi in binutils"; \
a90ef4bf 5625 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5628 "RANLIB=$${RANLIB}" \
0c24b341 5629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5630 dvi) \
2a4cbe27
NN
5631 || exit 1
5632
a90ef4bf 5633@endif binutils
2a4cbe27 5634
a90ef4bf
JM
5635.PHONY: maybe-pdf-binutils pdf-binutils
5636maybe-pdf-binutils:
5637@if binutils
5638maybe-pdf-binutils: pdf-binutils
56a8fe78 5639
a90ef4bf
JM
5640pdf-binutils: \
5641 configure-binutils
5642 @[ -f ./binutils/Makefile ] || exit 0; \
56a8fe78
DD
5643 r=`${PWD_COMMAND}`; export r; \
5644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5645 $(HOST_EXPORTS) \
5646 for flag in $(EXTRA_HOST_FLAGS) ; do \
5647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5648 done; \
22121df0 5649 echo "Doing pdf in binutils"; \
a90ef4bf 5650 (cd $(HOST_SUBDIR)/binutils && \
56a8fe78
DD
5651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5653 "RANLIB=$${RANLIB}" \
0c24b341 5654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
5655 pdf) \
5656 || exit 1
5657
a90ef4bf 5658@endif binutils
56a8fe78 5659
a90ef4bf
JM
5660.PHONY: maybe-html-binutils html-binutils
5661maybe-html-binutils:
5662@if binutils
5663maybe-html-binutils: html-binutils
6d389afc 5664
a90ef4bf
JM
5665html-binutils: \
5666 configure-binutils
5667 @[ -f ./binutils/Makefile ] || exit 0; \
6d389afc
MS
5668 r=`${PWD_COMMAND}`; export r; \
5669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
5670 $(HOST_EXPORTS) \
5671 for flag in $(EXTRA_HOST_FLAGS) ; do \
5672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5673 done; \
22121df0 5674 echo "Doing html in binutils"; \
a90ef4bf 5675 (cd $(HOST_SUBDIR)/binutils && \
6d389afc
MS
5676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5678 "RANLIB=$${RANLIB}" \
0c24b341 5679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
5680 html) \
5681 || exit 1
5682
a90ef4bf 5683@endif binutils
6d389afc 5684
a90ef4bf
JM
5685.PHONY: maybe-TAGS-binutils TAGS-binutils
5686maybe-TAGS-binutils:
5687@if binutils
5688maybe-TAGS-binutils: TAGS-binutils
2a4cbe27 5689
a90ef4bf
JM
5690TAGS-binutils: \
5691 configure-binutils
5692 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5693 r=`${PWD_COMMAND}`; export r; \
5694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5695 $(HOST_EXPORTS) \
b813574b 5696 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5698 done; \
22121df0 5699 echo "Doing TAGS in binutils"; \
a90ef4bf 5700 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5703 "RANLIB=$${RANLIB}" \
0c24b341 5704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5705 TAGS) \
2a4cbe27
NN
5706 || exit 1
5707
a90ef4bf 5708@endif binutils
2a4cbe27 5709
a90ef4bf
JM
5710.PHONY: maybe-install-info-binutils install-info-binutils
5711maybe-install-info-binutils:
5712@if binutils
5713maybe-install-info-binutils: install-info-binutils
2a4cbe27 5714
a90ef4bf
JM
5715install-info-binutils: \
5716 configure-binutils \
5717 info-binutils
5718 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5719 r=`${PWD_COMMAND}`; export r; \
5720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5721 $(HOST_EXPORTS) \
b813574b 5722 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5724 done; \
22121df0 5725 echo "Doing install-info in binutils"; \
a90ef4bf 5726 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5729 "RANLIB=$${RANLIB}" \
0c24b341 5730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5731 install-info) \
2a4cbe27
NN
5732 || exit 1
5733
a90ef4bf 5734@endif binutils
2a4cbe27 5735
a90ef4bf
JM
5736.PHONY: maybe-install-pdf-binutils install-pdf-binutils
5737maybe-install-pdf-binutils:
5738@if binutils
5739maybe-install-pdf-binutils: install-pdf-binutils
a3ca38d2 5740
a90ef4bf
JM
5741install-pdf-binutils: \
5742 configure-binutils \
5743 pdf-binutils
5744 @[ -f ./binutils/Makefile ] || exit 0; \
a3ca38d2
DD
5745 r=`${PWD_COMMAND}`; export r; \
5746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5747 $(HOST_EXPORTS) \
5748 for flag in $(EXTRA_HOST_FLAGS) ; do \
5749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5750 done; \
22121df0 5751 echo "Doing install-pdf in binutils"; \
a90ef4bf 5752 (cd $(HOST_SUBDIR)/binutils && \
a3ca38d2
DD
5753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5755 "RANLIB=$${RANLIB}" \
0c24b341 5756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
5757 install-pdf) \
5758 || exit 1
5759
a90ef4bf 5760@endif binutils
a3ca38d2 5761
a90ef4bf
JM
5762.PHONY: maybe-install-html-binutils install-html-binutils
5763maybe-install-html-binutils:
5764@if binutils
5765maybe-install-html-binutils: install-html-binutils
108a6f8e 5766
a90ef4bf
JM
5767install-html-binutils: \
5768 configure-binutils \
5769 html-binutils
5770 @[ -f ./binutils/Makefile ] || exit 0; \
108a6f8e
CD
5771 r=`${PWD_COMMAND}`; export r; \
5772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5773 $(HOST_EXPORTS) \
5774 for flag in $(EXTRA_HOST_FLAGS) ; do \
5775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5776 done; \
22121df0 5777 echo "Doing install-html in binutils"; \
a90ef4bf 5778 (cd $(HOST_SUBDIR)/binutils && \
108a6f8e
CD
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}" \
108a6f8e
CD
5783 install-html) \
5784 || exit 1
5785
a90ef4bf 5786@endif binutils
108a6f8e 5787
a90ef4bf
JM
5788.PHONY: maybe-installcheck-binutils installcheck-binutils
5789maybe-installcheck-binutils:
5790@if binutils
5791maybe-installcheck-binutils: installcheck-binutils
2a4cbe27 5792
a90ef4bf
JM
5793installcheck-binutils: \
5794 configure-binutils
5795 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5796 r=`${PWD_COMMAND}`; export r; \
5797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5798 $(HOST_EXPORTS) \
b813574b 5799 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5801 done; \
22121df0 5802 echo "Doing installcheck in binutils"; \
a90ef4bf 5803 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5806 "RANLIB=$${RANLIB}" \
0c24b341 5807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5808 installcheck) \
2a4cbe27
NN
5809 || exit 1
5810
a90ef4bf 5811@endif binutils
2a4cbe27 5812
a90ef4bf
JM
5813.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
5814maybe-mostlyclean-binutils:
5815@if binutils
5816maybe-mostlyclean-binutils: mostlyclean-binutils
2a4cbe27 5817
a90ef4bf
JM
5818mostlyclean-binutils:
5819 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5820 r=`${PWD_COMMAND}`; export r; \
5821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5822 $(HOST_EXPORTS) \
b813574b 5823 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5825 done; \
22121df0 5826 echo "Doing mostlyclean in binutils"; \
a90ef4bf 5827 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5830 "RANLIB=$${RANLIB}" \
0c24b341 5831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5832 mostlyclean) \
2a4cbe27
NN
5833 || exit 1
5834
a90ef4bf 5835@endif binutils
2a4cbe27 5836
a90ef4bf
JM
5837.PHONY: maybe-clean-binutils clean-binutils
5838maybe-clean-binutils:
5839@if binutils
5840maybe-clean-binutils: clean-binutils
2a4cbe27 5841
a90ef4bf
JM
5842clean-binutils:
5843 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5844 r=`${PWD_COMMAND}`; export r; \
5845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5846 $(HOST_EXPORTS) \
b813574b 5847 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5849 done; \
22121df0 5850 echo "Doing clean in binutils"; \
a90ef4bf 5851 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5854 "RANLIB=$${RANLIB}" \
0c24b341 5855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5856 clean) \
2a4cbe27
NN
5857 || exit 1
5858
a90ef4bf 5859@endif binutils
2a4cbe27 5860
a90ef4bf
JM
5861.PHONY: maybe-distclean-binutils distclean-binutils
5862maybe-distclean-binutils:
5863@if binutils
5864maybe-distclean-binutils: distclean-binutils
2a4cbe27 5865
a90ef4bf
JM
5866distclean-binutils:
5867 @[ -f ./binutils/Makefile ] || exit 0; \
b40e3958
L
5868 r=`${PWD_COMMAND}`; export r; \
5869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5870 $(HOST_EXPORTS) \
b813574b 5871 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
5872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5873 done; \
22121df0 5874 echo "Doing distclean in binutils"; \
a90ef4bf 5875 (cd $(HOST_SUBDIR)/binutils && \
2a4cbe27
NN
5876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5878 "RANLIB=$${RANLIB}" \
0c24b341 5879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5880 distclean) \
2a4cbe27
NN
5881 || exit 1
5882
a90ef4bf 5883@endif binutils
2a4cbe27 5884
a90ef4bf
JM
5885.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
5886maybe-maintainer-clean-binutils:
5887@if binutils
5888maybe-maintainer-clean-binutils: maintainer-clean-binutils
a2592b1b 5889
a90ef4bf
JM
5890maintainer-clean-binutils:
5891 @[ -f ./binutils/Makefile ] || exit 0; \
a2592b1b
DD
5892 r=`${PWD_COMMAND}`; export r; \
5893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 5894 $(HOST_EXPORTS) \
b813574b 5895 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
5896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5897 done; \
22121df0 5898 echo "Doing maintainer-clean in binutils"; \
a90ef4bf 5899 (cd $(HOST_SUBDIR)/binutils && \
a2592b1b
DD
5900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5902 "RANLIB=$${RANLIB}" \
0c24b341 5903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 5904 maintainer-clean) \
a2592b1b
DD
5905 || exit 1
5906
a90ef4bf 5907@endif binutils
a2592b1b 5908
2a4cbe27 5909
a7254363 5910
a90ef4bf
JM
5911.PHONY: configure-bison maybe-configure-bison
5912maybe-configure-bison:
4f0ef2d8 5913@if gcc-bootstrap
a90ef4bf 5914configure-bison: stage_current
4f0ef2d8 5915@endif gcc-bootstrap
a90ef4bf
JM
5916@if bison
5917maybe-configure-bison: configure-bison
5918configure-bison:
5919 @: $(MAKE); $(unstage)
c52c6897
PB
5920 @r=`${PWD_COMMAND}`; export r; \
5921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 5922 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
22121df0 5923 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison; \
1f53ca9a 5924 $(HOST_EXPORTS) \
a90ef4bf
JM
5925 echo Configuring in $(HOST_SUBDIR)/bison; \
5926 cd "$(HOST_SUBDIR)/bison" || exit 1; \
4fa63067 5927 case $(srcdir) in \
b00612cc 5928 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 5929 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
b00612cc 5930 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 5931 esac; \
1b6c0831
L
5932 module_srcdir=bison; \
5933 $(SHELL) \
5934 $$s/$$module_srcdir/configure \
5935 --srcdir=$${topdir}/$$module_srcdir \
4b900473 5936 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 5937 --target=${target_alias} \
4fa63067 5938 || exit 1
a90ef4bf 5939@endif bison
2a4cbe27 5940
a7254363
PB
5941
5942
d545f33b 5943
8520c408 5944
a90ef4bf
JM
5945.PHONY: all-bison maybe-all-bison
5946maybe-all-bison:
5947@if gcc-bootstrap
5948all-bison: stage_current
5949@endif gcc-bootstrap
5950@if bison
5951TARGET-bison=all
5952maybe-all-bison: all-bison
5953all-bison: configure-bison
5954 @: $(MAKE); $(unstage)
c52c6897
PB
5955 @r=`${PWD_COMMAND}`; export r; \
5956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5957 $(HOST_EXPORTS) \
5958 (cd $(HOST_SUBDIR)/bison && \
b3676d82 5959 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
5960 $(TARGET-bison))
5961@endif bison
8520c408 5962
d545f33b 5963
d545f33b 5964
d545f33b 5965
a90ef4bf
JM
5966.PHONY: check-bison maybe-check-bison
5967maybe-check-bison:
5968@if bison
5969maybe-check-bison: check-bison
d545f33b 5970
a90ef4bf
JM
5971# This module is only tested in a native toolchain.
5972check-bison:
5973 @: $(MAKE); $(unstage)
22121df0 5974 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
5975 r=`${PWD_COMMAND}`; export r; \
5976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 5977 $(HOST_EXPORTS) \
a90ef4bf 5978 (cd $(HOST_SUBDIR)/bison && \
f91ca6bc 5979 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 5980 fi
d545f33b 5981
a90ef4bf 5982@endif bison
d545f33b 5983
a90ef4bf
JM
5984.PHONY: install-bison maybe-install-bison
5985maybe-install-bison:
5986@if bison
5987maybe-install-bison: install-bison
d545f33b 5988
a90ef4bf
JM
5989install-bison: installdirs
5990 @: $(MAKE); $(unstage)
c52c6897 5991 @r=`${PWD_COMMAND}`; export r; \
4fa63067 5992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
5993 $(HOST_EXPORTS) \
5994 (cd $(HOST_SUBDIR)/bison && \
5995 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 5996
a90ef4bf 5997@endif bison
a7254363 5998
a90ef4bf
JM
5999.PHONY: install-strip-bison maybe-install-strip-bison
6000maybe-install-strip-bison:
6001@if bison
6002maybe-install-strip-bison: install-strip-bison
d545f33b 6003
a90ef4bf
JM
6004install-strip-bison: installdirs
6005 @: $(MAKE); $(unstage)
d545f33b
PB
6006 @r=`${PWD_COMMAND}`; export r; \
6007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6008 $(HOST_EXPORTS) \
6009 (cd $(HOST_SUBDIR)/bison && \
6010 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 6011
a90ef4bf 6012@endif bison
d545f33b 6013
a90ef4bf 6014# Other targets (info, dvi, pdf, etc.)
d545f33b 6015
a90ef4bf
JM
6016.PHONY: maybe-info-bison info-bison
6017maybe-info-bison:
6018@if bison
6019maybe-info-bison: info-bison
6020
6021info-bison: \
6022 configure-bison
6023 @: $(MAKE); $(unstage)
6024 @[ -f ./bison/Makefile ] || exit 0; \
6025 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6027 $(HOST_EXPORTS) \
a90ef4bf
JM
6028 for flag in $(EXTRA_HOST_FLAGS) ; do \
6029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6030 done; \
22121df0 6031 echo "Doing info in bison"; \
a90ef4bf
JM
6032 (cd $(HOST_SUBDIR)/bison && \
6033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6035 "RANLIB=$${RANLIB}" \
6036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6037 info) \
6038 || exit 1
d545f33b 6039
a90ef4bf 6040@endif bison
d545f33b 6041
a90ef4bf
JM
6042.PHONY: maybe-dvi-bison dvi-bison
6043maybe-dvi-bison:
6044@if bison
6045maybe-dvi-bison: dvi-bison
d545f33b 6046
a90ef4bf
JM
6047dvi-bison: \
6048 configure-bison
6049 @: $(MAKE); $(unstage)
6050 @[ -f ./bison/Makefile ] || exit 0; \
6051 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6053 $(HOST_EXPORTS) \
a90ef4bf
JM
6054 for flag in $(EXTRA_HOST_FLAGS) ; do \
6055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6056 done; \
22121df0 6057 echo "Doing dvi in bison"; \
a90ef4bf
JM
6058 (cd $(HOST_SUBDIR)/bison && \
6059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6061 "RANLIB=$${RANLIB}" \
6062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6063 dvi) \
6064 || exit 1
d545f33b 6065
a90ef4bf 6066@endif bison
d545f33b 6067
a90ef4bf
JM
6068.PHONY: maybe-pdf-bison pdf-bison
6069maybe-pdf-bison:
6070@if bison
6071maybe-pdf-bison: pdf-bison
d545f33b 6072
a90ef4bf
JM
6073pdf-bison: \
6074 configure-bison
6075 @: $(MAKE); $(unstage)
6076 @[ -f ./bison/Makefile ] || exit 0; \
6077 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6079 $(HOST_EXPORTS) \
a90ef4bf
JM
6080 for flag in $(EXTRA_HOST_FLAGS) ; do \
6081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6082 done; \
22121df0 6083 echo "Doing pdf in bison"; \
a90ef4bf
JM
6084 (cd $(HOST_SUBDIR)/bison && \
6085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6087 "RANLIB=$${RANLIB}" \
6088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6089 pdf) \
6090 || exit 1
d545f33b 6091
a90ef4bf 6092@endif bison
d545f33b 6093
a90ef4bf
JM
6094.PHONY: maybe-html-bison html-bison
6095maybe-html-bison:
6096@if bison
6097maybe-html-bison: html-bison
d545f33b 6098
a90ef4bf
JM
6099html-bison: \
6100 configure-bison
6101 @: $(MAKE); $(unstage)
6102 @[ -f ./bison/Makefile ] || exit 0; \
6103 r=`${PWD_COMMAND}`; export r; \
d545f33b
PB
6104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6105 $(HOST_EXPORTS) \
a90ef4bf
JM
6106 for flag in $(EXTRA_HOST_FLAGS) ; do \
6107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6108 done; \
22121df0 6109 echo "Doing html in bison"; \
a90ef4bf
JM
6110 (cd $(HOST_SUBDIR)/bison && \
6111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6113 "RANLIB=$${RANLIB}" \
6114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6115 html) \
6116 || exit 1
d545f33b 6117
a90ef4bf 6118@endif bison
2a4cbe27 6119
a90ef4bf
JM
6120.PHONY: maybe-TAGS-bison TAGS-bison
6121maybe-TAGS-bison:
6122@if bison
6123maybe-TAGS-bison: TAGS-bison
2a4cbe27 6124
a90ef4bf
JM
6125TAGS-bison: \
6126 configure-bison
0aed8855 6127 @: $(MAKE); $(unstage)
a90ef4bf
JM
6128 @[ -f ./bison/Makefile ] || exit 0; \
6129 r=`${PWD_COMMAND}`; export r; \
4fa63067 6130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6131 $(HOST_EXPORTS) \
a90ef4bf
JM
6132 for flag in $(EXTRA_HOST_FLAGS) ; do \
6133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6134 done; \
22121df0 6135 echo "Doing TAGS in bison"; \
a90ef4bf
JM
6136 (cd $(HOST_SUBDIR)/bison && \
6137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6139 "RANLIB=$${RANLIB}" \
6140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6141 TAGS) \
6142 || exit 1
4fa63067 6143
a90ef4bf 6144@endif bison
4fa63067 6145
a90ef4bf
JM
6146.PHONY: maybe-install-info-bison install-info-bison
6147maybe-install-info-bison:
6148@if bison
6149maybe-install-info-bison: install-info-bison
9b980aa1 6150
a90ef4bf
JM
6151install-info-bison: \
6152 configure-bison \
6153 info-bison
9b980aa1 6154 @: $(MAKE); $(unstage)
a90ef4bf 6155 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6156 r=`${PWD_COMMAND}`; export r; \
6157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6158 $(HOST_EXPORTS) \
b813574b 6159 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6161 done; \
22121df0 6162 echo "Doing install-info in bison"; \
a90ef4bf 6163 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6166 "RANLIB=$${RANLIB}" \
0c24b341 6167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6168 install-info) \
2a4cbe27
NN
6169 || exit 1
6170
a90ef4bf 6171@endif bison
2a4cbe27 6172
a90ef4bf
JM
6173.PHONY: maybe-install-pdf-bison install-pdf-bison
6174maybe-install-pdf-bison:
6175@if bison
6176maybe-install-pdf-bison: install-pdf-bison
2a4cbe27 6177
a90ef4bf
JM
6178install-pdf-bison: \
6179 configure-bison \
6180 pdf-bison
6181 @: $(MAKE); $(unstage)
6182 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6183 r=`${PWD_COMMAND}`; export r; \
6184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6185 $(HOST_EXPORTS) \
b813574b 6186 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6188 done; \
22121df0 6189 echo "Doing install-pdf in bison"; \
a90ef4bf 6190 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6193 "RANLIB=$${RANLIB}" \
0c24b341 6194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6195 install-pdf) \
2a4cbe27
NN
6196 || exit 1
6197
a90ef4bf 6198@endif bison
2a4cbe27 6199
a90ef4bf
JM
6200.PHONY: maybe-install-html-bison install-html-bison
6201maybe-install-html-bison:
6202@if bison
6203maybe-install-html-bison: install-html-bison
56a8fe78 6204
a90ef4bf
JM
6205install-html-bison: \
6206 configure-bison \
6207 html-bison
6208 @: $(MAKE); $(unstage)
6209 @[ -f ./bison/Makefile ] || exit 0; \
56a8fe78
DD
6210 r=`${PWD_COMMAND}`; export r; \
6211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6212 $(HOST_EXPORTS) \
6213 for flag in $(EXTRA_HOST_FLAGS) ; do \
6214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6215 done; \
22121df0 6216 echo "Doing install-html in bison"; \
a90ef4bf 6217 (cd $(HOST_SUBDIR)/bison && \
56a8fe78
DD
6218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6220 "RANLIB=$${RANLIB}" \
0c24b341 6221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6222 install-html) \
56a8fe78
DD
6223 || exit 1
6224
a90ef4bf 6225@endif bison
56a8fe78 6226
a90ef4bf
JM
6227.PHONY: maybe-installcheck-bison installcheck-bison
6228maybe-installcheck-bison:
6229@if bison
6230maybe-installcheck-bison: installcheck-bison
6d389afc 6231
a90ef4bf
JM
6232installcheck-bison: \
6233 configure-bison
6234 @: $(MAKE); $(unstage)
6235 @[ -f ./bison/Makefile ] || exit 0; \
6d389afc
MS
6236 r=`${PWD_COMMAND}`; export r; \
6237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6238 $(HOST_EXPORTS) \
6239 for flag in $(EXTRA_HOST_FLAGS) ; do \
6240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6241 done; \
22121df0 6242 echo "Doing installcheck in bison"; \
a90ef4bf 6243 (cd $(HOST_SUBDIR)/bison && \
6d389afc
MS
6244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6246 "RANLIB=$${RANLIB}" \
0c24b341 6247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6248 installcheck) \
6d389afc
MS
6249 || exit 1
6250
a90ef4bf 6251@endif bison
6d389afc 6252
a90ef4bf
JM
6253.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6254maybe-mostlyclean-bison:
6255@if bison
6256maybe-mostlyclean-bison: mostlyclean-bison
2a4cbe27 6257
a90ef4bf
JM
6258mostlyclean-bison:
6259 @: $(MAKE); $(unstage)
6260 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6261 r=`${PWD_COMMAND}`; export r; \
6262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6263 $(HOST_EXPORTS) \
b813574b 6264 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6266 done; \
22121df0 6267 echo "Doing mostlyclean in bison"; \
a90ef4bf 6268 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6271 "RANLIB=$${RANLIB}" \
0c24b341 6272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6273 mostlyclean) \
2a4cbe27
NN
6274 || exit 1
6275
a90ef4bf 6276@endif bison
2a4cbe27 6277
a90ef4bf
JM
6278.PHONY: maybe-clean-bison clean-bison
6279maybe-clean-bison:
6280@if bison
6281maybe-clean-bison: clean-bison
2a4cbe27 6282
a90ef4bf
JM
6283clean-bison:
6284 @: $(MAKE); $(unstage)
6285 @[ -f ./bison/Makefile ] || exit 0; \
b40e3958
L
6286 r=`${PWD_COMMAND}`; export r; \
6287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6288 $(HOST_EXPORTS) \
b813574b 6289 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6291 done; \
22121df0 6292 echo "Doing clean in bison"; \
a90ef4bf 6293 (cd $(HOST_SUBDIR)/bison && \
2a4cbe27
NN
6294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6296 "RANLIB=$${RANLIB}" \
0c24b341 6297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6298 clean) \
2a4cbe27
NN
6299 || exit 1
6300
a90ef4bf 6301@endif bison
2a4cbe27 6302
a90ef4bf
JM
6303.PHONY: maybe-distclean-bison distclean-bison
6304maybe-distclean-bison:
6305@if bison
6306maybe-distclean-bison: distclean-bison
a3ca38d2 6307
a90ef4bf
JM
6308distclean-bison:
6309 @: $(MAKE); $(unstage)
6310 @[ -f ./bison/Makefile ] || exit 0; \
a3ca38d2
DD
6311 r=`${PWD_COMMAND}`; export r; \
6312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6313 $(HOST_EXPORTS) \
6314 for flag in $(EXTRA_HOST_FLAGS) ; do \
6315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6316 done; \
22121df0 6317 echo "Doing distclean in bison"; \
a90ef4bf 6318 (cd $(HOST_SUBDIR)/bison && \
a3ca38d2
DD
6319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6321 "RANLIB=$${RANLIB}" \
0c24b341 6322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6323 distclean) \
a3ca38d2
DD
6324 || exit 1
6325
a90ef4bf 6326@endif bison
a3ca38d2 6327
a90ef4bf
JM
6328.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6329maybe-maintainer-clean-bison:
6330@if bison
6331maybe-maintainer-clean-bison: maintainer-clean-bison
108a6f8e 6332
a90ef4bf
JM
6333maintainer-clean-bison:
6334 @: $(MAKE); $(unstage)
6335 @[ -f ./bison/Makefile ] || exit 0; \
108a6f8e
CD
6336 r=`${PWD_COMMAND}`; export r; \
6337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6338 $(HOST_EXPORTS) \
6339 for flag in $(EXTRA_HOST_FLAGS) ; do \
6340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6341 done; \
22121df0 6342 echo "Doing maintainer-clean in bison"; \
a90ef4bf 6343 (cd $(HOST_SUBDIR)/bison && \
108a6f8e
CD
6344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6346 "RANLIB=$${RANLIB}" \
0c24b341 6347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6348 maintainer-clean) \
108a6f8e
CD
6349 || exit 1
6350
a90ef4bf 6351@endif bison
108a6f8e 6352
2a4cbe27 6353
a90ef4bf
JM
6354
6355.PHONY: configure-cgen maybe-configure-cgen
6356maybe-configure-cgen:
6357@if gcc-bootstrap
6358configure-cgen: stage_current
6359@endif gcc-bootstrap
6360@if cgen
6361maybe-configure-cgen: configure-cgen
6362configure-cgen:
6363 @: $(MAKE); $(unstage)
6364 @r=`${PWD_COMMAND}`; export r; \
6365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6366 test ! -f $(HOST_SUBDIR)/cgen/Makefile || exit 0; \
22121df0 6367 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/cgen; \
a90ef4bf
JM
6368 $(HOST_EXPORTS) \
6369 echo Configuring in $(HOST_SUBDIR)/cgen; \
6370 cd "$(HOST_SUBDIR)/cgen" || exit 1; \
6371 case $(srcdir) in \
6372 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6373 *) topdir=`echo $(HOST_SUBDIR)/cgen/ | \
6374 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6375 esac; \
1b6c0831
L
6376 module_srcdir=cgen; \
6377 $(SHELL) \
6378 $$s/$$module_srcdir/configure \
6379 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 6380 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6381 --target=${target_alias} \
a90ef4bf
JM
6382 || exit 1
6383@endif cgen
6384
6385
6386
6387
6388
6389.PHONY: all-cgen maybe-all-cgen
6390maybe-all-cgen:
6391@if gcc-bootstrap
6392all-cgen: stage_current
6393@endif gcc-bootstrap
6394@if cgen
6395TARGET-cgen=all
6396maybe-all-cgen: all-cgen
6397all-cgen: configure-cgen
6398 @: $(MAKE); $(unstage)
6399 @r=`${PWD_COMMAND}`; export r; \
6400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6401 $(HOST_EXPORTS) \
6402 (cd $(HOST_SUBDIR)/cgen && \
b3676d82 6403 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6404 $(TARGET-cgen))
6405@endif cgen
6406
6407
6408
6409
6410.PHONY: check-cgen maybe-check-cgen
6411maybe-check-cgen:
6412@if cgen
6413maybe-check-cgen: check-cgen
6414
6415check-cgen:
6416 @: $(MAKE); $(unstage)
6417 @r=`${PWD_COMMAND}`; export r; \
6418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6419 $(HOST_EXPORTS) \
a90ef4bf
JM
6420 (cd $(HOST_SUBDIR)/cgen && \
6421 $(MAKE) $(FLAGS_TO_PASS) check)
6422
6423@endif cgen
6424
6425.PHONY: install-cgen maybe-install-cgen
6426maybe-install-cgen:
6427@if cgen
6428maybe-install-cgen: install-cgen
6429
6430install-cgen: installdirs
6431 @: $(MAKE); $(unstage)
6432 @r=`${PWD_COMMAND}`; export r; \
6433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6434 $(HOST_EXPORTS) \
6435 (cd $(HOST_SUBDIR)/cgen && \
6436 $(MAKE) $(FLAGS_TO_PASS) install)
6437
6438@endif cgen
6439
6440.PHONY: install-strip-cgen maybe-install-strip-cgen
6441maybe-install-strip-cgen:
6442@if cgen
6443maybe-install-strip-cgen: install-strip-cgen
6444
6445install-strip-cgen: installdirs
6446 @: $(MAKE); $(unstage)
6447 @r=`${PWD_COMMAND}`; export r; \
6448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6449 $(HOST_EXPORTS) \
6450 (cd $(HOST_SUBDIR)/cgen && \
6451 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6452
6453@endif cgen
6454
6455# Other targets (info, dvi, pdf, etc.)
6456
6457.PHONY: maybe-info-cgen info-cgen
6458maybe-info-cgen:
6459@if cgen
6460maybe-info-cgen: info-cgen
6461
6462info-cgen: \
6463 configure-cgen
6464 @: $(MAKE); $(unstage)
6465 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6466 r=`${PWD_COMMAND}`; export r; \
6467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6468 $(HOST_EXPORTS) \
b813574b 6469 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6471 done; \
22121df0 6472 echo "Doing info in cgen"; \
a90ef4bf 6473 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6476 "RANLIB=$${RANLIB}" \
0c24b341 6477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6478 info) \
2a4cbe27
NN
6479 || exit 1
6480
a90ef4bf 6481@endif cgen
2a4cbe27 6482
a90ef4bf
JM
6483.PHONY: maybe-dvi-cgen dvi-cgen
6484maybe-dvi-cgen:
6485@if cgen
6486maybe-dvi-cgen: dvi-cgen
2a4cbe27 6487
a90ef4bf
JM
6488dvi-cgen: \
6489 configure-cgen
6490 @: $(MAKE); $(unstage)
6491 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6492 r=`${PWD_COMMAND}`; export r; \
6493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6494 $(HOST_EXPORTS) \
b813574b 6495 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6497 done; \
22121df0 6498 echo "Doing dvi in cgen"; \
a90ef4bf 6499 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6502 "RANLIB=$${RANLIB}" \
0c24b341 6503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6504 dvi) \
2a4cbe27
NN
6505 || exit 1
6506
a90ef4bf 6507@endif cgen
2a4cbe27 6508
a90ef4bf
JM
6509.PHONY: maybe-pdf-cgen pdf-cgen
6510maybe-pdf-cgen:
6511@if cgen
6512maybe-pdf-cgen: pdf-cgen
2a4cbe27 6513
a90ef4bf
JM
6514pdf-cgen: \
6515 configure-cgen
6516 @: $(MAKE); $(unstage)
6517 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6518 r=`${PWD_COMMAND}`; export r; \
6519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6520 $(HOST_EXPORTS) \
b813574b 6521 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6523 done; \
22121df0 6524 echo "Doing pdf in cgen"; \
a90ef4bf 6525 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6528 "RANLIB=$${RANLIB}" \
0c24b341 6529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6530 pdf) \
2a4cbe27
NN
6531 || exit 1
6532
a90ef4bf 6533@endif cgen
2a4cbe27 6534
a90ef4bf
JM
6535.PHONY: maybe-html-cgen html-cgen
6536maybe-html-cgen:
6537@if cgen
6538maybe-html-cgen: html-cgen
2a4cbe27 6539
a90ef4bf
JM
6540html-cgen: \
6541 configure-cgen
6542 @: $(MAKE); $(unstage)
6543 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6544 r=`${PWD_COMMAND}`; export r; \
6545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6546 $(HOST_EXPORTS) \
b813574b 6547 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6549 done; \
22121df0 6550 echo "Doing html in cgen"; \
a90ef4bf 6551 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6554 "RANLIB=$${RANLIB}" \
0c24b341 6555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6556 html) \
2a4cbe27
NN
6557 || exit 1
6558
a90ef4bf 6559@endif cgen
2a4cbe27 6560
a90ef4bf
JM
6561.PHONY: maybe-TAGS-cgen TAGS-cgen
6562maybe-TAGS-cgen:
6563@if cgen
6564maybe-TAGS-cgen: TAGS-cgen
2a4cbe27 6565
a90ef4bf
JM
6566TAGS-cgen: \
6567 configure-cgen
6568 @: $(MAKE); $(unstage)
6569 @[ -f ./cgen/Makefile ] || exit 0; \
b40e3958
L
6570 r=`${PWD_COMMAND}`; export r; \
6571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6572 $(HOST_EXPORTS) \
b813574b 6573 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
6574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6575 done; \
22121df0 6576 echo "Doing TAGS in cgen"; \
a90ef4bf 6577 (cd $(HOST_SUBDIR)/cgen && \
2a4cbe27
NN
6578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6580 "RANLIB=$${RANLIB}" \
0c24b341 6581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 6582 TAGS) \
2a4cbe27
NN
6583 || exit 1
6584
a90ef4bf 6585@endif cgen
2a4cbe27 6586
a90ef4bf
JM
6587.PHONY: maybe-install-info-cgen install-info-cgen
6588maybe-install-info-cgen:
6589@if cgen
6590maybe-install-info-cgen: install-info-cgen
2a4cbe27 6591
a90ef4bf
JM
6592install-info-cgen: \
6593 configure-cgen \
6594 info-cgen
6595 @: $(MAKE); $(unstage)
6596 @[ -f ./cgen/Makefile ] || exit 0; \
6597 r=`${PWD_COMMAND}`; export r; \
6598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6599 $(HOST_EXPORTS) \
6600 for flag in $(EXTRA_HOST_FLAGS) ; do \
6601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6602 done; \
22121df0 6603 echo "Doing install-info in cgen"; \
a90ef4bf
JM
6604 (cd $(HOST_SUBDIR)/cgen && \
6605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6607 "RANLIB=$${RANLIB}" \
6608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6609 install-info) \
6610 || exit 1
a7254363 6611
a90ef4bf
JM
6612@endif cgen
6613
6614.PHONY: maybe-install-pdf-cgen install-pdf-cgen
6615maybe-install-pdf-cgen:
6616@if cgen
6617maybe-install-pdf-cgen: install-pdf-cgen
6618
6619install-pdf-cgen: \
6620 configure-cgen \
6621 pdf-cgen
6622 @: $(MAKE); $(unstage)
6623 @[ -f ./cgen/Makefile ] || exit 0; \
6624 r=`${PWD_COMMAND}`; export r; \
c52c6897 6625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
6626 $(HOST_EXPORTS) \
6627 for flag in $(EXTRA_HOST_FLAGS) ; do \
6628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6629 done; \
22121df0 6630 echo "Doing install-pdf in cgen"; \
a90ef4bf
JM
6631 (cd $(HOST_SUBDIR)/cgen && \
6632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6634 "RANLIB=$${RANLIB}" \
6635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6636 install-pdf) \
2a4cbe27
NN
6637 || exit 1
6638
a90ef4bf 6639@endif cgen
a7254363 6640
a90ef4bf
JM
6641.PHONY: maybe-install-html-cgen install-html-cgen
6642maybe-install-html-cgen:
6643@if cgen
6644maybe-install-html-cgen: install-html-cgen
a7254363 6645
a90ef4bf
JM
6646install-html-cgen: \
6647 configure-cgen \
6648 html-cgen
6649 @: $(MAKE); $(unstage)
6650 @[ -f ./cgen/Makefile ] || exit 0; \
6651 r=`${PWD_COMMAND}`; export r; \
c52c6897 6652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 6653 $(HOST_EXPORTS) \
a90ef4bf
JM
6654 for flag in $(EXTRA_HOST_FLAGS) ; do \
6655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6656 done; \
22121df0 6657 echo "Doing install-html in cgen"; \
a90ef4bf
JM
6658 (cd $(HOST_SUBDIR)/cgen && \
6659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6661 "RANLIB=$${RANLIB}" \
6662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6663 install-html) \
6664 || exit 1
d545f33b 6665
a90ef4bf
JM
6666@endif cgen
6667
6668.PHONY: maybe-installcheck-cgen installcheck-cgen
6669maybe-installcheck-cgen:
6670@if cgen
6671maybe-installcheck-cgen: installcheck-cgen
6672
6673installcheck-cgen: \
6674 configure-cgen
6675 @: $(MAKE); $(unstage)
6676 @[ -f ./cgen/Makefile ] || exit 0; \
6677 r=`${PWD_COMMAND}`; export r; \
c52c6897 6678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6679 $(HOST_EXPORTS) \
a90ef4bf
JM
6680 for flag in $(EXTRA_HOST_FLAGS) ; do \
6681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6682 done; \
22121df0 6683 echo "Doing installcheck in cgen"; \
a90ef4bf
JM
6684 (cd $(HOST_SUBDIR)/cgen && \
6685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6687 "RANLIB=$${RANLIB}" \
6688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6689 installcheck) \
6690 || exit 1
8520c408 6691
a90ef4bf
JM
6692@endif cgen
6693
6694.PHONY: maybe-mostlyclean-cgen mostlyclean-cgen
6695maybe-mostlyclean-cgen:
6696@if cgen
6697maybe-mostlyclean-cgen: mostlyclean-cgen
6698
6699mostlyclean-cgen:
6700 @: $(MAKE); $(unstage)
6701 @[ -f ./cgen/Makefile ] || exit 0; \
6702 r=`${PWD_COMMAND}`; export r; \
c52c6897 6703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6704 $(HOST_EXPORTS) \
a90ef4bf
JM
6705 for flag in $(EXTRA_HOST_FLAGS) ; do \
6706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6707 done; \
22121df0 6708 echo "Doing mostlyclean in cgen"; \
a90ef4bf
JM
6709 (cd $(HOST_SUBDIR)/cgen && \
6710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6712 "RANLIB=$${RANLIB}" \
6713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6714 mostlyclean) \
6715 || exit 1
8520c408 6716
a90ef4bf
JM
6717@endif cgen
6718
6719.PHONY: maybe-clean-cgen clean-cgen
6720maybe-clean-cgen:
6721@if cgen
6722maybe-clean-cgen: clean-cgen
6723
6724clean-cgen:
6725 @: $(MAKE); $(unstage)
6726 @[ -f ./cgen/Makefile ] || exit 0; \
6727 r=`${PWD_COMMAND}`; export r; \
c52c6897 6728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6729 $(HOST_EXPORTS) \
a90ef4bf
JM
6730 for flag in $(EXTRA_HOST_FLAGS) ; do \
6731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6732 done; \
22121df0 6733 echo "Doing clean in cgen"; \
a90ef4bf
JM
6734 (cd $(HOST_SUBDIR)/cgen && \
6735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6737 "RANLIB=$${RANLIB}" \
6738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6739 clean) \
6740 || exit 1
d545f33b 6741
a90ef4bf
JM
6742@endif cgen
6743
6744.PHONY: maybe-distclean-cgen distclean-cgen
6745maybe-distclean-cgen:
6746@if cgen
6747maybe-distclean-cgen: distclean-cgen
6748
6749distclean-cgen:
6750 @: $(MAKE); $(unstage)
6751 @[ -f ./cgen/Makefile ] || exit 0; \
6752 r=`${PWD_COMMAND}`; export r; \
c52c6897 6753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6754 $(HOST_EXPORTS) \
a90ef4bf
JM
6755 for flag in $(EXTRA_HOST_FLAGS) ; do \
6756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6757 done; \
22121df0 6758 echo "Doing distclean in cgen"; \
a90ef4bf
JM
6759 (cd $(HOST_SUBDIR)/cgen && \
6760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6762 "RANLIB=$${RANLIB}" \
6763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6764 distclean) \
6765 || exit 1
d545f33b 6766
a90ef4bf
JM
6767@endif cgen
6768
6769.PHONY: maybe-maintainer-clean-cgen maintainer-clean-cgen
6770maybe-maintainer-clean-cgen:
6771@if cgen
6772maybe-maintainer-clean-cgen: maintainer-clean-cgen
6773
6774maintainer-clean-cgen:
6775 @: $(MAKE); $(unstage)
6776 @[ -f ./cgen/Makefile ] || exit 0; \
6777 r=`${PWD_COMMAND}`; export r; \
c52c6897 6778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 6779 $(HOST_EXPORTS) \
a90ef4bf
JM
6780 for flag in $(EXTRA_HOST_FLAGS) ; do \
6781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6782 done; \
22121df0 6783 echo "Doing maintainer-clean in cgen"; \
a90ef4bf
JM
6784 (cd $(HOST_SUBDIR)/cgen && \
6785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6787 "RANLIB=$${RANLIB}" \
6788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6789 maintainer-clean) \
6790 || exit 1
6791
6792@endif cgen
6793
6794
6795
6796.PHONY: configure-dejagnu maybe-configure-dejagnu
6797maybe-configure-dejagnu:
6798@if gcc-bootstrap
6799configure-dejagnu: stage_current
6800@endif gcc-bootstrap
6801@if dejagnu
6802maybe-configure-dejagnu: configure-dejagnu
6803configure-dejagnu:
6804 @: $(MAKE); $(unstage)
6805 @r=`${PWD_COMMAND}`; export r; \
6806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6807 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
22121df0 6808 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu; \
a90ef4bf
JM
6809 $(HOST_EXPORTS) \
6810 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
6811 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
d545f33b
PB
6812 case $(srcdir) in \
6813 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 6814 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
d545f33b
PB
6815 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6816 esac; \
1b6c0831
L
6817 module_srcdir=dejagnu; \
6818 $(SHELL) \
6819 $$s/$$module_srcdir/configure \
6820 --srcdir=$${topdir}/$$module_srcdir \
4b900473 6821 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 6822 --target=${target_alias} \
a90ef4bf
JM
6823 || exit 1
6824@endif dejagnu
d545f33b
PB
6825
6826
6827
6828
6829
a90ef4bf
JM
6830.PHONY: all-dejagnu maybe-all-dejagnu
6831maybe-all-dejagnu:
4f0ef2d8 6832@if gcc-bootstrap
a90ef4bf 6833all-dejagnu: stage_current
4f0ef2d8 6834@endif gcc-bootstrap
a90ef4bf
JM
6835@if dejagnu
6836TARGET-dejagnu=all
6837maybe-all-dejagnu: all-dejagnu
6838all-dejagnu: configure-dejagnu
6839 @: $(MAKE); $(unstage)
c52c6897 6840 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 6842 $(HOST_EXPORTS) \
a90ef4bf 6843 (cd $(HOST_SUBDIR)/dejagnu && \
b3676d82 6844 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
6845 $(TARGET-dejagnu))
6846@endif dejagnu
4fa63067 6847
a7254363 6848
4fa63067 6849
a90ef4bf
JM
6850
6851.PHONY: check-dejagnu maybe-check-dejagnu
6852maybe-check-dejagnu:
6853@if dejagnu
6854maybe-check-dejagnu: check-dejagnu
6855
6856check-dejagnu:
6857 @: $(MAKE); $(unstage)
4fa63067
NN
6858 @r=`${PWD_COMMAND}`; export r; \
6859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 6860 $(HOST_EXPORTS) \
a90ef4bf
JM
6861 (cd $(HOST_SUBDIR)/dejagnu && \
6862 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 6863
a90ef4bf 6864@endif dejagnu
2a4cbe27 6865
a90ef4bf
JM
6866.PHONY: install-dejagnu maybe-install-dejagnu
6867maybe-install-dejagnu:
6868@if dejagnu
6869maybe-install-dejagnu: install-dejagnu
2a4cbe27 6870
a90ef4bf
JM
6871install-dejagnu: installdirs
6872 @: $(MAKE); $(unstage)
4fa63067 6873 @r=`${PWD_COMMAND}`; export r; \
b40e3958 6874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 6875 $(HOST_EXPORTS) \
a90ef4bf
JM
6876 (cd $(HOST_SUBDIR)/dejagnu && \
6877 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 6878
a90ef4bf 6879@endif dejagnu
d545f33b 6880
a90ef4bf
JM
6881.PHONY: install-strip-dejagnu maybe-install-strip-dejagnu
6882maybe-install-strip-dejagnu:
6883@if dejagnu
6884maybe-install-strip-dejagnu: install-strip-dejagnu
9b980aa1 6885
a90ef4bf 6886install-strip-dejagnu: installdirs
9b980aa1
RW
6887 @: $(MAKE); $(unstage)
6888 @r=`${PWD_COMMAND}`; export r; \
6889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6890 $(HOST_EXPORTS) \
a90ef4bf 6891 (cd $(HOST_SUBDIR)/dejagnu && \
9b980aa1
RW
6892 $(MAKE) $(FLAGS_TO_PASS) install-strip)
6893
a90ef4bf 6894@endif dejagnu
9b980aa1 6895
56a8fe78 6896# Other targets (info, dvi, pdf, etc.)
d545f33b 6897
a90ef4bf
JM
6898.PHONY: maybe-info-dejagnu info-dejagnu
6899maybe-info-dejagnu:
6900@if dejagnu
6901maybe-info-dejagnu: info-dejagnu
d545f33b 6902
a90ef4bf
JM
6903info-dejagnu: \
6904 configure-dejagnu
6905 @: $(MAKE); $(unstage)
6906 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6907 r=`${PWD_COMMAND}`; export r; \
6908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6909 $(HOST_EXPORTS) \
6910 for flag in $(EXTRA_HOST_FLAGS) ; do \
6911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6912 done; \
22121df0 6913 echo "Doing info in dejagnu"; \
a90ef4bf 6914 (cd $(HOST_SUBDIR)/dejagnu && \
d545f33b
PB
6915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6917 "RANLIB=$${RANLIB}" \
0c24b341 6918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d545f33b
PB
6919 info) \
6920 || exit 1
6921
a90ef4bf 6922@endif dejagnu
d545f33b 6923
a90ef4bf
JM
6924.PHONY: maybe-dvi-dejagnu dvi-dejagnu
6925maybe-dvi-dejagnu:
6926@if dejagnu
6927maybe-dvi-dejagnu: dvi-dejagnu
d545f33b 6928
a90ef4bf
JM
6929dvi-dejagnu: \
6930 configure-dejagnu
6931 @: $(MAKE); $(unstage)
6932 @[ -f ./dejagnu/Makefile ] || exit 0; \
d545f33b
PB
6933 r=`${PWD_COMMAND}`; export r; \
6934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6935 $(HOST_EXPORTS) \
6936 for flag in $(EXTRA_HOST_FLAGS) ; do \
6937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6938 done; \
22121df0 6939 echo "Doing dvi in dejagnu"; \
a90ef4bf 6940 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
6941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6943 "RANLIB=$${RANLIB}" \
0c24b341 6944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 6945 dvi) \
2a4cbe27
NN
6946 || exit 1
6947
a90ef4bf 6948@endif dejagnu
2a4cbe27 6949
a90ef4bf
JM
6950.PHONY: maybe-pdf-dejagnu pdf-dejagnu
6951maybe-pdf-dejagnu:
6952@if dejagnu
6953maybe-pdf-dejagnu: pdf-dejagnu
56a8fe78 6954
a90ef4bf
JM
6955pdf-dejagnu: \
6956 configure-dejagnu
6957 @: $(MAKE); $(unstage)
6958 @[ -f ./dejagnu/Makefile ] || exit 0; \
56a8fe78
DD
6959 r=`${PWD_COMMAND}`; export r; \
6960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6961 $(HOST_EXPORTS) \
6962 for flag in $(EXTRA_HOST_FLAGS) ; do \
6963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6964 done; \
22121df0 6965 echo "Doing pdf in dejagnu"; \
a90ef4bf 6966 (cd $(HOST_SUBDIR)/dejagnu && \
56a8fe78
DD
6967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6969 "RANLIB=$${RANLIB}" \
0c24b341 6970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
6971 pdf) \
6972 || exit 1
6973
a90ef4bf 6974@endif dejagnu
56a8fe78 6975
a90ef4bf
JM
6976.PHONY: maybe-html-dejagnu html-dejagnu
6977maybe-html-dejagnu:
6978@if dejagnu
6979maybe-html-dejagnu: html-dejagnu
6d389afc 6980
a90ef4bf
JM
6981html-dejagnu: \
6982 configure-dejagnu
6983 @: $(MAKE); $(unstage)
6984 @[ -f ./dejagnu/Makefile ] || exit 0; \
6d389afc
MS
6985 r=`${PWD_COMMAND}`; export r; \
6986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
6987 $(HOST_EXPORTS) \
6988 for flag in $(EXTRA_HOST_FLAGS) ; do \
6989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6990 done; \
22121df0 6991 echo "Doing html in dejagnu"; \
a90ef4bf 6992 (cd $(HOST_SUBDIR)/dejagnu && \
6d389afc
MS
6993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6995 "RANLIB=$${RANLIB}" \
0c24b341 6996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
6997 html) \
6998 || exit 1
6999
a90ef4bf 7000@endif dejagnu
6d389afc 7001
a90ef4bf
JM
7002.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
7003maybe-TAGS-dejagnu:
7004@if dejagnu
7005maybe-TAGS-dejagnu: TAGS-dejagnu
2a4cbe27 7006
a90ef4bf
JM
7007TAGS-dejagnu: \
7008 configure-dejagnu
7009 @: $(MAKE); $(unstage)
7010 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7011 r=`${PWD_COMMAND}`; export r; \
7012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7013 $(HOST_EXPORTS) \
b813574b 7014 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7016 done; \
22121df0 7017 echo "Doing TAGS in dejagnu"; \
a90ef4bf 7018 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7021 "RANLIB=$${RANLIB}" \
0c24b341 7022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7023 TAGS) \
2a4cbe27
NN
7024 || exit 1
7025
a90ef4bf 7026@endif dejagnu
2a4cbe27 7027
a90ef4bf
JM
7028.PHONY: maybe-install-info-dejagnu install-info-dejagnu
7029maybe-install-info-dejagnu:
7030@if dejagnu
7031maybe-install-info-dejagnu: install-info-dejagnu
2a4cbe27 7032
a90ef4bf
JM
7033install-info-dejagnu: \
7034 configure-dejagnu \
7035 info-dejagnu
7036 @: $(MAKE); $(unstage)
7037 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7038 r=`${PWD_COMMAND}`; export r; \
7039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7040 $(HOST_EXPORTS) \
b813574b 7041 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7043 done; \
22121df0 7044 echo "Doing install-info in dejagnu"; \
a90ef4bf 7045 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7048 "RANLIB=$${RANLIB}" \
0c24b341 7049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7050 install-info) \
2a4cbe27
NN
7051 || exit 1
7052
a90ef4bf 7053@endif dejagnu
2a4cbe27 7054
a90ef4bf
JM
7055.PHONY: maybe-install-pdf-dejagnu install-pdf-dejagnu
7056maybe-install-pdf-dejagnu:
7057@if dejagnu
7058maybe-install-pdf-dejagnu: install-pdf-dejagnu
a3ca38d2 7059
a90ef4bf
JM
7060install-pdf-dejagnu: \
7061 configure-dejagnu \
7062 pdf-dejagnu
7063 @: $(MAKE); $(unstage)
7064 @[ -f ./dejagnu/Makefile ] || exit 0; \
a3ca38d2
DD
7065 r=`${PWD_COMMAND}`; export r; \
7066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7067 $(HOST_EXPORTS) \
7068 for flag in $(EXTRA_HOST_FLAGS) ; do \
7069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7070 done; \
22121df0 7071 echo "Doing install-pdf in dejagnu"; \
a90ef4bf 7072 (cd $(HOST_SUBDIR)/dejagnu && \
a3ca38d2
DD
7073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7075 "RANLIB=$${RANLIB}" \
0c24b341 7076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7077 install-pdf) \
7078 || exit 1
7079
a90ef4bf 7080@endif dejagnu
a3ca38d2 7081
a90ef4bf
JM
7082.PHONY: maybe-install-html-dejagnu install-html-dejagnu
7083maybe-install-html-dejagnu:
7084@if dejagnu
7085maybe-install-html-dejagnu: install-html-dejagnu
108a6f8e 7086
a90ef4bf
JM
7087install-html-dejagnu: \
7088 configure-dejagnu \
7089 html-dejagnu
7090 @: $(MAKE); $(unstage)
7091 @[ -f ./dejagnu/Makefile ] || exit 0; \
108a6f8e
CD
7092 r=`${PWD_COMMAND}`; export r; \
7093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7094 $(HOST_EXPORTS) \
7095 for flag in $(EXTRA_HOST_FLAGS) ; do \
7096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7097 done; \
22121df0 7098 echo "Doing install-html in dejagnu"; \
a90ef4bf 7099 (cd $(HOST_SUBDIR)/dejagnu && \
108a6f8e
CD
7100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7102 "RANLIB=$${RANLIB}" \
0c24b341 7103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7104 install-html) \
7105 || exit 1
7106
a90ef4bf 7107@endif dejagnu
108a6f8e 7108
a90ef4bf
JM
7109.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
7110maybe-installcheck-dejagnu:
7111@if dejagnu
7112maybe-installcheck-dejagnu: installcheck-dejagnu
2a4cbe27 7113
a90ef4bf
JM
7114installcheck-dejagnu: \
7115 configure-dejagnu
7116 @: $(MAKE); $(unstage)
7117 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7118 r=`${PWD_COMMAND}`; export r; \
7119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7120 $(HOST_EXPORTS) \
b813574b 7121 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7123 done; \
22121df0 7124 echo "Doing installcheck in dejagnu"; \
a90ef4bf 7125 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7128 "RANLIB=$${RANLIB}" \
0c24b341 7129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7130 installcheck) \
2a4cbe27
NN
7131 || exit 1
7132
a90ef4bf 7133@endif dejagnu
2a4cbe27 7134
a90ef4bf
JM
7135.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7136maybe-mostlyclean-dejagnu:
7137@if dejagnu
7138maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
2a4cbe27 7139
a90ef4bf
JM
7140mostlyclean-dejagnu:
7141 @: $(MAKE); $(unstage)
7142 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7143 r=`${PWD_COMMAND}`; export r; \
7144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7145 $(HOST_EXPORTS) \
b813574b 7146 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7148 done; \
22121df0 7149 echo "Doing mostlyclean in dejagnu"; \
a90ef4bf 7150 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7153 "RANLIB=$${RANLIB}" \
0c24b341 7154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7155 mostlyclean) \
2a4cbe27
NN
7156 || exit 1
7157
a90ef4bf 7158@endif dejagnu
2a4cbe27 7159
a90ef4bf
JM
7160.PHONY: maybe-clean-dejagnu clean-dejagnu
7161maybe-clean-dejagnu:
7162@if dejagnu
7163maybe-clean-dejagnu: clean-dejagnu
2a4cbe27 7164
a90ef4bf
JM
7165clean-dejagnu:
7166 @: $(MAKE); $(unstage)
7167 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7168 r=`${PWD_COMMAND}`; export r; \
7169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7170 $(HOST_EXPORTS) \
b813574b 7171 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7173 done; \
22121df0 7174 echo "Doing clean in dejagnu"; \
a90ef4bf 7175 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7178 "RANLIB=$${RANLIB}" \
0c24b341 7179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7180 clean) \
2a4cbe27
NN
7181 || exit 1
7182
a90ef4bf 7183@endif dejagnu
2a4cbe27 7184
a90ef4bf
JM
7185.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7186maybe-distclean-dejagnu:
7187@if dejagnu
7188maybe-distclean-dejagnu: distclean-dejagnu
2a4cbe27 7189
a90ef4bf
JM
7190distclean-dejagnu:
7191 @: $(MAKE); $(unstage)
7192 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7193 r=`${PWD_COMMAND}`; export r; \
7194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7195 $(HOST_EXPORTS) \
b813574b 7196 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7198 done; \
22121df0 7199 echo "Doing distclean in dejagnu"; \
a90ef4bf 7200 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7203 "RANLIB=$${RANLIB}" \
0c24b341 7204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7205 distclean) \
2a4cbe27
NN
7206 || exit 1
7207
a90ef4bf 7208@endif dejagnu
2a4cbe27 7209
a90ef4bf
JM
7210.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7211maybe-maintainer-clean-dejagnu:
7212@if dejagnu
7213maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
2a4cbe27 7214
a90ef4bf
JM
7215maintainer-clean-dejagnu:
7216 @: $(MAKE); $(unstage)
7217 @[ -f ./dejagnu/Makefile ] || exit 0; \
b40e3958
L
7218 r=`${PWD_COMMAND}`; export r; \
7219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7220 $(HOST_EXPORTS) \
b813574b 7221 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7223 done; \
22121df0 7224 echo "Doing maintainer-clean in dejagnu"; \
a90ef4bf 7225 (cd $(HOST_SUBDIR)/dejagnu && \
2a4cbe27
NN
7226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7228 "RANLIB=$${RANLIB}" \
0c24b341 7229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7230 maintainer-clean) \
2a4cbe27
NN
7231 || exit 1
7232
a90ef4bf 7233@endif dejagnu
2a4cbe27 7234
2a4cbe27 7235
a7254363 7236
a90ef4bf
JM
7237.PHONY: configure-etc maybe-configure-etc
7238maybe-configure-etc:
4f0ef2d8 7239@if gcc-bootstrap
a90ef4bf 7240configure-etc: stage_current
4f0ef2d8 7241@endif gcc-bootstrap
a90ef4bf
JM
7242@if etc
7243maybe-configure-etc: configure-etc
7244configure-etc:
0aed8855 7245 @: $(MAKE); $(unstage)
c52c6897 7246 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7248 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
22121df0 7249 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc; \
1f53ca9a 7250 $(HOST_EXPORTS) \
a90ef4bf
JM
7251 echo Configuring in $(HOST_SUBDIR)/etc; \
7252 cd "$(HOST_SUBDIR)/etc" || exit 1; \
4fa63067 7253 case $(srcdir) in \
b00612cc 7254 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7255 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
b00612cc 7256 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7257 esac; \
1b6c0831
L
7258 module_srcdir=etc; \
7259 $(SHELL) \
7260 $$s/$$module_srcdir/configure \
7261 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7262 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7263 --target=${target_alias} \
2a4cbe27 7264 || exit 1
a90ef4bf 7265@endif etc
2a4cbe27 7266
a7254363
PB
7267
7268
d545f33b
PB
7269
7270
a90ef4bf
JM
7271.PHONY: all-etc maybe-all-etc
7272maybe-all-etc:
4f0ef2d8 7273@if gcc-bootstrap
a90ef4bf 7274all-etc: stage_current
4f0ef2d8 7275@endif gcc-bootstrap
a90ef4bf
JM
7276@if etc
7277TARGET-etc=all
7278maybe-all-etc: all-etc
7279all-etc: configure-etc
0aed8855 7280 @: $(MAKE); $(unstage)
4fa63067
NN
7281 @r=`${PWD_COMMAND}`; export r; \
7282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7283 $(HOST_EXPORTS) \
a90ef4bf 7284 (cd $(HOST_SUBDIR)/etc && \
b3676d82 7285 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7286 $(TARGET-etc))
7287@endif etc
2a4cbe27 7288
a7254363 7289
d545f33b
PB
7290
7291
a90ef4bf
JM
7292.PHONY: check-etc maybe-check-etc
7293maybe-check-etc:
7294@if etc
7295maybe-check-etc: check-etc
2a4cbe27 7296
a90ef4bf 7297check-etc:
0aed8855 7298 @: $(MAKE); $(unstage)
a90ef4bf
JM
7299 @r=`${PWD_COMMAND}`; export r; \
7300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7301 $(HOST_EXPORTS) \
a90ef4bf
JM
7302 (cd $(HOST_SUBDIR)/etc && \
7303 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067 7304
a90ef4bf 7305@endif etc
4fa63067 7306
a90ef4bf
JM
7307.PHONY: install-etc maybe-install-etc
7308maybe-install-etc:
7309@if etc
7310maybe-install-etc: install-etc
4fa63067 7311
a90ef4bf 7312install-etc: installdirs
0aed8855 7313 @: $(MAKE); $(unstage)
4fa63067 7314 @r=`${PWD_COMMAND}`; export r; \
b40e3958 7315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7316 $(HOST_EXPORTS) \
a90ef4bf 7317 (cd $(HOST_SUBDIR)/etc && \
2da12f12 7318 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 7319
a90ef4bf 7320@endif etc
2a4cbe27 7321
a90ef4bf
JM
7322.PHONY: install-strip-etc maybe-install-strip-etc
7323maybe-install-strip-etc:
7324@if etc
7325maybe-install-strip-etc: install-strip-etc
9b980aa1 7326
a90ef4bf 7327install-strip-etc: installdirs
9b980aa1
RW
7328 @: $(MAKE); $(unstage)
7329 @r=`${PWD_COMMAND}`; export r; \
7330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7331 $(HOST_EXPORTS) \
a90ef4bf 7332 (cd $(HOST_SUBDIR)/etc && \
9b980aa1
RW
7333 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7334
a90ef4bf 7335@endif etc
9b980aa1 7336
56a8fe78 7337# Other targets (info, dvi, pdf, etc.)
2a4cbe27 7338
a90ef4bf
JM
7339.PHONY: maybe-info-etc info-etc
7340maybe-info-etc:
7341@if etc
7342maybe-info-etc: info-etc
4fa63067 7343
a90ef4bf
JM
7344info-etc: \
7345 configure-etc
0aed8855 7346 @: $(MAKE); $(unstage)
a90ef4bf 7347 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7348 r=`${PWD_COMMAND}`; export r; \
7349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7350 $(HOST_EXPORTS) \
b813574b 7351 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7353 done; \
22121df0 7354 echo "Doing info in etc"; \
a90ef4bf 7355 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7358 "RANLIB=$${RANLIB}" \
0c24b341 7359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7360 info) \
2a4cbe27
NN
7361 || exit 1
7362
a90ef4bf 7363@endif etc
2a4cbe27 7364
a90ef4bf
JM
7365.PHONY: maybe-dvi-etc dvi-etc
7366maybe-dvi-etc:
7367@if etc
7368maybe-dvi-etc: dvi-etc
2a4cbe27 7369
a90ef4bf
JM
7370dvi-etc: \
7371 configure-etc
0aed8855 7372 @: $(MAKE); $(unstage)
a90ef4bf 7373 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7374 r=`${PWD_COMMAND}`; export r; \
7375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7376 $(HOST_EXPORTS) \
b813574b 7377 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7379 done; \
22121df0 7380 echo "Doing dvi in etc"; \
a90ef4bf 7381 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7384 "RANLIB=$${RANLIB}" \
0c24b341 7385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7386 dvi) \
2a4cbe27
NN
7387 || exit 1
7388
a90ef4bf 7389@endif etc
2a4cbe27 7390
a90ef4bf
JM
7391.PHONY: maybe-pdf-etc pdf-etc
7392maybe-pdf-etc:
7393@if etc
7394maybe-pdf-etc: pdf-etc
56a8fe78 7395
a90ef4bf
JM
7396pdf-etc: \
7397 configure-etc
56a8fe78 7398 @: $(MAKE); $(unstage)
a90ef4bf 7399 @[ -f ./etc/Makefile ] || exit 0; \
56a8fe78
DD
7400 r=`${PWD_COMMAND}`; export r; \
7401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7402 $(HOST_EXPORTS) \
7403 for flag in $(EXTRA_HOST_FLAGS) ; do \
7404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7405 done; \
22121df0 7406 echo "Doing pdf in etc"; \
a90ef4bf 7407 (cd $(HOST_SUBDIR)/etc && \
56a8fe78
DD
7408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7410 "RANLIB=$${RANLIB}" \
0c24b341 7411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7412 pdf) \
7413 || exit 1
7414
a90ef4bf 7415@endif etc
56a8fe78 7416
a90ef4bf
JM
7417.PHONY: maybe-html-etc html-etc
7418maybe-html-etc:
7419@if etc
7420maybe-html-etc: html-etc
6d389afc 7421
a90ef4bf
JM
7422html-etc: \
7423 configure-etc
0aed8855 7424 @: $(MAKE); $(unstage)
a90ef4bf 7425 @[ -f ./etc/Makefile ] || exit 0; \
6d389afc
MS
7426 r=`${PWD_COMMAND}`; export r; \
7427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7428 $(HOST_EXPORTS) \
7429 for flag in $(EXTRA_HOST_FLAGS) ; do \
7430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7431 done; \
22121df0 7432 echo "Doing html in etc"; \
a90ef4bf 7433 (cd $(HOST_SUBDIR)/etc && \
6d389afc
MS
7434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7436 "RANLIB=$${RANLIB}" \
0c24b341 7437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7438 html) \
7439 || exit 1
7440
a90ef4bf 7441@endif etc
6d389afc 7442
a90ef4bf
JM
7443.PHONY: maybe-TAGS-etc TAGS-etc
7444maybe-TAGS-etc:
7445@if etc
7446maybe-TAGS-etc: TAGS-etc
2a4cbe27 7447
a90ef4bf
JM
7448TAGS-etc: \
7449 configure-etc
0aed8855 7450 @: $(MAKE); $(unstage)
a90ef4bf 7451 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7452 r=`${PWD_COMMAND}`; export r; \
7453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7454 $(HOST_EXPORTS) \
b813574b 7455 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7457 done; \
22121df0 7458 echo "Doing TAGS in etc"; \
a90ef4bf 7459 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7462 "RANLIB=$${RANLIB}" \
0c24b341 7463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7464 TAGS) \
2a4cbe27
NN
7465 || exit 1
7466
a90ef4bf 7467@endif etc
2a4cbe27 7468
a90ef4bf
JM
7469.PHONY: maybe-install-info-etc install-info-etc
7470maybe-install-info-etc:
7471@if etc
7472maybe-install-info-etc: install-info-etc
2a4cbe27 7473
a90ef4bf
JM
7474install-info-etc: \
7475 configure-etc \
7476 info-etc
0aed8855 7477 @: $(MAKE); $(unstage)
a90ef4bf 7478 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7479 r=`${PWD_COMMAND}`; export r; \
7480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7481 $(HOST_EXPORTS) \
b813574b 7482 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7484 done; \
22121df0 7485 echo "Doing install-info in etc"; \
a90ef4bf 7486 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7489 "RANLIB=$${RANLIB}" \
0c24b341 7490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7491 install-info) \
2a4cbe27
NN
7492 || exit 1
7493
a90ef4bf 7494@endif etc
2a4cbe27 7495
a90ef4bf
JM
7496.PHONY: maybe-install-pdf-etc install-pdf-etc
7497maybe-install-pdf-etc:
7498@if etc
7499maybe-install-pdf-etc: install-pdf-etc
a3ca38d2 7500
a90ef4bf
JM
7501install-pdf-etc: \
7502 configure-etc \
7503 pdf-etc
a3ca38d2 7504 @: $(MAKE); $(unstage)
a90ef4bf 7505 @[ -f ./etc/Makefile ] || exit 0; \
a3ca38d2
DD
7506 r=`${PWD_COMMAND}`; export r; \
7507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7508 $(HOST_EXPORTS) \
7509 for flag in $(EXTRA_HOST_FLAGS) ; do \
7510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7511 done; \
22121df0 7512 echo "Doing install-pdf in etc"; \
a90ef4bf 7513 (cd $(HOST_SUBDIR)/etc && \
a3ca38d2
DD
7514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7516 "RANLIB=$${RANLIB}" \
0c24b341 7517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7518 install-pdf) \
7519 || exit 1
7520
a90ef4bf 7521@endif etc
a3ca38d2 7522
a90ef4bf
JM
7523.PHONY: maybe-install-html-etc install-html-etc
7524maybe-install-html-etc:
7525@if etc
7526maybe-install-html-etc: install-html-etc
108a6f8e 7527
a90ef4bf
JM
7528install-html-etc: \
7529 configure-etc \
7530 html-etc
108a6f8e 7531 @: $(MAKE); $(unstage)
a90ef4bf 7532 @[ -f ./etc/Makefile ] || exit 0; \
108a6f8e
CD
7533 r=`${PWD_COMMAND}`; export r; \
7534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7535 $(HOST_EXPORTS) \
7536 for flag in $(EXTRA_HOST_FLAGS) ; do \
7537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7538 done; \
22121df0 7539 echo "Doing install-html in etc"; \
a90ef4bf 7540 (cd $(HOST_SUBDIR)/etc && \
108a6f8e
CD
7541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7543 "RANLIB=$${RANLIB}" \
0c24b341 7544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7545 install-html) \
7546 || exit 1
7547
a90ef4bf 7548@endif etc
108a6f8e 7549
a90ef4bf
JM
7550.PHONY: maybe-installcheck-etc installcheck-etc
7551maybe-installcheck-etc:
7552@if etc
7553maybe-installcheck-etc: installcheck-etc
2a4cbe27 7554
a90ef4bf
JM
7555installcheck-etc: \
7556 configure-etc
0aed8855 7557 @: $(MAKE); $(unstage)
a90ef4bf 7558 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7559 r=`${PWD_COMMAND}`; export r; \
7560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7561 $(HOST_EXPORTS) \
b813574b 7562 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7564 done; \
22121df0 7565 echo "Doing installcheck in etc"; \
a90ef4bf 7566 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7569 "RANLIB=$${RANLIB}" \
0c24b341 7570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7571 installcheck) \
2a4cbe27
NN
7572 || exit 1
7573
a90ef4bf 7574@endif etc
2a4cbe27 7575
a90ef4bf
JM
7576.PHONY: maybe-mostlyclean-etc mostlyclean-etc
7577maybe-mostlyclean-etc:
7578@if etc
7579maybe-mostlyclean-etc: mostlyclean-etc
2a4cbe27 7580
a90ef4bf 7581mostlyclean-etc:
0aed8855 7582 @: $(MAKE); $(unstage)
a90ef4bf 7583 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7584 r=`${PWD_COMMAND}`; export r; \
7585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7586 $(HOST_EXPORTS) \
b813574b 7587 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7589 done; \
22121df0 7590 echo "Doing mostlyclean in etc"; \
a90ef4bf 7591 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7594 "RANLIB=$${RANLIB}" \
0c24b341 7595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7596 mostlyclean) \
2a4cbe27
NN
7597 || exit 1
7598
a90ef4bf 7599@endif etc
2a4cbe27 7600
a90ef4bf
JM
7601.PHONY: maybe-clean-etc clean-etc
7602maybe-clean-etc:
7603@if etc
7604maybe-clean-etc: clean-etc
2a4cbe27 7605
a90ef4bf 7606clean-etc:
0aed8855 7607 @: $(MAKE); $(unstage)
a90ef4bf 7608 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7609 r=`${PWD_COMMAND}`; export r; \
7610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7611 $(HOST_EXPORTS) \
b813574b 7612 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7614 done; \
22121df0 7615 echo "Doing clean in etc"; \
a90ef4bf 7616 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7619 "RANLIB=$${RANLIB}" \
0c24b341 7620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7621 clean) \
2a4cbe27
NN
7622 || exit 1
7623
a90ef4bf 7624@endif etc
2a4cbe27 7625
a90ef4bf
JM
7626.PHONY: maybe-distclean-etc distclean-etc
7627maybe-distclean-etc:
7628@if etc
7629maybe-distclean-etc: distclean-etc
2a4cbe27 7630
a90ef4bf 7631distclean-etc:
0aed8855 7632 @: $(MAKE); $(unstage)
a90ef4bf 7633 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7634 r=`${PWD_COMMAND}`; export r; \
7635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7636 $(HOST_EXPORTS) \
b813574b 7637 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7639 done; \
22121df0 7640 echo "Doing distclean in etc"; \
a90ef4bf 7641 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7644 "RANLIB=$${RANLIB}" \
0c24b341 7645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7646 distclean) \
2a4cbe27
NN
7647 || exit 1
7648
a90ef4bf 7649@endif etc
2a4cbe27 7650
a90ef4bf
JM
7651.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
7652maybe-maintainer-clean-etc:
7653@if etc
7654maybe-maintainer-clean-etc: maintainer-clean-etc
2a4cbe27 7655
a90ef4bf 7656maintainer-clean-etc:
0aed8855 7657 @: $(MAKE); $(unstage)
a90ef4bf 7658 @[ -f ./etc/Makefile ] || exit 0; \
b40e3958
L
7659 r=`${PWD_COMMAND}`; export r; \
7660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7661 $(HOST_EXPORTS) \
b813574b 7662 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7664 done; \
22121df0 7665 echo "Doing maintainer-clean in etc"; \
a90ef4bf 7666 (cd $(HOST_SUBDIR)/etc && \
2a4cbe27
NN
7667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7669 "RANLIB=$${RANLIB}" \
0c24b341 7670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7671 maintainer-clean) \
2a4cbe27
NN
7672 || exit 1
7673
a90ef4bf 7674@endif etc
2a4cbe27 7675
2a4cbe27 7676
a7254363 7677
a90ef4bf
JM
7678.PHONY: configure-fastjar maybe-configure-fastjar
7679maybe-configure-fastjar:
4f0ef2d8 7680@if gcc-bootstrap
a90ef4bf 7681configure-fastjar: stage_current
4f0ef2d8 7682@endif gcc-bootstrap
a90ef4bf
JM
7683@if fastjar
7684maybe-configure-fastjar: configure-fastjar
7685configure-fastjar:
0aed8855 7686 @: $(MAKE); $(unstage)
c52c6897 7687 @r=`${PWD_COMMAND}`; export r; \
4fa63067 7688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 7689 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
22121df0 7690 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar; \
1f53ca9a 7691 $(HOST_EXPORTS) \
a90ef4bf
JM
7692 echo Configuring in $(HOST_SUBDIR)/fastjar; \
7693 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
4fa63067 7694 case $(srcdir) in \
b00612cc 7695 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 7696 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
b00612cc 7697 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 7698 esac; \
1b6c0831
L
7699 module_srcdir=fastjar; \
7700 $(SHELL) \
7701 $$s/$$module_srcdir/configure \
7702 --srcdir=$${topdir}/$$module_srcdir \
4b900473 7703 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 7704 --target=${target_alias} \
4fa63067 7705 || exit 1
a90ef4bf 7706@endif fastjar
4fa63067 7707
a7254363
PB
7708
7709
d545f33b
PB
7710
7711
a90ef4bf
JM
7712.PHONY: all-fastjar maybe-all-fastjar
7713maybe-all-fastjar:
4f0ef2d8 7714@if gcc-bootstrap
a90ef4bf 7715all-fastjar: stage_current
4f0ef2d8 7716@endif gcc-bootstrap
a90ef4bf
JM
7717@if fastjar
7718TARGET-fastjar=all
7719maybe-all-fastjar: all-fastjar
7720all-fastjar: configure-fastjar
0aed8855 7721 @: $(MAKE); $(unstage)
4fa63067
NN
7722 @r=`${PWD_COMMAND}`; export r; \
7723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 7724 $(HOST_EXPORTS) \
a90ef4bf 7725 (cd $(HOST_SUBDIR)/fastjar && \
b3676d82 7726 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
7727 $(TARGET-fastjar))
7728@endif fastjar
4fa63067 7729
a7254363 7730
d545f33b
PB
7731
7732
a90ef4bf
JM
7733.PHONY: check-fastjar maybe-check-fastjar
7734maybe-check-fastjar:
7735@if fastjar
7736maybe-check-fastjar: check-fastjar
4fa63067
NN
7737
7738# This module is only tested in a native toolchain.
a90ef4bf 7739check-fastjar:
0aed8855 7740 @: $(MAKE); $(unstage)
22121df0 7741 @if [ '$(host)' = '$(target)' ]; then \
4fa63067
NN
7742 r=`${PWD_COMMAND}`; export r; \
7743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 7744 $(HOST_EXPORTS) \
a90ef4bf 7745 (cd $(HOST_SUBDIR)/fastjar && \
f91ca6bc 7746 $(MAKE) $(FLAGS_TO_PASS) check)
4fa63067
NN
7747 fi
7748
a90ef4bf 7749@endif fastjar
4fa63067 7750
a90ef4bf
JM
7751.PHONY: install-fastjar maybe-install-fastjar
7752maybe-install-fastjar:
7753@if fastjar
7754maybe-install-fastjar: install-fastjar
4fa63067 7755
a90ef4bf 7756install-fastjar: installdirs
0aed8855 7757 @: $(MAKE); $(unstage)
4fa63067
NN
7758 @r=`${PWD_COMMAND}`; export r; \
7759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7760 $(HOST_EXPORTS) \
a90ef4bf 7761 (cd $(HOST_SUBDIR)/fastjar && \
2da12f12 7762 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 7763
a90ef4bf 7764@endif fastjar
4fa63067 7765
a90ef4bf
JM
7766.PHONY: install-strip-fastjar maybe-install-strip-fastjar
7767maybe-install-strip-fastjar:
7768@if fastjar
7769maybe-install-strip-fastjar: install-strip-fastjar
9b980aa1 7770
a90ef4bf 7771install-strip-fastjar: installdirs
9b980aa1
RW
7772 @: $(MAKE); $(unstage)
7773 @r=`${PWD_COMMAND}`; export r; \
7774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7775 $(HOST_EXPORTS) \
a90ef4bf 7776 (cd $(HOST_SUBDIR)/fastjar && \
9b980aa1
RW
7777 $(MAKE) $(FLAGS_TO_PASS) install-strip)
7778
a90ef4bf 7779@endif fastjar
9b980aa1 7780
56a8fe78 7781# Other targets (info, dvi, pdf, etc.)
4fa63067 7782
a90ef4bf
JM
7783.PHONY: maybe-info-fastjar info-fastjar
7784maybe-info-fastjar:
7785@if fastjar
7786maybe-info-fastjar: info-fastjar
4fa63067 7787
a90ef4bf
JM
7788info-fastjar: \
7789 configure-fastjar
0aed8855 7790 @: $(MAKE); $(unstage)
a90ef4bf 7791 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7792 r=`${PWD_COMMAND}`; export r; \
7793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7794 $(HOST_EXPORTS) \
b813574b 7795 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7797 done; \
22121df0 7798 echo "Doing info in fastjar"; \
a90ef4bf 7799 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7802 "RANLIB=$${RANLIB}" \
0c24b341 7803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7804 info) \
2a4cbe27
NN
7805 || exit 1
7806
a90ef4bf 7807@endif fastjar
2a4cbe27 7808
a90ef4bf
JM
7809.PHONY: maybe-dvi-fastjar dvi-fastjar
7810maybe-dvi-fastjar:
7811@if fastjar
7812maybe-dvi-fastjar: dvi-fastjar
2a4cbe27 7813
a90ef4bf
JM
7814dvi-fastjar: \
7815 configure-fastjar
0aed8855 7816 @: $(MAKE); $(unstage)
a90ef4bf 7817 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7818 r=`${PWD_COMMAND}`; export r; \
7819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7820 $(HOST_EXPORTS) \
b813574b 7821 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7823 done; \
22121df0 7824 echo "Doing dvi in fastjar"; \
a90ef4bf 7825 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7828 "RANLIB=$${RANLIB}" \
0c24b341 7829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7830 dvi) \
2a4cbe27
NN
7831 || exit 1
7832
a90ef4bf 7833@endif fastjar
2a4cbe27 7834
a90ef4bf
JM
7835.PHONY: maybe-pdf-fastjar pdf-fastjar
7836maybe-pdf-fastjar:
7837@if fastjar
7838maybe-pdf-fastjar: pdf-fastjar
56a8fe78 7839
a90ef4bf
JM
7840pdf-fastjar: \
7841 configure-fastjar
56a8fe78 7842 @: $(MAKE); $(unstage)
a90ef4bf 7843 @[ -f ./fastjar/Makefile ] || exit 0; \
56a8fe78
DD
7844 r=`${PWD_COMMAND}`; export r; \
7845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7846 $(HOST_EXPORTS) \
7847 for flag in $(EXTRA_HOST_FLAGS) ; do \
7848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7849 done; \
22121df0 7850 echo "Doing pdf in fastjar"; \
a90ef4bf 7851 (cd $(HOST_SUBDIR)/fastjar && \
56a8fe78
DD
7852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7854 "RANLIB=$${RANLIB}" \
0c24b341 7855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
7856 pdf) \
7857 || exit 1
7858
a90ef4bf 7859@endif fastjar
56a8fe78 7860
a90ef4bf
JM
7861.PHONY: maybe-html-fastjar html-fastjar
7862maybe-html-fastjar:
7863@if fastjar
7864maybe-html-fastjar: html-fastjar
6d389afc 7865
a90ef4bf
JM
7866html-fastjar: \
7867 configure-fastjar
0aed8855 7868 @: $(MAKE); $(unstage)
a90ef4bf 7869 @[ -f ./fastjar/Makefile ] || exit 0; \
6d389afc
MS
7870 r=`${PWD_COMMAND}`; export r; \
7871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
7872 $(HOST_EXPORTS) \
7873 for flag in $(EXTRA_HOST_FLAGS) ; do \
7874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7875 done; \
22121df0 7876 echo "Doing html in fastjar"; \
a90ef4bf 7877 (cd $(HOST_SUBDIR)/fastjar && \
6d389afc
MS
7878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7880 "RANLIB=$${RANLIB}" \
0c24b341 7881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
7882 html) \
7883 || exit 1
7884
a90ef4bf 7885@endif fastjar
6d389afc 7886
a90ef4bf
JM
7887.PHONY: maybe-TAGS-fastjar TAGS-fastjar
7888maybe-TAGS-fastjar:
7889@if fastjar
7890maybe-TAGS-fastjar: TAGS-fastjar
2a4cbe27 7891
a90ef4bf
JM
7892TAGS-fastjar: \
7893 configure-fastjar
0aed8855 7894 @: $(MAKE); $(unstage)
a90ef4bf 7895 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7896 r=`${PWD_COMMAND}`; export r; \
7897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7898 $(HOST_EXPORTS) \
b813574b 7899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7901 done; \
22121df0 7902 echo "Doing TAGS in fastjar"; \
a90ef4bf 7903 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7906 "RANLIB=$${RANLIB}" \
0c24b341 7907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7908 TAGS) \
2a4cbe27
NN
7909 || exit 1
7910
a90ef4bf 7911@endif fastjar
2a4cbe27 7912
a90ef4bf
JM
7913.PHONY: maybe-install-info-fastjar install-info-fastjar
7914maybe-install-info-fastjar:
7915@if fastjar
7916maybe-install-info-fastjar: install-info-fastjar
2a4cbe27 7917
a90ef4bf
JM
7918install-info-fastjar: \
7919 configure-fastjar \
7920 info-fastjar
0aed8855 7921 @: $(MAKE); $(unstage)
a90ef4bf 7922 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
7923 r=`${PWD_COMMAND}`; export r; \
7924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 7925 $(HOST_EXPORTS) \
b813574b 7926 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
7927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7928 done; \
22121df0 7929 echo "Doing install-info in fastjar"; \
a90ef4bf 7930 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
7931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7933 "RANLIB=$${RANLIB}" \
0c24b341 7934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 7935 install-info) \
2a4cbe27
NN
7936 || exit 1
7937
a90ef4bf 7938@endif fastjar
2a4cbe27 7939
a90ef4bf
JM
7940.PHONY: maybe-install-pdf-fastjar install-pdf-fastjar
7941maybe-install-pdf-fastjar:
7942@if fastjar
7943maybe-install-pdf-fastjar: install-pdf-fastjar
a3ca38d2 7944
a90ef4bf
JM
7945install-pdf-fastjar: \
7946 configure-fastjar \
7947 pdf-fastjar
a3ca38d2 7948 @: $(MAKE); $(unstage)
a90ef4bf 7949 @[ -f ./fastjar/Makefile ] || exit 0; \
a3ca38d2
DD
7950 r=`${PWD_COMMAND}`; export r; \
7951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7952 $(HOST_EXPORTS) \
7953 for flag in $(EXTRA_HOST_FLAGS) ; do \
7954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7955 done; \
22121df0 7956 echo "Doing install-pdf in fastjar"; \
a90ef4bf 7957 (cd $(HOST_SUBDIR)/fastjar && \
a3ca38d2
DD
7958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7960 "RANLIB=$${RANLIB}" \
0c24b341 7961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
7962 install-pdf) \
7963 || exit 1
7964
a90ef4bf 7965@endif fastjar
a3ca38d2 7966
a90ef4bf
JM
7967.PHONY: maybe-install-html-fastjar install-html-fastjar
7968maybe-install-html-fastjar:
7969@if fastjar
7970maybe-install-html-fastjar: install-html-fastjar
108a6f8e 7971
a90ef4bf
JM
7972install-html-fastjar: \
7973 configure-fastjar \
7974 html-fastjar
108a6f8e 7975 @: $(MAKE); $(unstage)
a90ef4bf 7976 @[ -f ./fastjar/Makefile ] || exit 0; \
108a6f8e
CD
7977 r=`${PWD_COMMAND}`; export r; \
7978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7979 $(HOST_EXPORTS) \
7980 for flag in $(EXTRA_HOST_FLAGS) ; do \
7981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7982 done; \
22121df0 7983 echo "Doing install-html in fastjar"; \
a90ef4bf 7984 (cd $(HOST_SUBDIR)/fastjar && \
108a6f8e
CD
7985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7987 "RANLIB=$${RANLIB}" \
0c24b341 7988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
7989 install-html) \
7990 || exit 1
7991
a90ef4bf 7992@endif fastjar
108a6f8e 7993
a90ef4bf
JM
7994.PHONY: maybe-installcheck-fastjar installcheck-fastjar
7995maybe-installcheck-fastjar:
7996@if fastjar
7997maybe-installcheck-fastjar: installcheck-fastjar
2a4cbe27 7998
a90ef4bf
JM
7999installcheck-fastjar: \
8000 configure-fastjar
0aed8855 8001 @: $(MAKE); $(unstage)
a90ef4bf 8002 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8003 r=`${PWD_COMMAND}`; export r; \
8004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8005 $(HOST_EXPORTS) \
b813574b 8006 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8008 done; \
22121df0 8009 echo "Doing installcheck in fastjar"; \
a90ef4bf 8010 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8013 "RANLIB=$${RANLIB}" \
0c24b341 8014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8015 installcheck) \
2a4cbe27
NN
8016 || exit 1
8017
a90ef4bf 8018@endif fastjar
2a4cbe27 8019
a90ef4bf
JM
8020.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
8021maybe-mostlyclean-fastjar:
8022@if fastjar
8023maybe-mostlyclean-fastjar: mostlyclean-fastjar
2a4cbe27 8024
a90ef4bf 8025mostlyclean-fastjar:
0aed8855 8026 @: $(MAKE); $(unstage)
a90ef4bf 8027 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8028 r=`${PWD_COMMAND}`; export r; \
8029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8030 $(HOST_EXPORTS) \
b813574b 8031 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8033 done; \
22121df0 8034 echo "Doing mostlyclean in fastjar"; \
a90ef4bf 8035 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8038 "RANLIB=$${RANLIB}" \
0c24b341 8039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8040 mostlyclean) \
2a4cbe27
NN
8041 || exit 1
8042
a90ef4bf 8043@endif fastjar
2a4cbe27 8044
a90ef4bf
JM
8045.PHONY: maybe-clean-fastjar clean-fastjar
8046maybe-clean-fastjar:
8047@if fastjar
8048maybe-clean-fastjar: clean-fastjar
2a4cbe27 8049
a90ef4bf 8050clean-fastjar:
0aed8855 8051 @: $(MAKE); $(unstage)
a90ef4bf 8052 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8053 r=`${PWD_COMMAND}`; export r; \
8054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8055 $(HOST_EXPORTS) \
b813574b 8056 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8058 done; \
22121df0 8059 echo "Doing clean in fastjar"; \
a90ef4bf 8060 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8063 "RANLIB=$${RANLIB}" \
0c24b341 8064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8065 clean) \
2a4cbe27
NN
8066 || exit 1
8067
a90ef4bf 8068@endif fastjar
2a4cbe27 8069
a90ef4bf
JM
8070.PHONY: maybe-distclean-fastjar distclean-fastjar
8071maybe-distclean-fastjar:
8072@if fastjar
8073maybe-distclean-fastjar: distclean-fastjar
2a4cbe27 8074
a90ef4bf 8075distclean-fastjar:
0aed8855 8076 @: $(MAKE); $(unstage)
a90ef4bf 8077 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8078 r=`${PWD_COMMAND}`; export r; \
8079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8080 $(HOST_EXPORTS) \
b813574b 8081 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8083 done; \
22121df0 8084 echo "Doing distclean in fastjar"; \
a90ef4bf 8085 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8088 "RANLIB=$${RANLIB}" \
0c24b341 8089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8090 distclean) \
2a4cbe27
NN
8091 || exit 1
8092
a90ef4bf 8093@endif fastjar
2a4cbe27 8094
a90ef4bf
JM
8095.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
8096maybe-maintainer-clean-fastjar:
8097@if fastjar
8098maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
8099
8100maintainer-clean-fastjar:
0aed8855 8101 @: $(MAKE); $(unstage)
a90ef4bf 8102 @[ -f ./fastjar/Makefile ] || exit 0; \
b40e3958
L
8103 r=`${PWD_COMMAND}`; export r; \
8104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8105 $(HOST_EXPORTS) \
b813574b 8106 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8108 done; \
22121df0 8109 echo "Doing maintainer-clean in fastjar"; \
a90ef4bf 8110 (cd $(HOST_SUBDIR)/fastjar && \
2a4cbe27
NN
8111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8113 "RANLIB=$${RANLIB}" \
0c24b341 8114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8115 maintainer-clean) \
2a4cbe27
NN
8116 || exit 1
8117
a90ef4bf 8118@endif fastjar
2a4cbe27 8119
2a4cbe27 8120
a7254363 8121
a90ef4bf
JM
8122.PHONY: configure-fixincludes maybe-configure-fixincludes
8123maybe-configure-fixincludes:
4f0ef2d8 8124@if gcc-bootstrap
a90ef4bf 8125configure-fixincludes: stage_current
4f0ef2d8 8126@endif gcc-bootstrap
a90ef4bf
JM
8127@if fixincludes
8128maybe-configure-fixincludes: configure-fixincludes
8129configure-fixincludes:
c52c6897 8130 @r=`${PWD_COMMAND}`; export r; \
4fa63067 8131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8132 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
22121df0 8133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
1f53ca9a 8134 $(HOST_EXPORTS) \
a90ef4bf
JM
8135 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
8136 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
4fa63067 8137 case $(srcdir) in \
b00612cc 8138 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 8139 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
b00612cc 8140 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 8141 esac; \
1b6c0831
L
8142 module_srcdir=fixincludes; \
8143 $(SHELL) \
8144 $$s/$$module_srcdir/configure \
8145 --srcdir=$${topdir}/$$module_srcdir \
4b900473 8146 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8147 --target=${target_alias} \
4fa63067 8148 || exit 1
a90ef4bf 8149@endif fixincludes
4fa63067 8150
a7254363
PB
8151
8152
201f096f 8153.PHONY: configure-stage1-fixincludes maybe-configure-stage1-fixincludes
8154maybe-configure-stage1-fixincludes:
8155@if fixincludes-bootstrap
8156maybe-configure-stage1-fixincludes: configure-stage1-fixincludes
8157configure-stage1-fixincludes:
8158 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8159 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8160 @r=`${PWD_COMMAND}`; export r; \
8161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8162 TFLAGS="$(STAGE1_TFLAGS)"; \
8163 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8164 $(HOST_EXPORTS) \
8165 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
8166 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
8167 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
8168 echo Configuring stage 1 in $(HOST_SUBDIR)/fixincludes; \
8169 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8170 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8171 case $(srcdir) in \
8172 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8173 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8174 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8175 esac; \
1b6c0831
L
8176 module_srcdir=fixincludes; \
8177 $(SHELL) $$s/$$module_srcdir/configure \
8178 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8179 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
8180 --target=${target_alias} \
8181 \
201f096f 8182 $(STAGE1_CONFIGURE_FLAGS)
8183@endif fixincludes-bootstrap
8184
8185.PHONY: configure-stage2-fixincludes maybe-configure-stage2-fixincludes
8186maybe-configure-stage2-fixincludes:
8187@if fixincludes-bootstrap
8188maybe-configure-stage2-fixincludes: configure-stage2-fixincludes
8189configure-stage2-fixincludes:
8190 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8191 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8192 @r=`${PWD_COMMAND}`; export r; \
8193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8194 TFLAGS="$(STAGE2_TFLAGS)"; \
8195 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8196 $(HOST_EXPORTS) \
8197 $(POSTSTAGE1_HOST_EXPORTS) \
8198 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
8199 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
8200 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8201 echo Configuring stage 2 in $(HOST_SUBDIR)/fixincludes; \
8202 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8203 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8204 case $(srcdir) in \
8205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8206 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8208 esac; \
1b6c0831
L
8209 module_srcdir=fixincludes; \
8210 $(SHELL) $$s/$$module_srcdir/configure \
8211 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8212 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8213 --target=${target_alias} \
22121df0 8214 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8215 $(STAGE2_CONFIGURE_FLAGS)
8216@endif fixincludes-bootstrap
8217
8218.PHONY: configure-stage3-fixincludes maybe-configure-stage3-fixincludes
8219maybe-configure-stage3-fixincludes:
8220@if fixincludes-bootstrap
8221maybe-configure-stage3-fixincludes: configure-stage3-fixincludes
8222configure-stage3-fixincludes:
8223 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8224 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8225 @r=`${PWD_COMMAND}`; export r; \
8226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8227 TFLAGS="$(STAGE3_TFLAGS)"; \
8228 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8229 $(HOST_EXPORTS) \
8230 $(POSTSTAGE1_HOST_EXPORTS) \
8231 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
8232 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
8233 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8234 echo Configuring stage 3 in $(HOST_SUBDIR)/fixincludes; \
8235 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8236 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8237 case $(srcdir) in \
8238 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8239 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8240 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8241 esac; \
1b6c0831
L
8242 module_srcdir=fixincludes; \
8243 $(SHELL) $$s/$$module_srcdir/configure \
8244 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8245 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8246 --target=${target_alias} \
22121df0 8247 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8248 $(STAGE3_CONFIGURE_FLAGS)
8249@endif fixincludes-bootstrap
8250
8251.PHONY: configure-stage4-fixincludes maybe-configure-stage4-fixincludes
8252maybe-configure-stage4-fixincludes:
8253@if fixincludes-bootstrap
8254maybe-configure-stage4-fixincludes: configure-stage4-fixincludes
8255configure-stage4-fixincludes:
8256 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8257 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8258 @r=`${PWD_COMMAND}`; export r; \
8259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8260 TFLAGS="$(STAGE4_TFLAGS)"; \
8261 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8262 $(HOST_EXPORTS) \
8263 $(POSTSTAGE1_HOST_EXPORTS) \
8264 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
8265 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
8266 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8267 echo Configuring stage 4 in $(HOST_SUBDIR)/fixincludes; \
8268 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8269 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8270 case $(srcdir) in \
8271 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8272 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8273 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8274 esac; \
1b6c0831
L
8275 module_srcdir=fixincludes; \
8276 $(SHELL) $$s/$$module_srcdir/configure \
8277 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8278 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8279 --target=${target_alias} \
22121df0 8280 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8281 $(STAGE4_CONFIGURE_FLAGS)
8282@endif fixincludes-bootstrap
8283
8284.PHONY: configure-stageprofile-fixincludes maybe-configure-stageprofile-fixincludes
8285maybe-configure-stageprofile-fixincludes:
8286@if fixincludes-bootstrap
8287maybe-configure-stageprofile-fixincludes: configure-stageprofile-fixincludes
8288configure-stageprofile-fixincludes:
8289 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8290 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8291 @r=`${PWD_COMMAND}`; export r; \
8292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8293 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8294 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8295 $(HOST_EXPORTS) \
8296 $(POSTSTAGE1_HOST_EXPORTS) \
8297 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
8298 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
8299 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8300 echo Configuring stage profile in $(HOST_SUBDIR)/fixincludes; \
8301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8302 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8303 case $(srcdir) in \
8304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8305 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8307 esac; \
1b6c0831
L
8308 module_srcdir=fixincludes; \
8309 $(SHELL) $$s/$$module_srcdir/configure \
8310 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8311 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8312 --target=${target_alias} \
22121df0 8313 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8314 $(STAGEprofile_CONFIGURE_FLAGS)
8315@endif fixincludes-bootstrap
8316
8317.PHONY: configure-stagefeedback-fixincludes maybe-configure-stagefeedback-fixincludes
8318maybe-configure-stagefeedback-fixincludes:
8319@if fixincludes-bootstrap
8320maybe-configure-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8321configure-stagefeedback-fixincludes:
8322 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8323 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes
8324 @r=`${PWD_COMMAND}`; export r; \
8325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8326 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8327 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
8328 $(HOST_EXPORTS) \
8329 $(POSTSTAGE1_HOST_EXPORTS) \
8330 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
8331 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
8332 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
8333 echo Configuring stage feedback in $(HOST_SUBDIR)/fixincludes; \
8334 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes; \
201f096f 8335 cd $(HOST_SUBDIR)/fixincludes || exit 1; \
8336 case $(srcdir) in \
8337 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8338 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
8339 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
8340 esac; \
1b6c0831
L
8341 module_srcdir=fixincludes; \
8342 $(SHELL) $$s/$$module_srcdir/configure \
8343 --srcdir=$${topdir}/$$module_srcdir \
201f096f 8344 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 8345 --target=${target_alias} \
22121df0 8346 --with-build-libsubdir=$(HOST_SUBDIR) \
201f096f 8347 $(STAGEfeedback_CONFIGURE_FLAGS)
8348@endif fixincludes-bootstrap
8349
8350
8351
d545f33b
PB
8352
8353
a90ef4bf
JM
8354.PHONY: all-fixincludes maybe-all-fixincludes
8355maybe-all-fixincludes:
4f0ef2d8 8356@if gcc-bootstrap
a90ef4bf 8357all-fixincludes: stage_current
4f0ef2d8 8358@endif gcc-bootstrap
a90ef4bf
JM
8359@if fixincludes
8360TARGET-fixincludes=all
8361maybe-all-fixincludes: all-fixincludes
8362all-fixincludes: configure-fixincludes
4fa63067
NN
8363 @r=`${PWD_COMMAND}`; export r; \
8364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 8365 $(HOST_EXPORTS) \
a90ef4bf 8366 (cd $(HOST_SUBDIR)/fixincludes && \
b3676d82 8367 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
8368 $(TARGET-fixincludes))
8369@endif fixincludes
4fa63067 8370
a7254363 8371
d545f33b 8372
201f096f 8373.PHONY: all-stage1-fixincludes maybe-all-stage1-fixincludes
8374.PHONY: clean-stage1-fixincludes maybe-clean-stage1-fixincludes
8375maybe-all-stage1-fixincludes:
8376maybe-clean-stage1-fixincludes:
8377@if fixincludes-bootstrap
8378maybe-all-stage1-fixincludes: all-stage1-fixincludes
8379all-stage1: all-stage1-fixincludes
8380TARGET-stage1-fixincludes = $(TARGET-fixincludes)
8381all-stage1-fixincludes: configure-stage1-fixincludes
8382 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
8383 @r=`${PWD_COMMAND}`; export r; \
8384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8385 TFLAGS="$(STAGE1_TFLAGS)"; \
8386 $(HOST_EXPORTS) \
8387 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8388 \
201f096f 8389 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8390 CFLAGS="$(STAGE1_CFLAGS)" \
8391 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
8392 LIBCFLAGS="$(LIBCFLAGS)" \
8393 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8394 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8395 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8396 $(EXTRA_HOST_FLAGS) \
8397 $(STAGE1_FLAGS_TO_PASS) \
05a13254 8398 TFLAGS="$(STAGE1_TFLAGS)" \
201f096f 8399 $(TARGET-stage1-fixincludes)
8400
8401maybe-clean-stage1-fixincludes: clean-stage1-fixincludes
8402clean-stage1: clean-stage1-fixincludes
8403clean-stage1-fixincludes:
8404 @if [ $(current_stage) = stage1 ]; then \
8405 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8406 else \
8407 [ -f $(HOST_SUBDIR)/stage1-fixincludes/Makefile ] || exit 0; \
8408 $(MAKE) stage1-start; \
8409 fi; \
8410 cd $(HOST_SUBDIR)/fixincludes && \
8411 $(MAKE) $(EXTRA_HOST_FLAGS) \
8412 $(STAGE1_FLAGS_TO_PASS) clean
8413@endif fixincludes-bootstrap
8414
8415
8416.PHONY: all-stage2-fixincludes maybe-all-stage2-fixincludes
8417.PHONY: clean-stage2-fixincludes maybe-clean-stage2-fixincludes
8418maybe-all-stage2-fixincludes:
8419maybe-clean-stage2-fixincludes:
8420@if fixincludes-bootstrap
8421maybe-all-stage2-fixincludes: all-stage2-fixincludes
8422all-stage2: all-stage2-fixincludes
8423TARGET-stage2-fixincludes = $(TARGET-fixincludes)
8424all-stage2-fixincludes: configure-stage2-fixincludes
8425 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
8426 @r=`${PWD_COMMAND}`; export r; \
8427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8428 TFLAGS="$(STAGE2_TFLAGS)"; \
8429 $(HOST_EXPORTS) \
8430 $(POSTSTAGE1_HOST_EXPORTS) \
8431 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8432 \
201f096f 8433 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8434 CFLAGS="$(STAGE2_CFLAGS)" \
8435 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
8436 LIBCFLAGS="$(STAGE2_CFLAGS)" \
8437 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8438 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8439 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8440 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8441 TFLAGS="$(STAGE2_TFLAGS)" \
201f096f 8442 $(TARGET-stage2-fixincludes)
8443
8444maybe-clean-stage2-fixincludes: clean-stage2-fixincludes
8445clean-stage2: clean-stage2-fixincludes
8446clean-stage2-fixincludes:
8447 @if [ $(current_stage) = stage2 ]; then \
8448 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8449 else \
8450 [ -f $(HOST_SUBDIR)/stage2-fixincludes/Makefile ] || exit 0; \
8451 $(MAKE) stage2-start; \
8452 fi; \
8453 cd $(HOST_SUBDIR)/fixincludes && \
8454 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8455@endif fixincludes-bootstrap
8456
8457
8458.PHONY: all-stage3-fixincludes maybe-all-stage3-fixincludes
8459.PHONY: clean-stage3-fixincludes maybe-clean-stage3-fixincludes
8460maybe-all-stage3-fixincludes:
8461maybe-clean-stage3-fixincludes:
8462@if fixincludes-bootstrap
8463maybe-all-stage3-fixincludes: all-stage3-fixincludes
8464all-stage3: all-stage3-fixincludes
8465TARGET-stage3-fixincludes = $(TARGET-fixincludes)
8466all-stage3-fixincludes: configure-stage3-fixincludes
8467 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
8468 @r=`${PWD_COMMAND}`; export r; \
8469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8470 TFLAGS="$(STAGE3_TFLAGS)"; \
8471 $(HOST_EXPORTS) \
8472 $(POSTSTAGE1_HOST_EXPORTS) \
8473 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8474 \
201f096f 8475 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8476 CFLAGS="$(STAGE3_CFLAGS)" \
8477 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
8478 LIBCFLAGS="$(STAGE3_CFLAGS)" \
8479 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8480 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8481 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8482 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8483 TFLAGS="$(STAGE3_TFLAGS)" \
201f096f 8484 $(TARGET-stage3-fixincludes)
8485
8486maybe-clean-stage3-fixincludes: clean-stage3-fixincludes
8487clean-stage3: clean-stage3-fixincludes
8488clean-stage3-fixincludes:
8489 @if [ $(current_stage) = stage3 ]; then \
8490 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8491 else \
8492 [ -f $(HOST_SUBDIR)/stage3-fixincludes/Makefile ] || exit 0; \
8493 $(MAKE) stage3-start; \
8494 fi; \
8495 cd $(HOST_SUBDIR)/fixincludes && \
8496 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8497@endif fixincludes-bootstrap
8498
8499
8500.PHONY: all-stage4-fixincludes maybe-all-stage4-fixincludes
8501.PHONY: clean-stage4-fixincludes maybe-clean-stage4-fixincludes
8502maybe-all-stage4-fixincludes:
8503maybe-clean-stage4-fixincludes:
8504@if fixincludes-bootstrap
8505maybe-all-stage4-fixincludes: all-stage4-fixincludes
8506all-stage4: all-stage4-fixincludes
8507TARGET-stage4-fixincludes = $(TARGET-fixincludes)
8508all-stage4-fixincludes: configure-stage4-fixincludes
8509 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
8510 @r=`${PWD_COMMAND}`; export r; \
8511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8512 TFLAGS="$(STAGE4_TFLAGS)"; \
8513 $(HOST_EXPORTS) \
8514 $(POSTSTAGE1_HOST_EXPORTS) \
8515 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8516 \
201f096f 8517 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8518 CFLAGS="$(STAGE4_CFLAGS)" \
8519 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
8520 LIBCFLAGS="$(STAGE4_CFLAGS)" \
8521 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8522 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8523 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8524 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8525 TFLAGS="$(STAGE4_TFLAGS)" \
201f096f 8526 $(TARGET-stage4-fixincludes)
8527
8528maybe-clean-stage4-fixincludes: clean-stage4-fixincludes
8529clean-stage4: clean-stage4-fixincludes
8530clean-stage4-fixincludes:
8531 @if [ $(current_stage) = stage4 ]; then \
8532 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8533 else \
8534 [ -f $(HOST_SUBDIR)/stage4-fixincludes/Makefile ] || exit 0; \
8535 $(MAKE) stage4-start; \
8536 fi; \
8537 cd $(HOST_SUBDIR)/fixincludes && \
8538 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8539@endif fixincludes-bootstrap
8540
8541
8542.PHONY: all-stageprofile-fixincludes maybe-all-stageprofile-fixincludes
8543.PHONY: clean-stageprofile-fixincludes maybe-clean-stageprofile-fixincludes
8544maybe-all-stageprofile-fixincludes:
8545maybe-clean-stageprofile-fixincludes:
8546@if fixincludes-bootstrap
8547maybe-all-stageprofile-fixincludes: all-stageprofile-fixincludes
8548all-stageprofile: all-stageprofile-fixincludes
8549TARGET-stageprofile-fixincludes = $(TARGET-fixincludes)
8550all-stageprofile-fixincludes: configure-stageprofile-fixincludes
8551 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
8552 @r=`${PWD_COMMAND}`; export r; \
8553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8554 TFLAGS="$(STAGEprofile_TFLAGS)"; \
8555 $(HOST_EXPORTS) \
8556 $(POSTSTAGE1_HOST_EXPORTS) \
8557 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8558 \
201f096f 8559 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8560 CFLAGS="$(STAGEprofile_CFLAGS)" \
8561 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
8562 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
8563 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8564 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8565 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8566 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8567 TFLAGS="$(STAGEprofile_TFLAGS)" \
201f096f 8568 $(TARGET-stageprofile-fixincludes)
8569
8570maybe-clean-stageprofile-fixincludes: clean-stageprofile-fixincludes
8571clean-stageprofile: clean-stageprofile-fixincludes
8572clean-stageprofile-fixincludes:
8573 @if [ $(current_stage) = stageprofile ]; then \
8574 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8575 else \
8576 [ -f $(HOST_SUBDIR)/stageprofile-fixincludes/Makefile ] || exit 0; \
8577 $(MAKE) stageprofile-start; \
8578 fi; \
8579 cd $(HOST_SUBDIR)/fixincludes && \
8580 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8581@endif fixincludes-bootstrap
8582
8583
8584.PHONY: all-stagefeedback-fixincludes maybe-all-stagefeedback-fixincludes
8585.PHONY: clean-stagefeedback-fixincludes maybe-clean-stagefeedback-fixincludes
8586maybe-all-stagefeedback-fixincludes:
8587maybe-clean-stagefeedback-fixincludes:
8588@if fixincludes-bootstrap
8589maybe-all-stagefeedback-fixincludes: all-stagefeedback-fixincludes
8590all-stagefeedback: all-stagefeedback-fixincludes
8591TARGET-stagefeedback-fixincludes = $(TARGET-fixincludes)
8592all-stagefeedback-fixincludes: configure-stagefeedback-fixincludes
8593 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
8594 @r=`${PWD_COMMAND}`; export r; \
8595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8596 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
8597 $(HOST_EXPORTS) \
8598 $(POSTSTAGE1_HOST_EXPORTS) \
8599 cd $(HOST_SUBDIR)/fixincludes && \
05a13254 8600 \
201f096f 8601 $(MAKE) $(BASE_FLAGS_TO_PASS) \
8602 CFLAGS="$(STAGEfeedback_CFLAGS)" \
8603 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
8604 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
8605 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
8606 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
8607 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
8608 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 8609 TFLAGS="$(STAGEfeedback_TFLAGS)" \
201f096f 8610 $(TARGET-stagefeedback-fixincludes)
8611
8612maybe-clean-stagefeedback-fixincludes: clean-stagefeedback-fixincludes
8613clean-stagefeedback: clean-stagefeedback-fixincludes
8614clean-stagefeedback-fixincludes:
8615 @if [ $(current_stage) = stagefeedback ]; then \
8616 [ -f $(HOST_SUBDIR)/fixincludes/Makefile ] || exit 0; \
8617 else \
8618 [ -f $(HOST_SUBDIR)/stagefeedback-fixincludes/Makefile ] || exit 0; \
8619 $(MAKE) stagefeedback-start; \
8620 fi; \
8621 cd $(HOST_SUBDIR)/fixincludes && \
8622 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
8623@endif fixincludes-bootstrap
8624
8625
8626
8627
d545f33b 8628
a90ef4bf
JM
8629.PHONY: check-fixincludes maybe-check-fixincludes
8630maybe-check-fixincludes:
8631@if fixincludes
8632maybe-check-fixincludes: check-fixincludes
4fa63067 8633
a90ef4bf 8634check-fixincludes:
0aed8855 8635 @: $(MAKE); $(unstage)
4fa63067
NN
8636 @r=`${PWD_COMMAND}`; export r; \
8637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 8638 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 8639 (cd $(HOST_SUBDIR)/fixincludes && \
f91ca6bc 8640 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 8641
a90ef4bf 8642@endif fixincludes
4fa63067 8643
a90ef4bf
JM
8644.PHONY: install-fixincludes maybe-install-fixincludes
8645maybe-install-fixincludes:
8646@if fixincludes
8647maybe-install-fixincludes: install-fixincludes
4fa63067 8648
a90ef4bf 8649install-fixincludes: installdirs
0aed8855 8650 @: $(MAKE); $(unstage)
4fa63067
NN
8651 @r=`${PWD_COMMAND}`; export r; \
8652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8653 $(HOST_EXPORTS) \
a90ef4bf 8654 (cd $(HOST_SUBDIR)/fixincludes && \
2da12f12 8655 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 8656
a90ef4bf 8657@endif fixincludes
4fa63067 8658
a90ef4bf
JM
8659.PHONY: install-strip-fixincludes maybe-install-strip-fixincludes
8660maybe-install-strip-fixincludes:
8661@if fixincludes
8662maybe-install-strip-fixincludes: install-strip-fixincludes
9b980aa1 8663
a90ef4bf 8664install-strip-fixincludes: installdirs
9b980aa1
RW
8665 @: $(MAKE); $(unstage)
8666 @r=`${PWD_COMMAND}`; export r; \
8667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8668 $(HOST_EXPORTS) \
a90ef4bf 8669 (cd $(HOST_SUBDIR)/fixincludes && \
9b980aa1
RW
8670 $(MAKE) $(FLAGS_TO_PASS) install-strip)
8671
a90ef4bf 8672@endif fixincludes
9b980aa1 8673
56a8fe78 8674# Other targets (info, dvi, pdf, etc.)
4fa63067 8675
a90ef4bf
JM
8676.PHONY: maybe-info-fixincludes info-fixincludes
8677maybe-info-fixincludes:
8678@if fixincludes
8679maybe-info-fixincludes: info-fixincludes
4fa63067 8680
a90ef4bf
JM
8681info-fixincludes: \
8682 configure-fixincludes
a90ef4bf 8683 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8684 r=`${PWD_COMMAND}`; export r; \
8685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8686 $(HOST_EXPORTS) \
b813574b 8687 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8689 done; \
22121df0 8690 echo "Doing info in fixincludes"; \
a90ef4bf 8691 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8694 "RANLIB=$${RANLIB}" \
0c24b341 8695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8696 info) \
2a4cbe27
NN
8697 || exit 1
8698
a90ef4bf 8699@endif fixincludes
2a4cbe27 8700
a90ef4bf
JM
8701.PHONY: maybe-dvi-fixincludes dvi-fixincludes
8702maybe-dvi-fixincludes:
8703@if fixincludes
8704maybe-dvi-fixincludes: dvi-fixincludes
2a4cbe27 8705
a90ef4bf
JM
8706dvi-fixincludes: \
8707 configure-fixincludes
a90ef4bf 8708 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8709 r=`${PWD_COMMAND}`; export r; \
8710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8711 $(HOST_EXPORTS) \
b813574b 8712 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8714 done; \
22121df0 8715 echo "Doing dvi in fixincludes"; \
a90ef4bf 8716 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8719 "RANLIB=$${RANLIB}" \
0c24b341 8720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8721 dvi) \
2a4cbe27
NN
8722 || exit 1
8723
a90ef4bf 8724@endif fixincludes
2a4cbe27 8725
a90ef4bf
JM
8726.PHONY: maybe-pdf-fixincludes pdf-fixincludes
8727maybe-pdf-fixincludes:
8728@if fixincludes
8729maybe-pdf-fixincludes: pdf-fixincludes
56a8fe78 8730
a90ef4bf
JM
8731pdf-fixincludes: \
8732 configure-fixincludes
a90ef4bf 8733 @[ -f ./fixincludes/Makefile ] || exit 0; \
56a8fe78
DD
8734 r=`${PWD_COMMAND}`; export r; \
8735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8736 $(HOST_EXPORTS) \
8737 for flag in $(EXTRA_HOST_FLAGS) ; do \
8738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8739 done; \
22121df0 8740 echo "Doing pdf in fixincludes"; \
a90ef4bf 8741 (cd $(HOST_SUBDIR)/fixincludes && \
56a8fe78
DD
8742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8744 "RANLIB=$${RANLIB}" \
0c24b341 8745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
8746 pdf) \
8747 || exit 1
8748
a90ef4bf 8749@endif fixincludes
56a8fe78 8750
a90ef4bf
JM
8751.PHONY: maybe-html-fixincludes html-fixincludes
8752maybe-html-fixincludes:
8753@if fixincludes
8754maybe-html-fixincludes: html-fixincludes
6d389afc 8755
a90ef4bf
JM
8756html-fixincludes: \
8757 configure-fixincludes
a90ef4bf 8758 @[ -f ./fixincludes/Makefile ] || exit 0; \
6d389afc
MS
8759 r=`${PWD_COMMAND}`; export r; \
8760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
8761 $(HOST_EXPORTS) \
8762 for flag in $(EXTRA_HOST_FLAGS) ; do \
8763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8764 done; \
22121df0 8765 echo "Doing html in fixincludes"; \
a90ef4bf 8766 (cd $(HOST_SUBDIR)/fixincludes && \
6d389afc
MS
8767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8769 "RANLIB=$${RANLIB}" \
0c24b341 8770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
8771 html) \
8772 || exit 1
8773
a90ef4bf 8774@endif fixincludes
6d389afc 8775
a90ef4bf
JM
8776.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
8777maybe-TAGS-fixincludes:
8778@if fixincludes
8779maybe-TAGS-fixincludes: TAGS-fixincludes
2a4cbe27 8780
a90ef4bf
JM
8781# fixincludes doesn't support TAGS.
8782TAGS-fixincludes:
2a4cbe27 8783
a90ef4bf 8784@endif fixincludes
2a4cbe27 8785
a90ef4bf
JM
8786.PHONY: maybe-install-info-fixincludes install-info-fixincludes
8787maybe-install-info-fixincludes:
8788@if fixincludes
8789maybe-install-info-fixincludes: install-info-fixincludes
2a4cbe27 8790
a90ef4bf
JM
8791install-info-fixincludes: \
8792 configure-fixincludes \
8793 info-fixincludes
a90ef4bf 8794 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8795 r=`${PWD_COMMAND}`; export r; \
8796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8797 $(HOST_EXPORTS) \
b813574b 8798 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8800 done; \
22121df0 8801 echo "Doing install-info in fixincludes"; \
a90ef4bf 8802 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8805 "RANLIB=$${RANLIB}" \
0c24b341 8806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8807 install-info) \
2a4cbe27
NN
8808 || exit 1
8809
a90ef4bf 8810@endif fixincludes
2a4cbe27 8811
a90ef4bf
JM
8812.PHONY: maybe-install-pdf-fixincludes install-pdf-fixincludes
8813maybe-install-pdf-fixincludes:
8814@if fixincludes
8815maybe-install-pdf-fixincludes: install-pdf-fixincludes
a3ca38d2 8816
a90ef4bf
JM
8817install-pdf-fixincludes: \
8818 configure-fixincludes \
8819 pdf-fixincludes
a90ef4bf 8820 @[ -f ./fixincludes/Makefile ] || exit 0; \
a3ca38d2
DD
8821 r=`${PWD_COMMAND}`; export r; \
8822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8823 $(HOST_EXPORTS) \
8824 for flag in $(EXTRA_HOST_FLAGS) ; do \
8825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8826 done; \
22121df0 8827 echo "Doing install-pdf in fixincludes"; \
a90ef4bf 8828 (cd $(HOST_SUBDIR)/fixincludes && \
a3ca38d2
DD
8829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8831 "RANLIB=$${RANLIB}" \
0c24b341 8832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
8833 install-pdf) \
8834 || exit 1
8835
a90ef4bf 8836@endif fixincludes
a3ca38d2 8837
a90ef4bf
JM
8838.PHONY: maybe-install-html-fixincludes install-html-fixincludes
8839maybe-install-html-fixincludes:
8840@if fixincludes
8841maybe-install-html-fixincludes: install-html-fixincludes
108a6f8e 8842
a90ef4bf
JM
8843install-html-fixincludes: \
8844 configure-fixincludes \
8845 html-fixincludes
a90ef4bf 8846 @[ -f ./fixincludes/Makefile ] || exit 0; \
108a6f8e
CD
8847 r=`${PWD_COMMAND}`; export r; \
8848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8849 $(HOST_EXPORTS) \
8850 for flag in $(EXTRA_HOST_FLAGS) ; do \
8851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8852 done; \
22121df0 8853 echo "Doing install-html in fixincludes"; \
a90ef4bf 8854 (cd $(HOST_SUBDIR)/fixincludes && \
108a6f8e
CD
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}" \
108a6f8e
CD
8859 install-html) \
8860 || exit 1
8861
a90ef4bf 8862@endif fixincludes
108a6f8e 8863
a90ef4bf
JM
8864.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
8865maybe-installcheck-fixincludes:
8866@if fixincludes
8867maybe-installcheck-fixincludes: installcheck-fixincludes
2a4cbe27 8868
a90ef4bf
JM
8869installcheck-fixincludes: \
8870 configure-fixincludes
a90ef4bf 8871 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8872 r=`${PWD_COMMAND}`; export r; \
8873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8874 $(HOST_EXPORTS) \
b813574b 8875 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8877 done; \
22121df0 8878 echo "Doing installcheck in fixincludes"; \
a90ef4bf 8879 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8882 "RANLIB=$${RANLIB}" \
0c24b341 8883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8884 installcheck) \
2a4cbe27
NN
8885 || exit 1
8886
a90ef4bf 8887@endif fixincludes
2a4cbe27 8888
a90ef4bf
JM
8889.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
8890maybe-mostlyclean-fixincludes:
8891@if fixincludes
8892maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
2a4cbe27 8893
a90ef4bf 8894mostlyclean-fixincludes:
a90ef4bf 8895 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8896 r=`${PWD_COMMAND}`; export r; \
8897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8898 $(HOST_EXPORTS) \
b813574b 8899 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8901 done; \
22121df0 8902 echo "Doing mostlyclean in fixincludes"; \
a90ef4bf 8903 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8906 "RANLIB=$${RANLIB}" \
0c24b341 8907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8908 mostlyclean) \
2a4cbe27
NN
8909 || exit 1
8910
a90ef4bf 8911@endif fixincludes
2a4cbe27 8912
a90ef4bf
JM
8913.PHONY: maybe-clean-fixincludes clean-fixincludes
8914maybe-clean-fixincludes:
8915@if fixincludes
8916maybe-clean-fixincludes: clean-fixincludes
2a4cbe27 8917
a90ef4bf 8918clean-fixincludes:
a90ef4bf 8919 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8920 r=`${PWD_COMMAND}`; export r; \
8921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8922 $(HOST_EXPORTS) \
b813574b 8923 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8925 done; \
22121df0 8926 echo "Doing clean in fixincludes"; \
a90ef4bf 8927 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8930 "RANLIB=$${RANLIB}" \
0c24b341 8931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8932 clean) \
2a4cbe27
NN
8933 || exit 1
8934
a90ef4bf 8935@endif fixincludes
2a4cbe27 8936
a90ef4bf
JM
8937.PHONY: maybe-distclean-fixincludes distclean-fixincludes
8938maybe-distclean-fixincludes:
8939@if fixincludes
8940maybe-distclean-fixincludes: distclean-fixincludes
2a4cbe27 8941
a90ef4bf 8942distclean-fixincludes:
a90ef4bf 8943 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8944 r=`${PWD_COMMAND}`; export r; \
8945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8946 $(HOST_EXPORTS) \
b813574b 8947 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8949 done; \
22121df0 8950 echo "Doing distclean in fixincludes"; \
a90ef4bf 8951 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8954 "RANLIB=$${RANLIB}" \
0c24b341 8955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8956 distclean) \
2a4cbe27
NN
8957 || exit 1
8958
a90ef4bf 8959@endif fixincludes
2a4cbe27 8960
a90ef4bf
JM
8961.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
8962maybe-maintainer-clean-fixincludes:
8963@if fixincludes
8964maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
2a4cbe27 8965
a90ef4bf 8966maintainer-clean-fixincludes:
a90ef4bf 8967 @[ -f ./fixincludes/Makefile ] || exit 0; \
b40e3958
L
8968 r=`${PWD_COMMAND}`; export r; \
8969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 8970 $(HOST_EXPORTS) \
b813574b 8971 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
8972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8973 done; \
22121df0 8974 echo "Doing maintainer-clean in fixincludes"; \
a90ef4bf 8975 (cd $(HOST_SUBDIR)/fixincludes && \
2a4cbe27
NN
8976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8978 "RANLIB=$${RANLIB}" \
0c24b341 8979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 8980 maintainer-clean) \
2a4cbe27
NN
8981 || exit 1
8982
a90ef4bf 8983@endif fixincludes
2a4cbe27 8984
2a4cbe27 8985
a7254363 8986
a90ef4bf
JM
8987.PHONY: configure-flex maybe-configure-flex
8988maybe-configure-flex:
f9806fa5 8989@if gcc-bootstrap
a90ef4bf 8990configure-flex: stage_current
f9806fa5 8991@endif gcc-bootstrap
a90ef4bf
JM
8992@if flex
8993maybe-configure-flex: configure-flex
8994configure-flex:
f9806fa5
DE
8995 @: $(MAKE); $(unstage)
8996 @r=`${PWD_COMMAND}`; export r; \
8997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 8998 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
22121df0 8999 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex; \
1f53ca9a 9000 $(HOST_EXPORTS) \
a90ef4bf
JM
9001 echo Configuring in $(HOST_SUBDIR)/flex; \
9002 cd "$(HOST_SUBDIR)/flex" || exit 1; \
f9806fa5
DE
9003 case $(srcdir) in \
9004 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9005 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
f9806fa5
DE
9006 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9007 esac; \
1b6c0831
L
9008 module_srcdir=flex; \
9009 $(SHELL) \
9010 $$s/$$module_srcdir/configure \
9011 --srcdir=$${topdir}/$$module_srcdir \
f9806fa5 9012 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9013 --target=${target_alias} \
f9806fa5 9014 || exit 1
a90ef4bf 9015@endif flex
f9806fa5
DE
9016
9017
9018
9019
9020
a90ef4bf
JM
9021.PHONY: all-flex maybe-all-flex
9022maybe-all-flex:
f9806fa5 9023@if gcc-bootstrap
a90ef4bf 9024all-flex: stage_current
f9806fa5 9025@endif gcc-bootstrap
a90ef4bf
JM
9026@if flex
9027TARGET-flex=all
9028maybe-all-flex: all-flex
9029all-flex: configure-flex
f9806fa5
DE
9030 @: $(MAKE); $(unstage)
9031 @r=`${PWD_COMMAND}`; export r; \
9032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 9033 $(HOST_EXPORTS) \
a90ef4bf 9034 (cd $(HOST_SUBDIR)/flex && \
b3676d82 9035 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9036 $(TARGET-flex))
9037@endif flex
f9806fa5
DE
9038
9039
9040
9041
a90ef4bf
JM
9042.PHONY: check-flex maybe-check-flex
9043maybe-check-flex:
9044@if flex
9045maybe-check-flex: check-flex
f9806fa5 9046
a90ef4bf
JM
9047# This module is only tested in a native toolchain.
9048check-flex:
f9806fa5 9049 @: $(MAKE); $(unstage)
22121df0 9050 @if [ '$(host)' = '$(target)' ]; then \
a90ef4bf
JM
9051 r=`${PWD_COMMAND}`; export r; \
9052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9053 $(HOST_EXPORTS) \
a90ef4bf 9054 (cd $(HOST_SUBDIR)/flex && \
f91ca6bc 9055 $(MAKE) $(FLAGS_TO_PASS) check)
a90ef4bf 9056 fi
f9806fa5 9057
a90ef4bf 9058@endif flex
f9806fa5 9059
a90ef4bf
JM
9060.PHONY: install-flex maybe-install-flex
9061maybe-install-flex:
9062@if flex
9063maybe-install-flex: install-flex
f9806fa5 9064
a90ef4bf 9065install-flex: installdirs
f9806fa5
DE
9066 @: $(MAKE); $(unstage)
9067 @r=`${PWD_COMMAND}`; export r; \
9068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9069 $(HOST_EXPORTS) \
a90ef4bf 9070 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9071 $(MAKE) $(FLAGS_TO_PASS) install)
9072
a90ef4bf 9073@endif flex
f9806fa5 9074
a90ef4bf
JM
9075.PHONY: install-strip-flex maybe-install-strip-flex
9076maybe-install-strip-flex:
9077@if flex
9078maybe-install-strip-flex: install-strip-flex
9b980aa1 9079
a90ef4bf 9080install-strip-flex: installdirs
9b980aa1
RW
9081 @: $(MAKE); $(unstage)
9082 @r=`${PWD_COMMAND}`; export r; \
9083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9084 $(HOST_EXPORTS) \
a90ef4bf 9085 (cd $(HOST_SUBDIR)/flex && \
9b980aa1
RW
9086 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9087
a90ef4bf 9088@endif flex
9b980aa1 9089
f9806fa5
DE
9090# Other targets (info, dvi, pdf, etc.)
9091
a90ef4bf
JM
9092.PHONY: maybe-info-flex info-flex
9093maybe-info-flex:
9094@if flex
9095maybe-info-flex: info-flex
f9806fa5 9096
a90ef4bf
JM
9097info-flex: \
9098 configure-flex
f9806fa5 9099 @: $(MAKE); $(unstage)
a90ef4bf 9100 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9101 r=`${PWD_COMMAND}`; export r; \
9102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9103 $(HOST_EXPORTS) \
9104 for flag in $(EXTRA_HOST_FLAGS) ; do \
9105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9106 done; \
22121df0 9107 echo "Doing info in flex"; \
a90ef4bf 9108 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9111 "RANLIB=$${RANLIB}" \
9112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9113 info) \
9114 || exit 1
9115
a90ef4bf 9116@endif flex
f9806fa5 9117
a90ef4bf
JM
9118.PHONY: maybe-dvi-flex dvi-flex
9119maybe-dvi-flex:
9120@if flex
9121maybe-dvi-flex: dvi-flex
f9806fa5 9122
a90ef4bf
JM
9123dvi-flex: \
9124 configure-flex
f9806fa5 9125 @: $(MAKE); $(unstage)
a90ef4bf 9126 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9127 r=`${PWD_COMMAND}`; export r; \
9128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9129 $(HOST_EXPORTS) \
9130 for flag in $(EXTRA_HOST_FLAGS) ; do \
9131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9132 done; \
22121df0 9133 echo "Doing dvi in flex"; \
a90ef4bf 9134 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9137 "RANLIB=$${RANLIB}" \
9138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9139 dvi) \
9140 || exit 1
9141
a90ef4bf 9142@endif flex
f9806fa5 9143
a90ef4bf
JM
9144.PHONY: maybe-pdf-flex pdf-flex
9145maybe-pdf-flex:
9146@if flex
9147maybe-pdf-flex: pdf-flex
f9806fa5 9148
a90ef4bf
JM
9149pdf-flex: \
9150 configure-flex
f9806fa5 9151 @: $(MAKE); $(unstage)
a90ef4bf 9152 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9153 r=`${PWD_COMMAND}`; export r; \
9154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9155 $(HOST_EXPORTS) \
9156 for flag in $(EXTRA_HOST_FLAGS) ; do \
9157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9158 done; \
22121df0 9159 echo "Doing pdf in flex"; \
a90ef4bf 9160 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9163 "RANLIB=$${RANLIB}" \
9164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9165 pdf) \
9166 || exit 1
9167
a90ef4bf 9168@endif flex
f9806fa5 9169
a90ef4bf
JM
9170.PHONY: maybe-html-flex html-flex
9171maybe-html-flex:
9172@if flex
9173maybe-html-flex: html-flex
f9806fa5 9174
a90ef4bf
JM
9175html-flex: \
9176 configure-flex
f9806fa5 9177 @: $(MAKE); $(unstage)
a90ef4bf 9178 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9179 r=`${PWD_COMMAND}`; export r; \
9180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9181 $(HOST_EXPORTS) \
9182 for flag in $(EXTRA_HOST_FLAGS) ; do \
9183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9184 done; \
22121df0 9185 echo "Doing html in flex"; \
a90ef4bf 9186 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9189 "RANLIB=$${RANLIB}" \
9190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9191 html) \
9192 || exit 1
9193
a90ef4bf 9194@endif flex
f9806fa5 9195
a90ef4bf
JM
9196.PHONY: maybe-TAGS-flex TAGS-flex
9197maybe-TAGS-flex:
9198@if flex
9199maybe-TAGS-flex: TAGS-flex
f9806fa5 9200
a90ef4bf
JM
9201TAGS-flex: \
9202 configure-flex
f9806fa5 9203 @: $(MAKE); $(unstage)
a90ef4bf 9204 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9205 r=`${PWD_COMMAND}`; export r; \
9206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9207 $(HOST_EXPORTS) \
9208 for flag in $(EXTRA_HOST_FLAGS) ; do \
9209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9210 done; \
22121df0 9211 echo "Doing TAGS in flex"; \
a90ef4bf 9212 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9215 "RANLIB=$${RANLIB}" \
9216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9217 TAGS) \
9218 || exit 1
9219
a90ef4bf 9220@endif flex
f9806fa5 9221
a90ef4bf
JM
9222.PHONY: maybe-install-info-flex install-info-flex
9223maybe-install-info-flex:
9224@if flex
9225maybe-install-info-flex: install-info-flex
f9806fa5 9226
a90ef4bf
JM
9227install-info-flex: \
9228 configure-flex \
9229 info-flex
f9806fa5 9230 @: $(MAKE); $(unstage)
a90ef4bf 9231 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9232 r=`${PWD_COMMAND}`; export r; \
9233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9234 $(HOST_EXPORTS) \
9235 for flag in $(EXTRA_HOST_FLAGS) ; do \
9236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9237 done; \
22121df0 9238 echo "Doing install-info in flex"; \
a90ef4bf 9239 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9242 "RANLIB=$${RANLIB}" \
9243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9244 install-info) \
9245 || exit 1
9246
a90ef4bf 9247@endif flex
f9806fa5 9248
a90ef4bf
JM
9249.PHONY: maybe-install-pdf-flex install-pdf-flex
9250maybe-install-pdf-flex:
9251@if flex
9252maybe-install-pdf-flex: install-pdf-flex
f9806fa5 9253
a90ef4bf
JM
9254install-pdf-flex: \
9255 configure-flex \
9256 pdf-flex
f9806fa5 9257 @: $(MAKE); $(unstage)
a90ef4bf 9258 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9259 r=`${PWD_COMMAND}`; export r; \
9260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9261 $(HOST_EXPORTS) \
9262 for flag in $(EXTRA_HOST_FLAGS) ; do \
9263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9264 done; \
22121df0 9265 echo "Doing install-pdf in flex"; \
a90ef4bf 9266 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9269 "RANLIB=$${RANLIB}" \
9270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9271 install-pdf) \
9272 || exit 1
9273
a90ef4bf 9274@endif flex
f9806fa5 9275
a90ef4bf
JM
9276.PHONY: maybe-install-html-flex install-html-flex
9277maybe-install-html-flex:
9278@if flex
9279maybe-install-html-flex: install-html-flex
f9806fa5 9280
a90ef4bf
JM
9281install-html-flex: \
9282 configure-flex \
9283 html-flex
f9806fa5 9284 @: $(MAKE); $(unstage)
a90ef4bf 9285 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9286 r=`${PWD_COMMAND}`; export r; \
9287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9288 $(HOST_EXPORTS) \
9289 for flag in $(EXTRA_HOST_FLAGS) ; do \
9290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9291 done; \
22121df0 9292 echo "Doing install-html in flex"; \
a90ef4bf 9293 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9296 "RANLIB=$${RANLIB}" \
9297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9298 install-html) \
9299 || exit 1
9300
a90ef4bf 9301@endif flex
f9806fa5 9302
a90ef4bf
JM
9303.PHONY: maybe-installcheck-flex installcheck-flex
9304maybe-installcheck-flex:
9305@if flex
9306maybe-installcheck-flex: installcheck-flex
f9806fa5 9307
a90ef4bf
JM
9308installcheck-flex: \
9309 configure-flex
f9806fa5 9310 @: $(MAKE); $(unstage)
a90ef4bf 9311 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9312 r=`${PWD_COMMAND}`; export r; \
9313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9314 $(HOST_EXPORTS) \
9315 for flag in $(EXTRA_HOST_FLAGS) ; do \
9316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9317 done; \
22121df0 9318 echo "Doing installcheck in flex"; \
a90ef4bf 9319 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9322 "RANLIB=$${RANLIB}" \
9323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9324 installcheck) \
9325 || exit 1
9326
a90ef4bf 9327@endif flex
f9806fa5 9328
a90ef4bf
JM
9329.PHONY: maybe-mostlyclean-flex mostlyclean-flex
9330maybe-mostlyclean-flex:
9331@if flex
9332maybe-mostlyclean-flex: mostlyclean-flex
f9806fa5 9333
a90ef4bf 9334mostlyclean-flex:
f9806fa5 9335 @: $(MAKE); $(unstage)
a90ef4bf 9336 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9337 r=`${PWD_COMMAND}`; export r; \
9338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9339 $(HOST_EXPORTS) \
9340 for flag in $(EXTRA_HOST_FLAGS) ; do \
9341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9342 done; \
22121df0 9343 echo "Doing mostlyclean in flex"; \
a90ef4bf 9344 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9347 "RANLIB=$${RANLIB}" \
9348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9349 mostlyclean) \
9350 || exit 1
9351
a90ef4bf 9352@endif flex
f9806fa5 9353
a90ef4bf
JM
9354.PHONY: maybe-clean-flex clean-flex
9355maybe-clean-flex:
9356@if flex
9357maybe-clean-flex: clean-flex
f9806fa5 9358
a90ef4bf 9359clean-flex:
f9806fa5 9360 @: $(MAKE); $(unstage)
a90ef4bf 9361 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9362 r=`${PWD_COMMAND}`; export r; \
9363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9364 $(HOST_EXPORTS) \
9365 for flag in $(EXTRA_HOST_FLAGS) ; do \
9366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9367 done; \
22121df0 9368 echo "Doing clean in flex"; \
a90ef4bf 9369 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9372 "RANLIB=$${RANLIB}" \
9373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9374 clean) \
9375 || exit 1
9376
a90ef4bf 9377@endif flex
f9806fa5 9378
a90ef4bf
JM
9379.PHONY: maybe-distclean-flex distclean-flex
9380maybe-distclean-flex:
9381@if flex
9382maybe-distclean-flex: distclean-flex
f9806fa5 9383
a90ef4bf 9384distclean-flex:
f9806fa5 9385 @: $(MAKE); $(unstage)
a90ef4bf 9386 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9387 r=`${PWD_COMMAND}`; export r; \
9388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9389 $(HOST_EXPORTS) \
9390 for flag in $(EXTRA_HOST_FLAGS) ; do \
9391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9392 done; \
22121df0 9393 echo "Doing distclean in flex"; \
a90ef4bf 9394 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9397 "RANLIB=$${RANLIB}" \
9398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9399 distclean) \
9400 || exit 1
9401
a90ef4bf 9402@endif flex
f9806fa5 9403
a90ef4bf
JM
9404.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
9405maybe-maintainer-clean-flex:
9406@if flex
9407maybe-maintainer-clean-flex: maintainer-clean-flex
f9806fa5 9408
a90ef4bf 9409maintainer-clean-flex:
f9806fa5 9410 @: $(MAKE); $(unstage)
a90ef4bf 9411 @[ -f ./flex/Makefile ] || exit 0; \
f9806fa5
DE
9412 r=`${PWD_COMMAND}`; export r; \
9413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9414 $(HOST_EXPORTS) \
9415 for flag in $(EXTRA_HOST_FLAGS) ; do \
9416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9417 done; \
22121df0 9418 echo "Doing maintainer-clean in flex"; \
a90ef4bf 9419 (cd $(HOST_SUBDIR)/flex && \
f9806fa5
DE
9420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9422 "RANLIB=$${RANLIB}" \
9423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
9424 maintainer-clean) \
9425 || exit 1
9426
a90ef4bf 9427@endif flex
f9806fa5
DE
9428
9429
9430
a90ef4bf
JM
9431.PHONY: configure-gas maybe-configure-gas
9432maybe-configure-gas:
4f0ef2d8 9433@if gcc-bootstrap
a90ef4bf 9434configure-gas: stage_current
4f0ef2d8 9435@endif gcc-bootstrap
a90ef4bf
JM
9436@if gas
9437maybe-configure-gas: configure-gas
9438configure-gas:
c52c6897 9439 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9441 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
22121df0 9442 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
1f53ca9a 9443 $(HOST_EXPORTS) \
a90ef4bf
JM
9444 echo Configuring in $(HOST_SUBDIR)/gas; \
9445 cd "$(HOST_SUBDIR)/gas" || exit 1; \
4fa63067 9446 case $(srcdir) in \
b00612cc 9447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 9448 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
b00612cc 9449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 9450 esac; \
1b6c0831
L
9451 module_srcdir=gas; \
9452 $(SHELL) \
9453 $$s/$$module_srcdir/configure \
9454 --srcdir=$${topdir}/$$module_srcdir \
4b900473 9455 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9456 --target=${target_alias} \
4fa63067 9457 || exit 1
a90ef4bf 9458@endif gas
a7254363 9459
d545f33b
PB
9460
9461
a90ef4bf
JM
9462.PHONY: configure-stage1-gas maybe-configure-stage1-gas
9463maybe-configure-stage1-gas:
9464@if gas-bootstrap
9465maybe-configure-stage1-gas: configure-stage1-gas
9466configure-stage1-gas:
9467 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9468 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9469 @r=`${PWD_COMMAND}`; export r; \
9470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9471 TFLAGS="$(STAGE1_TFLAGS)"; \
9472 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9473 $(HOST_EXPORTS) \
9474 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
9475 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
9476 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
9477 echo Configuring stage 1 in $(HOST_SUBDIR)/gas; \
9478 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9479 cd $(HOST_SUBDIR)/gas || exit 1; \
9480 case $(srcdir) in \
9481 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9482 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9483 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9484 esac; \
1b6c0831
L
9485 module_srcdir=gas; \
9486 $(SHELL) $$s/$$module_srcdir/configure \
9487 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9488 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
9489 --target=${target_alias} \
9490 \
a90ef4bf
JM
9491 $(STAGE1_CONFIGURE_FLAGS)
9492@endif gas-bootstrap
4fa63067 9493
a90ef4bf
JM
9494.PHONY: configure-stage2-gas maybe-configure-stage2-gas
9495maybe-configure-stage2-gas:
9496@if gas-bootstrap
9497maybe-configure-stage2-gas: configure-stage2-gas
9498configure-stage2-gas:
9499 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9500 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9501 @r=`${PWD_COMMAND}`; export r; \
9502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9503 TFLAGS="$(STAGE2_TFLAGS)"; \
9504 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9505 $(HOST_EXPORTS) \
a90ef4bf
JM
9506 $(POSTSTAGE1_HOST_EXPORTS) \
9507 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
9508 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
9509 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9510 echo Configuring stage 2 in $(HOST_SUBDIR)/gas; \
9511 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9512 cd $(HOST_SUBDIR)/gas || exit 1; \
9513 case $(srcdir) in \
9514 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9515 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9516 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9517 esac; \
1b6c0831
L
9518 module_srcdir=gas; \
9519 $(SHELL) $$s/$$module_srcdir/configure \
9520 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9521 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9522 --target=${target_alias} \
22121df0 9523 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9524 $(STAGE2_CONFIGURE_FLAGS)
9525@endif gas-bootstrap
4fa63067 9526
a90ef4bf
JM
9527.PHONY: configure-stage3-gas maybe-configure-stage3-gas
9528maybe-configure-stage3-gas:
9529@if gas-bootstrap
9530maybe-configure-stage3-gas: configure-stage3-gas
9531configure-stage3-gas:
9532 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9533 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
4fa63067
NN
9534 @r=`${PWD_COMMAND}`; export r; \
9535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9536 TFLAGS="$(STAGE3_TFLAGS)"; \
9537 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9538 $(HOST_EXPORTS) \
a90ef4bf
JM
9539 $(POSTSTAGE1_HOST_EXPORTS) \
9540 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
9541 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
9542 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9543 echo Configuring stage 3 in $(HOST_SUBDIR)/gas; \
9544 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9545 cd $(HOST_SUBDIR)/gas || exit 1; \
9546 case $(srcdir) in \
9547 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9548 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9549 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9550 esac; \
1b6c0831
L
9551 module_srcdir=gas; \
9552 $(SHELL) $$s/$$module_srcdir/configure \
9553 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9554 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9555 --target=${target_alias} \
22121df0 9556 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9557 $(STAGE3_CONFIGURE_FLAGS)
9558@endif gas-bootstrap
9b980aa1 9559
a90ef4bf
JM
9560.PHONY: configure-stage4-gas maybe-configure-stage4-gas
9561maybe-configure-stage4-gas:
9562@if gas-bootstrap
9563maybe-configure-stage4-gas: configure-stage4-gas
9564configure-stage4-gas:
9565 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9566 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9b980aa1
RW
9567 @r=`${PWD_COMMAND}`; export r; \
9568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9569 TFLAGS="$(STAGE4_TFLAGS)"; \
9570 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
9b980aa1 9571 $(HOST_EXPORTS) \
a90ef4bf
JM
9572 $(POSTSTAGE1_HOST_EXPORTS) \
9573 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
9574 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
9575 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9576 echo Configuring stage 4 in $(HOST_SUBDIR)/gas; \
9577 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9578 cd $(HOST_SUBDIR)/gas || exit 1; \
9579 case $(srcdir) in \
9580 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9581 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9582 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9583 esac; \
1b6c0831
L
9584 module_srcdir=gas; \
9585 $(SHELL) $$s/$$module_srcdir/configure \
9586 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9587 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9588 --target=${target_alias} \
22121df0 9589 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9590 $(STAGE4_CONFIGURE_FLAGS)
9591@endif gas-bootstrap
4fa63067 9592
a90ef4bf
JM
9593.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
9594maybe-configure-stageprofile-gas:
9595@if gas-bootstrap
9596maybe-configure-stageprofile-gas: configure-stageprofile-gas
9597configure-stageprofile-gas:
9598 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9599 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9600 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9602 TFLAGS="$(STAGEprofile_TFLAGS)"; \
9603 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9604 $(HOST_EXPORTS) \
a90ef4bf
JM
9605 $(POSTSTAGE1_HOST_EXPORTS) \
9606 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
9607 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
9608 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9609 echo Configuring stage profile in $(HOST_SUBDIR)/gas; \
9610 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9611 cd $(HOST_SUBDIR)/gas || exit 1; \
9612 case $(srcdir) in \
9613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9614 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9616 esac; \
1b6c0831
L
9617 module_srcdir=gas; \
9618 $(SHELL) $$s/$$module_srcdir/configure \
9619 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9620 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9621 --target=${target_alias} \
22121df0 9622 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9623 $(STAGEprofile_CONFIGURE_FLAGS)
9624@endif gas-bootstrap
2a4cbe27 9625
a90ef4bf
JM
9626.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
9627maybe-configure-stagefeedback-gas:
9628@if gas-bootstrap
9629maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
9630configure-stagefeedback-gas:
9631 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
9632 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
9633 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9635 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9636 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
378fce5b 9637 $(HOST_EXPORTS) \
a90ef4bf
JM
9638 $(POSTSTAGE1_HOST_EXPORTS) \
9639 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
9640 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
9641 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
9642 echo Configuring stage feedback in $(HOST_SUBDIR)/gas; \
9643 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas; \
a90ef4bf
JM
9644 cd $(HOST_SUBDIR)/gas || exit 1; \
9645 case $(srcdir) in \
9646 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9647 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
9648 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
9649 esac; \
1b6c0831
L
9650 module_srcdir=gas; \
9651 $(SHELL) $$s/$$module_srcdir/configure \
9652 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 9653 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 9654 --target=${target_alias} \
22121df0 9655 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
9656 $(STAGEfeedback_CONFIGURE_FLAGS)
9657@endif gas-bootstrap
2a4cbe27 9658
56a8fe78 9659
56a8fe78 9660
56a8fe78 9661
6d389afc 9662
a90ef4bf
JM
9663.PHONY: all-gas maybe-all-gas
9664maybe-all-gas:
9665@if gcc-bootstrap
9666all-gas: stage_current
9667@endif gcc-bootstrap
9668@if gas
9669TARGET-gas=all
9670maybe-all-gas: all-gas
9671all-gas: configure-gas
9672 @r=`${PWD_COMMAND}`; export r; \
6d389afc 9673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9674 $(HOST_EXPORTS) \
9675 (cd $(HOST_SUBDIR)/gas && \
b3676d82 9676 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
9677 $(TARGET-gas))
9678@endif gas
6d389afc 9679
6d389afc 9680
2a4cbe27 9681
a90ef4bf
JM
9682.PHONY: all-stage1-gas maybe-all-stage1-gas
9683.PHONY: clean-stage1-gas maybe-clean-stage1-gas
9684maybe-all-stage1-gas:
9685maybe-clean-stage1-gas:
9686@if gas-bootstrap
9687maybe-all-stage1-gas: all-stage1-gas
9688all-stage1: all-stage1-gas
9689TARGET-stage1-gas = $(TARGET-gas)
9690all-stage1-gas: configure-stage1-gas
9691 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9692 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9694 TFLAGS="$(STAGE1_TFLAGS)"; \
9695 $(HOST_EXPORTS) \
9696 cd $(HOST_SUBDIR)/gas && \
05a13254 9697 \
a90ef4bf
JM
9698 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9699 CFLAGS="$(STAGE1_CFLAGS)" \
9700 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
9701 LIBCFLAGS="$(LIBCFLAGS)" \
9702 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9703 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9704 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
9705 $(EXTRA_HOST_FLAGS) \
9706 $(STAGE1_FLAGS_TO_PASS) \
05a13254 9707 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 9708 $(TARGET-stage1-gas)
2a4cbe27 9709
a90ef4bf
JM
9710maybe-clean-stage1-gas: clean-stage1-gas
9711clean-stage1: clean-stage1-gas
9712clean-stage1-gas:
9713 @if [ $(current_stage) = stage1 ]; then \
9714 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9715 else \
9716 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
9717 $(MAKE) stage1-start; \
9718 fi; \
9719 cd $(HOST_SUBDIR)/gas && \
9720 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 9721 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9722@endif gas-bootstrap
2a4cbe27 9723
2a4cbe27 9724
a90ef4bf
JM
9725.PHONY: all-stage2-gas maybe-all-stage2-gas
9726.PHONY: clean-stage2-gas maybe-clean-stage2-gas
9727maybe-all-stage2-gas:
9728maybe-clean-stage2-gas:
9729@if gas-bootstrap
9730maybe-all-stage2-gas: all-stage2-gas
9731all-stage2: all-stage2-gas
9732TARGET-stage2-gas = $(TARGET-gas)
9733all-stage2-gas: configure-stage2-gas
9734 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
9735 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9737 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 9738 $(HOST_EXPORTS) \
a90ef4bf
JM
9739 $(POSTSTAGE1_HOST_EXPORTS) \
9740 cd $(HOST_SUBDIR)/gas && \
05a13254 9741 \
a90ef4bf
JM
9742 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9743 CFLAGS="$(STAGE2_CFLAGS)" \
9744 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
9745 LIBCFLAGS="$(STAGE2_CFLAGS)" \
9746 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9747 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9748 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9749 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9750 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 9751 $(TARGET-stage2-gas)
2a4cbe27 9752
a90ef4bf
JM
9753maybe-clean-stage2-gas: clean-stage2-gas
9754clean-stage2: clean-stage2-gas
9755clean-stage2-gas:
9756 @if [ $(current_stage) = stage2 ]; then \
9757 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9758 else \
9759 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
9760 $(MAKE) stage2-start; \
9761 fi; \
9762 cd $(HOST_SUBDIR)/gas && \
b3676d82 9763 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9764@endif gas-bootstrap
2a4cbe27 9765
2a4cbe27 9766
a90ef4bf
JM
9767.PHONY: all-stage3-gas maybe-all-stage3-gas
9768.PHONY: clean-stage3-gas maybe-clean-stage3-gas
9769maybe-all-stage3-gas:
9770maybe-clean-stage3-gas:
9771@if gas-bootstrap
9772maybe-all-stage3-gas: all-stage3-gas
9773all-stage3: all-stage3-gas
9774TARGET-stage3-gas = $(TARGET-gas)
9775all-stage3-gas: configure-stage3-gas
9776 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
9777 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9779 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 9780 $(HOST_EXPORTS) \
a90ef4bf
JM
9781 $(POSTSTAGE1_HOST_EXPORTS) \
9782 cd $(HOST_SUBDIR)/gas && \
05a13254 9783 \
a90ef4bf
JM
9784 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9785 CFLAGS="$(STAGE3_CFLAGS)" \
9786 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
9787 LIBCFLAGS="$(STAGE3_CFLAGS)" \
9788 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9789 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9790 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9791 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9792 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 9793 $(TARGET-stage3-gas)
2a4cbe27 9794
a90ef4bf
JM
9795maybe-clean-stage3-gas: clean-stage3-gas
9796clean-stage3: clean-stage3-gas
9797clean-stage3-gas:
9798 @if [ $(current_stage) = stage3 ]; then \
9799 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9800 else \
9801 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
9802 $(MAKE) stage3-start; \
9803 fi; \
9804 cd $(HOST_SUBDIR)/gas && \
b3676d82 9805 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9806@endif gas-bootstrap
2a4cbe27 9807
2a4cbe27 9808
a90ef4bf
JM
9809.PHONY: all-stage4-gas maybe-all-stage4-gas
9810.PHONY: clean-stage4-gas maybe-clean-stage4-gas
9811maybe-all-stage4-gas:
9812maybe-clean-stage4-gas:
9813@if gas-bootstrap
9814maybe-all-stage4-gas: all-stage4-gas
9815all-stage4: all-stage4-gas
9816TARGET-stage4-gas = $(TARGET-gas)
9817all-stage4-gas: configure-stage4-gas
9818 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
9819 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9821 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 9822 $(HOST_EXPORTS) \
a90ef4bf
JM
9823 $(POSTSTAGE1_HOST_EXPORTS) \
9824 cd $(HOST_SUBDIR)/gas && \
05a13254 9825 \
a90ef4bf
JM
9826 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9827 CFLAGS="$(STAGE4_CFLAGS)" \
9828 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
9829 LIBCFLAGS="$(STAGE4_CFLAGS)" \
9830 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9831 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9832 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9833 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9834 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 9835 $(TARGET-stage4-gas)
2a4cbe27 9836
a90ef4bf
JM
9837maybe-clean-stage4-gas: clean-stage4-gas
9838clean-stage4: clean-stage4-gas
9839clean-stage4-gas:
9840 @if [ $(current_stage) = stage4 ]; then \
9841 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9842 else \
9843 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
9844 $(MAKE) stage4-start; \
9845 fi; \
9846 cd $(HOST_SUBDIR)/gas && \
b3676d82 9847 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9848@endif gas-bootstrap
2a4cbe27 9849
2a4cbe27 9850
a90ef4bf
JM
9851.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
9852.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
9853maybe-all-stageprofile-gas:
9854maybe-clean-stageprofile-gas:
9855@if gas-bootstrap
9856maybe-all-stageprofile-gas: all-stageprofile-gas
9857all-stageprofile: all-stageprofile-gas
9858TARGET-stageprofile-gas = $(TARGET-gas)
9859all-stageprofile-gas: configure-stageprofile-gas
9860 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
9861 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 9863 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 9864 $(HOST_EXPORTS) \
a90ef4bf
JM
9865 $(POSTSTAGE1_HOST_EXPORTS) \
9866 cd $(HOST_SUBDIR)/gas && \
05a13254 9867 \
a90ef4bf
JM
9868 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9869 CFLAGS="$(STAGEprofile_CFLAGS)" \
9870 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
9871 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
9872 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9873 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9874 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9875 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9876 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 9877 $(TARGET-stageprofile-gas)
4fa63067 9878
a90ef4bf
JM
9879maybe-clean-stageprofile-gas: clean-stageprofile-gas
9880clean-stageprofile: clean-stageprofile-gas
9881clean-stageprofile-gas:
9882 @if [ $(current_stage) = stageprofile ]; then \
9883 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9884 else \
9885 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
9886 $(MAKE) stageprofile-start; \
9887 fi; \
9888 cd $(HOST_SUBDIR)/gas && \
b3676d82 9889 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9890@endif gas-bootstrap
4fa63067 9891
a7254363 9892
a90ef4bf
JM
9893.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
9894.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
9895maybe-all-stagefeedback-gas:
9896maybe-clean-stagefeedback-gas:
9897@if gas-bootstrap
9898maybe-all-stagefeedback-gas: all-stagefeedback-gas
9899all-stagefeedback: all-stagefeedback-gas
9900TARGET-stagefeedback-gas = $(TARGET-gas)
9901all-stagefeedback-gas: configure-stagefeedback-gas
9902 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 9903 @r=`${PWD_COMMAND}`; export r; \
4fa63067 9904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
9905 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
9906 $(HOST_EXPORTS) \
9907 $(POSTSTAGE1_HOST_EXPORTS) \
9908 cd $(HOST_SUBDIR)/gas && \
05a13254 9909 \
a90ef4bf
JM
9910 $(MAKE) $(BASE_FLAGS_TO_PASS) \
9911 CFLAGS="$(STAGEfeedback_CFLAGS)" \
9912 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
9913 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
9914 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
9915 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
9916 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
9917 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 9918 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 9919 $(TARGET-stagefeedback-gas)
d545f33b 9920
a90ef4bf
JM
9921maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
9922clean-stagefeedback: clean-stagefeedback-gas
9923clean-stagefeedback-gas:
9924 @if [ $(current_stage) = stagefeedback ]; then \
9925 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
9926 else \
9927 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
9928 $(MAKE) stagefeedback-start; \
9929 fi; \
9930 cd $(HOST_SUBDIR)/gas && \
b3676d82 9931 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 9932@endif gas-bootstrap
d545f33b 9933
2a4cbe27 9934
a7254363 9935
d545f33b
PB
9936
9937
a90ef4bf
JM
9938.PHONY: check-gas maybe-check-gas
9939maybe-check-gas:
9940@if gas
9941maybe-check-gas: check-gas
2a4cbe27 9942
a90ef4bf 9943check-gas:
0aed8855 9944 @: $(MAKE); $(unstage)
4fa63067 9945 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 9947 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 9948 (cd $(HOST_SUBDIR)/gas && \
f91ca6bc 9949 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 9950
a90ef4bf 9951@endif gas
2a4cbe27 9952
a90ef4bf
JM
9953.PHONY: install-gas maybe-install-gas
9954maybe-install-gas:
9955@if gas
9956maybe-install-gas: install-gas
2a4cbe27 9957
a90ef4bf 9958install-gas: installdirs
0aed8855 9959 @: $(MAKE); $(unstage)
4fa63067 9960 @r=`${PWD_COMMAND}`; export r; \
b40e3958 9961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9962 $(HOST_EXPORTS) \
a90ef4bf 9963 (cd $(HOST_SUBDIR)/gas && \
2da12f12 9964 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 9965
a90ef4bf 9966@endif gas
2a4cbe27 9967
a90ef4bf
JM
9968.PHONY: install-strip-gas maybe-install-strip-gas
9969maybe-install-strip-gas:
9970@if gas
9971maybe-install-strip-gas: install-strip-gas
9b980aa1 9972
a90ef4bf 9973install-strip-gas: installdirs
9b980aa1
RW
9974 @: $(MAKE); $(unstage)
9975 @r=`${PWD_COMMAND}`; export r; \
9976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9977 $(HOST_EXPORTS) \
a90ef4bf 9978 (cd $(HOST_SUBDIR)/gas && \
9b980aa1
RW
9979 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9980
a90ef4bf 9981@endif gas
9b980aa1 9982
56a8fe78 9983# Other targets (info, dvi, pdf, etc.)
2a4cbe27 9984
a90ef4bf
JM
9985.PHONY: maybe-info-gas info-gas
9986maybe-info-gas:
9987@if gas
9988maybe-info-gas: info-gas
2a4cbe27 9989
a90ef4bf
JM
9990info-gas: \
9991 configure-gas
9992 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
9993 r=`${PWD_COMMAND}`; export r; \
9994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 9995 $(HOST_EXPORTS) \
b813574b 9996 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
9997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9998 done; \
22121df0 9999 echo "Doing info in gas"; \
a90ef4bf 10000 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10003 "RANLIB=$${RANLIB}" \
0c24b341 10004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10005 info) \
2a4cbe27
NN
10006 || exit 1
10007
a90ef4bf 10008@endif gas
2a4cbe27 10009
a90ef4bf
JM
10010.PHONY: maybe-dvi-gas dvi-gas
10011maybe-dvi-gas:
10012@if gas
10013maybe-dvi-gas: dvi-gas
2a4cbe27 10014
a90ef4bf
JM
10015dvi-gas: \
10016 configure-gas
10017 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10018 r=`${PWD_COMMAND}`; export r; \
10019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10020 $(HOST_EXPORTS) \
b813574b 10021 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10023 done; \
22121df0 10024 echo "Doing dvi in gas"; \
a90ef4bf 10025 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10028 "RANLIB=$${RANLIB}" \
0c24b341 10029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10030 dvi) \
2a4cbe27
NN
10031 || exit 1
10032
a90ef4bf 10033@endif gas
2a4cbe27 10034
a90ef4bf
JM
10035.PHONY: maybe-pdf-gas pdf-gas
10036maybe-pdf-gas:
10037@if gas
10038maybe-pdf-gas: pdf-gas
56a8fe78 10039
a90ef4bf
JM
10040pdf-gas: \
10041 configure-gas
10042 @[ -f ./gas/Makefile ] || exit 0; \
56a8fe78
DD
10043 r=`${PWD_COMMAND}`; export r; \
10044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10045 $(HOST_EXPORTS) \
10046 for flag in $(EXTRA_HOST_FLAGS) ; do \
10047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10048 done; \
22121df0 10049 echo "Doing pdf in gas"; \
a90ef4bf 10050 (cd $(HOST_SUBDIR)/gas && \
56a8fe78
DD
10051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10053 "RANLIB=$${RANLIB}" \
0c24b341 10054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10055 pdf) \
10056 || exit 1
10057
a90ef4bf 10058@endif gas
56a8fe78 10059
a90ef4bf
JM
10060.PHONY: maybe-html-gas html-gas
10061maybe-html-gas:
10062@if gas
10063maybe-html-gas: html-gas
6d389afc 10064
a90ef4bf
JM
10065html-gas: \
10066 configure-gas
10067 @[ -f ./gas/Makefile ] || exit 0; \
6d389afc
MS
10068 r=`${PWD_COMMAND}`; export r; \
10069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
10070 $(HOST_EXPORTS) \
10071 for flag in $(EXTRA_HOST_FLAGS) ; do \
10072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10073 done; \
22121df0 10074 echo "Doing html in gas"; \
a90ef4bf 10075 (cd $(HOST_SUBDIR)/gas && \
6d389afc
MS
10076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10078 "RANLIB=$${RANLIB}" \
0c24b341 10079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10080 html) \
10081 || exit 1
10082
a90ef4bf 10083@endif gas
6d389afc 10084
a90ef4bf
JM
10085.PHONY: maybe-TAGS-gas TAGS-gas
10086maybe-TAGS-gas:
10087@if gas
10088maybe-TAGS-gas: TAGS-gas
2a4cbe27 10089
a90ef4bf
JM
10090TAGS-gas: \
10091 configure-gas
10092 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10093 r=`${PWD_COMMAND}`; export r; \
10094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10095 $(HOST_EXPORTS) \
b813574b 10096 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10098 done; \
22121df0 10099 echo "Doing TAGS in gas"; \
a90ef4bf 10100 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10103 "RANLIB=$${RANLIB}" \
0c24b341 10104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10105 TAGS) \
2a4cbe27
NN
10106 || exit 1
10107
a90ef4bf 10108@endif gas
2a4cbe27 10109
a90ef4bf
JM
10110.PHONY: maybe-install-info-gas install-info-gas
10111maybe-install-info-gas:
10112@if gas
10113maybe-install-info-gas: install-info-gas
2a4cbe27 10114
a90ef4bf
JM
10115install-info-gas: \
10116 configure-gas \
10117 info-gas
10118 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10119 r=`${PWD_COMMAND}`; export r; \
10120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10121 $(HOST_EXPORTS) \
b813574b 10122 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10124 done; \
22121df0 10125 echo "Doing install-info in gas"; \
a90ef4bf 10126 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10129 "RANLIB=$${RANLIB}" \
0c24b341 10130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10131 install-info) \
2a4cbe27
NN
10132 || exit 1
10133
a90ef4bf 10134@endif gas
2a4cbe27 10135
a90ef4bf
JM
10136.PHONY: maybe-install-pdf-gas install-pdf-gas
10137maybe-install-pdf-gas:
10138@if gas
10139maybe-install-pdf-gas: install-pdf-gas
a3ca38d2 10140
a90ef4bf
JM
10141install-pdf-gas: \
10142 configure-gas \
10143 pdf-gas
10144 @[ -f ./gas/Makefile ] || exit 0; \
a3ca38d2
DD
10145 r=`${PWD_COMMAND}`; export r; \
10146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10147 $(HOST_EXPORTS) \
10148 for flag in $(EXTRA_HOST_FLAGS) ; do \
10149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10150 done; \
22121df0 10151 echo "Doing install-pdf in gas"; \
a90ef4bf 10152 (cd $(HOST_SUBDIR)/gas && \
a3ca38d2
DD
10153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10155 "RANLIB=$${RANLIB}" \
0c24b341 10156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
10157 install-pdf) \
10158 || exit 1
10159
a90ef4bf 10160@endif gas
a3ca38d2 10161
a90ef4bf
JM
10162.PHONY: maybe-install-html-gas install-html-gas
10163maybe-install-html-gas:
10164@if gas
10165maybe-install-html-gas: install-html-gas
108a6f8e 10166
a90ef4bf
JM
10167install-html-gas: \
10168 configure-gas \
10169 html-gas
10170 @[ -f ./gas/Makefile ] || exit 0; \
108a6f8e
CD
10171 r=`${PWD_COMMAND}`; export r; \
10172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10173 $(HOST_EXPORTS) \
10174 for flag in $(EXTRA_HOST_FLAGS) ; do \
10175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10176 done; \
22121df0 10177 echo "Doing install-html in gas"; \
a90ef4bf 10178 (cd $(HOST_SUBDIR)/gas && \
108a6f8e
CD
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}" \
108a6f8e
CD
10183 install-html) \
10184 || exit 1
10185
a90ef4bf 10186@endif gas
108a6f8e 10187
a90ef4bf
JM
10188.PHONY: maybe-installcheck-gas installcheck-gas
10189maybe-installcheck-gas:
10190@if gas
10191maybe-installcheck-gas: installcheck-gas
2a4cbe27 10192
a90ef4bf
JM
10193installcheck-gas: \
10194 configure-gas
10195 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10196 r=`${PWD_COMMAND}`; export r; \
10197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10198 $(HOST_EXPORTS) \
b813574b 10199 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10201 done; \
22121df0 10202 echo "Doing installcheck in gas"; \
a90ef4bf 10203 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10206 "RANLIB=$${RANLIB}" \
0c24b341 10207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10208 installcheck) \
2a4cbe27
NN
10209 || exit 1
10210
a90ef4bf 10211@endif gas
2a4cbe27 10212
a90ef4bf
JM
10213.PHONY: maybe-mostlyclean-gas mostlyclean-gas
10214maybe-mostlyclean-gas:
10215@if gas
10216maybe-mostlyclean-gas: mostlyclean-gas
2a4cbe27 10217
a90ef4bf
JM
10218mostlyclean-gas:
10219 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10220 r=`${PWD_COMMAND}`; export r; \
10221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10222 $(HOST_EXPORTS) \
b813574b 10223 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10225 done; \
22121df0 10226 echo "Doing mostlyclean in gas"; \
a90ef4bf 10227 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10230 "RANLIB=$${RANLIB}" \
0c24b341 10231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10232 mostlyclean) \
2a4cbe27
NN
10233 || exit 1
10234
a90ef4bf 10235@endif gas
2a4cbe27 10236
a90ef4bf
JM
10237.PHONY: maybe-clean-gas clean-gas
10238maybe-clean-gas:
10239@if gas
10240maybe-clean-gas: clean-gas
2a4cbe27 10241
a90ef4bf
JM
10242clean-gas:
10243 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10244 r=`${PWD_COMMAND}`; export r; \
10245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10246 $(HOST_EXPORTS) \
b813574b 10247 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10249 done; \
22121df0 10250 echo "Doing clean in gas"; \
a90ef4bf 10251 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10254 "RANLIB=$${RANLIB}" \
0c24b341 10255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10256 clean) \
2a4cbe27
NN
10257 || exit 1
10258
a90ef4bf 10259@endif gas
2a4cbe27 10260
a90ef4bf
JM
10261.PHONY: maybe-distclean-gas distclean-gas
10262maybe-distclean-gas:
10263@if gas
10264maybe-distclean-gas: distclean-gas
2a4cbe27 10265
a90ef4bf
JM
10266distclean-gas:
10267 @[ -f ./gas/Makefile ] || exit 0; \
b40e3958
L
10268 r=`${PWD_COMMAND}`; export r; \
10269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10270 $(HOST_EXPORTS) \
b813574b 10271 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10273 done; \
22121df0 10274 echo "Doing distclean in gas"; \
a90ef4bf 10275 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10278 "RANLIB=$${RANLIB}" \
0c24b341 10279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10280 distclean) \
2a4cbe27
NN
10281 || exit 1
10282
a90ef4bf 10283@endif gas
2a4cbe27 10284
a90ef4bf
JM
10285.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
10286maybe-maintainer-clean-gas:
10287@if gas
10288maybe-maintainer-clean-gas: maintainer-clean-gas
2a4cbe27 10289
a90ef4bf
JM
10290maintainer-clean-gas:
10291 @[ -f ./gas/Makefile ] || exit 0; \
10292 r=`${PWD_COMMAND}`; export r; \
b40e3958 10293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10294 $(HOST_EXPORTS) \
b813574b 10295 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
10296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10297 done; \
22121df0 10298 echo "Doing maintainer-clean in gas"; \
a90ef4bf 10299 (cd $(HOST_SUBDIR)/gas && \
2a4cbe27
NN
10300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10302 "RANLIB=$${RANLIB}" \
0c24b341 10303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10304 maintainer-clean) \
2a4cbe27
NN
10305 || exit 1
10306
a90ef4bf 10307@endif gas
2a4cbe27 10308
2a4cbe27 10309
a7254363 10310
a90ef4bf
JM
10311.PHONY: configure-gcc maybe-configure-gcc
10312maybe-configure-gcc:
4f0ef2d8 10313@if gcc-bootstrap
a90ef4bf 10314configure-gcc: stage_current
4f0ef2d8 10315@endif gcc-bootstrap
a90ef4bf
JM
10316@if gcc
10317maybe-configure-gcc: configure-gcc
10318configure-gcc:
c52c6897 10319 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10321 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
22121df0 10322 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
1f53ca9a 10323 $(HOST_EXPORTS) \
a90ef4bf
JM
10324 echo Configuring in $(HOST_SUBDIR)/gcc; \
10325 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
4fa63067 10326 case $(srcdir) in \
b00612cc 10327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 10328 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
b00612cc 10329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 10330 esac; \
1b6c0831
L
10331 module_srcdir=gcc; \
10332 $(SHELL) \
10333 $$s/$$module_srcdir/configure \
10334 --srcdir=$${topdir}/$$module_srcdir \
4b900473 10335 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10336 --target=${target_alias} \
4fa63067 10337 || exit 1
a90ef4bf 10338@endif gcc
a7254363 10339
d545f33b
PB
10340
10341
a90ef4bf
JM
10342.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
10343maybe-configure-stage1-gcc:
4f0ef2d8 10344@if gcc-bootstrap
a90ef4bf
JM
10345maybe-configure-stage1-gcc: configure-stage1-gcc
10346configure-stage1-gcc:
10347 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10348 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067
NN
10349 @r=`${PWD_COMMAND}`; export r; \
10350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10351 TFLAGS="$(STAGE1_TFLAGS)"; \
10352 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
10353 $(HOST_EXPORTS) \
10354 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
10355 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
10356 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
10357 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc; \
10358 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10359 cd $(HOST_SUBDIR)/gcc || exit 1; \
10360 case $(srcdir) in \
10361 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10362 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10363 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10364 esac; \
1b6c0831
L
10365 module_srcdir=gcc; \
10366 $(SHELL) $$s/$$module_srcdir/configure \
10367 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10368 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
10369 --target=${target_alias} \
10370 \
a90ef4bf
JM
10371 $(STAGE1_CONFIGURE_FLAGS)
10372@endif gcc-bootstrap
4fa63067 10373
a90ef4bf
JM
10374.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
10375maybe-configure-stage2-gcc:
10376@if gcc-bootstrap
10377maybe-configure-stage2-gcc: configure-stage2-gcc
10378configure-stage2-gcc:
10379 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10380 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
4fa63067 10381 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10383 TFLAGS="$(STAGE2_TFLAGS)"; \
10384 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10385 $(HOST_EXPORTS) \
a90ef4bf
JM
10386 $(POSTSTAGE1_HOST_EXPORTS) \
10387 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
10388 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
10389 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10390 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc; \
10391 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10392 cd $(HOST_SUBDIR)/gcc || exit 1; \
10393 case $(srcdir) in \
10394 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10395 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10396 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10397 esac; \
1b6c0831
L
10398 module_srcdir=gcc; \
10399 $(SHELL) $$s/$$module_srcdir/configure \
10400 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10401 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10402 --target=${target_alias} \
22121df0 10403 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10404 $(STAGE2_CONFIGURE_FLAGS)
10405@endif gcc-bootstrap
9b980aa1 10406
a90ef4bf
JM
10407.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
10408maybe-configure-stage3-gcc:
10409@if gcc-bootstrap
10410maybe-configure-stage3-gcc: configure-stage3-gcc
10411configure-stage3-gcc:
10412 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10413 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
9b980aa1
RW
10414 @r=`${PWD_COMMAND}`; export r; \
10415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10416 TFLAGS="$(STAGE3_TFLAGS)"; \
10417 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
9b980aa1 10418 $(HOST_EXPORTS) \
a90ef4bf
JM
10419 $(POSTSTAGE1_HOST_EXPORTS) \
10420 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
10421 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
10422 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10423 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc; \
10424 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10425 cd $(HOST_SUBDIR)/gcc || exit 1; \
10426 case $(srcdir) in \
10427 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10428 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10429 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10430 esac; \
1b6c0831
L
10431 module_srcdir=gcc; \
10432 $(SHELL) $$s/$$module_srcdir/configure \
10433 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10434 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10435 --target=${target_alias} \
22121df0 10436 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10437 $(STAGE3_CONFIGURE_FLAGS)
10438@endif gcc-bootstrap
4fa63067 10439
a90ef4bf
JM
10440.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
10441maybe-configure-stage4-gcc:
10442@if gcc-bootstrap
10443maybe-configure-stage4-gcc: configure-stage4-gcc
10444configure-stage4-gcc:
10445 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10446 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10447 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10449 TFLAGS="$(STAGE4_TFLAGS)"; \
10450 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10451 $(HOST_EXPORTS) \
a90ef4bf
JM
10452 $(POSTSTAGE1_HOST_EXPORTS) \
10453 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
10454 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
10455 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10456 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc; \
10457 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10458 cd $(HOST_SUBDIR)/gcc || exit 1; \
10459 case $(srcdir) in \
10460 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10461 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10462 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10463 esac; \
1b6c0831
L
10464 module_srcdir=gcc; \
10465 $(SHELL) $$s/$$module_srcdir/configure \
10466 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10467 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10468 --target=${target_alias} \
22121df0 10469 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10470 $(STAGE4_CONFIGURE_FLAGS)
10471@endif gcc-bootstrap
2a4cbe27 10472
a90ef4bf
JM
10473.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
10474maybe-configure-stageprofile-gcc:
10475@if gcc-bootstrap
10476maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
10477configure-stageprofile-gcc:
10478 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10479 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10480 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10482 TFLAGS="$(STAGEprofile_TFLAGS)"; \
10483 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
378fce5b 10484 $(HOST_EXPORTS) \
a90ef4bf
JM
10485 $(POSTSTAGE1_HOST_EXPORTS) \
10486 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
10487 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
10488 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10489 echo Configuring stage profile in $(HOST_SUBDIR)/gcc; \
10490 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10491 cd $(HOST_SUBDIR)/gcc || exit 1; \
10492 case $(srcdir) in \
10493 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10494 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10495 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10496 esac; \
1b6c0831
L
10497 module_srcdir=gcc; \
10498 $(SHELL) $$s/$$module_srcdir/configure \
10499 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10500 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10501 --target=${target_alias} \
22121df0 10502 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10503 $(STAGEprofile_CONFIGURE_FLAGS)
10504@endif gcc-bootstrap
56a8fe78 10505
a90ef4bf
JM
10506.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
10507maybe-configure-stagefeedback-gcc:
10508@if gcc-bootstrap
10509maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
10510configure-stagefeedback-gcc:
10511 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
10512 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
10513 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 10514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10515 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10516 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
56a8fe78 10517 $(HOST_EXPORTS) \
a90ef4bf
JM
10518 $(POSTSTAGE1_HOST_EXPORTS) \
10519 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
10520 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
10521 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
10522 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc; \
10523 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc; \
a90ef4bf
JM
10524 cd $(HOST_SUBDIR)/gcc || exit 1; \
10525 case $(srcdir) in \
10526 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10527 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
10528 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
10529 esac; \
1b6c0831
L
10530 module_srcdir=gcc; \
10531 $(SHELL) $$s/$$module_srcdir/configure \
10532 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 10533 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 10534 --target=${target_alias} \
22121df0 10535 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
10536 $(STAGEfeedback_CONFIGURE_FLAGS)
10537@endif gcc-bootstrap
56a8fe78 10538
2a4cbe27 10539
2a4cbe27
NN
10540
10541
2a4cbe27 10542
a90ef4bf
JM
10543.PHONY: all-gcc maybe-all-gcc
10544maybe-all-gcc:
10545@if gcc-bootstrap
10546all-gcc: stage_current
10547@endif gcc-bootstrap
10548@if gcc
10549TARGET-gcc=all
10550maybe-all-gcc: all-gcc
10551all-gcc: configure-gcc
10552 @r=`${PWD_COMMAND}`; export r; \
6d389afc 10553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10554 $(HOST_EXPORTS) \
10555 (cd $(HOST_SUBDIR)/gcc && \
b3676d82 10556 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
a90ef4bf
JM
10557 $(TARGET-gcc))
10558@endif gcc
6d389afc 10559
6d389afc 10560
6d389afc 10561
a90ef4bf
JM
10562.PHONY: all-stage1-gcc maybe-all-stage1-gcc
10563.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
10564maybe-all-stage1-gcc:
10565maybe-clean-stage1-gcc:
10566@if gcc-bootstrap
10567maybe-all-stage1-gcc: all-stage1-gcc
10568all-stage1: all-stage1-gcc
10569TARGET-stage1-gcc = $(TARGET-gcc)
10570all-stage1-gcc: configure-stage1-gcc
10571 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
10572 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10574 TFLAGS="$(STAGE1_TFLAGS)"; \
10575 $(HOST_EXPORTS) \
10576 cd $(HOST_SUBDIR)/gcc && \
05a13254 10577 \
a90ef4bf
JM
10578 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10579 CFLAGS="$(STAGE1_CFLAGS)" \
10580 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
10581 LIBCFLAGS="$(LIBCFLAGS)" \
10582 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10583 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10584 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
10585 $(EXTRA_HOST_FLAGS) \
10586 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10587 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 10588 $(TARGET-stage1-gcc)
2a4cbe27 10589
a90ef4bf
JM
10590maybe-clean-stage1-gcc: clean-stage1-gcc
10591clean-stage1: clean-stage1-gcc
10592clean-stage1-gcc:
10593 @if [ $(current_stage) = stage1 ]; then \
10594 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10595 else \
10596 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
10597 $(MAKE) stage1-start; \
10598 fi; \
10599 cd $(HOST_SUBDIR)/gcc && \
10600 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 10601 $(STAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10602@endif gcc-bootstrap
2a4cbe27 10603
a3ca38d2 10604
a90ef4bf
JM
10605.PHONY: all-stage2-gcc maybe-all-stage2-gcc
10606.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
10607maybe-all-stage2-gcc:
10608maybe-clean-stage2-gcc:
10609@if gcc-bootstrap
10610maybe-all-stage2-gcc: all-stage2-gcc
10611all-stage2: all-stage2-gcc
10612TARGET-stage2-gcc = $(TARGET-gcc)
10613all-stage2-gcc: configure-stage2-gcc
10614 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
10615 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 10616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10617 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 10618 $(HOST_EXPORTS) \
a90ef4bf
JM
10619 $(POSTSTAGE1_HOST_EXPORTS) \
10620 cd $(HOST_SUBDIR)/gcc && \
05a13254 10621 \
a90ef4bf
JM
10622 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10623 CFLAGS="$(STAGE2_CFLAGS)" \
10624 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
10625 LIBCFLAGS="$(STAGE2_CFLAGS)" \
10626 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10627 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10628 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10629 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10630 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 10631 $(TARGET-stage2-gcc)
a3ca38d2 10632
a90ef4bf
JM
10633maybe-clean-stage2-gcc: clean-stage2-gcc
10634clean-stage2: clean-stage2-gcc
10635clean-stage2-gcc:
10636 @if [ $(current_stage) = stage2 ]; then \
10637 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10638 else \
10639 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
10640 $(MAKE) stage2-start; \
10641 fi; \
10642 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10643 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10644@endif gcc-bootstrap
a3ca38d2 10645
108a6f8e 10646
a90ef4bf
JM
10647.PHONY: all-stage3-gcc maybe-all-stage3-gcc
10648.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
10649maybe-all-stage3-gcc:
10650maybe-clean-stage3-gcc:
10651@if gcc-bootstrap
10652maybe-all-stage3-gcc: all-stage3-gcc
10653all-stage3: all-stage3-gcc
10654TARGET-stage3-gcc = $(TARGET-gcc)
10655all-stage3-gcc: configure-stage3-gcc
10656 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
10657 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 10658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10659 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 10660 $(HOST_EXPORTS) \
a90ef4bf
JM
10661 $(POSTSTAGE1_HOST_EXPORTS) \
10662 cd $(HOST_SUBDIR)/gcc && \
05a13254 10663 \
a90ef4bf
JM
10664 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10665 CFLAGS="$(STAGE3_CFLAGS)" \
10666 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
10667 LIBCFLAGS="$(STAGE3_CFLAGS)" \
10668 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10669 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10670 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10671 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10672 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 10673 $(TARGET-stage3-gcc)
108a6f8e 10674
a90ef4bf
JM
10675maybe-clean-stage3-gcc: clean-stage3-gcc
10676clean-stage3: clean-stage3-gcc
10677clean-stage3-gcc:
10678 @if [ $(current_stage) = stage3 ]; then \
10679 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10680 else \
10681 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
10682 $(MAKE) stage3-start; \
10683 fi; \
10684 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10685 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10686@endif gcc-bootstrap
108a6f8e 10687
2a4cbe27 10688
a90ef4bf
JM
10689.PHONY: all-stage4-gcc maybe-all-stage4-gcc
10690.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
10691maybe-all-stage4-gcc:
10692maybe-clean-stage4-gcc:
10693@if gcc-bootstrap
10694maybe-all-stage4-gcc: all-stage4-gcc
10695all-stage4: all-stage4-gcc
10696TARGET-stage4-gcc = $(TARGET-gcc)
10697all-stage4-gcc: configure-stage4-gcc
10698 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
10699 @r=`${PWD_COMMAND}`; export r; \
b40e3958 10700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10701 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 10702 $(HOST_EXPORTS) \
a90ef4bf
JM
10703 $(POSTSTAGE1_HOST_EXPORTS) \
10704 cd $(HOST_SUBDIR)/gcc && \
05a13254 10705 \
a90ef4bf
JM
10706 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10707 CFLAGS="$(STAGE4_CFLAGS)" \
10708 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
10709 LIBCFLAGS="$(STAGE4_CFLAGS)" \
10710 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10711 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10712 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10713 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10714 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 10715 $(TARGET-stage4-gcc)
2a4cbe27 10716
a90ef4bf
JM
10717maybe-clean-stage4-gcc: clean-stage4-gcc
10718clean-stage4: clean-stage4-gcc
10719clean-stage4-gcc:
10720 @if [ $(current_stage) = stage4 ]; then \
10721 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10722 else \
10723 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
10724 $(MAKE) stage4-start; \
10725 fi; \
10726 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10727 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10728@endif gcc-bootstrap
2a4cbe27 10729
a2592b1b 10730
a90ef4bf
JM
10731.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
10732.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
10733maybe-all-stageprofile-gcc:
10734maybe-clean-stageprofile-gcc:
10735@if gcc-bootstrap
10736maybe-all-stageprofile-gcc: all-stageprofile-gcc
10737all-stageprofile: all-stageprofile-gcc
10738TARGET-stageprofile-gcc = $(TARGET-gcc)
10739all-stageprofile-gcc: configure-stageprofile-gcc
10740 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
10741 @r=`${PWD_COMMAND}`; export r; \
a2592b1b 10742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 10743 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 10744 $(HOST_EXPORTS) \
a90ef4bf
JM
10745 $(POSTSTAGE1_HOST_EXPORTS) \
10746 cd $(HOST_SUBDIR)/gcc && \
05a13254 10747 \
a90ef4bf
JM
10748 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10749 CFLAGS="$(STAGEprofile_CFLAGS)" \
10750 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
10751 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
10752 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10753 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10754 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10755 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10756 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 10757 $(TARGET-stageprofile-gcc)
2a4cbe27 10758
a90ef4bf
JM
10759maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
10760clean-stageprofile: clean-stageprofile-gcc
10761clean-stageprofile-gcc:
10762 @if [ $(current_stage) = stageprofile ]; then \
10763 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10764 else \
10765 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
10766 $(MAKE) stageprofile-start; \
10767 fi; \
10768 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10769 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
a90ef4bf 10770@endif gcc-bootstrap
2a4cbe27 10771
a7254363 10772
a90ef4bf
JM
10773.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
10774.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
10775maybe-all-stagefeedback-gcc:
10776maybe-clean-stagefeedback-gcc:
4f0ef2d8 10777@if gcc-bootstrap
a90ef4bf
JM
10778maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
10779all-stagefeedback: all-stagefeedback-gcc
10780TARGET-stagefeedback-gcc = $(TARGET-gcc)
10781all-stagefeedback-gcc: configure-stagefeedback-gcc
10782 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 10783 @r=`${PWD_COMMAND}`; export r; \
4fa63067 10784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
10785 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
10786 $(HOST_EXPORTS) \
10787 $(POSTSTAGE1_HOST_EXPORTS) \
10788 cd $(HOST_SUBDIR)/gcc && \
05a13254 10789 \
a90ef4bf
JM
10790 $(MAKE) $(BASE_FLAGS_TO_PASS) \
10791 CFLAGS="$(STAGEfeedback_CFLAGS)" \
10792 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
10793 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
10794 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
10795 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
10796 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
10797 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
05a13254 10798 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 10799 $(TARGET-stagefeedback-gcc)
d545f33b 10800
a90ef4bf
JM
10801maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
10802clean-stagefeedback: clean-stagefeedback-gcc
10803clean-stagefeedback-gcc:
10804 @if [ $(current_stage) = stagefeedback ]; then \
10805 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
10806 else \
10807 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
10808 $(MAKE) stagefeedback-start; \
10809 fi; \
10810 cd $(HOST_SUBDIR)/gcc && \
b3676d82 10811 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) clean
4f0ef2d8 10812@endif gcc-bootstrap
4fa63067 10813
a7254363 10814
d545f33b
PB
10815
10816
4fa63067 10817
a90ef4bf
JM
10818.PHONY: check-gcc maybe-check-gcc
10819maybe-check-gcc:
10820@if gcc
10821maybe-check-gcc: check-gcc
10822
10823check-gcc:
0aed8855 10824 @: $(MAKE); $(unstage)
4fa63067
NN
10825 @r=`${PWD_COMMAND}`; export r; \
10826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 10827 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 10828 (cd $(HOST_SUBDIR)/gcc && \
f91ca6bc 10829 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 10830
a90ef4bf 10831@endif gcc
4fa63067 10832
a90ef4bf
JM
10833.PHONY: install-gcc maybe-install-gcc
10834maybe-install-gcc:
10835@if gcc
10836maybe-install-gcc: install-gcc
4fa63067 10837
a90ef4bf 10838install-gcc: installdirs
0aed8855 10839 @: $(MAKE); $(unstage)
4fa63067
NN
10840 @r=`${PWD_COMMAND}`; export r; \
10841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10842 $(HOST_EXPORTS) \
a90ef4bf
JM
10843 (cd $(HOST_SUBDIR)/gcc && \
10844 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
4fa63067 10845
a90ef4bf 10846@endif gcc
4fa63067 10847
a90ef4bf
JM
10848.PHONY: install-strip-gcc maybe-install-strip-gcc
10849maybe-install-strip-gcc:
10850@if gcc
10851maybe-install-strip-gcc: install-strip-gcc
9b980aa1 10852
a90ef4bf 10853install-strip-gcc: installdirs
9b980aa1
RW
10854 @: $(MAKE); $(unstage)
10855 @r=`${PWD_COMMAND}`; export r; \
10856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10857 $(HOST_EXPORTS) \
a90ef4bf
JM
10858 (cd $(HOST_SUBDIR)/gcc && \
10859 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install-strip)
9b980aa1 10860
a90ef4bf 10861@endif gcc
9b980aa1 10862
56a8fe78 10863# Other targets (info, dvi, pdf, etc.)
4fa63067 10864
a90ef4bf
JM
10865.PHONY: maybe-info-gcc info-gcc
10866maybe-info-gcc:
10867@if gcc
10868maybe-info-gcc: info-gcc
4fa63067 10869
a90ef4bf
JM
10870info-gcc: \
10871 configure-gcc
10872 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10873 r=`${PWD_COMMAND}`; export r; \
10874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10875 $(HOST_EXPORTS) \
a90ef4bf 10876 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10878 done; \
22121df0 10879 echo "Doing info in gcc"; \
a90ef4bf 10880 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10883 "RANLIB=$${RANLIB}" \
0c24b341 10884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10885 info) \
2a4cbe27
NN
10886 || exit 1
10887
a90ef4bf 10888@endif gcc
2a4cbe27 10889
a90ef4bf
JM
10890.PHONY: maybe-dvi-gcc dvi-gcc
10891maybe-dvi-gcc:
10892@if gcc
10893maybe-dvi-gcc: dvi-gcc
2a4cbe27 10894
a90ef4bf
JM
10895dvi-gcc: \
10896 configure-gcc
10897 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10898 r=`${PWD_COMMAND}`; export r; \
10899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10900 $(HOST_EXPORTS) \
a90ef4bf 10901 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10903 done; \
22121df0 10904 echo "Doing dvi in gcc"; \
a90ef4bf 10905 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10908 "RANLIB=$${RANLIB}" \
0c24b341 10909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10910 dvi) \
2a4cbe27
NN
10911 || exit 1
10912
a90ef4bf 10913@endif gcc
2a4cbe27 10914
a90ef4bf
JM
10915.PHONY: maybe-pdf-gcc pdf-gcc
10916maybe-pdf-gcc:
10917@if gcc
10918maybe-pdf-gcc: pdf-gcc
56a8fe78 10919
a90ef4bf
JM
10920pdf-gcc: \
10921 configure-gcc
10922 @[ -f ./gcc/Makefile ] || exit 0; \
56a8fe78
DD
10923 r=`${PWD_COMMAND}`; export r; \
10924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10925 $(HOST_EXPORTS) \
a90ef4bf 10926 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
56a8fe78
DD
10927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10928 done; \
22121df0 10929 echo "Doing pdf in gcc"; \
a90ef4bf 10930 (cd $(HOST_SUBDIR)/gcc && \
56a8fe78
DD
10931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10933 "RANLIB=$${RANLIB}" \
0c24b341 10934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
10935 pdf) \
10936 || exit 1
10937
a90ef4bf 10938@endif gcc
56a8fe78 10939
a90ef4bf
JM
10940.PHONY: maybe-html-gcc html-gcc
10941maybe-html-gcc:
10942@if gcc
10943maybe-html-gcc: html-gcc
6d389afc 10944
a90ef4bf
JM
10945html-gcc: \
10946 configure-gcc
10947 @[ -f ./gcc/Makefile ] || exit 0; \
6d389afc
MS
10948 r=`${PWD_COMMAND}`; export r; \
10949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 10950 $(HOST_EXPORTS) \
a90ef4bf 10951 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
6d389afc
MS
10952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10953 done; \
22121df0 10954 echo "Doing html in gcc"; \
a90ef4bf 10955 (cd $(HOST_SUBDIR)/gcc && \
6d389afc
MS
10956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10958 "RANLIB=$${RANLIB}" \
0c24b341 10959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
10960 html) \
10961 || exit 1
10962
a90ef4bf 10963@endif gcc
6d389afc 10964
a90ef4bf
JM
10965.PHONY: maybe-TAGS-gcc TAGS-gcc
10966maybe-TAGS-gcc:
10967@if gcc
10968maybe-TAGS-gcc: TAGS-gcc
2a4cbe27 10969
a90ef4bf
JM
10970TAGS-gcc: \
10971 configure-gcc
10972 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10973 r=`${PWD_COMMAND}`; export r; \
10974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 10975 $(HOST_EXPORTS) \
a90ef4bf 10976 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
10977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10978 done; \
22121df0 10979 echo "Doing TAGS in gcc"; \
a90ef4bf 10980 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
10981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10983 "RANLIB=$${RANLIB}" \
0c24b341 10984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 10985 TAGS) \
2a4cbe27
NN
10986 || exit 1
10987
a90ef4bf 10988@endif gcc
2a4cbe27 10989
a90ef4bf
JM
10990.PHONY: maybe-install-info-gcc install-info-gcc
10991maybe-install-info-gcc:
10992@if gcc
10993maybe-install-info-gcc: install-info-gcc
2a4cbe27 10994
a90ef4bf
JM
10995install-info-gcc: \
10996 configure-gcc \
10997 info-gcc
10998 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
10999 r=`${PWD_COMMAND}`; export r; \
11000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11001 $(HOST_EXPORTS) \
a90ef4bf 11002 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11004 done; \
22121df0 11005 echo "Doing install-info in gcc"; \
a90ef4bf 11006 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11009 "RANLIB=$${RANLIB}" \
0c24b341 11010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11011 install-info) \
2a4cbe27
NN
11012 || exit 1
11013
a90ef4bf 11014@endif gcc
2a4cbe27 11015
a90ef4bf
JM
11016.PHONY: maybe-install-pdf-gcc install-pdf-gcc
11017maybe-install-pdf-gcc:
11018@if gcc
11019maybe-install-pdf-gcc: install-pdf-gcc
a3ca38d2 11020
a90ef4bf
JM
11021install-pdf-gcc: \
11022 configure-gcc \
11023 pdf-gcc
11024 @[ -f ./gcc/Makefile ] || exit 0; \
a3ca38d2
DD
11025 r=`${PWD_COMMAND}`; export r; \
11026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11027 $(HOST_EXPORTS) \
a90ef4bf 11028 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
a3ca38d2
DD
11029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11030 done; \
22121df0 11031 echo "Doing install-pdf in gcc"; \
a90ef4bf 11032 (cd $(HOST_SUBDIR)/gcc && \
a3ca38d2
DD
11033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11035 "RANLIB=$${RANLIB}" \
0c24b341 11036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11037 install-pdf) \
11038 || exit 1
11039
a90ef4bf 11040@endif gcc
a3ca38d2 11041
a90ef4bf
JM
11042.PHONY: maybe-install-html-gcc install-html-gcc
11043maybe-install-html-gcc:
11044@if gcc
11045maybe-install-html-gcc: install-html-gcc
108a6f8e 11046
a90ef4bf
JM
11047install-html-gcc: \
11048 configure-gcc \
11049 html-gcc
11050 @[ -f ./gcc/Makefile ] || exit 0; \
108a6f8e
CD
11051 r=`${PWD_COMMAND}`; export r; \
11052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11053 $(HOST_EXPORTS) \
a90ef4bf 11054 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
108a6f8e
CD
11055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11056 done; \
22121df0 11057 echo "Doing install-html in gcc"; \
a90ef4bf 11058 (cd $(HOST_SUBDIR)/gcc && \
108a6f8e
CD
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}" \
108a6f8e
CD
11063 install-html) \
11064 || exit 1
11065
a90ef4bf 11066@endif gcc
108a6f8e 11067
a90ef4bf
JM
11068.PHONY: maybe-installcheck-gcc installcheck-gcc
11069maybe-installcheck-gcc:
11070@if gcc
11071maybe-installcheck-gcc: installcheck-gcc
2a4cbe27 11072
a90ef4bf
JM
11073installcheck-gcc: \
11074 configure-gcc
11075 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11076 r=`${PWD_COMMAND}`; export r; \
11077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11078 $(HOST_EXPORTS) \
a90ef4bf 11079 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11081 done; \
22121df0 11082 echo "Doing installcheck in gcc"; \
a90ef4bf 11083 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11086 "RANLIB=$${RANLIB}" \
0c24b341 11087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11088 installcheck) \
2a4cbe27
NN
11089 || exit 1
11090
a90ef4bf 11091@endif gcc
2a4cbe27 11092
a90ef4bf
JM
11093.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
11094maybe-mostlyclean-gcc:
11095@if gcc
11096maybe-mostlyclean-gcc: mostlyclean-gcc
2a4cbe27 11097
a90ef4bf
JM
11098mostlyclean-gcc:
11099 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11100 r=`${PWD_COMMAND}`; export r; \
11101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11102 $(HOST_EXPORTS) \
a90ef4bf 11103 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11105 done; \
22121df0 11106 echo "Doing mostlyclean in gcc"; \
a90ef4bf 11107 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11110 "RANLIB=$${RANLIB}" \
0c24b341 11111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11112 mostlyclean) \
2a4cbe27
NN
11113 || exit 1
11114
a90ef4bf 11115@endif gcc
2a4cbe27 11116
a90ef4bf
JM
11117.PHONY: maybe-clean-gcc clean-gcc
11118maybe-clean-gcc:
11119@if gcc
11120maybe-clean-gcc: clean-gcc
2a4cbe27 11121
a90ef4bf
JM
11122clean-gcc:
11123 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11124 r=`${PWD_COMMAND}`; export r; \
11125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11126 $(HOST_EXPORTS) \
a90ef4bf 11127 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11129 done; \
22121df0 11130 echo "Doing clean in gcc"; \
a90ef4bf 11131 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11134 "RANLIB=$${RANLIB}" \
0c24b341 11135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11136 clean) \
2a4cbe27
NN
11137 || exit 1
11138
a90ef4bf 11139@endif gcc
2a4cbe27 11140
a90ef4bf
JM
11141.PHONY: maybe-distclean-gcc distclean-gcc
11142maybe-distclean-gcc:
11143@if gcc
11144maybe-distclean-gcc: distclean-gcc
2a4cbe27 11145
a90ef4bf
JM
11146distclean-gcc:
11147 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11148 r=`${PWD_COMMAND}`; export r; \
11149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11150 $(HOST_EXPORTS) \
a90ef4bf 11151 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11153 done; \
22121df0 11154 echo "Doing distclean in gcc"; \
a90ef4bf 11155 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11158 "RANLIB=$${RANLIB}" \
0c24b341 11159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11160 distclean) \
2a4cbe27
NN
11161 || exit 1
11162
a90ef4bf 11163@endif gcc
2a4cbe27 11164
a90ef4bf
JM
11165.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
11166maybe-maintainer-clean-gcc:
11167@if gcc
11168maybe-maintainer-clean-gcc: maintainer-clean-gcc
2a4cbe27 11169
a90ef4bf
JM
11170maintainer-clean-gcc:
11171 @[ -f ./gcc/Makefile ] || exit 0; \
b40e3958
L
11172 r=`${PWD_COMMAND}`; export r; \
11173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11174 $(HOST_EXPORTS) \
a90ef4bf 11175 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
2a4cbe27
NN
11176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11177 done; \
22121df0 11178 echo "Doing maintainer-clean in gcc"; \
a90ef4bf 11179 (cd $(HOST_SUBDIR)/gcc && \
2a4cbe27
NN
11180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11182 "RANLIB=$${RANLIB}" \
0c24b341 11183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11184 maintainer-clean) \
2a4cbe27
NN
11185 || exit 1
11186
a90ef4bf 11187@endif gcc
2a4cbe27 11188
2a4cbe27 11189
a7254363 11190
a90ef4bf
JM
11191.PHONY: configure-gmp maybe-configure-gmp
11192maybe-configure-gmp:
4f0ef2d8 11193@if gcc-bootstrap
a90ef4bf 11194configure-gmp: stage_current
4f0ef2d8 11195@endif gcc-bootstrap
a90ef4bf
JM
11196@if gmp
11197maybe-configure-gmp: configure-gmp
11198configure-gmp:
c52c6897 11199 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11201 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
22121df0 11202 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
1f53ca9a 11203 $(HOST_EXPORTS) \
a90ef4bf
JM
11204 echo Configuring in $(HOST_SUBDIR)/gmp; \
11205 cd "$(HOST_SUBDIR)/gmp" || exit 1; \
4fa63067 11206 case $(srcdir) in \
b00612cc 11207 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 11208 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
b00612cc 11209 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 11210 esac; \
1b6c0831
L
11211 module_srcdir=gmp; \
11212 $(SHELL) \
11213 $$s/$$module_srcdir/configure \
11214 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11215 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11216 --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
4fa63067 11217 || exit 1
a90ef4bf 11218@endif gmp
a7254363 11219
d545f33b
PB
11220
11221
a90ef4bf
JM
11222.PHONY: configure-stage1-gmp maybe-configure-stage1-gmp
11223maybe-configure-stage1-gmp:
11224@if gmp-bootstrap
11225maybe-configure-stage1-gmp: configure-stage1-gmp
11226configure-stage1-gmp:
11227 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11228 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067
NN
11229 @r=`${PWD_COMMAND}`; export r; \
11230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11231 TFLAGS="$(STAGE1_TFLAGS)"; \
11232 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11233 $(HOST_EXPORTS) \
11234 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
11235 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
11236 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
11237 echo Configuring stage 1 in $(HOST_SUBDIR)/gmp; \
11238 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11239 cd $(HOST_SUBDIR)/gmp || exit 1; \
11240 case $(srcdir) in \
11241 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11242 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11243 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11244 esac; \
1b6c0831
L
11245 module_srcdir=gmp; \
11246 $(SHELL) $$s/$$module_srcdir/configure \
11247 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11248 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831
L
11249 --target=none-${host_vendor}-${host_os} \
11250 \
a90ef4bf 11251 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 11252 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11253@endif gmp-bootstrap
4fa63067 11254
a90ef4bf
JM
11255.PHONY: configure-stage2-gmp maybe-configure-stage2-gmp
11256maybe-configure-stage2-gmp:
11257@if gmp-bootstrap
11258maybe-configure-stage2-gmp: configure-stage2-gmp
11259configure-stage2-gmp:
11260 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11261 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11262 @r=`${PWD_COMMAND}`; export r; \
11263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11264 TFLAGS="$(STAGE2_TFLAGS)"; \
11265 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11266 $(HOST_EXPORTS) \
11267 $(POSTSTAGE1_HOST_EXPORTS) \
11268 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
11269 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
11270 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11271 echo Configuring stage 2 in $(HOST_SUBDIR)/gmp; \
11272 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11273 cd $(HOST_SUBDIR)/gmp || exit 1; \
11274 case $(srcdir) in \
11275 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11276 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11277 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11278 esac; \
1b6c0831
L
11279 module_srcdir=gmp; \
11280 $(SHELL) $$s/$$module_srcdir/configure \
11281 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11282 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11283 --target=none-${host_vendor}-${host_os} \
22121df0 11284 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11285 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 11286 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11287@endif gmp-bootstrap
4fa63067 11288
a90ef4bf
JM
11289.PHONY: configure-stage3-gmp maybe-configure-stage3-gmp
11290maybe-configure-stage3-gmp:
11291@if gmp-bootstrap
11292maybe-configure-stage3-gmp: configure-stage3-gmp
11293configure-stage3-gmp:
11294 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11295 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
4fa63067 11296 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11298 TFLAGS="$(STAGE3_TFLAGS)"; \
11299 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
378fce5b 11300 $(HOST_EXPORTS) \
a90ef4bf
JM
11301 $(POSTSTAGE1_HOST_EXPORTS) \
11302 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
11303 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
11304 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11305 echo Configuring stage 3 in $(HOST_SUBDIR)/gmp; \
11306 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11307 cd $(HOST_SUBDIR)/gmp || exit 1; \
11308 case $(srcdir) in \
11309 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11310 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11311 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11312 esac; \
1b6c0831
L
11313 module_srcdir=gmp; \
11314 $(SHELL) $$s/$$module_srcdir/configure \
11315 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11316 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11317 --target=none-${host_vendor}-${host_os} \
22121df0 11318 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11319 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 11320 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11321@endif gmp-bootstrap
2a4cbe27 11322
a90ef4bf
JM
11323.PHONY: configure-stage4-gmp maybe-configure-stage4-gmp
11324maybe-configure-stage4-gmp:
11325@if gmp-bootstrap
11326maybe-configure-stage4-gmp: configure-stage4-gmp
11327configure-stage4-gmp:
11328 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11329 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11330 @r=`${PWD_COMMAND}`; export r; \
11331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11332 TFLAGS="$(STAGE4_TFLAGS)"; \
11333 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11334 $(HOST_EXPORTS) \
11335 $(POSTSTAGE1_HOST_EXPORTS) \
11336 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
11337 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
11338 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11339 echo Configuring stage 4 in $(HOST_SUBDIR)/gmp; \
11340 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11341 cd $(HOST_SUBDIR)/gmp || exit 1; \
11342 case $(srcdir) in \
11343 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11344 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11345 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11346 esac; \
1b6c0831
L
11347 module_srcdir=gmp; \
11348 $(SHELL) $$s/$$module_srcdir/configure \
11349 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11350 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11351 --target=none-${host_vendor}-${host_os} \
22121df0 11352 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11353 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 11354 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11355@endif gmp-bootstrap
2a4cbe27 11356
a90ef4bf
JM
11357.PHONY: configure-stageprofile-gmp maybe-configure-stageprofile-gmp
11358maybe-configure-stageprofile-gmp:
11359@if gmp-bootstrap
11360maybe-configure-stageprofile-gmp: configure-stageprofile-gmp
11361configure-stageprofile-gmp:
11362 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11363 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
11364 @r=`${PWD_COMMAND}`; export r; \
11365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11366 TFLAGS="$(STAGEprofile_TFLAGS)"; \
11367 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
11368 $(HOST_EXPORTS) \
11369 $(POSTSTAGE1_HOST_EXPORTS) \
11370 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
11371 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
11372 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11373 echo Configuring stage profile in $(HOST_SUBDIR)/gmp; \
11374 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11375 cd $(HOST_SUBDIR)/gmp || exit 1; \
11376 case $(srcdir) in \
11377 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11378 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11379 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11380 esac; \
1b6c0831
L
11381 module_srcdir=gmp; \
11382 $(SHELL) $$s/$$module_srcdir/configure \
11383 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11384 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11385 --target=none-${host_vendor}-${host_os} \
22121df0 11386 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11387 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 11388 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11389@endif gmp-bootstrap
9b980aa1 11390
a90ef4bf
JM
11391.PHONY: configure-stagefeedback-gmp maybe-configure-stagefeedback-gmp
11392maybe-configure-stagefeedback-gmp:
11393@if gmp-bootstrap
11394maybe-configure-stagefeedback-gmp: configure-stagefeedback-gmp
11395configure-stagefeedback-gmp:
11396 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
11397 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp
9b980aa1
RW
11398 @r=`${PWD_COMMAND}`; export r; \
11399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11400 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11401 test ! -f $(HOST_SUBDIR)/gmp/Makefile || exit 0; \
9b980aa1 11402 $(HOST_EXPORTS) \
a90ef4bf
JM
11403 $(POSTSTAGE1_HOST_EXPORTS) \
11404 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
11405 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
11406 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
11407 echo Configuring stage feedback in $(HOST_SUBDIR)/gmp; \
11408 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gmp; \
a90ef4bf
JM
11409 cd $(HOST_SUBDIR)/gmp || exit 1; \
11410 case $(srcdir) in \
11411 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11412 *) topdir=`echo $(HOST_SUBDIR)/gmp/ | \
11413 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11414 esac; \
1b6c0831
L
11415 module_srcdir=gmp; \
11416 $(SHELL) $$s/$$module_srcdir/configure \
11417 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 11418 $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
1b6c0831 11419 --target=none-${host_vendor}-${host_os} \
22121df0 11420 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 11421 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 11422 --disable-shared LEX="touch lex.yy.c"
a90ef4bf 11423@endif gmp-bootstrap
9b980aa1 11424
9b980aa1 11425
2a4cbe27 11426
4fa63067 11427
a90ef4bf
JM
11428
11429.PHONY: all-gmp maybe-all-gmp
11430maybe-all-gmp:
11431@if gcc-bootstrap
11432all-gmp: stage_current
11433@endif gcc-bootstrap
11434@if gmp
11435TARGET-gmp=all
11436maybe-all-gmp: all-gmp
11437all-gmp: configure-gmp
11438 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11440 $(HOST_EXPORTS) \
11441 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11442 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
11443 $(TARGET-gmp))
11444@endif gmp
2a4cbe27
NN
11445
11446
2a4cbe27 11447
a90ef4bf
JM
11448.PHONY: all-stage1-gmp maybe-all-stage1-gmp
11449.PHONY: clean-stage1-gmp maybe-clean-stage1-gmp
11450maybe-all-stage1-gmp:
11451maybe-clean-stage1-gmp:
11452@if gmp-bootstrap
11453maybe-all-stage1-gmp: all-stage1-gmp
11454all-stage1: all-stage1-gmp
11455TARGET-stage1-gmp = $(TARGET-gmp)
11456all-stage1-gmp: configure-stage1-gmp
11457 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
11458 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11460 TFLAGS="$(STAGE1_TFLAGS)"; \
11461 $(HOST_EXPORTS) \
11462 cd $(HOST_SUBDIR)/gmp && \
05a13254 11463 \
a90ef4bf
JM
11464 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11465 CFLAGS="$(STAGE1_CFLAGS)" \
11466 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
11467 LIBCFLAGS="$(LIBCFLAGS)" \
11468 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11469 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11470 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 11471 $(EXTRA_HOST_FLAGS) \
05a13254
NC
11472 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11473 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 11474 $(TARGET-stage1-gmp)
2a4cbe27 11475
a90ef4bf
JM
11476maybe-clean-stage1-gmp: clean-stage1-gmp
11477clean-stage1: clean-stage1-gmp
11478clean-stage1-gmp:
11479 @if [ $(current_stage) = stage1 ]; then \
11480 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11481 else \
11482 [ -f $(HOST_SUBDIR)/stage1-gmp/Makefile ] || exit 0; \
11483 $(MAKE) stage1-start; \
11484 fi; \
11485 cd $(HOST_SUBDIR)/gmp && \
11486 $(MAKE) $(EXTRA_HOST_FLAGS) \
05a13254 11487 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11488@endif gmp-bootstrap
2a4cbe27 11489
56a8fe78 11490
a90ef4bf
JM
11491.PHONY: all-stage2-gmp maybe-all-stage2-gmp
11492.PHONY: clean-stage2-gmp maybe-clean-stage2-gmp
11493maybe-all-stage2-gmp:
11494maybe-clean-stage2-gmp:
11495@if gmp-bootstrap
11496maybe-all-stage2-gmp: all-stage2-gmp
11497all-stage2: all-stage2-gmp
11498TARGET-stage2-gmp = $(TARGET-gmp)
11499all-stage2-gmp: configure-stage2-gmp
11500 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
11501 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 11502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11503 TFLAGS="$(STAGE2_TFLAGS)"; \
56a8fe78 11504 $(HOST_EXPORTS) \
a90ef4bf
JM
11505 $(POSTSTAGE1_HOST_EXPORTS) \
11506 cd $(HOST_SUBDIR)/gmp && \
05a13254 11507 \
a90ef4bf
JM
11508 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11509 CFLAGS="$(STAGE2_CFLAGS)" \
11510 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
11511 LIBCFLAGS="$(STAGE2_CFLAGS)" \
11512 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11513 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11514 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11515 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11516 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 11517 $(TARGET-stage2-gmp)
56a8fe78 11518
a90ef4bf
JM
11519maybe-clean-stage2-gmp: clean-stage2-gmp
11520clean-stage2: clean-stage2-gmp
11521clean-stage2-gmp:
11522 @if [ $(current_stage) = stage2 ]; then \
11523 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11524 else \
11525 [ -f $(HOST_SUBDIR)/stage2-gmp/Makefile ] || exit 0; \
11526 $(MAKE) stage2-start; \
11527 fi; \
11528 cd $(HOST_SUBDIR)/gmp && \
05a13254 11529 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11530@endif gmp-bootstrap
56a8fe78 11531
6d389afc 11532
a90ef4bf
JM
11533.PHONY: all-stage3-gmp maybe-all-stage3-gmp
11534.PHONY: clean-stage3-gmp maybe-clean-stage3-gmp
11535maybe-all-stage3-gmp:
11536maybe-clean-stage3-gmp:
11537@if gmp-bootstrap
11538maybe-all-stage3-gmp: all-stage3-gmp
11539all-stage3: all-stage3-gmp
11540TARGET-stage3-gmp = $(TARGET-gmp)
11541all-stage3-gmp: configure-stage3-gmp
11542 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
11543 @r=`${PWD_COMMAND}`; export r; \
6d389afc 11544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11545 TFLAGS="$(STAGE3_TFLAGS)"; \
6d389afc 11546 $(HOST_EXPORTS) \
a90ef4bf
JM
11547 $(POSTSTAGE1_HOST_EXPORTS) \
11548 cd $(HOST_SUBDIR)/gmp && \
05a13254 11549 \
a90ef4bf
JM
11550 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11551 CFLAGS="$(STAGE3_CFLAGS)" \
11552 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
11553 LIBCFLAGS="$(STAGE3_CFLAGS)" \
11554 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11555 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11556 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11557 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11558 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 11559 $(TARGET-stage3-gmp)
6d389afc 11560
a90ef4bf
JM
11561maybe-clean-stage3-gmp: clean-stage3-gmp
11562clean-stage3: clean-stage3-gmp
11563clean-stage3-gmp:
11564 @if [ $(current_stage) = stage3 ]; then \
11565 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11566 else \
11567 [ -f $(HOST_SUBDIR)/stage3-gmp/Makefile ] || exit 0; \
11568 $(MAKE) stage3-start; \
11569 fi; \
11570 cd $(HOST_SUBDIR)/gmp && \
05a13254 11571 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11572@endif gmp-bootstrap
6d389afc 11573
2a4cbe27 11574
a90ef4bf
JM
11575.PHONY: all-stage4-gmp maybe-all-stage4-gmp
11576.PHONY: clean-stage4-gmp maybe-clean-stage4-gmp
11577maybe-all-stage4-gmp:
11578maybe-clean-stage4-gmp:
11579@if gmp-bootstrap
11580maybe-all-stage4-gmp: all-stage4-gmp
11581all-stage4: all-stage4-gmp
11582TARGET-stage4-gmp = $(TARGET-gmp)
11583all-stage4-gmp: configure-stage4-gmp
11584 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
11585 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11587 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 11588 $(HOST_EXPORTS) \
a90ef4bf
JM
11589 $(POSTSTAGE1_HOST_EXPORTS) \
11590 cd $(HOST_SUBDIR)/gmp && \
05a13254 11591 \
a90ef4bf
JM
11592 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11593 CFLAGS="$(STAGE4_CFLAGS)" \
11594 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
11595 LIBCFLAGS="$(STAGE4_CFLAGS)" \
11596 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11597 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11598 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11599 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11600 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 11601 $(TARGET-stage4-gmp)
2a4cbe27 11602
a90ef4bf
JM
11603maybe-clean-stage4-gmp: clean-stage4-gmp
11604clean-stage4: clean-stage4-gmp
11605clean-stage4-gmp:
11606 @if [ $(current_stage) = stage4 ]; then \
11607 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11608 else \
11609 [ -f $(HOST_SUBDIR)/stage4-gmp/Makefile ] || exit 0; \
11610 $(MAKE) stage4-start; \
11611 fi; \
11612 cd $(HOST_SUBDIR)/gmp && \
05a13254 11613 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11614@endif gmp-bootstrap
2a4cbe27 11615
2a4cbe27 11616
a90ef4bf
JM
11617.PHONY: all-stageprofile-gmp maybe-all-stageprofile-gmp
11618.PHONY: clean-stageprofile-gmp maybe-clean-stageprofile-gmp
11619maybe-all-stageprofile-gmp:
11620maybe-clean-stageprofile-gmp:
11621@if gmp-bootstrap
11622maybe-all-stageprofile-gmp: all-stageprofile-gmp
11623all-stageprofile: all-stageprofile-gmp
11624TARGET-stageprofile-gmp = $(TARGET-gmp)
11625all-stageprofile-gmp: configure-stageprofile-gmp
11626 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
11627 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 11629 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 11630 $(HOST_EXPORTS) \
a90ef4bf
JM
11631 $(POSTSTAGE1_HOST_EXPORTS) \
11632 cd $(HOST_SUBDIR)/gmp && \
05a13254 11633 \
a90ef4bf
JM
11634 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11635 CFLAGS="$(STAGEprofile_CFLAGS)" \
11636 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
11637 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
11638 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11639 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11640 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11641 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11642 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 11643 $(TARGET-stageprofile-gmp)
2a4cbe27 11644
a90ef4bf
JM
11645maybe-clean-stageprofile-gmp: clean-stageprofile-gmp
11646clean-stageprofile: clean-stageprofile-gmp
11647clean-stageprofile-gmp:
11648 @if [ $(current_stage) = stageprofile ]; then \
11649 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11650 else \
11651 [ -f $(HOST_SUBDIR)/stageprofile-gmp/Makefile ] || exit 0; \
11652 $(MAKE) stageprofile-start; \
11653 fi; \
11654 cd $(HOST_SUBDIR)/gmp && \
05a13254 11655 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11656@endif gmp-bootstrap
2a4cbe27 11657
a7254363 11658
a90ef4bf
JM
11659.PHONY: all-stagefeedback-gmp maybe-all-stagefeedback-gmp
11660.PHONY: clean-stagefeedback-gmp maybe-clean-stagefeedback-gmp
11661maybe-all-stagefeedback-gmp:
11662maybe-clean-stagefeedback-gmp:
11663@if gmp-bootstrap
11664maybe-all-stagefeedback-gmp: all-stagefeedback-gmp
11665all-stagefeedback: all-stagefeedback-gmp
11666TARGET-stagefeedback-gmp = $(TARGET-gmp)
11667all-stagefeedback-gmp: configure-stagefeedback-gmp
11668 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 11669 @r=`${PWD_COMMAND}`; export r; \
b40e3958 11670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
11671 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
11672 $(HOST_EXPORTS) \
11673 $(POSTSTAGE1_HOST_EXPORTS) \
11674 cd $(HOST_SUBDIR)/gmp && \
05a13254 11675 \
a90ef4bf
JM
11676 $(MAKE) $(BASE_FLAGS_TO_PASS) \
11677 CFLAGS="$(STAGEfeedback_CFLAGS)" \
11678 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
11679 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
11680 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
11681 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
11682 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
05a13254
NC
11683 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
11684 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 11685 $(TARGET-stagefeedback-gmp)
d545f33b 11686
a90ef4bf
JM
11687maybe-clean-stagefeedback-gmp: clean-stagefeedback-gmp
11688clean-stagefeedback: clean-stagefeedback-gmp
11689clean-stagefeedback-gmp:
11690 @if [ $(current_stage) = stagefeedback ]; then \
11691 [ -f $(HOST_SUBDIR)/gmp/Makefile ] || exit 0; \
11692 else \
11693 [ -f $(HOST_SUBDIR)/stagefeedback-gmp/Makefile ] || exit 0; \
11694 $(MAKE) stagefeedback-start; \
11695 fi; \
11696 cd $(HOST_SUBDIR)/gmp && \
05a13254 11697 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 11698@endif gmp-bootstrap
d545f33b 11699
4fa63067 11700
a7254363 11701
d545f33b
PB
11702
11703
a90ef4bf
JM
11704.PHONY: check-gmp maybe-check-gmp
11705maybe-check-gmp:
11706@if gmp
11707maybe-check-gmp: check-gmp
4fa63067 11708
a90ef4bf 11709check-gmp:
0aed8855 11710 @: $(MAKE); $(unstage)
4fa63067
NN
11711 @r=`${PWD_COMMAND}`; export r; \
11712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 11713 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 11714 (cd $(HOST_SUBDIR)/gmp && \
05a13254 11715 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 11716
a90ef4bf 11717@endif gmp
2a4cbe27 11718
a90ef4bf
JM
11719.PHONY: install-gmp maybe-install-gmp
11720maybe-install-gmp:
11721@if gmp
11722maybe-install-gmp: install-gmp
2a4cbe27 11723
a90ef4bf 11724install-gmp:
2a4cbe27 11725
a90ef4bf 11726@endif gmp
2a4cbe27 11727
a90ef4bf
JM
11728.PHONY: install-strip-gmp maybe-install-strip-gmp
11729maybe-install-strip-gmp:
11730@if gmp
11731maybe-install-strip-gmp: install-strip-gmp
9b980aa1 11732
a90ef4bf 11733install-strip-gmp:
9b980aa1 11734
a90ef4bf 11735@endif gmp
9b980aa1 11736
56a8fe78 11737# Other targets (info, dvi, pdf, etc.)
2a4cbe27 11738
a90ef4bf
JM
11739.PHONY: maybe-info-gmp info-gmp
11740maybe-info-gmp:
11741@if gmp
11742maybe-info-gmp: info-gmp
4fa63067 11743
a90ef4bf
JM
11744info-gmp: \
11745 configure-gmp
11746 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11747 r=`${PWD_COMMAND}`; export r; \
11748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11749 $(HOST_EXPORTS) \
05a13254 11750 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11752 done; \
22121df0 11753 echo "Doing info in gmp"; \
a90ef4bf 11754 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11757 "RANLIB=$${RANLIB}" \
0c24b341 11758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11759 info) \
2a4cbe27
NN
11760 || exit 1
11761
a90ef4bf 11762@endif gmp
2a4cbe27 11763
a90ef4bf
JM
11764.PHONY: maybe-dvi-gmp dvi-gmp
11765maybe-dvi-gmp:
11766@if gmp
11767maybe-dvi-gmp: dvi-gmp
2a4cbe27 11768
a90ef4bf
JM
11769dvi-gmp: \
11770 configure-gmp
11771 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11772 r=`${PWD_COMMAND}`; export r; \
11773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11774 $(HOST_EXPORTS) \
05a13254 11775 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11777 done; \
22121df0 11778 echo "Doing dvi in gmp"; \
a90ef4bf 11779 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11782 "RANLIB=$${RANLIB}" \
0c24b341 11783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11784 dvi) \
2a4cbe27
NN
11785 || exit 1
11786
a90ef4bf 11787@endif gmp
2a4cbe27 11788
a90ef4bf
JM
11789.PHONY: maybe-pdf-gmp pdf-gmp
11790maybe-pdf-gmp:
11791@if gmp
11792maybe-pdf-gmp: pdf-gmp
56a8fe78 11793
a90ef4bf
JM
11794pdf-gmp: \
11795 configure-gmp
11796 @[ -f ./gmp/Makefile ] || exit 0; \
56a8fe78
DD
11797 r=`${PWD_COMMAND}`; export r; \
11798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11799 $(HOST_EXPORTS) \
05a13254 11800 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
11801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11802 done; \
22121df0 11803 echo "Doing pdf in gmp"; \
a90ef4bf 11804 (cd $(HOST_SUBDIR)/gmp && \
56a8fe78
DD
11805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11807 "RANLIB=$${RANLIB}" \
0c24b341 11808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
11809 pdf) \
11810 || exit 1
11811
a90ef4bf 11812@endif gmp
56a8fe78 11813
a90ef4bf
JM
11814.PHONY: maybe-html-gmp html-gmp
11815maybe-html-gmp:
11816@if gmp
11817maybe-html-gmp: html-gmp
6d389afc 11818
a90ef4bf
JM
11819html-gmp: \
11820 configure-gmp
11821 @[ -f ./gmp/Makefile ] || exit 0; \
6d389afc
MS
11822 r=`${PWD_COMMAND}`; export r; \
11823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 11824 $(HOST_EXPORTS) \
05a13254 11825 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
11826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11827 done; \
22121df0 11828 echo "Doing html in gmp"; \
a90ef4bf 11829 (cd $(HOST_SUBDIR)/gmp && \
6d389afc
MS
11830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11832 "RANLIB=$${RANLIB}" \
0c24b341 11833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
11834 html) \
11835 || exit 1
11836
a90ef4bf 11837@endif gmp
6d389afc 11838
a90ef4bf
JM
11839.PHONY: maybe-TAGS-gmp TAGS-gmp
11840maybe-TAGS-gmp:
11841@if gmp
11842maybe-TAGS-gmp: TAGS-gmp
2a4cbe27 11843
a90ef4bf
JM
11844TAGS-gmp: \
11845 configure-gmp
11846 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11847 r=`${PWD_COMMAND}`; export r; \
11848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11849 $(HOST_EXPORTS) \
05a13254 11850 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11852 done; \
22121df0 11853 echo "Doing TAGS in gmp"; \
a90ef4bf 11854 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11857 "RANLIB=$${RANLIB}" \
0c24b341 11858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11859 TAGS) \
2a4cbe27
NN
11860 || exit 1
11861
a90ef4bf 11862@endif gmp
2a4cbe27 11863
a90ef4bf
JM
11864.PHONY: maybe-install-info-gmp install-info-gmp
11865maybe-install-info-gmp:
11866@if gmp
11867maybe-install-info-gmp: install-info-gmp
2a4cbe27 11868
a90ef4bf
JM
11869install-info-gmp: \
11870 configure-gmp \
11871 info-gmp
11872 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11873 r=`${PWD_COMMAND}`; export r; \
11874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11875 $(HOST_EXPORTS) \
05a13254 11876 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11878 done; \
22121df0 11879 echo "Doing install-info in gmp"; \
a90ef4bf 11880 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11883 "RANLIB=$${RANLIB}" \
0c24b341 11884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11885 install-info) \
2a4cbe27
NN
11886 || exit 1
11887
a90ef4bf 11888@endif gmp
2a4cbe27 11889
a90ef4bf
JM
11890.PHONY: maybe-install-pdf-gmp install-pdf-gmp
11891maybe-install-pdf-gmp:
11892@if gmp
11893maybe-install-pdf-gmp: install-pdf-gmp
a3ca38d2 11894
a90ef4bf
JM
11895install-pdf-gmp: \
11896 configure-gmp \
11897 pdf-gmp
11898 @[ -f ./gmp/Makefile ] || exit 0; \
a3ca38d2
DD
11899 r=`${PWD_COMMAND}`; export r; \
11900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11901 $(HOST_EXPORTS) \
05a13254 11902 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
11903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11904 done; \
22121df0 11905 echo "Doing install-pdf in gmp"; \
a90ef4bf 11906 (cd $(HOST_SUBDIR)/gmp && \
a3ca38d2
DD
11907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11909 "RANLIB=$${RANLIB}" \
0c24b341 11910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
11911 install-pdf) \
11912 || exit 1
11913
a90ef4bf 11914@endif gmp
a3ca38d2 11915
a90ef4bf
JM
11916.PHONY: maybe-install-html-gmp install-html-gmp
11917maybe-install-html-gmp:
11918@if gmp
11919maybe-install-html-gmp: install-html-gmp
108a6f8e 11920
a90ef4bf
JM
11921install-html-gmp: \
11922 configure-gmp \
11923 html-gmp
11924 @[ -f ./gmp/Makefile ] || exit 0; \
108a6f8e
CD
11925 r=`${PWD_COMMAND}`; export r; \
11926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11927 $(HOST_EXPORTS) \
05a13254 11928 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
11929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11930 done; \
22121df0 11931 echo "Doing install-html in gmp"; \
a90ef4bf 11932 (cd $(HOST_SUBDIR)/gmp && \
108a6f8e
CD
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}" \
108a6f8e
CD
11937 install-html) \
11938 || exit 1
11939
a90ef4bf 11940@endif gmp
108a6f8e 11941
a90ef4bf
JM
11942.PHONY: maybe-installcheck-gmp installcheck-gmp
11943maybe-installcheck-gmp:
11944@if gmp
11945maybe-installcheck-gmp: installcheck-gmp
2a4cbe27 11946
a90ef4bf
JM
11947installcheck-gmp: \
11948 configure-gmp
11949 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11950 r=`${PWD_COMMAND}`; export r; \
11951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11952 $(HOST_EXPORTS) \
05a13254 11953 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11955 done; \
22121df0 11956 echo "Doing installcheck in gmp"; \
a90ef4bf 11957 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11960 "RANLIB=$${RANLIB}" \
0c24b341 11961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11962 installcheck) \
2a4cbe27
NN
11963 || exit 1
11964
a90ef4bf 11965@endif gmp
2a4cbe27 11966
a90ef4bf
JM
11967.PHONY: maybe-mostlyclean-gmp mostlyclean-gmp
11968maybe-mostlyclean-gmp:
11969@if gmp
11970maybe-mostlyclean-gmp: mostlyclean-gmp
2a4cbe27 11971
a90ef4bf
JM
11972mostlyclean-gmp:
11973 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11974 r=`${PWD_COMMAND}`; export r; \
11975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 11976 $(HOST_EXPORTS) \
05a13254 11977 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
11978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11979 done; \
22121df0 11980 echo "Doing mostlyclean in gmp"; \
a90ef4bf 11981 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
11982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11984 "RANLIB=$${RANLIB}" \
0c24b341 11985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 11986 mostlyclean) \
2a4cbe27
NN
11987 || exit 1
11988
a90ef4bf 11989@endif gmp
2a4cbe27 11990
a90ef4bf
JM
11991.PHONY: maybe-clean-gmp clean-gmp
11992maybe-clean-gmp:
11993@if gmp
11994maybe-clean-gmp: clean-gmp
2a4cbe27 11995
a90ef4bf
JM
11996clean-gmp:
11997 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
11998 r=`${PWD_COMMAND}`; export r; \
11999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12000 $(HOST_EXPORTS) \
05a13254 12001 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12003 done; \
22121df0 12004 echo "Doing clean in gmp"; \
a90ef4bf 12005 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
12006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12008 "RANLIB=$${RANLIB}" \
0c24b341 12009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12010 clean) \
2a4cbe27
NN
12011 || exit 1
12012
a90ef4bf 12013@endif gmp
2a4cbe27 12014
a90ef4bf
JM
12015.PHONY: maybe-distclean-gmp distclean-gmp
12016maybe-distclean-gmp:
12017@if gmp
12018maybe-distclean-gmp: distclean-gmp
2a4cbe27 12019
a90ef4bf
JM
12020distclean-gmp:
12021 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
12022 r=`${PWD_COMMAND}`; export r; \
12023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12024 $(HOST_EXPORTS) \
05a13254 12025 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12027 done; \
22121df0 12028 echo "Doing distclean in gmp"; \
a90ef4bf 12029 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
12030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12032 "RANLIB=$${RANLIB}" \
0c24b341 12033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12034 distclean) \
2a4cbe27
NN
12035 || exit 1
12036
a90ef4bf 12037@endif gmp
2a4cbe27 12038
a90ef4bf
JM
12039.PHONY: maybe-maintainer-clean-gmp maintainer-clean-gmp
12040maybe-maintainer-clean-gmp:
12041@if gmp
12042maybe-maintainer-clean-gmp: maintainer-clean-gmp
2a4cbe27 12043
a90ef4bf
JM
12044maintainer-clean-gmp:
12045 @[ -f ./gmp/Makefile ] || exit 0; \
b40e3958
L
12046 r=`${PWD_COMMAND}`; export r; \
12047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12048 $(HOST_EXPORTS) \
05a13254 12049 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12051 done; \
22121df0 12052 echo "Doing maintainer-clean in gmp"; \
a90ef4bf 12053 (cd $(HOST_SUBDIR)/gmp && \
2a4cbe27
NN
12054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12056 "RANLIB=$${RANLIB}" \
0c24b341 12057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12058 maintainer-clean) \
2a4cbe27
NN
12059 || exit 1
12060
a90ef4bf 12061@endif gmp
2a4cbe27 12062
2a4cbe27 12063
a7254363 12064
a90ef4bf
JM
12065.PHONY: configure-mpfr maybe-configure-mpfr
12066maybe-configure-mpfr:
4f0ef2d8 12067@if gcc-bootstrap
a90ef4bf 12068configure-mpfr: stage_current
4f0ef2d8 12069@endif gcc-bootstrap
a90ef4bf
JM
12070@if mpfr
12071maybe-configure-mpfr: configure-mpfr
12072configure-mpfr:
12073 @r=`${PWD_COMMAND}`; export r; \
12074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12075 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
22121df0 12076 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
1f53ca9a 12077 $(HOST_EXPORTS) \
a90ef4bf
JM
12078 echo Configuring in $(HOST_SUBDIR)/mpfr; \
12079 cd "$(HOST_SUBDIR)/mpfr" || exit 1; \
4fa63067 12080 case $(srcdir) in \
b00612cc 12081 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12082 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
b00612cc 12083 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 12084 esac; \
1b6c0831
L
12085 module_srcdir=mpfr; \
12086 $(SHELL) \
12087 $$s/$$module_srcdir/configure \
12088 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12089 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12090 --target=${target_alias} --disable-shared @extra_mpfr_configure_flags@ \
2a4cbe27 12091 || exit 1
a90ef4bf 12092@endif mpfr
d545f33b
PB
12093
12094
2a4cbe27 12095
a90ef4bf
JM
12096.PHONY: configure-stage1-mpfr maybe-configure-stage1-mpfr
12097maybe-configure-stage1-mpfr:
12098@if mpfr-bootstrap
12099maybe-configure-stage1-mpfr: configure-stage1-mpfr
12100configure-stage1-mpfr:
12101 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12102 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12103 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12105 TFLAGS="$(STAGE1_TFLAGS)"; \
12106 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12107 $(HOST_EXPORTS) \
a90ef4bf
JM
12108 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12109 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12110 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12111 echo Configuring stage 1 in $(HOST_SUBDIR)/mpfr; \
12112 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12113 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12114 case $(srcdir) in \
12115 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12116 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12117 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12118 esac; \
1b6c0831
L
12119 module_srcdir=mpfr; \
12120 $(SHELL) $$s/$$module_srcdir/configure \
12121 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12122 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12123 --target=${target_alias} \
12124 \
a90ef4bf
JM
12125 $(STAGE1_CONFIGURE_FLAGS) \
12126 --disable-shared @extra_mpfr_configure_flags@
12127@endif mpfr-bootstrap
2a4cbe27 12128
a90ef4bf
JM
12129.PHONY: configure-stage2-mpfr maybe-configure-stage2-mpfr
12130maybe-configure-stage2-mpfr:
12131@if mpfr-bootstrap
12132maybe-configure-stage2-mpfr: configure-stage2-mpfr
12133configure-stage2-mpfr:
12134 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12135 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
4fa63067 12136 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12138 TFLAGS="$(STAGE2_TFLAGS)"; \
12139 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12140 $(HOST_EXPORTS) \
a90ef4bf
JM
12141 $(POSTSTAGE1_HOST_EXPORTS) \
12142 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
12143 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
12144 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12145 echo Configuring stage 2 in $(HOST_SUBDIR)/mpfr; \
12146 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12147 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12148 case $(srcdir) in \
12149 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12150 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12151 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12152 esac; \
1b6c0831
L
12153 module_srcdir=mpfr; \
12154 $(SHELL) $$s/$$module_srcdir/configure \
12155 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12156 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12157 --target=${target_alias} \
22121df0 12158 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12159 $(STAGE2_CONFIGURE_FLAGS) \
12160 --disable-shared @extra_mpfr_configure_flags@
12161@endif mpfr-bootstrap
9b980aa1 12162
a90ef4bf
JM
12163.PHONY: configure-stage3-mpfr maybe-configure-stage3-mpfr
12164maybe-configure-stage3-mpfr:
12165@if mpfr-bootstrap
12166maybe-configure-stage3-mpfr: configure-stage3-mpfr
12167configure-stage3-mpfr:
12168 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12169 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
9b980aa1
RW
12170 @r=`${PWD_COMMAND}`; export r; \
12171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12172 TFLAGS="$(STAGE3_TFLAGS)"; \
12173 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
9b980aa1 12174 $(HOST_EXPORTS) \
a90ef4bf
JM
12175 $(POSTSTAGE1_HOST_EXPORTS) \
12176 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
12177 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
12178 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12179 echo Configuring stage 3 in $(HOST_SUBDIR)/mpfr; \
12180 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12181 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12182 case $(srcdir) in \
12183 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12184 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12185 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12186 esac; \
1b6c0831
L
12187 module_srcdir=mpfr; \
12188 $(SHELL) $$s/$$module_srcdir/configure \
12189 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12190 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12191 --target=${target_alias} \
22121df0 12192 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12193 $(STAGE3_CONFIGURE_FLAGS) \
12194 --disable-shared @extra_mpfr_configure_flags@
12195@endif mpfr-bootstrap
2a4cbe27 12196
a90ef4bf
JM
12197.PHONY: configure-stage4-mpfr maybe-configure-stage4-mpfr
12198maybe-configure-stage4-mpfr:
12199@if mpfr-bootstrap
12200maybe-configure-stage4-mpfr: configure-stage4-mpfr
12201configure-stage4-mpfr:
12202 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12203 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12204 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12206 TFLAGS="$(STAGE4_TFLAGS)"; \
12207 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12208 $(HOST_EXPORTS) \
a90ef4bf
JM
12209 $(POSTSTAGE1_HOST_EXPORTS) \
12210 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
12211 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
12212 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12213 echo Configuring stage 4 in $(HOST_SUBDIR)/mpfr; \
12214 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12215 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12216 case $(srcdir) in \
12217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12218 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12220 esac; \
1b6c0831
L
12221 module_srcdir=mpfr; \
12222 $(SHELL) $$s/$$module_srcdir/configure \
12223 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12224 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12225 --target=${target_alias} \
22121df0 12226 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12227 $(STAGE4_CONFIGURE_FLAGS) \
12228 --disable-shared @extra_mpfr_configure_flags@
12229@endif mpfr-bootstrap
2a4cbe27 12230
a90ef4bf
JM
12231.PHONY: configure-stageprofile-mpfr maybe-configure-stageprofile-mpfr
12232maybe-configure-stageprofile-mpfr:
12233@if mpfr-bootstrap
12234maybe-configure-stageprofile-mpfr: configure-stageprofile-mpfr
12235configure-stageprofile-mpfr:
12236 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12237 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12238 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12240 TFLAGS="$(STAGEprofile_TFLAGS)"; \
12241 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
378fce5b 12242 $(HOST_EXPORTS) \
a90ef4bf
JM
12243 $(POSTSTAGE1_HOST_EXPORTS) \
12244 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
12245 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
12246 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12247 echo Configuring stage profile in $(HOST_SUBDIR)/mpfr; \
12248 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12249 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12250 case $(srcdir) in \
12251 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12252 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12253 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12254 esac; \
1b6c0831
L
12255 module_srcdir=mpfr; \
12256 $(SHELL) $$s/$$module_srcdir/configure \
12257 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12258 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12259 --target=${target_alias} \
22121df0 12260 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12261 $(STAGEprofile_CONFIGURE_FLAGS) \
12262 --disable-shared @extra_mpfr_configure_flags@
12263@endif mpfr-bootstrap
56a8fe78 12264
a90ef4bf
JM
12265.PHONY: configure-stagefeedback-mpfr maybe-configure-stagefeedback-mpfr
12266maybe-configure-stagefeedback-mpfr:
12267@if mpfr-bootstrap
12268maybe-configure-stagefeedback-mpfr: configure-stagefeedback-mpfr
12269configure-stagefeedback-mpfr:
12270 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
12271 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr
12272 @r=`${PWD_COMMAND}`; export r; \
56a8fe78 12273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12274 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12275 test ! -f $(HOST_SUBDIR)/mpfr/Makefile || exit 0; \
56a8fe78 12276 $(HOST_EXPORTS) \
a90ef4bf
JM
12277 $(POSTSTAGE1_HOST_EXPORTS) \
12278 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
12279 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
12280 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
12281 echo Configuring stage feedback in $(HOST_SUBDIR)/mpfr; \
12282 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpfr; \
a90ef4bf
JM
12283 cd $(HOST_SUBDIR)/mpfr || exit 1; \
12284 case $(srcdir) in \
12285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12286 *) topdir=`echo $(HOST_SUBDIR)/mpfr/ | \
12287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12288 esac; \
1b6c0831
L
12289 module_srcdir=mpfr; \
12290 $(SHELL) $$s/$$module_srcdir/configure \
12291 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12292 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 12293 --target=${target_alias} \
22121df0 12294 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
12295 $(STAGEfeedback_CONFIGURE_FLAGS) \
12296 --disable-shared @extra_mpfr_configure_flags@
12297@endif mpfr-bootstrap
56a8fe78 12298
6d389afc 12299
6d389afc 12300
6d389afc 12301
2a4cbe27 12302
a90ef4bf
JM
12303.PHONY: all-mpfr maybe-all-mpfr
12304maybe-all-mpfr:
12305@if gcc-bootstrap
12306all-mpfr: stage_current
12307@endif gcc-bootstrap
12308@if mpfr
12309TARGET-mpfr=all
12310maybe-all-mpfr: all-mpfr
12311all-mpfr: configure-mpfr
12312 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12314 $(HOST_EXPORTS) \
12315 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12316 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
a90ef4bf
JM
12317 $(TARGET-mpfr))
12318@endif mpfr
2a4cbe27
NN
12319
12320
2a4cbe27 12321
a90ef4bf
JM
12322.PHONY: all-stage1-mpfr maybe-all-stage1-mpfr
12323.PHONY: clean-stage1-mpfr maybe-clean-stage1-mpfr
12324maybe-all-stage1-mpfr:
12325maybe-clean-stage1-mpfr:
12326@if mpfr-bootstrap
12327maybe-all-stage1-mpfr: all-stage1-mpfr
12328all-stage1: all-stage1-mpfr
12329TARGET-stage1-mpfr = $(TARGET-mpfr)
12330all-stage1-mpfr: configure-stage1-mpfr
12331 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12332 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12334 TFLAGS="$(STAGE1_TFLAGS)"; \
12335 $(HOST_EXPORTS) \
12336 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12337 \
a90ef4bf
JM
12338 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12339 CFLAGS="$(STAGE1_CFLAGS)" \
12340 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
12341 LIBCFLAGS="$(LIBCFLAGS)" \
12342 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12343 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12344 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 12345 $(EXTRA_HOST_FLAGS) \
ce5e165e 12346 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12347 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 12348 $(TARGET-stage1-mpfr)
2a4cbe27 12349
a90ef4bf
JM
12350maybe-clean-stage1-mpfr: clean-stage1-mpfr
12351clean-stage1: clean-stage1-mpfr
12352clean-stage1-mpfr:
12353 @if [ $(current_stage) = stage1 ]; then \
12354 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12355 else \
12356 [ -f $(HOST_SUBDIR)/stage1-mpfr/Makefile ] || exit 0; \
12357 $(MAKE) stage1-start; \
12358 fi; \
12359 cd $(HOST_SUBDIR)/mpfr && \
12360 $(MAKE) $(EXTRA_HOST_FLAGS) \
ce5e165e 12361 $(STAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12362@endif mpfr-bootstrap
2a4cbe27 12363
a3ca38d2 12364
a90ef4bf
JM
12365.PHONY: all-stage2-mpfr maybe-all-stage2-mpfr
12366.PHONY: clean-stage2-mpfr maybe-clean-stage2-mpfr
12367maybe-all-stage2-mpfr:
12368maybe-clean-stage2-mpfr:
12369@if mpfr-bootstrap
12370maybe-all-stage2-mpfr: all-stage2-mpfr
12371all-stage2: all-stage2-mpfr
12372TARGET-stage2-mpfr = $(TARGET-mpfr)
12373all-stage2-mpfr: configure-stage2-mpfr
12374 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
12375 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 12376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12377 TFLAGS="$(STAGE2_TFLAGS)"; \
a3ca38d2 12378 $(HOST_EXPORTS) \
a90ef4bf
JM
12379 $(POSTSTAGE1_HOST_EXPORTS) \
12380 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12381 \
a90ef4bf
JM
12382 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12383 CFLAGS="$(STAGE2_CFLAGS)" \
12384 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
12385 LIBCFLAGS="$(STAGE2_CFLAGS)" \
12386 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12387 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12388 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12389 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12390 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 12391 $(TARGET-stage2-mpfr)
a3ca38d2 12392
a90ef4bf
JM
12393maybe-clean-stage2-mpfr: clean-stage2-mpfr
12394clean-stage2: clean-stage2-mpfr
12395clean-stage2-mpfr:
12396 @if [ $(current_stage) = stage2 ]; then \
12397 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12398 else \
12399 [ -f $(HOST_SUBDIR)/stage2-mpfr/Makefile ] || exit 0; \
12400 $(MAKE) stage2-start; \
12401 fi; \
12402 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12403 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12404@endif mpfr-bootstrap
a3ca38d2 12405
108a6f8e 12406
a90ef4bf
JM
12407.PHONY: all-stage3-mpfr maybe-all-stage3-mpfr
12408.PHONY: clean-stage3-mpfr maybe-clean-stage3-mpfr
12409maybe-all-stage3-mpfr:
12410maybe-clean-stage3-mpfr:
12411@if mpfr-bootstrap
12412maybe-all-stage3-mpfr: all-stage3-mpfr
12413all-stage3: all-stage3-mpfr
12414TARGET-stage3-mpfr = $(TARGET-mpfr)
12415all-stage3-mpfr: configure-stage3-mpfr
12416 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
12417 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 12418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12419 TFLAGS="$(STAGE3_TFLAGS)"; \
108a6f8e 12420 $(HOST_EXPORTS) \
a90ef4bf
JM
12421 $(POSTSTAGE1_HOST_EXPORTS) \
12422 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12423 \
a90ef4bf
JM
12424 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12425 CFLAGS="$(STAGE3_CFLAGS)" \
12426 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
12427 LIBCFLAGS="$(STAGE3_CFLAGS)" \
12428 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12429 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12430 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12431 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12432 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 12433 $(TARGET-stage3-mpfr)
108a6f8e 12434
a90ef4bf
JM
12435maybe-clean-stage3-mpfr: clean-stage3-mpfr
12436clean-stage3: clean-stage3-mpfr
12437clean-stage3-mpfr:
12438 @if [ $(current_stage) = stage3 ]; then \
12439 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12440 else \
12441 [ -f $(HOST_SUBDIR)/stage3-mpfr/Makefile ] || exit 0; \
12442 $(MAKE) stage3-start; \
12443 fi; \
12444 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12445 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12446@endif mpfr-bootstrap
108a6f8e 12447
2a4cbe27 12448
a90ef4bf
JM
12449.PHONY: all-stage4-mpfr maybe-all-stage4-mpfr
12450.PHONY: clean-stage4-mpfr maybe-clean-stage4-mpfr
12451maybe-all-stage4-mpfr:
12452maybe-clean-stage4-mpfr:
12453@if mpfr-bootstrap
12454maybe-all-stage4-mpfr: all-stage4-mpfr
12455all-stage4: all-stage4-mpfr
12456TARGET-stage4-mpfr = $(TARGET-mpfr)
12457all-stage4-mpfr: configure-stage4-mpfr
12458 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
12459 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12461 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 12462 $(HOST_EXPORTS) \
a90ef4bf
JM
12463 $(POSTSTAGE1_HOST_EXPORTS) \
12464 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12465 \
a90ef4bf
JM
12466 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12467 CFLAGS="$(STAGE4_CFLAGS)" \
12468 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
12469 LIBCFLAGS="$(STAGE4_CFLAGS)" \
12470 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12471 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12472 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12473 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12474 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 12475 $(TARGET-stage4-mpfr)
2a4cbe27 12476
a90ef4bf
JM
12477maybe-clean-stage4-mpfr: clean-stage4-mpfr
12478clean-stage4: clean-stage4-mpfr
12479clean-stage4-mpfr:
12480 @if [ $(current_stage) = stage4 ]; then \
12481 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12482 else \
12483 [ -f $(HOST_SUBDIR)/stage4-mpfr/Makefile ] || exit 0; \
12484 $(MAKE) stage4-start; \
12485 fi; \
12486 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12487 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12488@endif mpfr-bootstrap
2a4cbe27 12489
2a4cbe27 12490
a90ef4bf
JM
12491.PHONY: all-stageprofile-mpfr maybe-all-stageprofile-mpfr
12492.PHONY: clean-stageprofile-mpfr maybe-clean-stageprofile-mpfr
12493maybe-all-stageprofile-mpfr:
12494maybe-clean-stageprofile-mpfr:
12495@if mpfr-bootstrap
12496maybe-all-stageprofile-mpfr: all-stageprofile-mpfr
12497all-stageprofile: all-stageprofile-mpfr
12498TARGET-stageprofile-mpfr = $(TARGET-mpfr)
12499all-stageprofile-mpfr: configure-stageprofile-mpfr
12500 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
12501 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12503 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 12504 $(HOST_EXPORTS) \
a90ef4bf
JM
12505 $(POSTSTAGE1_HOST_EXPORTS) \
12506 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12507 \
a90ef4bf
JM
12508 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12509 CFLAGS="$(STAGEprofile_CFLAGS)" \
12510 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
12511 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
12512 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12513 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12514 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12515 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12516 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 12517 $(TARGET-stageprofile-mpfr)
2a4cbe27 12518
a90ef4bf
JM
12519maybe-clean-stageprofile-mpfr: clean-stageprofile-mpfr
12520clean-stageprofile: clean-stageprofile-mpfr
12521clean-stageprofile-mpfr:
12522 @if [ $(current_stage) = stageprofile ]; then \
12523 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12524 else \
12525 [ -f $(HOST_SUBDIR)/stageprofile-mpfr/Makefile ] || exit 0; \
12526 $(MAKE) stageprofile-start; \
12527 fi; \
12528 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12529 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12530@endif mpfr-bootstrap
2a4cbe27 12531
a7254363 12532
a90ef4bf
JM
12533.PHONY: all-stagefeedback-mpfr maybe-all-stagefeedback-mpfr
12534.PHONY: clean-stagefeedback-mpfr maybe-clean-stagefeedback-mpfr
12535maybe-all-stagefeedback-mpfr:
12536maybe-clean-stagefeedback-mpfr:
12537@if mpfr-bootstrap
12538maybe-all-stagefeedback-mpfr: all-stagefeedback-mpfr
12539all-stagefeedback: all-stagefeedback-mpfr
12540TARGET-stagefeedback-mpfr = $(TARGET-mpfr)
12541all-stagefeedback-mpfr: configure-stagefeedback-mpfr
12542 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 12543 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12545 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
12546 $(HOST_EXPORTS) \
12547 $(POSTSTAGE1_HOST_EXPORTS) \
12548 cd $(HOST_SUBDIR)/mpfr && \
05a13254 12549 \
a90ef4bf
JM
12550 $(MAKE) $(BASE_FLAGS_TO_PASS) \
12551 CFLAGS="$(STAGEfeedback_CFLAGS)" \
12552 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
12553 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
12554 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
12555 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
12556 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
ce5e165e 12557 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" \
05a13254 12558 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 12559 $(TARGET-stagefeedback-mpfr)
d545f33b 12560
a90ef4bf
JM
12561maybe-clean-stagefeedback-mpfr: clean-stagefeedback-mpfr
12562clean-stagefeedback: clean-stagefeedback-mpfr
12563clean-stagefeedback-mpfr:
12564 @if [ $(current_stage) = stagefeedback ]; then \
12565 [ -f $(HOST_SUBDIR)/mpfr/Makefile ] || exit 0; \
12566 else \
12567 [ -f $(HOST_SUBDIR)/stagefeedback-mpfr/Makefile ] || exit 0; \
12568 $(MAKE) stagefeedback-start; \
12569 fi; \
12570 cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12571 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" clean
a90ef4bf 12572@endif mpfr-bootstrap
d545f33b 12573
2a4cbe27 12574
a7254363 12575
d545f33b
PB
12576
12577
a90ef4bf
JM
12578.PHONY: check-mpfr maybe-check-mpfr
12579maybe-check-mpfr:
12580@if mpfr
12581maybe-check-mpfr: check-mpfr
2a4cbe27 12582
a90ef4bf 12583check-mpfr:
0aed8855 12584 @: $(MAKE); $(unstage)
4fa63067 12585 @r=`${PWD_COMMAND}`; export r; \
b40e3958 12586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 12587 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 12588 (cd $(HOST_SUBDIR)/mpfr && \
ce5e165e 12589 $(MAKE) $(FLAGS_TO_PASS) AM_CFLAGS="-DNO_ASM" $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 12590
a90ef4bf 12591@endif mpfr
2a4cbe27 12592
a90ef4bf
JM
12593.PHONY: install-mpfr maybe-install-mpfr
12594maybe-install-mpfr:
12595@if mpfr
12596maybe-install-mpfr: install-mpfr
2a4cbe27 12597
a90ef4bf 12598install-mpfr:
4fa63067 12599
a90ef4bf 12600@endif mpfr
4fa63067 12601
a90ef4bf
JM
12602.PHONY: install-strip-mpfr maybe-install-strip-mpfr
12603maybe-install-strip-mpfr:
12604@if mpfr
12605maybe-install-strip-mpfr: install-strip-mpfr
9b980aa1 12606
a90ef4bf 12607install-strip-mpfr:
9b980aa1 12608
a90ef4bf 12609@endif mpfr
9b980aa1 12610
56a8fe78 12611# Other targets (info, dvi, pdf, etc.)
4fa63067 12612
a90ef4bf
JM
12613.PHONY: maybe-info-mpfr info-mpfr
12614maybe-info-mpfr:
12615@if mpfr
12616maybe-info-mpfr: info-mpfr
4fa63067 12617
a90ef4bf
JM
12618info-mpfr: \
12619 configure-mpfr
12620 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12621 r=`${PWD_COMMAND}`; export r; \
12622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12623 $(HOST_EXPORTS) \
ce5e165e 12624 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12626 done; \
22121df0 12627 echo "Doing info in mpfr"; \
a90ef4bf 12628 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12631 "RANLIB=$${RANLIB}" \
0c24b341 12632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12633 info) \
2a4cbe27
NN
12634 || exit 1
12635
a90ef4bf 12636@endif mpfr
2a4cbe27 12637
a90ef4bf
JM
12638.PHONY: maybe-dvi-mpfr dvi-mpfr
12639maybe-dvi-mpfr:
12640@if mpfr
12641maybe-dvi-mpfr: dvi-mpfr
2a4cbe27 12642
a90ef4bf
JM
12643dvi-mpfr: \
12644 configure-mpfr
12645 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12646 r=`${PWD_COMMAND}`; export r; \
12647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12648 $(HOST_EXPORTS) \
ce5e165e 12649 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12651 done; \
22121df0 12652 echo "Doing dvi in mpfr"; \
a90ef4bf 12653 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12656 "RANLIB=$${RANLIB}" \
0c24b341 12657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12658 dvi) \
2a4cbe27
NN
12659 || exit 1
12660
a90ef4bf 12661@endif mpfr
2a4cbe27 12662
a90ef4bf
JM
12663.PHONY: maybe-pdf-mpfr pdf-mpfr
12664maybe-pdf-mpfr:
12665@if mpfr
12666maybe-pdf-mpfr: pdf-mpfr
56a8fe78 12667
a90ef4bf
JM
12668pdf-mpfr: \
12669 configure-mpfr
12670 @[ -f ./mpfr/Makefile ] || exit 0; \
56a8fe78
DD
12671 r=`${PWD_COMMAND}`; export r; \
12672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12673 $(HOST_EXPORTS) \
ce5e165e 12674 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
56a8fe78
DD
12675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12676 done; \
22121df0 12677 echo "Doing pdf in mpfr"; \
a90ef4bf 12678 (cd $(HOST_SUBDIR)/mpfr && \
56a8fe78
DD
12679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12681 "RANLIB=$${RANLIB}" \
0c24b341 12682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
12683 pdf) \
12684 || exit 1
12685
a90ef4bf 12686@endif mpfr
56a8fe78 12687
a90ef4bf
JM
12688.PHONY: maybe-html-mpfr html-mpfr
12689maybe-html-mpfr:
12690@if mpfr
12691maybe-html-mpfr: html-mpfr
6d389afc 12692
a90ef4bf
JM
12693html-mpfr: \
12694 configure-mpfr
12695 @[ -f ./mpfr/Makefile ] || exit 0; \
6d389afc
MS
12696 r=`${PWD_COMMAND}`; export r; \
12697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 12698 $(HOST_EXPORTS) \
ce5e165e 12699 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
6d389afc
MS
12700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12701 done; \
22121df0 12702 echo "Doing html in mpfr"; \
a90ef4bf 12703 (cd $(HOST_SUBDIR)/mpfr && \
6d389afc
MS
12704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12706 "RANLIB=$${RANLIB}" \
0c24b341 12707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
12708 html) \
12709 || exit 1
12710
a90ef4bf 12711@endif mpfr
6d389afc 12712
a90ef4bf
JM
12713.PHONY: maybe-TAGS-mpfr TAGS-mpfr
12714maybe-TAGS-mpfr:
12715@if mpfr
12716maybe-TAGS-mpfr: TAGS-mpfr
4fa63067 12717
a90ef4bf
JM
12718TAGS-mpfr: \
12719 configure-mpfr
12720 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12721 r=`${PWD_COMMAND}`; export r; \
12722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12723 $(HOST_EXPORTS) \
ce5e165e 12724 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12726 done; \
22121df0 12727 echo "Doing TAGS in mpfr"; \
a90ef4bf 12728 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12731 "RANLIB=$${RANLIB}" \
0c24b341 12732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12733 TAGS) \
2a4cbe27
NN
12734 || exit 1
12735
a90ef4bf 12736@endif mpfr
2a4cbe27 12737
a90ef4bf
JM
12738.PHONY: maybe-install-info-mpfr install-info-mpfr
12739maybe-install-info-mpfr:
12740@if mpfr
12741maybe-install-info-mpfr: install-info-mpfr
2a4cbe27 12742
a90ef4bf
JM
12743install-info-mpfr: \
12744 configure-mpfr \
12745 info-mpfr
12746 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12747 r=`${PWD_COMMAND}`; export r; \
12748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12749 $(HOST_EXPORTS) \
ce5e165e 12750 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12752 done; \
22121df0 12753 echo "Doing install-info in mpfr"; \
a90ef4bf 12754 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12757 "RANLIB=$${RANLIB}" \
0c24b341 12758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12759 install-info) \
2a4cbe27
NN
12760 || exit 1
12761
a90ef4bf 12762@endif mpfr
2a4cbe27 12763
a90ef4bf
JM
12764.PHONY: maybe-install-pdf-mpfr install-pdf-mpfr
12765maybe-install-pdf-mpfr:
12766@if mpfr
12767maybe-install-pdf-mpfr: install-pdf-mpfr
a3ca38d2 12768
a90ef4bf
JM
12769install-pdf-mpfr: \
12770 configure-mpfr \
12771 pdf-mpfr
12772 @[ -f ./mpfr/Makefile ] || exit 0; \
a3ca38d2
DD
12773 r=`${PWD_COMMAND}`; export r; \
12774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12775 $(HOST_EXPORTS) \
ce5e165e 12776 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
a3ca38d2
DD
12777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12778 done; \
22121df0 12779 echo "Doing install-pdf in mpfr"; \
a90ef4bf 12780 (cd $(HOST_SUBDIR)/mpfr && \
a3ca38d2
DD
12781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12783 "RANLIB=$${RANLIB}" \
0c24b341 12784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
12785 install-pdf) \
12786 || exit 1
12787
a90ef4bf 12788@endif mpfr
a3ca38d2 12789
a90ef4bf
JM
12790.PHONY: maybe-install-html-mpfr install-html-mpfr
12791maybe-install-html-mpfr:
12792@if mpfr
12793maybe-install-html-mpfr: install-html-mpfr
108a6f8e 12794
a90ef4bf
JM
12795install-html-mpfr: \
12796 configure-mpfr \
12797 html-mpfr
12798 @[ -f ./mpfr/Makefile ] || exit 0; \
108a6f8e
CD
12799 r=`${PWD_COMMAND}`; export r; \
12800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12801 $(HOST_EXPORTS) \
ce5e165e 12802 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
108a6f8e
CD
12803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12804 done; \
22121df0 12805 echo "Doing install-html in mpfr"; \
a90ef4bf 12806 (cd $(HOST_SUBDIR)/mpfr && \
108a6f8e
CD
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}" \
108a6f8e
CD
12811 install-html) \
12812 || exit 1
12813
a90ef4bf 12814@endif mpfr
108a6f8e 12815
a90ef4bf
JM
12816.PHONY: maybe-installcheck-mpfr installcheck-mpfr
12817maybe-installcheck-mpfr:
12818@if mpfr
12819maybe-installcheck-mpfr: installcheck-mpfr
2a4cbe27 12820
a90ef4bf
JM
12821installcheck-mpfr: \
12822 configure-mpfr
12823 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12824 r=`${PWD_COMMAND}`; export r; \
12825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12826 $(HOST_EXPORTS) \
ce5e165e 12827 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12829 done; \
22121df0 12830 echo "Doing installcheck in mpfr"; \
a90ef4bf 12831 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12834 "RANLIB=$${RANLIB}" \
0c24b341 12835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12836 installcheck) \
2a4cbe27
NN
12837 || exit 1
12838
a90ef4bf 12839@endif mpfr
2a4cbe27 12840
a90ef4bf
JM
12841.PHONY: maybe-mostlyclean-mpfr mostlyclean-mpfr
12842maybe-mostlyclean-mpfr:
12843@if mpfr
12844maybe-mostlyclean-mpfr: mostlyclean-mpfr
2a4cbe27 12845
a90ef4bf
JM
12846mostlyclean-mpfr:
12847 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12848 r=`${PWD_COMMAND}`; export r; \
12849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12850 $(HOST_EXPORTS) \
ce5e165e 12851 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12853 done; \
22121df0 12854 echo "Doing mostlyclean in mpfr"; \
a90ef4bf 12855 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12858 "RANLIB=$${RANLIB}" \
0c24b341 12859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12860 mostlyclean) \
2a4cbe27
NN
12861 || exit 1
12862
a90ef4bf 12863@endif mpfr
2a4cbe27 12864
a90ef4bf
JM
12865.PHONY: maybe-clean-mpfr clean-mpfr
12866maybe-clean-mpfr:
12867@if mpfr
12868maybe-clean-mpfr: clean-mpfr
2a4cbe27 12869
a90ef4bf
JM
12870clean-mpfr:
12871 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12872 r=`${PWD_COMMAND}`; export r; \
12873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12874 $(HOST_EXPORTS) \
ce5e165e 12875 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12877 done; \
22121df0 12878 echo "Doing clean in mpfr"; \
a90ef4bf 12879 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12882 "RANLIB=$${RANLIB}" \
0c24b341 12883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12884 clean) \
2a4cbe27
NN
12885 || exit 1
12886
a90ef4bf 12887@endif mpfr
2a4cbe27 12888
a90ef4bf
JM
12889.PHONY: maybe-distclean-mpfr distclean-mpfr
12890maybe-distclean-mpfr:
12891@if mpfr
12892maybe-distclean-mpfr: distclean-mpfr
2a4cbe27 12893
a90ef4bf
JM
12894distclean-mpfr:
12895 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12896 r=`${PWD_COMMAND}`; export r; \
12897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12898 $(HOST_EXPORTS) \
ce5e165e 12899 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12901 done; \
22121df0 12902 echo "Doing distclean in mpfr"; \
a90ef4bf 12903 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12906 "RANLIB=$${RANLIB}" \
0c24b341 12907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12908 distclean) \
2a4cbe27
NN
12909 || exit 1
12910
a90ef4bf 12911@endif mpfr
2a4cbe27 12912
a90ef4bf
JM
12913.PHONY: maybe-maintainer-clean-mpfr maintainer-clean-mpfr
12914maybe-maintainer-clean-mpfr:
12915@if mpfr
12916maybe-maintainer-clean-mpfr: maintainer-clean-mpfr
2a4cbe27 12917
a90ef4bf
JM
12918maintainer-clean-mpfr:
12919 @[ -f ./mpfr/Makefile ] || exit 0; \
b40e3958
L
12920 r=`${PWD_COMMAND}`; export r; \
12921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 12922 $(HOST_EXPORTS) \
ce5e165e 12923 for flag in $(EXTRA_HOST_FLAGS) AM_CFLAGS="-DNO_ASM"; do \
2a4cbe27
NN
12924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12925 done; \
22121df0 12926 echo "Doing maintainer-clean in mpfr"; \
a90ef4bf 12927 (cd $(HOST_SUBDIR)/mpfr && \
2a4cbe27
NN
12928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12930 "RANLIB=$${RANLIB}" \
0c24b341 12931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 12932 maintainer-clean) \
2a4cbe27
NN
12933 || exit 1
12934
a90ef4bf 12935@endif mpfr
2a4cbe27 12936
2a4cbe27 12937
a7254363 12938
a90ef4bf
JM
12939.PHONY: configure-mpc maybe-configure-mpc
12940maybe-configure-mpc:
4f0ef2d8 12941@if gcc-bootstrap
a90ef4bf 12942configure-mpc: stage_current
4f0ef2d8 12943@endif gcc-bootstrap
a90ef4bf
JM
12944@if mpc
12945maybe-configure-mpc: configure-mpc
12946configure-mpc:
c52c6897 12947 @r=`${PWD_COMMAND}`; export r; \
d3ed111c 12948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 12949 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
22121df0 12950 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
1f53ca9a 12951 $(HOST_EXPORTS) \
a90ef4bf
JM
12952 echo Configuring in $(HOST_SUBDIR)/mpc; \
12953 cd "$(HOST_SUBDIR)/mpc" || exit 1; \
d3ed111c 12954 case $(srcdir) in \
b00612cc 12955 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 12956 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
b00612cc 12957 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d3ed111c 12958 esac; \
1b6c0831
L
12959 module_srcdir=mpc; \
12960 $(SHELL) \
12961 $$s/$$module_srcdir/configure \
12962 --srcdir=$${topdir}/$$module_srcdir \
4b900473 12963 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e3f56a99 12964 --target=${target_alias} --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@ \
d3ed111c 12965 || exit 1
a90ef4bf 12966@endif mpc
d545f33b
PB
12967
12968
d3ed111c 12969
a90ef4bf
JM
12970.PHONY: configure-stage1-mpc maybe-configure-stage1-mpc
12971maybe-configure-stage1-mpc:
12972@if mpc-bootstrap
12973maybe-configure-stage1-mpc: configure-stage1-mpc
12974configure-stage1-mpc:
12975 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
12976 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
12977 @r=`${PWD_COMMAND}`; export r; \
12978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
12979 TFLAGS="$(STAGE1_TFLAGS)"; \
12980 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 12981 $(HOST_EXPORTS) \
a90ef4bf
JM
12982 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
12983 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
12984 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
12985 echo Configuring stage 1 in $(HOST_SUBDIR)/mpc; \
12986 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
12987 cd $(HOST_SUBDIR)/mpc || exit 1; \
12988 case $(srcdir) in \
12989 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12990 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
12991 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12992 esac; \
1b6c0831
L
12993 module_srcdir=mpc; \
12994 $(SHELL) $$s/$$module_srcdir/configure \
12995 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 12996 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
12997 --target=${target_alias} \
12998 \
a90ef4bf 12999 $(STAGE1_CONFIGURE_FLAGS) \
e3f56a99 13000 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 13001@endif mpc-bootstrap
d3ed111c 13002
a90ef4bf
JM
13003.PHONY: configure-stage2-mpc maybe-configure-stage2-mpc
13004maybe-configure-stage2-mpc:
13005@if mpc-bootstrap
13006maybe-configure-stage2-mpc: configure-stage2-mpc
13007configure-stage2-mpc:
13008 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13009 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
d3ed111c
GK
13010 @r=`${PWD_COMMAND}`; export r; \
13011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13012 TFLAGS="$(STAGE2_TFLAGS)"; \
13013 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
d3ed111c 13014 $(HOST_EXPORTS) \
a90ef4bf
JM
13015 $(POSTSTAGE1_HOST_EXPORTS) \
13016 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13017 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13018 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13019 echo Configuring stage 2 in $(HOST_SUBDIR)/mpc; \
13020 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13021 cd $(HOST_SUBDIR)/mpc || exit 1; \
13022 case $(srcdir) in \
13023 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13024 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13025 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13026 esac; \
1b6c0831
L
13027 module_srcdir=mpc; \
13028 $(SHELL) $$s/$$module_srcdir/configure \
13029 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13030 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13031 --target=${target_alias} \
22121df0 13032 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13033 $(STAGE2_CONFIGURE_FLAGS) \
e3f56a99 13034 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 13035@endif mpc-bootstrap
9b980aa1 13036
a90ef4bf
JM
13037.PHONY: configure-stage3-mpc maybe-configure-stage3-mpc
13038maybe-configure-stage3-mpc:
13039@if mpc-bootstrap
13040maybe-configure-stage3-mpc: configure-stage3-mpc
13041configure-stage3-mpc:
13042 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13043 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
9b980aa1
RW
13044 @r=`${PWD_COMMAND}`; export r; \
13045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
13046 TFLAGS="$(STAGE3_TFLAGS)"; \
13047 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
9b980aa1 13048 $(HOST_EXPORTS) \
a90ef4bf
JM
13049 $(POSTSTAGE1_HOST_EXPORTS) \
13050 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13051 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13052 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13053 echo Configuring stage 3 in $(HOST_SUBDIR)/mpc; \
13054 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13055 cd $(HOST_SUBDIR)/mpc || exit 1; \
13056 case $(srcdir) in \
13057 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13058 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13059 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13060 esac; \
1b6c0831
L
13061 module_srcdir=mpc; \
13062 $(SHELL) $$s/$$module_srcdir/configure \
13063 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13064 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13065 --target=${target_alias} \
22121df0 13066 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13067 $(STAGE3_CONFIGURE_FLAGS) \
e3f56a99 13068 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf 13069@endif mpc-bootstrap
d3ed111c 13070
a90ef4bf
JM
13071.PHONY: configure-stage4-mpc maybe-configure-stage4-mpc
13072maybe-configure-stage4-mpc:
13073@if mpc-bootstrap
13074maybe-configure-stage4-mpc: configure-stage4-mpc
13075configure-stage4-mpc:
13076 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13077 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13078 @r=`${PWD_COMMAND}`; export r; \
13079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13080 TFLAGS="$(STAGE4_TFLAGS)"; \
13081 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13082 $(HOST_EXPORTS) \
13083 $(POSTSTAGE1_HOST_EXPORTS) \
13084 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13085 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13086 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13087 echo Configuring stage 4 in $(HOST_SUBDIR)/mpc; \
13088 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13089 cd $(HOST_SUBDIR)/mpc || exit 1; \
13090 case $(srcdir) in \
13091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13092 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13094 esac; \
1b6c0831
L
13095 module_srcdir=mpc; \
13096 $(SHELL) $$s/$$module_srcdir/configure \
13097 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13098 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13099 --target=${target_alias} \
22121df0 13100 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13101 $(STAGE4_CONFIGURE_FLAGS) \
e3f56a99 13102 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13103@endif mpc-bootstrap
13104
13105.PHONY: configure-stageprofile-mpc maybe-configure-stageprofile-mpc
13106maybe-configure-stageprofile-mpc:
13107@if mpc-bootstrap
13108maybe-configure-stageprofile-mpc: configure-stageprofile-mpc
13109configure-stageprofile-mpc:
13110 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13111 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13112 @r=`${PWD_COMMAND}`; export r; \
13113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13114 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13115 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13116 $(HOST_EXPORTS) \
13117 $(POSTSTAGE1_HOST_EXPORTS) \
13118 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13119 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13120 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13121 echo Configuring stage profile in $(HOST_SUBDIR)/mpc; \
13122 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13123 cd $(HOST_SUBDIR)/mpc || exit 1; \
13124 case $(srcdir) in \
13125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13126 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13128 esac; \
1b6c0831
L
13129 module_srcdir=mpc; \
13130 $(SHELL) $$s/$$module_srcdir/configure \
13131 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13132 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13133 --target=${target_alias} \
22121df0 13134 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13135 $(STAGEprofile_CONFIGURE_FLAGS) \
e3f56a99 13136 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13137@endif mpc-bootstrap
13138
13139.PHONY: configure-stagefeedback-mpc maybe-configure-stagefeedback-mpc
13140maybe-configure-stagefeedback-mpc:
13141@if mpc-bootstrap
13142maybe-configure-stagefeedback-mpc: configure-stagefeedback-mpc
13143configure-stagefeedback-mpc:
13144 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13145 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc
13146 @r=`${PWD_COMMAND}`; export r; \
13147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13148 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13149 test ! -f $(HOST_SUBDIR)/mpc/Makefile || exit 0; \
13150 $(HOST_EXPORTS) \
13151 $(POSTSTAGE1_HOST_EXPORTS) \
13152 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
13153 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
13154 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13155 echo Configuring stage feedback in $(HOST_SUBDIR)/mpc; \
13156 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mpc; \
a90ef4bf
JM
13157 cd $(HOST_SUBDIR)/mpc || exit 1; \
13158 case $(srcdir) in \
13159 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13160 *) topdir=`echo $(HOST_SUBDIR)/mpc/ | \
13161 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13162 esac; \
1b6c0831
L
13163 module_srcdir=mpc; \
13164 $(SHELL) $$s/$$module_srcdir/configure \
13165 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13166 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13167 --target=${target_alias} \
22121df0 13168 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13169 $(STAGEfeedback_CONFIGURE_FLAGS) \
e3f56a99 13170 --disable-shared @extra_mpc_gmp_configure_flags@ @extra_mpc_mpfr_configure_flags@
a90ef4bf
JM
13171@endif mpc-bootstrap
13172
13173
13174
13175
13176
13177.PHONY: all-mpc maybe-all-mpc
13178maybe-all-mpc:
13179@if gcc-bootstrap
13180all-mpc: stage_current
13181@endif gcc-bootstrap
13182@if mpc
13183TARGET-mpc=all
13184maybe-all-mpc: all-mpc
13185all-mpc: configure-mpc
13186 @r=`${PWD_COMMAND}`; export r; \
13187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13188 $(HOST_EXPORTS) \
13189 (cd $(HOST_SUBDIR)/mpc && \
b3676d82 13190 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
13191 $(TARGET-mpc))
13192@endif mpc
13193
13194
13195
13196.PHONY: all-stage1-mpc maybe-all-stage1-mpc
13197.PHONY: clean-stage1-mpc maybe-clean-stage1-mpc
13198maybe-all-stage1-mpc:
13199maybe-clean-stage1-mpc:
13200@if mpc-bootstrap
13201maybe-all-stage1-mpc: all-stage1-mpc
13202all-stage1: all-stage1-mpc
13203TARGET-stage1-mpc = $(TARGET-mpc)
13204all-stage1-mpc: configure-stage1-mpc
13205 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
13206 @r=`${PWD_COMMAND}`; export r; \
13207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13208 TFLAGS="$(STAGE1_TFLAGS)"; \
13209 $(HOST_EXPORTS) \
13210 cd $(HOST_SUBDIR)/mpc && \
05a13254 13211 \
a90ef4bf
JM
13212 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13213 CFLAGS="$(STAGE1_CFLAGS)" \
13214 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
13215 LIBCFLAGS="$(LIBCFLAGS)" \
13216 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13217 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13218 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
13219 $(EXTRA_HOST_FLAGS) \
13220 $(STAGE1_FLAGS_TO_PASS) \
05a13254 13221 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf
JM
13222 $(TARGET-stage1-mpc)
13223
13224maybe-clean-stage1-mpc: clean-stage1-mpc
13225clean-stage1: clean-stage1-mpc
13226clean-stage1-mpc:
13227 @if [ $(current_stage) = stage1 ]; then \
13228 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13229 else \
13230 [ -f $(HOST_SUBDIR)/stage1-mpc/Makefile ] || exit 0; \
13231 $(MAKE) stage1-start; \
13232 fi; \
13233 cd $(HOST_SUBDIR)/mpc && \
13234 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 13235 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13236@endif mpc-bootstrap
13237
13238
13239.PHONY: all-stage2-mpc maybe-all-stage2-mpc
13240.PHONY: clean-stage2-mpc maybe-clean-stage2-mpc
13241maybe-all-stage2-mpc:
13242maybe-clean-stage2-mpc:
13243@if mpc-bootstrap
13244maybe-all-stage2-mpc: all-stage2-mpc
13245all-stage2: all-stage2-mpc
13246TARGET-stage2-mpc = $(TARGET-mpc)
13247all-stage2-mpc: configure-stage2-mpc
13248 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
13249 @r=`${PWD_COMMAND}`; export r; \
13250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13251 TFLAGS="$(STAGE2_TFLAGS)"; \
13252 $(HOST_EXPORTS) \
13253 $(POSTSTAGE1_HOST_EXPORTS) \
13254 cd $(HOST_SUBDIR)/mpc && \
05a13254 13255 \
a90ef4bf
JM
13256 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13257 CFLAGS="$(STAGE2_CFLAGS)" \
13258 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
13259 LIBCFLAGS="$(STAGE2_CFLAGS)" \
13260 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13261 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13262 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13263 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13264 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf
JM
13265 $(TARGET-stage2-mpc)
13266
13267maybe-clean-stage2-mpc: clean-stage2-mpc
13268clean-stage2: clean-stage2-mpc
13269clean-stage2-mpc:
13270 @if [ $(current_stage) = stage2 ]; then \
13271 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13272 else \
13273 [ -f $(HOST_SUBDIR)/stage2-mpc/Makefile ] || exit 0; \
13274 $(MAKE) stage2-start; \
13275 fi; \
13276 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13277 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13278@endif mpc-bootstrap
13279
13280
13281.PHONY: all-stage3-mpc maybe-all-stage3-mpc
13282.PHONY: clean-stage3-mpc maybe-clean-stage3-mpc
13283maybe-all-stage3-mpc:
13284maybe-clean-stage3-mpc:
13285@if mpc-bootstrap
13286maybe-all-stage3-mpc: all-stage3-mpc
13287all-stage3: all-stage3-mpc
13288TARGET-stage3-mpc = $(TARGET-mpc)
13289all-stage3-mpc: configure-stage3-mpc
13290 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
13291 @r=`${PWD_COMMAND}`; export r; \
13292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13293 TFLAGS="$(STAGE3_TFLAGS)"; \
13294 $(HOST_EXPORTS) \
13295 $(POSTSTAGE1_HOST_EXPORTS) \
13296 cd $(HOST_SUBDIR)/mpc && \
05a13254 13297 \
a90ef4bf
JM
13298 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13299 CFLAGS="$(STAGE3_CFLAGS)" \
13300 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
13301 LIBCFLAGS="$(STAGE3_CFLAGS)" \
13302 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13303 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13304 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13305 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13306 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf
JM
13307 $(TARGET-stage3-mpc)
13308
13309maybe-clean-stage3-mpc: clean-stage3-mpc
13310clean-stage3: clean-stage3-mpc
13311clean-stage3-mpc:
13312 @if [ $(current_stage) = stage3 ]; then \
13313 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13314 else \
13315 [ -f $(HOST_SUBDIR)/stage3-mpc/Makefile ] || exit 0; \
13316 $(MAKE) stage3-start; \
13317 fi; \
13318 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13319 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13320@endif mpc-bootstrap
13321
13322
13323.PHONY: all-stage4-mpc maybe-all-stage4-mpc
13324.PHONY: clean-stage4-mpc maybe-clean-stage4-mpc
13325maybe-all-stage4-mpc:
13326maybe-clean-stage4-mpc:
13327@if mpc-bootstrap
13328maybe-all-stage4-mpc: all-stage4-mpc
13329all-stage4: all-stage4-mpc
13330TARGET-stage4-mpc = $(TARGET-mpc)
13331all-stage4-mpc: configure-stage4-mpc
13332 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
13333 @r=`${PWD_COMMAND}`; export r; \
13334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13335 TFLAGS="$(STAGE4_TFLAGS)"; \
13336 $(HOST_EXPORTS) \
13337 $(POSTSTAGE1_HOST_EXPORTS) \
13338 cd $(HOST_SUBDIR)/mpc && \
05a13254 13339 \
a90ef4bf
JM
13340 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13341 CFLAGS="$(STAGE4_CFLAGS)" \
13342 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
13343 LIBCFLAGS="$(STAGE4_CFLAGS)" \
13344 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13345 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13346 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13347 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13348 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf
JM
13349 $(TARGET-stage4-mpc)
13350
13351maybe-clean-stage4-mpc: clean-stage4-mpc
13352clean-stage4: clean-stage4-mpc
13353clean-stage4-mpc:
13354 @if [ $(current_stage) = stage4 ]; then \
13355 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13356 else \
13357 [ -f $(HOST_SUBDIR)/stage4-mpc/Makefile ] || exit 0; \
13358 $(MAKE) stage4-start; \
13359 fi; \
13360 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13361 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13362@endif mpc-bootstrap
13363
13364
13365.PHONY: all-stageprofile-mpc maybe-all-stageprofile-mpc
13366.PHONY: clean-stageprofile-mpc maybe-clean-stageprofile-mpc
13367maybe-all-stageprofile-mpc:
13368maybe-clean-stageprofile-mpc:
13369@if mpc-bootstrap
13370maybe-all-stageprofile-mpc: all-stageprofile-mpc
13371all-stageprofile: all-stageprofile-mpc
13372TARGET-stageprofile-mpc = $(TARGET-mpc)
13373all-stageprofile-mpc: configure-stageprofile-mpc
13374 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
13375 @r=`${PWD_COMMAND}`; export r; \
13376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13377 TFLAGS="$(STAGEprofile_TFLAGS)"; \
13378 $(HOST_EXPORTS) \
13379 $(POSTSTAGE1_HOST_EXPORTS) \
13380 cd $(HOST_SUBDIR)/mpc && \
05a13254 13381 \
a90ef4bf
JM
13382 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13383 CFLAGS="$(STAGEprofile_CFLAGS)" \
13384 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
13385 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
13386 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13387 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13388 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13389 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13390 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
13391 $(TARGET-stageprofile-mpc)
13392
13393maybe-clean-stageprofile-mpc: clean-stageprofile-mpc
13394clean-stageprofile: clean-stageprofile-mpc
13395clean-stageprofile-mpc:
13396 @if [ $(current_stage) = stageprofile ]; then \
13397 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13398 else \
13399 [ -f $(HOST_SUBDIR)/stageprofile-mpc/Makefile ] || exit 0; \
13400 $(MAKE) stageprofile-start; \
13401 fi; \
13402 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13403 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13404@endif mpc-bootstrap
13405
13406
13407.PHONY: all-stagefeedback-mpc maybe-all-stagefeedback-mpc
13408.PHONY: clean-stagefeedback-mpc maybe-clean-stagefeedback-mpc
13409maybe-all-stagefeedback-mpc:
13410maybe-clean-stagefeedback-mpc:
13411@if mpc-bootstrap
13412maybe-all-stagefeedback-mpc: all-stagefeedback-mpc
13413all-stagefeedback: all-stagefeedback-mpc
13414TARGET-stagefeedback-mpc = $(TARGET-mpc)
13415all-stagefeedback-mpc: configure-stagefeedback-mpc
13416 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
13417 @r=`${PWD_COMMAND}`; export r; \
13418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13419 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
13420 $(HOST_EXPORTS) \
13421 $(POSTSTAGE1_HOST_EXPORTS) \
13422 cd $(HOST_SUBDIR)/mpc && \
05a13254 13423 \
a90ef4bf
JM
13424 $(MAKE) $(BASE_FLAGS_TO_PASS) \
13425 CFLAGS="$(STAGEfeedback_CFLAGS)" \
13426 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
13427 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
13428 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
13429 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
13430 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
13431 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 13432 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
13433 $(TARGET-stagefeedback-mpc)
13434
13435maybe-clean-stagefeedback-mpc: clean-stagefeedback-mpc
13436clean-stagefeedback: clean-stagefeedback-mpc
13437clean-stagefeedback-mpc:
13438 @if [ $(current_stage) = stagefeedback ]; then \
13439 [ -f $(HOST_SUBDIR)/mpc/Makefile ] || exit 0; \
13440 else \
13441 [ -f $(HOST_SUBDIR)/stagefeedback-mpc/Makefile ] || exit 0; \
13442 $(MAKE) stagefeedback-start; \
13443 fi; \
13444 cd $(HOST_SUBDIR)/mpc && \
b3676d82 13445 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf
JM
13446@endif mpc-bootstrap
13447
13448
13449
13450
13451
13452.PHONY: check-mpc maybe-check-mpc
13453maybe-check-mpc:
13454@if mpc
13455maybe-check-mpc: check-mpc
13456
13457check-mpc:
13458 @: $(MAKE); $(unstage)
13459 @r=`${PWD_COMMAND}`; export r; \
13460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 13461 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 13462 (cd $(HOST_SUBDIR)/mpc && \
f91ca6bc 13463 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf
JM
13464
13465@endif mpc
13466
13467.PHONY: install-mpc maybe-install-mpc
13468maybe-install-mpc:
13469@if mpc
13470maybe-install-mpc: install-mpc
13471
13472install-mpc:
13473
13474@endif mpc
13475
13476.PHONY: install-strip-mpc maybe-install-strip-mpc
13477maybe-install-strip-mpc:
13478@if mpc
13479maybe-install-strip-mpc: install-strip-mpc
13480
13481install-strip-mpc:
13482
13483@endif mpc
13484
13485# Other targets (info, dvi, pdf, etc.)
13486
13487.PHONY: maybe-info-mpc info-mpc
13488maybe-info-mpc:
13489@if mpc
13490maybe-info-mpc: info-mpc
13491
13492info-mpc: \
13493 configure-mpc
13494 @[ -f ./mpc/Makefile ] || exit 0; \
13495 r=`${PWD_COMMAND}`; export r; \
a4fd3374
DD
13496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13497 $(HOST_EXPORTS) \
13498 for flag in $(EXTRA_HOST_FLAGS) ; do \
13499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13500 done; \
22121df0 13501 echo "Doing info in mpc"; \
a90ef4bf 13502 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13505 "RANLIB=$${RANLIB}" \
0c24b341 13506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13507 info) \
13508 || exit 1
d3ed111c 13509
a90ef4bf 13510@endif mpc
d3ed111c 13511
a90ef4bf
JM
13512.PHONY: maybe-dvi-mpc dvi-mpc
13513maybe-dvi-mpc:
13514@if mpc
13515maybe-dvi-mpc: dvi-mpc
d3ed111c 13516
a90ef4bf
JM
13517dvi-mpc: \
13518 configure-mpc
13519 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13520 r=`${PWD_COMMAND}`; export r; \
13521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13522 $(HOST_EXPORTS) \
13523 for flag in $(EXTRA_HOST_FLAGS) ; do \
13524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13525 done; \
22121df0 13526 echo "Doing dvi in mpc"; \
a90ef4bf 13527 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13530 "RANLIB=$${RANLIB}" \
0c24b341 13531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13532 dvi) \
13533 || exit 1
d3ed111c 13534
a90ef4bf 13535@endif mpc
d3ed111c 13536
a90ef4bf
JM
13537.PHONY: maybe-pdf-mpc pdf-mpc
13538maybe-pdf-mpc:
13539@if mpc
13540maybe-pdf-mpc: pdf-mpc
56a8fe78 13541
a90ef4bf
JM
13542pdf-mpc: \
13543 configure-mpc
13544 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13545 r=`${PWD_COMMAND}`; export r; \
13546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13547 $(HOST_EXPORTS) \
13548 for flag in $(EXTRA_HOST_FLAGS) ; do \
13549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13550 done; \
22121df0 13551 echo "Doing pdf in mpc"; \
a90ef4bf 13552 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13555 "RANLIB=$${RANLIB}" \
0c24b341 13556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13557 pdf) \
13558 || exit 1
56a8fe78 13559
a90ef4bf 13560@endif mpc
56a8fe78 13561
a90ef4bf
JM
13562.PHONY: maybe-html-mpc html-mpc
13563maybe-html-mpc:
13564@if mpc
13565maybe-html-mpc: html-mpc
6d389afc 13566
a90ef4bf
JM
13567html-mpc: \
13568 configure-mpc
13569 @[ -f ./mpc/Makefile ] || exit 0; \
6d389afc
MS
13570 r=`${PWD_COMMAND}`; export r; \
13571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
13572 $(HOST_EXPORTS) \
13573 for flag in $(EXTRA_HOST_FLAGS) ; do \
13574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13575 done; \
22121df0 13576 echo "Doing html in mpc"; \
a90ef4bf 13577 (cd $(HOST_SUBDIR)/mpc && \
6d389afc
MS
13578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13580 "RANLIB=$${RANLIB}" \
0c24b341 13581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
13582 html) \
13583 || exit 1
13584
a90ef4bf 13585@endif mpc
d3ed111c 13586
a90ef4bf
JM
13587.PHONY: maybe-TAGS-mpc TAGS-mpc
13588maybe-TAGS-mpc:
13589@if mpc
13590maybe-TAGS-mpc: TAGS-mpc
d3ed111c 13591
a90ef4bf
JM
13592TAGS-mpc: \
13593 configure-mpc
13594 @[ -f ./mpc/Makefile ] || exit 0; \
13595 r=`${PWD_COMMAND}`; export r; \
13596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4fd3374
DD
13597 $(HOST_EXPORTS) \
13598 for flag in $(EXTRA_HOST_FLAGS) ; do \
13599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13600 done; \
22121df0 13601 echo "Doing TAGS in mpc"; \
a90ef4bf
JM
13602 (cd $(HOST_SUBDIR)/mpc && \
13603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13605 "RANLIB=$${RANLIB}" \
13606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
13607 TAGS) \
13608 || exit 1
13609
13610@endif mpc
13611
13612.PHONY: maybe-install-info-mpc install-info-mpc
13613maybe-install-info-mpc:
13614@if mpc
13615maybe-install-info-mpc: install-info-mpc
13616
13617install-info-mpc: \
13618 configure-mpc \
13619 info-mpc
13620 @[ -f ./mpc/Makefile ] || exit 0; \
13621 r=`${PWD_COMMAND}`; export r; \
13622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13623 $(HOST_EXPORTS) \
13624 for flag in $(EXTRA_HOST_FLAGS) ; do \
13625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13626 done; \
22121df0 13627 echo "Doing install-info in mpc"; \
a90ef4bf 13628 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13631 "RANLIB=$${RANLIB}" \
0c24b341 13632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13633 install-info) \
13634 || exit 1
d3ed111c 13635
a90ef4bf 13636@endif mpc
d3ed111c 13637
a90ef4bf
JM
13638.PHONY: maybe-install-pdf-mpc install-pdf-mpc
13639maybe-install-pdf-mpc:
13640@if mpc
13641maybe-install-pdf-mpc: install-pdf-mpc
a3ca38d2 13642
a90ef4bf
JM
13643install-pdf-mpc: \
13644 configure-mpc \
13645 pdf-mpc
13646 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13647 r=`${PWD_COMMAND}`; export r; \
13648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13649 $(HOST_EXPORTS) \
13650 for flag in $(EXTRA_HOST_FLAGS) ; do \
13651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13652 done; \
22121df0 13653 echo "Doing install-pdf in mpc"; \
a90ef4bf 13654 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13657 "RANLIB=$${RANLIB}" \
0c24b341 13658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13659 install-pdf) \
13660 || exit 1
a3ca38d2 13661
a90ef4bf 13662@endif mpc
a3ca38d2 13663
a90ef4bf
JM
13664.PHONY: maybe-install-html-mpc install-html-mpc
13665maybe-install-html-mpc:
13666@if mpc
13667maybe-install-html-mpc: install-html-mpc
108a6f8e 13668
a90ef4bf
JM
13669install-html-mpc: \
13670 configure-mpc \
13671 html-mpc
13672 @[ -f ./mpc/Makefile ] || exit 0; \
108a6f8e
CD
13673 r=`${PWD_COMMAND}`; export r; \
13674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
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 install-html in mpc"; \
a90ef4bf 13680 (cd $(HOST_SUBDIR)/mpc && \
108a6f8e
CD
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}" \
108a6f8e
CD
13685 install-html) \
13686 || exit 1
13687
a90ef4bf 13688@endif mpc
108a6f8e 13689
a90ef4bf
JM
13690.PHONY: maybe-installcheck-mpc installcheck-mpc
13691maybe-installcheck-mpc:
13692@if mpc
13693maybe-installcheck-mpc: installcheck-mpc
d3ed111c 13694
a90ef4bf
JM
13695installcheck-mpc: \
13696 configure-mpc
13697 @[ -f ./mpc/Makefile ] || exit 0; \
a4fd3374
DD
13698 r=`${PWD_COMMAND}`; export r; \
13699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13700 $(HOST_EXPORTS) \
13701 for flag in $(EXTRA_HOST_FLAGS) ; do \
13702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13703 done; \
22121df0 13704 echo "Doing installcheck in mpc"; \
a90ef4bf 13705 (cd $(HOST_SUBDIR)/mpc && \
a4fd3374
DD
13706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13708 "RANLIB=$${RANLIB}" \
0c24b341 13709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a4fd3374
DD
13710 installcheck) \
13711 || exit 1
d3ed111c 13712
a90ef4bf 13713@endif mpc
d3ed111c 13714
a90ef4bf
JM
13715.PHONY: maybe-mostlyclean-mpc mostlyclean-mpc
13716maybe-mostlyclean-mpc:
13717@if mpc
13718maybe-mostlyclean-mpc: mostlyclean-mpc
d3ed111c 13719
a90ef4bf
JM
13720mostlyclean-mpc:
13721 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13722 r=`${PWD_COMMAND}`; export r; \
13723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13724 $(HOST_EXPORTS) \
13725 for flag in $(EXTRA_HOST_FLAGS) ; do \
13726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13727 done; \
22121df0 13728 echo "Doing mostlyclean in mpc"; \
a90ef4bf 13729 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13732 "RANLIB=$${RANLIB}" \
0c24b341 13733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13734 mostlyclean) \
13735 || exit 1
13736
a90ef4bf 13737@endif mpc
d3ed111c 13738
a90ef4bf
JM
13739.PHONY: maybe-clean-mpc clean-mpc
13740maybe-clean-mpc:
13741@if mpc
13742maybe-clean-mpc: clean-mpc
d3ed111c 13743
a90ef4bf
JM
13744clean-mpc:
13745 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13746 r=`${PWD_COMMAND}`; export r; \
13747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13748 $(HOST_EXPORTS) \
13749 for flag in $(EXTRA_HOST_FLAGS) ; do \
13750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13751 done; \
22121df0 13752 echo "Doing clean in mpc"; \
a90ef4bf 13753 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13756 "RANLIB=$${RANLIB}" \
0c24b341 13757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13758 clean) \
13759 || exit 1
13760
a90ef4bf 13761@endif mpc
d3ed111c 13762
a90ef4bf
JM
13763.PHONY: maybe-distclean-mpc distclean-mpc
13764maybe-distclean-mpc:
13765@if mpc
13766maybe-distclean-mpc: distclean-mpc
d3ed111c 13767
a90ef4bf
JM
13768distclean-mpc:
13769 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13770 r=`${PWD_COMMAND}`; export r; \
13771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13772 $(HOST_EXPORTS) \
13773 for flag in $(EXTRA_HOST_FLAGS) ; do \
13774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13775 done; \
22121df0 13776 echo "Doing distclean in mpc"; \
a90ef4bf 13777 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13780 "RANLIB=$${RANLIB}" \
0c24b341 13781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13782 distclean) \
13783 || exit 1
13784
a90ef4bf 13785@endif mpc
d3ed111c 13786
a90ef4bf
JM
13787.PHONY: maybe-maintainer-clean-mpc maintainer-clean-mpc
13788maybe-maintainer-clean-mpc:
13789@if mpc
13790maybe-maintainer-clean-mpc: maintainer-clean-mpc
d3ed111c 13791
a90ef4bf
JM
13792maintainer-clean-mpc:
13793 @[ -f ./mpc/Makefile ] || exit 0; \
d3ed111c
GK
13794 r=`${PWD_COMMAND}`; export r; \
13795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d3ed111c
GK
13796 $(HOST_EXPORTS) \
13797 for flag in $(EXTRA_HOST_FLAGS) ; do \
13798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13799 done; \
22121df0 13800 echo "Doing maintainer-clean in mpc"; \
a90ef4bf 13801 (cd $(HOST_SUBDIR)/mpc && \
d3ed111c
GK
13802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13804 "RANLIB=$${RANLIB}" \
0c24b341 13805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
d3ed111c
GK
13806 maintainer-clean) \
13807 || exit 1
13808
a90ef4bf 13809@endif mpc
d3ed111c
GK
13810
13811
a7254363 13812
7ec59b9e
L
13813.PHONY: configure-isl maybe-configure-isl
13814maybe-configure-isl:
4f0ef2d8 13815@if gcc-bootstrap
7ec59b9e 13816configure-isl: stage_current
4f0ef2d8 13817@endif gcc-bootstrap
7ec59b9e
L
13818@if isl
13819maybe-configure-isl: configure-isl
13820configure-isl:
c52c6897 13821 @r=`${PWD_COMMAND}`; export r; \
4fa63067 13822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ec59b9e 13823 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
22121df0 13824 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
1f53ca9a 13825 $(HOST_EXPORTS) \
7ec59b9e
L
13826 echo Configuring in $(HOST_SUBDIR)/isl; \
13827 cd "$(HOST_SUBDIR)/isl" || exit 1; \
4fa63067 13828 case $(srcdir) in \
b00612cc 13829 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13830 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
b00612cc 13831 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 13832 esac; \
1b6c0831
L
13833 module_srcdir=isl; \
13834 $(SHELL) \
13835 $$s/$$module_srcdir/configure \
13836 --srcdir=$${topdir}/$$module_srcdir \
4b900473 13837 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13838 --target=${target_alias} --disable-shared @extra_isl_gmp_configure_flags@ \
4fa63067 13839 || exit 1
7ec59b9e 13840@endif isl
4fa63067 13841
a7254363
PB
13842
13843
7ec59b9e
L
13844.PHONY: configure-stage1-isl maybe-configure-stage1-isl
13845maybe-configure-stage1-isl:
13846@if isl-bootstrap
13847maybe-configure-stage1-isl: configure-stage1-isl
13848configure-stage1-isl:
a90ef4bf 13849 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
7ec59b9e 13850 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13851 @r=`${PWD_COMMAND}`; export r; \
13852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13853 TFLAGS="$(STAGE1_TFLAGS)"; \
7ec59b9e 13854 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13855 $(HOST_EXPORTS) \
13856 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
13857 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
13858 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
13859 echo Configuring stage 1 in $(HOST_SUBDIR)/isl; \
13860 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13861 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13862 case $(srcdir) in \
13863 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13864 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13865 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13866 esac; \
1b6c0831
L
13867 module_srcdir=isl; \
13868 $(SHELL) $$s/$$module_srcdir/configure \
13869 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13870 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
13871 --target=${target_alias} \
13872 \
a90ef4bf 13873 $(STAGE1_CONFIGURE_FLAGS) \
7ec59b9e
L
13874 --disable-shared @extra_isl_gmp_configure_flags@
13875@endif isl-bootstrap
13876
13877.PHONY: configure-stage2-isl maybe-configure-stage2-isl
13878maybe-configure-stage2-isl:
13879@if isl-bootstrap
13880maybe-configure-stage2-isl: configure-stage2-isl
13881configure-stage2-isl:
a90ef4bf 13882 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
7ec59b9e 13883 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13884 @r=`${PWD_COMMAND}`; export r; \
13885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13886 TFLAGS="$(STAGE2_TFLAGS)"; \
7ec59b9e 13887 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13888 $(HOST_EXPORTS) \
13889 $(POSTSTAGE1_HOST_EXPORTS) \
13890 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
13891 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
13892 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13893 echo Configuring stage 2 in $(HOST_SUBDIR)/isl; \
13894 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13895 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13896 case $(srcdir) in \
13897 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13898 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13899 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13900 esac; \
1b6c0831
L
13901 module_srcdir=isl; \
13902 $(SHELL) $$s/$$module_srcdir/configure \
13903 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13904 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13905 --target=${target_alias} \
22121df0 13906 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13907 $(STAGE2_CONFIGURE_FLAGS) \
7ec59b9e
L
13908 --disable-shared @extra_isl_gmp_configure_flags@
13909@endif isl-bootstrap
13910
13911.PHONY: configure-stage3-isl maybe-configure-stage3-isl
13912maybe-configure-stage3-isl:
13913@if isl-bootstrap
13914maybe-configure-stage3-isl: configure-stage3-isl
13915configure-stage3-isl:
a90ef4bf 13916 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
7ec59b9e 13917 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
4fa63067
NN
13918 @r=`${PWD_COMMAND}`; export r; \
13919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 13920 TFLAGS="$(STAGE3_TFLAGS)"; \
7ec59b9e 13921 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13922 $(HOST_EXPORTS) \
13923 $(POSTSTAGE1_HOST_EXPORTS) \
13924 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
13925 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
13926 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13927 echo Configuring stage 3 in $(HOST_SUBDIR)/isl; \
13928 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13929 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13930 case $(srcdir) in \
13931 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13932 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13933 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13934 esac; \
1b6c0831
L
13935 module_srcdir=isl; \
13936 $(SHELL) $$s/$$module_srcdir/configure \
13937 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13938 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13939 --target=${target_alias} \
22121df0 13940 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13941 $(STAGE3_CONFIGURE_FLAGS) \
7ec59b9e
L
13942 --disable-shared @extra_isl_gmp_configure_flags@
13943@endif isl-bootstrap
13944
13945.PHONY: configure-stage4-isl maybe-configure-stage4-isl
13946maybe-configure-stage4-isl:
13947@if isl-bootstrap
13948maybe-configure-stage4-isl: configure-stage4-isl
13949configure-stage4-isl:
a90ef4bf 13950 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
7ec59b9e 13951 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13952 @r=`${PWD_COMMAND}`; export r; \
13953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13954 TFLAGS="$(STAGE4_TFLAGS)"; \
7ec59b9e 13955 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13956 $(HOST_EXPORTS) \
13957 $(POSTSTAGE1_HOST_EXPORTS) \
13958 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
13959 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
13960 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13961 echo Configuring stage 4 in $(HOST_SUBDIR)/isl; \
13962 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13963 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13964 case $(srcdir) in \
13965 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 13966 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
13967 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
13968 esac; \
1b6c0831
L
13969 module_srcdir=isl; \
13970 $(SHELL) $$s/$$module_srcdir/configure \
13971 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 13972 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 13973 --target=${target_alias} \
22121df0 13974 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 13975 $(STAGE4_CONFIGURE_FLAGS) \
7ec59b9e
L
13976 --disable-shared @extra_isl_gmp_configure_flags@
13977@endif isl-bootstrap
13978
13979.PHONY: configure-stageprofile-isl maybe-configure-stageprofile-isl
13980maybe-configure-stageprofile-isl:
13981@if isl-bootstrap
13982maybe-configure-stageprofile-isl: configure-stageprofile-isl
13983configure-stageprofile-isl:
a90ef4bf 13984 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
7ec59b9e 13985 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
13986 @r=`${PWD_COMMAND}`; export r; \
13987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13988 TFLAGS="$(STAGEprofile_TFLAGS)"; \
7ec59b9e 13989 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
13990 $(HOST_EXPORTS) \
13991 $(POSTSTAGE1_HOST_EXPORTS) \
13992 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
13993 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
13994 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
13995 echo Configuring stage profile in $(HOST_SUBDIR)/isl; \
13996 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 13997 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
13998 case $(srcdir) in \
13999 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 14000 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
14001 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14002 esac; \
1b6c0831
L
14003 module_srcdir=isl; \
14004 $(SHELL) $$s/$$module_srcdir/configure \
14005 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 14006 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14007 --target=${target_alias} \
22121df0 14008 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 14009 $(STAGEprofile_CONFIGURE_FLAGS) \
7ec59b9e
L
14010 --disable-shared @extra_isl_gmp_configure_flags@
14011@endif isl-bootstrap
14012
14013.PHONY: configure-stagefeedback-isl maybe-configure-stagefeedback-isl
14014maybe-configure-stagefeedback-isl:
14015@if isl-bootstrap
14016maybe-configure-stagefeedback-isl: configure-stagefeedback-isl
14017configure-stagefeedback-isl:
a90ef4bf 14018 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
7ec59b9e 14019 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl
a90ef4bf
JM
14020 @r=`${PWD_COMMAND}`; export r; \
14021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14022 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
7ec59b9e 14023 test ! -f $(HOST_SUBDIR)/isl/Makefile || exit 0; \
a90ef4bf
JM
14024 $(HOST_EXPORTS) \
14025 $(POSTSTAGE1_HOST_EXPORTS) \
14026 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
14027 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14028 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14029 echo Configuring stage feedback in $(HOST_SUBDIR)/isl; \
14030 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/isl; \
7ec59b9e 14031 cd $(HOST_SUBDIR)/isl || exit 1; \
a90ef4bf
JM
14032 case $(srcdir) in \
14033 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7ec59b9e 14034 *) topdir=`echo $(HOST_SUBDIR)/isl/ | \
a90ef4bf
JM
14035 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14036 esac; \
1b6c0831
L
14037 module_srcdir=isl; \
14038 $(SHELL) $$s/$$module_srcdir/configure \
14039 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 14040 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14041 --target=${target_alias} \
22121df0 14042 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 14043 $(STAGEfeedback_CONFIGURE_FLAGS) \
7ec59b9e
L
14044 --disable-shared @extra_isl_gmp_configure_flags@
14045@endif isl-bootstrap
d545f33b 14046
4fa63067 14047
4fa63067
NN
14048
14049
4fa63067 14050
7ec59b9e
L
14051.PHONY: all-isl maybe-all-isl
14052maybe-all-isl:
a90ef4bf 14053@if gcc-bootstrap
7ec59b9e 14054all-isl: stage_current
a90ef4bf 14055@endif gcc-bootstrap
7ec59b9e
L
14056@if isl
14057TARGET-isl=all
14058maybe-all-isl: all-isl
14059all-isl: configure-isl
4fa63067
NN
14060 @r=`${PWD_COMMAND}`; export r; \
14061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14062 $(HOST_EXPORTS) \
7ec59b9e 14063 (cd $(HOST_SUBDIR)/isl && \
b3676d82 14064 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) V=1 \
7ec59b9e
L
14065 $(TARGET-isl))
14066@endif isl
14067
14068
14069
14070.PHONY: all-stage1-isl maybe-all-stage1-isl
14071.PHONY: clean-stage1-isl maybe-clean-stage1-isl
14072maybe-all-stage1-isl:
14073maybe-clean-stage1-isl:
14074@if isl-bootstrap
14075maybe-all-stage1-isl: all-stage1-isl
14076all-stage1: all-stage1-isl
14077TARGET-stage1-isl = $(TARGET-isl)
14078all-stage1-isl: configure-stage1-isl
a90ef4bf 14079 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
9b980aa1
RW
14080 @r=`${PWD_COMMAND}`; export r; \
14081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
14082 TFLAGS="$(STAGE1_TFLAGS)"; \
14083 $(HOST_EXPORTS) \
7ec59b9e 14084 cd $(HOST_SUBDIR)/isl && \
05a13254 14085 \
a90ef4bf
JM
14086 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14087 CFLAGS="$(STAGE1_CFLAGS)" \
14088 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
14089 LIBCFLAGS="$(LIBCFLAGS)" \
14090 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14091 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14092 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14093 $(EXTRA_HOST_FLAGS) \
14094 $(STAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14095 TFLAGS="$(STAGE1_TFLAGS)" \
7ec59b9e 14096 $(TARGET-stage1-isl)
9b980aa1 14097
7ec59b9e
L
14098maybe-clean-stage1-isl: clean-stage1-isl
14099clean-stage1: clean-stage1-isl
14100clean-stage1-isl:
a90ef4bf 14101 @if [ $(current_stage) = stage1 ]; then \
7ec59b9e 14102 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14103 else \
7ec59b9e 14104 [ -f $(HOST_SUBDIR)/stage1-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14105 $(MAKE) stage1-start; \
14106 fi; \
7ec59b9e 14107 cd $(HOST_SUBDIR)/isl && \
a90ef4bf 14108 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14109 $(STAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14110@endif isl-bootstrap
14111
14112
14113.PHONY: all-stage2-isl maybe-all-stage2-isl
14114.PHONY: clean-stage2-isl maybe-clean-stage2-isl
14115maybe-all-stage2-isl:
14116maybe-clean-stage2-isl:
14117@if isl-bootstrap
14118maybe-all-stage2-isl: all-stage2-isl
14119all-stage2: all-stage2-isl
14120TARGET-stage2-isl = $(TARGET-isl)
14121all-stage2-isl: configure-stage2-isl
a90ef4bf
JM
14122 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
14123 @r=`${PWD_COMMAND}`; export r; \
14124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14125 TFLAGS="$(STAGE2_TFLAGS)"; \
14126 $(HOST_EXPORTS) \
14127 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14128 cd $(HOST_SUBDIR)/isl && \
05a13254 14129 \
a90ef4bf
JM
14130 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14131 CFLAGS="$(STAGE2_CFLAGS)" \
14132 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
14133 LIBCFLAGS="$(STAGE2_CFLAGS)" \
14134 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14135 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14136 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14137 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14138 TFLAGS="$(STAGE2_TFLAGS)" \
7ec59b9e 14139 $(TARGET-stage2-isl)
a90ef4bf 14140
7ec59b9e
L
14141maybe-clean-stage2-isl: clean-stage2-isl
14142clean-stage2: clean-stage2-isl
14143clean-stage2-isl:
a90ef4bf 14144 @if [ $(current_stage) = stage2 ]; then \
7ec59b9e 14145 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14146 else \
7ec59b9e 14147 [ -f $(HOST_SUBDIR)/stage2-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14148 $(MAKE) stage2-start; \
14149 fi; \
7ec59b9e 14150 cd $(HOST_SUBDIR)/isl && \
b3676d82 14151 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14152@endif isl-bootstrap
14153
14154
14155.PHONY: all-stage3-isl maybe-all-stage3-isl
14156.PHONY: clean-stage3-isl maybe-clean-stage3-isl
14157maybe-all-stage3-isl:
14158maybe-clean-stage3-isl:
14159@if isl-bootstrap
14160maybe-all-stage3-isl: all-stage3-isl
14161all-stage3: all-stage3-isl
14162TARGET-stage3-isl = $(TARGET-isl)
14163all-stage3-isl: configure-stage3-isl
a90ef4bf
JM
14164 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
14165 @r=`${PWD_COMMAND}`; export r; \
14166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14167 TFLAGS="$(STAGE3_TFLAGS)"; \
14168 $(HOST_EXPORTS) \
14169 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14170 cd $(HOST_SUBDIR)/isl && \
05a13254 14171 \
a90ef4bf
JM
14172 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14173 CFLAGS="$(STAGE3_CFLAGS)" \
14174 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
14175 LIBCFLAGS="$(STAGE3_CFLAGS)" \
14176 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14177 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14178 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14179 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14180 TFLAGS="$(STAGE3_TFLAGS)" \
7ec59b9e 14181 $(TARGET-stage3-isl)
a90ef4bf 14182
7ec59b9e
L
14183maybe-clean-stage3-isl: clean-stage3-isl
14184clean-stage3: clean-stage3-isl
14185clean-stage3-isl:
a90ef4bf 14186 @if [ $(current_stage) = stage3 ]; then \
7ec59b9e 14187 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14188 else \
7ec59b9e 14189 [ -f $(HOST_SUBDIR)/stage3-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14190 $(MAKE) stage3-start; \
14191 fi; \
7ec59b9e 14192 cd $(HOST_SUBDIR)/isl && \
b3676d82 14193 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14194@endif isl-bootstrap
14195
14196
14197.PHONY: all-stage4-isl maybe-all-stage4-isl
14198.PHONY: clean-stage4-isl maybe-clean-stage4-isl
14199maybe-all-stage4-isl:
14200maybe-clean-stage4-isl:
14201@if isl-bootstrap
14202maybe-all-stage4-isl: all-stage4-isl
14203all-stage4: all-stage4-isl
14204TARGET-stage4-isl = $(TARGET-isl)
14205all-stage4-isl: configure-stage4-isl
a90ef4bf
JM
14206 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
14207 @r=`${PWD_COMMAND}`; export r; \
14208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14209 TFLAGS="$(STAGE4_TFLAGS)"; \
14210 $(HOST_EXPORTS) \
14211 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14212 cd $(HOST_SUBDIR)/isl && \
05a13254 14213 \
a90ef4bf
JM
14214 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14215 CFLAGS="$(STAGE4_CFLAGS)" \
14216 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
14217 LIBCFLAGS="$(STAGE4_CFLAGS)" \
14218 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14219 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14220 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14221 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14222 TFLAGS="$(STAGE4_TFLAGS)" \
7ec59b9e 14223 $(TARGET-stage4-isl)
a90ef4bf 14224
7ec59b9e
L
14225maybe-clean-stage4-isl: clean-stage4-isl
14226clean-stage4: clean-stage4-isl
14227clean-stage4-isl:
a90ef4bf 14228 @if [ $(current_stage) = stage4 ]; then \
7ec59b9e 14229 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14230 else \
7ec59b9e 14231 [ -f $(HOST_SUBDIR)/stage4-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14232 $(MAKE) stage4-start; \
14233 fi; \
7ec59b9e 14234 cd $(HOST_SUBDIR)/isl && \
b3676d82 14235 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14236@endif isl-bootstrap
14237
14238
14239.PHONY: all-stageprofile-isl maybe-all-stageprofile-isl
14240.PHONY: clean-stageprofile-isl maybe-clean-stageprofile-isl
14241maybe-all-stageprofile-isl:
14242maybe-clean-stageprofile-isl:
14243@if isl-bootstrap
14244maybe-all-stageprofile-isl: all-stageprofile-isl
14245all-stageprofile: all-stageprofile-isl
14246TARGET-stageprofile-isl = $(TARGET-isl)
14247all-stageprofile-isl: configure-stageprofile-isl
a90ef4bf
JM
14248 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
14249 @r=`${PWD_COMMAND}`; export r; \
14250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14251 TFLAGS="$(STAGEprofile_TFLAGS)"; \
14252 $(HOST_EXPORTS) \
14253 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14254 cd $(HOST_SUBDIR)/isl && \
05a13254 14255 \
a90ef4bf
JM
14256 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14257 CFLAGS="$(STAGEprofile_CFLAGS)" \
14258 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
14259 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
14260 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14261 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14262 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14263 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14264 TFLAGS="$(STAGEprofile_TFLAGS)" \
7ec59b9e 14265 $(TARGET-stageprofile-isl)
a90ef4bf 14266
7ec59b9e
L
14267maybe-clean-stageprofile-isl: clean-stageprofile-isl
14268clean-stageprofile: clean-stageprofile-isl
14269clean-stageprofile-isl:
a90ef4bf 14270 @if [ $(current_stage) = stageprofile ]; then \
7ec59b9e 14271 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14272 else \
7ec59b9e 14273 [ -f $(HOST_SUBDIR)/stageprofile-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14274 $(MAKE) stageprofile-start; \
14275 fi; \
7ec59b9e 14276 cd $(HOST_SUBDIR)/isl && \
b3676d82 14277 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e
L
14278@endif isl-bootstrap
14279
14280
14281.PHONY: all-stagefeedback-isl maybe-all-stagefeedback-isl
14282.PHONY: clean-stagefeedback-isl maybe-clean-stagefeedback-isl
14283maybe-all-stagefeedback-isl:
14284maybe-clean-stagefeedback-isl:
14285@if isl-bootstrap
14286maybe-all-stagefeedback-isl: all-stagefeedback-isl
14287all-stagefeedback: all-stagefeedback-isl
14288TARGET-stagefeedback-isl = $(TARGET-isl)
14289all-stagefeedback-isl: configure-stagefeedback-isl
a90ef4bf
JM
14290 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
14291 @r=`${PWD_COMMAND}`; export r; \
14292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14293 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
14294 $(HOST_EXPORTS) \
14295 $(POSTSTAGE1_HOST_EXPORTS) \
7ec59b9e 14296 cd $(HOST_SUBDIR)/isl && \
05a13254 14297 \
a90ef4bf
JM
14298 $(MAKE) $(BASE_FLAGS_TO_PASS) \
14299 CFLAGS="$(STAGEfeedback_CFLAGS)" \
14300 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
14301 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
14302 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14303 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14304 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
7ec59b9e 14305 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 \
05a13254 14306 TFLAGS="$(STAGEfeedback_TFLAGS)" \
7ec59b9e 14307 $(TARGET-stagefeedback-isl)
a90ef4bf 14308
7ec59b9e
L
14309maybe-clean-stagefeedback-isl: clean-stagefeedback-isl
14310clean-stagefeedback: clean-stagefeedback-isl
14311clean-stagefeedback-isl:
a90ef4bf 14312 @if [ $(current_stage) = stagefeedback ]; then \
7ec59b9e 14313 [ -f $(HOST_SUBDIR)/isl/Makefile ] || exit 0; \
a90ef4bf 14314 else \
7ec59b9e 14315 [ -f $(HOST_SUBDIR)/stagefeedback-isl/Makefile ] || exit 0; \
a90ef4bf
JM
14316 $(MAKE) stagefeedback-start; \
14317 fi; \
7ec59b9e 14318 cd $(HOST_SUBDIR)/isl && \
b3676d82 14319 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) V=1 clean
7ec59b9e 14320@endif isl-bootstrap
a90ef4bf
JM
14321
14322
14323
14324
14325
7ec59b9e
L
14326.PHONY: check-isl maybe-check-isl
14327maybe-check-isl:
14328@if isl
14329maybe-check-isl: check-isl
a90ef4bf 14330
7ec59b9e 14331check-isl:
0aed8855 14332 @: $(MAKE); $(unstage)
a90ef4bf
JM
14333 @r=`${PWD_COMMAND}`; export r; \
14334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 14335 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
7ec59b9e 14336 (cd $(HOST_SUBDIR)/isl && \
f91ca6bc 14337 $(MAKE) $(FLAGS_TO_PASS) V=1 $(EXTRA_BOOTSTRAP_FLAGS) check)
a90ef4bf 14338
7ec59b9e 14339@endif isl
a90ef4bf 14340
7ec59b9e
L
14341.PHONY: install-isl maybe-install-isl
14342maybe-install-isl:
14343@if isl
14344maybe-install-isl: install-isl
a90ef4bf 14345
7ec59b9e 14346install-isl:
a90ef4bf 14347
7ec59b9e 14348@endif isl
a90ef4bf 14349
7ec59b9e
L
14350.PHONY: install-strip-isl maybe-install-strip-isl
14351maybe-install-strip-isl:
14352@if isl
14353maybe-install-strip-isl: install-strip-isl
a90ef4bf 14354
7ec59b9e 14355install-strip-isl:
a90ef4bf 14356
7ec59b9e 14357@endif isl
a90ef4bf
JM
14358
14359# Other targets (info, dvi, pdf, etc.)
14360
7ec59b9e
L
14361.PHONY: maybe-info-isl info-isl
14362maybe-info-isl:
14363@if isl
14364maybe-info-isl: info-isl
a90ef4bf 14365
7ec59b9e
L
14366info-isl: \
14367 configure-isl
14368 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14369 r=`${PWD_COMMAND}`; export r; \
14370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14371 $(HOST_EXPORTS) \
7ec59b9e 14372 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14374 done; \
22121df0 14375 echo "Doing info in isl"; \
7ec59b9e 14376 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14379 "RANLIB=$${RANLIB}" \
0c24b341 14380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14381 info) \
2a4cbe27
NN
14382 || exit 1
14383
7ec59b9e 14384@endif isl
2a4cbe27 14385
7ec59b9e
L
14386.PHONY: maybe-dvi-isl dvi-isl
14387maybe-dvi-isl:
14388@if isl
14389maybe-dvi-isl: dvi-isl
2a4cbe27 14390
7ec59b9e
L
14391dvi-isl: \
14392 configure-isl
14393 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14394 r=`${PWD_COMMAND}`; export r; \
14395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14396 $(HOST_EXPORTS) \
7ec59b9e 14397 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14399 done; \
22121df0 14400 echo "Doing dvi in isl"; \
7ec59b9e 14401 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14404 "RANLIB=$${RANLIB}" \
0c24b341 14405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14406 dvi) \
2a4cbe27
NN
14407 || exit 1
14408
7ec59b9e 14409@endif isl
2a4cbe27 14410
7ec59b9e
L
14411.PHONY: maybe-pdf-isl pdf-isl
14412maybe-pdf-isl:
14413@if isl
14414maybe-pdf-isl: pdf-isl
56a8fe78 14415
7ec59b9e
L
14416pdf-isl: \
14417 configure-isl
14418 @[ -f ./isl/Makefile ] || exit 0; \
56a8fe78
DD
14419 r=`${PWD_COMMAND}`; export r; \
14420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14421 $(HOST_EXPORTS) \
7ec59b9e 14422 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
56a8fe78
DD
14423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14424 done; \
22121df0 14425 echo "Doing pdf in isl"; \
7ec59b9e 14426 (cd $(HOST_SUBDIR)/isl && \
56a8fe78
DD
14427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14429 "RANLIB=$${RANLIB}" \
0c24b341 14430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
14431 pdf) \
14432 || exit 1
14433
7ec59b9e 14434@endif isl
56a8fe78 14435
7ec59b9e
L
14436.PHONY: maybe-html-isl html-isl
14437maybe-html-isl:
14438@if isl
14439maybe-html-isl: html-isl
6d389afc 14440
7ec59b9e
L
14441html-isl: \
14442 configure-isl
14443 @[ -f ./isl/Makefile ] || exit 0; \
6d389afc
MS
14444 r=`${PWD_COMMAND}`; export r; \
14445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 14446 $(HOST_EXPORTS) \
7ec59b9e 14447 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
6d389afc
MS
14448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14449 done; \
22121df0 14450 echo "Doing html in isl"; \
7ec59b9e 14451 (cd $(HOST_SUBDIR)/isl && \
6d389afc
MS
14452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14454 "RANLIB=$${RANLIB}" \
0c24b341 14455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
14456 html) \
14457 || exit 1
14458
7ec59b9e 14459@endif isl
6d389afc 14460
7ec59b9e
L
14461.PHONY: maybe-TAGS-isl TAGS-isl
14462maybe-TAGS-isl:
14463@if isl
14464maybe-TAGS-isl: TAGS-isl
2a4cbe27 14465
7ec59b9e
L
14466TAGS-isl: \
14467 configure-isl
14468 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14469 r=`${PWD_COMMAND}`; export r; \
14470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14471 $(HOST_EXPORTS) \
7ec59b9e 14472 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14474 done; \
22121df0 14475 echo "Doing TAGS in isl"; \
7ec59b9e 14476 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14479 "RANLIB=$${RANLIB}" \
0c24b341 14480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14481 TAGS) \
2a4cbe27
NN
14482 || exit 1
14483
7ec59b9e 14484@endif isl
2a4cbe27 14485
7ec59b9e
L
14486.PHONY: maybe-install-info-isl install-info-isl
14487maybe-install-info-isl:
14488@if isl
14489maybe-install-info-isl: install-info-isl
2a4cbe27 14490
7ec59b9e
L
14491install-info-isl: \
14492 configure-isl \
14493 info-isl
14494 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14495 r=`${PWD_COMMAND}`; export r; \
14496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14497 $(HOST_EXPORTS) \
7ec59b9e 14498 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14500 done; \
22121df0 14501 echo "Doing install-info in isl"; \
7ec59b9e 14502 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14505 "RANLIB=$${RANLIB}" \
0c24b341 14506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14507 install-info) \
2a4cbe27
NN
14508 || exit 1
14509
7ec59b9e 14510@endif isl
2a4cbe27 14511
7ec59b9e
L
14512.PHONY: maybe-install-pdf-isl install-pdf-isl
14513maybe-install-pdf-isl:
14514@if isl
14515maybe-install-pdf-isl: install-pdf-isl
a3ca38d2 14516
7ec59b9e
L
14517install-pdf-isl: \
14518 configure-isl \
14519 pdf-isl
14520 @[ -f ./isl/Makefile ] || exit 0; \
a3ca38d2
DD
14521 r=`${PWD_COMMAND}`; export r; \
14522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14523 $(HOST_EXPORTS) \
7ec59b9e 14524 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
a3ca38d2
DD
14525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14526 done; \
22121df0 14527 echo "Doing install-pdf in isl"; \
7ec59b9e 14528 (cd $(HOST_SUBDIR)/isl && \
a3ca38d2
DD
14529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14531 "RANLIB=$${RANLIB}" \
0c24b341 14532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
14533 install-pdf) \
14534 || exit 1
14535
7ec59b9e 14536@endif isl
a3ca38d2 14537
7ec59b9e
L
14538.PHONY: maybe-install-html-isl install-html-isl
14539maybe-install-html-isl:
14540@if isl
14541maybe-install-html-isl: install-html-isl
108a6f8e 14542
7ec59b9e
L
14543install-html-isl: \
14544 configure-isl \
14545 html-isl
14546 @[ -f ./isl/Makefile ] || exit 0; \
108a6f8e
CD
14547 r=`${PWD_COMMAND}`; export r; \
14548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14549 $(HOST_EXPORTS) \
7ec59b9e 14550 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
108a6f8e
CD
14551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14552 done; \
22121df0 14553 echo "Doing install-html in isl"; \
7ec59b9e 14554 (cd $(HOST_SUBDIR)/isl && \
108a6f8e
CD
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}" \
108a6f8e
CD
14559 install-html) \
14560 || exit 1
14561
7ec59b9e 14562@endif isl
108a6f8e 14563
7ec59b9e
L
14564.PHONY: maybe-installcheck-isl installcheck-isl
14565maybe-installcheck-isl:
14566@if isl
14567maybe-installcheck-isl: installcheck-isl
2a4cbe27 14568
7ec59b9e
L
14569installcheck-isl: \
14570 configure-isl
14571 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14572 r=`${PWD_COMMAND}`; export r; \
14573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14574 $(HOST_EXPORTS) \
7ec59b9e 14575 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14577 done; \
22121df0 14578 echo "Doing installcheck in isl"; \
7ec59b9e 14579 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14582 "RANLIB=$${RANLIB}" \
0c24b341 14583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14584 installcheck) \
2a4cbe27
NN
14585 || exit 1
14586
7ec59b9e 14587@endif isl
2a4cbe27 14588
7ec59b9e
L
14589.PHONY: maybe-mostlyclean-isl mostlyclean-isl
14590maybe-mostlyclean-isl:
14591@if isl
14592maybe-mostlyclean-isl: mostlyclean-isl
2a4cbe27 14593
7ec59b9e
L
14594mostlyclean-isl:
14595 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14596 r=`${PWD_COMMAND}`; export r; \
14597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14598 $(HOST_EXPORTS) \
7ec59b9e 14599 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14601 done; \
22121df0 14602 echo "Doing mostlyclean in isl"; \
7ec59b9e 14603 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14606 "RANLIB=$${RANLIB}" \
0c24b341 14607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14608 mostlyclean) \
2a4cbe27
NN
14609 || exit 1
14610
7ec59b9e 14611@endif isl
2a4cbe27 14612
7ec59b9e
L
14613.PHONY: maybe-clean-isl clean-isl
14614maybe-clean-isl:
14615@if isl
14616maybe-clean-isl: clean-isl
2a4cbe27 14617
7ec59b9e
L
14618clean-isl:
14619 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14620 r=`${PWD_COMMAND}`; export r; \
14621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14622 $(HOST_EXPORTS) \
7ec59b9e 14623 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14625 done; \
22121df0 14626 echo "Doing clean in isl"; \
7ec59b9e 14627 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14630 "RANLIB=$${RANLIB}" \
0c24b341 14631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14632 clean) \
2a4cbe27
NN
14633 || exit 1
14634
7ec59b9e 14635@endif isl
2a4cbe27 14636
7ec59b9e
L
14637.PHONY: maybe-distclean-isl distclean-isl
14638maybe-distclean-isl:
14639@if isl
14640maybe-distclean-isl: distclean-isl
2a4cbe27 14641
7ec59b9e
L
14642distclean-isl:
14643 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14644 r=`${PWD_COMMAND}`; export r; \
14645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14646 $(HOST_EXPORTS) \
7ec59b9e 14647 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14649 done; \
22121df0 14650 echo "Doing distclean in isl"; \
7ec59b9e 14651 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14654 "RANLIB=$${RANLIB}" \
0c24b341 14655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14656 distclean) \
2a4cbe27
NN
14657 || exit 1
14658
7ec59b9e 14659@endif isl
2a4cbe27 14660
7ec59b9e
L
14661.PHONY: maybe-maintainer-clean-isl maintainer-clean-isl
14662maybe-maintainer-clean-isl:
14663@if isl
14664maybe-maintainer-clean-isl: maintainer-clean-isl
2a4cbe27 14665
7ec59b9e
L
14666maintainer-clean-isl:
14667 @[ -f ./isl/Makefile ] || exit 0; \
b40e3958
L
14668 r=`${PWD_COMMAND}`; export r; \
14669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 14670 $(HOST_EXPORTS) \
7ec59b9e 14671 for flag in $(EXTRA_HOST_FLAGS) V=1; do \
2a4cbe27
NN
14672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14673 done; \
22121df0 14674 echo "Doing maintainer-clean in isl"; \
7ec59b9e 14675 (cd $(HOST_SUBDIR)/isl && \
2a4cbe27
NN
14676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14678 "RANLIB=$${RANLIB}" \
0c24b341 14679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 14680 maintainer-clean) \
2a4cbe27
NN
14681 || exit 1
14682
7ec59b9e 14683@endif isl
2a4cbe27 14684
2a4cbe27 14685
a7254363 14686
a90ef4bf
JM
14687.PHONY: configure-libelf maybe-configure-libelf
14688maybe-configure-libelf:
c52c6897 14689@if gcc-bootstrap
a90ef4bf 14690configure-libelf: stage_current
c52c6897 14691@endif gcc-bootstrap
a90ef4bf
JM
14692@if libelf
14693maybe-configure-libelf: configure-libelf
14694configure-libelf:
c52c6897
PB
14695 @r=`${PWD_COMMAND}`; export r; \
14696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 14697 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
22121df0 14698 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
1f53ca9a 14699 $(HOST_EXPORTS) \
a90ef4bf
JM
14700 echo Configuring in $(HOST_SUBDIR)/libelf; \
14701 cd "$(HOST_SUBDIR)/libelf" || exit 1; \
4fa63067 14702 case $(srcdir) in \
b00612cc 14703 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14704 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
b00612cc 14705 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 14706 esac; \
1b6c0831
L
14707 module_srcdir=libelf; \
14708 $(SHELL) \
14709 $$s/$$module_srcdir/configure \
14710 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14711 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14712 --target=${target_alias} --disable-shared \
4fa63067 14713 || exit 1
a90ef4bf 14714@endif libelf
4fa63067 14715
a7254363
PB
14716
14717
a90ef4bf
JM
14718.PHONY: configure-stage1-libelf maybe-configure-stage1-libelf
14719maybe-configure-stage1-libelf:
14720@if libelf-bootstrap
14721maybe-configure-stage1-libelf: configure-stage1-libelf
14722configure-stage1-libelf:
c52c6897 14723 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 14724 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14725 @r=`${PWD_COMMAND}`; export r; \
14726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14727 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 14728 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
1b05fbbd 14729 $(HOST_EXPORTS) \
8ee82aff 14730 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14731 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
14732 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
14733 echo Configuring stage 1 in $(HOST_SUBDIR)/libelf; \
14734 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14735 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14736 case $(srcdir) in \
14737 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14738 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14739 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14740 esac; \
1b6c0831
L
14741 module_srcdir=libelf; \
14742 $(SHELL) $$s/$$module_srcdir/configure \
14743 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14744 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
14745 --target=${target_alias} \
14746 \
a90ef4bf
JM
14747 $(STAGE1_CONFIGURE_FLAGS) \
14748 --disable-shared
14749@endif libelf-bootstrap
d545f33b 14750
a90ef4bf
JM
14751.PHONY: configure-stage2-libelf maybe-configure-stage2-libelf
14752maybe-configure-stage2-libelf:
14753@if libelf-bootstrap
14754maybe-configure-stage2-libelf: configure-stage2-libelf
14755configure-stage2-libelf:
c52c6897 14756 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 14757 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14758 @r=`${PWD_COMMAND}`; export r; \
14759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14760 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 14761 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14762 $(HOST_EXPORTS) \
1b05fbbd 14763 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14764 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14765 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
14766 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14767 echo Configuring stage 2 in $(HOST_SUBDIR)/libelf; \
14768 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14769 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14770 case $(srcdir) in \
14771 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14772 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14773 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14774 esac; \
1b6c0831
L
14775 module_srcdir=libelf; \
14776 $(SHELL) $$s/$$module_srcdir/configure \
14777 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14778 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14779 --target=${target_alias} \
22121df0 14780 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14781 $(STAGE2_CONFIGURE_FLAGS) \
14782 --disable-shared
14783@endif libelf-bootstrap
8520c408 14784
a90ef4bf
JM
14785.PHONY: configure-stage3-libelf maybe-configure-stage3-libelf
14786maybe-configure-stage3-libelf:
14787@if libelf-bootstrap
14788maybe-configure-stage3-libelf: configure-stage3-libelf
14789configure-stage3-libelf:
c52c6897 14790 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 14791 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14792 @r=`${PWD_COMMAND}`; export r; \
14793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14794 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 14795 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14796 $(HOST_EXPORTS) \
1b05fbbd 14797 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14798 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14799 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
14800 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14801 echo Configuring stage 3 in $(HOST_SUBDIR)/libelf; \
14802 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14803 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14804 case $(srcdir) in \
14805 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14806 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14807 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14808 esac; \
1b6c0831
L
14809 module_srcdir=libelf; \
14810 $(SHELL) $$s/$$module_srcdir/configure \
14811 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14812 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14813 --target=${target_alias} \
22121df0 14814 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14815 $(STAGE3_CONFIGURE_FLAGS) \
14816 --disable-shared
14817@endif libelf-bootstrap
8520c408 14818
a90ef4bf
JM
14819.PHONY: configure-stage4-libelf maybe-configure-stage4-libelf
14820maybe-configure-stage4-libelf:
14821@if libelf-bootstrap
14822maybe-configure-stage4-libelf: configure-stage4-libelf
14823configure-stage4-libelf:
c52c6897 14824 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 14825 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14826 @r=`${PWD_COMMAND}`; export r; \
14827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14828 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 14829 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14830 $(HOST_EXPORTS) \
1b05fbbd 14831 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 14832 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14833 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
14834 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14835 echo Configuring stage 4 in $(HOST_SUBDIR)/libelf; \
14836 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14837 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14838 case $(srcdir) in \
14839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14840 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14842 esac; \
1b6c0831
L
14843 module_srcdir=libelf; \
14844 $(SHELL) $$s/$$module_srcdir/configure \
14845 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14846 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14847 --target=${target_alias} \
22121df0 14848 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14849 $(STAGE4_CONFIGURE_FLAGS) \
14850 --disable-shared
14851@endif libelf-bootstrap
d545f33b 14852
a90ef4bf
JM
14853.PHONY: configure-stageprofile-libelf maybe-configure-stageprofile-libelf
14854maybe-configure-stageprofile-libelf:
14855@if libelf-bootstrap
14856maybe-configure-stageprofile-libelf: configure-stageprofile-libelf
14857configure-stageprofile-libelf:
c52c6897 14858 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 14859 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14860 @r=`${PWD_COMMAND}`; export r; \
14861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14862 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 14863 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14864 $(HOST_EXPORTS) \
1b05fbbd
AO
14865 $(POSTSTAGE1_HOST_EXPORTS) \
14866 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14867 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
14868 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14869 echo Configuring stage profile in $(HOST_SUBDIR)/libelf; \
14870 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14871 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14872 case $(srcdir) in \
14873 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14874 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14875 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14876 esac; \
1b6c0831
L
14877 module_srcdir=libelf; \
14878 $(SHELL) $$s/$$module_srcdir/configure \
14879 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14880 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14881 --target=${target_alias} \
22121df0 14882 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14883 $(STAGEprofile_CONFIGURE_FLAGS) \
14884 --disable-shared
14885@endif libelf-bootstrap
d545f33b 14886
a90ef4bf
JM
14887.PHONY: configure-stagefeedback-libelf maybe-configure-stagefeedback-libelf
14888maybe-configure-stagefeedback-libelf:
14889@if libelf-bootstrap
14890maybe-configure-stagefeedback-libelf: configure-stagefeedback-libelf
14891configure-stagefeedback-libelf:
c52c6897 14892 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 14893 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf
c52c6897
PB
14894 @r=`${PWD_COMMAND}`; export r; \
14895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14896 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 14897 test ! -f $(HOST_SUBDIR)/libelf/Makefile || exit 0; \
d545f33b 14898 $(HOST_EXPORTS) \
1b05fbbd
AO
14899 $(POSTSTAGE1_HOST_EXPORTS) \
14900 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
14901 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
14902 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
14903 echo Configuring stage feedback in $(HOST_SUBDIR)/libelf; \
14904 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libelf; \
a90ef4bf 14905 cd $(HOST_SUBDIR)/libelf || exit 1; \
d545f33b
PB
14906 case $(srcdir) in \
14907 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 14908 *) topdir=`echo $(HOST_SUBDIR)/libelf/ | \
d545f33b
PB
14909 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
14910 esac; \
1b6c0831
L
14911 module_srcdir=libelf; \
14912 $(SHELL) $$s/$$module_srcdir/configure \
14913 --srcdir=$${topdir}/$$module_srcdir \
4b900473 14914 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 14915 --target=${target_alias} \
22121df0 14916 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
14917 $(STAGEfeedback_CONFIGURE_FLAGS) \
14918 --disable-shared
14919@endif libelf-bootstrap
d545f33b
PB
14920
14921
14922
14923
14924
a90ef4bf
JM
14925.PHONY: all-libelf maybe-all-libelf
14926maybe-all-libelf:
4f0ef2d8 14927@if gcc-bootstrap
a90ef4bf 14928all-libelf: stage_current
4f0ef2d8 14929@endif gcc-bootstrap
a90ef4bf
JM
14930@if libelf
14931TARGET-libelf=all
14932maybe-all-libelf: all-libelf
14933all-libelf: configure-libelf
c52c6897 14934 @r=`${PWD_COMMAND}`; export r; \
4fa63067 14935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 14936 $(HOST_EXPORTS) \
a90ef4bf 14937 (cd $(HOST_SUBDIR)/libelf && \
b3676d82 14938 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
14939 $(TARGET-libelf))
14940@endif libelf
4fa63067 14941
a7254363 14942
d545f33b 14943
a90ef4bf
JM
14944.PHONY: all-stage1-libelf maybe-all-stage1-libelf
14945.PHONY: clean-stage1-libelf maybe-clean-stage1-libelf
14946maybe-all-stage1-libelf:
14947maybe-clean-stage1-libelf:
14948@if libelf-bootstrap
14949maybe-all-stage1-libelf: all-stage1-libelf
14950all-stage1: all-stage1-libelf
14951TARGET-stage1-libelf = $(TARGET-libelf)
14952all-stage1-libelf: configure-stage1-libelf
c52c6897 14953 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
14954 @r=`${PWD_COMMAND}`; export r; \
14955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14956 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 14957 $(HOST_EXPORTS) \
a90ef4bf 14958 cd $(HOST_SUBDIR)/libelf && \
05a13254 14959 \
7f6ef0c0 14960 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 14961 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 14962 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
14963 LIBCFLAGS="$(LIBCFLAGS)" \
14964 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
14965 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
14966 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
14967 $(EXTRA_HOST_FLAGS) \
14968 $(STAGE1_FLAGS_TO_PASS) \
05a13254 14969 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 14970 $(TARGET-stage1-libelf)
d545f33b 14971
a90ef4bf
JM
14972maybe-clean-stage1-libelf: clean-stage1-libelf
14973clean-stage1: clean-stage1-libelf
14974clean-stage1-libelf:
9dbaa842 14975 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 14976 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 14977 else \
a90ef4bf 14978 [ -f $(HOST_SUBDIR)/stage1-libelf/Makefile ] || exit 0; \
9dbaa842
DD
14979 $(MAKE) stage1-start; \
14980 fi; \
a90ef4bf 14981 cd $(HOST_SUBDIR)/libelf && \
7f6ef0c0 14982 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 14983 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 14984@endif libelf-bootstrap
d545f33b
PB
14985
14986
a90ef4bf
JM
14987.PHONY: all-stage2-libelf maybe-all-stage2-libelf
14988.PHONY: clean-stage2-libelf maybe-clean-stage2-libelf
14989maybe-all-stage2-libelf:
14990maybe-clean-stage2-libelf:
14991@if libelf-bootstrap
14992maybe-all-stage2-libelf: all-stage2-libelf
14993all-stage2: all-stage2-libelf
14994TARGET-stage2-libelf = $(TARGET-libelf)
14995all-stage2-libelf: configure-stage2-libelf
c52c6897 14996 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
14997 @r=`${PWD_COMMAND}`; export r; \
14998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 14999 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 15000 $(HOST_EXPORTS) \
1f53ca9a 15001 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15002 cd $(HOST_SUBDIR)/libelf && \
05a13254 15003 \
7f6ef0c0 15004 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15005 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 15006 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
15007 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15008 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15009 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15010 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15011 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15012 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 15013 $(TARGET-stage2-libelf)
d545f33b 15014
a90ef4bf
JM
15015maybe-clean-stage2-libelf: clean-stage2-libelf
15016clean-stage2: clean-stage2-libelf
15017clean-stage2-libelf:
9dbaa842 15018 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 15019 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15020 else \
a90ef4bf 15021 [ -f $(HOST_SUBDIR)/stage2-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15022 $(MAKE) stage2-start; \
15023 fi; \
a90ef4bf 15024 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15025 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15026@endif libelf-bootstrap
d545f33b
PB
15027
15028
a90ef4bf
JM
15029.PHONY: all-stage3-libelf maybe-all-stage3-libelf
15030.PHONY: clean-stage3-libelf maybe-clean-stage3-libelf
15031maybe-all-stage3-libelf:
15032maybe-clean-stage3-libelf:
15033@if libelf-bootstrap
15034maybe-all-stage3-libelf: all-stage3-libelf
15035all-stage3: all-stage3-libelf
15036TARGET-stage3-libelf = $(TARGET-libelf)
15037all-stage3-libelf: configure-stage3-libelf
c52c6897 15038 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
15039 @r=`${PWD_COMMAND}`; export r; \
15040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15041 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 15042 $(HOST_EXPORTS) \
1f53ca9a 15043 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15044 cd $(HOST_SUBDIR)/libelf && \
05a13254 15045 \
7f6ef0c0 15046 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15047 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 15048 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
15049 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15050 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15051 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15052 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15053 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15054 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 15055 $(TARGET-stage3-libelf)
d545f33b 15056
a90ef4bf
JM
15057maybe-clean-stage3-libelf: clean-stage3-libelf
15058clean-stage3: clean-stage3-libelf
15059clean-stage3-libelf:
9dbaa842 15060 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 15061 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15062 else \
a90ef4bf 15063 [ -f $(HOST_SUBDIR)/stage3-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15064 $(MAKE) stage3-start; \
15065 fi; \
a90ef4bf 15066 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15067 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15068@endif libelf-bootstrap
d545f33b
PB
15069
15070
a90ef4bf
JM
15071.PHONY: all-stage4-libelf maybe-all-stage4-libelf
15072.PHONY: clean-stage4-libelf maybe-clean-stage4-libelf
15073maybe-all-stage4-libelf:
15074maybe-clean-stage4-libelf:
15075@if libelf-bootstrap
15076maybe-all-stage4-libelf: all-stage4-libelf
15077all-stage4: all-stage4-libelf
15078TARGET-stage4-libelf = $(TARGET-libelf)
15079all-stage4-libelf: configure-stage4-libelf
c52c6897 15080 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
15081 @r=`${PWD_COMMAND}`; export r; \
15082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15083 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 15084 $(HOST_EXPORTS) \
1f53ca9a 15085 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15086 cd $(HOST_SUBDIR)/libelf && \
05a13254 15087 \
7f6ef0c0 15088 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15089 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 15090 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 15091 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
15092 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15093 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15094 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15095 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15096 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15097 $(TARGET-stage4-libelf)
d545f33b 15098
a90ef4bf
JM
15099maybe-clean-stage4-libelf: clean-stage4-libelf
15100clean-stage4: clean-stage4-libelf
15101clean-stage4-libelf:
9dbaa842 15102 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 15103 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15104 else \
a90ef4bf 15105 [ -f $(HOST_SUBDIR)/stage4-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15106 $(MAKE) stage4-start; \
15107 fi; \
a90ef4bf 15108 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15109 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15110@endif libelf-bootstrap
d545f33b
PB
15111
15112
a90ef4bf
JM
15113.PHONY: all-stageprofile-libelf maybe-all-stageprofile-libelf
15114.PHONY: clean-stageprofile-libelf maybe-clean-stageprofile-libelf
15115maybe-all-stageprofile-libelf:
15116maybe-clean-stageprofile-libelf:
15117@if libelf-bootstrap
15118maybe-all-stageprofile-libelf: all-stageprofile-libelf
15119all-stageprofile: all-stageprofile-libelf
15120TARGET-stageprofile-libelf = $(TARGET-libelf)
15121all-stageprofile-libelf: configure-stageprofile-libelf
c52c6897 15122 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
15123 @r=`${PWD_COMMAND}`; export r; \
15124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15125 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 15126 $(HOST_EXPORTS) \
1f53ca9a 15127 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15128 cd $(HOST_SUBDIR)/libelf && \
05a13254 15129 \
7f6ef0c0 15130 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15131 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 15132 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
15133 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
15134 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15135 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15136 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15137 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15138 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 15139 $(TARGET-stageprofile-libelf)
d545f33b 15140
a90ef4bf
JM
15141maybe-clean-stageprofile-libelf: clean-stageprofile-libelf
15142clean-stageprofile: clean-stageprofile-libelf
15143clean-stageprofile-libelf:
9dbaa842 15144 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 15145 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15146 else \
a90ef4bf 15147 [ -f $(HOST_SUBDIR)/stageprofile-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15148 $(MAKE) stageprofile-start; \
15149 fi; \
a90ef4bf 15150 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15151 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15152@endif libelf-bootstrap
d545f33b
PB
15153
15154
a90ef4bf
JM
15155.PHONY: all-stagefeedback-libelf maybe-all-stagefeedback-libelf
15156.PHONY: clean-stagefeedback-libelf maybe-clean-stagefeedback-libelf
15157maybe-all-stagefeedback-libelf:
15158maybe-clean-stagefeedback-libelf:
15159@if libelf-bootstrap
15160maybe-all-stagefeedback-libelf: all-stagefeedback-libelf
15161all-stagefeedback: all-stagefeedback-libelf
15162TARGET-stagefeedback-libelf = $(TARGET-libelf)
15163all-stagefeedback-libelf: configure-stagefeedback-libelf
c52c6897 15164 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
15165 @r=`${PWD_COMMAND}`; export r; \
15166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 15167 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 15168 $(HOST_EXPORTS) \
1f53ca9a 15169 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 15170 cd $(HOST_SUBDIR)/libelf && \
05a13254 15171 \
7f6ef0c0 15172 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 15173 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 15174 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
15175 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
15176 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15177 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15178 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 15179 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15180 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 15181 $(TARGET-stagefeedback-libelf)
d545f33b 15182
a90ef4bf
JM
15183maybe-clean-stagefeedback-libelf: clean-stagefeedback-libelf
15184clean-stagefeedback: clean-stagefeedback-libelf
15185clean-stagefeedback-libelf:
9dbaa842 15186 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 15187 [ -f $(HOST_SUBDIR)/libelf/Makefile ] || exit 0; \
9dbaa842 15188 else \
a90ef4bf 15189 [ -f $(HOST_SUBDIR)/stagefeedback-libelf/Makefile ] || exit 0; \
9dbaa842
DD
15190 $(MAKE) stagefeedback-start; \
15191 fi; \
a90ef4bf 15192 cd $(HOST_SUBDIR)/libelf && \
b3676d82 15193 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15194@endif libelf-bootstrap
d545f33b
PB
15195
15196
15197
15198
15199
a90ef4bf
JM
15200.PHONY: check-libelf maybe-check-libelf
15201maybe-check-libelf:
15202@if libelf
15203maybe-check-libelf: check-libelf
4fa63067 15204
a90ef4bf 15205check-libelf:
0aed8855 15206 @: $(MAKE); $(unstage)
4fa63067
NN
15207 @r=`${PWD_COMMAND}`; export r; \
15208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 15209 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 15210 (cd $(HOST_SUBDIR)/libelf && \
f91ca6bc 15211 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 15212
a90ef4bf 15213@endif libelf
4fa63067 15214
a90ef4bf
JM
15215.PHONY: install-libelf maybe-install-libelf
15216maybe-install-libelf:
15217@if libelf
15218maybe-install-libelf: install-libelf
4fa63067 15219
a90ef4bf 15220install-libelf:
4fa63067 15221
a90ef4bf 15222@endif libelf
4fa63067 15223
a90ef4bf
JM
15224.PHONY: install-strip-libelf maybe-install-strip-libelf
15225maybe-install-strip-libelf:
15226@if libelf
15227maybe-install-strip-libelf: install-strip-libelf
9b980aa1 15228
a90ef4bf 15229install-strip-libelf:
9b980aa1 15230
a90ef4bf 15231@endif libelf
9b980aa1 15232
56a8fe78 15233# Other targets (info, dvi, pdf, etc.)
4fa63067 15234
a90ef4bf
JM
15235.PHONY: maybe-info-libelf info-libelf
15236maybe-info-libelf:
15237@if libelf
15238maybe-info-libelf: info-libelf
4fa63067 15239
a90ef4bf
JM
15240info-libelf: \
15241 configure-libelf
15242 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15243 r=`${PWD_COMMAND}`; export r; \
15244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15245 $(HOST_EXPORTS) \
a90ef4bf 15246 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15248 done; \
22121df0 15249 echo "Doing info in libelf"; \
a90ef4bf 15250 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15253 "RANLIB=$${RANLIB}" \
0c24b341 15254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15255 info) \
2a4cbe27
NN
15256 || exit 1
15257
a90ef4bf 15258@endif libelf
2a4cbe27 15259
a90ef4bf
JM
15260.PHONY: maybe-dvi-libelf dvi-libelf
15261maybe-dvi-libelf:
15262@if libelf
15263maybe-dvi-libelf: dvi-libelf
2a4cbe27 15264
a90ef4bf
JM
15265dvi-libelf: \
15266 configure-libelf
15267 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15268 r=`${PWD_COMMAND}`; export r; \
15269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15270 $(HOST_EXPORTS) \
a90ef4bf 15271 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15273 done; \
22121df0 15274 echo "Doing dvi in libelf"; \
a90ef4bf 15275 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15278 "RANLIB=$${RANLIB}" \
0c24b341 15279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15280 dvi) \
2a4cbe27
NN
15281 || exit 1
15282
a90ef4bf 15283@endif libelf
2a4cbe27 15284
a90ef4bf
JM
15285.PHONY: maybe-pdf-libelf pdf-libelf
15286maybe-pdf-libelf:
15287@if libelf
15288maybe-pdf-libelf: pdf-libelf
56a8fe78 15289
a90ef4bf
JM
15290pdf-libelf: \
15291 configure-libelf
15292 @[ -f ./libelf/Makefile ] || exit 0; \
56a8fe78
DD
15293 r=`${PWD_COMMAND}`; export r; \
15294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15295 $(HOST_EXPORTS) \
a90ef4bf 15296 for flag in $(EXTRA_HOST_FLAGS) ; do \
56a8fe78
DD
15297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15298 done; \
22121df0 15299 echo "Doing pdf in libelf"; \
a90ef4bf 15300 (cd $(HOST_SUBDIR)/libelf && \
56a8fe78
DD
15301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15303 "RANLIB=$${RANLIB}" \
0c24b341 15304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
15305 pdf) \
15306 || exit 1
15307
a90ef4bf 15308@endif libelf
56a8fe78 15309
a90ef4bf
JM
15310.PHONY: maybe-html-libelf html-libelf
15311maybe-html-libelf:
15312@if libelf
15313maybe-html-libelf: html-libelf
6d389afc 15314
a90ef4bf
JM
15315html-libelf: \
15316 configure-libelf
15317 @[ -f ./libelf/Makefile ] || exit 0; \
6d389afc
MS
15318 r=`${PWD_COMMAND}`; export r; \
15319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 15320 $(HOST_EXPORTS) \
a90ef4bf 15321 for flag in $(EXTRA_HOST_FLAGS) ; do \
6d389afc
MS
15322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15323 done; \
22121df0 15324 echo "Doing html in libelf"; \
a90ef4bf 15325 (cd $(HOST_SUBDIR)/libelf && \
6d389afc
MS
15326 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15327 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15328 "RANLIB=$${RANLIB}" \
0c24b341 15329 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
15330 html) \
15331 || exit 1
15332
a90ef4bf 15333@endif libelf
6d389afc 15334
a90ef4bf
JM
15335.PHONY: maybe-TAGS-libelf TAGS-libelf
15336maybe-TAGS-libelf:
15337@if libelf
15338maybe-TAGS-libelf: TAGS-libelf
2a4cbe27 15339
a90ef4bf
JM
15340TAGS-libelf: \
15341 configure-libelf
15342 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15343 r=`${PWD_COMMAND}`; export r; \
15344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15345 $(HOST_EXPORTS) \
a90ef4bf 15346 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15348 done; \
22121df0 15349 echo "Doing TAGS in libelf"; \
a90ef4bf 15350 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15353 "RANLIB=$${RANLIB}" \
0c24b341 15354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15355 TAGS) \
2a4cbe27
NN
15356 || exit 1
15357
a90ef4bf 15358@endif libelf
2a4cbe27 15359
a90ef4bf
JM
15360.PHONY: maybe-install-info-libelf install-info-libelf
15361maybe-install-info-libelf:
15362@if libelf
15363maybe-install-info-libelf: install-info-libelf
a2592b1b 15364
a90ef4bf
JM
15365install-info-libelf: \
15366 configure-libelf \
15367 info-libelf
15368 @[ -f ./libelf/Makefile ] || exit 0; \
a2592b1b
DD
15369 r=`${PWD_COMMAND}`; export r; \
15370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15371 $(HOST_EXPORTS) \
a90ef4bf 15372 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
15373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15374 done; \
22121df0 15375 echo "Doing install-info in libelf"; \
a90ef4bf 15376 (cd $(HOST_SUBDIR)/libelf && \
a2592b1b
DD
15377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15379 "RANLIB=$${RANLIB}" \
0c24b341 15380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15381 install-info) \
a2592b1b
DD
15382 || exit 1
15383
a90ef4bf 15384@endif libelf
a2592b1b 15385
a90ef4bf
JM
15386.PHONY: maybe-install-pdf-libelf install-pdf-libelf
15387maybe-install-pdf-libelf:
15388@if libelf
15389maybe-install-pdf-libelf: install-pdf-libelf
a3ca38d2 15390
a90ef4bf
JM
15391install-pdf-libelf: \
15392 configure-libelf \
15393 pdf-libelf
15394 @[ -f ./libelf/Makefile ] || exit 0; \
a3ca38d2
DD
15395 r=`${PWD_COMMAND}`; export r; \
15396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15397 $(HOST_EXPORTS) \
a90ef4bf 15398 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
15399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15400 done; \
22121df0 15401 echo "Doing install-pdf in libelf"; \
a90ef4bf 15402 (cd $(HOST_SUBDIR)/libelf && \
a3ca38d2
DD
15403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15405 "RANLIB=$${RANLIB}" \
0c24b341 15406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
15407 install-pdf) \
15408 || exit 1
15409
a90ef4bf 15410@endif libelf
a3ca38d2 15411
a90ef4bf
JM
15412.PHONY: maybe-install-html-libelf install-html-libelf
15413maybe-install-html-libelf:
15414@if libelf
15415maybe-install-html-libelf: install-html-libelf
108a6f8e 15416
a90ef4bf
JM
15417install-html-libelf: \
15418 configure-libelf \
15419 html-libelf
15420 @[ -f ./libelf/Makefile ] || exit 0; \
108a6f8e
CD
15421 r=`${PWD_COMMAND}`; export r; \
15422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15423 $(HOST_EXPORTS) \
a90ef4bf 15424 for flag in $(EXTRA_HOST_FLAGS) ; do \
108a6f8e
CD
15425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15426 done; \
22121df0 15427 echo "Doing install-html in libelf"; \
a90ef4bf 15428 (cd $(HOST_SUBDIR)/libelf && \
108a6f8e
CD
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}" \
108a6f8e
CD
15433 install-html) \
15434 || exit 1
15435
a90ef4bf 15436@endif libelf
108a6f8e 15437
a90ef4bf
JM
15438.PHONY: maybe-installcheck-libelf installcheck-libelf
15439maybe-installcheck-libelf:
15440@if libelf
15441maybe-installcheck-libelf: installcheck-libelf
2a4cbe27 15442
a90ef4bf
JM
15443installcheck-libelf: \
15444 configure-libelf
15445 @[ -f ./libelf/Makefile ] || exit 0; \
4fa63067
NN
15446 r=`${PWD_COMMAND}`; export r; \
15447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15448 $(HOST_EXPORTS) \
a90ef4bf 15449 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
15450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15451 done; \
22121df0 15452 echo "Doing installcheck in libelf"; \
a90ef4bf 15453 (cd $(HOST_SUBDIR)/libelf && \
4fa63067
NN
15454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15456 "RANLIB=$${RANLIB}" \
0c24b341 15457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15458 installcheck) \
4fa63067 15459 || exit 1
2a4cbe27 15460
a90ef4bf 15461@endif libelf
4fa63067 15462
a90ef4bf
JM
15463.PHONY: maybe-mostlyclean-libelf mostlyclean-libelf
15464maybe-mostlyclean-libelf:
15465@if libelf
15466maybe-mostlyclean-libelf: mostlyclean-libelf
4fa63067 15467
a90ef4bf
JM
15468mostlyclean-libelf:
15469 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15470 r=`${PWD_COMMAND}`; export r; \
15471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15472 $(HOST_EXPORTS) \
a90ef4bf 15473 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15475 done; \
22121df0 15476 echo "Doing mostlyclean in libelf"; \
a90ef4bf 15477 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15480 "RANLIB=$${RANLIB}" \
0c24b341 15481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15482 mostlyclean) \
2a4cbe27
NN
15483 || exit 1
15484
a90ef4bf 15485@endif libelf
2a4cbe27 15486
a90ef4bf
JM
15487.PHONY: maybe-clean-libelf clean-libelf
15488maybe-clean-libelf:
15489@if libelf
15490maybe-clean-libelf: clean-libelf
2a4cbe27 15491
a90ef4bf
JM
15492clean-libelf:
15493 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15494 r=`${PWD_COMMAND}`; export r; \
15495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15496 $(HOST_EXPORTS) \
a90ef4bf 15497 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15499 done; \
22121df0 15500 echo "Doing clean in libelf"; \
a90ef4bf 15501 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15504 "RANLIB=$${RANLIB}" \
0c24b341 15505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15506 clean) \
2a4cbe27
NN
15507 || exit 1
15508
a90ef4bf 15509@endif libelf
2a4cbe27 15510
a90ef4bf
JM
15511.PHONY: maybe-distclean-libelf distclean-libelf
15512maybe-distclean-libelf:
15513@if libelf
15514maybe-distclean-libelf: distclean-libelf
2a4cbe27 15515
a90ef4bf
JM
15516distclean-libelf:
15517 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15518 r=`${PWD_COMMAND}`; export r; \
15519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15520 $(HOST_EXPORTS) \
a90ef4bf 15521 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15523 done; \
22121df0 15524 echo "Doing distclean in libelf"; \
a90ef4bf 15525 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15528 "RANLIB=$${RANLIB}" \
0c24b341 15529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15530 distclean) \
2a4cbe27
NN
15531 || exit 1
15532
a90ef4bf 15533@endif libelf
2a4cbe27 15534
a90ef4bf
JM
15535.PHONY: maybe-maintainer-clean-libelf maintainer-clean-libelf
15536maybe-maintainer-clean-libelf:
15537@if libelf
15538maybe-maintainer-clean-libelf: maintainer-clean-libelf
2a4cbe27 15539
a90ef4bf
JM
15540maintainer-clean-libelf:
15541 @[ -f ./libelf/Makefile ] || exit 0; \
b40e3958
L
15542 r=`${PWD_COMMAND}`; export r; \
15543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 15544 $(HOST_EXPORTS) \
a90ef4bf 15545 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
15546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15547 done; \
22121df0 15548 echo "Doing maintainer-clean in libelf"; \
a90ef4bf 15549 (cd $(HOST_SUBDIR)/libelf && \
2a4cbe27
NN
15550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15552 "RANLIB=$${RANLIB}" \
0c24b341 15553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 15554 maintainer-clean) \
2a4cbe27
NN
15555 || exit 1
15556
a90ef4bf 15557@endif libelf
2a4cbe27 15558
2a4cbe27 15559
a7254363 15560
a90ef4bf
JM
15561.PHONY: configure-gold maybe-configure-gold
15562maybe-configure-gold:
4f0ef2d8 15563@if gcc-bootstrap
a90ef4bf 15564configure-gold: stage_current
4f0ef2d8 15565@endif gcc-bootstrap
a90ef4bf
JM
15566@if gold
15567maybe-configure-gold: configure-gold
15568configure-gold:
c52c6897 15569 @r=`${PWD_COMMAND}`; export r; \
4fa63067 15570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15571 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
22121df0 15572 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
1f53ca9a 15573 $(HOST_EXPORTS) \
a90ef4bf
JM
15574 echo Configuring in $(HOST_SUBDIR)/gold; \
15575 cd "$(HOST_SUBDIR)/gold" || exit 1; \
4fa63067 15576 case $(srcdir) in \
b00612cc 15577 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 15578 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
b00612cc 15579 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 15580 esac; \
1b6c0831
L
15581 module_srcdir=gold; \
15582 $(SHELL) \
15583 $$s/$$module_srcdir/configure \
15584 --srcdir=$${topdir}/$$module_srcdir \
4b900473 15585 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15586 --target=${target_alias} \
4fa63067 15587 || exit 1
a90ef4bf 15588@endif gold
a7254363 15589
d545f33b
PB
15590
15591
a90ef4bf
JM
15592.PHONY: configure-stage1-gold maybe-configure-stage1-gold
15593maybe-configure-stage1-gold:
15594@if gold-bootstrap
15595maybe-configure-stage1-gold: configure-stage1-gold
15596configure-stage1-gold:
15597 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15598 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15599 @r=`${PWD_COMMAND}`; export r; \
15600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15601 TFLAGS="$(STAGE1_TFLAGS)"; \
15602 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
15603 $(HOST_EXPORTS) \
15604 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
15605 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
15606 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
15607 echo Configuring stage 1 in $(HOST_SUBDIR)/gold; \
15608 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15609 cd $(HOST_SUBDIR)/gold || exit 1; \
15610 case $(srcdir) in \
15611 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15612 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15613 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15614 esac; \
1b6c0831
L
15615 module_srcdir=gold; \
15616 $(SHELL) $$s/$$module_srcdir/configure \
15617 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15618 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
15619 --target=${target_alias} \
15620 \
a90ef4bf
JM
15621 $(STAGE1_CONFIGURE_FLAGS)
15622@endif gold-bootstrap
4fa63067 15623
a90ef4bf
JM
15624.PHONY: configure-stage2-gold maybe-configure-stage2-gold
15625maybe-configure-stage2-gold:
15626@if gold-bootstrap
15627maybe-configure-stage2-gold: configure-stage2-gold
15628configure-stage2-gold:
15629 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15630 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15631 @r=`${PWD_COMMAND}`; export r; \
15632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15633 TFLAGS="$(STAGE2_TFLAGS)"; \
15634 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15635 $(HOST_EXPORTS) \
a90ef4bf
JM
15636 $(POSTSTAGE1_HOST_EXPORTS) \
15637 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
15638 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
15639 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15640 echo Configuring stage 2 in $(HOST_SUBDIR)/gold; \
15641 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15642 cd $(HOST_SUBDIR)/gold || exit 1; \
15643 case $(srcdir) in \
15644 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15645 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15646 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15647 esac; \
1b6c0831
L
15648 module_srcdir=gold; \
15649 $(SHELL) $$s/$$module_srcdir/configure \
15650 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15651 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15652 --target=${target_alias} \
22121df0 15653 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15654 $(STAGE2_CONFIGURE_FLAGS)
15655@endif gold-bootstrap
4fa63067 15656
a90ef4bf
JM
15657.PHONY: configure-stage3-gold maybe-configure-stage3-gold
15658maybe-configure-stage3-gold:
15659@if gold-bootstrap
15660maybe-configure-stage3-gold: configure-stage3-gold
15661configure-stage3-gold:
15662 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15663 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
4fa63067
NN
15664 @r=`${PWD_COMMAND}`; export r; \
15665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15666 TFLAGS="$(STAGE3_TFLAGS)"; \
15667 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15668 $(HOST_EXPORTS) \
a90ef4bf
JM
15669 $(POSTSTAGE1_HOST_EXPORTS) \
15670 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
15671 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
15672 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15673 echo Configuring stage 3 in $(HOST_SUBDIR)/gold; \
15674 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15675 cd $(HOST_SUBDIR)/gold || exit 1; \
15676 case $(srcdir) in \
15677 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15678 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15679 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15680 esac; \
1b6c0831
L
15681 module_srcdir=gold; \
15682 $(SHELL) $$s/$$module_srcdir/configure \
15683 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15684 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15685 --target=${target_alias} \
22121df0 15686 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15687 $(STAGE3_CONFIGURE_FLAGS)
15688@endif gold-bootstrap
9b980aa1 15689
a90ef4bf
JM
15690.PHONY: configure-stage4-gold maybe-configure-stage4-gold
15691maybe-configure-stage4-gold:
15692@if gold-bootstrap
15693maybe-configure-stage4-gold: configure-stage4-gold
15694configure-stage4-gold:
15695 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15696 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
9b980aa1
RW
15697 @r=`${PWD_COMMAND}`; export r; \
15698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15699 TFLAGS="$(STAGE4_TFLAGS)"; \
15700 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
9b980aa1 15701 $(HOST_EXPORTS) \
a90ef4bf
JM
15702 $(POSTSTAGE1_HOST_EXPORTS) \
15703 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
15704 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
15705 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15706 echo Configuring stage 4 in $(HOST_SUBDIR)/gold; \
15707 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15708 cd $(HOST_SUBDIR)/gold || exit 1; \
15709 case $(srcdir) in \
15710 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15711 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15712 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15713 esac; \
1b6c0831
L
15714 module_srcdir=gold; \
15715 $(SHELL) $$s/$$module_srcdir/configure \
15716 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15717 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15718 --target=${target_alias} \
22121df0 15719 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15720 $(STAGE4_CONFIGURE_FLAGS)
15721@endif gold-bootstrap
4fa63067 15722
a90ef4bf
JM
15723.PHONY: configure-stageprofile-gold maybe-configure-stageprofile-gold
15724maybe-configure-stageprofile-gold:
15725@if gold-bootstrap
15726maybe-configure-stageprofile-gold: configure-stageprofile-gold
15727configure-stageprofile-gold:
15728 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15729 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15730 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15732 TFLAGS="$(STAGEprofile_TFLAGS)"; \
15733 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15734 $(HOST_EXPORTS) \
a90ef4bf
JM
15735 $(POSTSTAGE1_HOST_EXPORTS) \
15736 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
15737 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
15738 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15739 echo Configuring stage profile in $(HOST_SUBDIR)/gold; \
15740 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15741 cd $(HOST_SUBDIR)/gold || exit 1; \
15742 case $(srcdir) in \
15743 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15744 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15745 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15746 esac; \
1b6c0831
L
15747 module_srcdir=gold; \
15748 $(SHELL) $$s/$$module_srcdir/configure \
15749 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15750 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15751 --target=${target_alias} \
22121df0 15752 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15753 $(STAGEprofile_CONFIGURE_FLAGS)
15754@endif gold-bootstrap
2a4cbe27 15755
a90ef4bf
JM
15756.PHONY: configure-stagefeedback-gold maybe-configure-stagefeedback-gold
15757maybe-configure-stagefeedback-gold:
15758@if gold-bootstrap
15759maybe-configure-stagefeedback-gold: configure-stagefeedback-gold
15760configure-stagefeedback-gold:
15761 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
15762 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold
15763 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15765 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
15766 test ! -f $(HOST_SUBDIR)/gold/Makefile || exit 0; \
378fce5b 15767 $(HOST_EXPORTS) \
a90ef4bf
JM
15768 $(POSTSTAGE1_HOST_EXPORTS) \
15769 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
15770 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
15771 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
15772 echo Configuring stage feedback in $(HOST_SUBDIR)/gold; \
15773 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gold; \
a90ef4bf
JM
15774 cd $(HOST_SUBDIR)/gold || exit 1; \
15775 case $(srcdir) in \
15776 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15777 *) topdir=`echo $(HOST_SUBDIR)/gold/ | \
15778 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15779 esac; \
1b6c0831
L
15780 module_srcdir=gold; \
15781 $(SHELL) $$s/$$module_srcdir/configure \
15782 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 15783 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 15784 --target=${target_alias} \
22121df0 15785 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
15786 $(STAGEfeedback_CONFIGURE_FLAGS)
15787@endif gold-bootstrap
2a4cbe27 15788
56a8fe78 15789
56a8fe78 15790
56a8fe78 15791
6d389afc 15792
a90ef4bf
JM
15793.PHONY: all-gold maybe-all-gold
15794maybe-all-gold:
15795@if gcc-bootstrap
15796all-gold: stage_current
15797@endif gcc-bootstrap
15798@if gold
15799TARGET-gold=all
15800maybe-all-gold: all-gold
15801all-gold: configure-gold
15802 @r=`${PWD_COMMAND}`; export r; \
6d389afc 15803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15804 $(HOST_EXPORTS) \
15805 (cd $(HOST_SUBDIR)/gold && \
b3676d82 15806 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
15807 $(TARGET-gold))
15808@endif gold
6d389afc 15809
6d389afc 15810
2a4cbe27 15811
a90ef4bf
JM
15812.PHONY: all-stage1-gold maybe-all-stage1-gold
15813.PHONY: clean-stage1-gold maybe-clean-stage1-gold
15814maybe-all-stage1-gold:
15815maybe-clean-stage1-gold:
15816@if gold-bootstrap
15817maybe-all-stage1-gold: all-stage1-gold
15818all-stage1: all-stage1-gold
15819TARGET-stage1-gold = $(TARGET-gold)
15820all-stage1-gold: configure-stage1-gold
15821 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
15822 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
15824 TFLAGS="$(STAGE1_TFLAGS)"; \
15825 $(HOST_EXPORTS) \
15826 cd $(HOST_SUBDIR)/gold && \
05a13254 15827 \
a90ef4bf
JM
15828 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15829 CFLAGS="$(STAGE1_CFLAGS)" \
15830 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
15831 LIBCFLAGS="$(LIBCFLAGS)" \
15832 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15833 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15834 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
15835 $(EXTRA_HOST_FLAGS) \
15836 $(STAGE1_FLAGS_TO_PASS) \
05a13254 15837 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 15838 $(TARGET-stage1-gold)
2a4cbe27 15839
a90ef4bf
JM
15840maybe-clean-stage1-gold: clean-stage1-gold
15841clean-stage1: clean-stage1-gold
15842clean-stage1-gold:
15843 @if [ $(current_stage) = stage1 ]; then \
15844 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15845 else \
15846 [ -f $(HOST_SUBDIR)/stage1-gold/Makefile ] || exit 0; \
15847 $(MAKE) stage1-start; \
15848 fi; \
15849 cd $(HOST_SUBDIR)/gold && \
15850 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 15851 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15852@endif gold-bootstrap
2a4cbe27 15853
2a4cbe27 15854
a90ef4bf
JM
15855.PHONY: all-stage2-gold maybe-all-stage2-gold
15856.PHONY: clean-stage2-gold maybe-clean-stage2-gold
15857maybe-all-stage2-gold:
15858maybe-clean-stage2-gold:
15859@if gold-bootstrap
15860maybe-all-stage2-gold: all-stage2-gold
15861all-stage2: all-stage2-gold
15862TARGET-stage2-gold = $(TARGET-gold)
15863all-stage2-gold: configure-stage2-gold
15864 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
15865 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15867 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 15868 $(HOST_EXPORTS) \
a90ef4bf
JM
15869 $(POSTSTAGE1_HOST_EXPORTS) \
15870 cd $(HOST_SUBDIR)/gold && \
05a13254 15871 \
a90ef4bf
JM
15872 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15873 CFLAGS="$(STAGE2_CFLAGS)" \
15874 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
15875 LIBCFLAGS="$(STAGE2_CFLAGS)" \
15876 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15877 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15878 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15879 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15880 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 15881 $(TARGET-stage2-gold)
2a4cbe27 15882
a90ef4bf
JM
15883maybe-clean-stage2-gold: clean-stage2-gold
15884clean-stage2: clean-stage2-gold
15885clean-stage2-gold:
15886 @if [ $(current_stage) = stage2 ]; then \
15887 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15888 else \
15889 [ -f $(HOST_SUBDIR)/stage2-gold/Makefile ] || exit 0; \
15890 $(MAKE) stage2-start; \
15891 fi; \
15892 cd $(HOST_SUBDIR)/gold && \
b3676d82 15893 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15894@endif gold-bootstrap
2a4cbe27 15895
a3ca38d2 15896
a90ef4bf
JM
15897.PHONY: all-stage3-gold maybe-all-stage3-gold
15898.PHONY: clean-stage3-gold maybe-clean-stage3-gold
15899maybe-all-stage3-gold:
15900maybe-clean-stage3-gold:
15901@if gold-bootstrap
15902maybe-all-stage3-gold: all-stage3-gold
15903all-stage3: all-stage3-gold
15904TARGET-stage3-gold = $(TARGET-gold)
15905all-stage3-gold: configure-stage3-gold
15906 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
15907 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15909 TFLAGS="$(STAGE3_TFLAGS)"; \
378fce5b 15910 $(HOST_EXPORTS) \
a90ef4bf
JM
15911 $(POSTSTAGE1_HOST_EXPORTS) \
15912 cd $(HOST_SUBDIR)/gold && \
05a13254 15913 \
a90ef4bf
JM
15914 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15915 CFLAGS="$(STAGE3_CFLAGS)" \
15916 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
15917 LIBCFLAGS="$(STAGE3_CFLAGS)" \
15918 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15919 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15920 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15921 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15922 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 15923 $(TARGET-stage3-gold)
2a4cbe27 15924
a90ef4bf
JM
15925maybe-clean-stage3-gold: clean-stage3-gold
15926clean-stage3: clean-stage3-gold
15927clean-stage3-gold:
15928 @if [ $(current_stage) = stage3 ]; then \
15929 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15930 else \
15931 [ -f $(HOST_SUBDIR)/stage3-gold/Makefile ] || exit 0; \
15932 $(MAKE) stage3-start; \
15933 fi; \
15934 cd $(HOST_SUBDIR)/gold && \
b3676d82 15935 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15936@endif gold-bootstrap
2a4cbe27 15937
2a4cbe27 15938
a90ef4bf
JM
15939.PHONY: all-stage4-gold maybe-all-stage4-gold
15940.PHONY: clean-stage4-gold maybe-clean-stage4-gold
15941maybe-all-stage4-gold:
15942maybe-clean-stage4-gold:
15943@if gold-bootstrap
15944maybe-all-stage4-gold: all-stage4-gold
15945all-stage4: all-stage4-gold
15946TARGET-stage4-gold = $(TARGET-gold)
15947all-stage4-gold: configure-stage4-gold
15948 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
15949 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15951 TFLAGS="$(STAGE4_TFLAGS)"; \
378fce5b 15952 $(HOST_EXPORTS) \
a90ef4bf
JM
15953 $(POSTSTAGE1_HOST_EXPORTS) \
15954 cd $(HOST_SUBDIR)/gold && \
05a13254 15955 \
a90ef4bf
JM
15956 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15957 CFLAGS="$(STAGE4_CFLAGS)" \
15958 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
15959 LIBCFLAGS="$(STAGE4_CFLAGS)" \
15960 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
15961 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
15962 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
15963 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 15964 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 15965 $(TARGET-stage4-gold)
2a4cbe27 15966
a90ef4bf
JM
15967maybe-clean-stage4-gold: clean-stage4-gold
15968clean-stage4: clean-stage4-gold
15969clean-stage4-gold:
15970 @if [ $(current_stage) = stage4 ]; then \
15971 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
15972 else \
15973 [ -f $(HOST_SUBDIR)/stage4-gold/Makefile ] || exit 0; \
15974 $(MAKE) stage4-start; \
15975 fi; \
15976 cd $(HOST_SUBDIR)/gold && \
b3676d82 15977 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 15978@endif gold-bootstrap
2a4cbe27 15979
2a4cbe27 15980
a90ef4bf
JM
15981.PHONY: all-stageprofile-gold maybe-all-stageprofile-gold
15982.PHONY: clean-stageprofile-gold maybe-clean-stageprofile-gold
15983maybe-all-stageprofile-gold:
15984maybe-clean-stageprofile-gold:
15985@if gold-bootstrap
15986maybe-all-stageprofile-gold: all-stageprofile-gold
15987all-stageprofile: all-stageprofile-gold
15988TARGET-stageprofile-gold = $(TARGET-gold)
15989all-stageprofile-gold: configure-stageprofile-gold
15990 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
15991 @r=`${PWD_COMMAND}`; export r; \
b40e3958 15992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 15993 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 15994 $(HOST_EXPORTS) \
a90ef4bf
JM
15995 $(POSTSTAGE1_HOST_EXPORTS) \
15996 cd $(HOST_SUBDIR)/gold && \
05a13254 15997 \
a90ef4bf
JM
15998 $(MAKE) $(BASE_FLAGS_TO_PASS) \
15999 CFLAGS="$(STAGEprofile_CFLAGS)" \
16000 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
16001 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
16002 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16003 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16004 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16005 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 16006 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 16007 $(TARGET-stageprofile-gold)
2a4cbe27 16008
a90ef4bf
JM
16009maybe-clean-stageprofile-gold: clean-stageprofile-gold
16010clean-stageprofile: clean-stageprofile-gold
16011clean-stageprofile-gold:
16012 @if [ $(current_stage) = stageprofile ]; then \
16013 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
16014 else \
16015 [ -f $(HOST_SUBDIR)/stageprofile-gold/Makefile ] || exit 0; \
16016 $(MAKE) stageprofile-start; \
16017 fi; \
16018 cd $(HOST_SUBDIR)/gold && \
b3676d82 16019 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16020@endif gold-bootstrap
2a4cbe27 16021
a7254363 16022
a90ef4bf
JM
16023.PHONY: all-stagefeedback-gold maybe-all-stagefeedback-gold
16024.PHONY: clean-stagefeedback-gold maybe-clean-stagefeedback-gold
16025maybe-all-stagefeedback-gold:
16026maybe-clean-stagefeedback-gold:
16027@if gold-bootstrap
16028maybe-all-stagefeedback-gold: all-stagefeedback-gold
16029all-stagefeedback: all-stagefeedback-gold
16030TARGET-stagefeedback-gold = $(TARGET-gold)
16031all-stagefeedback-gold: configure-stagefeedback-gold
16032 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
c52c6897 16033 @r=`${PWD_COMMAND}`; export r; \
4fa63067 16034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
16035 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
16036 $(HOST_EXPORTS) \
16037 $(POSTSTAGE1_HOST_EXPORTS) \
16038 cd $(HOST_SUBDIR)/gold && \
05a13254 16039 \
a90ef4bf
JM
16040 $(MAKE) $(BASE_FLAGS_TO_PASS) \
16041 CFLAGS="$(STAGEfeedback_CFLAGS)" \
16042 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
16043 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
16044 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
16045 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
16046 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
16047 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 16048 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 16049 $(TARGET-stagefeedback-gold)
d545f33b 16050
a90ef4bf
JM
16051maybe-clean-stagefeedback-gold: clean-stagefeedback-gold
16052clean-stagefeedback: clean-stagefeedback-gold
16053clean-stagefeedback-gold:
16054 @if [ $(current_stage) = stagefeedback ]; then \
16055 [ -f $(HOST_SUBDIR)/gold/Makefile ] || exit 0; \
16056 else \
16057 [ -f $(HOST_SUBDIR)/stagefeedback-gold/Makefile ] || exit 0; \
16058 $(MAKE) stagefeedback-start; \
16059 fi; \
16060 cd $(HOST_SUBDIR)/gold && \
b3676d82 16061 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 16062@endif gold-bootstrap
d545f33b 16063
4fa63067 16064
a7254363 16065
d545f33b
PB
16066
16067
a90ef4bf
JM
16068.PHONY: check-gold maybe-check-gold
16069maybe-check-gold:
16070@if gold
16071maybe-check-gold: check-gold
4fa63067 16072
a90ef4bf 16073check-gold:
0aed8855 16074 @: $(MAKE); $(unstage)
4fa63067
NN
16075 @r=`${PWD_COMMAND}`; export r; \
16076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16077 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 16078 (cd $(HOST_SUBDIR)/gold && \
f91ca6bc 16079 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4fa63067 16080
a90ef4bf 16081@endif gold
4fa63067 16082
a90ef4bf
JM
16083.PHONY: install-gold maybe-install-gold
16084maybe-install-gold:
16085@if gold
16086maybe-install-gold: install-gold
4fa63067 16087
a90ef4bf 16088install-gold: installdirs
0aed8855 16089 @: $(MAKE); $(unstage)
4fa63067
NN
16090 @r=`${PWD_COMMAND}`; export r; \
16091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16092 $(HOST_EXPORTS) \
a90ef4bf 16093 (cd $(HOST_SUBDIR)/gold && \
2da12f12 16094 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 16095
a90ef4bf 16096@endif gold
4fa63067 16097
a90ef4bf
JM
16098.PHONY: install-strip-gold maybe-install-strip-gold
16099maybe-install-strip-gold:
16100@if gold
16101maybe-install-strip-gold: install-strip-gold
9b980aa1 16102
a90ef4bf 16103install-strip-gold: installdirs
9b980aa1
RW
16104 @: $(MAKE); $(unstage)
16105 @r=`${PWD_COMMAND}`; export r; \
16106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16107 $(HOST_EXPORTS) \
a90ef4bf 16108 (cd $(HOST_SUBDIR)/gold && \
9b980aa1
RW
16109 $(MAKE) $(FLAGS_TO_PASS) install-strip)
16110
a90ef4bf 16111@endif gold
9b980aa1 16112
56a8fe78 16113# Other targets (info, dvi, pdf, etc.)
4fa63067 16114
a90ef4bf
JM
16115.PHONY: maybe-info-gold info-gold
16116maybe-info-gold:
16117@if gold
16118maybe-info-gold: info-gold
4fa63067 16119
a90ef4bf
JM
16120info-gold: \
16121 configure-gold
16122 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16123 r=`${PWD_COMMAND}`; export r; \
16124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16125 $(HOST_EXPORTS) \
b813574b 16126 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16128 done; \
22121df0 16129 echo "Doing info in gold"; \
a90ef4bf 16130 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16133 "RANLIB=$${RANLIB}" \
0c24b341 16134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16135 info) \
2a4cbe27
NN
16136 || exit 1
16137
a90ef4bf 16138@endif gold
2a4cbe27 16139
a90ef4bf
JM
16140.PHONY: maybe-dvi-gold dvi-gold
16141maybe-dvi-gold:
16142@if gold
16143maybe-dvi-gold: dvi-gold
2a4cbe27 16144
a90ef4bf
JM
16145dvi-gold: \
16146 configure-gold
16147 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16148 r=`${PWD_COMMAND}`; export r; \
16149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16150 $(HOST_EXPORTS) \
b813574b 16151 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16153 done; \
22121df0 16154 echo "Doing dvi in gold"; \
a90ef4bf 16155 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16158 "RANLIB=$${RANLIB}" \
0c24b341 16159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16160 dvi) \
2a4cbe27
NN
16161 || exit 1
16162
a90ef4bf 16163@endif gold
2a4cbe27 16164
a90ef4bf
JM
16165.PHONY: maybe-pdf-gold pdf-gold
16166maybe-pdf-gold:
16167@if gold
16168maybe-pdf-gold: pdf-gold
56a8fe78 16169
a90ef4bf
JM
16170pdf-gold: \
16171 configure-gold
16172 @[ -f ./gold/Makefile ] || exit 0; \
56a8fe78
DD
16173 r=`${PWD_COMMAND}`; export r; \
16174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16175 $(HOST_EXPORTS) \
16176 for flag in $(EXTRA_HOST_FLAGS) ; do \
16177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16178 done; \
22121df0 16179 echo "Doing pdf in gold"; \
a90ef4bf 16180 (cd $(HOST_SUBDIR)/gold && \
56a8fe78
DD
16181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16183 "RANLIB=$${RANLIB}" \
0c24b341 16184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
16185 pdf) \
16186 || exit 1
16187
a90ef4bf 16188@endif gold
56a8fe78 16189
a90ef4bf
JM
16190.PHONY: maybe-html-gold html-gold
16191maybe-html-gold:
16192@if gold
16193maybe-html-gold: html-gold
6d389afc 16194
a90ef4bf
JM
16195html-gold: \
16196 configure-gold
16197 @[ -f ./gold/Makefile ] || exit 0; \
6d389afc
MS
16198 r=`${PWD_COMMAND}`; export r; \
16199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
16200 $(HOST_EXPORTS) \
16201 for flag in $(EXTRA_HOST_FLAGS) ; do \
16202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16203 done; \
22121df0 16204 echo "Doing html in gold"; \
a90ef4bf 16205 (cd $(HOST_SUBDIR)/gold && \
6d389afc
MS
16206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16208 "RANLIB=$${RANLIB}" \
0c24b341 16209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
16210 html) \
16211 || exit 1
16212
a90ef4bf 16213@endif gold
6d389afc 16214
a90ef4bf
JM
16215.PHONY: maybe-TAGS-gold TAGS-gold
16216maybe-TAGS-gold:
16217@if gold
16218maybe-TAGS-gold: TAGS-gold
2a4cbe27 16219
a90ef4bf
JM
16220TAGS-gold: \
16221 configure-gold
16222 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16223 r=`${PWD_COMMAND}`; export r; \
16224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16225 $(HOST_EXPORTS) \
b813574b 16226 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16228 done; \
22121df0 16229 echo "Doing TAGS in gold"; \
a90ef4bf 16230 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16233 "RANLIB=$${RANLIB}" \
0c24b341 16234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16235 TAGS) \
2a4cbe27
NN
16236 || exit 1
16237
a90ef4bf 16238@endif gold
2a4cbe27 16239
a90ef4bf
JM
16240.PHONY: maybe-install-info-gold install-info-gold
16241maybe-install-info-gold:
16242@if gold
16243maybe-install-info-gold: install-info-gold
b813574b 16244
a90ef4bf
JM
16245install-info-gold: \
16246 configure-gold \
16247 info-gold
16248 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16249 r=`${PWD_COMMAND}`; export r; \
16250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16251 $(HOST_EXPORTS) \
b813574b 16252 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16254 done; \
22121df0 16255 echo "Doing install-info in gold"; \
a90ef4bf 16256 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16259 "RANLIB=$${RANLIB}" \
0c24b341 16260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16261 install-info) \
2a4cbe27
NN
16262 || exit 1
16263
a90ef4bf 16264@endif gold
2a4cbe27 16265
a90ef4bf
JM
16266.PHONY: maybe-install-pdf-gold install-pdf-gold
16267maybe-install-pdf-gold:
16268@if gold
16269maybe-install-pdf-gold: install-pdf-gold
a3ca38d2 16270
a90ef4bf
JM
16271install-pdf-gold: \
16272 configure-gold \
16273 pdf-gold
16274 @[ -f ./gold/Makefile ] || exit 0; \
a3ca38d2
DD
16275 r=`${PWD_COMMAND}`; export r; \
16276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16277 $(HOST_EXPORTS) \
16278 for flag in $(EXTRA_HOST_FLAGS) ; do \
16279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16280 done; \
22121df0 16281 echo "Doing install-pdf in gold"; \
a90ef4bf 16282 (cd $(HOST_SUBDIR)/gold && \
a3ca38d2
DD
16283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16285 "RANLIB=$${RANLIB}" \
0c24b341 16286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16287 install-pdf) \
16288 || exit 1
16289
a90ef4bf 16290@endif gold
a3ca38d2 16291
a90ef4bf
JM
16292.PHONY: maybe-install-html-gold install-html-gold
16293maybe-install-html-gold:
16294@if gold
16295maybe-install-html-gold: install-html-gold
108a6f8e 16296
a90ef4bf
JM
16297install-html-gold: \
16298 configure-gold \
16299 html-gold
16300 @[ -f ./gold/Makefile ] || exit 0; \
108a6f8e
CD
16301 r=`${PWD_COMMAND}`; export r; \
16302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16303 $(HOST_EXPORTS) \
16304 for flag in $(EXTRA_HOST_FLAGS) ; do \
16305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16306 done; \
22121df0 16307 echo "Doing install-html in gold"; \
a90ef4bf 16308 (cd $(HOST_SUBDIR)/gold && \
108a6f8e
CD
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}" \
108a6f8e
CD
16313 install-html) \
16314 || exit 1
16315
a90ef4bf 16316@endif gold
108a6f8e 16317
a90ef4bf
JM
16318.PHONY: maybe-installcheck-gold installcheck-gold
16319maybe-installcheck-gold:
16320@if gold
16321maybe-installcheck-gold: installcheck-gold
2a4cbe27 16322
a90ef4bf
JM
16323installcheck-gold: \
16324 configure-gold
16325 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16326 r=`${PWD_COMMAND}`; export r; \
16327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16328 $(HOST_EXPORTS) \
b813574b 16329 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16331 done; \
22121df0 16332 echo "Doing installcheck in gold"; \
a90ef4bf 16333 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16336 "RANLIB=$${RANLIB}" \
0c24b341 16337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16338 installcheck) \
2a4cbe27
NN
16339 || exit 1
16340
a90ef4bf 16341@endif gold
2a4cbe27 16342
a90ef4bf
JM
16343.PHONY: maybe-mostlyclean-gold mostlyclean-gold
16344maybe-mostlyclean-gold:
16345@if gold
16346maybe-mostlyclean-gold: mostlyclean-gold
2a4cbe27 16347
a90ef4bf
JM
16348mostlyclean-gold:
16349 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16350 r=`${PWD_COMMAND}`; export r; \
16351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16352 $(HOST_EXPORTS) \
b813574b 16353 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16355 done; \
22121df0 16356 echo "Doing mostlyclean in gold"; \
a90ef4bf 16357 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16360 "RANLIB=$${RANLIB}" \
0c24b341 16361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16362 mostlyclean) \
2a4cbe27
NN
16363 || exit 1
16364
a90ef4bf 16365@endif gold
2a4cbe27 16366
a90ef4bf
JM
16367.PHONY: maybe-clean-gold clean-gold
16368maybe-clean-gold:
16369@if gold
16370maybe-clean-gold: clean-gold
2a4cbe27 16371
a90ef4bf
JM
16372clean-gold:
16373 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16374 r=`${PWD_COMMAND}`; export r; \
16375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16376 $(HOST_EXPORTS) \
b813574b 16377 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16379 done; \
22121df0 16380 echo "Doing clean in gold"; \
a90ef4bf 16381 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16384 "RANLIB=$${RANLIB}" \
0c24b341 16385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16386 clean) \
2a4cbe27
NN
16387 || exit 1
16388
a90ef4bf 16389@endif gold
2a4cbe27 16390
a90ef4bf
JM
16391.PHONY: maybe-distclean-gold distclean-gold
16392maybe-distclean-gold:
16393@if gold
16394maybe-distclean-gold: distclean-gold
2a4cbe27 16395
a90ef4bf
JM
16396distclean-gold:
16397 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16398 r=`${PWD_COMMAND}`; export r; \
16399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16400 $(HOST_EXPORTS) \
b813574b 16401 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16403 done; \
22121df0 16404 echo "Doing distclean in gold"; \
a90ef4bf 16405 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16408 "RANLIB=$${RANLIB}" \
0c24b341 16409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16410 distclean) \
2a4cbe27
NN
16411 || exit 1
16412
a90ef4bf 16413@endif gold
2a4cbe27 16414
a90ef4bf
JM
16415.PHONY: maybe-maintainer-clean-gold maintainer-clean-gold
16416maybe-maintainer-clean-gold:
16417@if gold
16418maybe-maintainer-clean-gold: maintainer-clean-gold
2a4cbe27 16419
a90ef4bf
JM
16420maintainer-clean-gold:
16421 @[ -f ./gold/Makefile ] || exit 0; \
b40e3958
L
16422 r=`${PWD_COMMAND}`; export r; \
16423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 16424 $(HOST_EXPORTS) \
b813574b 16425 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
16426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16427 done; \
22121df0 16428 echo "Doing maintainer-clean in gold"; \
a90ef4bf 16429 (cd $(HOST_SUBDIR)/gold && \
2a4cbe27
NN
16430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16432 "RANLIB=$${RANLIB}" \
0c24b341 16433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 16434 maintainer-clean) \
4fa63067
NN
16435 || exit 1
16436
a90ef4bf 16437@endif gold
4fa63067
NN
16438
16439
a7254363 16440
a90ef4bf
JM
16441.PHONY: configure-gprof maybe-configure-gprof
16442maybe-configure-gprof:
4b900473 16443@if gcc-bootstrap
a90ef4bf 16444configure-gprof: stage_current
4b900473 16445@endif gcc-bootstrap
a90ef4bf
JM
16446@if gprof
16447maybe-configure-gprof: configure-gprof
16448configure-gprof:
16449 @: $(MAKE); $(unstage)
4b900473
PB
16450 @r=`${PWD_COMMAND}`; export r; \
16451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16452 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
22121df0 16453 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof; \
1f53ca9a 16454 $(HOST_EXPORTS) \
a90ef4bf
JM
16455 echo Configuring in $(HOST_SUBDIR)/gprof; \
16456 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
4b900473
PB
16457 case $(srcdir) in \
16458 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16459 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
4b900473
PB
16460 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16461 esac; \
1b6c0831
L
16462 module_srcdir=gprof; \
16463 $(SHELL) \
16464 $$s/$$module_srcdir/configure \
16465 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 16466 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16467 --target=${target_alias} \
4b900473 16468 || exit 1
a90ef4bf 16469@endif gprof
4b900473
PB
16470
16471
16472
4b900473 16473
a90ef4bf
JM
16474
16475.PHONY: all-gprof maybe-all-gprof
16476maybe-all-gprof:
16477@if gcc-bootstrap
16478all-gprof: stage_current
16479@endif gcc-bootstrap
16480@if gprof
16481TARGET-gprof=all
16482maybe-all-gprof: all-gprof
16483all-gprof: configure-gprof
16484 @: $(MAKE); $(unstage)
4b900473
PB
16485 @r=`${PWD_COMMAND}`; export r; \
16486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 16487 $(HOST_EXPORTS) \
a90ef4bf 16488 (cd $(HOST_SUBDIR)/gprof && \
b3676d82 16489 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
16490 $(TARGET-gprof))
16491@endif gprof
4b900473
PB
16492
16493
4b900473 16494
4b900473 16495
a90ef4bf
JM
16496.PHONY: check-gprof maybe-check-gprof
16497maybe-check-gprof:
16498@if gprof
16499maybe-check-gprof: check-gprof
4b900473 16500
a90ef4bf
JM
16501check-gprof:
16502 @: $(MAKE); $(unstage)
4b900473
PB
16503 @r=`${PWD_COMMAND}`; export r; \
16504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 16505 $(HOST_EXPORTS) \
a90ef4bf
JM
16506 (cd $(HOST_SUBDIR)/gprof && \
16507 $(MAKE) $(FLAGS_TO_PASS) check)
4b900473 16508
a90ef4bf 16509@endif gprof
4b900473 16510
a90ef4bf
JM
16511.PHONY: install-gprof maybe-install-gprof
16512maybe-install-gprof:
16513@if gprof
16514maybe-install-gprof: install-gprof
4b900473 16515
a90ef4bf
JM
16516install-gprof: installdirs
16517 @: $(MAKE); $(unstage)
4b900473
PB
16518 @r=`${PWD_COMMAND}`; export r; \
16519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16520 $(HOST_EXPORTS) \
a90ef4bf
JM
16521 (cd $(HOST_SUBDIR)/gprof && \
16522 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 16523
a90ef4bf 16524@endif gprof
4b900473 16525
a90ef4bf
JM
16526.PHONY: install-strip-gprof maybe-install-strip-gprof
16527maybe-install-strip-gprof:
16528@if gprof
16529maybe-install-strip-gprof: install-strip-gprof
4b900473 16530
a90ef4bf 16531install-strip-gprof: installdirs
4b900473
PB
16532 @: $(MAKE); $(unstage)
16533 @r=`${PWD_COMMAND}`; export r; \
16534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16535 $(HOST_EXPORTS) \
a90ef4bf
JM
16536 (cd $(HOST_SUBDIR)/gprof && \
16537 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 16538
a90ef4bf 16539@endif gprof
9b980aa1 16540
4b900473
PB
16541# Other targets (info, dvi, pdf, etc.)
16542
a90ef4bf
JM
16543.PHONY: maybe-info-gprof info-gprof
16544maybe-info-gprof:
16545@if gprof
16546maybe-info-gprof: info-gprof
4b900473 16547
a90ef4bf
JM
16548info-gprof: \
16549 configure-gprof
16550 @: $(MAKE); $(unstage)
16551 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16552 r=`${PWD_COMMAND}`; export r; \
16553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16554 $(HOST_EXPORTS) \
16555 for flag in $(EXTRA_HOST_FLAGS) ; do \
16556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16557 done; \
22121df0 16558 echo "Doing info in gprof"; \
a90ef4bf 16559 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16562 "RANLIB=$${RANLIB}" \
0c24b341 16563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16564 info) \
16565 || exit 1
16566
a90ef4bf 16567@endif gprof
4b900473 16568
a90ef4bf
JM
16569.PHONY: maybe-dvi-gprof dvi-gprof
16570maybe-dvi-gprof:
16571@if gprof
16572maybe-dvi-gprof: dvi-gprof
4b900473 16573
a90ef4bf
JM
16574dvi-gprof: \
16575 configure-gprof
16576 @: $(MAKE); $(unstage)
16577 @[ -f ./gprof/Makefile ] || exit 0; \
16578 r=`${PWD_COMMAND}`; export r; \
16579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16580 $(HOST_EXPORTS) \
4b900473
PB
16581 for flag in $(EXTRA_HOST_FLAGS) ; do \
16582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16583 done; \
22121df0 16584 echo "Doing dvi in gprof"; \
a90ef4bf 16585 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16588 "RANLIB=$${RANLIB}" \
0c24b341 16589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16590 dvi) \
16591 || exit 1
16592
a90ef4bf 16593@endif gprof
4b900473 16594
a90ef4bf
JM
16595.PHONY: maybe-pdf-gprof pdf-gprof
16596maybe-pdf-gprof:
16597@if gprof
16598maybe-pdf-gprof: pdf-gprof
4b900473 16599
a90ef4bf
JM
16600pdf-gprof: \
16601 configure-gprof
16602 @: $(MAKE); $(unstage)
16603 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16604 r=`${PWD_COMMAND}`; export r; \
16605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16606 $(HOST_EXPORTS) \
16607 for flag in $(EXTRA_HOST_FLAGS) ; do \
16608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16609 done; \
22121df0 16610 echo "Doing pdf in gprof"; \
a90ef4bf 16611 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16614 "RANLIB=$${RANLIB}" \
0c24b341 16615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16616 pdf) \
16617 || exit 1
16618
a90ef4bf 16619@endif gprof
4b900473 16620
a90ef4bf
JM
16621.PHONY: maybe-html-gprof html-gprof
16622maybe-html-gprof:
16623@if gprof
16624maybe-html-gprof: html-gprof
4b900473 16625
a90ef4bf
JM
16626html-gprof: \
16627 configure-gprof
16628 @: $(MAKE); $(unstage)
16629 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16630 r=`${PWD_COMMAND}`; export r; \
16631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16632 $(HOST_EXPORTS) \
16633 for flag in $(EXTRA_HOST_FLAGS) ; do \
16634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16635 done; \
22121df0 16636 echo "Doing html in gprof"; \
a90ef4bf 16637 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16640 "RANLIB=$${RANLIB}" \
0c24b341 16641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16642 html) \
16643 || exit 1
16644
a90ef4bf 16645@endif gprof
4b900473 16646
a90ef4bf
JM
16647.PHONY: maybe-TAGS-gprof TAGS-gprof
16648maybe-TAGS-gprof:
16649@if gprof
16650maybe-TAGS-gprof: TAGS-gprof
4b900473 16651
a90ef4bf
JM
16652TAGS-gprof: \
16653 configure-gprof
16654 @: $(MAKE); $(unstage)
16655 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16656 r=`${PWD_COMMAND}`; export r; \
16657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16658 $(HOST_EXPORTS) \
16659 for flag in $(EXTRA_HOST_FLAGS) ; do \
16660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16661 done; \
22121df0 16662 echo "Doing TAGS in gprof"; \
a90ef4bf 16663 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16666 "RANLIB=$${RANLIB}" \
0c24b341 16667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16668 TAGS) \
16669 || exit 1
16670
a90ef4bf 16671@endif gprof
4b900473 16672
a90ef4bf
JM
16673.PHONY: maybe-install-info-gprof install-info-gprof
16674maybe-install-info-gprof:
16675@if gprof
16676maybe-install-info-gprof: install-info-gprof
4b900473 16677
a90ef4bf
JM
16678install-info-gprof: \
16679 configure-gprof \
16680 info-gprof
16681 @: $(MAKE); $(unstage)
16682 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16683 r=`${PWD_COMMAND}`; export r; \
16684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16685 $(HOST_EXPORTS) \
16686 for flag in $(EXTRA_HOST_FLAGS) ; do \
16687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16688 done; \
22121df0 16689 echo "Doing install-info in gprof"; \
a90ef4bf 16690 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16693 "RANLIB=$${RANLIB}" \
0c24b341 16694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16695 install-info) \
16696 || exit 1
16697
a90ef4bf 16698@endif gprof
4b900473 16699
a90ef4bf
JM
16700.PHONY: maybe-install-pdf-gprof install-pdf-gprof
16701maybe-install-pdf-gprof:
16702@if gprof
16703maybe-install-pdf-gprof: install-pdf-gprof
a3ca38d2 16704
a90ef4bf
JM
16705install-pdf-gprof: \
16706 configure-gprof \
16707 pdf-gprof
16708 @: $(MAKE); $(unstage)
16709 @[ -f ./gprof/Makefile ] || exit 0; \
a3ca38d2
DD
16710 r=`${PWD_COMMAND}`; export r; \
16711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16712 $(HOST_EXPORTS) \
16713 for flag in $(EXTRA_HOST_FLAGS) ; do \
16714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16715 done; \
22121df0 16716 echo "Doing install-pdf in gprof"; \
a90ef4bf 16717 (cd $(HOST_SUBDIR)/gprof && \
a3ca38d2
DD
16718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16720 "RANLIB=$${RANLIB}" \
0c24b341 16721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
16722 install-pdf) \
16723 || exit 1
16724
a90ef4bf 16725@endif gprof
a3ca38d2 16726
a90ef4bf
JM
16727.PHONY: maybe-install-html-gprof install-html-gprof
16728maybe-install-html-gprof:
16729@if gprof
16730maybe-install-html-gprof: install-html-gprof
4b900473 16731
a90ef4bf
JM
16732install-html-gprof: \
16733 configure-gprof \
16734 html-gprof
16735 @: $(MAKE); $(unstage)
16736 @[ -f ./gprof/Makefile ] || exit 0; \
4b900473
PB
16737 r=`${PWD_COMMAND}`; export r; \
16738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16739 $(HOST_EXPORTS) \
16740 for flag in $(EXTRA_HOST_FLAGS) ; do \
16741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16742 done; \
22121df0 16743 echo "Doing install-html in gprof"; \
a90ef4bf 16744 (cd $(HOST_SUBDIR)/gprof && \
4b900473
PB
16745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16747 "RANLIB=$${RANLIB}" \
0c24b341 16748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
16749 install-html) \
16750 || exit 1
16751
a90ef4bf 16752@endif gprof
4b900473 16753
a90ef4bf
JM
16754.PHONY: maybe-installcheck-gprof installcheck-gprof
16755maybe-installcheck-gprof:
16756@if gprof
16757maybe-installcheck-gprof: installcheck-gprof
4b900473 16758
a90ef4bf
JM
16759installcheck-gprof: \
16760 configure-gprof
16761 @: $(MAKE); $(unstage)
16762 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16763 r=`${PWD_COMMAND}`; export r; \
16764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16765 $(HOST_EXPORTS) \
16766 for flag in $(EXTRA_HOST_FLAGS) ; do \
16767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16768 done; \
22121df0 16769 echo "Doing installcheck in gprof"; \
a90ef4bf 16770 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16773 "RANLIB=$${RANLIB}" \
16774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16775 installcheck) \
16776 || exit 1
16777
a90ef4bf 16778@endif gprof
e28c595f 16779
a90ef4bf
JM
16780.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
16781maybe-mostlyclean-gprof:
16782@if gprof
16783maybe-mostlyclean-gprof: mostlyclean-gprof
e28c595f 16784
a90ef4bf
JM
16785mostlyclean-gprof:
16786 @: $(MAKE); $(unstage)
16787 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16788 r=`${PWD_COMMAND}`; export r; \
16789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16790 $(HOST_EXPORTS) \
16791 for flag in $(EXTRA_HOST_FLAGS) ; do \
16792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16793 done; \
22121df0 16794 echo "Doing mostlyclean in gprof"; \
a90ef4bf 16795 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16798 "RANLIB=$${RANLIB}" \
16799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16800 mostlyclean) \
16801 || exit 1
16802
a90ef4bf 16803@endif gprof
e28c595f 16804
a90ef4bf
JM
16805.PHONY: maybe-clean-gprof clean-gprof
16806maybe-clean-gprof:
16807@if gprof
16808maybe-clean-gprof: clean-gprof
e28c595f 16809
a90ef4bf
JM
16810clean-gprof:
16811 @: $(MAKE); $(unstage)
16812 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16813 r=`${PWD_COMMAND}`; export r; \
16814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16815 $(HOST_EXPORTS) \
16816 for flag in $(EXTRA_HOST_FLAGS) ; do \
16817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16818 done; \
22121df0 16819 echo "Doing clean in gprof"; \
a90ef4bf 16820 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16823 "RANLIB=$${RANLIB}" \
16824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16825 clean) \
16826 || exit 1
16827
a90ef4bf 16828@endif gprof
e28c595f 16829
a90ef4bf
JM
16830.PHONY: maybe-distclean-gprof distclean-gprof
16831maybe-distclean-gprof:
16832@if gprof
16833maybe-distclean-gprof: distclean-gprof
e28c595f 16834
a90ef4bf
JM
16835distclean-gprof:
16836 @: $(MAKE); $(unstage)
16837 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16838 r=`${PWD_COMMAND}`; export r; \
16839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16840 $(HOST_EXPORTS) \
16841 for flag in $(EXTRA_HOST_FLAGS) ; do \
16842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16843 done; \
22121df0 16844 echo "Doing distclean in gprof"; \
a90ef4bf 16845 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16848 "RANLIB=$${RANLIB}" \
16849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16850 distclean) \
16851 || exit 1
16852
a90ef4bf 16853@endif gprof
e28c595f 16854
a90ef4bf
JM
16855.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
16856maybe-maintainer-clean-gprof:
16857@if gprof
16858maybe-maintainer-clean-gprof: maintainer-clean-gprof
e28c595f 16859
a90ef4bf
JM
16860maintainer-clean-gprof:
16861 @: $(MAKE); $(unstage)
16862 @[ -f ./gprof/Makefile ] || exit 0; \
e28c595f
JM
16863 r=`${PWD_COMMAND}`; export r; \
16864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16865 $(HOST_EXPORTS) \
16866 for flag in $(EXTRA_HOST_FLAGS) ; do \
16867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16868 done; \
22121df0 16869 echo "Doing maintainer-clean in gprof"; \
a90ef4bf 16870 (cd $(HOST_SUBDIR)/gprof && \
e28c595f
JM
16871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16873 "RANLIB=$${RANLIB}" \
16874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
16875 maintainer-clean) \
16876 || exit 1
16877
a90ef4bf 16878@endif gprof
e28c595f
JM
16879
16880
16881
a90ef4bf
JM
16882.PHONY: configure-intl maybe-configure-intl
16883maybe-configure-intl:
e28c595f 16884@if gcc-bootstrap
a90ef4bf 16885configure-intl: stage_current
e28c595f 16886@endif gcc-bootstrap
a90ef4bf
JM
16887@if intl
16888maybe-configure-intl: configure-intl
16889configure-intl:
e28c595f
JM
16890 @r=`${PWD_COMMAND}`; export r; \
16891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 16892 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
22121df0 16893 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
1f53ca9a 16894 $(HOST_EXPORTS) \
a90ef4bf
JM
16895 echo Configuring in $(HOST_SUBDIR)/intl; \
16896 cd "$(HOST_SUBDIR)/intl" || exit 1; \
e28c595f
JM
16897 case $(srcdir) in \
16898 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16899 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16900 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16901 esac; \
1b6c0831
L
16902 module_srcdir=intl; \
16903 $(SHELL) \
16904 $$s/$$module_srcdir/configure \
16905 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16906 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16907 --target=${target_alias} \
e28c595f 16908 || exit 1
a90ef4bf 16909@endif intl
e28c595f
JM
16910
16911
16912
a90ef4bf
JM
16913.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16914maybe-configure-stage1-intl:
16915@if intl-bootstrap
16916maybe-configure-stage1-intl: configure-stage1-intl
16917configure-stage1-intl:
e28c595f 16918 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 16919 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16920 @r=`${PWD_COMMAND}`; export r; \
16921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16922 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 16923 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
1b05fbbd 16924 $(HOST_EXPORTS) \
e28c595f 16925 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16926 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
16927 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
16928 echo Configuring stage 1 in $(HOST_SUBDIR)/intl; \
16929 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16930 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16931 case $(srcdir) in \
16932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16933 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16935 esac; \
1b6c0831
L
16936 module_srcdir=intl; \
16937 $(SHELL) $$s/$$module_srcdir/configure \
16938 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16939 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
16940 --target=${target_alias} \
16941 \
a90ef4bf
JM
16942 $(STAGE1_CONFIGURE_FLAGS)
16943@endif intl-bootstrap
e28c595f 16944
a90ef4bf
JM
16945.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16946maybe-configure-stage2-intl:
16947@if intl-bootstrap
16948maybe-configure-stage2-intl: configure-stage2-intl
16949configure-stage2-intl:
e28c595f 16950 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 16951 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16952 @r=`${PWD_COMMAND}`; export r; \
16953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16954 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 16955 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16956 $(HOST_EXPORTS) \
1b05fbbd 16957 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16958 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16959 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
16960 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16961 echo Configuring stage 2 in $(HOST_SUBDIR)/intl; \
16962 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16963 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16964 case $(srcdir) in \
16965 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16966 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
16967 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16968 esac; \
1b6c0831
L
16969 module_srcdir=intl; \
16970 $(SHELL) $$s/$$module_srcdir/configure \
16971 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 16972 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 16973 --target=${target_alias} \
22121df0 16974 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
16975 $(STAGE2_CONFIGURE_FLAGS)
16976@endif intl-bootstrap
e28c595f 16977
a90ef4bf
JM
16978.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16979maybe-configure-stage3-intl:
16980@if intl-bootstrap
16981maybe-configure-stage3-intl: configure-stage3-intl
16982configure-stage3-intl:
e28c595f 16983 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 16984 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
16985 @r=`${PWD_COMMAND}`; export r; \
16986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 16987 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 16988 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 16989 $(HOST_EXPORTS) \
1b05fbbd 16990 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 16991 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
16992 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
16993 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
16994 echo Configuring stage 3 in $(HOST_SUBDIR)/intl; \
16995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 16996 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
16997 case $(srcdir) in \
16998 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 16999 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17000 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17001 esac; \
1b6c0831
L
17002 module_srcdir=intl; \
17003 $(SHELL) $$s/$$module_srcdir/configure \
17004 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 17005 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17006 --target=${target_alias} \
22121df0 17007 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17008 $(STAGE3_CONFIGURE_FLAGS)
17009@endif intl-bootstrap
e28c595f 17010
a90ef4bf
JM
17011.PHONY: configure-stage4-intl maybe-configure-stage4-intl
17012maybe-configure-stage4-intl:
17013@if intl-bootstrap
17014maybe-configure-stage4-intl: configure-stage4-intl
17015configure-stage4-intl:
e28c595f 17016 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 17017 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
17018 @r=`${PWD_COMMAND}`; export r; \
17019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17020 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 17021 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 17022 $(HOST_EXPORTS) \
1b05fbbd 17023 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 17024 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17025 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
17026 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17027 echo Configuring stage 4 in $(HOST_SUBDIR)/intl; \
17028 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 17029 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17030 case $(srcdir) in \
17031 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17032 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17033 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17034 esac; \
1b6c0831
L
17035 module_srcdir=intl; \
17036 $(SHELL) $$s/$$module_srcdir/configure \
17037 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 17038 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17039 --target=${target_alias} \
22121df0 17040 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17041 $(STAGE4_CONFIGURE_FLAGS)
17042@endif intl-bootstrap
e28c595f 17043
a90ef4bf
JM
17044.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
17045maybe-configure-stageprofile-intl:
17046@if intl-bootstrap
17047maybe-configure-stageprofile-intl: configure-stageprofile-intl
17048configure-stageprofile-intl:
e28c595f 17049 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 17050 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
17051 @r=`${PWD_COMMAND}`; export r; \
17052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17053 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 17054 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 17055 $(HOST_EXPORTS) \
1b05fbbd
AO
17056 $(POSTSTAGE1_HOST_EXPORTS) \
17057 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17058 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
17059 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17060 echo Configuring stage profile in $(HOST_SUBDIR)/intl; \
17061 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 17062 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17063 case $(srcdir) in \
17064 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17065 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17066 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17067 esac; \
1b6c0831
L
17068 module_srcdir=intl; \
17069 $(SHELL) $$s/$$module_srcdir/configure \
17070 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 17071 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17072 --target=${target_alias} \
22121df0 17073 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17074 $(STAGEprofile_CONFIGURE_FLAGS)
17075@endif intl-bootstrap
e28c595f 17076
a90ef4bf
JM
17077.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
17078maybe-configure-stagefeedback-intl:
17079@if intl-bootstrap
17080maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
17081configure-stagefeedback-intl:
e28c595f 17082 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 17083 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
e28c595f
JM
17084 @r=`${PWD_COMMAND}`; export r; \
17085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17086 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 17087 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
e28c595f 17088 $(HOST_EXPORTS) \
1b05fbbd
AO
17089 $(POSTSTAGE1_HOST_EXPORTS) \
17090 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
17091 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
17092 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
17093 echo Configuring stage feedback in $(HOST_SUBDIR)/intl; \
17094 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl; \
a90ef4bf 17095 cd $(HOST_SUBDIR)/intl || exit 1; \
e28c595f
JM
17096 case $(srcdir) in \
17097 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17098 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
e28c595f
JM
17099 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17100 esac; \
1b6c0831
L
17101 module_srcdir=intl; \
17102 $(SHELL) $$s/$$module_srcdir/configure \
17103 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 17104 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17105 --target=${target_alias} \
22121df0 17106 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
17107 $(STAGEfeedback_CONFIGURE_FLAGS)
17108@endif intl-bootstrap
e28c595f
JM
17109
17110
17111
17112
17113
a90ef4bf
JM
17114.PHONY: all-intl maybe-all-intl
17115maybe-all-intl:
e28c595f 17116@if gcc-bootstrap
a90ef4bf 17117all-intl: stage_current
e28c595f 17118@endif gcc-bootstrap
a90ef4bf
JM
17119@if intl
17120TARGET-intl=all
17121maybe-all-intl: all-intl
17122all-intl: configure-intl
e28c595f
JM
17123 @r=`${PWD_COMMAND}`; export r; \
17124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 17125 $(HOST_EXPORTS) \
a90ef4bf 17126 (cd $(HOST_SUBDIR)/intl && \
b3676d82 17127 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17128 $(TARGET-intl))
17129@endif intl
e28c595f
JM
17130
17131
17132
a90ef4bf
JM
17133.PHONY: all-stage1-intl maybe-all-stage1-intl
17134.PHONY: clean-stage1-intl maybe-clean-stage1-intl
17135maybe-all-stage1-intl:
17136maybe-clean-stage1-intl:
17137@if intl-bootstrap
17138maybe-all-stage1-intl: all-stage1-intl
17139all-stage1: all-stage1-intl
17140TARGET-stage1-intl = $(TARGET-intl)
17141all-stage1-intl: configure-stage1-intl
e28c595f
JM
17142 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
17143 @r=`${PWD_COMMAND}`; export r; \
17144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17145 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 17146 $(HOST_EXPORTS) \
a90ef4bf 17147 cd $(HOST_SUBDIR)/intl && \
05a13254 17148 \
e28c595f 17149 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17150 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 17151 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
17152 LIBCFLAGS="$(LIBCFLAGS)" \
17153 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17154 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17155 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
17156 $(EXTRA_HOST_FLAGS) \
17157 $(STAGE1_FLAGS_TO_PASS) \
05a13254 17158 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 17159 $(TARGET-stage1-intl)
e28c595f 17160
a90ef4bf
JM
17161maybe-clean-stage1-intl: clean-stage1-intl
17162clean-stage1: clean-stage1-intl
17163clean-stage1-intl:
e28c595f 17164 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 17165 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17166 else \
a90ef4bf 17167 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
e28c595f
JM
17168 $(MAKE) stage1-start; \
17169 fi; \
a90ef4bf 17170 cd $(HOST_SUBDIR)/intl && \
e28c595f 17171 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 17172 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17173@endif intl-bootstrap
e28c595f
JM
17174
17175
a90ef4bf
JM
17176.PHONY: all-stage2-intl maybe-all-stage2-intl
17177.PHONY: clean-stage2-intl maybe-clean-stage2-intl
17178maybe-all-stage2-intl:
17179maybe-clean-stage2-intl:
17180@if intl-bootstrap
17181maybe-all-stage2-intl: all-stage2-intl
17182all-stage2: all-stage2-intl
17183TARGET-stage2-intl = $(TARGET-intl)
17184all-stage2-intl: configure-stage2-intl
e28c595f
JM
17185 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
17186 @r=`${PWD_COMMAND}`; export r; \
17187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17188 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 17189 $(HOST_EXPORTS) \
1f53ca9a 17190 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17191 cd $(HOST_SUBDIR)/intl && \
05a13254 17192 \
e28c595f 17193 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17194 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 17195 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
17196 LIBCFLAGS="$(STAGE2_CFLAGS)" \
17197 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17198 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17199 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17200 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17201 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 17202 $(TARGET-stage2-intl)
e28c595f 17203
a90ef4bf
JM
17204maybe-clean-stage2-intl: clean-stage2-intl
17205clean-stage2: clean-stage2-intl
17206clean-stage2-intl:
e28c595f 17207 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 17208 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17209 else \
a90ef4bf 17210 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
e28c595f
JM
17211 $(MAKE) stage2-start; \
17212 fi; \
a90ef4bf 17213 cd $(HOST_SUBDIR)/intl && \
b3676d82 17214 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17215@endif intl-bootstrap
e28c595f
JM
17216
17217
a90ef4bf
JM
17218.PHONY: all-stage3-intl maybe-all-stage3-intl
17219.PHONY: clean-stage3-intl maybe-clean-stage3-intl
17220maybe-all-stage3-intl:
17221maybe-clean-stage3-intl:
17222@if intl-bootstrap
17223maybe-all-stage3-intl: all-stage3-intl
17224all-stage3: all-stage3-intl
17225TARGET-stage3-intl = $(TARGET-intl)
17226all-stage3-intl: configure-stage3-intl
e28c595f
JM
17227 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
17228 @r=`${PWD_COMMAND}`; export r; \
17229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17230 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 17231 $(HOST_EXPORTS) \
1f53ca9a 17232 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17233 cd $(HOST_SUBDIR)/intl && \
05a13254 17234 \
e28c595f 17235 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17236 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 17237 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
17238 LIBCFLAGS="$(STAGE3_CFLAGS)" \
17239 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17240 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17241 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17242 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17243 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 17244 $(TARGET-stage3-intl)
e28c595f 17245
a90ef4bf
JM
17246maybe-clean-stage3-intl: clean-stage3-intl
17247clean-stage3: clean-stage3-intl
17248clean-stage3-intl:
e28c595f 17249 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 17250 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17251 else \
a90ef4bf 17252 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
e28c595f
JM
17253 $(MAKE) stage3-start; \
17254 fi; \
a90ef4bf 17255 cd $(HOST_SUBDIR)/intl && \
b3676d82 17256 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17257@endif intl-bootstrap
e28c595f
JM
17258
17259
a90ef4bf
JM
17260.PHONY: all-stage4-intl maybe-all-stage4-intl
17261.PHONY: clean-stage4-intl maybe-clean-stage4-intl
17262maybe-all-stage4-intl:
17263maybe-clean-stage4-intl:
17264@if intl-bootstrap
17265maybe-all-stage4-intl: all-stage4-intl
17266all-stage4: all-stage4-intl
17267TARGET-stage4-intl = $(TARGET-intl)
17268all-stage4-intl: configure-stage4-intl
e28c595f
JM
17269 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
17270 @r=`${PWD_COMMAND}`; export r; \
17271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17272 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 17273 $(HOST_EXPORTS) \
1f53ca9a 17274 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17275 cd $(HOST_SUBDIR)/intl && \
05a13254 17276 \
e28c595f 17277 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17278 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 17279 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 17280 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
17281 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17282 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17283 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17284 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17285 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 17286 $(TARGET-stage4-intl)
e28c595f 17287
a90ef4bf
JM
17288maybe-clean-stage4-intl: clean-stage4-intl
17289clean-stage4: clean-stage4-intl
17290clean-stage4-intl:
e28c595f 17291 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 17292 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17293 else \
a90ef4bf 17294 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
e28c595f
JM
17295 $(MAKE) stage4-start; \
17296 fi; \
a90ef4bf 17297 cd $(HOST_SUBDIR)/intl && \
b3676d82 17298 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17299@endif intl-bootstrap
e28c595f
JM
17300
17301
a90ef4bf
JM
17302.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
17303.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
17304maybe-all-stageprofile-intl:
17305maybe-clean-stageprofile-intl:
17306@if intl-bootstrap
17307maybe-all-stageprofile-intl: all-stageprofile-intl
17308all-stageprofile: all-stageprofile-intl
17309TARGET-stageprofile-intl = $(TARGET-intl)
17310all-stageprofile-intl: configure-stageprofile-intl
e28c595f
JM
17311 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
17312 @r=`${PWD_COMMAND}`; export r; \
17313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17314 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 17315 $(HOST_EXPORTS) \
1f53ca9a 17316 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17317 cd $(HOST_SUBDIR)/intl && \
05a13254 17318 \
e28c595f 17319 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17320 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 17321 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
17322 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
17323 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17324 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17325 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17326 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17327 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 17328 $(TARGET-stageprofile-intl)
e28c595f 17329
a90ef4bf
JM
17330maybe-clean-stageprofile-intl: clean-stageprofile-intl
17331clean-stageprofile: clean-stageprofile-intl
17332clean-stageprofile-intl:
e28c595f 17333 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 17334 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17335 else \
a90ef4bf 17336 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
e28c595f
JM
17337 $(MAKE) stageprofile-start; \
17338 fi; \
a90ef4bf 17339 cd $(HOST_SUBDIR)/intl && \
b3676d82 17340 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17341@endif intl-bootstrap
e28c595f
JM
17342
17343
a90ef4bf
JM
17344.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
17345.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
17346maybe-all-stagefeedback-intl:
17347maybe-clean-stagefeedback-intl:
17348@if intl-bootstrap
17349maybe-all-stagefeedback-intl: all-stagefeedback-intl
17350all-stagefeedback: all-stagefeedback-intl
17351TARGET-stagefeedback-intl = $(TARGET-intl)
17352all-stagefeedback-intl: configure-stagefeedback-intl
e28c595f
JM
17353 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
17354 @r=`${PWD_COMMAND}`; export r; \
17355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 17356 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 17357 $(HOST_EXPORTS) \
1f53ca9a 17358 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 17359 cd $(HOST_SUBDIR)/intl && \
05a13254 17360 \
e28c595f 17361 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 17362 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 17363 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
17364 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
17365 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
17366 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
17367 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
17368 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 17369 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 17370 $(TARGET-stagefeedback-intl)
e28c595f 17371
a90ef4bf
JM
17372maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
17373clean-stagefeedback: clean-stagefeedback-intl
17374clean-stagefeedback-intl:
e28c595f 17375 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 17376 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
e28c595f 17377 else \
a90ef4bf 17378 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
e28c595f
JM
17379 $(MAKE) stagefeedback-start; \
17380 fi; \
a90ef4bf 17381 cd $(HOST_SUBDIR)/intl && \
b3676d82 17382 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 17383@endif intl-bootstrap
e28c595f
JM
17384
17385
17386
17387
17388
a90ef4bf
JM
17389.PHONY: check-intl maybe-check-intl
17390maybe-check-intl:
17391@if intl
17392maybe-check-intl: check-intl
e28c595f 17393
a90ef4bf 17394check-intl:
e28c595f
JM
17395 @: $(MAKE); $(unstage)
17396 @r=`${PWD_COMMAND}`; export r; \
17397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17398 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 17399 (cd $(HOST_SUBDIR)/intl && \
f91ca6bc 17400 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 17401
a90ef4bf 17402@endif intl
e28c595f 17403
a90ef4bf
JM
17404.PHONY: install-intl maybe-install-intl
17405maybe-install-intl:
17406@if intl
17407maybe-install-intl: install-intl
e28c595f 17408
a90ef4bf
JM
17409install-intl: installdirs
17410 @: $(MAKE); $(unstage)
17411 @r=`${PWD_COMMAND}`; export r; \
17412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17413 $(HOST_EXPORTS) \
17414 (cd $(HOST_SUBDIR)/intl && \
17415 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 17416
a90ef4bf 17417@endif intl
e28c595f 17418
a90ef4bf
JM
17419.PHONY: install-strip-intl maybe-install-strip-intl
17420maybe-install-strip-intl:
17421@if intl
17422maybe-install-strip-intl: install-strip-intl
9b980aa1 17423
a90ef4bf
JM
17424install-strip-intl: installdirs
17425 @: $(MAKE); $(unstage)
17426 @r=`${PWD_COMMAND}`; export r; \
17427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17428 $(HOST_EXPORTS) \
17429 (cd $(HOST_SUBDIR)/intl && \
17430 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 17431
a90ef4bf 17432@endif intl
9b980aa1 17433
e28c595f
JM
17434# Other targets (info, dvi, pdf, etc.)
17435
a90ef4bf
JM
17436.PHONY: maybe-info-intl info-intl
17437maybe-info-intl:
17438@if intl
17439maybe-info-intl: info-intl
e28c595f 17440
a90ef4bf
JM
17441info-intl: \
17442 configure-intl
17443 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17444 r=`${PWD_COMMAND}`; export r; \
17445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17446 $(HOST_EXPORTS) \
17447 for flag in $(EXTRA_HOST_FLAGS) ; do \
17448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17449 done; \
22121df0 17450 echo "Doing info in intl"; \
a90ef4bf 17451 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17454 "RANLIB=$${RANLIB}" \
17455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17456 info) \
17457 || exit 1
17458
a90ef4bf 17459@endif intl
e28c595f 17460
a90ef4bf
JM
17461.PHONY: maybe-dvi-intl dvi-intl
17462maybe-dvi-intl:
17463@if intl
17464maybe-dvi-intl: dvi-intl
e28c595f 17465
a90ef4bf
JM
17466dvi-intl: \
17467 configure-intl
17468 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17469 r=`${PWD_COMMAND}`; export r; \
17470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17471 $(HOST_EXPORTS) \
17472 for flag in $(EXTRA_HOST_FLAGS) ; do \
17473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17474 done; \
22121df0 17475 echo "Doing dvi in intl"; \
a90ef4bf 17476 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17479 "RANLIB=$${RANLIB}" \
17480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17481 dvi) \
17482 || exit 1
17483
a90ef4bf 17484@endif intl
e28c595f 17485
a90ef4bf
JM
17486.PHONY: maybe-pdf-intl pdf-intl
17487maybe-pdf-intl:
17488@if intl
17489maybe-pdf-intl: pdf-intl
e28c595f 17490
a90ef4bf
JM
17491pdf-intl: \
17492 configure-intl
17493 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17494 r=`${PWD_COMMAND}`; export r; \
17495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17496 $(HOST_EXPORTS) \
17497 for flag in $(EXTRA_HOST_FLAGS) ; do \
17498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17499 done; \
22121df0 17500 echo "Doing pdf in intl"; \
a90ef4bf 17501 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17504 "RANLIB=$${RANLIB}" \
17505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17506 pdf) \
17507 || exit 1
17508
a90ef4bf 17509@endif intl
e28c595f 17510
a90ef4bf
JM
17511.PHONY: maybe-html-intl html-intl
17512maybe-html-intl:
17513@if intl
17514maybe-html-intl: html-intl
e28c595f 17515
a90ef4bf
JM
17516html-intl: \
17517 configure-intl
17518 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17519 r=`${PWD_COMMAND}`; export r; \
17520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17521 $(HOST_EXPORTS) \
17522 for flag in $(EXTRA_HOST_FLAGS) ; do \
17523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17524 done; \
22121df0 17525 echo "Doing html in intl"; \
a90ef4bf 17526 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17529 "RANLIB=$${RANLIB}" \
17530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17531 html) \
17532 || exit 1
17533
a90ef4bf 17534@endif intl
e28c595f 17535
a90ef4bf
JM
17536.PHONY: maybe-TAGS-intl TAGS-intl
17537maybe-TAGS-intl:
17538@if intl
17539maybe-TAGS-intl: TAGS-intl
e28c595f 17540
a90ef4bf
JM
17541TAGS-intl: \
17542 configure-intl
17543 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17544 r=`${PWD_COMMAND}`; export r; \
17545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17546 $(HOST_EXPORTS) \
17547 for flag in $(EXTRA_HOST_FLAGS) ; do \
17548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17549 done; \
22121df0 17550 echo "Doing TAGS in intl"; \
a90ef4bf 17551 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17554 "RANLIB=$${RANLIB}" \
17555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17556 TAGS) \
17557 || exit 1
17558
a90ef4bf 17559@endif intl
e28c595f 17560
a90ef4bf
JM
17561.PHONY: maybe-install-info-intl install-info-intl
17562maybe-install-info-intl:
17563@if intl
17564maybe-install-info-intl: install-info-intl
e28c595f 17565
a90ef4bf
JM
17566install-info-intl: \
17567 configure-intl \
17568 info-intl
17569 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17570 r=`${PWD_COMMAND}`; export r; \
17571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17572 $(HOST_EXPORTS) \
17573 for flag in $(EXTRA_HOST_FLAGS) ; do \
17574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17575 done; \
22121df0 17576 echo "Doing install-info in intl"; \
a90ef4bf 17577 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17580 "RANLIB=$${RANLIB}" \
17581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17582 install-info) \
17583 || exit 1
17584
a90ef4bf 17585@endif intl
e28c595f 17586
a90ef4bf
JM
17587.PHONY: maybe-install-pdf-intl install-pdf-intl
17588maybe-install-pdf-intl:
17589@if intl
17590maybe-install-pdf-intl: install-pdf-intl
e28c595f 17591
a90ef4bf
JM
17592install-pdf-intl: \
17593 configure-intl \
17594 pdf-intl
17595 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17596 r=`${PWD_COMMAND}`; export r; \
17597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17598 $(HOST_EXPORTS) \
17599 for flag in $(EXTRA_HOST_FLAGS) ; do \
17600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17601 done; \
22121df0 17602 echo "Doing install-pdf in intl"; \
a90ef4bf 17603 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17606 "RANLIB=$${RANLIB}" \
17607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17608 install-pdf) \
17609 || exit 1
17610
a90ef4bf 17611@endif intl
e28c595f 17612
a90ef4bf
JM
17613.PHONY: maybe-install-html-intl install-html-intl
17614maybe-install-html-intl:
17615@if intl
17616maybe-install-html-intl: install-html-intl
e28c595f 17617
a90ef4bf
JM
17618install-html-intl: \
17619 configure-intl \
17620 html-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 install-html 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 install-html) \
17635 || exit 1
17636
a90ef4bf 17637@endif intl
e28c595f 17638
a90ef4bf
JM
17639.PHONY: maybe-installcheck-intl installcheck-intl
17640maybe-installcheck-intl:
17641@if intl
17642maybe-installcheck-intl: installcheck-intl
e28c595f 17643
a90ef4bf
JM
17644installcheck-intl: \
17645 configure-intl
17646 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17647 r=`${PWD_COMMAND}`; export r; \
17648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17649 $(HOST_EXPORTS) \
17650 for flag in $(EXTRA_HOST_FLAGS) ; do \
17651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17652 done; \
22121df0 17653 echo "Doing installcheck in intl"; \
a90ef4bf 17654 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17657 "RANLIB=$${RANLIB}" \
17658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17659 installcheck) \
17660 || exit 1
17661
a90ef4bf 17662@endif intl
e28c595f 17663
a90ef4bf
JM
17664.PHONY: maybe-mostlyclean-intl mostlyclean-intl
17665maybe-mostlyclean-intl:
17666@if intl
17667maybe-mostlyclean-intl: mostlyclean-intl
e28c595f 17668
a90ef4bf
JM
17669mostlyclean-intl:
17670 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17671 r=`${PWD_COMMAND}`; export r; \
17672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17673 $(HOST_EXPORTS) \
17674 for flag in $(EXTRA_HOST_FLAGS) ; do \
17675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17676 done; \
22121df0 17677 echo "Doing mostlyclean in intl"; \
a90ef4bf 17678 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17681 "RANLIB=$${RANLIB}" \
17682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17683 mostlyclean) \
17684 || exit 1
17685
a90ef4bf 17686@endif intl
e28c595f 17687
a90ef4bf
JM
17688.PHONY: maybe-clean-intl clean-intl
17689maybe-clean-intl:
17690@if intl
17691maybe-clean-intl: clean-intl
e28c595f 17692
a90ef4bf
JM
17693clean-intl:
17694 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17695 r=`${PWD_COMMAND}`; export r; \
17696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17697 $(HOST_EXPORTS) \
17698 for flag in $(EXTRA_HOST_FLAGS) ; do \
17699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17700 done; \
22121df0 17701 echo "Doing clean in intl"; \
a90ef4bf 17702 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17705 "RANLIB=$${RANLIB}" \
17706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17707 clean) \
17708 || exit 1
17709
a90ef4bf 17710@endif intl
e28c595f 17711
a90ef4bf
JM
17712.PHONY: maybe-distclean-intl distclean-intl
17713maybe-distclean-intl:
17714@if intl
17715maybe-distclean-intl: distclean-intl
e28c595f 17716
a90ef4bf
JM
17717distclean-intl:
17718 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17719 r=`${PWD_COMMAND}`; export r; \
17720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17721 $(HOST_EXPORTS) \
17722 for flag in $(EXTRA_HOST_FLAGS) ; do \
17723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17724 done; \
22121df0 17725 echo "Doing distclean in intl"; \
a90ef4bf 17726 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17729 "RANLIB=$${RANLIB}" \
17730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17731 distclean) \
17732 || exit 1
17733
a90ef4bf 17734@endif intl
e28c595f 17735
a90ef4bf
JM
17736.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
17737maybe-maintainer-clean-intl:
17738@if intl
17739maybe-maintainer-clean-intl: maintainer-clean-intl
e28c595f 17740
a90ef4bf
JM
17741maintainer-clean-intl:
17742 @[ -f ./intl/Makefile ] || exit 0; \
e28c595f
JM
17743 r=`${PWD_COMMAND}`; export r; \
17744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17745 $(HOST_EXPORTS) \
17746 for flag in $(EXTRA_HOST_FLAGS) ; do \
17747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17748 done; \
22121df0 17749 echo "Doing maintainer-clean in intl"; \
a90ef4bf 17750 (cd $(HOST_SUBDIR)/intl && \
e28c595f
JM
17751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17753 "RANLIB=$${RANLIB}" \
17754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17755 maintainer-clean) \
17756 || exit 1
17757
a90ef4bf 17758@endif intl
e28c595f
JM
17759
17760
17761
a90ef4bf
JM
17762.PHONY: configure-tcl maybe-configure-tcl
17763maybe-configure-tcl:
e8a5fa9c 17764@if gcc-bootstrap
a90ef4bf 17765configure-tcl: stage_current
e8a5fa9c 17766@endif gcc-bootstrap
a90ef4bf
JM
17767@if tcl
17768maybe-configure-tcl: configure-tcl
17769configure-tcl:
17770 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17771 @r=`${PWD_COMMAND}`; export r; \
17772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 17773 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
22121df0 17774 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl; \
1f53ca9a 17775 $(HOST_EXPORTS) \
a90ef4bf
JM
17776 echo Configuring in $(HOST_SUBDIR)/tcl; \
17777 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
e8a5fa9c
RW
17778 case $(srcdir) in \
17779 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 17780 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
e8a5fa9c
RW
17781 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17782 esac; \
1b6c0831
L
17783 module_srcdir=tcl; \
17784 $(SHELL) \
17785 $$s/$$module_srcdir/configure \
17786 --srcdir=$${topdir}/$$module_srcdir \
e8a5fa9c 17787 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 17788 --target=${target_alias} \
e8a5fa9c 17789 || exit 1
a90ef4bf 17790@endif tcl
e8a5fa9c
RW
17791
17792
17793
e8a5fa9c 17794
e8a5fa9c 17795
a90ef4bf
JM
17796.PHONY: all-tcl maybe-all-tcl
17797maybe-all-tcl:
17798@if gcc-bootstrap
17799all-tcl: stage_current
17800@endif gcc-bootstrap
17801@if tcl
17802TARGET-tcl=all
17803maybe-all-tcl: all-tcl
17804all-tcl: configure-tcl
17805 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17806 @r=`${PWD_COMMAND}`; export r; \
17807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17808 $(HOST_EXPORTS) \
17809 (cd $(HOST_SUBDIR)/tcl && \
b3676d82 17810 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
17811 $(TARGET-tcl))
17812@endif tcl
e8a5fa9c 17813
a90ef4bf
JM
17814
17815
17816
17817.PHONY: check-tcl maybe-check-tcl
17818maybe-check-tcl:
17819@if tcl
17820maybe-check-tcl: check-tcl
17821
17822check-tcl:
17823 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17824 @r=`${PWD_COMMAND}`; export r; \
17825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 17826 $(HOST_EXPORTS) \
a90ef4bf
JM
17827 (cd $(HOST_SUBDIR)/tcl && \
17828 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 17829
a90ef4bf
JM
17830@endif tcl
17831
17832.PHONY: install-tcl maybe-install-tcl
17833maybe-install-tcl:
17834@if tcl
17835maybe-install-tcl: install-tcl
17836
17837install-tcl: installdirs
17838 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17839 @r=`${PWD_COMMAND}`; export r; \
17840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17841 $(HOST_EXPORTS) \
a90ef4bf
JM
17842 (cd $(HOST_SUBDIR)/tcl && \
17843 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 17844
a90ef4bf
JM
17845@endif tcl
17846
17847.PHONY: install-strip-tcl maybe-install-strip-tcl
17848maybe-install-strip-tcl:
17849@if tcl
17850maybe-install-strip-tcl: install-strip-tcl
17851
17852install-strip-tcl: installdirs
17853 @: $(MAKE); $(unstage)
e8a5fa9c
RW
17854 @r=`${PWD_COMMAND}`; export r; \
17855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17856 $(HOST_EXPORTS) \
a90ef4bf
JM
17857 (cd $(HOST_SUBDIR)/tcl && \
17858 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 17859
a90ef4bf 17860@endif tcl
e8a5fa9c 17861
a90ef4bf 17862# Other targets (info, dvi, pdf, etc.)
e8a5fa9c 17863
a90ef4bf
JM
17864.PHONY: maybe-info-tcl info-tcl
17865maybe-info-tcl:
17866@if tcl
17867maybe-info-tcl: info-tcl
e8a5fa9c 17868
a90ef4bf
JM
17869info-tcl: \
17870 configure-tcl
17871 @: $(MAKE); $(unstage)
17872 @[ -f ./tcl/Makefile ] || exit 0; \
17873 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17875 $(HOST_EXPORTS) \
17876 for flag in $(EXTRA_HOST_FLAGS) ; do \
17877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17878 done; \
22121df0 17879 echo "Doing info in tcl"; \
a90ef4bf
JM
17880 (cd $(HOST_SUBDIR)/tcl && \
17881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17883 "RANLIB=$${RANLIB}" \
17884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17885 info) \
17886 || exit 1
e8a5fa9c 17887
a90ef4bf 17888@endif tcl
e8a5fa9c 17889
a90ef4bf
JM
17890.PHONY: maybe-dvi-tcl dvi-tcl
17891maybe-dvi-tcl:
17892@if tcl
17893maybe-dvi-tcl: dvi-tcl
e8a5fa9c 17894
a90ef4bf
JM
17895dvi-tcl: \
17896 configure-tcl
17897 @: $(MAKE); $(unstage)
17898 @[ -f ./tcl/Makefile ] || exit 0; \
17899 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
17901 $(HOST_EXPORTS) \
17902 for flag in $(EXTRA_HOST_FLAGS) ; do \
17903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17904 done; \
22121df0 17905 echo "Doing dvi in tcl"; \
a90ef4bf
JM
17906 (cd $(HOST_SUBDIR)/tcl && \
17907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17909 "RANLIB=$${RANLIB}" \
17910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17911 dvi) \
17912 || exit 1
e8a5fa9c 17913
a90ef4bf 17914@endif tcl
e8a5fa9c 17915
a90ef4bf
JM
17916.PHONY: maybe-pdf-tcl pdf-tcl
17917maybe-pdf-tcl:
17918@if tcl
17919maybe-pdf-tcl: pdf-tcl
e8a5fa9c 17920
a90ef4bf
JM
17921pdf-tcl: \
17922 configure-tcl
17923 @: $(MAKE); $(unstage)
17924 @[ -f ./tcl/Makefile ] || exit 0; \
17925 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17927 $(HOST_EXPORTS) \
a90ef4bf
JM
17928 for flag in $(EXTRA_HOST_FLAGS) ; do \
17929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17930 done; \
22121df0 17931 echo "Doing pdf in tcl"; \
a90ef4bf
JM
17932 (cd $(HOST_SUBDIR)/tcl && \
17933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17935 "RANLIB=$${RANLIB}" \
17936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17937 pdf) \
17938 || exit 1
e8a5fa9c 17939
a90ef4bf 17940@endif tcl
e8a5fa9c 17941
a90ef4bf
JM
17942.PHONY: maybe-html-tcl html-tcl
17943maybe-html-tcl:
17944@if tcl
17945maybe-html-tcl: html-tcl
e8a5fa9c 17946
a90ef4bf
JM
17947html-tcl: \
17948 configure-tcl
17949 @: $(MAKE); $(unstage)
17950 @[ -f ./tcl/Makefile ] || exit 0; \
17951 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17953 $(HOST_EXPORTS) \
a90ef4bf
JM
17954 for flag in $(EXTRA_HOST_FLAGS) ; do \
17955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17956 done; \
22121df0 17957 echo "Doing html in tcl"; \
a90ef4bf
JM
17958 (cd $(HOST_SUBDIR)/tcl && \
17959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17961 "RANLIB=$${RANLIB}" \
17962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17963 html) \
17964 || exit 1
e8a5fa9c 17965
a90ef4bf 17966@endif tcl
e8a5fa9c 17967
a90ef4bf
JM
17968.PHONY: maybe-TAGS-tcl TAGS-tcl
17969maybe-TAGS-tcl:
17970@if tcl
17971maybe-TAGS-tcl: TAGS-tcl
e8a5fa9c 17972
a90ef4bf
JM
17973TAGS-tcl: \
17974 configure-tcl
17975 @: $(MAKE); $(unstage)
17976 @[ -f ./tcl/Makefile ] || exit 0; \
17977 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 17978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e8a5fa9c 17979 $(HOST_EXPORTS) \
a90ef4bf
JM
17980 for flag in $(EXTRA_HOST_FLAGS) ; do \
17981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17982 done; \
22121df0 17983 echo "Doing TAGS in tcl"; \
a90ef4bf
JM
17984 (cd $(HOST_SUBDIR)/tcl && \
17985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17987 "RANLIB=$${RANLIB}" \
17988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
17989 TAGS) \
17990 || exit 1
e8a5fa9c 17991
a90ef4bf 17992@endif tcl
e8a5fa9c 17993
a90ef4bf
JM
17994.PHONY: maybe-install-info-tcl install-info-tcl
17995maybe-install-info-tcl:
17996@if tcl
17997maybe-install-info-tcl: install-info-tcl
e8a5fa9c 17998
a90ef4bf
JM
17999install-info-tcl: \
18000 configure-tcl \
18001 info-tcl
e8a5fa9c 18002 @: $(MAKE); $(unstage)
a90ef4bf 18003 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18004 r=`${PWD_COMMAND}`; export r; \
18005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18006 $(HOST_EXPORTS) \
18007 for flag in $(EXTRA_HOST_FLAGS) ; do \
18008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18009 done; \
22121df0 18010 echo "Doing install-info in tcl"; \
a90ef4bf 18011 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18014 "RANLIB=$${RANLIB}" \
18015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18016 install-info) \
e8a5fa9c
RW
18017 || exit 1
18018
a90ef4bf 18019@endif tcl
e8a5fa9c 18020
a90ef4bf
JM
18021.PHONY: maybe-install-pdf-tcl install-pdf-tcl
18022maybe-install-pdf-tcl:
18023@if tcl
18024maybe-install-pdf-tcl: install-pdf-tcl
e8a5fa9c 18025
a90ef4bf
JM
18026install-pdf-tcl: \
18027 configure-tcl \
18028 pdf-tcl
18029 @: $(MAKE); $(unstage)
18030 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18031 r=`${PWD_COMMAND}`; export r; \
18032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18033 $(HOST_EXPORTS) \
18034 for flag in $(EXTRA_HOST_FLAGS) ; do \
18035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18036 done; \
22121df0 18037 echo "Doing install-pdf in tcl"; \
a90ef4bf 18038 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18041 "RANLIB=$${RANLIB}" \
18042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18043 install-pdf) \
e8a5fa9c
RW
18044 || exit 1
18045
a90ef4bf 18046@endif tcl
e8a5fa9c 18047
a90ef4bf
JM
18048.PHONY: maybe-install-html-tcl install-html-tcl
18049maybe-install-html-tcl:
18050@if tcl
18051maybe-install-html-tcl: install-html-tcl
e8a5fa9c 18052
a90ef4bf
JM
18053install-html-tcl: \
18054 configure-tcl \
18055 html-tcl
18056 @: $(MAKE); $(unstage)
18057 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18058 r=`${PWD_COMMAND}`; export r; \
18059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18060 $(HOST_EXPORTS) \
18061 for flag in $(EXTRA_HOST_FLAGS) ; do \
18062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18063 done; \
22121df0 18064 echo "Doing install-html in tcl"; \
a90ef4bf 18065 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18068 "RANLIB=$${RANLIB}" \
18069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18070 install-html) \
e8a5fa9c
RW
18071 || exit 1
18072
a90ef4bf 18073@endif tcl
e8a5fa9c 18074
a90ef4bf
JM
18075.PHONY: maybe-installcheck-tcl installcheck-tcl
18076maybe-installcheck-tcl:
18077@if tcl
18078maybe-installcheck-tcl: installcheck-tcl
e8a5fa9c 18079
a90ef4bf
JM
18080installcheck-tcl: \
18081 configure-tcl
18082 @: $(MAKE); $(unstage)
18083 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18084 r=`${PWD_COMMAND}`; export r; \
18085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18086 $(HOST_EXPORTS) \
18087 for flag in $(EXTRA_HOST_FLAGS) ; do \
18088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18089 done; \
22121df0 18090 echo "Doing installcheck in tcl"; \
a90ef4bf 18091 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18094 "RANLIB=$${RANLIB}" \
18095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18096 installcheck) \
e8a5fa9c
RW
18097 || exit 1
18098
a90ef4bf 18099@endif tcl
e8a5fa9c 18100
a90ef4bf
JM
18101.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
18102maybe-mostlyclean-tcl:
18103@if tcl
18104maybe-mostlyclean-tcl: mostlyclean-tcl
e8a5fa9c 18105
a90ef4bf
JM
18106# tcl doesn't support mostlyclean.
18107mostlyclean-tcl:
18108
18109@endif tcl
18110
18111.PHONY: maybe-clean-tcl clean-tcl
18112maybe-clean-tcl:
18113@if tcl
18114maybe-clean-tcl: clean-tcl
18115
18116clean-tcl:
18117 @: $(MAKE); $(unstage)
18118 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18119 r=`${PWD_COMMAND}`; export r; \
18120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18121 $(HOST_EXPORTS) \
18122 for flag in $(EXTRA_HOST_FLAGS) ; do \
18123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18124 done; \
22121df0 18125 echo "Doing clean in tcl"; \
a90ef4bf 18126 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18129 "RANLIB=$${RANLIB}" \
18130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18131 clean) \
e8a5fa9c
RW
18132 || exit 1
18133
a90ef4bf 18134@endif tcl
e8a5fa9c 18135
a90ef4bf
JM
18136.PHONY: maybe-distclean-tcl distclean-tcl
18137maybe-distclean-tcl:
18138@if tcl
18139maybe-distclean-tcl: distclean-tcl
e8a5fa9c 18140
a90ef4bf
JM
18141distclean-tcl:
18142 @: $(MAKE); $(unstage)
18143 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18144 r=`${PWD_COMMAND}`; export r; \
18145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18146 $(HOST_EXPORTS) \
18147 for flag in $(EXTRA_HOST_FLAGS) ; do \
18148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18149 done; \
22121df0 18150 echo "Doing distclean in tcl"; \
a90ef4bf 18151 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18154 "RANLIB=$${RANLIB}" \
18155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18156 distclean) \
e8a5fa9c
RW
18157 || exit 1
18158
a90ef4bf 18159@endif tcl
e8a5fa9c 18160
a90ef4bf
JM
18161.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
18162maybe-maintainer-clean-tcl:
18163@if tcl
18164maybe-maintainer-clean-tcl: maintainer-clean-tcl
e8a5fa9c 18165
a90ef4bf
JM
18166maintainer-clean-tcl:
18167 @: $(MAKE); $(unstage)
18168 @[ -f ./tcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18169 r=`${PWD_COMMAND}`; export r; \
18170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18171 $(HOST_EXPORTS) \
18172 for flag in $(EXTRA_HOST_FLAGS) ; do \
18173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18174 done; \
22121df0 18175 echo "Doing maintainer-clean in tcl"; \
a90ef4bf 18176 (cd $(HOST_SUBDIR)/tcl && \
e8a5fa9c
RW
18177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18179 "RANLIB=$${RANLIB}" \
18180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18181 maintainer-clean) \
e8a5fa9c
RW
18182 || exit 1
18183
a90ef4bf 18184@endif tcl
e8a5fa9c 18185
e8a5fa9c 18186
a90ef4bf
JM
18187
18188.PHONY: configure-itcl maybe-configure-itcl
18189maybe-configure-itcl:
18190@if gcc-bootstrap
18191configure-itcl: stage_current
18192@endif gcc-bootstrap
18193@if itcl
18194maybe-configure-itcl: configure-itcl
18195configure-itcl:
18196 @: $(MAKE); $(unstage)
18197 @r=`${PWD_COMMAND}`; export r; \
18198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18199 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
22121df0 18200 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl; \
a90ef4bf
JM
18201 $(HOST_EXPORTS) \
18202 echo Configuring in $(HOST_SUBDIR)/itcl; \
18203 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
18204 case $(srcdir) in \
18205 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18206 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
18207 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18208 esac; \
1b6c0831
L
18209 module_srcdir=itcl; \
18210 $(SHELL) \
18211 $$s/$$module_srcdir/configure \
18212 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 18213 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18214 --target=${target_alias} \
a90ef4bf
JM
18215 || exit 1
18216@endif itcl
18217
18218
18219
18220
18221
18222.PHONY: all-itcl maybe-all-itcl
18223maybe-all-itcl:
18224@if gcc-bootstrap
18225all-itcl: stage_current
18226@endif gcc-bootstrap
18227@if itcl
18228TARGET-itcl=all
18229maybe-all-itcl: all-itcl
18230all-itcl: configure-itcl
18231 @: $(MAKE); $(unstage)
18232 @r=`${PWD_COMMAND}`; export r; \
18233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18234 $(HOST_EXPORTS) \
18235 (cd $(HOST_SUBDIR)/itcl && \
b3676d82 18236 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18237 $(TARGET-itcl))
18238@endif itcl
18239
18240
18241
18242
18243.PHONY: check-itcl maybe-check-itcl
18244maybe-check-itcl:
18245@if itcl
18246maybe-check-itcl: check-itcl
18247
18248check-itcl:
18249 @: $(MAKE); $(unstage)
18250 @r=`${PWD_COMMAND}`; export r; \
18251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 18252 $(HOST_EXPORTS) \
a90ef4bf
JM
18253 (cd $(HOST_SUBDIR)/itcl && \
18254 $(MAKE) $(FLAGS_TO_PASS) check)
18255
18256@endif itcl
18257
18258.PHONY: install-itcl maybe-install-itcl
18259maybe-install-itcl:
18260@if itcl
18261maybe-install-itcl: install-itcl
18262
18263install-itcl: installdirs
18264 @: $(MAKE); $(unstage)
18265 @r=`${PWD_COMMAND}`; export r; \
18266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18267 $(HOST_EXPORTS) \
18268 (cd $(HOST_SUBDIR)/itcl && \
18269 $(MAKE) $(FLAGS_TO_PASS) install)
18270
18271@endif itcl
18272
18273.PHONY: install-strip-itcl maybe-install-strip-itcl
18274maybe-install-strip-itcl:
18275@if itcl
18276maybe-install-strip-itcl: install-strip-itcl
18277
18278install-strip-itcl: installdirs
18279 @: $(MAKE); $(unstage)
18280 @r=`${PWD_COMMAND}`; export r; \
18281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18282 $(HOST_EXPORTS) \
18283 (cd $(HOST_SUBDIR)/itcl && \
18284 $(MAKE) $(FLAGS_TO_PASS) install-strip)
18285
18286@endif itcl
18287
18288# Other targets (info, dvi, pdf, etc.)
18289
18290.PHONY: maybe-info-itcl info-itcl
18291maybe-info-itcl:
18292@if itcl
18293maybe-info-itcl: info-itcl
18294
18295info-itcl: \
18296 configure-itcl
18297 @: $(MAKE); $(unstage)
18298 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18299 r=`${PWD_COMMAND}`; export r; \
18300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18301 $(HOST_EXPORTS) \
18302 for flag in $(EXTRA_HOST_FLAGS) ; do \
18303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18304 done; \
22121df0 18305 echo "Doing info in itcl"; \
a90ef4bf 18306 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18309 "RANLIB=$${RANLIB}" \
18310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18311 info) \
e8a5fa9c
RW
18312 || exit 1
18313
a90ef4bf 18314@endif itcl
e8a5fa9c 18315
a90ef4bf
JM
18316.PHONY: maybe-dvi-itcl dvi-itcl
18317maybe-dvi-itcl:
18318@if itcl
18319maybe-dvi-itcl: dvi-itcl
e8a5fa9c 18320
a90ef4bf
JM
18321dvi-itcl: \
18322 configure-itcl
18323 @: $(MAKE); $(unstage)
18324 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18325 r=`${PWD_COMMAND}`; export r; \
18326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18327 $(HOST_EXPORTS) \
18328 for flag in $(EXTRA_HOST_FLAGS) ; do \
18329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18330 done; \
22121df0 18331 echo "Doing dvi in itcl"; \
a90ef4bf 18332 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18335 "RANLIB=$${RANLIB}" \
18336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18337 dvi) \
e8a5fa9c
RW
18338 || exit 1
18339
a90ef4bf 18340@endif itcl
e8a5fa9c 18341
a90ef4bf
JM
18342.PHONY: maybe-pdf-itcl pdf-itcl
18343maybe-pdf-itcl:
18344@if itcl
18345maybe-pdf-itcl: pdf-itcl
e8a5fa9c 18346
a90ef4bf
JM
18347pdf-itcl: \
18348 configure-itcl
18349 @: $(MAKE); $(unstage)
18350 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18351 r=`${PWD_COMMAND}`; export r; \
18352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18353 $(HOST_EXPORTS) \
18354 for flag in $(EXTRA_HOST_FLAGS) ; do \
18355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18356 done; \
22121df0 18357 echo "Doing pdf in itcl"; \
a90ef4bf 18358 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18361 "RANLIB=$${RANLIB}" \
18362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18363 pdf) \
e8a5fa9c
RW
18364 || exit 1
18365
a90ef4bf 18366@endif itcl
e8a5fa9c 18367
a90ef4bf
JM
18368.PHONY: maybe-html-itcl html-itcl
18369maybe-html-itcl:
18370@if itcl
18371maybe-html-itcl: html-itcl
e8a5fa9c 18372
a90ef4bf
JM
18373html-itcl: \
18374 configure-itcl
18375 @: $(MAKE); $(unstage)
18376 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18377 r=`${PWD_COMMAND}`; export r; \
18378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18379 $(HOST_EXPORTS) \
18380 for flag in $(EXTRA_HOST_FLAGS) ; do \
18381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18382 done; \
22121df0 18383 echo "Doing html in itcl"; \
a90ef4bf 18384 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18387 "RANLIB=$${RANLIB}" \
18388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 18389 html) \
e8a5fa9c
RW
18390 || exit 1
18391
a90ef4bf 18392@endif itcl
e8a5fa9c 18393
a90ef4bf
JM
18394.PHONY: maybe-TAGS-itcl TAGS-itcl
18395maybe-TAGS-itcl:
18396@if itcl
18397maybe-TAGS-itcl: TAGS-itcl
e8a5fa9c 18398
a90ef4bf
JM
18399TAGS-itcl: \
18400 configure-itcl
18401 @: $(MAKE); $(unstage)
18402 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18403 r=`${PWD_COMMAND}`; export r; \
18404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18405 $(HOST_EXPORTS) \
18406 for flag in $(EXTRA_HOST_FLAGS) ; do \
18407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18408 done; \
22121df0 18409 echo "Doing TAGS in itcl"; \
a90ef4bf
JM
18410 (cd $(HOST_SUBDIR)/itcl && \
18411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18413 "RANLIB=$${RANLIB}" \
18414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18415 TAGS) \
18416 || exit 1
18417
18418@endif itcl
18419
18420.PHONY: maybe-install-info-itcl install-info-itcl
18421maybe-install-info-itcl:
18422@if itcl
18423maybe-install-info-itcl: install-info-itcl
18424
18425install-info-itcl: \
18426 configure-itcl \
18427 info-itcl
18428 @: $(MAKE); $(unstage)
18429 @[ -f ./itcl/Makefile ] || exit 0; \
18430 r=`${PWD_COMMAND}`; export r; \
18431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18432 $(HOST_EXPORTS) \
18433 for flag in $(EXTRA_HOST_FLAGS) ; do \
18434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18435 done; \
22121df0 18436 echo "Doing install-info in itcl"; \
a90ef4bf
JM
18437 (cd $(HOST_SUBDIR)/itcl && \
18438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18440 "RANLIB=$${RANLIB}" \
18441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18442 install-info) \
18443 || exit 1
18444
18445@endif itcl
18446
18447.PHONY: maybe-install-pdf-itcl install-pdf-itcl
18448maybe-install-pdf-itcl:
18449@if itcl
18450maybe-install-pdf-itcl: install-pdf-itcl
18451
18452install-pdf-itcl: \
18453 configure-itcl \
18454 pdf-itcl
18455 @: $(MAKE); $(unstage)
18456 @[ -f ./itcl/Makefile ] || exit 0; \
18457 r=`${PWD_COMMAND}`; export r; \
18458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18459 $(HOST_EXPORTS) \
18460 for flag in $(EXTRA_HOST_FLAGS) ; do \
18461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18462 done; \
22121df0 18463 echo "Doing install-pdf in itcl"; \
a90ef4bf
JM
18464 (cd $(HOST_SUBDIR)/itcl && \
18465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18467 "RANLIB=$${RANLIB}" \
18468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18469 install-pdf) \
18470 || exit 1
18471
18472@endif itcl
18473
18474.PHONY: maybe-install-html-itcl install-html-itcl
18475maybe-install-html-itcl:
18476@if itcl
18477maybe-install-html-itcl: install-html-itcl
18478
18479install-html-itcl: \
18480 configure-itcl \
18481 html-itcl
18482 @: $(MAKE); $(unstage)
18483 @[ -f ./itcl/Makefile ] || exit 0; \
18484 r=`${PWD_COMMAND}`; export r; \
18485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18486 $(HOST_EXPORTS) \
18487 for flag in $(EXTRA_HOST_FLAGS) ; do \
18488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18489 done; \
22121df0 18490 echo "Doing install-html in itcl"; \
a90ef4bf
JM
18491 (cd $(HOST_SUBDIR)/itcl && \
18492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18494 "RANLIB=$${RANLIB}" \
18495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18496 install-html) \
18497 || exit 1
18498
18499@endif itcl
18500
18501.PHONY: maybe-installcheck-itcl installcheck-itcl
18502maybe-installcheck-itcl:
18503@if itcl
18504maybe-installcheck-itcl: installcheck-itcl
18505
18506installcheck-itcl: \
18507 configure-itcl
18508 @: $(MAKE); $(unstage)
18509 @[ -f ./itcl/Makefile ] || exit 0; \
18510 r=`${PWD_COMMAND}`; export r; \
18511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18512 $(HOST_EXPORTS) \
18513 for flag in $(EXTRA_HOST_FLAGS) ; do \
18514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18515 done; \
22121df0 18516 echo "Doing installcheck in itcl"; \
a90ef4bf
JM
18517 (cd $(HOST_SUBDIR)/itcl && \
18518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18520 "RANLIB=$${RANLIB}" \
18521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18522 installcheck) \
18523 || exit 1
18524
18525@endif itcl
18526
18527.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
18528maybe-mostlyclean-itcl:
18529@if itcl
18530maybe-mostlyclean-itcl: mostlyclean-itcl
18531
18532mostlyclean-itcl:
18533 @: $(MAKE); $(unstage)
18534 @[ -f ./itcl/Makefile ] || exit 0; \
18535 r=`${PWD_COMMAND}`; export r; \
18536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18537 $(HOST_EXPORTS) \
18538 for flag in $(EXTRA_HOST_FLAGS) ; do \
18539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18540 done; \
22121df0 18541 echo "Doing mostlyclean in itcl"; \
a90ef4bf
JM
18542 (cd $(HOST_SUBDIR)/itcl && \
18543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18545 "RANLIB=$${RANLIB}" \
18546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18547 mostlyclean) \
18548 || exit 1
18549
18550@endif itcl
18551
18552.PHONY: maybe-clean-itcl clean-itcl
18553maybe-clean-itcl:
18554@if itcl
18555maybe-clean-itcl: clean-itcl
18556
18557clean-itcl:
18558 @: $(MAKE); $(unstage)
18559 @[ -f ./itcl/Makefile ] || exit 0; \
18560 r=`${PWD_COMMAND}`; export r; \
18561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18562 $(HOST_EXPORTS) \
18563 for flag in $(EXTRA_HOST_FLAGS) ; do \
18564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18565 done; \
22121df0 18566 echo "Doing clean in itcl"; \
a90ef4bf
JM
18567 (cd $(HOST_SUBDIR)/itcl && \
18568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18570 "RANLIB=$${RANLIB}" \
18571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18572 clean) \
18573 || exit 1
18574
18575@endif itcl
18576
18577.PHONY: maybe-distclean-itcl distclean-itcl
18578maybe-distclean-itcl:
18579@if itcl
18580maybe-distclean-itcl: distclean-itcl
18581
18582distclean-itcl:
18583 @: $(MAKE); $(unstage)
18584 @[ -f ./itcl/Makefile ] || exit 0; \
18585 r=`${PWD_COMMAND}`; export r; \
18586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18587 $(HOST_EXPORTS) \
18588 for flag in $(EXTRA_HOST_FLAGS) ; do \
18589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18590 done; \
22121df0 18591 echo "Doing distclean in itcl"; \
a90ef4bf 18592 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18595 "RANLIB=$${RANLIB}" \
18596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18597 distclean) \
18598 || exit 1
18599
a90ef4bf 18600@endif itcl
e8a5fa9c 18601
a90ef4bf
JM
18602.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
18603maybe-maintainer-clean-itcl:
18604@if itcl
18605maybe-maintainer-clean-itcl: maintainer-clean-itcl
e8a5fa9c 18606
a90ef4bf
JM
18607maintainer-clean-itcl:
18608 @: $(MAKE); $(unstage)
18609 @[ -f ./itcl/Makefile ] || exit 0; \
e8a5fa9c
RW
18610 r=`${PWD_COMMAND}`; export r; \
18611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18612 $(HOST_EXPORTS) \
18613 for flag in $(EXTRA_HOST_FLAGS) ; do \
18614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18615 done; \
22121df0 18616 echo "Doing maintainer-clean in itcl"; \
a90ef4bf 18617 (cd $(HOST_SUBDIR)/itcl && \
e8a5fa9c
RW
18618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18620 "RANLIB=$${RANLIB}" \
18621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
18622 maintainer-clean) \
18623 || exit 1
18624
a90ef4bf 18625@endif itcl
e8a5fa9c
RW
18626
18627
18628
a90ef4bf
JM
18629.PHONY: configure-ld maybe-configure-ld
18630maybe-configure-ld:
e28c595f 18631@if gcc-bootstrap
a90ef4bf 18632configure-ld: stage_current
e28c595f 18633@endif gcc-bootstrap
a90ef4bf
JM
18634@if ld
18635maybe-configure-ld: configure-ld
18636configure-ld:
e28c595f
JM
18637 @r=`${PWD_COMMAND}`; export r; \
18638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 18639 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
22121df0 18640 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
1f53ca9a 18641 $(HOST_EXPORTS) \
a90ef4bf
JM
18642 echo Configuring in $(HOST_SUBDIR)/ld; \
18643 cd "$(HOST_SUBDIR)/ld" || exit 1; \
e28c595f
JM
18644 case $(srcdir) in \
18645 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18646 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18647 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18648 esac; \
1b6c0831
L
18649 module_srcdir=ld; \
18650 $(SHELL) \
18651 $$s/$$module_srcdir/configure \
18652 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18653 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18654 --target=${target_alias} \
e28c595f 18655 || exit 1
a90ef4bf 18656@endif ld
e28c595f
JM
18657
18658
18659
a90ef4bf
JM
18660.PHONY: configure-stage1-ld maybe-configure-stage1-ld
18661maybe-configure-stage1-ld:
18662@if ld-bootstrap
18663maybe-configure-stage1-ld: configure-stage1-ld
18664configure-stage1-ld:
e28c595f 18665 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 18666 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18667 @r=`${PWD_COMMAND}`; export r; \
18668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18669 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 18670 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
1b05fbbd 18671 $(HOST_EXPORTS) \
e28c595f 18672 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18673 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
18674 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
18675 echo Configuring stage 1 in $(HOST_SUBDIR)/ld; \
18676 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18677 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18678 case $(srcdir) in \
18679 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18680 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18681 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18682 esac; \
1b6c0831
L
18683 module_srcdir=ld; \
18684 $(SHELL) $$s/$$module_srcdir/configure \
18685 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18686 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
18687 --target=${target_alias} \
18688 \
a90ef4bf
JM
18689 $(STAGE1_CONFIGURE_FLAGS)
18690@endif ld-bootstrap
e28c595f 18691
a90ef4bf
JM
18692.PHONY: configure-stage2-ld maybe-configure-stage2-ld
18693maybe-configure-stage2-ld:
18694@if ld-bootstrap
18695maybe-configure-stage2-ld: configure-stage2-ld
18696configure-stage2-ld:
e28c595f 18697 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 18698 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18699 @r=`${PWD_COMMAND}`; export r; \
18700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18701 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 18702 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18703 $(HOST_EXPORTS) \
1b05fbbd 18704 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18705 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18706 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
18707 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18708 echo Configuring stage 2 in $(HOST_SUBDIR)/ld; \
18709 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18710 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18711 case $(srcdir) in \
18712 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18713 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18714 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18715 esac; \
1b6c0831
L
18716 module_srcdir=ld; \
18717 $(SHELL) $$s/$$module_srcdir/configure \
18718 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18719 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18720 --target=${target_alias} \
22121df0 18721 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18722 $(STAGE2_CONFIGURE_FLAGS)
18723@endif ld-bootstrap
e28c595f 18724
a90ef4bf
JM
18725.PHONY: configure-stage3-ld maybe-configure-stage3-ld
18726maybe-configure-stage3-ld:
18727@if ld-bootstrap
18728maybe-configure-stage3-ld: configure-stage3-ld
18729configure-stage3-ld:
e28c595f 18730 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 18731 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18732 @r=`${PWD_COMMAND}`; export r; \
18733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18734 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 18735 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18736 $(HOST_EXPORTS) \
1b05fbbd 18737 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18738 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18739 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
18740 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18741 echo Configuring stage 3 in $(HOST_SUBDIR)/ld; \
18742 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18743 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18744 case $(srcdir) in \
18745 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18746 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18747 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18748 esac; \
1b6c0831
L
18749 module_srcdir=ld; \
18750 $(SHELL) $$s/$$module_srcdir/configure \
18751 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18752 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18753 --target=${target_alias} \
22121df0 18754 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18755 $(STAGE3_CONFIGURE_FLAGS)
18756@endif ld-bootstrap
e28c595f 18757
a90ef4bf
JM
18758.PHONY: configure-stage4-ld maybe-configure-stage4-ld
18759maybe-configure-stage4-ld:
18760@if ld-bootstrap
18761maybe-configure-stage4-ld: configure-stage4-ld
18762configure-stage4-ld:
e28c595f 18763 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 18764 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18765 @r=`${PWD_COMMAND}`; export r; \
18766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18767 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 18768 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18769 $(HOST_EXPORTS) \
1b05fbbd 18770 $(POSTSTAGE1_HOST_EXPORTS) \
e28c595f 18771 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18772 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
18773 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18774 echo Configuring stage 4 in $(HOST_SUBDIR)/ld; \
18775 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18776 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18777 case $(srcdir) in \
18778 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18779 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18780 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18781 esac; \
1b6c0831
L
18782 module_srcdir=ld; \
18783 $(SHELL) $$s/$$module_srcdir/configure \
18784 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18785 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18786 --target=${target_alias} \
22121df0 18787 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18788 $(STAGE4_CONFIGURE_FLAGS)
18789@endif ld-bootstrap
e28c595f 18790
a90ef4bf
JM
18791.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
18792maybe-configure-stageprofile-ld:
18793@if ld-bootstrap
18794maybe-configure-stageprofile-ld: configure-stageprofile-ld
18795configure-stageprofile-ld:
e28c595f 18796 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 18797 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18798 @r=`${PWD_COMMAND}`; export r; \
18799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18800 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 18801 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18802 $(HOST_EXPORTS) \
1b05fbbd
AO
18803 $(POSTSTAGE1_HOST_EXPORTS) \
18804 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18805 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
18806 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18807 echo Configuring stage profile in $(HOST_SUBDIR)/ld; \
18808 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18809 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18810 case $(srcdir) in \
18811 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18812 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18813 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18814 esac; \
1b6c0831
L
18815 module_srcdir=ld; \
18816 $(SHELL) $$s/$$module_srcdir/configure \
18817 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18818 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18819 --target=${target_alias} \
22121df0 18820 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18821 $(STAGEprofile_CONFIGURE_FLAGS)
18822@endif ld-bootstrap
e28c595f 18823
a90ef4bf
JM
18824.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
18825maybe-configure-stagefeedback-ld:
18826@if ld-bootstrap
18827maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
18828configure-stagefeedback-ld:
e28c595f 18829 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 18830 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
e28c595f
JM
18831 @r=`${PWD_COMMAND}`; export r; \
18832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18833 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 18834 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
e28c595f 18835 $(HOST_EXPORTS) \
1b05fbbd
AO
18836 $(POSTSTAGE1_HOST_EXPORTS) \
18837 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
18838 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
18839 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
18840 echo Configuring stage feedback in $(HOST_SUBDIR)/ld; \
18841 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld; \
a90ef4bf 18842 cd $(HOST_SUBDIR)/ld || exit 1; \
e28c595f
JM
18843 case $(srcdir) in \
18844 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 18845 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
e28c595f
JM
18846 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18847 esac; \
1b6c0831
L
18848 module_srcdir=ld; \
18849 $(SHELL) $$s/$$module_srcdir/configure \
18850 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 18851 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 18852 --target=${target_alias} \
22121df0 18853 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
18854 $(STAGEfeedback_CONFIGURE_FLAGS)
18855@endif ld-bootstrap
e28c595f
JM
18856
18857
18858
18859
18860
a90ef4bf
JM
18861.PHONY: all-ld maybe-all-ld
18862maybe-all-ld:
e28c595f 18863@if gcc-bootstrap
a90ef4bf 18864all-ld: stage_current
e28c595f 18865@endif gcc-bootstrap
a90ef4bf
JM
18866@if ld
18867TARGET-ld=all
18868maybe-all-ld: all-ld
18869all-ld: configure-ld
e28c595f
JM
18870 @r=`${PWD_COMMAND}`; export r; \
18871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 18872 $(HOST_EXPORTS) \
a90ef4bf 18873 (cd $(HOST_SUBDIR)/ld && \
b3676d82 18874 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
18875 $(TARGET-ld))
18876@endif ld
e28c595f
JM
18877
18878
18879
a90ef4bf
JM
18880.PHONY: all-stage1-ld maybe-all-stage1-ld
18881.PHONY: clean-stage1-ld maybe-clean-stage1-ld
18882maybe-all-stage1-ld:
18883maybe-clean-stage1-ld:
18884@if ld-bootstrap
18885maybe-all-stage1-ld: all-stage1-ld
18886all-stage1: all-stage1-ld
18887TARGET-stage1-ld = $(TARGET-ld)
18888all-stage1-ld: configure-stage1-ld
e28c595f
JM
18889 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
18890 @r=`${PWD_COMMAND}`; export r; \
18891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18892 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 18893 $(HOST_EXPORTS) \
a90ef4bf 18894 cd $(HOST_SUBDIR)/ld && \
05a13254 18895 \
e28c595f 18896 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18897 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 18898 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
18899 LIBCFLAGS="$(LIBCFLAGS)" \
18900 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18901 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18902 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
18903 $(EXTRA_HOST_FLAGS) \
18904 $(STAGE1_FLAGS_TO_PASS) \
05a13254 18905 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 18906 $(TARGET-stage1-ld)
e28c595f 18907
a90ef4bf
JM
18908maybe-clean-stage1-ld: clean-stage1-ld
18909clean-stage1: clean-stage1-ld
18910clean-stage1-ld:
e28c595f 18911 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 18912 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18913 else \
a90ef4bf 18914 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
e28c595f
JM
18915 $(MAKE) stage1-start; \
18916 fi; \
a90ef4bf 18917 cd $(HOST_SUBDIR)/ld && \
e28c595f 18918 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 18919 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18920@endif ld-bootstrap
e28c595f
JM
18921
18922
a90ef4bf
JM
18923.PHONY: all-stage2-ld maybe-all-stage2-ld
18924.PHONY: clean-stage2-ld maybe-clean-stage2-ld
18925maybe-all-stage2-ld:
18926maybe-clean-stage2-ld:
18927@if ld-bootstrap
18928maybe-all-stage2-ld: all-stage2-ld
18929all-stage2: all-stage2-ld
18930TARGET-stage2-ld = $(TARGET-ld)
18931all-stage2-ld: configure-stage2-ld
e28c595f
JM
18932 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
18933 @r=`${PWD_COMMAND}`; export r; \
18934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18935 TFLAGS="$(STAGE2_TFLAGS)"; \
e28c595f 18936 $(HOST_EXPORTS) \
1f53ca9a 18937 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18938 cd $(HOST_SUBDIR)/ld && \
05a13254 18939 \
e28c595f 18940 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18941 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 18942 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
18943 LIBCFLAGS="$(STAGE2_CFLAGS)" \
18944 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18945 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18946 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18947 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18948 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 18949 $(TARGET-stage2-ld)
e28c595f 18950
a90ef4bf
JM
18951maybe-clean-stage2-ld: clean-stage2-ld
18952clean-stage2: clean-stage2-ld
18953clean-stage2-ld:
e28c595f 18954 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 18955 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18956 else \
a90ef4bf 18957 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
e28c595f
JM
18958 $(MAKE) stage2-start; \
18959 fi; \
a90ef4bf 18960 cd $(HOST_SUBDIR)/ld && \
b3676d82 18961 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 18962@endif ld-bootstrap
e28c595f
JM
18963
18964
a90ef4bf
JM
18965.PHONY: all-stage3-ld maybe-all-stage3-ld
18966.PHONY: clean-stage3-ld maybe-clean-stage3-ld
18967maybe-all-stage3-ld:
18968maybe-clean-stage3-ld:
18969@if ld-bootstrap
18970maybe-all-stage3-ld: all-stage3-ld
18971all-stage3: all-stage3-ld
18972TARGET-stage3-ld = $(TARGET-ld)
18973all-stage3-ld: configure-stage3-ld
e28c595f
JM
18974 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
18975 @r=`${PWD_COMMAND}`; export r; \
18976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 18977 TFLAGS="$(STAGE3_TFLAGS)"; \
e28c595f 18978 $(HOST_EXPORTS) \
1f53ca9a 18979 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 18980 cd $(HOST_SUBDIR)/ld && \
05a13254 18981 \
e28c595f 18982 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 18983 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 18984 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
18985 LIBCFLAGS="$(STAGE3_CFLAGS)" \
18986 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
18987 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
18988 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
18989 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 18990 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 18991 $(TARGET-stage3-ld)
e28c595f 18992
a90ef4bf
JM
18993maybe-clean-stage3-ld: clean-stage3-ld
18994clean-stage3: clean-stage3-ld
18995clean-stage3-ld:
e28c595f 18996 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 18997 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 18998 else \
a90ef4bf 18999 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
e28c595f
JM
19000 $(MAKE) stage3-start; \
19001 fi; \
a90ef4bf 19002 cd $(HOST_SUBDIR)/ld && \
b3676d82 19003 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19004@endif ld-bootstrap
e28c595f
JM
19005
19006
a90ef4bf
JM
19007.PHONY: all-stage4-ld maybe-all-stage4-ld
19008.PHONY: clean-stage4-ld maybe-clean-stage4-ld
19009maybe-all-stage4-ld:
19010maybe-clean-stage4-ld:
19011@if ld-bootstrap
19012maybe-all-stage4-ld: all-stage4-ld
19013all-stage4: all-stage4-ld
19014TARGET-stage4-ld = $(TARGET-ld)
19015all-stage4-ld: configure-stage4-ld
e28c595f
JM
19016 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19017 @r=`${PWD_COMMAND}`; export r; \
19018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19019 TFLAGS="$(STAGE4_TFLAGS)"; \
e28c595f 19020 $(HOST_EXPORTS) \
1f53ca9a 19021 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19022 cd $(HOST_SUBDIR)/ld && \
05a13254 19023 \
e28c595f 19024 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19025 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 19026 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
e28c595f 19027 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
19028 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19029 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19030 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19031 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19032 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 19033 $(TARGET-stage4-ld)
e28c595f 19034
a90ef4bf
JM
19035maybe-clean-stage4-ld: clean-stage4-ld
19036clean-stage4: clean-stage4-ld
19037clean-stage4-ld:
e28c595f 19038 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 19039 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19040 else \
a90ef4bf 19041 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
e28c595f
JM
19042 $(MAKE) stage4-start; \
19043 fi; \
a90ef4bf 19044 cd $(HOST_SUBDIR)/ld && \
b3676d82 19045 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19046@endif ld-bootstrap
e28c595f
JM
19047
19048
a90ef4bf
JM
19049.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
19050.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
19051maybe-all-stageprofile-ld:
19052maybe-clean-stageprofile-ld:
19053@if ld-bootstrap
19054maybe-all-stageprofile-ld: all-stageprofile-ld
19055all-stageprofile: all-stageprofile-ld
19056TARGET-stageprofile-ld = $(TARGET-ld)
19057all-stageprofile-ld: configure-stageprofile-ld
e28c595f
JM
19058 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19059 @r=`${PWD_COMMAND}`; export r; \
19060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19061 TFLAGS="$(STAGEprofile_TFLAGS)"; \
e28c595f 19062 $(HOST_EXPORTS) \
1f53ca9a 19063 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19064 cd $(HOST_SUBDIR)/ld && \
05a13254 19065 \
e28c595f 19066 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19067 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 19068 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
19069 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19070 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19071 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19072 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19073 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19074 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 19075 $(TARGET-stageprofile-ld)
e28c595f 19076
a90ef4bf
JM
19077maybe-clean-stageprofile-ld: clean-stageprofile-ld
19078clean-stageprofile: clean-stageprofile-ld
19079clean-stageprofile-ld:
e28c595f 19080 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 19081 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19082 else \
a90ef4bf 19083 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
e28c595f
JM
19084 $(MAKE) stageprofile-start; \
19085 fi; \
a90ef4bf 19086 cd $(HOST_SUBDIR)/ld && \
b3676d82 19087 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19088@endif ld-bootstrap
e28c595f
JM
19089
19090
a90ef4bf
JM
19091.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
19092.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
19093maybe-all-stagefeedback-ld:
19094maybe-clean-stagefeedback-ld:
19095@if ld-bootstrap
19096maybe-all-stagefeedback-ld: all-stagefeedback-ld
19097all-stagefeedback: all-stagefeedback-ld
19098TARGET-stagefeedback-ld = $(TARGET-ld)
19099all-stagefeedback-ld: configure-stagefeedback-ld
e28c595f
JM
19100 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19101 @r=`${PWD_COMMAND}`; export r; \
19102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 19103 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
e28c595f 19104 $(HOST_EXPORTS) \
1f53ca9a 19105 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 19106 cd $(HOST_SUBDIR)/ld && \
05a13254 19107 \
e28c595f 19108 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 19109 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 19110 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
19111 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19112 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19113 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19114 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19115 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19116 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 19117 $(TARGET-stagefeedback-ld)
e28c595f 19118
a90ef4bf
JM
19119maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
19120clean-stagefeedback: clean-stagefeedback-ld
19121clean-stagefeedback-ld:
e28c595f 19122 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 19123 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
e28c595f 19124 else \
a90ef4bf 19125 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
e28c595f
JM
19126 $(MAKE) stagefeedback-start; \
19127 fi; \
a90ef4bf 19128 cd $(HOST_SUBDIR)/ld && \
b3676d82 19129 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 19130@endif ld-bootstrap
e28c595f
JM
19131
19132
19133
19134
19135
a90ef4bf
JM
19136.PHONY: check-ld maybe-check-ld
19137maybe-check-ld:
19138@if ld
19139maybe-check-ld: check-ld
e28c595f 19140
a90ef4bf 19141check-ld:
e28c595f
JM
19142 @: $(MAKE); $(unstage)
19143 @r=`${PWD_COMMAND}`; export r; \
19144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 19145 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 19146 (cd $(HOST_SUBDIR)/ld && \
f91ca6bc 19147 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
e28c595f 19148
a90ef4bf 19149@endif ld
e28c595f 19150
a90ef4bf
JM
19151.PHONY: install-ld maybe-install-ld
19152maybe-install-ld:
19153@if ld
19154maybe-install-ld: install-ld
e28c595f 19155
a90ef4bf
JM
19156install-ld: installdirs
19157 @: $(MAKE); $(unstage)
19158 @r=`${PWD_COMMAND}`; export r; \
19159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19160 $(HOST_EXPORTS) \
19161 (cd $(HOST_SUBDIR)/ld && \
19162 $(MAKE) $(FLAGS_TO_PASS) install)
e28c595f 19163
a90ef4bf 19164@endif ld
e28c595f 19165
a90ef4bf
JM
19166.PHONY: install-strip-ld maybe-install-strip-ld
19167maybe-install-strip-ld:
19168@if ld
19169maybe-install-strip-ld: install-strip-ld
9b980aa1 19170
a90ef4bf
JM
19171install-strip-ld: installdirs
19172 @: $(MAKE); $(unstage)
19173 @r=`${PWD_COMMAND}`; export r; \
19174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19175 $(HOST_EXPORTS) \
19176 (cd $(HOST_SUBDIR)/ld && \
19177 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 19178
a90ef4bf 19179@endif ld
9b980aa1 19180
e28c595f
JM
19181# Other targets (info, dvi, pdf, etc.)
19182
a90ef4bf
JM
19183.PHONY: maybe-info-ld info-ld
19184maybe-info-ld:
19185@if ld
19186maybe-info-ld: info-ld
e28c595f 19187
a90ef4bf
JM
19188info-ld: \
19189 configure-ld
19190 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19191 r=`${PWD_COMMAND}`; export r; \
19192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19193 $(HOST_EXPORTS) \
19194 for flag in $(EXTRA_HOST_FLAGS) ; do \
19195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19196 done; \
22121df0 19197 echo "Doing info in ld"; \
a90ef4bf 19198 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19201 "RANLIB=$${RANLIB}" \
19202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19203 info) \
19204 || exit 1
19205
a90ef4bf 19206@endif ld
e28c595f 19207
a90ef4bf
JM
19208.PHONY: maybe-dvi-ld dvi-ld
19209maybe-dvi-ld:
19210@if ld
19211maybe-dvi-ld: dvi-ld
e28c595f 19212
a90ef4bf
JM
19213dvi-ld: \
19214 configure-ld
19215 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19216 r=`${PWD_COMMAND}`; export r; \
19217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19218 $(HOST_EXPORTS) \
19219 for flag in $(EXTRA_HOST_FLAGS) ; do \
19220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19221 done; \
22121df0 19222 echo "Doing dvi in ld"; \
a90ef4bf 19223 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19226 "RANLIB=$${RANLIB}" \
19227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19228 dvi) \
19229 || exit 1
19230
a90ef4bf 19231@endif ld
e28c595f 19232
a90ef4bf
JM
19233.PHONY: maybe-pdf-ld pdf-ld
19234maybe-pdf-ld:
19235@if ld
19236maybe-pdf-ld: pdf-ld
e28c595f 19237
a90ef4bf
JM
19238pdf-ld: \
19239 configure-ld
19240 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19241 r=`${PWD_COMMAND}`; export r; \
19242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19243 $(HOST_EXPORTS) \
19244 for flag in $(EXTRA_HOST_FLAGS) ; do \
19245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19246 done; \
22121df0 19247 echo "Doing pdf in ld"; \
a90ef4bf 19248 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19251 "RANLIB=$${RANLIB}" \
19252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19253 pdf) \
19254 || exit 1
19255
a90ef4bf 19256@endif ld
e28c595f 19257
a90ef4bf
JM
19258.PHONY: maybe-html-ld html-ld
19259maybe-html-ld:
19260@if ld
19261maybe-html-ld: html-ld
e28c595f 19262
a90ef4bf
JM
19263html-ld: \
19264 configure-ld
19265 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19266 r=`${PWD_COMMAND}`; export r; \
19267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19268 $(HOST_EXPORTS) \
19269 for flag in $(EXTRA_HOST_FLAGS) ; do \
19270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19271 done; \
22121df0 19272 echo "Doing html in ld"; \
a90ef4bf 19273 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19276 "RANLIB=$${RANLIB}" \
19277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19278 html) \
19279 || exit 1
19280
a90ef4bf 19281@endif ld
e28c595f 19282
a90ef4bf
JM
19283.PHONY: maybe-TAGS-ld TAGS-ld
19284maybe-TAGS-ld:
19285@if ld
19286maybe-TAGS-ld: TAGS-ld
e28c595f 19287
a90ef4bf
JM
19288TAGS-ld: \
19289 configure-ld
19290 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19291 r=`${PWD_COMMAND}`; export r; \
19292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19293 $(HOST_EXPORTS) \
19294 for flag in $(EXTRA_HOST_FLAGS) ; do \
19295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19296 done; \
22121df0 19297 echo "Doing TAGS in ld"; \
a90ef4bf 19298 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19301 "RANLIB=$${RANLIB}" \
19302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19303 TAGS) \
19304 || exit 1
19305
a90ef4bf 19306@endif ld
e28c595f 19307
a90ef4bf
JM
19308.PHONY: maybe-install-info-ld install-info-ld
19309maybe-install-info-ld:
19310@if ld
19311maybe-install-info-ld: install-info-ld
e28c595f 19312
a90ef4bf
JM
19313install-info-ld: \
19314 configure-ld \
19315 info-ld
19316 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19317 r=`${PWD_COMMAND}`; export r; \
19318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19319 $(HOST_EXPORTS) \
19320 for flag in $(EXTRA_HOST_FLAGS) ; do \
19321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19322 done; \
22121df0 19323 echo "Doing install-info in ld"; \
a90ef4bf 19324 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19327 "RANLIB=$${RANLIB}" \
19328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19329 install-info) \
19330 || exit 1
19331
a90ef4bf 19332@endif ld
e28c595f 19333
a90ef4bf
JM
19334.PHONY: maybe-install-pdf-ld install-pdf-ld
19335maybe-install-pdf-ld:
19336@if ld
19337maybe-install-pdf-ld: install-pdf-ld
e28c595f 19338
a90ef4bf
JM
19339install-pdf-ld: \
19340 configure-ld \
19341 pdf-ld
19342 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
19343 r=`${PWD_COMMAND}`; export r; \
19344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19345 $(HOST_EXPORTS) \
19346 for flag in $(EXTRA_HOST_FLAGS) ; do \
19347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19348 done; \
22121df0 19349 echo "Doing install-pdf in ld"; \
a90ef4bf 19350 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19353 "RANLIB=$${RANLIB}" \
19354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19355 install-pdf) \
19356 || exit 1
19357
a90ef4bf 19358@endif ld
e28c595f 19359
a90ef4bf
JM
19360.PHONY: maybe-install-html-ld install-html-ld
19361maybe-install-html-ld:
19362@if ld
19363maybe-install-html-ld: install-html-ld
e28c595f 19364
a90ef4bf
JM
19365install-html-ld: \
19366 configure-ld \
19367 html-ld
19368 @[ -f ./ld/Makefile ] || exit 0; \
e28c595f
JM
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 install-html in ld"; \
a90ef4bf 19376 (cd $(HOST_SUBDIR)/ld && \
e28c595f
JM
19377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19379 "RANLIB=$${RANLIB}" \
19380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
19381 install-html) \
19382 || exit 1
19383
a90ef4bf 19384@endif ld
e28c595f 19385
a90ef4bf
JM
19386.PHONY: maybe-installcheck-ld installcheck-ld
19387maybe-installcheck-ld:
19388@if ld
19389maybe-installcheck-ld: installcheck-ld
e28c595f 19390
a90ef4bf
JM
19391installcheck-ld: \
19392 configure-ld
19393 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19394 r=`${PWD_COMMAND}`; export r; \
19395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19396 $(HOST_EXPORTS) \
19397 for flag in $(EXTRA_HOST_FLAGS) ; do \
19398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19399 done; \
22121df0 19400 echo "Doing installcheck in ld"; \
a90ef4bf 19401 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19404 "RANLIB=$${RANLIB}" \
0c24b341 19405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19406 installcheck) \
19407 || exit 1
19408
a90ef4bf 19409@endif ld
4b900473 19410
a90ef4bf
JM
19411.PHONY: maybe-mostlyclean-ld mostlyclean-ld
19412maybe-mostlyclean-ld:
19413@if ld
19414maybe-mostlyclean-ld: mostlyclean-ld
4b900473 19415
a90ef4bf
JM
19416mostlyclean-ld:
19417 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19418 r=`${PWD_COMMAND}`; export r; \
19419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19420 $(HOST_EXPORTS) \
19421 for flag in $(EXTRA_HOST_FLAGS) ; do \
19422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19423 done; \
22121df0 19424 echo "Doing mostlyclean in ld"; \
a90ef4bf 19425 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19428 "RANLIB=$${RANLIB}" \
0c24b341 19429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19430 mostlyclean) \
19431 || exit 1
19432
a90ef4bf 19433@endif ld
4b900473 19434
a90ef4bf
JM
19435.PHONY: maybe-clean-ld clean-ld
19436maybe-clean-ld:
19437@if ld
19438maybe-clean-ld: clean-ld
4b900473 19439
a90ef4bf
JM
19440clean-ld:
19441 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19442 r=`${PWD_COMMAND}`; export r; \
19443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19444 $(HOST_EXPORTS) \
19445 for flag in $(EXTRA_HOST_FLAGS) ; do \
19446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19447 done; \
22121df0 19448 echo "Doing clean in ld"; \
a90ef4bf 19449 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19452 "RANLIB=$${RANLIB}" \
0c24b341 19453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19454 clean) \
19455 || exit 1
19456
a90ef4bf 19457@endif ld
4b900473 19458
a90ef4bf
JM
19459.PHONY: maybe-distclean-ld distclean-ld
19460maybe-distclean-ld:
19461@if ld
19462maybe-distclean-ld: distclean-ld
4b900473 19463
a90ef4bf
JM
19464distclean-ld:
19465 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19466 r=`${PWD_COMMAND}`; export r; \
19467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19468 $(HOST_EXPORTS) \
19469 for flag in $(EXTRA_HOST_FLAGS) ; do \
19470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19471 done; \
22121df0 19472 echo "Doing distclean in ld"; \
a90ef4bf 19473 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19476 "RANLIB=$${RANLIB}" \
0c24b341 19477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19478 distclean) \
19479 || exit 1
19480
a90ef4bf 19481@endif ld
4b900473 19482
a90ef4bf
JM
19483.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
19484maybe-maintainer-clean-ld:
19485@if ld
19486maybe-maintainer-clean-ld: maintainer-clean-ld
4b900473 19487
a90ef4bf
JM
19488maintainer-clean-ld:
19489 @[ -f ./ld/Makefile ] || exit 0; \
4b900473
PB
19490 r=`${PWD_COMMAND}`; export r; \
19491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19492 $(HOST_EXPORTS) \
19493 for flag in $(EXTRA_HOST_FLAGS) ; do \
19494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19495 done; \
22121df0 19496 echo "Doing maintainer-clean in ld"; \
a90ef4bf 19497 (cd $(HOST_SUBDIR)/ld && \
4b900473
PB
19498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19500 "RANLIB=$${RANLIB}" \
0c24b341 19501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
19502 maintainer-clean) \
19503 || exit 1
19504
a90ef4bf 19505@endif ld
4b900473
PB
19506
19507
19508
2bf680c4
ILT
19509.PHONY: configure-libbacktrace maybe-configure-libbacktrace
19510maybe-configure-libbacktrace:
19511@if gcc-bootstrap
19512configure-libbacktrace: stage_current
19513@endif gcc-bootstrap
19514@if libbacktrace
19515maybe-configure-libbacktrace: configure-libbacktrace
19516configure-libbacktrace:
19517 @r=`${PWD_COMMAND}`; export r; \
19518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19519 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 19520 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19521 $(HOST_EXPORTS) \
19522 echo Configuring in $(HOST_SUBDIR)/libbacktrace; \
19523 cd "$(HOST_SUBDIR)/libbacktrace" || exit 1; \
19524 case $(srcdir) in \
19525 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19526 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19527 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19528 esac; \
1b6c0831
L
19529 module_srcdir=libbacktrace; \
19530 $(SHELL) \
19531 $$s/$$module_srcdir/configure \
19532 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19533 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19534 --target=${target_alias} \
2bf680c4
ILT
19535 || exit 1
19536@endif libbacktrace
19537
19538
19539
19540.PHONY: configure-stage1-libbacktrace maybe-configure-stage1-libbacktrace
19541maybe-configure-stage1-libbacktrace:
19542@if libbacktrace-bootstrap
19543maybe-configure-stage1-libbacktrace: configure-stage1-libbacktrace
19544configure-stage1-libbacktrace:
19545 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19546 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19547 @r=`${PWD_COMMAND}`; export r; \
19548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19549 TFLAGS="$(STAGE1_TFLAGS)"; \
19550 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19551 $(HOST_EXPORTS) \
19552 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
19553 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
19554 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
19555 echo Configuring stage 1 in $(HOST_SUBDIR)/libbacktrace; \
19556 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19557 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19558 case $(srcdir) in \
19559 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19560 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19561 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19562 esac; \
1b6c0831
L
19563 module_srcdir=libbacktrace; \
19564 $(SHELL) $$s/$$module_srcdir/configure \
19565 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19566 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
19567 --target=${target_alias} \
19568 \
2bf680c4
ILT
19569 $(STAGE1_CONFIGURE_FLAGS)
19570@endif libbacktrace-bootstrap
19571
19572.PHONY: configure-stage2-libbacktrace maybe-configure-stage2-libbacktrace
19573maybe-configure-stage2-libbacktrace:
19574@if libbacktrace-bootstrap
19575maybe-configure-stage2-libbacktrace: configure-stage2-libbacktrace
19576configure-stage2-libbacktrace:
19577 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19578 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19579 @r=`${PWD_COMMAND}`; export r; \
19580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19581 TFLAGS="$(STAGE2_TFLAGS)"; \
19582 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19583 $(HOST_EXPORTS) \
19584 $(POSTSTAGE1_HOST_EXPORTS) \
19585 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
19586 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
19587 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19588 echo Configuring stage 2 in $(HOST_SUBDIR)/libbacktrace; \
19589 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19590 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19591 case $(srcdir) in \
19592 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19593 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19594 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19595 esac; \
1b6c0831
L
19596 module_srcdir=libbacktrace; \
19597 $(SHELL) $$s/$$module_srcdir/configure \
19598 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19599 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19600 --target=${target_alias} \
22121df0 19601 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19602 $(STAGE2_CONFIGURE_FLAGS)
19603@endif libbacktrace-bootstrap
19604
19605.PHONY: configure-stage3-libbacktrace maybe-configure-stage3-libbacktrace
19606maybe-configure-stage3-libbacktrace:
19607@if libbacktrace-bootstrap
19608maybe-configure-stage3-libbacktrace: configure-stage3-libbacktrace
19609configure-stage3-libbacktrace:
19610 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19611 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19612 @r=`${PWD_COMMAND}`; export r; \
19613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19614 TFLAGS="$(STAGE3_TFLAGS)"; \
19615 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19616 $(HOST_EXPORTS) \
19617 $(POSTSTAGE1_HOST_EXPORTS) \
19618 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
19619 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
19620 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19621 echo Configuring stage 3 in $(HOST_SUBDIR)/libbacktrace; \
19622 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19623 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19624 case $(srcdir) in \
19625 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19626 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19627 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19628 esac; \
1b6c0831
L
19629 module_srcdir=libbacktrace; \
19630 $(SHELL) $$s/$$module_srcdir/configure \
19631 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19632 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19633 --target=${target_alias} \
22121df0 19634 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19635 $(STAGE3_CONFIGURE_FLAGS)
19636@endif libbacktrace-bootstrap
19637
19638.PHONY: configure-stage4-libbacktrace maybe-configure-stage4-libbacktrace
19639maybe-configure-stage4-libbacktrace:
19640@if libbacktrace-bootstrap
19641maybe-configure-stage4-libbacktrace: configure-stage4-libbacktrace
19642configure-stage4-libbacktrace:
19643 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19644 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19645 @r=`${PWD_COMMAND}`; export r; \
19646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19647 TFLAGS="$(STAGE4_TFLAGS)"; \
19648 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19649 $(HOST_EXPORTS) \
19650 $(POSTSTAGE1_HOST_EXPORTS) \
19651 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
19652 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
19653 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19654 echo Configuring stage 4 in $(HOST_SUBDIR)/libbacktrace; \
19655 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19656 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19657 case $(srcdir) in \
19658 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19659 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19660 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19661 esac; \
1b6c0831
L
19662 module_srcdir=libbacktrace; \
19663 $(SHELL) $$s/$$module_srcdir/configure \
19664 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19665 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19666 --target=${target_alias} \
22121df0 19667 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19668 $(STAGE4_CONFIGURE_FLAGS)
19669@endif libbacktrace-bootstrap
19670
19671.PHONY: configure-stageprofile-libbacktrace maybe-configure-stageprofile-libbacktrace
19672maybe-configure-stageprofile-libbacktrace:
19673@if libbacktrace-bootstrap
19674maybe-configure-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19675configure-stageprofile-libbacktrace:
19676 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19677 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19678 @r=`${PWD_COMMAND}`; export r; \
19679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19680 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19681 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19682 $(HOST_EXPORTS) \
19683 $(POSTSTAGE1_HOST_EXPORTS) \
19684 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
19685 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
19686 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19687 echo Configuring stage profile in $(HOST_SUBDIR)/libbacktrace; \
19688 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19689 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19690 case $(srcdir) in \
19691 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19692 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19693 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19694 esac; \
1b6c0831
L
19695 module_srcdir=libbacktrace; \
19696 $(SHELL) $$s/$$module_srcdir/configure \
19697 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19698 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19699 --target=${target_alias} \
22121df0 19700 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19701 $(STAGEprofile_CONFIGURE_FLAGS)
19702@endif libbacktrace-bootstrap
19703
19704.PHONY: configure-stagefeedback-libbacktrace maybe-configure-stagefeedback-libbacktrace
19705maybe-configure-stagefeedback-libbacktrace:
19706@if libbacktrace-bootstrap
19707maybe-configure-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19708configure-stagefeedback-libbacktrace:
19709 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19710 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace
19711 @r=`${PWD_COMMAND}`; export r; \
19712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19713 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19714 test ! -f $(HOST_SUBDIR)/libbacktrace/Makefile || exit 0; \
19715 $(HOST_EXPORTS) \
19716 $(POSTSTAGE1_HOST_EXPORTS) \
19717 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
19718 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
19719 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
19720 echo Configuring stage feedback in $(HOST_SUBDIR)/libbacktrace; \
19721 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libbacktrace; \
2bf680c4
ILT
19722 cd $(HOST_SUBDIR)/libbacktrace || exit 1; \
19723 case $(srcdir) in \
19724 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19725 *) topdir=`echo $(HOST_SUBDIR)/libbacktrace/ | \
19726 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19727 esac; \
1b6c0831
L
19728 module_srcdir=libbacktrace; \
19729 $(SHELL) $$s/$$module_srcdir/configure \
19730 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 19731 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 19732 --target=${target_alias} \
22121df0 19733 --with-build-libsubdir=$(HOST_SUBDIR) \
2bf680c4
ILT
19734 $(STAGEfeedback_CONFIGURE_FLAGS)
19735@endif libbacktrace-bootstrap
19736
19737
19738
19739
19740
19741.PHONY: all-libbacktrace maybe-all-libbacktrace
19742maybe-all-libbacktrace:
19743@if gcc-bootstrap
19744all-libbacktrace: stage_current
19745@endif gcc-bootstrap
19746@if libbacktrace
19747TARGET-libbacktrace=all
19748maybe-all-libbacktrace: all-libbacktrace
19749all-libbacktrace: configure-libbacktrace
19750 @r=`${PWD_COMMAND}`; export r; \
19751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19752 $(HOST_EXPORTS) \
19753 (cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19754 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
2bf680c4
ILT
19755 $(TARGET-libbacktrace))
19756@endif libbacktrace
19757
19758
19759
19760.PHONY: all-stage1-libbacktrace maybe-all-stage1-libbacktrace
19761.PHONY: clean-stage1-libbacktrace maybe-clean-stage1-libbacktrace
19762maybe-all-stage1-libbacktrace:
19763maybe-clean-stage1-libbacktrace:
19764@if libbacktrace-bootstrap
19765maybe-all-stage1-libbacktrace: all-stage1-libbacktrace
19766all-stage1: all-stage1-libbacktrace
19767TARGET-stage1-libbacktrace = $(TARGET-libbacktrace)
19768all-stage1-libbacktrace: configure-stage1-libbacktrace
19769 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
19770 @r=`${PWD_COMMAND}`; export r; \
19771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19772 TFLAGS="$(STAGE1_TFLAGS)"; \
19773 $(HOST_EXPORTS) \
19774 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19775 \
2bf680c4
ILT
19776 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19777 CFLAGS="$(STAGE1_CFLAGS)" \
19778 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
19779 LIBCFLAGS="$(LIBCFLAGS)" \
19780 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19781 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19782 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
19783 $(EXTRA_HOST_FLAGS) \
19784 $(STAGE1_FLAGS_TO_PASS) \
05a13254 19785 TFLAGS="$(STAGE1_TFLAGS)" \
2bf680c4
ILT
19786 $(TARGET-stage1-libbacktrace)
19787
19788maybe-clean-stage1-libbacktrace: clean-stage1-libbacktrace
19789clean-stage1: clean-stage1-libbacktrace
19790clean-stage1-libbacktrace:
19791 @if [ $(current_stage) = stage1 ]; then \
19792 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19793 else \
19794 [ -f $(HOST_SUBDIR)/stage1-libbacktrace/Makefile ] || exit 0; \
19795 $(MAKE) stage1-start; \
19796 fi; \
19797 cd $(HOST_SUBDIR)/libbacktrace && \
19798 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 19799 $(STAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19800@endif libbacktrace-bootstrap
19801
19802
19803.PHONY: all-stage2-libbacktrace maybe-all-stage2-libbacktrace
19804.PHONY: clean-stage2-libbacktrace maybe-clean-stage2-libbacktrace
19805maybe-all-stage2-libbacktrace:
19806maybe-clean-stage2-libbacktrace:
19807@if libbacktrace-bootstrap
19808maybe-all-stage2-libbacktrace: all-stage2-libbacktrace
19809all-stage2: all-stage2-libbacktrace
19810TARGET-stage2-libbacktrace = $(TARGET-libbacktrace)
19811all-stage2-libbacktrace: configure-stage2-libbacktrace
19812 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
19813 @r=`${PWD_COMMAND}`; export r; \
19814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19815 TFLAGS="$(STAGE2_TFLAGS)"; \
19816 $(HOST_EXPORTS) \
19817 $(POSTSTAGE1_HOST_EXPORTS) \
19818 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19819 \
2bf680c4
ILT
19820 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19821 CFLAGS="$(STAGE2_CFLAGS)" \
19822 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
19823 LIBCFLAGS="$(STAGE2_CFLAGS)" \
19824 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19825 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19826 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19827 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19828 TFLAGS="$(STAGE2_TFLAGS)" \
2bf680c4
ILT
19829 $(TARGET-stage2-libbacktrace)
19830
19831maybe-clean-stage2-libbacktrace: clean-stage2-libbacktrace
19832clean-stage2: clean-stage2-libbacktrace
19833clean-stage2-libbacktrace:
19834 @if [ $(current_stage) = stage2 ]; then \
19835 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19836 else \
19837 [ -f $(HOST_SUBDIR)/stage2-libbacktrace/Makefile ] || exit 0; \
19838 $(MAKE) stage2-start; \
19839 fi; \
19840 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19841 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19842@endif libbacktrace-bootstrap
19843
19844
19845.PHONY: all-stage3-libbacktrace maybe-all-stage3-libbacktrace
19846.PHONY: clean-stage3-libbacktrace maybe-clean-stage3-libbacktrace
19847maybe-all-stage3-libbacktrace:
19848maybe-clean-stage3-libbacktrace:
19849@if libbacktrace-bootstrap
19850maybe-all-stage3-libbacktrace: all-stage3-libbacktrace
19851all-stage3: all-stage3-libbacktrace
19852TARGET-stage3-libbacktrace = $(TARGET-libbacktrace)
19853all-stage3-libbacktrace: configure-stage3-libbacktrace
19854 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
19855 @r=`${PWD_COMMAND}`; export r; \
19856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19857 TFLAGS="$(STAGE3_TFLAGS)"; \
19858 $(HOST_EXPORTS) \
19859 $(POSTSTAGE1_HOST_EXPORTS) \
19860 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19861 \
2bf680c4
ILT
19862 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19863 CFLAGS="$(STAGE3_CFLAGS)" \
19864 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
19865 LIBCFLAGS="$(STAGE3_CFLAGS)" \
19866 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19867 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19868 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19869 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19870 TFLAGS="$(STAGE3_TFLAGS)" \
2bf680c4
ILT
19871 $(TARGET-stage3-libbacktrace)
19872
19873maybe-clean-stage3-libbacktrace: clean-stage3-libbacktrace
19874clean-stage3: clean-stage3-libbacktrace
19875clean-stage3-libbacktrace:
19876 @if [ $(current_stage) = stage3 ]; then \
19877 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19878 else \
19879 [ -f $(HOST_SUBDIR)/stage3-libbacktrace/Makefile ] || exit 0; \
19880 $(MAKE) stage3-start; \
19881 fi; \
19882 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19883 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19884@endif libbacktrace-bootstrap
19885
19886
19887.PHONY: all-stage4-libbacktrace maybe-all-stage4-libbacktrace
19888.PHONY: clean-stage4-libbacktrace maybe-clean-stage4-libbacktrace
19889maybe-all-stage4-libbacktrace:
19890maybe-clean-stage4-libbacktrace:
19891@if libbacktrace-bootstrap
19892maybe-all-stage4-libbacktrace: all-stage4-libbacktrace
19893all-stage4: all-stage4-libbacktrace
19894TARGET-stage4-libbacktrace = $(TARGET-libbacktrace)
19895all-stage4-libbacktrace: configure-stage4-libbacktrace
19896 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
19897 @r=`${PWD_COMMAND}`; export r; \
19898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19899 TFLAGS="$(STAGE4_TFLAGS)"; \
19900 $(HOST_EXPORTS) \
19901 $(POSTSTAGE1_HOST_EXPORTS) \
19902 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19903 \
2bf680c4
ILT
19904 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19905 CFLAGS="$(STAGE4_CFLAGS)" \
19906 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
19907 LIBCFLAGS="$(STAGE4_CFLAGS)" \
19908 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19909 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19910 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19911 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19912 TFLAGS="$(STAGE4_TFLAGS)" \
2bf680c4
ILT
19913 $(TARGET-stage4-libbacktrace)
19914
19915maybe-clean-stage4-libbacktrace: clean-stage4-libbacktrace
19916clean-stage4: clean-stage4-libbacktrace
19917clean-stage4-libbacktrace:
19918 @if [ $(current_stage) = stage4 ]; then \
19919 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19920 else \
19921 [ -f $(HOST_SUBDIR)/stage4-libbacktrace/Makefile ] || exit 0; \
19922 $(MAKE) stage4-start; \
19923 fi; \
19924 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19925 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19926@endif libbacktrace-bootstrap
19927
19928
19929.PHONY: all-stageprofile-libbacktrace maybe-all-stageprofile-libbacktrace
19930.PHONY: clean-stageprofile-libbacktrace maybe-clean-stageprofile-libbacktrace
19931maybe-all-stageprofile-libbacktrace:
19932maybe-clean-stageprofile-libbacktrace:
19933@if libbacktrace-bootstrap
19934maybe-all-stageprofile-libbacktrace: all-stageprofile-libbacktrace
19935all-stageprofile: all-stageprofile-libbacktrace
19936TARGET-stageprofile-libbacktrace = $(TARGET-libbacktrace)
19937all-stageprofile-libbacktrace: configure-stageprofile-libbacktrace
19938 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
19939 @r=`${PWD_COMMAND}`; export r; \
19940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19941 TFLAGS="$(STAGEprofile_TFLAGS)"; \
19942 $(HOST_EXPORTS) \
19943 $(POSTSTAGE1_HOST_EXPORTS) \
19944 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19945 \
2bf680c4
ILT
19946 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19947 CFLAGS="$(STAGEprofile_CFLAGS)" \
19948 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
19949 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
19950 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19951 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19952 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19953 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19954 TFLAGS="$(STAGEprofile_TFLAGS)" \
2bf680c4
ILT
19955 $(TARGET-stageprofile-libbacktrace)
19956
19957maybe-clean-stageprofile-libbacktrace: clean-stageprofile-libbacktrace
19958clean-stageprofile: clean-stageprofile-libbacktrace
19959clean-stageprofile-libbacktrace:
19960 @if [ $(current_stage) = stageprofile ]; then \
19961 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
19962 else \
19963 [ -f $(HOST_SUBDIR)/stageprofile-libbacktrace/Makefile ] || exit 0; \
19964 $(MAKE) stageprofile-start; \
19965 fi; \
19966 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 19967 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
19968@endif libbacktrace-bootstrap
19969
19970
19971.PHONY: all-stagefeedback-libbacktrace maybe-all-stagefeedback-libbacktrace
19972.PHONY: clean-stagefeedback-libbacktrace maybe-clean-stagefeedback-libbacktrace
19973maybe-all-stagefeedback-libbacktrace:
19974maybe-clean-stagefeedback-libbacktrace:
19975@if libbacktrace-bootstrap
19976maybe-all-stagefeedback-libbacktrace: all-stagefeedback-libbacktrace
19977all-stagefeedback: all-stagefeedback-libbacktrace
19978TARGET-stagefeedback-libbacktrace = $(TARGET-libbacktrace)
19979all-stagefeedback-libbacktrace: configure-stagefeedback-libbacktrace
19980 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
19981 @r=`${PWD_COMMAND}`; export r; \
19982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19983 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
19984 $(HOST_EXPORTS) \
19985 $(POSTSTAGE1_HOST_EXPORTS) \
19986 cd $(HOST_SUBDIR)/libbacktrace && \
05a13254 19987 \
2bf680c4
ILT
19988 $(MAKE) $(BASE_FLAGS_TO_PASS) \
19989 CFLAGS="$(STAGEfeedback_CFLAGS)" \
19990 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
19991 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
19992 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
19993 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
19994 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
19995 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 19996 TFLAGS="$(STAGEfeedback_TFLAGS)" \
2bf680c4
ILT
19997 $(TARGET-stagefeedback-libbacktrace)
19998
19999maybe-clean-stagefeedback-libbacktrace: clean-stagefeedback-libbacktrace
20000clean-stagefeedback: clean-stagefeedback-libbacktrace
20001clean-stagefeedback-libbacktrace:
20002 @if [ $(current_stage) = stagefeedback ]; then \
20003 [ -f $(HOST_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
20004 else \
20005 [ -f $(HOST_SUBDIR)/stagefeedback-libbacktrace/Makefile ] || exit 0; \
20006 $(MAKE) stagefeedback-start; \
20007 fi; \
20008 cd $(HOST_SUBDIR)/libbacktrace && \
b3676d82 20009 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
2bf680c4
ILT
20010@endif libbacktrace-bootstrap
20011
20012
20013
20014
20015
20016.PHONY: check-libbacktrace maybe-check-libbacktrace
20017maybe-check-libbacktrace:
20018@if libbacktrace
20019maybe-check-libbacktrace: check-libbacktrace
20020
20021check-libbacktrace:
20022 @: $(MAKE); $(unstage)
20023 @r=`${PWD_COMMAND}`; export r; \
20024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20025 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
2bf680c4 20026 (cd $(HOST_SUBDIR)/libbacktrace && \
f91ca6bc 20027 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2bf680c4
ILT
20028
20029@endif libbacktrace
20030
20031.PHONY: install-libbacktrace maybe-install-libbacktrace
20032maybe-install-libbacktrace:
20033@if libbacktrace
20034maybe-install-libbacktrace: install-libbacktrace
20035
20036install-libbacktrace: installdirs
20037 @: $(MAKE); $(unstage)
20038 @r=`${PWD_COMMAND}`; export r; \
20039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20040 $(HOST_EXPORTS) \
20041 (cd $(HOST_SUBDIR)/libbacktrace && \
20042 $(MAKE) $(FLAGS_TO_PASS) install)
20043
20044@endif libbacktrace
20045
20046.PHONY: install-strip-libbacktrace maybe-install-strip-libbacktrace
20047maybe-install-strip-libbacktrace:
20048@if libbacktrace
20049maybe-install-strip-libbacktrace: install-strip-libbacktrace
20050
20051install-strip-libbacktrace: installdirs
20052 @: $(MAKE); $(unstage)
20053 @r=`${PWD_COMMAND}`; export r; \
20054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20055 $(HOST_EXPORTS) \
20056 (cd $(HOST_SUBDIR)/libbacktrace && \
20057 $(MAKE) $(FLAGS_TO_PASS) install-strip)
20058
20059@endif libbacktrace
20060
20061# Other targets (info, dvi, pdf, etc.)
20062
20063.PHONY: maybe-info-libbacktrace info-libbacktrace
20064maybe-info-libbacktrace:
20065@if libbacktrace
20066maybe-info-libbacktrace: info-libbacktrace
20067
20068info-libbacktrace: \
20069 configure-libbacktrace
20070 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20071 r=`${PWD_COMMAND}`; export r; \
20072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20073 $(HOST_EXPORTS) \
20074 for flag in $(EXTRA_HOST_FLAGS) ; do \
20075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20076 done; \
22121df0 20077 echo "Doing info in libbacktrace"; \
2bf680c4
ILT
20078 (cd $(HOST_SUBDIR)/libbacktrace && \
20079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20081 "RANLIB=$${RANLIB}" \
20082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20083 info) \
20084 || exit 1
20085
20086@endif libbacktrace
20087
20088.PHONY: maybe-dvi-libbacktrace dvi-libbacktrace
20089maybe-dvi-libbacktrace:
20090@if libbacktrace
20091maybe-dvi-libbacktrace: dvi-libbacktrace
20092
20093dvi-libbacktrace: \
20094 configure-libbacktrace
20095 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20096 r=`${PWD_COMMAND}`; export r; \
20097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20098 $(HOST_EXPORTS) \
20099 for flag in $(EXTRA_HOST_FLAGS) ; do \
20100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20101 done; \
22121df0 20102 echo "Doing dvi in libbacktrace"; \
2bf680c4
ILT
20103 (cd $(HOST_SUBDIR)/libbacktrace && \
20104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20106 "RANLIB=$${RANLIB}" \
20107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20108 dvi) \
20109 || exit 1
20110
20111@endif libbacktrace
20112
20113.PHONY: maybe-pdf-libbacktrace pdf-libbacktrace
20114maybe-pdf-libbacktrace:
20115@if libbacktrace
20116maybe-pdf-libbacktrace: pdf-libbacktrace
20117
20118pdf-libbacktrace: \
20119 configure-libbacktrace
20120 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20121 r=`${PWD_COMMAND}`; export r; \
20122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20123 $(HOST_EXPORTS) \
20124 for flag in $(EXTRA_HOST_FLAGS) ; do \
20125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20126 done; \
22121df0 20127 echo "Doing pdf in libbacktrace"; \
2bf680c4
ILT
20128 (cd $(HOST_SUBDIR)/libbacktrace && \
20129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20131 "RANLIB=$${RANLIB}" \
20132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20133 pdf) \
20134 || exit 1
20135
20136@endif libbacktrace
20137
20138.PHONY: maybe-html-libbacktrace html-libbacktrace
20139maybe-html-libbacktrace:
20140@if libbacktrace
20141maybe-html-libbacktrace: html-libbacktrace
20142
20143html-libbacktrace: \
20144 configure-libbacktrace
20145 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20146 r=`${PWD_COMMAND}`; export r; \
20147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20148 $(HOST_EXPORTS) \
20149 for flag in $(EXTRA_HOST_FLAGS) ; do \
20150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20151 done; \
22121df0 20152 echo "Doing html in libbacktrace"; \
2bf680c4
ILT
20153 (cd $(HOST_SUBDIR)/libbacktrace && \
20154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20156 "RANLIB=$${RANLIB}" \
20157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20158 html) \
20159 || exit 1
20160
20161@endif libbacktrace
20162
20163.PHONY: maybe-TAGS-libbacktrace TAGS-libbacktrace
20164maybe-TAGS-libbacktrace:
20165@if libbacktrace
20166maybe-TAGS-libbacktrace: TAGS-libbacktrace
20167
20168TAGS-libbacktrace: \
20169 configure-libbacktrace
20170 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20171 r=`${PWD_COMMAND}`; export r; \
20172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20173 $(HOST_EXPORTS) \
20174 for flag in $(EXTRA_HOST_FLAGS) ; do \
20175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20176 done; \
22121df0 20177 echo "Doing TAGS in libbacktrace"; \
2bf680c4
ILT
20178 (cd $(HOST_SUBDIR)/libbacktrace && \
20179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20181 "RANLIB=$${RANLIB}" \
20182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20183 TAGS) \
20184 || exit 1
20185
20186@endif libbacktrace
20187
20188.PHONY: maybe-install-info-libbacktrace install-info-libbacktrace
20189maybe-install-info-libbacktrace:
20190@if libbacktrace
20191maybe-install-info-libbacktrace: install-info-libbacktrace
20192
20193install-info-libbacktrace: \
20194 configure-libbacktrace \
20195 info-libbacktrace
20196 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20197 r=`${PWD_COMMAND}`; export r; \
20198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20199 $(HOST_EXPORTS) \
20200 for flag in $(EXTRA_HOST_FLAGS) ; do \
20201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20202 done; \
22121df0 20203 echo "Doing install-info in libbacktrace"; \
2bf680c4
ILT
20204 (cd $(HOST_SUBDIR)/libbacktrace && \
20205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20207 "RANLIB=$${RANLIB}" \
20208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20209 install-info) \
20210 || exit 1
20211
20212@endif libbacktrace
20213
20214.PHONY: maybe-install-pdf-libbacktrace install-pdf-libbacktrace
20215maybe-install-pdf-libbacktrace:
20216@if libbacktrace
20217maybe-install-pdf-libbacktrace: install-pdf-libbacktrace
20218
20219install-pdf-libbacktrace: \
20220 configure-libbacktrace \
20221 pdf-libbacktrace
20222 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20223 r=`${PWD_COMMAND}`; export r; \
20224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20225 $(HOST_EXPORTS) \
20226 for flag in $(EXTRA_HOST_FLAGS) ; do \
20227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20228 done; \
22121df0 20229 echo "Doing install-pdf in libbacktrace"; \
2bf680c4
ILT
20230 (cd $(HOST_SUBDIR)/libbacktrace && \
20231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20233 "RANLIB=$${RANLIB}" \
20234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20235 install-pdf) \
20236 || exit 1
20237
20238@endif libbacktrace
20239
20240.PHONY: maybe-install-html-libbacktrace install-html-libbacktrace
20241maybe-install-html-libbacktrace:
20242@if libbacktrace
20243maybe-install-html-libbacktrace: install-html-libbacktrace
20244
20245install-html-libbacktrace: \
20246 configure-libbacktrace \
20247 html-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 install-html 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 install-html) \
20262 || exit 1
20263
20264@endif libbacktrace
20265
20266.PHONY: maybe-installcheck-libbacktrace installcheck-libbacktrace
20267maybe-installcheck-libbacktrace:
20268@if libbacktrace
20269maybe-installcheck-libbacktrace: installcheck-libbacktrace
20270
20271installcheck-libbacktrace: \
20272 configure-libbacktrace
20273 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20274 r=`${PWD_COMMAND}`; export r; \
20275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20276 $(HOST_EXPORTS) \
20277 for flag in $(EXTRA_HOST_FLAGS) ; do \
20278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20279 done; \
22121df0 20280 echo "Doing installcheck in libbacktrace"; \
2bf680c4
ILT
20281 (cd $(HOST_SUBDIR)/libbacktrace && \
20282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20284 "RANLIB=$${RANLIB}" \
20285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20286 installcheck) \
20287 || exit 1
20288
20289@endif libbacktrace
20290
20291.PHONY: maybe-mostlyclean-libbacktrace mostlyclean-libbacktrace
20292maybe-mostlyclean-libbacktrace:
20293@if libbacktrace
20294maybe-mostlyclean-libbacktrace: mostlyclean-libbacktrace
20295
20296mostlyclean-libbacktrace:
20297 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20298 r=`${PWD_COMMAND}`; export r; \
20299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20300 $(HOST_EXPORTS) \
20301 for flag in $(EXTRA_HOST_FLAGS) ; do \
20302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20303 done; \
22121df0 20304 echo "Doing mostlyclean in libbacktrace"; \
2bf680c4
ILT
20305 (cd $(HOST_SUBDIR)/libbacktrace && \
20306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20308 "RANLIB=$${RANLIB}" \
20309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20310 mostlyclean) \
20311 || exit 1
20312
20313@endif libbacktrace
20314
20315.PHONY: maybe-clean-libbacktrace clean-libbacktrace
20316maybe-clean-libbacktrace:
20317@if libbacktrace
20318maybe-clean-libbacktrace: clean-libbacktrace
20319
20320clean-libbacktrace:
20321 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20322 r=`${PWD_COMMAND}`; export r; \
20323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20324 $(HOST_EXPORTS) \
20325 for flag in $(EXTRA_HOST_FLAGS) ; do \
20326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20327 done; \
22121df0 20328 echo "Doing clean in libbacktrace"; \
2bf680c4
ILT
20329 (cd $(HOST_SUBDIR)/libbacktrace && \
20330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20332 "RANLIB=$${RANLIB}" \
20333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20334 clean) \
20335 || exit 1
20336
20337@endif libbacktrace
20338
20339.PHONY: maybe-distclean-libbacktrace distclean-libbacktrace
20340maybe-distclean-libbacktrace:
20341@if libbacktrace
20342maybe-distclean-libbacktrace: distclean-libbacktrace
20343
20344distclean-libbacktrace:
20345 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20346 r=`${PWD_COMMAND}`; export r; \
20347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20348 $(HOST_EXPORTS) \
20349 for flag in $(EXTRA_HOST_FLAGS) ; do \
20350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20351 done; \
22121df0 20352 echo "Doing distclean in libbacktrace"; \
2bf680c4
ILT
20353 (cd $(HOST_SUBDIR)/libbacktrace && \
20354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20356 "RANLIB=$${RANLIB}" \
20357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20358 distclean) \
20359 || exit 1
20360
20361@endif libbacktrace
20362
20363.PHONY: maybe-maintainer-clean-libbacktrace maintainer-clean-libbacktrace
20364maybe-maintainer-clean-libbacktrace:
20365@if libbacktrace
20366maybe-maintainer-clean-libbacktrace: maintainer-clean-libbacktrace
20367
20368maintainer-clean-libbacktrace:
20369 @[ -f ./libbacktrace/Makefile ] || exit 0; \
20370 r=`${PWD_COMMAND}`; export r; \
20371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20372 $(HOST_EXPORTS) \
20373 for flag in $(EXTRA_HOST_FLAGS) ; do \
20374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20375 done; \
22121df0 20376 echo "Doing maintainer-clean in libbacktrace"; \
2bf680c4
ILT
20377 (cd $(HOST_SUBDIR)/libbacktrace && \
20378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20380 "RANLIB=$${RANLIB}" \
20381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
20382 maintainer-clean) \
20383 || exit 1
20384
20385@endif libbacktrace
20386
20387
20388
a90ef4bf
JM
20389.PHONY: configure-libcpp maybe-configure-libcpp
20390maybe-configure-libcpp:
4b900473 20391@if gcc-bootstrap
a90ef4bf 20392configure-libcpp: stage_current
4b900473 20393@endif gcc-bootstrap
a90ef4bf
JM
20394@if libcpp
20395maybe-configure-libcpp: configure-libcpp
20396configure-libcpp:
4b900473
PB
20397 @r=`${PWD_COMMAND}`; export r; \
20398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 20399 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
22121df0 20400 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf
JM
20401 $(HOST_EXPORTS) \
20402 echo Configuring in $(HOST_SUBDIR)/libcpp; \
20403 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
4b900473
PB
20404 case $(srcdir) in \
20405 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20406 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20407 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20408 esac; \
1b6c0831
L
20409 module_srcdir=libcpp; \
20410 $(SHELL) \
20411 $$s/$$module_srcdir/configure \
20412 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20413 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20414 --target=${target_alias} \
4b900473 20415 || exit 1
a90ef4bf 20416@endif libcpp
4b900473
PB
20417
20418
20419
a90ef4bf
JM
20420.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
20421maybe-configure-stage1-libcpp:
20422@if libcpp-bootstrap
20423maybe-configure-stage1-libcpp: configure-stage1-libcpp
20424configure-stage1-libcpp:
4b900473 20425 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 20426 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20427 @r=`${PWD_COMMAND}`; export r; \
20428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20429 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 20430 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
1b05fbbd 20431 $(HOST_EXPORTS) \
8ee82aff 20432 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a 20433 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20434 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
20435 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp; \
20436 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20437 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20438 case $(srcdir) in \
20439 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20440 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20441 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20442 esac; \
1b6c0831
L
20443 module_srcdir=libcpp; \
20444 $(SHELL) $$s/$$module_srcdir/configure \
20445 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20446 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
20447 --target=${target_alias} \
20448 \
a90ef4bf
JM
20449 $(STAGE1_CONFIGURE_FLAGS)
20450@endif libcpp-bootstrap
e28c595f 20451
a90ef4bf
JM
20452.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
20453maybe-configure-stage2-libcpp:
20454@if libcpp-bootstrap
20455maybe-configure-stage2-libcpp: configure-stage2-libcpp
20456configure-stage2-libcpp:
4b900473 20457 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 20458 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20459 @r=`${PWD_COMMAND}`; export r; \
20460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20461 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 20462 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20463 $(HOST_EXPORTS) \
1b05fbbd 20464 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20465 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a 20466 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20467 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20468 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp; \
20469 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20470 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20471 case $(srcdir) in \
20472 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20473 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20474 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20475 esac; \
1b6c0831
L
20476 module_srcdir=libcpp; \
20477 $(SHELL) $$s/$$module_srcdir/configure \
20478 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20479 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20480 --target=${target_alias} \
22121df0 20481 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20482 $(STAGE2_CONFIGURE_FLAGS)
20483@endif libcpp-bootstrap
e28c595f 20484
a90ef4bf
JM
20485.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
20486maybe-configure-stage3-libcpp:
20487@if libcpp-bootstrap
20488maybe-configure-stage3-libcpp: configure-stage3-libcpp
20489configure-stage3-libcpp:
4b900473 20490 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 20491 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20492 @r=`${PWD_COMMAND}`; export r; \
20493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20494 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 20495 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20496 $(HOST_EXPORTS) \
1b05fbbd 20497 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20498 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a 20499 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20500 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20501 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp; \
20502 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20503 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20504 case $(srcdir) in \
20505 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20506 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20507 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20508 esac; \
1b6c0831
L
20509 module_srcdir=libcpp; \
20510 $(SHELL) $$s/$$module_srcdir/configure \
20511 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20512 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20513 --target=${target_alias} \
22121df0 20514 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20515 $(STAGE3_CONFIGURE_FLAGS)
20516@endif libcpp-bootstrap
e28c595f 20517
a90ef4bf
JM
20518.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
20519maybe-configure-stage4-libcpp:
20520@if libcpp-bootstrap
20521maybe-configure-stage4-libcpp: configure-stage4-libcpp
20522configure-stage4-libcpp:
4b900473 20523 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 20524 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20525 @r=`${PWD_COMMAND}`; export r; \
20526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20527 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 20528 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20529 $(HOST_EXPORTS) \
1b05fbbd 20530 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 20531 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a 20532 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20533 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20534 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp; \
20535 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20536 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20537 case $(srcdir) in \
20538 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20539 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20540 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20541 esac; \
1b6c0831
L
20542 module_srcdir=libcpp; \
20543 $(SHELL) $$s/$$module_srcdir/configure \
20544 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20545 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20546 --target=${target_alias} \
22121df0 20547 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20548 $(STAGE4_CONFIGURE_FLAGS)
20549@endif libcpp-bootstrap
e28c595f 20550
a90ef4bf
JM
20551.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
20552maybe-configure-stageprofile-libcpp:
20553@if libcpp-bootstrap
20554maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
20555configure-stageprofile-libcpp:
4b900473 20556 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 20557 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20558 @r=`${PWD_COMMAND}`; export r; \
20559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20560 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 20561 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20562 $(HOST_EXPORTS) \
1b05fbbd
AO
20563 $(POSTSTAGE1_HOST_EXPORTS) \
20564 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a 20565 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20566 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20567 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp; \
20568 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20569 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20570 case $(srcdir) in \
20571 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20572 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20573 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20574 esac; \
1b6c0831
L
20575 module_srcdir=libcpp; \
20576 $(SHELL) $$s/$$module_srcdir/configure \
20577 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20578 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20579 --target=${target_alias} \
22121df0 20580 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20581 $(STAGEprofile_CONFIGURE_FLAGS)
20582@endif libcpp-bootstrap
e28c595f 20583
a90ef4bf
JM
20584.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
20585maybe-configure-stagefeedback-libcpp:
20586@if libcpp-bootstrap
20587maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
20588configure-stagefeedback-libcpp:
4b900473 20589 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 20590 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
4b900473
PB
20591 @r=`${PWD_COMMAND}`; export r; \
20592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20593 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 20594 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
4b900473 20595 $(HOST_EXPORTS) \
1b05fbbd
AO
20596 $(POSTSTAGE1_HOST_EXPORTS) \
20597 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a 20598 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
a90ef4bf 20599 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
20600 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp; \
20601 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp; \
a90ef4bf 20602 cd $(HOST_SUBDIR)/libcpp || exit 1; \
4b900473
PB
20603 case $(srcdir) in \
20604 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 20605 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
4b900473
PB
20606 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20607 esac; \
1b6c0831
L
20608 module_srcdir=libcpp; \
20609 $(SHELL) $$s/$$module_srcdir/configure \
20610 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 20611 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 20612 --target=${target_alias} \
22121df0 20613 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
20614 $(STAGEfeedback_CONFIGURE_FLAGS)
20615@endif libcpp-bootstrap
4b900473
PB
20616
20617
20618
20619
20620
a90ef4bf
JM
20621.PHONY: all-libcpp maybe-all-libcpp
20622maybe-all-libcpp:
4b900473 20623@if gcc-bootstrap
a90ef4bf 20624all-libcpp: stage_current
4b900473 20625@endif gcc-bootstrap
a90ef4bf
JM
20626@if libcpp
20627TARGET-libcpp=all
20628maybe-all-libcpp: all-libcpp
20629all-libcpp: configure-libcpp
4b900473
PB
20630 @r=`${PWD_COMMAND}`; export r; \
20631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
20632 $(HOST_EXPORTS) \
20633 (cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20634 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
20635 $(TARGET-libcpp))
20636@endif libcpp
4b900473
PB
20637
20638
20639
a90ef4bf
JM
20640.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
20641.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
20642maybe-all-stage1-libcpp:
20643maybe-clean-stage1-libcpp:
20644@if libcpp-bootstrap
20645maybe-all-stage1-libcpp: all-stage1-libcpp
20646all-stage1: all-stage1-libcpp
20647TARGET-stage1-libcpp = $(TARGET-libcpp)
20648all-stage1-libcpp: configure-stage1-libcpp
4b900473
PB
20649 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
20650 @r=`${PWD_COMMAND}`; export r; \
20651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20652 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf
JM
20653 $(HOST_EXPORTS) \
20654 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20655 \
7f6ef0c0 20656 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20657 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 20658 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
20659 LIBCFLAGS="$(LIBCFLAGS)" \
20660 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20661 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20662 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
20663 $(EXTRA_HOST_FLAGS) \
20664 $(STAGE1_FLAGS_TO_PASS) \
05a13254 20665 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 20666 $(TARGET-stage1-libcpp)
4b900473 20667
a90ef4bf
JM
20668maybe-clean-stage1-libcpp: clean-stage1-libcpp
20669clean-stage1: clean-stage1-libcpp
20670clean-stage1-libcpp:
4b900473 20671 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 20672 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20673 else \
a90ef4bf 20674 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
4b900473
PB
20675 $(MAKE) stage1-start; \
20676 fi; \
a90ef4bf 20677 cd $(HOST_SUBDIR)/libcpp && \
7f6ef0c0 20678 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 20679 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20680@endif libcpp-bootstrap
e28c595f
JM
20681
20682
a90ef4bf
JM
20683.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
20684.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
20685maybe-all-stage2-libcpp:
20686maybe-clean-stage2-libcpp:
20687@if libcpp-bootstrap
20688maybe-all-stage2-libcpp: all-stage2-libcpp
20689all-stage2: all-stage2-libcpp
20690TARGET-stage2-libcpp = $(TARGET-libcpp)
20691all-stage2-libcpp: configure-stage2-libcpp
4b900473
PB
20692 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
20693 @r=`${PWD_COMMAND}`; export r; \
20694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20695 TFLAGS="$(STAGE2_TFLAGS)"; \
4b900473 20696 $(HOST_EXPORTS) \
a90ef4bf
JM
20697 $(POSTSTAGE1_HOST_EXPORTS) \
20698 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20699 \
7f6ef0c0 20700 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20701 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 20702 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
20703 LIBCFLAGS="$(STAGE2_CFLAGS)" \
20704 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20705 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20706 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20707 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20708 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 20709 $(TARGET-stage2-libcpp)
4b900473 20710
a90ef4bf
JM
20711maybe-clean-stage2-libcpp: clean-stage2-libcpp
20712clean-stage2: clean-stage2-libcpp
20713clean-stage2-libcpp:
4b900473 20714 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 20715 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20716 else \
a90ef4bf 20717 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
4b900473
PB
20718 $(MAKE) stage2-start; \
20719 fi; \
a90ef4bf 20720 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20721 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20722@endif libcpp-bootstrap
e28c595f
JM
20723
20724
a90ef4bf
JM
20725.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
20726.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
20727maybe-all-stage3-libcpp:
20728maybe-clean-stage3-libcpp:
20729@if libcpp-bootstrap
20730maybe-all-stage3-libcpp: all-stage3-libcpp
20731all-stage3: all-stage3-libcpp
20732TARGET-stage3-libcpp = $(TARGET-libcpp)
20733all-stage3-libcpp: configure-stage3-libcpp
4b900473
PB
20734 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
20735 @r=`${PWD_COMMAND}`; export r; \
20736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20737 TFLAGS="$(STAGE3_TFLAGS)"; \
4b900473 20738 $(HOST_EXPORTS) \
a90ef4bf
JM
20739 $(POSTSTAGE1_HOST_EXPORTS) \
20740 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20741 \
7f6ef0c0 20742 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20743 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 20744 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
20745 LIBCFLAGS="$(STAGE3_CFLAGS)" \
20746 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20747 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20748 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20749 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20750 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 20751 $(TARGET-stage3-libcpp)
4b900473 20752
a90ef4bf
JM
20753maybe-clean-stage3-libcpp: clean-stage3-libcpp
20754clean-stage3: clean-stage3-libcpp
20755clean-stage3-libcpp:
4b900473 20756 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 20757 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20758 else \
a90ef4bf 20759 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
4b900473
PB
20760 $(MAKE) stage3-start; \
20761 fi; \
a90ef4bf 20762 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20763 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20764@endif libcpp-bootstrap
e28c595f
JM
20765
20766
a90ef4bf
JM
20767.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
20768.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
20769maybe-all-stage4-libcpp:
20770maybe-clean-stage4-libcpp:
20771@if libcpp-bootstrap
20772maybe-all-stage4-libcpp: all-stage4-libcpp
20773all-stage4: all-stage4-libcpp
20774TARGET-stage4-libcpp = $(TARGET-libcpp)
20775all-stage4-libcpp: configure-stage4-libcpp
4b900473
PB
20776 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
20777 @r=`${PWD_COMMAND}`; export r; \
20778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20779 TFLAGS="$(STAGE4_TFLAGS)"; \
4b900473 20780 $(HOST_EXPORTS) \
a90ef4bf
JM
20781 $(POSTSTAGE1_HOST_EXPORTS) \
20782 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20783 \
7f6ef0c0 20784 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20785 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 20786 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 20787 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
20788 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20789 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20790 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20791 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20792 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 20793 $(TARGET-stage4-libcpp)
4b900473 20794
a90ef4bf
JM
20795maybe-clean-stage4-libcpp: clean-stage4-libcpp
20796clean-stage4: clean-stage4-libcpp
20797clean-stage4-libcpp:
4b900473 20798 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 20799 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20800 else \
a90ef4bf 20801 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
4b900473
PB
20802 $(MAKE) stage4-start; \
20803 fi; \
a90ef4bf 20804 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20805 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20806@endif libcpp-bootstrap
e28c595f
JM
20807
20808
a90ef4bf
JM
20809.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
20810.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
20811maybe-all-stageprofile-libcpp:
20812maybe-clean-stageprofile-libcpp:
20813@if libcpp-bootstrap
20814maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
20815all-stageprofile: all-stageprofile-libcpp
20816TARGET-stageprofile-libcpp = $(TARGET-libcpp)
20817all-stageprofile-libcpp: configure-stageprofile-libcpp
4b900473
PB
20818 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
20819 @r=`${PWD_COMMAND}`; export r; \
20820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20821 TFLAGS="$(STAGEprofile_TFLAGS)"; \
4b900473 20822 $(HOST_EXPORTS) \
a90ef4bf
JM
20823 $(POSTSTAGE1_HOST_EXPORTS) \
20824 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20825 \
7f6ef0c0 20826 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20827 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 20828 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
20829 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
20830 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20831 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20832 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20833 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20834 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 20835 $(TARGET-stageprofile-libcpp)
4b900473 20836
a90ef4bf
JM
20837maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
20838clean-stageprofile: clean-stageprofile-libcpp
20839clean-stageprofile-libcpp:
4b900473 20840 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 20841 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20842 else \
a90ef4bf 20843 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
4b900473
PB
20844 $(MAKE) stageprofile-start; \
20845 fi; \
a90ef4bf 20846 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20847 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20848@endif libcpp-bootstrap
e28c595f
JM
20849
20850
a90ef4bf
JM
20851.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
20852.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
20853maybe-all-stagefeedback-libcpp:
20854maybe-clean-stagefeedback-libcpp:
20855@if libcpp-bootstrap
20856maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
20857all-stagefeedback: all-stagefeedback-libcpp
20858TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
20859all-stagefeedback-libcpp: configure-stagefeedback-libcpp
4b900473
PB
20860 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
20861 @r=`${PWD_COMMAND}`; export r; \
20862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 20863 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
4b900473 20864 $(HOST_EXPORTS) \
a90ef4bf
JM
20865 $(POSTSTAGE1_HOST_EXPORTS) \
20866 cd $(HOST_SUBDIR)/libcpp && \
05a13254 20867 \
7f6ef0c0 20868 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 20869 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 20870 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
20871 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
20872 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
20873 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
20874 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
a90ef4bf 20875 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 20876 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 20877 $(TARGET-stagefeedback-libcpp)
4b900473 20878
a90ef4bf
JM
20879maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
20880clean-stagefeedback: clean-stagefeedback-libcpp
20881clean-stagefeedback-libcpp:
4b900473 20882 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 20883 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
4b900473 20884 else \
a90ef4bf 20885 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
4b900473
PB
20886 $(MAKE) stagefeedback-start; \
20887 fi; \
a90ef4bf 20888 cd $(HOST_SUBDIR)/libcpp && \
b3676d82 20889 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 20890@endif libcpp-bootstrap
4b900473
PB
20891
20892
20893
20894
20895
a90ef4bf
JM
20896.PHONY: check-libcpp maybe-check-libcpp
20897maybe-check-libcpp:
20898@if libcpp
20899maybe-check-libcpp: check-libcpp
4b900473 20900
a90ef4bf 20901check-libcpp:
4b900473
PB
20902 @: $(MAKE); $(unstage)
20903 @r=`${PWD_COMMAND}`; export r; \
20904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 20905 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 20906 (cd $(HOST_SUBDIR)/libcpp && \
f91ca6bc 20907 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
4b900473 20908
a90ef4bf 20909@endif libcpp
4b900473 20910
a90ef4bf
JM
20911.PHONY: install-libcpp maybe-install-libcpp
20912maybe-install-libcpp:
20913@if libcpp
20914maybe-install-libcpp: install-libcpp
4b900473 20915
a90ef4bf
JM
20916install-libcpp: installdirs
20917 @: $(MAKE); $(unstage)
20918 @r=`${PWD_COMMAND}`; export r; \
20919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20920 $(HOST_EXPORTS) \
20921 (cd $(HOST_SUBDIR)/libcpp && \
20922 $(MAKE) $(FLAGS_TO_PASS) install)
4b900473 20923
a90ef4bf 20924@endif libcpp
4b900473 20925
a90ef4bf
JM
20926.PHONY: install-strip-libcpp maybe-install-strip-libcpp
20927maybe-install-strip-libcpp:
20928@if libcpp
20929maybe-install-strip-libcpp: install-strip-libcpp
9b980aa1 20930
a90ef4bf
JM
20931install-strip-libcpp: installdirs
20932 @: $(MAKE); $(unstage)
20933 @r=`${PWD_COMMAND}`; export r; \
20934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20935 $(HOST_EXPORTS) \
20936 (cd $(HOST_SUBDIR)/libcpp && \
20937 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 20938
a90ef4bf 20939@endif libcpp
9b980aa1 20940
4b900473
PB
20941# Other targets (info, dvi, pdf, etc.)
20942
a90ef4bf
JM
20943.PHONY: maybe-info-libcpp info-libcpp
20944maybe-info-libcpp:
20945@if libcpp
20946maybe-info-libcpp: info-libcpp
4b900473 20947
a90ef4bf
JM
20948info-libcpp: \
20949 configure-libcpp
20950 @[ -f ./libcpp/Makefile ] || exit 0; \
20951 r=`${PWD_COMMAND}`; export r; \
4b900473
PB
20952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20953 $(HOST_EXPORTS) \
a90ef4bf 20954 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20956 done; \
22121df0 20957 echo "Doing info in libcpp"; \
a90ef4bf 20958 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20961 "RANLIB=$${RANLIB}" \
0c24b341 20962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20963 info) \
20964 || exit 1
20965
a90ef4bf 20966@endif libcpp
4b900473 20967
a90ef4bf
JM
20968.PHONY: maybe-dvi-libcpp dvi-libcpp
20969maybe-dvi-libcpp:
20970@if libcpp
20971maybe-dvi-libcpp: dvi-libcpp
4b900473 20972
a90ef4bf
JM
20973dvi-libcpp: \
20974 configure-libcpp
20975 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
20976 r=`${PWD_COMMAND}`; export r; \
20977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20978 $(HOST_EXPORTS) \
a90ef4bf 20979 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
20980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20981 done; \
22121df0 20982 echo "Doing dvi in libcpp"; \
a90ef4bf 20983 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
20984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20986 "RANLIB=$${RANLIB}" \
0c24b341 20987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
20988 dvi) \
20989 || exit 1
20990
a90ef4bf 20991@endif libcpp
4b900473 20992
a90ef4bf
JM
20993.PHONY: maybe-pdf-libcpp pdf-libcpp
20994maybe-pdf-libcpp:
20995@if libcpp
20996maybe-pdf-libcpp: pdf-libcpp
4b900473 20997
a90ef4bf
JM
20998pdf-libcpp: \
20999 configure-libcpp
21000 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21001 r=`${PWD_COMMAND}`; export r; \
21002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21003 $(HOST_EXPORTS) \
a90ef4bf 21004 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21006 done; \
22121df0 21007 echo "Doing pdf in libcpp"; \
a90ef4bf 21008 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21011 "RANLIB=$${RANLIB}" \
0c24b341 21012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21013 pdf) \
21014 || exit 1
21015
a90ef4bf 21016@endif libcpp
4b900473 21017
a90ef4bf
JM
21018.PHONY: maybe-html-libcpp html-libcpp
21019maybe-html-libcpp:
21020@if libcpp
21021maybe-html-libcpp: html-libcpp
4b900473 21022
a90ef4bf
JM
21023html-libcpp: \
21024 configure-libcpp
21025 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21026 r=`${PWD_COMMAND}`; export r; \
21027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21028 $(HOST_EXPORTS) \
a90ef4bf 21029 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21031 done; \
22121df0 21032 echo "Doing html in libcpp"; \
a90ef4bf 21033 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21036 "RANLIB=$${RANLIB}" \
0c24b341 21037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21038 html) \
21039 || exit 1
21040
a90ef4bf 21041@endif libcpp
4b900473 21042
a90ef4bf
JM
21043.PHONY: maybe-TAGS-libcpp TAGS-libcpp
21044maybe-TAGS-libcpp:
21045@if libcpp
21046maybe-TAGS-libcpp: TAGS-libcpp
4b900473 21047
a90ef4bf
JM
21048TAGS-libcpp: \
21049 configure-libcpp
21050 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21051 r=`${PWD_COMMAND}`; export r; \
21052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21053 $(HOST_EXPORTS) \
a90ef4bf 21054 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21056 done; \
22121df0 21057 echo "Doing TAGS in libcpp"; \
a90ef4bf 21058 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21061 "RANLIB=$${RANLIB}" \
0c24b341 21062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21063 TAGS) \
21064 || exit 1
21065
a90ef4bf 21066@endif libcpp
4b900473 21067
a90ef4bf
JM
21068.PHONY: maybe-install-info-libcpp install-info-libcpp
21069maybe-install-info-libcpp:
21070@if libcpp
21071maybe-install-info-libcpp: install-info-libcpp
4b900473 21072
a90ef4bf
JM
21073install-info-libcpp: \
21074 configure-libcpp \
21075 info-libcpp
21076 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21077 r=`${PWD_COMMAND}`; export r; \
21078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21079 $(HOST_EXPORTS) \
a90ef4bf 21080 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21082 done; \
22121df0 21083 echo "Doing install-info in libcpp"; \
a90ef4bf 21084 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21087 "RANLIB=$${RANLIB}" \
0c24b341 21088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21089 install-info) \
21090 || exit 1
21091
a90ef4bf 21092@endif libcpp
4b900473 21093
a90ef4bf
JM
21094.PHONY: maybe-install-pdf-libcpp install-pdf-libcpp
21095maybe-install-pdf-libcpp:
21096@if libcpp
21097maybe-install-pdf-libcpp: install-pdf-libcpp
a3ca38d2 21098
a90ef4bf
JM
21099install-pdf-libcpp: \
21100 configure-libcpp \
21101 pdf-libcpp
21102 @[ -f ./libcpp/Makefile ] || exit 0; \
a3ca38d2
DD
21103 r=`${PWD_COMMAND}`; export r; \
21104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21105 $(HOST_EXPORTS) \
a90ef4bf 21106 for flag in $(EXTRA_HOST_FLAGS) ; do \
a3ca38d2
DD
21107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21108 done; \
22121df0 21109 echo "Doing install-pdf in libcpp"; \
a90ef4bf 21110 (cd $(HOST_SUBDIR)/libcpp && \
a3ca38d2
DD
21111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21113 "RANLIB=$${RANLIB}" \
0c24b341 21114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
21115 install-pdf) \
21116 || exit 1
21117
a90ef4bf 21118@endif libcpp
a3ca38d2 21119
a90ef4bf
JM
21120.PHONY: maybe-install-html-libcpp install-html-libcpp
21121maybe-install-html-libcpp:
21122@if libcpp
21123maybe-install-html-libcpp: install-html-libcpp
4b900473 21124
a90ef4bf
JM
21125install-html-libcpp: \
21126 configure-libcpp \
21127 html-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 install-html 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 install-html) \
21142 || exit 1
21143
a90ef4bf 21144@endif libcpp
4b900473 21145
a90ef4bf
JM
21146.PHONY: maybe-installcheck-libcpp installcheck-libcpp
21147maybe-installcheck-libcpp:
21148@if libcpp
21149maybe-installcheck-libcpp: installcheck-libcpp
4b900473 21150
a90ef4bf
JM
21151installcheck-libcpp: \
21152 configure-libcpp
21153 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21154 r=`${PWD_COMMAND}`; export r; \
21155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21156 $(HOST_EXPORTS) \
a90ef4bf 21157 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21159 done; \
22121df0 21160 echo "Doing installcheck in libcpp"; \
a90ef4bf 21161 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21164 "RANLIB=$${RANLIB}" \
0c24b341 21165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21166 installcheck) \
21167 || exit 1
21168
a90ef4bf 21169@endif libcpp
4b900473 21170
a90ef4bf
JM
21171.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
21172maybe-mostlyclean-libcpp:
21173@if libcpp
21174maybe-mostlyclean-libcpp: mostlyclean-libcpp
4b900473 21175
a90ef4bf
JM
21176mostlyclean-libcpp:
21177 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21178 r=`${PWD_COMMAND}`; export r; \
21179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21180 $(HOST_EXPORTS) \
a90ef4bf 21181 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21183 done; \
22121df0 21184 echo "Doing mostlyclean in libcpp"; \
a90ef4bf 21185 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21188 "RANLIB=$${RANLIB}" \
0c24b341 21189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21190 mostlyclean) \
21191 || exit 1
21192
a90ef4bf 21193@endif libcpp
4b900473 21194
a90ef4bf
JM
21195.PHONY: maybe-clean-libcpp clean-libcpp
21196maybe-clean-libcpp:
21197@if libcpp
21198maybe-clean-libcpp: clean-libcpp
4b900473 21199
a90ef4bf
JM
21200clean-libcpp:
21201 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21202 r=`${PWD_COMMAND}`; export r; \
21203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21204 $(HOST_EXPORTS) \
a90ef4bf 21205 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21207 done; \
22121df0 21208 echo "Doing clean in libcpp"; \
a90ef4bf 21209 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21212 "RANLIB=$${RANLIB}" \
0c24b341 21213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21214 clean) \
21215 || exit 1
21216
a90ef4bf 21217@endif libcpp
4b900473 21218
a90ef4bf
JM
21219.PHONY: maybe-distclean-libcpp distclean-libcpp
21220maybe-distclean-libcpp:
21221@if libcpp
21222maybe-distclean-libcpp: distclean-libcpp
4b900473 21223
a90ef4bf
JM
21224distclean-libcpp:
21225 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21226 r=`${PWD_COMMAND}`; export r; \
21227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21228 $(HOST_EXPORTS) \
a90ef4bf 21229 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21230 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21231 done; \
22121df0 21232 echo "Doing distclean in libcpp"; \
a90ef4bf 21233 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21234 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21235 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21236 "RANLIB=$${RANLIB}" \
0c24b341 21237 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21238 distclean) \
21239 || exit 1
21240
a90ef4bf 21241@endif libcpp
4b900473 21242
a90ef4bf
JM
21243.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
21244maybe-maintainer-clean-libcpp:
21245@if libcpp
21246maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
4b900473 21247
a90ef4bf
JM
21248maintainer-clean-libcpp:
21249 @[ -f ./libcpp/Makefile ] || exit 0; \
4b900473
PB
21250 r=`${PWD_COMMAND}`; export r; \
21251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21252 $(HOST_EXPORTS) \
a90ef4bf 21253 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b900473
PB
21254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21255 done; \
22121df0 21256 echo "Doing maintainer-clean in libcpp"; \
a90ef4bf 21257 (cd $(HOST_SUBDIR)/libcpp && \
4b900473
PB
21258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21260 "RANLIB=$${RANLIB}" \
0c24b341 21261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4b900473
PB
21262 maintainer-clean) \
21263 || exit 1
21264
a90ef4bf 21265@endif libcpp
4b900473
PB
21266
21267
21268
a90ef4bf
JM
21269.PHONY: configure-libdecnumber maybe-configure-libdecnumber
21270maybe-configure-libdecnumber:
1f53ca9a 21271@if gcc-bootstrap
a90ef4bf 21272configure-libdecnumber: stage_current
1f53ca9a 21273@endif gcc-bootstrap
a90ef4bf
JM
21274@if libdecnumber
21275maybe-configure-libdecnumber: configure-libdecnumber
21276configure-libdecnumber:
1f53ca9a
AO
21277 @r=`${PWD_COMMAND}`; export r; \
21278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 21279 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
22121df0 21280 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
1f53ca9a 21281 $(HOST_EXPORTS) \
a90ef4bf
JM
21282 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
21283 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
1f53ca9a
AO
21284 case $(srcdir) in \
21285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21286 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21288 esac; \
1b6c0831
L
21289 module_srcdir=libdecnumber; \
21290 $(SHELL) \
21291 $$s/$$module_srcdir/configure \
21292 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21293 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21294 --target=${target_alias} \
1f53ca9a 21295 || exit 1
a90ef4bf 21296@endif libdecnumber
1f53ca9a
AO
21297
21298
21299
a90ef4bf
JM
21300.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
21301maybe-configure-stage1-libdecnumber:
21302@if libdecnumber-bootstrap
21303maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
21304configure-stage1-libdecnumber:
1f53ca9a 21305 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 21306 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21307 @r=`${PWD_COMMAND}`; export r; \
21308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21309 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 21310 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21311 $(HOST_EXPORTS) \
21312 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
21313 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
21314 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
21315 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber; \
21316 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21317 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21318 case $(srcdir) in \
21319 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21320 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21321 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21322 esac; \
1b6c0831
L
21323 module_srcdir=libdecnumber; \
21324 $(SHELL) $$s/$$module_srcdir/configure \
21325 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21326 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
21327 --target=${target_alias} \
21328 \
a90ef4bf
JM
21329 $(STAGE1_CONFIGURE_FLAGS)
21330@endif libdecnumber-bootstrap
1f53ca9a 21331
a90ef4bf
JM
21332.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
21333maybe-configure-stage2-libdecnumber:
21334@if libdecnumber-bootstrap
21335maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
21336configure-stage2-libdecnumber:
1f53ca9a 21337 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 21338 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21339 @r=`${PWD_COMMAND}`; export r; \
21340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21341 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 21342 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21343 $(HOST_EXPORTS) \
21344 $(POSTSTAGE1_HOST_EXPORTS) \
21345 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
21346 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
21347 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21348 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber; \
21349 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21350 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21351 case $(srcdir) in \
21352 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21353 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21354 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21355 esac; \
1b6c0831
L
21356 module_srcdir=libdecnumber; \
21357 $(SHELL) $$s/$$module_srcdir/configure \
21358 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21359 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21360 --target=${target_alias} \
22121df0 21361 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21362 $(STAGE2_CONFIGURE_FLAGS)
21363@endif libdecnumber-bootstrap
1f53ca9a 21364
a90ef4bf
JM
21365.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
21366maybe-configure-stage3-libdecnumber:
21367@if libdecnumber-bootstrap
21368maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
21369configure-stage3-libdecnumber:
1f53ca9a 21370 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 21371 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21372 @r=`${PWD_COMMAND}`; export r; \
21373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21374 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 21375 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21376 $(HOST_EXPORTS) \
21377 $(POSTSTAGE1_HOST_EXPORTS) \
21378 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
21379 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
21380 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21381 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber; \
21382 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21383 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21384 case $(srcdir) in \
21385 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21386 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21387 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21388 esac; \
1b6c0831
L
21389 module_srcdir=libdecnumber; \
21390 $(SHELL) $$s/$$module_srcdir/configure \
21391 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21392 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21393 --target=${target_alias} \
22121df0 21394 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21395 $(STAGE3_CONFIGURE_FLAGS)
21396@endif libdecnumber-bootstrap
1f53ca9a 21397
a90ef4bf
JM
21398.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
21399maybe-configure-stage4-libdecnumber:
21400@if libdecnumber-bootstrap
21401maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
21402configure-stage4-libdecnumber:
1f53ca9a 21403 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 21404 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21405 @r=`${PWD_COMMAND}`; export r; \
21406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21407 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 21408 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21409 $(HOST_EXPORTS) \
21410 $(POSTSTAGE1_HOST_EXPORTS) \
21411 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
21412 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
21413 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21414 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber; \
21415 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21416 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21417 case $(srcdir) in \
21418 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21419 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21420 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21421 esac; \
1b6c0831
L
21422 module_srcdir=libdecnumber; \
21423 $(SHELL) $$s/$$module_srcdir/configure \
21424 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21425 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21426 --target=${target_alias} \
22121df0 21427 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21428 $(STAGE4_CONFIGURE_FLAGS)
21429@endif libdecnumber-bootstrap
1f53ca9a 21430
a90ef4bf
JM
21431.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
21432maybe-configure-stageprofile-libdecnumber:
21433@if libdecnumber-bootstrap
21434maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
21435configure-stageprofile-libdecnumber:
1f53ca9a 21436 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 21437 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21438 @r=`${PWD_COMMAND}`; export r; \
21439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21440 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 21441 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21442 $(HOST_EXPORTS) \
21443 $(POSTSTAGE1_HOST_EXPORTS) \
21444 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
21445 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
21446 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21447 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber; \
21448 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21449 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21450 case $(srcdir) in \
21451 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21452 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21453 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21454 esac; \
1b6c0831
L
21455 module_srcdir=libdecnumber; \
21456 $(SHELL) $$s/$$module_srcdir/configure \
21457 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21458 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21459 --target=${target_alias} \
22121df0 21460 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21461 $(STAGEprofile_CONFIGURE_FLAGS)
21462@endif libdecnumber-bootstrap
1f53ca9a 21463
a90ef4bf
JM
21464.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
21465maybe-configure-stagefeedback-libdecnumber:
21466@if libdecnumber-bootstrap
21467maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
21468configure-stagefeedback-libdecnumber:
1f53ca9a 21469 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 21470 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
1f53ca9a
AO
21471 @r=`${PWD_COMMAND}`; export r; \
21472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21473 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 21474 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
1f53ca9a
AO
21475 $(HOST_EXPORTS) \
21476 $(POSTSTAGE1_HOST_EXPORTS) \
21477 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
21478 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
21479 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
21480 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber; \
21481 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber; \
a90ef4bf 21482 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
1f53ca9a
AO
21483 case $(srcdir) in \
21484 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 21485 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
1f53ca9a
AO
21486 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
21487 esac; \
1b6c0831
L
21488 module_srcdir=libdecnumber; \
21489 $(SHELL) $$s/$$module_srcdir/configure \
21490 --srcdir=$${topdir}/$$module_srcdir \
1f53ca9a 21491 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 21492 --target=${target_alias} \
22121df0 21493 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
21494 $(STAGEfeedback_CONFIGURE_FLAGS)
21495@endif libdecnumber-bootstrap
1f53ca9a
AO
21496
21497
21498
21499
21500
a90ef4bf
JM
21501.PHONY: all-libdecnumber maybe-all-libdecnumber
21502maybe-all-libdecnumber:
1f53ca9a 21503@if gcc-bootstrap
a90ef4bf 21504all-libdecnumber: stage_current
1f53ca9a 21505@endif gcc-bootstrap
a90ef4bf
JM
21506@if libdecnumber
21507TARGET-libdecnumber=all
21508maybe-all-libdecnumber: all-libdecnumber
21509all-libdecnumber: configure-libdecnumber
1f53ca9a
AO
21510 @r=`${PWD_COMMAND}`; export r; \
21511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21512 $(HOST_EXPORTS) \
a90ef4bf 21513 (cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21514 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
21515 $(TARGET-libdecnumber))
21516@endif libdecnumber
1f53ca9a
AO
21517
21518
21519
a90ef4bf
JM
21520.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
21521.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
21522maybe-all-stage1-libdecnumber:
21523maybe-clean-stage1-libdecnumber:
21524@if libdecnumber-bootstrap
21525maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
21526all-stage1: all-stage1-libdecnumber
21527TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
21528all-stage1-libdecnumber: configure-stage1-libdecnumber
1f53ca9a
AO
21529 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
21530 @r=`${PWD_COMMAND}`; export r; \
21531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21532 TFLAGS="$(STAGE1_TFLAGS)"; \
21533 $(HOST_EXPORTS) \
a90ef4bf 21534 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21535 \
1f53ca9a
AO
21536 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21537 CFLAGS="$(STAGE1_CFLAGS)" \
21538 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
21539 LIBCFLAGS="$(LIBCFLAGS)" \
21540 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21541 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21542 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
21543 $(EXTRA_HOST_FLAGS) \
21544 $(STAGE1_FLAGS_TO_PASS) \
05a13254 21545 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 21546 $(TARGET-stage1-libdecnumber)
1f53ca9a 21547
a90ef4bf
JM
21548maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
21549clean-stage1: clean-stage1-libdecnumber
21550clean-stage1-libdecnumber:
1f53ca9a 21551 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 21552 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21553 else \
a90ef4bf 21554 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21555 $(MAKE) stage1-start; \
21556 fi; \
a90ef4bf 21557 cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a 21558 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 21559 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21560@endif libdecnumber-bootstrap
1f53ca9a
AO
21561
21562
a90ef4bf
JM
21563.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
21564.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
21565maybe-all-stage2-libdecnumber:
21566maybe-clean-stage2-libdecnumber:
21567@if libdecnumber-bootstrap
21568maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
21569all-stage2: all-stage2-libdecnumber
21570TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
21571all-stage2-libdecnumber: configure-stage2-libdecnumber
1f53ca9a
AO
21572 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
21573 @r=`${PWD_COMMAND}`; export r; \
21574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21575 TFLAGS="$(STAGE2_TFLAGS)"; \
21576 $(HOST_EXPORTS) \
21577 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21578 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21579 \
1f53ca9a
AO
21580 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21581 CFLAGS="$(STAGE2_CFLAGS)" \
21582 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
21583 LIBCFLAGS="$(STAGE2_CFLAGS)" \
21584 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21585 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21586 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21587 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21588 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 21589 $(TARGET-stage2-libdecnumber)
1f53ca9a 21590
a90ef4bf
JM
21591maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
21592clean-stage2: clean-stage2-libdecnumber
21593clean-stage2-libdecnumber:
1f53ca9a 21594 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 21595 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21596 else \
a90ef4bf 21597 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21598 $(MAKE) stage2-start; \
21599 fi; \
a90ef4bf 21600 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21601 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21602@endif libdecnumber-bootstrap
1f53ca9a
AO
21603
21604
a90ef4bf
JM
21605.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
21606.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
21607maybe-all-stage3-libdecnumber:
21608maybe-clean-stage3-libdecnumber:
21609@if libdecnumber-bootstrap
21610maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
21611all-stage3: all-stage3-libdecnumber
21612TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
21613all-stage3-libdecnumber: configure-stage3-libdecnumber
1f53ca9a
AO
21614 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
21615 @r=`${PWD_COMMAND}`; export r; \
21616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21617 TFLAGS="$(STAGE3_TFLAGS)"; \
21618 $(HOST_EXPORTS) \
21619 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21620 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21621 \
1f53ca9a
AO
21622 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21623 CFLAGS="$(STAGE3_CFLAGS)" \
21624 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
21625 LIBCFLAGS="$(STAGE3_CFLAGS)" \
21626 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21627 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21628 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21629 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21630 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 21631 $(TARGET-stage3-libdecnumber)
1f53ca9a 21632
a90ef4bf
JM
21633maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
21634clean-stage3: clean-stage3-libdecnumber
21635clean-stage3-libdecnumber:
1f53ca9a 21636 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 21637 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21638 else \
a90ef4bf 21639 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21640 $(MAKE) stage3-start; \
21641 fi; \
a90ef4bf 21642 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21643 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21644@endif libdecnumber-bootstrap
1f53ca9a
AO
21645
21646
a90ef4bf
JM
21647.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
21648.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
21649maybe-all-stage4-libdecnumber:
21650maybe-clean-stage4-libdecnumber:
21651@if libdecnumber-bootstrap
21652maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
21653all-stage4: all-stage4-libdecnumber
21654TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
21655all-stage4-libdecnumber: configure-stage4-libdecnumber
1f53ca9a
AO
21656 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
21657 @r=`${PWD_COMMAND}`; export r; \
21658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21659 TFLAGS="$(STAGE4_TFLAGS)"; \
21660 $(HOST_EXPORTS) \
21661 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21662 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21663 \
1f53ca9a
AO
21664 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21665 CFLAGS="$(STAGE4_CFLAGS)" \
21666 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
21667 LIBCFLAGS="$(STAGE4_CFLAGS)" \
21668 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21669 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21670 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21671 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21672 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 21673 $(TARGET-stage4-libdecnumber)
1f53ca9a 21674
a90ef4bf
JM
21675maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
21676clean-stage4: clean-stage4-libdecnumber
21677clean-stage4-libdecnumber:
1f53ca9a 21678 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 21679 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21680 else \
a90ef4bf 21681 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21682 $(MAKE) stage4-start; \
21683 fi; \
a90ef4bf 21684 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21685 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21686@endif libdecnumber-bootstrap
1f53ca9a
AO
21687
21688
a90ef4bf
JM
21689.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
21690.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
21691maybe-all-stageprofile-libdecnumber:
21692maybe-clean-stageprofile-libdecnumber:
21693@if libdecnumber-bootstrap
21694maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
21695all-stageprofile: all-stageprofile-libdecnumber
21696TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
21697all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
1f53ca9a
AO
21698 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
21699 @r=`${PWD_COMMAND}`; export r; \
21700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21701 TFLAGS="$(STAGEprofile_TFLAGS)"; \
21702 $(HOST_EXPORTS) \
21703 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21704 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21705 \
1f53ca9a
AO
21706 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21707 CFLAGS="$(STAGEprofile_CFLAGS)" \
21708 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
21709 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
21710 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21711 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21712 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21713 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21714 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 21715 $(TARGET-stageprofile-libdecnumber)
1f53ca9a 21716
a90ef4bf
JM
21717maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
21718clean-stageprofile: clean-stageprofile-libdecnumber
21719clean-stageprofile-libdecnumber:
1f53ca9a 21720 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 21721 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21722 else \
a90ef4bf 21723 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21724 $(MAKE) stageprofile-start; \
21725 fi; \
a90ef4bf 21726 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21727 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21728@endif libdecnumber-bootstrap
1f53ca9a
AO
21729
21730
a90ef4bf
JM
21731.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
21732.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
21733maybe-all-stagefeedback-libdecnumber:
21734maybe-clean-stagefeedback-libdecnumber:
21735@if libdecnumber-bootstrap
21736maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
21737all-stagefeedback: all-stagefeedback-libdecnumber
21738TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
21739all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
1f53ca9a
AO
21740 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
21741 @r=`${PWD_COMMAND}`; export r; \
21742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21743 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
21744 $(HOST_EXPORTS) \
21745 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 21746 cd $(HOST_SUBDIR)/libdecnumber && \
05a13254 21747 \
1f53ca9a
AO
21748 $(MAKE) $(BASE_FLAGS_TO_PASS) \
21749 CFLAGS="$(STAGEfeedback_CFLAGS)" \
21750 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
21751 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
21752 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
21753 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
21754 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
21755 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 21756 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 21757 $(TARGET-stagefeedback-libdecnumber)
1f53ca9a 21758
a90ef4bf
JM
21759maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
21760clean-stagefeedback: clean-stagefeedback-libdecnumber
21761clean-stagefeedback-libdecnumber:
1f53ca9a 21762 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 21763 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
1f53ca9a 21764 else \
a90ef4bf 21765 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21766 $(MAKE) stagefeedback-start; \
21767 fi; \
a90ef4bf 21768 cd $(HOST_SUBDIR)/libdecnumber && \
b3676d82 21769 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 21770@endif libdecnumber-bootstrap
1f53ca9a
AO
21771
21772
21773
21774
21775
a90ef4bf
JM
21776.PHONY: check-libdecnumber maybe-check-libdecnumber
21777maybe-check-libdecnumber:
21778@if libdecnumber
21779maybe-check-libdecnumber: check-libdecnumber
1f53ca9a 21780
a90ef4bf 21781check-libdecnumber:
1f53ca9a
AO
21782 @: $(MAKE); $(unstage)
21783 @r=`${PWD_COMMAND}`; export r; \
21784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 21785 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 21786 (cd $(HOST_SUBDIR)/libdecnumber && \
f91ca6bc 21787 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
1f53ca9a 21788
a90ef4bf 21789@endif libdecnumber
1f53ca9a 21790
a90ef4bf
JM
21791.PHONY: install-libdecnumber maybe-install-libdecnumber
21792maybe-install-libdecnumber:
21793@if libdecnumber
21794maybe-install-libdecnumber: install-libdecnumber
1f53ca9a 21795
a90ef4bf
JM
21796install-libdecnumber: installdirs
21797 @: $(MAKE); $(unstage)
21798 @r=`${PWD_COMMAND}`; export r; \
21799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21800 $(HOST_EXPORTS) \
21801 (cd $(HOST_SUBDIR)/libdecnumber && \
21802 $(MAKE) $(FLAGS_TO_PASS) install)
1f53ca9a 21803
a90ef4bf 21804@endif libdecnumber
1f53ca9a 21805
a90ef4bf
JM
21806.PHONY: install-strip-libdecnumber maybe-install-strip-libdecnumber
21807maybe-install-strip-libdecnumber:
21808@if libdecnumber
21809maybe-install-strip-libdecnumber: install-strip-libdecnumber
9b980aa1 21810
a90ef4bf
JM
21811install-strip-libdecnumber: installdirs
21812 @: $(MAKE); $(unstage)
21813 @r=`${PWD_COMMAND}`; export r; \
21814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21815 $(HOST_EXPORTS) \
21816 (cd $(HOST_SUBDIR)/libdecnumber && \
21817 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 21818
a90ef4bf 21819@endif libdecnumber
9b980aa1 21820
1f53ca9a
AO
21821# Other targets (info, dvi, pdf, etc.)
21822
a90ef4bf
JM
21823.PHONY: maybe-info-libdecnumber info-libdecnumber
21824maybe-info-libdecnumber:
21825@if libdecnumber
21826maybe-info-libdecnumber: info-libdecnumber
1f53ca9a 21827
a90ef4bf
JM
21828info-libdecnumber: \
21829 configure-libdecnumber
21830 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21831 r=`${PWD_COMMAND}`; export r; \
21832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21833 $(HOST_EXPORTS) \
21834 for flag in $(EXTRA_HOST_FLAGS) ; do \
21835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21836 done; \
22121df0 21837 echo "Doing info in libdecnumber"; \
a90ef4bf 21838 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21841 "RANLIB=$${RANLIB}" \
21842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21843 info) \
21844 || exit 1
21845
a90ef4bf 21846@endif libdecnumber
1f53ca9a 21847
a90ef4bf
JM
21848.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
21849maybe-dvi-libdecnumber:
21850@if libdecnumber
21851maybe-dvi-libdecnumber: dvi-libdecnumber
1f53ca9a 21852
a90ef4bf
JM
21853dvi-libdecnumber: \
21854 configure-libdecnumber
21855 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21856 r=`${PWD_COMMAND}`; export r; \
21857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21858 $(HOST_EXPORTS) \
21859 for flag in $(EXTRA_HOST_FLAGS) ; do \
21860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21861 done; \
22121df0 21862 echo "Doing dvi in libdecnumber"; \
a90ef4bf 21863 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21866 "RANLIB=$${RANLIB}" \
21867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21868 dvi) \
21869 || exit 1
21870
a90ef4bf 21871@endif libdecnumber
1f53ca9a 21872
a90ef4bf
JM
21873.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
21874maybe-pdf-libdecnumber:
21875@if libdecnumber
21876maybe-pdf-libdecnumber: pdf-libdecnumber
1f53ca9a 21877
a90ef4bf
JM
21878pdf-libdecnumber: \
21879 configure-libdecnumber
21880 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21881 r=`${PWD_COMMAND}`; export r; \
21882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21883 $(HOST_EXPORTS) \
21884 for flag in $(EXTRA_HOST_FLAGS) ; do \
21885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21886 done; \
22121df0 21887 echo "Doing pdf in libdecnumber"; \
a90ef4bf 21888 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21891 "RANLIB=$${RANLIB}" \
21892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21893 pdf) \
21894 || exit 1
21895
a90ef4bf 21896@endif libdecnumber
1f53ca9a 21897
a90ef4bf
JM
21898.PHONY: maybe-html-libdecnumber html-libdecnumber
21899maybe-html-libdecnumber:
21900@if libdecnumber
21901maybe-html-libdecnumber: html-libdecnumber
1f53ca9a 21902
a90ef4bf
JM
21903html-libdecnumber: \
21904 configure-libdecnumber
21905 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21906 r=`${PWD_COMMAND}`; export r; \
21907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21908 $(HOST_EXPORTS) \
21909 for flag in $(EXTRA_HOST_FLAGS) ; do \
21910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21911 done; \
22121df0 21912 echo "Doing html in libdecnumber"; \
a90ef4bf 21913 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21916 "RANLIB=$${RANLIB}" \
21917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21918 html) \
21919 || exit 1
21920
a90ef4bf 21921@endif libdecnumber
1f53ca9a 21922
a90ef4bf
JM
21923.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
21924maybe-TAGS-libdecnumber:
21925@if libdecnumber
21926maybe-TAGS-libdecnumber: TAGS-libdecnumber
1f53ca9a 21927
a90ef4bf
JM
21928TAGS-libdecnumber: \
21929 configure-libdecnumber
21930 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21931 r=`${PWD_COMMAND}`; export r; \
21932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21933 $(HOST_EXPORTS) \
21934 for flag in $(EXTRA_HOST_FLAGS) ; do \
21935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21936 done; \
22121df0 21937 echo "Doing TAGS in libdecnumber"; \
a90ef4bf 21938 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21941 "RANLIB=$${RANLIB}" \
21942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21943 TAGS) \
21944 || exit 1
21945
a90ef4bf 21946@endif libdecnumber
1f53ca9a 21947
a90ef4bf
JM
21948.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
21949maybe-install-info-libdecnumber:
21950@if libdecnumber
21951maybe-install-info-libdecnumber: install-info-libdecnumber
1f53ca9a 21952
a90ef4bf
JM
21953install-info-libdecnumber: \
21954 configure-libdecnumber \
21955 info-libdecnumber
21956 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21957 r=`${PWD_COMMAND}`; export r; \
21958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21959 $(HOST_EXPORTS) \
21960 for flag in $(EXTRA_HOST_FLAGS) ; do \
21961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21962 done; \
22121df0 21963 echo "Doing install-info in libdecnumber"; \
a90ef4bf 21964 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21967 "RANLIB=$${RANLIB}" \
21968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21969 install-info) \
21970 || exit 1
21971
a90ef4bf 21972@endif libdecnumber
1f53ca9a 21973
a90ef4bf
JM
21974.PHONY: maybe-install-pdf-libdecnumber install-pdf-libdecnumber
21975maybe-install-pdf-libdecnumber:
21976@if libdecnumber
21977maybe-install-pdf-libdecnumber: install-pdf-libdecnumber
1f53ca9a 21978
a90ef4bf
JM
21979install-pdf-libdecnumber: \
21980 configure-libdecnumber \
21981 pdf-libdecnumber
21982 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
21983 r=`${PWD_COMMAND}`; export r; \
21984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21985 $(HOST_EXPORTS) \
21986 for flag in $(EXTRA_HOST_FLAGS) ; do \
21987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21988 done; \
22121df0 21989 echo "Doing install-pdf in libdecnumber"; \
a90ef4bf 21990 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
21991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21993 "RANLIB=$${RANLIB}" \
21994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
21995 install-pdf) \
21996 || exit 1
21997
a90ef4bf 21998@endif libdecnumber
1f53ca9a 21999
a90ef4bf
JM
22000.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
22001maybe-install-html-libdecnumber:
22002@if libdecnumber
22003maybe-install-html-libdecnumber: install-html-libdecnumber
1f53ca9a 22004
a90ef4bf
JM
22005install-html-libdecnumber: \
22006 configure-libdecnumber \
22007 html-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 install-html 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 install-html) \
22022 || exit 1
22023
a90ef4bf 22024@endif libdecnumber
1f53ca9a 22025
a90ef4bf
JM
22026.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
22027maybe-installcheck-libdecnumber:
22028@if libdecnumber
22029maybe-installcheck-libdecnumber: installcheck-libdecnumber
1f53ca9a 22030
a90ef4bf
JM
22031installcheck-libdecnumber: \
22032 configure-libdecnumber
22033 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22034 r=`${PWD_COMMAND}`; export r; \
22035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22036 $(HOST_EXPORTS) \
22037 for flag in $(EXTRA_HOST_FLAGS) ; do \
22038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22039 done; \
22121df0 22040 echo "Doing installcheck in libdecnumber"; \
a90ef4bf 22041 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22044 "RANLIB=$${RANLIB}" \
22045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22046 installcheck) \
22047 || exit 1
22048
a90ef4bf 22049@endif libdecnumber
1f53ca9a 22050
a90ef4bf
JM
22051.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
22052maybe-mostlyclean-libdecnumber:
22053@if libdecnumber
22054maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
1f53ca9a 22055
a90ef4bf
JM
22056mostlyclean-libdecnumber:
22057 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22058 r=`${PWD_COMMAND}`; export r; \
22059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22060 $(HOST_EXPORTS) \
22061 for flag in $(EXTRA_HOST_FLAGS) ; do \
22062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22063 done; \
22121df0 22064 echo "Doing mostlyclean in libdecnumber"; \
a90ef4bf 22065 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22068 "RANLIB=$${RANLIB}" \
22069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22070 mostlyclean) \
22071 || exit 1
22072
a90ef4bf 22073@endif libdecnumber
1f53ca9a 22074
a90ef4bf
JM
22075.PHONY: maybe-clean-libdecnumber clean-libdecnumber
22076maybe-clean-libdecnumber:
22077@if libdecnumber
22078maybe-clean-libdecnumber: clean-libdecnumber
1f53ca9a 22079
a90ef4bf
JM
22080clean-libdecnumber:
22081 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22082 r=`${PWD_COMMAND}`; export r; \
22083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22084 $(HOST_EXPORTS) \
22085 for flag in $(EXTRA_HOST_FLAGS) ; do \
22086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22087 done; \
22121df0 22088 echo "Doing clean in libdecnumber"; \
a90ef4bf 22089 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22092 "RANLIB=$${RANLIB}" \
22093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22094 clean) \
22095 || exit 1
22096
a90ef4bf 22097@endif libdecnumber
1f53ca9a 22098
a90ef4bf
JM
22099.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
22100maybe-distclean-libdecnumber:
22101@if libdecnumber
22102maybe-distclean-libdecnumber: distclean-libdecnumber
1f53ca9a 22103
a90ef4bf
JM
22104distclean-libdecnumber:
22105 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22106 r=`${PWD_COMMAND}`; export r; \
22107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22108 $(HOST_EXPORTS) \
22109 for flag in $(EXTRA_HOST_FLAGS) ; do \
22110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22111 done; \
22121df0 22112 echo "Doing distclean in libdecnumber"; \
a90ef4bf 22113 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22116 "RANLIB=$${RANLIB}" \
22117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22118 distclean) \
22119 || exit 1
22120
a90ef4bf 22121@endif libdecnumber
1f53ca9a 22122
a90ef4bf
JM
22123.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
22124maybe-maintainer-clean-libdecnumber:
22125@if libdecnumber
22126maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
1f53ca9a 22127
a90ef4bf
JM
22128maintainer-clean-libdecnumber:
22129 @[ -f ./libdecnumber/Makefile ] || exit 0; \
1f53ca9a
AO
22130 r=`${PWD_COMMAND}`; export r; \
22131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22132 $(HOST_EXPORTS) \
22133 for flag in $(EXTRA_HOST_FLAGS) ; do \
22134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22135 done; \
22121df0 22136 echo "Doing maintainer-clean in libdecnumber"; \
a90ef4bf 22137 (cd $(HOST_SUBDIR)/libdecnumber && \
1f53ca9a
AO
22138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22140 "RANLIB=$${RANLIB}" \
22141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
22142 maintainer-clean) \
22143 || exit 1
22144
a90ef4bf 22145@endif libdecnumber
1f53ca9a
AO
22146
22147
22148
a90ef4bf
JM
22149.PHONY: configure-libgui maybe-configure-libgui
22150maybe-configure-libgui:
4f0ef2d8 22151@if gcc-bootstrap
a90ef4bf 22152configure-libgui: stage_current
4f0ef2d8 22153@endif gcc-bootstrap
a90ef4bf
JM
22154@if libgui
22155maybe-configure-libgui: configure-libgui
22156configure-libgui:
0aed8855 22157 @: $(MAKE); $(unstage)
c52c6897 22158 @r=`${PWD_COMMAND}`; export r; \
4fa63067 22159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22160 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
22121df0 22161 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui; \
1f53ca9a 22162 $(HOST_EXPORTS) \
a90ef4bf
JM
22163 echo Configuring in $(HOST_SUBDIR)/libgui; \
22164 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
4fa63067 22165 case $(srcdir) in \
b00612cc 22166 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22167 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
b00612cc 22168 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 22169 esac; \
1b6c0831
L
22170 module_srcdir=libgui; \
22171 $(SHELL) \
22172 $$s/$$module_srcdir/configure \
22173 --srcdir=$${topdir}/$$module_srcdir \
4b900473 22174 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22175 --target=${target_alias} \
2a4cbe27 22176 || exit 1
a90ef4bf 22177@endif libgui
2a4cbe27 22178
a7254363
PB
22179
22180
d545f33b
PB
22181
22182
a90ef4bf
JM
22183.PHONY: all-libgui maybe-all-libgui
22184maybe-all-libgui:
4f0ef2d8 22185@if gcc-bootstrap
a90ef4bf 22186all-libgui: stage_current
4f0ef2d8 22187@endif gcc-bootstrap
a90ef4bf
JM
22188@if libgui
22189TARGET-libgui=all
22190maybe-all-libgui: all-libgui
22191all-libgui: configure-libgui
0aed8855 22192 @: $(MAKE); $(unstage)
4fa63067
NN
22193 @r=`${PWD_COMMAND}`; export r; \
22194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22195 $(HOST_EXPORTS) \
a90ef4bf 22196 (cd $(HOST_SUBDIR)/libgui && \
b3676d82 22197 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22198 $(TARGET-libgui))
22199@endif libgui
2a4cbe27 22200
a7254363 22201
d545f33b
PB
22202
22203
a90ef4bf
JM
22204.PHONY: check-libgui maybe-check-libgui
22205maybe-check-libgui:
22206@if libgui
22207maybe-check-libgui: check-libgui
2a4cbe27 22208
a90ef4bf 22209check-libgui:
0aed8855 22210 @: $(MAKE); $(unstage)
4fa63067 22211 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 22213 $(HOST_EXPORTS) \
a90ef4bf 22214 (cd $(HOST_SUBDIR)/libgui && \
b00612cc 22215 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 22216
a90ef4bf 22217@endif libgui
2a4cbe27 22218
a90ef4bf
JM
22219.PHONY: install-libgui maybe-install-libgui
22220maybe-install-libgui:
22221@if libgui
22222maybe-install-libgui: install-libgui
2a4cbe27 22223
a90ef4bf 22224install-libgui: installdirs
0aed8855 22225 @: $(MAKE); $(unstage)
4fa63067 22226 @r=`${PWD_COMMAND}`; export r; \
b40e3958 22227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22228 $(HOST_EXPORTS) \
a90ef4bf 22229 (cd $(HOST_SUBDIR)/libgui && \
2da12f12 22230 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 22231
a90ef4bf 22232@endif libgui
2a4cbe27 22233
a90ef4bf
JM
22234.PHONY: install-strip-libgui maybe-install-strip-libgui
22235maybe-install-strip-libgui:
22236@if libgui
22237maybe-install-strip-libgui: install-strip-libgui
9b980aa1 22238
a90ef4bf 22239install-strip-libgui: installdirs
9b980aa1
RW
22240 @: $(MAKE); $(unstage)
22241 @r=`${PWD_COMMAND}`; export r; \
22242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22243 $(HOST_EXPORTS) \
a90ef4bf 22244 (cd $(HOST_SUBDIR)/libgui && \
9b980aa1
RW
22245 $(MAKE) $(FLAGS_TO_PASS) install-strip)
22246
a90ef4bf 22247@endif libgui
9b980aa1 22248
56a8fe78 22249# Other targets (info, dvi, pdf, etc.)
2a4cbe27 22250
a90ef4bf
JM
22251.PHONY: maybe-info-libgui info-libgui
22252maybe-info-libgui:
22253@if libgui
22254maybe-info-libgui: info-libgui
4fa63067 22255
a90ef4bf
JM
22256info-libgui: \
22257 configure-libgui
0aed8855 22258 @: $(MAKE); $(unstage)
a90ef4bf 22259 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22260 r=`${PWD_COMMAND}`; export r; \
22261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22262 $(HOST_EXPORTS) \
b813574b 22263 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22265 done; \
22121df0 22266 echo "Doing info in libgui"; \
a90ef4bf 22267 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22270 "RANLIB=$${RANLIB}" \
0c24b341 22271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22272 info) \
2a4cbe27
NN
22273 || exit 1
22274
a90ef4bf 22275@endif libgui
2a4cbe27 22276
a90ef4bf
JM
22277.PHONY: maybe-dvi-libgui dvi-libgui
22278maybe-dvi-libgui:
22279@if libgui
22280maybe-dvi-libgui: dvi-libgui
2a4cbe27 22281
a90ef4bf
JM
22282dvi-libgui: \
22283 configure-libgui
0aed8855 22284 @: $(MAKE); $(unstage)
a90ef4bf 22285 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22286 r=`${PWD_COMMAND}`; export r; \
22287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22288 $(HOST_EXPORTS) \
b813574b 22289 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22291 done; \
22121df0 22292 echo "Doing dvi in libgui"; \
a90ef4bf 22293 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22296 "RANLIB=$${RANLIB}" \
0c24b341 22297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22298 dvi) \
2a4cbe27
NN
22299 || exit 1
22300
a90ef4bf 22301@endif libgui
2a4cbe27 22302
a90ef4bf
JM
22303.PHONY: maybe-pdf-libgui pdf-libgui
22304maybe-pdf-libgui:
22305@if libgui
22306maybe-pdf-libgui: pdf-libgui
56a8fe78 22307
a90ef4bf
JM
22308pdf-libgui: \
22309 configure-libgui
56a8fe78 22310 @: $(MAKE); $(unstage)
a90ef4bf 22311 @[ -f ./libgui/Makefile ] || exit 0; \
56a8fe78
DD
22312 r=`${PWD_COMMAND}`; export r; \
22313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22314 $(HOST_EXPORTS) \
22315 for flag in $(EXTRA_HOST_FLAGS) ; do \
22316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22317 done; \
22121df0 22318 echo "Doing pdf in libgui"; \
a90ef4bf 22319 (cd $(HOST_SUBDIR)/libgui && \
56a8fe78
DD
22320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22322 "RANLIB=$${RANLIB}" \
0c24b341 22323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
22324 pdf) \
22325 || exit 1
22326
a90ef4bf 22327@endif libgui
56a8fe78 22328
a90ef4bf
JM
22329.PHONY: maybe-html-libgui html-libgui
22330maybe-html-libgui:
22331@if libgui
22332maybe-html-libgui: html-libgui
6d389afc 22333
a90ef4bf
JM
22334html-libgui: \
22335 configure-libgui
0aed8855 22336 @: $(MAKE); $(unstage)
a90ef4bf 22337 @[ -f ./libgui/Makefile ] || exit 0; \
6d389afc
MS
22338 r=`${PWD_COMMAND}`; export r; \
22339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
22340 $(HOST_EXPORTS) \
22341 for flag in $(EXTRA_HOST_FLAGS) ; do \
22342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22343 done; \
22121df0 22344 echo "Doing html in libgui"; \
a90ef4bf 22345 (cd $(HOST_SUBDIR)/libgui && \
6d389afc
MS
22346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22348 "RANLIB=$${RANLIB}" \
0c24b341 22349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
22350 html) \
22351 || exit 1
22352
a90ef4bf 22353@endif libgui
6d389afc 22354
a90ef4bf
JM
22355.PHONY: maybe-TAGS-libgui TAGS-libgui
22356maybe-TAGS-libgui:
22357@if libgui
22358maybe-TAGS-libgui: TAGS-libgui
2a4cbe27 22359
a90ef4bf
JM
22360TAGS-libgui: \
22361 configure-libgui
0aed8855 22362 @: $(MAKE); $(unstage)
a90ef4bf 22363 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22364 r=`${PWD_COMMAND}`; export r; \
22365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22366 $(HOST_EXPORTS) \
b813574b 22367 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22369 done; \
22121df0 22370 echo "Doing TAGS in libgui"; \
a90ef4bf 22371 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22374 "RANLIB=$${RANLIB}" \
0c24b341 22375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22376 TAGS) \
2a4cbe27
NN
22377 || exit 1
22378
a90ef4bf 22379@endif libgui
2a4cbe27 22380
a90ef4bf
JM
22381.PHONY: maybe-install-info-libgui install-info-libgui
22382maybe-install-info-libgui:
22383@if libgui
22384maybe-install-info-libgui: install-info-libgui
2a4cbe27 22385
a90ef4bf
JM
22386install-info-libgui: \
22387 configure-libgui \
22388 info-libgui
0aed8855 22389 @: $(MAKE); $(unstage)
a90ef4bf 22390 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22391 r=`${PWD_COMMAND}`; export r; \
22392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22393 $(HOST_EXPORTS) \
b813574b 22394 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22396 done; \
22121df0 22397 echo "Doing install-info in libgui"; \
a90ef4bf 22398 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22401 "RANLIB=$${RANLIB}" \
0c24b341 22402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22403 install-info) \
2a4cbe27
NN
22404 || exit 1
22405
a90ef4bf 22406@endif libgui
2a4cbe27 22407
a90ef4bf
JM
22408.PHONY: maybe-install-pdf-libgui install-pdf-libgui
22409maybe-install-pdf-libgui:
22410@if libgui
22411maybe-install-pdf-libgui: install-pdf-libgui
a3ca38d2 22412
a90ef4bf
JM
22413install-pdf-libgui: \
22414 configure-libgui \
22415 pdf-libgui
a3ca38d2 22416 @: $(MAKE); $(unstage)
a90ef4bf 22417 @[ -f ./libgui/Makefile ] || exit 0; \
a3ca38d2
DD
22418 r=`${PWD_COMMAND}`; export r; \
22419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22420 $(HOST_EXPORTS) \
22421 for flag in $(EXTRA_HOST_FLAGS) ; do \
22422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22423 done; \
22121df0 22424 echo "Doing install-pdf in libgui"; \
a90ef4bf 22425 (cd $(HOST_SUBDIR)/libgui && \
a3ca38d2
DD
22426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22428 "RANLIB=$${RANLIB}" \
0c24b341 22429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
22430 install-pdf) \
22431 || exit 1
22432
a90ef4bf 22433@endif libgui
a3ca38d2 22434
a90ef4bf
JM
22435.PHONY: maybe-install-html-libgui install-html-libgui
22436maybe-install-html-libgui:
22437@if libgui
22438maybe-install-html-libgui: install-html-libgui
108a6f8e 22439
a90ef4bf
JM
22440install-html-libgui: \
22441 configure-libgui \
22442 html-libgui
108a6f8e 22443 @: $(MAKE); $(unstage)
a90ef4bf 22444 @[ -f ./libgui/Makefile ] || exit 0; \
108a6f8e
CD
22445 r=`${PWD_COMMAND}`; export r; \
22446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22447 $(HOST_EXPORTS) \
22448 for flag in $(EXTRA_HOST_FLAGS) ; do \
22449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22450 done; \
22121df0 22451 echo "Doing install-html in libgui"; \
a90ef4bf 22452 (cd $(HOST_SUBDIR)/libgui && \
108a6f8e
CD
22453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22455 "RANLIB=$${RANLIB}" \
0c24b341 22456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
22457 install-html) \
22458 || exit 1
22459
a90ef4bf 22460@endif libgui
108a6f8e 22461
a90ef4bf
JM
22462.PHONY: maybe-installcheck-libgui installcheck-libgui
22463maybe-installcheck-libgui:
22464@if libgui
22465maybe-installcheck-libgui: installcheck-libgui
2a4cbe27 22466
a90ef4bf
JM
22467installcheck-libgui: \
22468 configure-libgui
0aed8855 22469 @: $(MAKE); $(unstage)
a90ef4bf 22470 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22471 r=`${PWD_COMMAND}`; export r; \
22472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22473 $(HOST_EXPORTS) \
b813574b 22474 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22476 done; \
22121df0 22477 echo "Doing installcheck in libgui"; \
a90ef4bf 22478 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22481 "RANLIB=$${RANLIB}" \
0c24b341 22482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22483 installcheck) \
2a4cbe27
NN
22484 || exit 1
22485
a90ef4bf 22486@endif libgui
2a4cbe27 22487
a90ef4bf
JM
22488.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
22489maybe-mostlyclean-libgui:
22490@if libgui
22491maybe-mostlyclean-libgui: mostlyclean-libgui
2a4cbe27 22492
a90ef4bf 22493mostlyclean-libgui:
0aed8855 22494 @: $(MAKE); $(unstage)
a90ef4bf 22495 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22496 r=`${PWD_COMMAND}`; export r; \
22497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22498 $(HOST_EXPORTS) \
b813574b 22499 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22501 done; \
22121df0 22502 echo "Doing mostlyclean in libgui"; \
a90ef4bf 22503 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22506 "RANLIB=$${RANLIB}" \
0c24b341 22507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22508 mostlyclean) \
2a4cbe27
NN
22509 || exit 1
22510
a90ef4bf 22511@endif libgui
2a4cbe27 22512
a90ef4bf
JM
22513.PHONY: maybe-clean-libgui clean-libgui
22514maybe-clean-libgui:
22515@if libgui
22516maybe-clean-libgui: clean-libgui
2a4cbe27 22517
a90ef4bf 22518clean-libgui:
0aed8855 22519 @: $(MAKE); $(unstage)
a90ef4bf 22520 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22521 r=`${PWD_COMMAND}`; export r; \
22522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22523 $(HOST_EXPORTS) \
b813574b 22524 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22526 done; \
22121df0 22527 echo "Doing clean in libgui"; \
a90ef4bf 22528 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22531 "RANLIB=$${RANLIB}" \
0c24b341 22532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22533 clean) \
2a4cbe27
NN
22534 || exit 1
22535
a90ef4bf 22536@endif libgui
2a4cbe27 22537
a90ef4bf
JM
22538.PHONY: maybe-distclean-libgui distclean-libgui
22539maybe-distclean-libgui:
22540@if libgui
22541maybe-distclean-libgui: distclean-libgui
2a4cbe27 22542
a90ef4bf 22543distclean-libgui:
0aed8855 22544 @: $(MAKE); $(unstage)
a90ef4bf 22545 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22546 r=`${PWD_COMMAND}`; export r; \
22547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22548 $(HOST_EXPORTS) \
b813574b 22549 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22551 done; \
22121df0 22552 echo "Doing distclean in libgui"; \
a90ef4bf 22553 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22556 "RANLIB=$${RANLIB}" \
0c24b341 22557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22558 distclean) \
2a4cbe27
NN
22559 || exit 1
22560
a90ef4bf 22561@endif libgui
2a4cbe27 22562
a90ef4bf
JM
22563.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
22564maybe-maintainer-clean-libgui:
22565@if libgui
22566maybe-maintainer-clean-libgui: maintainer-clean-libgui
2a4cbe27 22567
a90ef4bf 22568maintainer-clean-libgui:
0aed8855 22569 @: $(MAKE); $(unstage)
a90ef4bf 22570 @[ -f ./libgui/Makefile ] || exit 0; \
b40e3958
L
22571 r=`${PWD_COMMAND}`; export r; \
22572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 22573 $(HOST_EXPORTS) \
b813574b 22574 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
22575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22576 done; \
22121df0 22577 echo "Doing maintainer-clean in libgui"; \
a90ef4bf 22578 (cd $(HOST_SUBDIR)/libgui && \
2a4cbe27
NN
22579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22581 "RANLIB=$${RANLIB}" \
0c24b341 22582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 22583 maintainer-clean) \
2a4cbe27
NN
22584 || exit 1
22585
a90ef4bf 22586@endif libgui
2a4cbe27 22587
2a4cbe27 22588
a7254363 22589
a90ef4bf
JM
22590.PHONY: configure-libiberty maybe-configure-libiberty
22591maybe-configure-libiberty:
93f9b408 22592@if gcc-bootstrap
a90ef4bf 22593configure-libiberty: stage_current
93f9b408 22594@endif gcc-bootstrap
a90ef4bf
JM
22595@if libiberty
22596maybe-configure-libiberty: configure-libiberty
22597configure-libiberty:
93f9b408
ILT
22598 @r=`${PWD_COMMAND}`; export r; \
22599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 22600 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
22121df0 22601 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
1f53ca9a 22602 $(HOST_EXPORTS) \
a90ef4bf
JM
22603 echo Configuring in $(HOST_SUBDIR)/libiberty; \
22604 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
93f9b408
ILT
22605 case $(srcdir) in \
22606 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22607 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22608 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22609 esac; \
1b6c0831
L
22610 module_srcdir=libiberty; \
22611 $(SHELL) \
22612 $$s/$$module_srcdir/configure \
22613 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22614 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22615 --target=${target_alias} @extra_host_libiberty_configure_flags@ \
93f9b408 22616 || exit 1
a90ef4bf 22617@endif libiberty
93f9b408
ILT
22618
22619
22620
a90ef4bf
JM
22621.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
22622maybe-configure-stage1-libiberty:
22623@if libiberty-bootstrap
22624maybe-configure-stage1-libiberty: configure-stage1-libiberty
22625configure-stage1-libiberty:
93f9b408 22626 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 22627 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22628 @r=`${PWD_COMMAND}`; export r; \
22629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22630 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 22631 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
1b05fbbd 22632 $(HOST_EXPORTS) \
93f9b408 22633 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22634 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
22635 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
22636 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty; \
22637 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22638 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22639 case $(srcdir) in \
22640 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22641 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22642 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22643 esac; \
1b6c0831
L
22644 module_srcdir=libiberty; \
22645 $(SHELL) $$s/$$module_srcdir/configure \
22646 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22647 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
22648 --target=${target_alias} \
22649 \
a90ef4bf
JM
22650 $(STAGE1_CONFIGURE_FLAGS) \
22651 @extra_host_libiberty_configure_flags@
22652@endif libiberty-bootstrap
93f9b408 22653
a90ef4bf
JM
22654.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
22655maybe-configure-stage2-libiberty:
22656@if libiberty-bootstrap
22657maybe-configure-stage2-libiberty: configure-stage2-libiberty
22658configure-stage2-libiberty:
93f9b408 22659 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 22660 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22661 @r=`${PWD_COMMAND}`; export r; \
22662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22663 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 22664 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22665 $(HOST_EXPORTS) \
1b05fbbd 22666 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22667 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22668 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
22669 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22670 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty; \
22671 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22672 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22673 case $(srcdir) in \
22674 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22675 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22676 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22677 esac; \
1b6c0831
L
22678 module_srcdir=libiberty; \
22679 $(SHELL) $$s/$$module_srcdir/configure \
22680 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22681 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22682 --target=${target_alias} \
22121df0 22683 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22684 $(STAGE2_CONFIGURE_FLAGS) \
22685 @extra_host_libiberty_configure_flags@
22686@endif libiberty-bootstrap
93f9b408 22687
a90ef4bf
JM
22688.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
22689maybe-configure-stage3-libiberty:
22690@if libiberty-bootstrap
22691maybe-configure-stage3-libiberty: configure-stage3-libiberty
22692configure-stage3-libiberty:
93f9b408 22693 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 22694 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22695 @r=`${PWD_COMMAND}`; export r; \
22696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22697 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 22698 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22699 $(HOST_EXPORTS) \
1b05fbbd 22700 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22701 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22702 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
22703 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22704 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty; \
22705 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22706 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22707 case $(srcdir) in \
22708 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22709 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22710 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22711 esac; \
1b6c0831
L
22712 module_srcdir=libiberty; \
22713 $(SHELL) $$s/$$module_srcdir/configure \
22714 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22715 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22716 --target=${target_alias} \
22121df0 22717 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22718 $(STAGE3_CONFIGURE_FLAGS) \
22719 @extra_host_libiberty_configure_flags@
22720@endif libiberty-bootstrap
93f9b408 22721
a90ef4bf
JM
22722.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
22723maybe-configure-stage4-libiberty:
22724@if libiberty-bootstrap
22725maybe-configure-stage4-libiberty: configure-stage4-libiberty
22726configure-stage4-libiberty:
93f9b408 22727 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 22728 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22729 @r=`${PWD_COMMAND}`; export r; \
22730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22731 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 22732 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22733 $(HOST_EXPORTS) \
1b05fbbd 22734 $(POSTSTAGE1_HOST_EXPORTS) \
93f9b408 22735 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22736 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
22737 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22738 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty; \
22739 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22740 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22741 case $(srcdir) in \
22742 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22743 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22744 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22745 esac; \
1b6c0831
L
22746 module_srcdir=libiberty; \
22747 $(SHELL) $$s/$$module_srcdir/configure \
22748 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22749 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22750 --target=${target_alias} \
22121df0 22751 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22752 $(STAGE4_CONFIGURE_FLAGS) \
22753 @extra_host_libiberty_configure_flags@
22754@endif libiberty-bootstrap
93f9b408 22755
a90ef4bf
JM
22756.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
22757maybe-configure-stageprofile-libiberty:
22758@if libiberty-bootstrap
22759maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
22760configure-stageprofile-libiberty:
93f9b408 22761 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 22762 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22763 @r=`${PWD_COMMAND}`; export r; \
22764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22765 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 22766 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22767 $(HOST_EXPORTS) \
1b05fbbd
AO
22768 $(POSTSTAGE1_HOST_EXPORTS) \
22769 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22770 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
22771 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22772 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty; \
22773 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22774 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22775 case $(srcdir) in \
22776 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22777 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22778 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22779 esac; \
1b6c0831
L
22780 module_srcdir=libiberty; \
22781 $(SHELL) $$s/$$module_srcdir/configure \
22782 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22783 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22784 --target=${target_alias} \
22121df0 22785 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22786 $(STAGEprofile_CONFIGURE_FLAGS) \
22787 @extra_host_libiberty_configure_flags@
22788@endif libiberty-bootstrap
93f9b408 22789
a90ef4bf
JM
22790.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
22791maybe-configure-stagefeedback-libiberty:
22792@if libiberty-bootstrap
22793maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
22794configure-stagefeedback-libiberty:
93f9b408 22795 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 22796 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
93f9b408
ILT
22797 @r=`${PWD_COMMAND}`; export r; \
22798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22799 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 22800 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
93f9b408 22801 $(HOST_EXPORTS) \
1b05fbbd
AO
22802 $(POSTSTAGE1_HOST_EXPORTS) \
22803 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
22804 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
22805 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
22806 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty; \
22807 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty; \
a90ef4bf 22808 cd $(HOST_SUBDIR)/libiberty || exit 1; \
93f9b408
ILT
22809 case $(srcdir) in \
22810 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 22811 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
93f9b408
ILT
22812 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
22813 esac; \
1b6c0831
L
22814 module_srcdir=libiberty; \
22815 $(SHELL) $$s/$$module_srcdir/configure \
22816 --srcdir=$${topdir}/$$module_srcdir \
93f9b408 22817 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 22818 --target=${target_alias} \
22121df0 22819 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
22820 $(STAGEfeedback_CONFIGURE_FLAGS) \
22821 @extra_host_libiberty_configure_flags@
22822@endif libiberty-bootstrap
93f9b408
ILT
22823
22824
22825
22826
22827
a90ef4bf
JM
22828.PHONY: all-libiberty maybe-all-libiberty
22829maybe-all-libiberty:
93f9b408 22830@if gcc-bootstrap
a90ef4bf 22831all-libiberty: stage_current
93f9b408 22832@endif gcc-bootstrap
a90ef4bf
JM
22833@if libiberty
22834TARGET-libiberty=all
22835maybe-all-libiberty: all-libiberty
22836all-libiberty: configure-libiberty
93f9b408
ILT
22837 @r=`${PWD_COMMAND}`; export r; \
22838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 22839 $(HOST_EXPORTS) \
a90ef4bf 22840 (cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22841 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
22842 $(TARGET-libiberty))
22843@endif libiberty
93f9b408
ILT
22844
22845
22846
a90ef4bf
JM
22847.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
22848.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
22849maybe-all-stage1-libiberty:
22850maybe-clean-stage1-libiberty:
22851@if libiberty-bootstrap
22852maybe-all-stage1-libiberty: all-stage1-libiberty
22853all-stage1: all-stage1-libiberty
22854TARGET-stage1-libiberty = $(TARGET-libiberty)
22855all-stage1-libiberty: configure-stage1-libiberty
93f9b408
ILT
22856 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
22857 @r=`${PWD_COMMAND}`; export r; \
22858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22859 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 22860 $(HOST_EXPORTS) \
a90ef4bf 22861 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22862 \
93f9b408 22863 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22864 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 22865 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
22866 LIBCFLAGS="$(LIBCFLAGS)" \
22867 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22868 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22869 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
22870 $(EXTRA_HOST_FLAGS) \
22871 $(STAGE1_FLAGS_TO_PASS) \
05a13254 22872 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 22873 $(TARGET-stage1-libiberty)
93f9b408 22874
a90ef4bf
JM
22875maybe-clean-stage1-libiberty: clean-stage1-libiberty
22876clean-stage1: clean-stage1-libiberty
22877clean-stage1-libiberty:
93f9b408 22878 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 22879 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22880 else \
a90ef4bf 22881 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22882 $(MAKE) stage1-start; \
22883 fi; \
a90ef4bf 22884 cd $(HOST_SUBDIR)/libiberty && \
93f9b408 22885 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 22886 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22887@endif libiberty-bootstrap
93f9b408
ILT
22888
22889
a90ef4bf
JM
22890.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
22891.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
22892maybe-all-stage2-libiberty:
22893maybe-clean-stage2-libiberty:
22894@if libiberty-bootstrap
22895maybe-all-stage2-libiberty: all-stage2-libiberty
22896all-stage2: all-stage2-libiberty
22897TARGET-stage2-libiberty = $(TARGET-libiberty)
22898all-stage2-libiberty: configure-stage2-libiberty
93f9b408
ILT
22899 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
22900 @r=`${PWD_COMMAND}`; export r; \
22901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22902 TFLAGS="$(STAGE2_TFLAGS)"; \
93f9b408 22903 $(HOST_EXPORTS) \
1f53ca9a 22904 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22905 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22906 \
93f9b408 22907 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22908 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 22909 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
22910 LIBCFLAGS="$(STAGE2_CFLAGS)" \
22911 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22912 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22913 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22914 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22915 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 22916 $(TARGET-stage2-libiberty)
93f9b408 22917
a90ef4bf
JM
22918maybe-clean-stage2-libiberty: clean-stage2-libiberty
22919clean-stage2: clean-stage2-libiberty
22920clean-stage2-libiberty:
93f9b408 22921 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 22922 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22923 else \
a90ef4bf 22924 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22925 $(MAKE) stage2-start; \
22926 fi; \
a90ef4bf 22927 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22928 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22929@endif libiberty-bootstrap
93f9b408
ILT
22930
22931
a90ef4bf
JM
22932.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
22933.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
22934maybe-all-stage3-libiberty:
22935maybe-clean-stage3-libiberty:
22936@if libiberty-bootstrap
22937maybe-all-stage3-libiberty: all-stage3-libiberty
22938all-stage3: all-stage3-libiberty
22939TARGET-stage3-libiberty = $(TARGET-libiberty)
22940all-stage3-libiberty: configure-stage3-libiberty
93f9b408
ILT
22941 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
22942 @r=`${PWD_COMMAND}`; export r; \
22943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22944 TFLAGS="$(STAGE3_TFLAGS)"; \
93f9b408 22945 $(HOST_EXPORTS) \
1f53ca9a 22946 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22947 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22948 \
93f9b408 22949 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22950 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 22951 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
22952 LIBCFLAGS="$(STAGE3_CFLAGS)" \
22953 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22954 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22955 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22956 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22957 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 22958 $(TARGET-stage3-libiberty)
93f9b408 22959
a90ef4bf
JM
22960maybe-clean-stage3-libiberty: clean-stage3-libiberty
22961clean-stage3: clean-stage3-libiberty
22962clean-stage3-libiberty:
93f9b408 22963 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 22964 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 22965 else \
a90ef4bf 22966 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
22967 $(MAKE) stage3-start; \
22968 fi; \
a90ef4bf 22969 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 22970 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 22971@endif libiberty-bootstrap
93f9b408
ILT
22972
22973
a90ef4bf
JM
22974.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
22975.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
22976maybe-all-stage4-libiberty:
22977maybe-clean-stage4-libiberty:
22978@if libiberty-bootstrap
22979maybe-all-stage4-libiberty: all-stage4-libiberty
22980all-stage4: all-stage4-libiberty
22981TARGET-stage4-libiberty = $(TARGET-libiberty)
22982all-stage4-libiberty: configure-stage4-libiberty
93f9b408
ILT
22983 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
22984 @r=`${PWD_COMMAND}`; export r; \
22985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 22986 TFLAGS="$(STAGE4_TFLAGS)"; \
93f9b408 22987 $(HOST_EXPORTS) \
1f53ca9a 22988 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 22989 cd $(HOST_SUBDIR)/libiberty && \
05a13254 22990 \
93f9b408 22991 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 22992 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 22993 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
93f9b408 22994 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
22995 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
22996 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
22997 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
22998 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 22999 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 23000 $(TARGET-stage4-libiberty)
93f9b408 23001
a90ef4bf
JM
23002maybe-clean-stage4-libiberty: clean-stage4-libiberty
23003clean-stage4: clean-stage4-libiberty
23004clean-stage4-libiberty:
93f9b408 23005 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 23006 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 23007 else \
a90ef4bf 23008 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23009 $(MAKE) stage4-start; \
23010 fi; \
a90ef4bf 23011 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 23012 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 23013@endif libiberty-bootstrap
93f9b408
ILT
23014
23015
a90ef4bf
JM
23016.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
23017.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
23018maybe-all-stageprofile-libiberty:
23019maybe-clean-stageprofile-libiberty:
23020@if libiberty-bootstrap
23021maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
23022all-stageprofile: all-stageprofile-libiberty
23023TARGET-stageprofile-libiberty = $(TARGET-libiberty)
23024all-stageprofile-libiberty: configure-stageprofile-libiberty
93f9b408
ILT
23025 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23026 @r=`${PWD_COMMAND}`; export r; \
23027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 23028 TFLAGS="$(STAGEprofile_TFLAGS)"; \
93f9b408 23029 $(HOST_EXPORTS) \
1f53ca9a 23030 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 23031 cd $(HOST_SUBDIR)/libiberty && \
05a13254 23032 \
93f9b408 23033 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 23034 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 23035 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
23036 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23037 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23038 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23039 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23040 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 23041 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 23042 $(TARGET-stageprofile-libiberty)
93f9b408 23043
a90ef4bf
JM
23044maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
23045clean-stageprofile: clean-stageprofile-libiberty
23046clean-stageprofile-libiberty:
93f9b408 23047 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 23048 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 23049 else \
a90ef4bf 23050 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23051 $(MAKE) stageprofile-start; \
23052 fi; \
a90ef4bf 23053 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 23054 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 23055@endif libiberty-bootstrap
93f9b408
ILT
23056
23057
a90ef4bf
JM
23058.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
23059.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
23060maybe-all-stagefeedback-libiberty:
23061maybe-clean-stagefeedback-libiberty:
23062@if libiberty-bootstrap
23063maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
23064all-stagefeedback: all-stagefeedback-libiberty
23065TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
23066all-stagefeedback-libiberty: configure-stagefeedback-libiberty
93f9b408
ILT
23067 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23068 @r=`${PWD_COMMAND}`; export r; \
23069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 23070 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
93f9b408 23071 $(HOST_EXPORTS) \
1f53ca9a 23072 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 23073 cd $(HOST_SUBDIR)/libiberty && \
05a13254 23074 \
93f9b408 23075 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 23076 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 23077 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
23078 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23079 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23080 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23081 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23082 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 23083 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 23084 $(TARGET-stagefeedback-libiberty)
93f9b408 23085
a90ef4bf
JM
23086maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
23087clean-stagefeedback: clean-stagefeedback-libiberty
23088clean-stagefeedback-libiberty:
93f9b408 23089 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 23090 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
93f9b408 23091 else \
a90ef4bf 23092 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23093 $(MAKE) stagefeedback-start; \
23094 fi; \
a90ef4bf 23095 cd $(HOST_SUBDIR)/libiberty && \
b3676d82 23096 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 23097@endif libiberty-bootstrap
93f9b408
ILT
23098
23099
23100
23101
23102
a90ef4bf
JM
23103.PHONY: check-libiberty maybe-check-libiberty
23104maybe-check-libiberty:
23105@if libiberty
23106maybe-check-libiberty: check-libiberty
93f9b408 23107
a90ef4bf 23108check-libiberty:
93f9b408
ILT
23109 @: $(MAKE); $(unstage)
23110 @r=`${PWD_COMMAND}`; export r; \
23111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23112 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 23113 (cd $(HOST_SUBDIR)/libiberty && \
f91ca6bc 23114 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
93f9b408 23115
a90ef4bf 23116@endif libiberty
93f9b408 23117
a90ef4bf
JM
23118.PHONY: install-libiberty maybe-install-libiberty
23119maybe-install-libiberty:
23120@if libiberty
23121maybe-install-libiberty: install-libiberty
93f9b408 23122
a90ef4bf 23123install-libiberty: installdirs
93f9b408
ILT
23124 @: $(MAKE); $(unstage)
23125 @r=`${PWD_COMMAND}`; export r; \
23126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23127 $(HOST_EXPORTS) \
a90ef4bf 23128 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23129 $(MAKE) $(FLAGS_TO_PASS) install)
23130
a90ef4bf 23131@endif libiberty
93f9b408 23132
a90ef4bf
JM
23133.PHONY: install-strip-libiberty maybe-install-strip-libiberty
23134maybe-install-strip-libiberty:
23135@if libiberty
23136maybe-install-strip-libiberty: install-strip-libiberty
9b980aa1 23137
a90ef4bf 23138install-strip-libiberty: installdirs
9b980aa1
RW
23139 @: $(MAKE); $(unstage)
23140 @r=`${PWD_COMMAND}`; export r; \
23141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23142 $(HOST_EXPORTS) \
a90ef4bf 23143 (cd $(HOST_SUBDIR)/libiberty && \
9b980aa1
RW
23144 $(MAKE) $(FLAGS_TO_PASS) install-strip)
23145
a90ef4bf 23146@endif libiberty
9b980aa1 23147
93f9b408
ILT
23148# Other targets (info, dvi, pdf, etc.)
23149
a90ef4bf
JM
23150.PHONY: maybe-info-libiberty info-libiberty
23151maybe-info-libiberty:
23152@if libiberty
23153maybe-info-libiberty: info-libiberty
93f9b408 23154
a90ef4bf
JM
23155info-libiberty: \
23156 configure-libiberty
23157 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23158 r=`${PWD_COMMAND}`; export r; \
23159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23160 $(HOST_EXPORTS) \
23161 for flag in $(EXTRA_HOST_FLAGS) ; do \
23162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23163 done; \
22121df0 23164 echo "Doing info in libiberty"; \
a90ef4bf 23165 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23168 "RANLIB=$${RANLIB}" \
23169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23170 info) \
23171 || exit 1
23172
a90ef4bf 23173@endif libiberty
93f9b408 23174
a90ef4bf
JM
23175.PHONY: maybe-dvi-libiberty dvi-libiberty
23176maybe-dvi-libiberty:
23177@if libiberty
23178maybe-dvi-libiberty: dvi-libiberty
93f9b408 23179
a90ef4bf
JM
23180dvi-libiberty: \
23181 configure-libiberty
23182 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23183 r=`${PWD_COMMAND}`; export r; \
23184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23185 $(HOST_EXPORTS) \
23186 for flag in $(EXTRA_HOST_FLAGS) ; do \
23187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23188 done; \
22121df0 23189 echo "Doing dvi in libiberty"; \
a90ef4bf 23190 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23193 "RANLIB=$${RANLIB}" \
23194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23195 dvi) \
23196 || exit 1
23197
a90ef4bf 23198@endif libiberty
93f9b408 23199
a90ef4bf
JM
23200.PHONY: maybe-pdf-libiberty pdf-libiberty
23201maybe-pdf-libiberty:
23202@if libiberty
23203maybe-pdf-libiberty: pdf-libiberty
93f9b408 23204
a90ef4bf
JM
23205pdf-libiberty: \
23206 configure-libiberty
23207 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23208 r=`${PWD_COMMAND}`; export r; \
23209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23210 $(HOST_EXPORTS) \
23211 for flag in $(EXTRA_HOST_FLAGS) ; do \
23212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23213 done; \
22121df0 23214 echo "Doing pdf in libiberty"; \
a90ef4bf 23215 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23218 "RANLIB=$${RANLIB}" \
23219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23220 pdf) \
23221 || exit 1
23222
a90ef4bf 23223@endif libiberty
93f9b408 23224
a90ef4bf
JM
23225.PHONY: maybe-html-libiberty html-libiberty
23226maybe-html-libiberty:
23227@if libiberty
23228maybe-html-libiberty: html-libiberty
93f9b408 23229
a90ef4bf
JM
23230html-libiberty: \
23231 configure-libiberty
23232 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23233 r=`${PWD_COMMAND}`; export r; \
23234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23235 $(HOST_EXPORTS) \
23236 for flag in $(EXTRA_HOST_FLAGS) ; do \
23237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23238 done; \
22121df0 23239 echo "Doing html in libiberty"; \
a90ef4bf 23240 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23243 "RANLIB=$${RANLIB}" \
23244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23245 html) \
23246 || exit 1
23247
a90ef4bf 23248@endif libiberty
93f9b408 23249
a90ef4bf
JM
23250.PHONY: maybe-TAGS-libiberty TAGS-libiberty
23251maybe-TAGS-libiberty:
23252@if libiberty
23253maybe-TAGS-libiberty: TAGS-libiberty
93f9b408 23254
a90ef4bf
JM
23255TAGS-libiberty: \
23256 configure-libiberty
23257 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23258 r=`${PWD_COMMAND}`; export r; \
23259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23260 $(HOST_EXPORTS) \
23261 for flag in $(EXTRA_HOST_FLAGS) ; do \
23262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23263 done; \
22121df0 23264 echo "Doing TAGS in libiberty"; \
a90ef4bf 23265 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23268 "RANLIB=$${RANLIB}" \
23269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23270 TAGS) \
23271 || exit 1
23272
a90ef4bf 23273@endif libiberty
93f9b408 23274
a90ef4bf
JM
23275.PHONY: maybe-install-info-libiberty install-info-libiberty
23276maybe-install-info-libiberty:
23277@if libiberty
23278maybe-install-info-libiberty: install-info-libiberty
93f9b408 23279
a90ef4bf
JM
23280install-info-libiberty: \
23281 configure-libiberty \
23282 info-libiberty
23283 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23284 r=`${PWD_COMMAND}`; export r; \
23285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23286 $(HOST_EXPORTS) \
23287 for flag in $(EXTRA_HOST_FLAGS) ; do \
23288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23289 done; \
22121df0 23290 echo "Doing install-info in libiberty"; \
a90ef4bf 23291 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23294 "RANLIB=$${RANLIB}" \
23295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23296 install-info) \
23297 || exit 1
23298
a90ef4bf 23299@endif libiberty
93f9b408 23300
a90ef4bf
JM
23301.PHONY: maybe-install-pdf-libiberty install-pdf-libiberty
23302maybe-install-pdf-libiberty:
23303@if libiberty
23304maybe-install-pdf-libiberty: install-pdf-libiberty
93f9b408 23305
a90ef4bf
JM
23306install-pdf-libiberty: \
23307 configure-libiberty \
23308 pdf-libiberty
23309 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23310 r=`${PWD_COMMAND}`; export r; \
23311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23312 $(HOST_EXPORTS) \
23313 for flag in $(EXTRA_HOST_FLAGS) ; do \
23314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23315 done; \
22121df0 23316 echo "Doing install-pdf in libiberty"; \
a90ef4bf 23317 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23320 "RANLIB=$${RANLIB}" \
23321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23322 install-pdf) \
23323 || exit 1
23324
a90ef4bf 23325@endif libiberty
93f9b408 23326
a90ef4bf
JM
23327.PHONY: maybe-install-html-libiberty install-html-libiberty
23328maybe-install-html-libiberty:
23329@if libiberty
23330maybe-install-html-libiberty: install-html-libiberty
93f9b408 23331
a90ef4bf
JM
23332install-html-libiberty: \
23333 configure-libiberty \
23334 html-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 install-html 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 install-html) \
23349 || exit 1
23350
a90ef4bf 23351@endif libiberty
93f9b408 23352
a90ef4bf
JM
23353.PHONY: maybe-installcheck-libiberty installcheck-libiberty
23354maybe-installcheck-libiberty:
23355@if libiberty
23356maybe-installcheck-libiberty: installcheck-libiberty
93f9b408 23357
a90ef4bf
JM
23358installcheck-libiberty: \
23359 configure-libiberty
23360 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23361 r=`${PWD_COMMAND}`; export r; \
23362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23363 $(HOST_EXPORTS) \
23364 for flag in $(EXTRA_HOST_FLAGS) ; do \
23365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23366 done; \
22121df0 23367 echo "Doing installcheck in libiberty"; \
a90ef4bf 23368 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23371 "RANLIB=$${RANLIB}" \
23372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23373 installcheck) \
23374 || exit 1
23375
a90ef4bf 23376@endif libiberty
93f9b408 23377
a90ef4bf
JM
23378.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
23379maybe-mostlyclean-libiberty:
23380@if libiberty
23381maybe-mostlyclean-libiberty: mostlyclean-libiberty
93f9b408 23382
a90ef4bf
JM
23383mostlyclean-libiberty:
23384 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23385 r=`${PWD_COMMAND}`; export r; \
23386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23387 $(HOST_EXPORTS) \
23388 for flag in $(EXTRA_HOST_FLAGS) ; do \
23389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23390 done; \
22121df0 23391 echo "Doing mostlyclean in libiberty"; \
a90ef4bf 23392 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23395 "RANLIB=$${RANLIB}" \
23396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23397 mostlyclean) \
23398 || exit 1
23399
a90ef4bf 23400@endif libiberty
93f9b408 23401
a90ef4bf
JM
23402.PHONY: maybe-clean-libiberty clean-libiberty
23403maybe-clean-libiberty:
23404@if libiberty
23405maybe-clean-libiberty: clean-libiberty
93f9b408 23406
a90ef4bf
JM
23407clean-libiberty:
23408 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23409 r=`${PWD_COMMAND}`; export r; \
23410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23411 $(HOST_EXPORTS) \
23412 for flag in $(EXTRA_HOST_FLAGS) ; do \
23413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23414 done; \
22121df0 23415 echo "Doing clean in libiberty"; \
a90ef4bf 23416 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23419 "RANLIB=$${RANLIB}" \
23420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23421 clean) \
23422 || exit 1
23423
a90ef4bf 23424@endif libiberty
93f9b408 23425
a90ef4bf
JM
23426.PHONY: maybe-distclean-libiberty distclean-libiberty
23427maybe-distclean-libiberty:
23428@if libiberty
23429maybe-distclean-libiberty: distclean-libiberty
93f9b408 23430
a90ef4bf
JM
23431distclean-libiberty:
23432 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23433 r=`${PWD_COMMAND}`; export r; \
23434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23435 $(HOST_EXPORTS) \
23436 for flag in $(EXTRA_HOST_FLAGS) ; do \
23437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23438 done; \
22121df0 23439 echo "Doing distclean in libiberty"; \
a90ef4bf 23440 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23443 "RANLIB=$${RANLIB}" \
23444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23445 distclean) \
23446 || exit 1
23447
a90ef4bf 23448@endif libiberty
93f9b408 23449
a90ef4bf
JM
23450.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
23451maybe-maintainer-clean-libiberty:
23452@if libiberty
23453maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
93f9b408 23454
a90ef4bf
JM
23455maintainer-clean-libiberty:
23456 @[ -f ./libiberty/Makefile ] || exit 0; \
93f9b408
ILT
23457 r=`${PWD_COMMAND}`; export r; \
23458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23459 $(HOST_EXPORTS) \
23460 for flag in $(EXTRA_HOST_FLAGS) ; do \
23461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23462 done; \
22121df0 23463 echo "Doing maintainer-clean in libiberty"; \
a90ef4bf 23464 (cd $(HOST_SUBDIR)/libiberty && \
93f9b408
ILT
23465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23467 "RANLIB=$${RANLIB}" \
23468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
23469 maintainer-clean) \
23470 || exit 1
23471
a90ef4bf 23472@endif libiberty
93f9b408
ILT
23473
23474
23475
1b6c0831
L
23476.PHONY: configure-libiberty-linker-plugin maybe-configure-libiberty-linker-plugin
23477maybe-configure-libiberty-linker-plugin:
23478@if gcc-bootstrap
23479configure-libiberty-linker-plugin: stage_current
23480@endif gcc-bootstrap
23481@if libiberty-linker-plugin
23482maybe-configure-libiberty-linker-plugin: configure-libiberty-linker-plugin
23483configure-libiberty-linker-plugin:
23484 @r=`${PWD_COMMAND}`; export r; \
23485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23486 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
22121df0 23487 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23488 $(HOST_EXPORTS) \
23489 echo Configuring in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23490 cd "$(HOST_SUBDIR)/libiberty-linker-plugin" || exit 1; \
23491 case $(srcdir) in \
23492 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23493 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23494 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23495 esac; \
23496 module_srcdir=libiberty; \
23497 $(SHELL) \
23498 $$s/$$module_srcdir/configure \
23499 --srcdir=$${topdir}/$$module_srcdir \
23500 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23501 --target=${target_alias} @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
23502 || exit 1
23503@endif libiberty-linker-plugin
23504
23505
23506
23507.PHONY: configure-stage1-libiberty-linker-plugin maybe-configure-stage1-libiberty-linker-plugin
23508maybe-configure-stage1-libiberty-linker-plugin:
23509@if libiberty-linker-plugin-bootstrap
23510maybe-configure-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23511configure-stage1-libiberty-linker-plugin:
23512 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23513 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23514 @r=`${PWD_COMMAND}`; export r; \
23515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23516 TFLAGS="$(STAGE1_TFLAGS)"; \
23517 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23518 $(HOST_EXPORTS) \
23519 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
23520 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
23521 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
23522 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23523 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23524 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23525 case $(srcdir) in \
23526 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23527 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23528 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23529 esac; \
23530 module_srcdir=libiberty; \
23531 $(SHELL) $$s/$$module_srcdir/configure \
23532 --srcdir=$${topdir}/$$module_srcdir \
23533 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23534 --target=${target_alias} \
23535 \
23536 $(STAGE1_CONFIGURE_FLAGS) \
23537 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23538@endif libiberty-linker-plugin-bootstrap
23539
23540.PHONY: configure-stage2-libiberty-linker-plugin maybe-configure-stage2-libiberty-linker-plugin
23541maybe-configure-stage2-libiberty-linker-plugin:
23542@if libiberty-linker-plugin-bootstrap
23543maybe-configure-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23544configure-stage2-libiberty-linker-plugin:
23545 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23546 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23547 @r=`${PWD_COMMAND}`; export r; \
23548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23549 TFLAGS="$(STAGE2_TFLAGS)"; \
23550 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23551 $(HOST_EXPORTS) \
23552 $(POSTSTAGE1_HOST_EXPORTS) \
23553 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
23554 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
23555 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23556 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23557 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23558 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23559 case $(srcdir) in \
23560 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23561 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23562 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23563 esac; \
23564 module_srcdir=libiberty; \
23565 $(SHELL) $$s/$$module_srcdir/configure \
23566 --srcdir=$${topdir}/$$module_srcdir \
23567 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23568 --target=${target_alias} \
22121df0 23569 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23570 $(STAGE2_CONFIGURE_FLAGS) \
23571 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23572@endif libiberty-linker-plugin-bootstrap
23573
23574.PHONY: configure-stage3-libiberty-linker-plugin maybe-configure-stage3-libiberty-linker-plugin
23575maybe-configure-stage3-libiberty-linker-plugin:
23576@if libiberty-linker-plugin-bootstrap
23577maybe-configure-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23578configure-stage3-libiberty-linker-plugin:
23579 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23580 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23581 @r=`${PWD_COMMAND}`; export r; \
23582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23583 TFLAGS="$(STAGE3_TFLAGS)"; \
23584 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23585 $(HOST_EXPORTS) \
23586 $(POSTSTAGE1_HOST_EXPORTS) \
23587 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
23588 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
23589 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23590 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23591 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23592 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23593 case $(srcdir) in \
23594 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23595 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23596 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23597 esac; \
23598 module_srcdir=libiberty; \
23599 $(SHELL) $$s/$$module_srcdir/configure \
23600 --srcdir=$${topdir}/$$module_srcdir \
23601 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23602 --target=${target_alias} \
22121df0 23603 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23604 $(STAGE3_CONFIGURE_FLAGS) \
23605 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23606@endif libiberty-linker-plugin-bootstrap
23607
23608.PHONY: configure-stage4-libiberty-linker-plugin maybe-configure-stage4-libiberty-linker-plugin
23609maybe-configure-stage4-libiberty-linker-plugin:
23610@if libiberty-linker-plugin-bootstrap
23611maybe-configure-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23612configure-stage4-libiberty-linker-plugin:
23613 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23614 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23615 @r=`${PWD_COMMAND}`; export r; \
23616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23617 TFLAGS="$(STAGE4_TFLAGS)"; \
23618 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23619 $(HOST_EXPORTS) \
23620 $(POSTSTAGE1_HOST_EXPORTS) \
23621 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
23622 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
23623 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23624 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23625 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23626 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23627 case $(srcdir) in \
23628 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23629 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23630 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23631 esac; \
23632 module_srcdir=libiberty; \
23633 $(SHELL) $$s/$$module_srcdir/configure \
23634 --srcdir=$${topdir}/$$module_srcdir \
23635 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23636 --target=${target_alias} \
22121df0 23637 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23638 $(STAGE4_CONFIGURE_FLAGS) \
23639 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23640@endif libiberty-linker-plugin-bootstrap
23641
23642.PHONY: configure-stageprofile-libiberty-linker-plugin maybe-configure-stageprofile-libiberty-linker-plugin
23643maybe-configure-stageprofile-libiberty-linker-plugin:
23644@if libiberty-linker-plugin-bootstrap
23645maybe-configure-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23646configure-stageprofile-libiberty-linker-plugin:
23647 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23648 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23649 @r=`${PWD_COMMAND}`; export r; \
23650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23651 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23652 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23653 $(HOST_EXPORTS) \
23654 $(POSTSTAGE1_HOST_EXPORTS) \
23655 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
23656 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
23657 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23658 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23659 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23660 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23661 case $(srcdir) in \
23662 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23663 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23664 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23665 esac; \
23666 module_srcdir=libiberty; \
23667 $(SHELL) $$s/$$module_srcdir/configure \
23668 --srcdir=$${topdir}/$$module_srcdir \
23669 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23670 --target=${target_alias} \
22121df0 23671 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23672 $(STAGEprofile_CONFIGURE_FLAGS) \
23673 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23674@endif libiberty-linker-plugin-bootstrap
23675
23676.PHONY: configure-stagefeedback-libiberty-linker-plugin maybe-configure-stagefeedback-libiberty-linker-plugin
23677maybe-configure-stagefeedback-libiberty-linker-plugin:
23678@if libiberty-linker-plugin-bootstrap
23679maybe-configure-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23680configure-stagefeedback-libiberty-linker-plugin:
23681 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23682 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin
23683 @r=`${PWD_COMMAND}`; export r; \
23684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23685 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23686 test ! -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile || exit 0; \
23687 $(HOST_EXPORTS) \
23688 $(POSTSTAGE1_HOST_EXPORTS) \
23689 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
23690 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
23691 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
23692 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty-linker-plugin; \
23693 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty-linker-plugin; \
1b6c0831
L
23694 cd $(HOST_SUBDIR)/libiberty-linker-plugin || exit 1; \
23695 case $(srcdir) in \
23696 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23697 *) topdir=`echo $(HOST_SUBDIR)/libiberty-linker-plugin/ | \
23698 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23699 esac; \
23700 module_srcdir=libiberty; \
23701 $(SHELL) $$s/$$module_srcdir/configure \
23702 --srcdir=$${topdir}/$$module_srcdir \
23703 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
23704 --target=${target_alias} \
22121df0 23705 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
23706 $(STAGEfeedback_CONFIGURE_FLAGS) \
23707 @extra_host_libiberty_configure_flags@ --disable-install-libiberty @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
23708@endif libiberty-linker-plugin-bootstrap
23709
23710
23711
23712
23713
23714.PHONY: all-libiberty-linker-plugin maybe-all-libiberty-linker-plugin
23715maybe-all-libiberty-linker-plugin:
23716@if gcc-bootstrap
23717all-libiberty-linker-plugin: stage_current
23718@endif gcc-bootstrap
23719@if libiberty-linker-plugin
23720TARGET-libiberty-linker-plugin=all
23721maybe-all-libiberty-linker-plugin: all-libiberty-linker-plugin
23722all-libiberty-linker-plugin: configure-libiberty-linker-plugin
23723 @r=`${PWD_COMMAND}`; export r; \
23724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23725 $(HOST_EXPORTS) \
23726 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23727 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
23728 $(TARGET-libiberty-linker-plugin))
23729@endif libiberty-linker-plugin
23730
23731
23732
23733.PHONY: all-stage1-libiberty-linker-plugin maybe-all-stage1-libiberty-linker-plugin
23734.PHONY: clean-stage1-libiberty-linker-plugin maybe-clean-stage1-libiberty-linker-plugin
23735maybe-all-stage1-libiberty-linker-plugin:
23736maybe-clean-stage1-libiberty-linker-plugin:
23737@if libiberty-linker-plugin-bootstrap
23738maybe-all-stage1-libiberty-linker-plugin: all-stage1-libiberty-linker-plugin
23739all-stage1: all-stage1-libiberty-linker-plugin
23740TARGET-stage1-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23741all-stage1-libiberty-linker-plugin: configure-stage1-libiberty-linker-plugin
23742 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
23743 @r=`${PWD_COMMAND}`; export r; \
23744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23745 TFLAGS="$(STAGE1_TFLAGS)"; \
23746 $(HOST_EXPORTS) \
23747 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23748 \
1b6c0831
L
23749 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23750 CFLAGS="$(STAGE1_CFLAGS)" \
23751 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
23752 LIBCFLAGS="$(LIBCFLAGS)" \
23753 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23754 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23755 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23756 $(EXTRA_HOST_FLAGS) \
23757 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23758 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
23759 $(TARGET-stage1-libiberty-linker-plugin)
23760
23761maybe-clean-stage1-libiberty-linker-plugin: clean-stage1-libiberty-linker-plugin
23762clean-stage1: clean-stage1-libiberty-linker-plugin
23763clean-stage1-libiberty-linker-plugin:
23764 @if [ $(current_stage) = stage1 ]; then \
23765 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23766 else \
23767 [ -f $(HOST_SUBDIR)/stage1-libiberty-linker-plugin/Makefile ] || exit 0; \
23768 $(MAKE) stage1-start; \
23769 fi; \
23770 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23771 $(MAKE) $(EXTRA_HOST_FLAGS) \
23772 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23773@endif libiberty-linker-plugin-bootstrap
23774
23775
23776.PHONY: all-stage2-libiberty-linker-plugin maybe-all-stage2-libiberty-linker-plugin
23777.PHONY: clean-stage2-libiberty-linker-plugin maybe-clean-stage2-libiberty-linker-plugin
23778maybe-all-stage2-libiberty-linker-plugin:
23779maybe-clean-stage2-libiberty-linker-plugin:
23780@if libiberty-linker-plugin-bootstrap
23781maybe-all-stage2-libiberty-linker-plugin: all-stage2-libiberty-linker-plugin
23782all-stage2: all-stage2-libiberty-linker-plugin
23783TARGET-stage2-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23784all-stage2-libiberty-linker-plugin: configure-stage2-libiberty-linker-plugin
23785 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
23786 @r=`${PWD_COMMAND}`; export r; \
23787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23788 TFLAGS="$(STAGE2_TFLAGS)"; \
23789 $(HOST_EXPORTS) \
23790 $(POSTSTAGE1_HOST_EXPORTS) \
23791 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23792 \
1b6c0831
L
23793 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23794 CFLAGS="$(STAGE2_CFLAGS)" \
23795 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
23796 LIBCFLAGS="$(STAGE2_CFLAGS)" \
23797 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23798 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23799 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23800 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23801 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
23802 $(TARGET-stage2-libiberty-linker-plugin)
23803
23804maybe-clean-stage2-libiberty-linker-plugin: clean-stage2-libiberty-linker-plugin
23805clean-stage2: clean-stage2-libiberty-linker-plugin
23806clean-stage2-libiberty-linker-plugin:
23807 @if [ $(current_stage) = stage2 ]; then \
23808 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23809 else \
23810 [ -f $(HOST_SUBDIR)/stage2-libiberty-linker-plugin/Makefile ] || exit 0; \
23811 $(MAKE) stage2-start; \
23812 fi; \
23813 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23814 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23815@endif libiberty-linker-plugin-bootstrap
23816
23817
23818.PHONY: all-stage3-libiberty-linker-plugin maybe-all-stage3-libiberty-linker-plugin
23819.PHONY: clean-stage3-libiberty-linker-plugin maybe-clean-stage3-libiberty-linker-plugin
23820maybe-all-stage3-libiberty-linker-plugin:
23821maybe-clean-stage3-libiberty-linker-plugin:
23822@if libiberty-linker-plugin-bootstrap
23823maybe-all-stage3-libiberty-linker-plugin: all-stage3-libiberty-linker-plugin
23824all-stage3: all-stage3-libiberty-linker-plugin
23825TARGET-stage3-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23826all-stage3-libiberty-linker-plugin: configure-stage3-libiberty-linker-plugin
23827 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
23828 @r=`${PWD_COMMAND}`; export r; \
23829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23830 TFLAGS="$(STAGE3_TFLAGS)"; \
23831 $(HOST_EXPORTS) \
23832 $(POSTSTAGE1_HOST_EXPORTS) \
23833 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23834 \
1b6c0831
L
23835 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23836 CFLAGS="$(STAGE3_CFLAGS)" \
23837 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
23838 LIBCFLAGS="$(STAGE3_CFLAGS)" \
23839 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23840 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23841 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23842 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23843 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
23844 $(TARGET-stage3-libiberty-linker-plugin)
23845
23846maybe-clean-stage3-libiberty-linker-plugin: clean-stage3-libiberty-linker-plugin
23847clean-stage3: clean-stage3-libiberty-linker-plugin
23848clean-stage3-libiberty-linker-plugin:
23849 @if [ $(current_stage) = stage3 ]; then \
23850 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23851 else \
23852 [ -f $(HOST_SUBDIR)/stage3-libiberty-linker-plugin/Makefile ] || exit 0; \
23853 $(MAKE) stage3-start; \
23854 fi; \
23855 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23856 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23857@endif libiberty-linker-plugin-bootstrap
23858
23859
23860.PHONY: all-stage4-libiberty-linker-plugin maybe-all-stage4-libiberty-linker-plugin
23861.PHONY: clean-stage4-libiberty-linker-plugin maybe-clean-stage4-libiberty-linker-plugin
23862maybe-all-stage4-libiberty-linker-plugin:
23863maybe-clean-stage4-libiberty-linker-plugin:
23864@if libiberty-linker-plugin-bootstrap
23865maybe-all-stage4-libiberty-linker-plugin: all-stage4-libiberty-linker-plugin
23866all-stage4: all-stage4-libiberty-linker-plugin
23867TARGET-stage4-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23868all-stage4-libiberty-linker-plugin: configure-stage4-libiberty-linker-plugin
23869 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
23870 @r=`${PWD_COMMAND}`; export r; \
23871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23872 TFLAGS="$(STAGE4_TFLAGS)"; \
23873 $(HOST_EXPORTS) \
23874 $(POSTSTAGE1_HOST_EXPORTS) \
23875 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23876 \
1b6c0831
L
23877 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23878 CFLAGS="$(STAGE4_CFLAGS)" \
23879 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
23880 LIBCFLAGS="$(STAGE4_CFLAGS)" \
23881 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23882 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23883 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23884 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23885 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
23886 $(TARGET-stage4-libiberty-linker-plugin)
23887
23888maybe-clean-stage4-libiberty-linker-plugin: clean-stage4-libiberty-linker-plugin
23889clean-stage4: clean-stage4-libiberty-linker-plugin
23890clean-stage4-libiberty-linker-plugin:
23891 @if [ $(current_stage) = stage4 ]; then \
23892 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23893 else \
23894 [ -f $(HOST_SUBDIR)/stage4-libiberty-linker-plugin/Makefile ] || exit 0; \
23895 $(MAKE) stage4-start; \
23896 fi; \
23897 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23898 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23899@endif libiberty-linker-plugin-bootstrap
23900
23901
23902.PHONY: all-stageprofile-libiberty-linker-plugin maybe-all-stageprofile-libiberty-linker-plugin
23903.PHONY: clean-stageprofile-libiberty-linker-plugin maybe-clean-stageprofile-libiberty-linker-plugin
23904maybe-all-stageprofile-libiberty-linker-plugin:
23905maybe-clean-stageprofile-libiberty-linker-plugin:
23906@if libiberty-linker-plugin-bootstrap
23907maybe-all-stageprofile-libiberty-linker-plugin: all-stageprofile-libiberty-linker-plugin
23908all-stageprofile: all-stageprofile-libiberty-linker-plugin
23909TARGET-stageprofile-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23910all-stageprofile-libiberty-linker-plugin: configure-stageprofile-libiberty-linker-plugin
23911 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
23912 @r=`${PWD_COMMAND}`; export r; \
23913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23914 TFLAGS="$(STAGEprofile_TFLAGS)"; \
23915 $(HOST_EXPORTS) \
23916 $(POSTSTAGE1_HOST_EXPORTS) \
23917 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23918 \
1b6c0831
L
23919 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23920 CFLAGS="$(STAGEprofile_CFLAGS)" \
23921 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
23922 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
23923 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23924 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23925 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23926 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23927 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
23928 $(TARGET-stageprofile-libiberty-linker-plugin)
23929
23930maybe-clean-stageprofile-libiberty-linker-plugin: clean-stageprofile-libiberty-linker-plugin
23931clean-stageprofile: clean-stageprofile-libiberty-linker-plugin
23932clean-stageprofile-libiberty-linker-plugin:
23933 @if [ $(current_stage) = stageprofile ]; then \
23934 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23935 else \
23936 [ -f $(HOST_SUBDIR)/stageprofile-libiberty-linker-plugin/Makefile ] || exit 0; \
23937 $(MAKE) stageprofile-start; \
23938 fi; \
23939 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23940 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23941@endif libiberty-linker-plugin-bootstrap
23942
23943
23944.PHONY: all-stagefeedback-libiberty-linker-plugin maybe-all-stagefeedback-libiberty-linker-plugin
23945.PHONY: clean-stagefeedback-libiberty-linker-plugin maybe-clean-stagefeedback-libiberty-linker-plugin
23946maybe-all-stagefeedback-libiberty-linker-plugin:
23947maybe-clean-stagefeedback-libiberty-linker-plugin:
23948@if libiberty-linker-plugin-bootstrap
23949maybe-all-stagefeedback-libiberty-linker-plugin: all-stagefeedback-libiberty-linker-plugin
23950all-stagefeedback: all-stagefeedback-libiberty-linker-plugin
23951TARGET-stagefeedback-libiberty-linker-plugin = $(TARGET-libiberty-linker-plugin)
23952all-stagefeedback-libiberty-linker-plugin: configure-stagefeedback-libiberty-linker-plugin
23953 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
23954 @r=`${PWD_COMMAND}`; export r; \
23955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23956 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
23957 $(HOST_EXPORTS) \
23958 $(POSTSTAGE1_HOST_EXPORTS) \
23959 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
05a13254 23960 \
1b6c0831
L
23961 $(MAKE) $(BASE_FLAGS_TO_PASS) \
23962 CFLAGS="$(STAGEfeedback_CFLAGS)" \
23963 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
23964 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
23965 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
23966 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
23967 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
23968 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 23969 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
23970 $(TARGET-stagefeedback-libiberty-linker-plugin)
23971
23972maybe-clean-stagefeedback-libiberty-linker-plugin: clean-stagefeedback-libiberty-linker-plugin
23973clean-stagefeedback: clean-stagefeedback-libiberty-linker-plugin
23974clean-stagefeedback-libiberty-linker-plugin:
23975 @if [ $(current_stage) = stagefeedback ]; then \
23976 [ -f $(HOST_SUBDIR)/libiberty-linker-plugin/Makefile ] || exit 0; \
23977 else \
23978 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty-linker-plugin/Makefile ] || exit 0; \
23979 $(MAKE) stagefeedback-start; \
23980 fi; \
23981 cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
23982 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
23983@endif libiberty-linker-plugin-bootstrap
23984
23985
23986
23987
23988
23989.PHONY: check-libiberty-linker-plugin maybe-check-libiberty-linker-plugin
23990maybe-check-libiberty-linker-plugin:
23991@if libiberty-linker-plugin
23992maybe-check-libiberty-linker-plugin: check-libiberty-linker-plugin
23993
23994check-libiberty-linker-plugin:
23995 @: $(MAKE); $(unstage)
23996 @r=`${PWD_COMMAND}`; export r; \
23997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 23998 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
1b6c0831 23999 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
f91ca6bc 24000 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
1b6c0831
L
24001
24002@endif libiberty-linker-plugin
24003
24004.PHONY: install-libiberty-linker-plugin maybe-install-libiberty-linker-plugin
24005maybe-install-libiberty-linker-plugin:
24006@if libiberty-linker-plugin
24007maybe-install-libiberty-linker-plugin: install-libiberty-linker-plugin
24008
24009install-libiberty-linker-plugin: installdirs
24010 @: $(MAKE); $(unstage)
24011 @r=`${PWD_COMMAND}`; export r; \
24012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24013 $(HOST_EXPORTS) \
24014 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24015 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
24016
24017@endif libiberty-linker-plugin
24018
24019.PHONY: install-strip-libiberty-linker-plugin maybe-install-strip-libiberty-linker-plugin
24020maybe-install-strip-libiberty-linker-plugin:
24021@if libiberty-linker-plugin
24022maybe-install-strip-libiberty-linker-plugin: install-strip-libiberty-linker-plugin
24023
24024install-strip-libiberty-linker-plugin: installdirs
24025 @: $(MAKE); $(unstage)
24026 @r=`${PWD_COMMAND}`; export r; \
24027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24028 $(HOST_EXPORTS) \
24029 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24030 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
24031
24032@endif libiberty-linker-plugin
24033
24034# Other targets (info, dvi, pdf, etc.)
24035
24036.PHONY: maybe-info-libiberty-linker-plugin info-libiberty-linker-plugin
24037maybe-info-libiberty-linker-plugin:
24038@if libiberty-linker-plugin
24039maybe-info-libiberty-linker-plugin: info-libiberty-linker-plugin
24040
24041info-libiberty-linker-plugin: \
24042 configure-libiberty-linker-plugin
24043 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24044 r=`${PWD_COMMAND}`; export r; \
24045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24046 $(HOST_EXPORTS) \
24047 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24049 done; \
22121df0 24050 echo "Doing info in libiberty-linker-plugin"; \
1b6c0831
L
24051 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24054 "RANLIB=$${RANLIB}" \
24055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24056 info) \
24057 || exit 1
24058
24059@endif libiberty-linker-plugin
24060
24061.PHONY: maybe-dvi-libiberty-linker-plugin dvi-libiberty-linker-plugin
24062maybe-dvi-libiberty-linker-plugin:
24063@if libiberty-linker-plugin
24064maybe-dvi-libiberty-linker-plugin: dvi-libiberty-linker-plugin
24065
24066dvi-libiberty-linker-plugin: \
24067 configure-libiberty-linker-plugin
24068 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24069 r=`${PWD_COMMAND}`; export r; \
24070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24071 $(HOST_EXPORTS) \
24072 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24074 done; \
22121df0 24075 echo "Doing dvi in libiberty-linker-plugin"; \
1b6c0831
L
24076 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24079 "RANLIB=$${RANLIB}" \
24080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24081 dvi) \
24082 || exit 1
24083
24084@endif libiberty-linker-plugin
24085
24086.PHONY: maybe-pdf-libiberty-linker-plugin pdf-libiberty-linker-plugin
24087maybe-pdf-libiberty-linker-plugin:
24088@if libiberty-linker-plugin
24089maybe-pdf-libiberty-linker-plugin: pdf-libiberty-linker-plugin
24090
24091pdf-libiberty-linker-plugin: \
24092 configure-libiberty-linker-plugin
24093 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24094 r=`${PWD_COMMAND}`; export r; \
24095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24096 $(HOST_EXPORTS) \
24097 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24099 done; \
22121df0 24100 echo "Doing pdf in libiberty-linker-plugin"; \
1b6c0831
L
24101 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24104 "RANLIB=$${RANLIB}" \
24105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24106 pdf) \
24107 || exit 1
24108
24109@endif libiberty-linker-plugin
24110
24111.PHONY: maybe-html-libiberty-linker-plugin html-libiberty-linker-plugin
24112maybe-html-libiberty-linker-plugin:
24113@if libiberty-linker-plugin
24114maybe-html-libiberty-linker-plugin: html-libiberty-linker-plugin
24115
24116html-libiberty-linker-plugin: \
24117 configure-libiberty-linker-plugin
24118 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24119 r=`${PWD_COMMAND}`; export r; \
24120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24121 $(HOST_EXPORTS) \
24122 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24124 done; \
22121df0 24125 echo "Doing html in libiberty-linker-plugin"; \
1b6c0831
L
24126 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24129 "RANLIB=$${RANLIB}" \
24130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24131 html) \
24132 || exit 1
24133
24134@endif libiberty-linker-plugin
24135
24136.PHONY: maybe-TAGS-libiberty-linker-plugin TAGS-libiberty-linker-plugin
24137maybe-TAGS-libiberty-linker-plugin:
24138@if libiberty-linker-plugin
24139maybe-TAGS-libiberty-linker-plugin: TAGS-libiberty-linker-plugin
24140
24141TAGS-libiberty-linker-plugin: \
24142 configure-libiberty-linker-plugin
24143 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24144 r=`${PWD_COMMAND}`; export r; \
24145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24146 $(HOST_EXPORTS) \
24147 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24149 done; \
22121df0 24150 echo "Doing TAGS in libiberty-linker-plugin"; \
1b6c0831
L
24151 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24154 "RANLIB=$${RANLIB}" \
24155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24156 TAGS) \
24157 || exit 1
24158
24159@endif libiberty-linker-plugin
24160
24161.PHONY: maybe-install-info-libiberty-linker-plugin install-info-libiberty-linker-plugin
24162maybe-install-info-libiberty-linker-plugin:
24163@if libiberty-linker-plugin
24164maybe-install-info-libiberty-linker-plugin: install-info-libiberty-linker-plugin
24165
24166install-info-libiberty-linker-plugin: \
24167 configure-libiberty-linker-plugin \
24168 info-libiberty-linker-plugin
24169 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24170 r=`${PWD_COMMAND}`; export r; \
24171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24172 $(HOST_EXPORTS) \
24173 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24175 done; \
22121df0 24176 echo "Doing install-info in libiberty-linker-plugin"; \
1b6c0831
L
24177 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24180 "RANLIB=$${RANLIB}" \
24181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24182 install-info) \
24183 || exit 1
24184
24185@endif libiberty-linker-plugin
24186
24187.PHONY: maybe-install-pdf-libiberty-linker-plugin install-pdf-libiberty-linker-plugin
24188maybe-install-pdf-libiberty-linker-plugin:
24189@if libiberty-linker-plugin
24190maybe-install-pdf-libiberty-linker-plugin: install-pdf-libiberty-linker-plugin
24191
24192install-pdf-libiberty-linker-plugin: \
24193 configure-libiberty-linker-plugin \
24194 pdf-libiberty-linker-plugin
24195 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24196 r=`${PWD_COMMAND}`; export r; \
24197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24198 $(HOST_EXPORTS) \
24199 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24201 done; \
22121df0 24202 echo "Doing install-pdf in libiberty-linker-plugin"; \
1b6c0831
L
24203 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24206 "RANLIB=$${RANLIB}" \
24207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24208 install-pdf) \
24209 || exit 1
24210
24211@endif libiberty-linker-plugin
24212
24213.PHONY: maybe-install-html-libiberty-linker-plugin install-html-libiberty-linker-plugin
24214maybe-install-html-libiberty-linker-plugin:
24215@if libiberty-linker-plugin
24216maybe-install-html-libiberty-linker-plugin: install-html-libiberty-linker-plugin
24217
24218install-html-libiberty-linker-plugin: \
24219 configure-libiberty-linker-plugin \
24220 html-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 install-html 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 install-html) \
24235 || exit 1
24236
24237@endif libiberty-linker-plugin
24238
24239.PHONY: maybe-installcheck-libiberty-linker-plugin installcheck-libiberty-linker-plugin
24240maybe-installcheck-libiberty-linker-plugin:
24241@if libiberty-linker-plugin
24242maybe-installcheck-libiberty-linker-plugin: installcheck-libiberty-linker-plugin
24243
24244installcheck-libiberty-linker-plugin: \
24245 configure-libiberty-linker-plugin
24246 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24247 r=`${PWD_COMMAND}`; export r; \
24248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24249 $(HOST_EXPORTS) \
24250 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24252 done; \
22121df0 24253 echo "Doing installcheck in libiberty-linker-plugin"; \
1b6c0831
L
24254 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24257 "RANLIB=$${RANLIB}" \
24258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24259 installcheck) \
24260 || exit 1
24261
24262@endif libiberty-linker-plugin
24263
24264.PHONY: maybe-mostlyclean-libiberty-linker-plugin mostlyclean-libiberty-linker-plugin
24265maybe-mostlyclean-libiberty-linker-plugin:
24266@if libiberty-linker-plugin
24267maybe-mostlyclean-libiberty-linker-plugin: mostlyclean-libiberty-linker-plugin
24268
24269mostlyclean-libiberty-linker-plugin:
24270 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24271 r=`${PWD_COMMAND}`; export r; \
24272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24273 $(HOST_EXPORTS) \
24274 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24276 done; \
22121df0 24277 echo "Doing mostlyclean in libiberty-linker-plugin"; \
1b6c0831
L
24278 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24281 "RANLIB=$${RANLIB}" \
24282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24283 mostlyclean) \
24284 || exit 1
24285
24286@endif libiberty-linker-plugin
24287
24288.PHONY: maybe-clean-libiberty-linker-plugin clean-libiberty-linker-plugin
24289maybe-clean-libiberty-linker-plugin:
24290@if libiberty-linker-plugin
24291maybe-clean-libiberty-linker-plugin: clean-libiberty-linker-plugin
24292
24293clean-libiberty-linker-plugin:
24294 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24295 r=`${PWD_COMMAND}`; export r; \
24296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24297 $(HOST_EXPORTS) \
24298 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24300 done; \
22121df0 24301 echo "Doing clean in libiberty-linker-plugin"; \
1b6c0831
L
24302 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24305 "RANLIB=$${RANLIB}" \
24306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24307 clean) \
24308 || exit 1
24309
24310@endif libiberty-linker-plugin
24311
24312.PHONY: maybe-distclean-libiberty-linker-plugin distclean-libiberty-linker-plugin
24313maybe-distclean-libiberty-linker-plugin:
24314@if libiberty-linker-plugin
24315maybe-distclean-libiberty-linker-plugin: distclean-libiberty-linker-plugin
24316
24317distclean-libiberty-linker-plugin:
24318 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24319 r=`${PWD_COMMAND}`; export r; \
24320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24321 $(HOST_EXPORTS) \
24322 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24324 done; \
22121df0 24325 echo "Doing distclean in libiberty-linker-plugin"; \
1b6c0831
L
24326 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24329 "RANLIB=$${RANLIB}" \
24330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24331 distclean) \
24332 || exit 1
24333
24334@endif libiberty-linker-plugin
24335
24336.PHONY: maybe-maintainer-clean-libiberty-linker-plugin maintainer-clean-libiberty-linker-plugin
24337maybe-maintainer-clean-libiberty-linker-plugin:
24338@if libiberty-linker-plugin
24339maybe-maintainer-clean-libiberty-linker-plugin: maintainer-clean-libiberty-linker-plugin
24340
24341maintainer-clean-libiberty-linker-plugin:
24342 @[ -f ./libiberty-linker-plugin/Makefile ] || exit 0; \
24343 r=`${PWD_COMMAND}`; export r; \
24344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24345 $(HOST_EXPORTS) \
24346 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
24347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24348 done; \
22121df0 24349 echo "Doing maintainer-clean in libiberty-linker-plugin"; \
1b6c0831
L
24350 (cd $(HOST_SUBDIR)/libiberty-linker-plugin && \
24351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24353 "RANLIB=$${RANLIB}" \
24354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
24355 maintainer-clean) \
24356 || exit 1
24357
24358@endif libiberty-linker-plugin
24359
24360
24361
a90ef4bf
JM
24362.PHONY: configure-libiconv maybe-configure-libiconv
24363maybe-configure-libiconv:
4f0ef2d8 24364@if gcc-bootstrap
a90ef4bf 24365configure-libiconv: stage_current
4f0ef2d8 24366@endif gcc-bootstrap
a90ef4bf
JM
24367@if libiconv
24368maybe-configure-libiconv: configure-libiconv
24369configure-libiconv:
c52c6897 24370 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 24372 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
22121df0 24373 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
1f53ca9a 24374 $(HOST_EXPORTS) \
a90ef4bf
JM
24375 echo Configuring in $(HOST_SUBDIR)/libiconv; \
24376 cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
4fa63067 24377 case $(srcdir) in \
b00612cc 24378 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 24379 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
b00612cc 24380 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 24381 esac; \
1b6c0831
L
24382 module_srcdir=libiconv; \
24383 $(SHELL) \
24384 $$s/$$module_srcdir/configure \
24385 --srcdir=$${topdir}/$$module_srcdir \
4b900473 24386 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 24387 --target=${target_alias} --disable-shared \
2a4cbe27 24388 || exit 1
a90ef4bf 24389@endif libiconv
2a4cbe27 24390
a7254363
PB
24391
24392
016a3251
DD
24393.PHONY: configure-stage1-libiconv maybe-configure-stage1-libiconv
24394maybe-configure-stage1-libiconv:
24395@if libiconv-bootstrap
24396maybe-configure-stage1-libiconv: configure-stage1-libiconv
24397configure-stage1-libiconv:
24398 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24399 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24400 @r=`${PWD_COMMAND}`; export r; \
24401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24402 TFLAGS="$(STAGE1_TFLAGS)"; \
24403 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24404 $(HOST_EXPORTS) \
24405 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
24406 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
24407 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
24408 echo Configuring stage 1 in $(HOST_SUBDIR)/libiconv; \
24409 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24410 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24411 case $(srcdir) in \
24412 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24413 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24414 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24415 esac; \
24416 module_srcdir=libiconv; \
24417 $(SHELL) $$s/$$module_srcdir/configure \
24418 --srcdir=$${topdir}/$$module_srcdir \
24419 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24420 --target=${target_alias} \
24421 \
24422 $(STAGE1_CONFIGURE_FLAGS) \
24423 --disable-shared
24424@endif libiconv-bootstrap
24425
24426.PHONY: configure-stage2-libiconv maybe-configure-stage2-libiconv
24427maybe-configure-stage2-libiconv:
24428@if libiconv-bootstrap
24429maybe-configure-stage2-libiconv: configure-stage2-libiconv
24430configure-stage2-libiconv:
24431 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24432 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24433 @r=`${PWD_COMMAND}`; export r; \
24434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24435 TFLAGS="$(STAGE2_TFLAGS)"; \
24436 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24437 $(HOST_EXPORTS) \
24438 $(POSTSTAGE1_HOST_EXPORTS) \
24439 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
24440 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
24441 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
24442 echo Configuring stage 2 in $(HOST_SUBDIR)/libiconv; \
24443 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24444 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24445 case $(srcdir) in \
24446 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24447 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24448 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24449 esac; \
24450 module_srcdir=libiconv; \
24451 $(SHELL) $$s/$$module_srcdir/configure \
24452 --srcdir=$${topdir}/$$module_srcdir \
24453 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24454 --target=${target_alias} \
24455 --with-build-libsubdir=$(HOST_SUBDIR) \
24456 $(STAGE2_CONFIGURE_FLAGS) \
24457 --disable-shared
24458@endif libiconv-bootstrap
24459
24460.PHONY: configure-stage3-libiconv maybe-configure-stage3-libiconv
24461maybe-configure-stage3-libiconv:
24462@if libiconv-bootstrap
24463maybe-configure-stage3-libiconv: configure-stage3-libiconv
24464configure-stage3-libiconv:
24465 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24466 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24467 @r=`${PWD_COMMAND}`; export r; \
24468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24469 TFLAGS="$(STAGE3_TFLAGS)"; \
24470 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24471 $(HOST_EXPORTS) \
24472 $(POSTSTAGE1_HOST_EXPORTS) \
24473 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
24474 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
24475 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
24476 echo Configuring stage 3 in $(HOST_SUBDIR)/libiconv; \
24477 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24478 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24479 case $(srcdir) in \
24480 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24481 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24482 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24483 esac; \
24484 module_srcdir=libiconv; \
24485 $(SHELL) $$s/$$module_srcdir/configure \
24486 --srcdir=$${topdir}/$$module_srcdir \
24487 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24488 --target=${target_alias} \
24489 --with-build-libsubdir=$(HOST_SUBDIR) \
24490 $(STAGE3_CONFIGURE_FLAGS) \
24491 --disable-shared
24492@endif libiconv-bootstrap
24493
24494.PHONY: configure-stage4-libiconv maybe-configure-stage4-libiconv
24495maybe-configure-stage4-libiconv:
24496@if libiconv-bootstrap
24497maybe-configure-stage4-libiconv: configure-stage4-libiconv
24498configure-stage4-libiconv:
24499 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24500 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24501 @r=`${PWD_COMMAND}`; export r; \
24502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24503 TFLAGS="$(STAGE4_TFLAGS)"; \
24504 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24505 $(HOST_EXPORTS) \
24506 $(POSTSTAGE1_HOST_EXPORTS) \
24507 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
24508 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
24509 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
24510 echo Configuring stage 4 in $(HOST_SUBDIR)/libiconv; \
24511 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24512 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24513 case $(srcdir) in \
24514 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24515 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24516 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24517 esac; \
24518 module_srcdir=libiconv; \
24519 $(SHELL) $$s/$$module_srcdir/configure \
24520 --srcdir=$${topdir}/$$module_srcdir \
24521 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24522 --target=${target_alias} \
24523 --with-build-libsubdir=$(HOST_SUBDIR) \
24524 $(STAGE4_CONFIGURE_FLAGS) \
24525 --disable-shared
24526@endif libiconv-bootstrap
24527
24528.PHONY: configure-stageprofile-libiconv maybe-configure-stageprofile-libiconv
24529maybe-configure-stageprofile-libiconv:
24530@if libiconv-bootstrap
24531maybe-configure-stageprofile-libiconv: configure-stageprofile-libiconv
24532configure-stageprofile-libiconv:
24533 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24534 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24535 @r=`${PWD_COMMAND}`; export r; \
24536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24537 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24538 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24539 $(HOST_EXPORTS) \
24540 $(POSTSTAGE1_HOST_EXPORTS) \
24541 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
24542 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
24543 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
24544 echo Configuring stage profile in $(HOST_SUBDIR)/libiconv; \
24545 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24546 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24547 case $(srcdir) in \
24548 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24549 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24550 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24551 esac; \
24552 module_srcdir=libiconv; \
24553 $(SHELL) $$s/$$module_srcdir/configure \
24554 --srcdir=$${topdir}/$$module_srcdir \
24555 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24556 --target=${target_alias} \
24557 --with-build-libsubdir=$(HOST_SUBDIR) \
24558 $(STAGEprofile_CONFIGURE_FLAGS) \
24559 --disable-shared
24560@endif libiconv-bootstrap
24561
24562.PHONY: configure-stagefeedback-libiconv maybe-configure-stagefeedback-libiconv
24563maybe-configure-stagefeedback-libiconv:
24564@if libiconv-bootstrap
24565maybe-configure-stagefeedback-libiconv: configure-stagefeedback-libiconv
24566configure-stagefeedback-libiconv:
24567 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24568 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv
24569 @r=`${PWD_COMMAND}`; export r; \
24570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24571 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24572 test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
24573 $(HOST_EXPORTS) \
24574 $(POSTSTAGE1_HOST_EXPORTS) \
24575 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
24576 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
24577 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
24578 echo Configuring stage feedback in $(HOST_SUBDIR)/libiconv; \
24579 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv; \
24580 cd $(HOST_SUBDIR)/libiconv || exit 1; \
24581 case $(srcdir) in \
24582 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24583 *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
24584 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
24585 esac; \
24586 module_srcdir=libiconv; \
24587 $(SHELL) $$s/$$module_srcdir/configure \
24588 --srcdir=$${topdir}/$$module_srcdir \
24589 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
24590 --target=${target_alias} \
24591 --with-build-libsubdir=$(HOST_SUBDIR) \
24592 $(STAGEfeedback_CONFIGURE_FLAGS) \
24593 --disable-shared
24594@endif libiconv-bootstrap
24595
24596
24597
d545f33b
PB
24598
24599
a90ef4bf
JM
24600.PHONY: all-libiconv maybe-all-libiconv
24601maybe-all-libiconv:
4f0ef2d8 24602@if gcc-bootstrap
a90ef4bf 24603all-libiconv: stage_current
4f0ef2d8 24604@endif gcc-bootstrap
a90ef4bf
JM
24605@if libiconv
24606TARGET-libiconv=all
24607maybe-all-libiconv: all-libiconv
24608all-libiconv: configure-libiconv
4fa63067
NN
24609 @r=`${PWD_COMMAND}`; export r; \
24610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 24611 $(HOST_EXPORTS) \
a90ef4bf 24612 (cd $(HOST_SUBDIR)/libiconv && \
b3676d82 24613 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
24614 $(TARGET-libiconv))
24615@endif libiconv
2a4cbe27 24616
a7254363 24617
d545f33b 24618
016a3251
DD
24619.PHONY: all-stage1-libiconv maybe-all-stage1-libiconv
24620.PHONY: clean-stage1-libiconv maybe-clean-stage1-libiconv
24621maybe-all-stage1-libiconv:
24622maybe-clean-stage1-libiconv:
24623@if libiconv-bootstrap
24624maybe-all-stage1-libiconv: all-stage1-libiconv
24625all-stage1: all-stage1-libiconv
24626TARGET-stage1-libiconv = $(TARGET-libiconv)
24627all-stage1-libiconv: configure-stage1-libiconv
24628 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
24629 @r=`${PWD_COMMAND}`; export r; \
24630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24631 TFLAGS="$(STAGE1_TFLAGS)"; \
24632 $(HOST_EXPORTS) \
24633 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24634 \
016a3251
DD
24635 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24636 CFLAGS="$(STAGE1_CFLAGS)" \
24637 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
24638 LIBCFLAGS="$(LIBCFLAGS)" \
24639 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24640 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24641 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24642 $(EXTRA_HOST_FLAGS) \
24643 $(STAGE1_FLAGS_TO_PASS) \
05a13254 24644 TFLAGS="$(STAGE1_TFLAGS)" \
016a3251
DD
24645 $(TARGET-stage1-libiconv)
24646
24647maybe-clean-stage1-libiconv: clean-stage1-libiconv
24648clean-stage1: clean-stage1-libiconv
24649clean-stage1-libiconv:
24650 @if [ $(current_stage) = stage1 ]; then \
24651 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24652 else \
24653 [ -f $(HOST_SUBDIR)/stage1-libiconv/Makefile ] || exit 0; \
24654 $(MAKE) stage1-start; \
24655 fi; \
24656 cd $(HOST_SUBDIR)/libiconv && \
24657 $(MAKE) $(EXTRA_HOST_FLAGS) \
24658 $(STAGE1_FLAGS_TO_PASS) clean
24659@endif libiconv-bootstrap
24660
24661
24662.PHONY: all-stage2-libiconv maybe-all-stage2-libiconv
24663.PHONY: clean-stage2-libiconv maybe-clean-stage2-libiconv
24664maybe-all-stage2-libiconv:
24665maybe-clean-stage2-libiconv:
24666@if libiconv-bootstrap
24667maybe-all-stage2-libiconv: all-stage2-libiconv
24668all-stage2: all-stage2-libiconv
24669TARGET-stage2-libiconv = $(TARGET-libiconv)
24670all-stage2-libiconv: configure-stage2-libiconv
24671 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
24672 @r=`${PWD_COMMAND}`; export r; \
24673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24674 TFLAGS="$(STAGE2_TFLAGS)"; \
24675 $(HOST_EXPORTS) \
24676 $(POSTSTAGE1_HOST_EXPORTS) \
24677 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24678 \
016a3251
DD
24679 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24680 CFLAGS="$(STAGE2_CFLAGS)" \
24681 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
24682 LIBCFLAGS="$(STAGE2_CFLAGS)" \
24683 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24684 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24685 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24686 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24687 TFLAGS="$(STAGE2_TFLAGS)" \
016a3251
DD
24688 $(TARGET-stage2-libiconv)
24689
24690maybe-clean-stage2-libiconv: clean-stage2-libiconv
24691clean-stage2: clean-stage2-libiconv
24692clean-stage2-libiconv:
24693 @if [ $(current_stage) = stage2 ]; then \
24694 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24695 else \
24696 [ -f $(HOST_SUBDIR)/stage2-libiconv/Makefile ] || exit 0; \
24697 $(MAKE) stage2-start; \
24698 fi; \
24699 cd $(HOST_SUBDIR)/libiconv && \
24700 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24701@endif libiconv-bootstrap
24702
24703
24704.PHONY: all-stage3-libiconv maybe-all-stage3-libiconv
24705.PHONY: clean-stage3-libiconv maybe-clean-stage3-libiconv
24706maybe-all-stage3-libiconv:
24707maybe-clean-stage3-libiconv:
24708@if libiconv-bootstrap
24709maybe-all-stage3-libiconv: all-stage3-libiconv
24710all-stage3: all-stage3-libiconv
24711TARGET-stage3-libiconv = $(TARGET-libiconv)
24712all-stage3-libiconv: configure-stage3-libiconv
24713 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
24714 @r=`${PWD_COMMAND}`; export r; \
24715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24716 TFLAGS="$(STAGE3_TFLAGS)"; \
24717 $(HOST_EXPORTS) \
24718 $(POSTSTAGE1_HOST_EXPORTS) \
24719 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24720 \
016a3251
DD
24721 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24722 CFLAGS="$(STAGE3_CFLAGS)" \
24723 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
24724 LIBCFLAGS="$(STAGE3_CFLAGS)" \
24725 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24726 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24727 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24728 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24729 TFLAGS="$(STAGE3_TFLAGS)" \
016a3251
DD
24730 $(TARGET-stage3-libiconv)
24731
24732maybe-clean-stage3-libiconv: clean-stage3-libiconv
24733clean-stage3: clean-stage3-libiconv
24734clean-stage3-libiconv:
24735 @if [ $(current_stage) = stage3 ]; then \
24736 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24737 else \
24738 [ -f $(HOST_SUBDIR)/stage3-libiconv/Makefile ] || exit 0; \
24739 $(MAKE) stage3-start; \
24740 fi; \
24741 cd $(HOST_SUBDIR)/libiconv && \
24742 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24743@endif libiconv-bootstrap
24744
24745
24746.PHONY: all-stage4-libiconv maybe-all-stage4-libiconv
24747.PHONY: clean-stage4-libiconv maybe-clean-stage4-libiconv
24748maybe-all-stage4-libiconv:
24749maybe-clean-stage4-libiconv:
24750@if libiconv-bootstrap
24751maybe-all-stage4-libiconv: all-stage4-libiconv
24752all-stage4: all-stage4-libiconv
24753TARGET-stage4-libiconv = $(TARGET-libiconv)
24754all-stage4-libiconv: configure-stage4-libiconv
24755 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
24756 @r=`${PWD_COMMAND}`; export r; \
24757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24758 TFLAGS="$(STAGE4_TFLAGS)"; \
24759 $(HOST_EXPORTS) \
24760 $(POSTSTAGE1_HOST_EXPORTS) \
24761 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24762 \
016a3251
DD
24763 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24764 CFLAGS="$(STAGE4_CFLAGS)" \
24765 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
24766 LIBCFLAGS="$(STAGE4_CFLAGS)" \
24767 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24768 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24769 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24770 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24771 TFLAGS="$(STAGE4_TFLAGS)" \
016a3251
DD
24772 $(TARGET-stage4-libiconv)
24773
24774maybe-clean-stage4-libiconv: clean-stage4-libiconv
24775clean-stage4: clean-stage4-libiconv
24776clean-stage4-libiconv:
24777 @if [ $(current_stage) = stage4 ]; then \
24778 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24779 else \
24780 [ -f $(HOST_SUBDIR)/stage4-libiconv/Makefile ] || exit 0; \
24781 $(MAKE) stage4-start; \
24782 fi; \
24783 cd $(HOST_SUBDIR)/libiconv && \
24784 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24785@endif libiconv-bootstrap
24786
24787
24788.PHONY: all-stageprofile-libiconv maybe-all-stageprofile-libiconv
24789.PHONY: clean-stageprofile-libiconv maybe-clean-stageprofile-libiconv
24790maybe-all-stageprofile-libiconv:
24791maybe-clean-stageprofile-libiconv:
24792@if libiconv-bootstrap
24793maybe-all-stageprofile-libiconv: all-stageprofile-libiconv
24794all-stageprofile: all-stageprofile-libiconv
24795TARGET-stageprofile-libiconv = $(TARGET-libiconv)
24796all-stageprofile-libiconv: configure-stageprofile-libiconv
24797 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
24798 @r=`${PWD_COMMAND}`; export r; \
24799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24800 TFLAGS="$(STAGEprofile_TFLAGS)"; \
24801 $(HOST_EXPORTS) \
24802 $(POSTSTAGE1_HOST_EXPORTS) \
24803 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24804 \
016a3251
DD
24805 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24806 CFLAGS="$(STAGEprofile_CFLAGS)" \
24807 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
24808 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
24809 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24810 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24811 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24812 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24813 TFLAGS="$(STAGEprofile_TFLAGS)" \
016a3251
DD
24814 $(TARGET-stageprofile-libiconv)
24815
24816maybe-clean-stageprofile-libiconv: clean-stageprofile-libiconv
24817clean-stageprofile: clean-stageprofile-libiconv
24818clean-stageprofile-libiconv:
24819 @if [ $(current_stage) = stageprofile ]; then \
24820 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24821 else \
24822 [ -f $(HOST_SUBDIR)/stageprofile-libiconv/Makefile ] || exit 0; \
24823 $(MAKE) stageprofile-start; \
24824 fi; \
24825 cd $(HOST_SUBDIR)/libiconv && \
24826 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24827@endif libiconv-bootstrap
24828
24829
24830.PHONY: all-stagefeedback-libiconv maybe-all-stagefeedback-libiconv
24831.PHONY: clean-stagefeedback-libiconv maybe-clean-stagefeedback-libiconv
24832maybe-all-stagefeedback-libiconv:
24833maybe-clean-stagefeedback-libiconv:
24834@if libiconv-bootstrap
24835maybe-all-stagefeedback-libiconv: all-stagefeedback-libiconv
24836all-stagefeedback: all-stagefeedback-libiconv
24837TARGET-stagefeedback-libiconv = $(TARGET-libiconv)
24838all-stagefeedback-libiconv: configure-stagefeedback-libiconv
24839 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
24840 @r=`${PWD_COMMAND}`; export r; \
24841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24842 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
24843 $(HOST_EXPORTS) \
24844 $(POSTSTAGE1_HOST_EXPORTS) \
24845 cd $(HOST_SUBDIR)/libiconv && \
05a13254 24846 \
016a3251
DD
24847 $(MAKE) $(BASE_FLAGS_TO_PASS) \
24848 CFLAGS="$(STAGEfeedback_CFLAGS)" \
24849 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
24850 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
24851 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
24852 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
24853 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
24854 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 24855 TFLAGS="$(STAGEfeedback_TFLAGS)" \
016a3251
DD
24856 $(TARGET-stagefeedback-libiconv)
24857
24858maybe-clean-stagefeedback-libiconv: clean-stagefeedback-libiconv
24859clean-stagefeedback: clean-stagefeedback-libiconv
24860clean-stagefeedback-libiconv:
24861 @if [ $(current_stage) = stagefeedback ]; then \
24862 [ -f $(HOST_SUBDIR)/libiconv/Makefile ] || exit 0; \
24863 else \
24864 [ -f $(HOST_SUBDIR)/stagefeedback-libiconv/Makefile ] || exit 0; \
24865 $(MAKE) stagefeedback-start; \
24866 fi; \
24867 cd $(HOST_SUBDIR)/libiconv && \
24868 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
24869@endif libiconv-bootstrap
24870
24871
24872
24873
d545f33b 24874
a90ef4bf
JM
24875.PHONY: check-libiconv maybe-check-libiconv
24876maybe-check-libiconv:
24877@if libiconv
24878maybe-check-libiconv: check-libiconv
2a4cbe27 24879
a90ef4bf 24880check-libiconv:
0aed8855 24881 @: $(MAKE); $(unstage)
4fa63067 24882 @r=`${PWD_COMMAND}`; export r; \
b40e3958 24883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
016a3251 24884 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 24885 (cd $(HOST_SUBDIR)/libiconv && \
016a3251 24886 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
2a4cbe27 24887
a90ef4bf 24888@endif libiconv
4fa63067 24889
a90ef4bf
JM
24890.PHONY: install-libiconv maybe-install-libiconv
24891maybe-install-libiconv:
24892@if libiconv
24893maybe-install-libiconv: install-libiconv
2a4cbe27 24894
a90ef4bf 24895install-libiconv:
2a4cbe27 24896
a90ef4bf 24897@endif libiconv
9b980aa1 24898
a90ef4bf
JM
24899.PHONY: install-strip-libiconv maybe-install-strip-libiconv
24900maybe-install-strip-libiconv:
24901@if libiconv
24902maybe-install-strip-libiconv: install-strip-libiconv
9b980aa1 24903
a90ef4bf
JM
24904install-strip-libiconv:
24905
24906@endif libiconv
9b980aa1 24907
56a8fe78 24908# Other targets (info, dvi, pdf, etc.)
2a4cbe27 24909
a90ef4bf
JM
24910.PHONY: maybe-info-libiconv info-libiconv
24911maybe-info-libiconv:
24912@if libiconv
24913maybe-info-libiconv: info-libiconv
4fa63067 24914
016a3251
DD
24915# libiconv doesn't support info.
24916info-libiconv:
2a4cbe27 24917
a90ef4bf 24918@endif libiconv
2a4cbe27 24919
a90ef4bf
JM
24920.PHONY: maybe-dvi-libiconv dvi-libiconv
24921maybe-dvi-libiconv:
24922@if libiconv
24923maybe-dvi-libiconv: dvi-libiconv
2a4cbe27 24924
a90ef4bf
JM
24925dvi-libiconv: \
24926 configure-libiconv
a90ef4bf 24927 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24928 r=`${PWD_COMMAND}`; export r; \
24929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24930 $(HOST_EXPORTS) \
b813574b 24931 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24933 done; \
22121df0 24934 echo "Doing dvi in libiconv"; \
a90ef4bf 24935 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24938 "RANLIB=$${RANLIB}" \
0c24b341 24939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24940 dvi) \
2a4cbe27
NN
24941 || exit 1
24942
a90ef4bf 24943@endif libiconv
2a4cbe27 24944
a90ef4bf
JM
24945.PHONY: maybe-pdf-libiconv pdf-libiconv
24946maybe-pdf-libiconv:
24947@if libiconv
24948maybe-pdf-libiconv: pdf-libiconv
56a8fe78 24949
016a3251
DD
24950# libiconv doesn't support pdf.
24951pdf-libiconv:
56a8fe78 24952
a90ef4bf 24953@endif libiconv
56a8fe78 24954
a90ef4bf
JM
24955.PHONY: maybe-html-libiconv html-libiconv
24956maybe-html-libiconv:
24957@if libiconv
24958maybe-html-libiconv: html-libiconv
6d389afc 24959
016a3251
DD
24960# libiconv doesn't support html.
24961html-libiconv:
6d389afc 24962
a90ef4bf 24963@endif libiconv
6d389afc 24964
a90ef4bf
JM
24965.PHONY: maybe-TAGS-libiconv TAGS-libiconv
24966maybe-TAGS-libiconv:
24967@if libiconv
24968maybe-TAGS-libiconv: TAGS-libiconv
2a4cbe27 24969
a90ef4bf
JM
24970TAGS-libiconv: \
24971 configure-libiconv
a90ef4bf 24972 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
24973 r=`${PWD_COMMAND}`; export r; \
24974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 24975 $(HOST_EXPORTS) \
b813574b 24976 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
24977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24978 done; \
22121df0 24979 echo "Doing TAGS in libiconv"; \
a90ef4bf 24980 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
24981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24983 "RANLIB=$${RANLIB}" \
0c24b341 24984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 24985 TAGS) \
2a4cbe27
NN
24986 || exit 1
24987
a90ef4bf 24988@endif libiconv
2a4cbe27 24989
a90ef4bf
JM
24990.PHONY: maybe-install-info-libiconv install-info-libiconv
24991maybe-install-info-libiconv:
24992@if libiconv
24993maybe-install-info-libiconv: install-info-libiconv
2a4cbe27 24994
a90ef4bf
JM
24995# libiconv doesn't support install-info.
24996install-info-libiconv:
2a4cbe27 24997
a90ef4bf 24998@endif libiconv
2a4cbe27 24999
a90ef4bf
JM
25000.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
25001maybe-install-pdf-libiconv:
25002@if libiconv
25003maybe-install-pdf-libiconv: install-pdf-libiconv
a3ca38d2 25004
a90ef4bf
JM
25005# libiconv doesn't support install-pdf.
25006install-pdf-libiconv:
a3ca38d2 25007
a90ef4bf 25008@endif libiconv
a3ca38d2 25009
a90ef4bf
JM
25010.PHONY: maybe-install-html-libiconv install-html-libiconv
25011maybe-install-html-libiconv:
25012@if libiconv
25013maybe-install-html-libiconv: install-html-libiconv
108a6f8e 25014
a90ef4bf
JM
25015# libiconv doesn't support install-html.
25016install-html-libiconv:
108a6f8e 25017
a90ef4bf 25018@endif libiconv
108a6f8e 25019
a90ef4bf
JM
25020.PHONY: maybe-installcheck-libiconv installcheck-libiconv
25021maybe-installcheck-libiconv:
25022@if libiconv
25023maybe-installcheck-libiconv: installcheck-libiconv
2a4cbe27 25024
a90ef4bf
JM
25025installcheck-libiconv: \
25026 configure-libiconv
a90ef4bf 25027 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25028 r=`${PWD_COMMAND}`; export r; \
25029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25030 $(HOST_EXPORTS) \
b813574b 25031 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25033 done; \
22121df0 25034 echo "Doing installcheck in libiconv"; \
a90ef4bf 25035 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25038 "RANLIB=$${RANLIB}" \
0c24b341 25039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25040 installcheck) \
2a4cbe27
NN
25041 || exit 1
25042
a90ef4bf 25043@endif libiconv
2a4cbe27 25044
a90ef4bf
JM
25045.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
25046maybe-mostlyclean-libiconv:
25047@if libiconv
25048maybe-mostlyclean-libiconv: mostlyclean-libiconv
2a4cbe27 25049
a90ef4bf 25050mostlyclean-libiconv:
a90ef4bf 25051 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25052 r=`${PWD_COMMAND}`; export r; \
25053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25054 $(HOST_EXPORTS) \
b813574b 25055 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25057 done; \
22121df0 25058 echo "Doing mostlyclean in libiconv"; \
a90ef4bf 25059 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25062 "RANLIB=$${RANLIB}" \
0c24b341 25063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25064 mostlyclean) \
2a4cbe27
NN
25065 || exit 1
25066
a90ef4bf 25067@endif libiconv
2a4cbe27 25068
a90ef4bf
JM
25069.PHONY: maybe-clean-libiconv clean-libiconv
25070maybe-clean-libiconv:
25071@if libiconv
25072maybe-clean-libiconv: clean-libiconv
2a4cbe27 25073
a90ef4bf 25074clean-libiconv:
a90ef4bf 25075 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25076 r=`${PWD_COMMAND}`; export r; \
25077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25078 $(HOST_EXPORTS) \
b813574b 25079 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25081 done; \
22121df0 25082 echo "Doing clean in libiconv"; \
a90ef4bf 25083 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25086 "RANLIB=$${RANLIB}" \
0c24b341 25087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25088 clean) \
2a4cbe27
NN
25089 || exit 1
25090
a90ef4bf 25091@endif libiconv
2a4cbe27 25092
a90ef4bf
JM
25093.PHONY: maybe-distclean-libiconv distclean-libiconv
25094maybe-distclean-libiconv:
25095@if libiconv
25096maybe-distclean-libiconv: distclean-libiconv
2a4cbe27 25097
a90ef4bf 25098distclean-libiconv:
a90ef4bf 25099 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25100 r=`${PWD_COMMAND}`; export r; \
25101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25102 $(HOST_EXPORTS) \
b813574b 25103 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25105 done; \
22121df0 25106 echo "Doing distclean in libiconv"; \
a90ef4bf 25107 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25110 "RANLIB=$${RANLIB}" \
0c24b341 25111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25112 distclean) \
2a4cbe27
NN
25113 || exit 1
25114
a90ef4bf 25115@endif libiconv
2a4cbe27 25116
a90ef4bf
JM
25117.PHONY: maybe-maintainer-clean-libiconv maintainer-clean-libiconv
25118maybe-maintainer-clean-libiconv:
25119@if libiconv
25120maybe-maintainer-clean-libiconv: maintainer-clean-libiconv
2a4cbe27 25121
a90ef4bf 25122maintainer-clean-libiconv:
a90ef4bf 25123 @[ -f ./libiconv/Makefile ] || exit 0; \
b40e3958
L
25124 r=`${PWD_COMMAND}`; export r; \
25125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25126 $(HOST_EXPORTS) \
b813574b 25127 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25129 done; \
22121df0 25130 echo "Doing maintainer-clean in libiconv"; \
a90ef4bf 25131 (cd $(HOST_SUBDIR)/libiconv && \
2a4cbe27
NN
25132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25134 "RANLIB=$${RANLIB}" \
0c24b341 25135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25136 maintainer-clean) \
2a4cbe27
NN
25137 || exit 1
25138
a90ef4bf 25139@endif libiconv
2a4cbe27 25140
2a4cbe27 25141
a7254363 25142
a90ef4bf
JM
25143.PHONY: configure-m4 maybe-configure-m4
25144maybe-configure-m4:
4f0ef2d8 25145@if gcc-bootstrap
a90ef4bf 25146configure-m4: stage_current
4f0ef2d8 25147@endif gcc-bootstrap
a90ef4bf
JM
25148@if m4
25149maybe-configure-m4: configure-m4
25150configure-m4:
0aed8855 25151 @: $(MAKE); $(unstage)
c52c6897 25152 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25154 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
22121df0 25155 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4; \
1f53ca9a 25156 $(HOST_EXPORTS) \
a90ef4bf
JM
25157 echo Configuring in $(HOST_SUBDIR)/m4; \
25158 cd "$(HOST_SUBDIR)/m4" || exit 1; \
4fa63067 25159 case $(srcdir) in \
b00612cc 25160 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25161 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
b00612cc 25162 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25163 esac; \
1b6c0831
L
25164 module_srcdir=m4; \
25165 $(SHELL) \
25166 $$s/$$module_srcdir/configure \
25167 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25168 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25169 --target=${target_alias} \
2a4cbe27 25170 || exit 1
a90ef4bf 25171@endif m4
2a4cbe27 25172
a7254363
PB
25173
25174
d545f33b
PB
25175
25176
a90ef4bf
JM
25177.PHONY: all-m4 maybe-all-m4
25178maybe-all-m4:
4f0ef2d8 25179@if gcc-bootstrap
a90ef4bf 25180all-m4: stage_current
4f0ef2d8 25181@endif gcc-bootstrap
a90ef4bf
JM
25182@if m4
25183TARGET-m4=all
25184maybe-all-m4: all-m4
25185all-m4: configure-m4
0aed8855 25186 @: $(MAKE); $(unstage)
4fa63067
NN
25187 @r=`${PWD_COMMAND}`; export r; \
25188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25189 $(HOST_EXPORTS) \
a90ef4bf 25190 (cd $(HOST_SUBDIR)/m4 && \
b3676d82 25191 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25192 $(TARGET-m4))
25193@endif m4
2a4cbe27 25194
a7254363 25195
d545f33b
PB
25196
25197
a90ef4bf
JM
25198.PHONY: check-m4 maybe-check-m4
25199maybe-check-m4:
25200@if m4
25201maybe-check-m4: check-m4
2a4cbe27 25202
a90ef4bf 25203check-m4:
0aed8855 25204 @: $(MAKE); $(unstage)
4fa63067 25205 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25207 $(HOST_EXPORTS) \
a90ef4bf 25208 (cd $(HOST_SUBDIR)/m4 && \
b00612cc 25209 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25210
a90ef4bf 25211@endif m4
2a4cbe27 25212
a90ef4bf
JM
25213.PHONY: install-m4 maybe-install-m4
25214maybe-install-m4:
25215@if m4
25216maybe-install-m4: install-m4
2a4cbe27 25217
a90ef4bf 25218install-m4: installdirs
0aed8855 25219 @: $(MAKE); $(unstage)
4fa63067 25220 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25222 $(HOST_EXPORTS) \
a90ef4bf 25223 (cd $(HOST_SUBDIR)/m4 && \
2da12f12 25224 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 25225
a90ef4bf 25226@endif m4
2a4cbe27 25227
a90ef4bf
JM
25228.PHONY: install-strip-m4 maybe-install-strip-m4
25229maybe-install-strip-m4:
25230@if m4
25231maybe-install-strip-m4: install-strip-m4
9b980aa1 25232
a90ef4bf 25233install-strip-m4: installdirs
9b980aa1
RW
25234 @: $(MAKE); $(unstage)
25235 @r=`${PWD_COMMAND}`; export r; \
25236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25237 $(HOST_EXPORTS) \
a90ef4bf 25238 (cd $(HOST_SUBDIR)/m4 && \
9b980aa1
RW
25239 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25240
a90ef4bf 25241@endif m4
9b980aa1 25242
56a8fe78 25243# Other targets (info, dvi, pdf, etc.)
2a4cbe27 25244
a90ef4bf
JM
25245.PHONY: maybe-info-m4 info-m4
25246maybe-info-m4:
25247@if m4
25248maybe-info-m4: info-m4
4fa63067 25249
a90ef4bf
JM
25250info-m4: \
25251 configure-m4
0aed8855 25252 @: $(MAKE); $(unstage)
a90ef4bf 25253 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25254 r=`${PWD_COMMAND}`; export r; \
25255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25256 $(HOST_EXPORTS) \
b813574b 25257 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25259 done; \
22121df0 25260 echo "Doing info in m4"; \
a90ef4bf 25261 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25264 "RANLIB=$${RANLIB}" \
0c24b341 25265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25266 info) \
2a4cbe27
NN
25267 || exit 1
25268
a90ef4bf 25269@endif m4
2a4cbe27 25270
a90ef4bf
JM
25271.PHONY: maybe-dvi-m4 dvi-m4
25272maybe-dvi-m4:
25273@if m4
25274maybe-dvi-m4: dvi-m4
2a4cbe27 25275
a90ef4bf
JM
25276dvi-m4: \
25277 configure-m4
0aed8855 25278 @: $(MAKE); $(unstage)
a90ef4bf 25279 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25280 r=`${PWD_COMMAND}`; export r; \
25281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25282 $(HOST_EXPORTS) \
b813574b 25283 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25285 done; \
22121df0 25286 echo "Doing dvi in m4"; \
a90ef4bf 25287 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25290 "RANLIB=$${RANLIB}" \
0c24b341 25291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25292 dvi) \
2a4cbe27
NN
25293 || exit 1
25294
a90ef4bf 25295@endif m4
2a4cbe27 25296
a90ef4bf
JM
25297.PHONY: maybe-pdf-m4 pdf-m4
25298maybe-pdf-m4:
25299@if m4
25300maybe-pdf-m4: pdf-m4
56a8fe78 25301
a90ef4bf
JM
25302pdf-m4: \
25303 configure-m4
56a8fe78 25304 @: $(MAKE); $(unstage)
a90ef4bf 25305 @[ -f ./m4/Makefile ] || exit 0; \
56a8fe78
DD
25306 r=`${PWD_COMMAND}`; export r; \
25307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25308 $(HOST_EXPORTS) \
25309 for flag in $(EXTRA_HOST_FLAGS) ; do \
25310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25311 done; \
22121df0 25312 echo "Doing pdf in m4"; \
a90ef4bf 25313 (cd $(HOST_SUBDIR)/m4 && \
56a8fe78
DD
25314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25316 "RANLIB=$${RANLIB}" \
0c24b341 25317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25318 pdf) \
25319 || exit 1
25320
a90ef4bf 25321@endif m4
56a8fe78 25322
a90ef4bf
JM
25323.PHONY: maybe-html-m4 html-m4
25324maybe-html-m4:
25325@if m4
25326maybe-html-m4: html-m4
6d389afc 25327
a90ef4bf
JM
25328html-m4: \
25329 configure-m4
0aed8855 25330 @: $(MAKE); $(unstage)
a90ef4bf 25331 @[ -f ./m4/Makefile ] || exit 0; \
6d389afc
MS
25332 r=`${PWD_COMMAND}`; export r; \
25333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25334 $(HOST_EXPORTS) \
25335 for flag in $(EXTRA_HOST_FLAGS) ; do \
25336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25337 done; \
22121df0 25338 echo "Doing html in m4"; \
a90ef4bf 25339 (cd $(HOST_SUBDIR)/m4 && \
6d389afc
MS
25340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25342 "RANLIB=$${RANLIB}" \
0c24b341 25343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25344 html) \
25345 || exit 1
25346
a90ef4bf 25347@endif m4
6d389afc 25348
a90ef4bf
JM
25349.PHONY: maybe-TAGS-m4 TAGS-m4
25350maybe-TAGS-m4:
25351@if m4
25352maybe-TAGS-m4: TAGS-m4
2a4cbe27 25353
a90ef4bf
JM
25354TAGS-m4: \
25355 configure-m4
0aed8855 25356 @: $(MAKE); $(unstage)
a90ef4bf 25357 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25358 r=`${PWD_COMMAND}`; export r; \
25359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25360 $(HOST_EXPORTS) \
b813574b 25361 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25363 done; \
22121df0 25364 echo "Doing TAGS in m4"; \
a90ef4bf 25365 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25368 "RANLIB=$${RANLIB}" \
0c24b341 25369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25370 TAGS) \
2a4cbe27
NN
25371 || exit 1
25372
a90ef4bf 25373@endif m4
2a4cbe27 25374
a90ef4bf
JM
25375.PHONY: maybe-install-info-m4 install-info-m4
25376maybe-install-info-m4:
25377@if m4
25378maybe-install-info-m4: install-info-m4
2a4cbe27 25379
a90ef4bf
JM
25380install-info-m4: \
25381 configure-m4 \
25382 info-m4
0aed8855 25383 @: $(MAKE); $(unstage)
a90ef4bf 25384 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25385 r=`${PWD_COMMAND}`; export r; \
25386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25387 $(HOST_EXPORTS) \
b813574b 25388 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25390 done; \
22121df0 25391 echo "Doing install-info in m4"; \
a90ef4bf 25392 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25395 "RANLIB=$${RANLIB}" \
0c24b341 25396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25397 install-info) \
2a4cbe27
NN
25398 || exit 1
25399
a90ef4bf 25400@endif m4
2a4cbe27 25401
a90ef4bf
JM
25402.PHONY: maybe-install-pdf-m4 install-pdf-m4
25403maybe-install-pdf-m4:
25404@if m4
25405maybe-install-pdf-m4: install-pdf-m4
a3ca38d2 25406
a90ef4bf
JM
25407install-pdf-m4: \
25408 configure-m4 \
25409 pdf-m4
a3ca38d2 25410 @: $(MAKE); $(unstage)
a90ef4bf 25411 @[ -f ./m4/Makefile ] || exit 0; \
a3ca38d2
DD
25412 r=`${PWD_COMMAND}`; export r; \
25413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25414 $(HOST_EXPORTS) \
25415 for flag in $(EXTRA_HOST_FLAGS) ; do \
25416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25417 done; \
22121df0 25418 echo "Doing install-pdf in m4"; \
a90ef4bf 25419 (cd $(HOST_SUBDIR)/m4 && \
a3ca38d2
DD
25420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25422 "RANLIB=$${RANLIB}" \
0c24b341 25423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25424 install-pdf) \
25425 || exit 1
25426
a90ef4bf 25427@endif m4
a3ca38d2 25428
a90ef4bf
JM
25429.PHONY: maybe-install-html-m4 install-html-m4
25430maybe-install-html-m4:
25431@if m4
25432maybe-install-html-m4: install-html-m4
108a6f8e 25433
a90ef4bf
JM
25434install-html-m4: \
25435 configure-m4 \
25436 html-m4
108a6f8e 25437 @: $(MAKE); $(unstage)
a90ef4bf 25438 @[ -f ./m4/Makefile ] || exit 0; \
108a6f8e
CD
25439 r=`${PWD_COMMAND}`; export r; \
25440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25441 $(HOST_EXPORTS) \
25442 for flag in $(EXTRA_HOST_FLAGS) ; do \
25443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25444 done; \
22121df0 25445 echo "Doing install-html in m4"; \
a90ef4bf 25446 (cd $(HOST_SUBDIR)/m4 && \
108a6f8e
CD
25447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25449 "RANLIB=$${RANLIB}" \
0c24b341 25450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25451 install-html) \
25452 || exit 1
25453
a90ef4bf 25454@endif m4
108a6f8e 25455
a90ef4bf
JM
25456.PHONY: maybe-installcheck-m4 installcheck-m4
25457maybe-installcheck-m4:
25458@if m4
25459maybe-installcheck-m4: installcheck-m4
2a4cbe27 25460
a90ef4bf
JM
25461installcheck-m4: \
25462 configure-m4
0aed8855 25463 @: $(MAKE); $(unstage)
a90ef4bf 25464 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25465 r=`${PWD_COMMAND}`; export r; \
25466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25467 $(HOST_EXPORTS) \
b813574b 25468 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25470 done; \
22121df0 25471 echo "Doing installcheck in m4"; \
a90ef4bf 25472 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25475 "RANLIB=$${RANLIB}" \
0c24b341 25476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25477 installcheck) \
2a4cbe27
NN
25478 || exit 1
25479
a90ef4bf 25480@endif m4
2a4cbe27 25481
a90ef4bf
JM
25482.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
25483maybe-mostlyclean-m4:
25484@if m4
25485maybe-mostlyclean-m4: mostlyclean-m4
2a4cbe27 25486
a90ef4bf 25487mostlyclean-m4:
0aed8855 25488 @: $(MAKE); $(unstage)
a90ef4bf 25489 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25490 r=`${PWD_COMMAND}`; export r; \
25491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25492 $(HOST_EXPORTS) \
b813574b 25493 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25495 done; \
22121df0 25496 echo "Doing mostlyclean in m4"; \
a90ef4bf 25497 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25500 "RANLIB=$${RANLIB}" \
0c24b341 25501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25502 mostlyclean) \
2a4cbe27
NN
25503 || exit 1
25504
a90ef4bf 25505@endif m4
2a4cbe27 25506
a90ef4bf
JM
25507.PHONY: maybe-clean-m4 clean-m4
25508maybe-clean-m4:
25509@if m4
25510maybe-clean-m4: clean-m4
2a4cbe27 25511
a90ef4bf 25512clean-m4:
0aed8855 25513 @: $(MAKE); $(unstage)
a90ef4bf 25514 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25515 r=`${PWD_COMMAND}`; export r; \
25516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25517 $(HOST_EXPORTS) \
b813574b 25518 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25520 done; \
22121df0 25521 echo "Doing clean in m4"; \
a90ef4bf 25522 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25525 "RANLIB=$${RANLIB}" \
0c24b341 25526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25527 clean) \
2a4cbe27
NN
25528 || exit 1
25529
a90ef4bf 25530@endif m4
2a4cbe27 25531
a90ef4bf
JM
25532.PHONY: maybe-distclean-m4 distclean-m4
25533maybe-distclean-m4:
25534@if m4
25535maybe-distclean-m4: distclean-m4
2a4cbe27 25536
a90ef4bf 25537distclean-m4:
0aed8855 25538 @: $(MAKE); $(unstage)
a90ef4bf 25539 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25540 r=`${PWD_COMMAND}`; export r; \
25541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25542 $(HOST_EXPORTS) \
b813574b 25543 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25545 done; \
22121df0 25546 echo "Doing distclean in m4"; \
a90ef4bf 25547 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25550 "RANLIB=$${RANLIB}" \
0c24b341 25551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25552 distclean) \
2a4cbe27
NN
25553 || exit 1
25554
a90ef4bf 25555@endif m4
2a4cbe27 25556
a90ef4bf
JM
25557.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
25558maybe-maintainer-clean-m4:
25559@if m4
25560maybe-maintainer-clean-m4: maintainer-clean-m4
2a4cbe27 25561
a90ef4bf 25562maintainer-clean-m4:
0aed8855 25563 @: $(MAKE); $(unstage)
a90ef4bf 25564 @[ -f ./m4/Makefile ] || exit 0; \
b40e3958
L
25565 r=`${PWD_COMMAND}`; export r; \
25566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25567 $(HOST_EXPORTS) \
b813574b 25568 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25570 done; \
22121df0 25571 echo "Doing maintainer-clean in m4"; \
a90ef4bf 25572 (cd $(HOST_SUBDIR)/m4 && \
2a4cbe27
NN
25573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25575 "RANLIB=$${RANLIB}" \
0c24b341 25576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25577 maintainer-clean) \
2a4cbe27
NN
25578 || exit 1
25579
a90ef4bf 25580@endif m4
2a4cbe27 25581
2a4cbe27 25582
a7254363 25583
a90ef4bf
JM
25584.PHONY: configure-readline maybe-configure-readline
25585maybe-configure-readline:
4f0ef2d8 25586@if gcc-bootstrap
a90ef4bf 25587configure-readline: stage_current
4f0ef2d8 25588@endif gcc-bootstrap
a90ef4bf
JM
25589@if readline
25590maybe-configure-readline: configure-readline
25591configure-readline:
0aed8855 25592 @: $(MAKE); $(unstage)
c52c6897 25593 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 25595 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22121df0 25596 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline; \
1f53ca9a 25597 $(HOST_EXPORTS) \
a90ef4bf
JM
25598 echo Configuring in $(HOST_SUBDIR)/readline; \
25599 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4fa63067 25600 case $(srcdir) in \
b00612cc 25601 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 25602 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
b00612cc 25603 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 25604 esac; \
1b6c0831
L
25605 module_srcdir=readline; \
25606 $(SHELL) \
25607 $$s/$$module_srcdir/configure \
25608 --srcdir=$${topdir}/$$module_srcdir \
4b900473 25609 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 25610 --target=${target_alias} \
2a4cbe27 25611 || exit 1
a90ef4bf 25612@endif readline
2a4cbe27 25613
a7254363
PB
25614
25615
d545f33b
PB
25616
25617
a90ef4bf
JM
25618.PHONY: all-readline maybe-all-readline
25619maybe-all-readline:
4f0ef2d8 25620@if gcc-bootstrap
a90ef4bf 25621all-readline: stage_current
4f0ef2d8 25622@endif gcc-bootstrap
a90ef4bf
JM
25623@if readline
25624TARGET-readline=all
25625maybe-all-readline: all-readline
25626all-readline: configure-readline
0aed8855 25627 @: $(MAKE); $(unstage)
4fa63067
NN
25628 @r=`${PWD_COMMAND}`; export r; \
25629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 25630 $(HOST_EXPORTS) \
a90ef4bf 25631 (cd $(HOST_SUBDIR)/readline && \
b3676d82 25632 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
25633 $(TARGET-readline))
25634@endif readline
2a4cbe27 25635
a7254363 25636
d545f33b
PB
25637
25638
a90ef4bf
JM
25639.PHONY: check-readline maybe-check-readline
25640maybe-check-readline:
25641@if readline
25642maybe-check-readline: check-readline
2a4cbe27 25643
a90ef4bf 25644check-readline:
0aed8855 25645 @: $(MAKE); $(unstage)
4fa63067 25646 @r=`${PWD_COMMAND}`; export r; \
b40e3958 25647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 25648 $(HOST_EXPORTS) \
a90ef4bf 25649 (cd $(HOST_SUBDIR)/readline && \
b00612cc 25650 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 25651
a90ef4bf 25652@endif readline
2a4cbe27 25653
a90ef4bf
JM
25654.PHONY: install-readline maybe-install-readline
25655maybe-install-readline:
25656@if readline
25657maybe-install-readline: install-readline
2a4cbe27 25658
a90ef4bf 25659install-readline: installdirs
0aed8855 25660 @: $(MAKE); $(unstage)
4fa63067
NN
25661 @r=`${PWD_COMMAND}`; export r; \
25662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25663 $(HOST_EXPORTS) \
a90ef4bf 25664 (cd $(HOST_SUBDIR)/readline && \
2da12f12 25665 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 25666
a90ef4bf 25667@endif readline
9b980aa1 25668
a90ef4bf
JM
25669.PHONY: install-strip-readline maybe-install-strip-readline
25670maybe-install-strip-readline:
25671@if readline
25672maybe-install-strip-readline: install-strip-readline
25673
25674install-strip-readline: installdirs
9b980aa1
RW
25675 @: $(MAKE); $(unstage)
25676 @r=`${PWD_COMMAND}`; export r; \
25677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25678 $(HOST_EXPORTS) \
a90ef4bf 25679 (cd $(HOST_SUBDIR)/readline && \
9b980aa1
RW
25680 $(MAKE) $(FLAGS_TO_PASS) install-strip)
25681
a90ef4bf 25682@endif readline
9b980aa1 25683
56a8fe78 25684# Other targets (info, dvi, pdf, etc.)
4fa63067 25685
a90ef4bf
JM
25686.PHONY: maybe-info-readline info-readline
25687maybe-info-readline:
25688@if readline
25689maybe-info-readline: info-readline
4fa63067 25690
a90ef4bf
JM
25691info-readline: \
25692 configure-readline
0aed8855 25693 @: $(MAKE); $(unstage)
a90ef4bf 25694 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25695 r=`${PWD_COMMAND}`; export r; \
25696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25697 $(HOST_EXPORTS) \
b813574b 25698 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25700 done; \
22121df0 25701 echo "Doing info in readline"; \
a90ef4bf 25702 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25705 "RANLIB=$${RANLIB}" \
0c24b341 25706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25707 info) \
2a4cbe27
NN
25708 || exit 1
25709
a90ef4bf 25710@endif readline
2a4cbe27 25711
a90ef4bf
JM
25712.PHONY: maybe-dvi-readline dvi-readline
25713maybe-dvi-readline:
25714@if readline
25715maybe-dvi-readline: dvi-readline
2a4cbe27 25716
a90ef4bf
JM
25717dvi-readline: \
25718 configure-readline
0aed8855 25719 @: $(MAKE); $(unstage)
a90ef4bf 25720 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25721 r=`${PWD_COMMAND}`; export r; \
25722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25723 $(HOST_EXPORTS) \
b813574b 25724 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25726 done; \
22121df0 25727 echo "Doing dvi in readline"; \
a90ef4bf 25728 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25731 "RANLIB=$${RANLIB}" \
0c24b341 25732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25733 dvi) \
2a4cbe27
NN
25734 || exit 1
25735
a90ef4bf 25736@endif readline
2a4cbe27 25737
a90ef4bf
JM
25738.PHONY: maybe-pdf-readline pdf-readline
25739maybe-pdf-readline:
25740@if readline
25741maybe-pdf-readline: pdf-readline
56a8fe78 25742
a90ef4bf
JM
25743pdf-readline: \
25744 configure-readline
56a8fe78 25745 @: $(MAKE); $(unstage)
a90ef4bf 25746 @[ -f ./readline/Makefile ] || exit 0; \
56a8fe78
DD
25747 r=`${PWD_COMMAND}`; export r; \
25748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25749 $(HOST_EXPORTS) \
25750 for flag in $(EXTRA_HOST_FLAGS) ; do \
25751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25752 done; \
22121df0 25753 echo "Doing pdf in readline"; \
a90ef4bf 25754 (cd $(HOST_SUBDIR)/readline && \
56a8fe78
DD
25755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25757 "RANLIB=$${RANLIB}" \
0c24b341 25758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
25759 pdf) \
25760 || exit 1
25761
a90ef4bf 25762@endif readline
56a8fe78 25763
a90ef4bf
JM
25764.PHONY: maybe-html-readline html-readline
25765maybe-html-readline:
25766@if readline
25767maybe-html-readline: html-readline
6d389afc 25768
a90ef4bf
JM
25769html-readline: \
25770 configure-readline
0aed8855 25771 @: $(MAKE); $(unstage)
a90ef4bf 25772 @[ -f ./readline/Makefile ] || exit 0; \
6d389afc
MS
25773 r=`${PWD_COMMAND}`; export r; \
25774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
25775 $(HOST_EXPORTS) \
25776 for flag in $(EXTRA_HOST_FLAGS) ; do \
25777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25778 done; \
22121df0 25779 echo "Doing html in readline"; \
a90ef4bf 25780 (cd $(HOST_SUBDIR)/readline && \
6d389afc
MS
25781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25783 "RANLIB=$${RANLIB}" \
0c24b341 25784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
25785 html) \
25786 || exit 1
25787
a90ef4bf 25788@endif readline
6d389afc 25789
a90ef4bf
JM
25790.PHONY: maybe-TAGS-readline TAGS-readline
25791maybe-TAGS-readline:
25792@if readline
25793maybe-TAGS-readline: TAGS-readline
2a4cbe27 25794
a90ef4bf
JM
25795TAGS-readline: \
25796 configure-readline
0aed8855 25797 @: $(MAKE); $(unstage)
a90ef4bf 25798 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25799 r=`${PWD_COMMAND}`; export r; \
25800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25801 $(HOST_EXPORTS) \
b813574b 25802 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25804 done; \
22121df0 25805 echo "Doing TAGS in readline"; \
a90ef4bf 25806 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25809 "RANLIB=$${RANLIB}" \
0c24b341 25810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25811 TAGS) \
2a4cbe27
NN
25812 || exit 1
25813
a90ef4bf 25814@endif readline
2a4cbe27 25815
a90ef4bf
JM
25816.PHONY: maybe-install-info-readline install-info-readline
25817maybe-install-info-readline:
25818@if readline
25819maybe-install-info-readline: install-info-readline
2a4cbe27 25820
a90ef4bf
JM
25821install-info-readline: \
25822 configure-readline \
25823 info-readline
0aed8855 25824 @: $(MAKE); $(unstage)
a90ef4bf 25825 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25826 r=`${PWD_COMMAND}`; export r; \
25827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25828 $(HOST_EXPORTS) \
b813574b 25829 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25831 done; \
22121df0 25832 echo "Doing install-info in readline"; \
a90ef4bf 25833 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25836 "RANLIB=$${RANLIB}" \
0c24b341 25837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25838 install-info) \
2a4cbe27
NN
25839 || exit 1
25840
a90ef4bf 25841@endif readline
2a4cbe27 25842
a90ef4bf
JM
25843.PHONY: maybe-install-pdf-readline install-pdf-readline
25844maybe-install-pdf-readline:
25845@if readline
25846maybe-install-pdf-readline: install-pdf-readline
a3ca38d2 25847
a90ef4bf
JM
25848install-pdf-readline: \
25849 configure-readline \
25850 pdf-readline
a3ca38d2 25851 @: $(MAKE); $(unstage)
a90ef4bf 25852 @[ -f ./readline/Makefile ] || exit 0; \
a3ca38d2
DD
25853 r=`${PWD_COMMAND}`; export r; \
25854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25855 $(HOST_EXPORTS) \
25856 for flag in $(EXTRA_HOST_FLAGS) ; do \
25857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25858 done; \
22121df0 25859 echo "Doing install-pdf in readline"; \
a90ef4bf 25860 (cd $(HOST_SUBDIR)/readline && \
a3ca38d2
DD
25861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25863 "RANLIB=$${RANLIB}" \
0c24b341 25864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
25865 install-pdf) \
25866 || exit 1
25867
a90ef4bf 25868@endif readline
a3ca38d2 25869
a90ef4bf
JM
25870.PHONY: maybe-install-html-readline install-html-readline
25871maybe-install-html-readline:
25872@if readline
25873maybe-install-html-readline: install-html-readline
108a6f8e 25874
a90ef4bf
JM
25875install-html-readline: \
25876 configure-readline \
25877 html-readline
108a6f8e 25878 @: $(MAKE); $(unstage)
a90ef4bf 25879 @[ -f ./readline/Makefile ] || exit 0; \
108a6f8e
CD
25880 r=`${PWD_COMMAND}`; export r; \
25881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25882 $(HOST_EXPORTS) \
25883 for flag in $(EXTRA_HOST_FLAGS) ; do \
25884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25885 done; \
22121df0 25886 echo "Doing install-html in readline"; \
a90ef4bf 25887 (cd $(HOST_SUBDIR)/readline && \
108a6f8e
CD
25888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25890 "RANLIB=$${RANLIB}" \
0c24b341 25891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
25892 install-html) \
25893 || exit 1
25894
a90ef4bf 25895@endif readline
108a6f8e 25896
a90ef4bf
JM
25897.PHONY: maybe-installcheck-readline installcheck-readline
25898maybe-installcheck-readline:
25899@if readline
25900maybe-installcheck-readline: installcheck-readline
2a4cbe27 25901
a90ef4bf
JM
25902installcheck-readline: \
25903 configure-readline
0aed8855 25904 @: $(MAKE); $(unstage)
a90ef4bf 25905 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25906 r=`${PWD_COMMAND}`; export r; \
25907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25908 $(HOST_EXPORTS) \
b813574b 25909 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25911 done; \
22121df0 25912 echo "Doing installcheck in readline"; \
a90ef4bf 25913 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25916 "RANLIB=$${RANLIB}" \
0c24b341 25917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25918 installcheck) \
2a4cbe27
NN
25919 || exit 1
25920
a90ef4bf 25921@endif readline
2a4cbe27 25922
a90ef4bf
JM
25923.PHONY: maybe-mostlyclean-readline mostlyclean-readline
25924maybe-mostlyclean-readline:
25925@if readline
25926maybe-mostlyclean-readline: mostlyclean-readline
2a4cbe27 25927
a90ef4bf 25928mostlyclean-readline:
0aed8855 25929 @: $(MAKE); $(unstage)
a90ef4bf 25930 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25931 r=`${PWD_COMMAND}`; export r; \
25932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25933 $(HOST_EXPORTS) \
b813574b 25934 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25936 done; \
22121df0 25937 echo "Doing mostlyclean in readline"; \
a90ef4bf 25938 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25941 "RANLIB=$${RANLIB}" \
0c24b341 25942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25943 mostlyclean) \
2a4cbe27
NN
25944 || exit 1
25945
a90ef4bf 25946@endif readline
2a4cbe27 25947
a90ef4bf
JM
25948.PHONY: maybe-clean-readline clean-readline
25949maybe-clean-readline:
25950@if readline
25951maybe-clean-readline: clean-readline
2a4cbe27 25952
a90ef4bf 25953clean-readline:
0aed8855 25954 @: $(MAKE); $(unstage)
a90ef4bf 25955 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25956 r=`${PWD_COMMAND}`; export r; \
25957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25958 $(HOST_EXPORTS) \
b813574b 25959 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25961 done; \
22121df0 25962 echo "Doing clean in readline"; \
a90ef4bf 25963 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25966 "RANLIB=$${RANLIB}" \
0c24b341 25967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25968 clean) \
2a4cbe27
NN
25969 || exit 1
25970
a90ef4bf 25971@endif readline
2a4cbe27 25972
a90ef4bf
JM
25973.PHONY: maybe-distclean-readline distclean-readline
25974maybe-distclean-readline:
25975@if readline
25976maybe-distclean-readline: distclean-readline
2a4cbe27 25977
a90ef4bf 25978distclean-readline:
0aed8855 25979 @: $(MAKE); $(unstage)
a90ef4bf 25980 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
25981 r=`${PWD_COMMAND}`; export r; \
25982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 25983 $(HOST_EXPORTS) \
b813574b 25984 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
25985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25986 done; \
22121df0 25987 echo "Doing distclean in readline"; \
a90ef4bf 25988 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
25989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25991 "RANLIB=$${RANLIB}" \
0c24b341 25992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 25993 distclean) \
2a4cbe27
NN
25994 || exit 1
25995
a90ef4bf 25996@endif readline
2a4cbe27 25997
a90ef4bf
JM
25998.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
25999maybe-maintainer-clean-readline:
26000@if readline
26001maybe-maintainer-clean-readline: maintainer-clean-readline
2a4cbe27 26002
a90ef4bf 26003maintainer-clean-readline:
0aed8855 26004 @: $(MAKE); $(unstage)
a90ef4bf 26005 @[ -f ./readline/Makefile ] || exit 0; \
b40e3958
L
26006 r=`${PWD_COMMAND}`; export r; \
26007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26008 $(HOST_EXPORTS) \
b813574b 26009 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26011 done; \
22121df0 26012 echo "Doing maintainer-clean in readline"; \
a90ef4bf 26013 (cd $(HOST_SUBDIR)/readline && \
2a4cbe27
NN
26014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26016 "RANLIB=$${RANLIB}" \
0c24b341 26017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26018 maintainer-clean) \
2a4cbe27
NN
26019 || exit 1
26020
a90ef4bf 26021@endif readline
2a4cbe27 26022
2a4cbe27 26023
a7254363 26024
a90ef4bf
JM
26025.PHONY: configure-sid maybe-configure-sid
26026maybe-configure-sid:
4f0ef2d8 26027@if gcc-bootstrap
a90ef4bf 26028configure-sid: stage_current
4f0ef2d8 26029@endif gcc-bootstrap
a90ef4bf
JM
26030@if sid
26031maybe-configure-sid: configure-sid
26032configure-sid:
0aed8855 26033 @: $(MAKE); $(unstage)
c52c6897 26034 @r=`${PWD_COMMAND}`; export r; \
4fa63067 26035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26036 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
22121df0 26037 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid; \
1f53ca9a 26038 $(HOST_EXPORTS) \
a90ef4bf
JM
26039 echo Configuring in $(HOST_SUBDIR)/sid; \
26040 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4fa63067 26041 case $(srcdir) in \
b00612cc 26042 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26043 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
b00612cc 26044 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26045 esac; \
1b6c0831
L
26046 module_srcdir=sid; \
26047 $(SHELL) \
26048 $$s/$$module_srcdir/configure \
26049 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26050 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26051 --target=${target_alias} \
4fa63067 26052 || exit 1
a90ef4bf 26053@endif sid
2a4cbe27 26054
a7254363
PB
26055
26056
d545f33b
PB
26057
26058
a90ef4bf
JM
26059.PHONY: all-sid maybe-all-sid
26060maybe-all-sid:
4f0ef2d8 26061@if gcc-bootstrap
a90ef4bf 26062all-sid: stage_current
4f0ef2d8 26063@endif gcc-bootstrap
a90ef4bf
JM
26064@if sid
26065TARGET-sid=all
26066maybe-all-sid: all-sid
26067all-sid: configure-sid
0aed8855 26068 @: $(MAKE); $(unstage)
4fa63067
NN
26069 @r=`${PWD_COMMAND}`; export r; \
26070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26071 $(HOST_EXPORTS) \
a90ef4bf 26072 (cd $(HOST_SUBDIR)/sid && \
b3676d82 26073 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26074 $(TARGET-sid))
26075@endif sid
2a4cbe27 26076
a7254363 26077
d545f33b
PB
26078
26079
a90ef4bf
JM
26080.PHONY: check-sid maybe-check-sid
26081maybe-check-sid:
26082@if sid
26083maybe-check-sid: check-sid
2a4cbe27 26084
a90ef4bf 26085check-sid:
0aed8855 26086 @: $(MAKE); $(unstage)
4fa63067 26087 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26089 $(HOST_EXPORTS) \
a90ef4bf 26090 (cd $(HOST_SUBDIR)/sid && \
b00612cc 26091 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26092
a90ef4bf 26093@endif sid
2a4cbe27 26094
a90ef4bf
JM
26095.PHONY: install-sid maybe-install-sid
26096maybe-install-sid:
26097@if sid
26098maybe-install-sid: install-sid
2a4cbe27 26099
a90ef4bf 26100install-sid: installdirs
0aed8855 26101 @: $(MAKE); $(unstage)
4fa63067 26102 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26104 $(HOST_EXPORTS) \
a90ef4bf 26105 (cd $(HOST_SUBDIR)/sid && \
2da12f12 26106 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 26107
a90ef4bf 26108@endif sid
2a4cbe27 26109
a90ef4bf
JM
26110.PHONY: install-strip-sid maybe-install-strip-sid
26111maybe-install-strip-sid:
26112@if sid
26113maybe-install-strip-sid: install-strip-sid
9b980aa1 26114
a90ef4bf 26115install-strip-sid: installdirs
9b980aa1
RW
26116 @: $(MAKE); $(unstage)
26117 @r=`${PWD_COMMAND}`; export r; \
26118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26119 $(HOST_EXPORTS) \
a90ef4bf 26120 (cd $(HOST_SUBDIR)/sid && \
9b980aa1
RW
26121 $(MAKE) $(FLAGS_TO_PASS) install-strip)
26122
a90ef4bf 26123@endif sid
9b980aa1 26124
56a8fe78 26125# Other targets (info, dvi, pdf, etc.)
2a4cbe27 26126
a90ef4bf
JM
26127.PHONY: maybe-info-sid info-sid
26128maybe-info-sid:
26129@if sid
26130maybe-info-sid: info-sid
4fa63067 26131
a90ef4bf
JM
26132info-sid: \
26133 configure-sid
0aed8855 26134 @: $(MAKE); $(unstage)
a90ef4bf 26135 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26136 r=`${PWD_COMMAND}`; export r; \
26137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26138 $(HOST_EXPORTS) \
b813574b 26139 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26141 done; \
22121df0 26142 echo "Doing info in sid"; \
a90ef4bf 26143 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26146 "RANLIB=$${RANLIB}" \
0c24b341 26147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26148 info) \
2a4cbe27
NN
26149 || exit 1
26150
a90ef4bf 26151@endif sid
2a4cbe27 26152
a90ef4bf
JM
26153.PHONY: maybe-dvi-sid dvi-sid
26154maybe-dvi-sid:
26155@if sid
26156maybe-dvi-sid: dvi-sid
2a4cbe27 26157
a90ef4bf
JM
26158dvi-sid: \
26159 configure-sid
0aed8855 26160 @: $(MAKE); $(unstage)
a90ef4bf 26161 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26162 r=`${PWD_COMMAND}`; export r; \
26163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26164 $(HOST_EXPORTS) \
b813574b 26165 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26167 done; \
22121df0 26168 echo "Doing dvi in sid"; \
a90ef4bf 26169 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26172 "RANLIB=$${RANLIB}" \
0c24b341 26173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26174 dvi) \
2a4cbe27
NN
26175 || exit 1
26176
a90ef4bf 26177@endif sid
2a4cbe27 26178
a90ef4bf
JM
26179.PHONY: maybe-pdf-sid pdf-sid
26180maybe-pdf-sid:
26181@if sid
26182maybe-pdf-sid: pdf-sid
56a8fe78 26183
a90ef4bf
JM
26184pdf-sid: \
26185 configure-sid
56a8fe78 26186 @: $(MAKE); $(unstage)
a90ef4bf 26187 @[ -f ./sid/Makefile ] || exit 0; \
56a8fe78
DD
26188 r=`${PWD_COMMAND}`; export r; \
26189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26190 $(HOST_EXPORTS) \
26191 for flag in $(EXTRA_HOST_FLAGS) ; do \
26192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26193 done; \
22121df0 26194 echo "Doing pdf in sid"; \
a90ef4bf 26195 (cd $(HOST_SUBDIR)/sid && \
56a8fe78
DD
26196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26198 "RANLIB=$${RANLIB}" \
0c24b341 26199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26200 pdf) \
26201 || exit 1
26202
a90ef4bf 26203@endif sid
56a8fe78 26204
a90ef4bf
JM
26205.PHONY: maybe-html-sid html-sid
26206maybe-html-sid:
26207@if sid
26208maybe-html-sid: html-sid
6d389afc 26209
a90ef4bf
JM
26210html-sid: \
26211 configure-sid
0aed8855 26212 @: $(MAKE); $(unstage)
a90ef4bf 26213 @[ -f ./sid/Makefile ] || exit 0; \
6d389afc
MS
26214 r=`${PWD_COMMAND}`; export r; \
26215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26216 $(HOST_EXPORTS) \
26217 for flag in $(EXTRA_HOST_FLAGS) ; do \
26218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26219 done; \
22121df0 26220 echo "Doing html in sid"; \
a90ef4bf 26221 (cd $(HOST_SUBDIR)/sid && \
6d389afc
MS
26222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26224 "RANLIB=$${RANLIB}" \
0c24b341 26225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26226 html) \
26227 || exit 1
26228
a90ef4bf 26229@endif sid
6d389afc 26230
a90ef4bf
JM
26231.PHONY: maybe-TAGS-sid TAGS-sid
26232maybe-TAGS-sid:
26233@if sid
26234maybe-TAGS-sid: TAGS-sid
2a4cbe27 26235
a90ef4bf
JM
26236TAGS-sid: \
26237 configure-sid
0aed8855 26238 @: $(MAKE); $(unstage)
a90ef4bf 26239 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26240 r=`${PWD_COMMAND}`; export r; \
26241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26242 $(HOST_EXPORTS) \
b813574b 26243 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26245 done; \
22121df0 26246 echo "Doing TAGS in sid"; \
a90ef4bf 26247 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26250 "RANLIB=$${RANLIB}" \
0c24b341 26251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26252 TAGS) \
2a4cbe27
NN
26253 || exit 1
26254
a90ef4bf 26255@endif sid
2a4cbe27 26256
a90ef4bf
JM
26257.PHONY: maybe-install-info-sid install-info-sid
26258maybe-install-info-sid:
26259@if sid
26260maybe-install-info-sid: install-info-sid
2a4cbe27 26261
a90ef4bf
JM
26262install-info-sid: \
26263 configure-sid \
26264 info-sid
0aed8855 26265 @: $(MAKE); $(unstage)
a90ef4bf 26266 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26267 r=`${PWD_COMMAND}`; export r; \
26268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26269 $(HOST_EXPORTS) \
b813574b 26270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26272 done; \
22121df0 26273 echo "Doing install-info in sid"; \
a90ef4bf 26274 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26277 "RANLIB=$${RANLIB}" \
0c24b341 26278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26279 install-info) \
2a4cbe27
NN
26280 || exit 1
26281
a90ef4bf 26282@endif sid
2a4cbe27 26283
a90ef4bf
JM
26284.PHONY: maybe-install-pdf-sid install-pdf-sid
26285maybe-install-pdf-sid:
26286@if sid
26287maybe-install-pdf-sid: install-pdf-sid
a3ca38d2 26288
a90ef4bf
JM
26289install-pdf-sid: \
26290 configure-sid \
26291 pdf-sid
a3ca38d2 26292 @: $(MAKE); $(unstage)
a90ef4bf 26293 @[ -f ./sid/Makefile ] || exit 0; \
a3ca38d2
DD
26294 r=`${PWD_COMMAND}`; export r; \
26295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26296 $(HOST_EXPORTS) \
26297 for flag in $(EXTRA_HOST_FLAGS) ; do \
26298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26299 done; \
22121df0 26300 echo "Doing install-pdf in sid"; \
a90ef4bf 26301 (cd $(HOST_SUBDIR)/sid && \
a3ca38d2
DD
26302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26304 "RANLIB=$${RANLIB}" \
0c24b341 26305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26306 install-pdf) \
26307 || exit 1
26308
a90ef4bf 26309@endif sid
a3ca38d2 26310
a90ef4bf
JM
26311.PHONY: maybe-install-html-sid install-html-sid
26312maybe-install-html-sid:
26313@if sid
26314maybe-install-html-sid: install-html-sid
108a6f8e 26315
a90ef4bf
JM
26316install-html-sid: \
26317 configure-sid \
26318 html-sid
108a6f8e 26319 @: $(MAKE); $(unstage)
a90ef4bf 26320 @[ -f ./sid/Makefile ] || exit 0; \
108a6f8e
CD
26321 r=`${PWD_COMMAND}`; export r; \
26322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26323 $(HOST_EXPORTS) \
26324 for flag in $(EXTRA_HOST_FLAGS) ; do \
26325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26326 done; \
22121df0 26327 echo "Doing install-html in sid"; \
a90ef4bf 26328 (cd $(HOST_SUBDIR)/sid && \
108a6f8e
CD
26329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26331 "RANLIB=$${RANLIB}" \
0c24b341 26332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26333 install-html) \
26334 || exit 1
26335
a90ef4bf 26336@endif sid
108a6f8e 26337
a90ef4bf
JM
26338.PHONY: maybe-installcheck-sid installcheck-sid
26339maybe-installcheck-sid:
26340@if sid
26341maybe-installcheck-sid: installcheck-sid
2a4cbe27 26342
a90ef4bf
JM
26343installcheck-sid: \
26344 configure-sid
0aed8855 26345 @: $(MAKE); $(unstage)
a90ef4bf 26346 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26347 r=`${PWD_COMMAND}`; export r; \
26348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26349 $(HOST_EXPORTS) \
b813574b 26350 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26352 done; \
22121df0 26353 echo "Doing installcheck in sid"; \
a90ef4bf 26354 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26357 "RANLIB=$${RANLIB}" \
0c24b341 26358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26359 installcheck) \
2a4cbe27
NN
26360 || exit 1
26361
a90ef4bf 26362@endif sid
2a4cbe27 26363
a90ef4bf
JM
26364.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26365maybe-mostlyclean-sid:
26366@if sid
26367maybe-mostlyclean-sid: mostlyclean-sid
2a4cbe27 26368
a90ef4bf 26369mostlyclean-sid:
0aed8855 26370 @: $(MAKE); $(unstage)
a90ef4bf 26371 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26372 r=`${PWD_COMMAND}`; export r; \
26373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26374 $(HOST_EXPORTS) \
b813574b 26375 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26377 done; \
22121df0 26378 echo "Doing mostlyclean in sid"; \
a90ef4bf 26379 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26382 "RANLIB=$${RANLIB}" \
0c24b341 26383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26384 mostlyclean) \
2a4cbe27
NN
26385 || exit 1
26386
a90ef4bf 26387@endif sid
2a4cbe27 26388
a90ef4bf
JM
26389.PHONY: maybe-clean-sid clean-sid
26390maybe-clean-sid:
26391@if sid
26392maybe-clean-sid: clean-sid
2a4cbe27 26393
a90ef4bf 26394clean-sid:
0aed8855 26395 @: $(MAKE); $(unstage)
a90ef4bf 26396 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26397 r=`${PWD_COMMAND}`; export r; \
26398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26399 $(HOST_EXPORTS) \
b813574b 26400 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26402 done; \
22121df0 26403 echo "Doing clean in sid"; \
a90ef4bf 26404 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26407 "RANLIB=$${RANLIB}" \
0c24b341 26408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26409 clean) \
2a4cbe27
NN
26410 || exit 1
26411
a90ef4bf 26412@endif sid
2a4cbe27 26413
a90ef4bf
JM
26414.PHONY: maybe-distclean-sid distclean-sid
26415maybe-distclean-sid:
26416@if sid
26417maybe-distclean-sid: distclean-sid
2a4cbe27 26418
a90ef4bf 26419distclean-sid:
0aed8855 26420 @: $(MAKE); $(unstage)
a90ef4bf 26421 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26422 r=`${PWD_COMMAND}`; export r; \
26423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26424 $(HOST_EXPORTS) \
b813574b 26425 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26427 done; \
22121df0 26428 echo "Doing distclean in sid"; \
a90ef4bf 26429 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26432 "RANLIB=$${RANLIB}" \
0c24b341 26433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26434 distclean) \
2a4cbe27
NN
26435 || exit 1
26436
a90ef4bf 26437@endif sid
2a4cbe27 26438
a90ef4bf
JM
26439.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26440maybe-maintainer-clean-sid:
26441@if sid
26442maybe-maintainer-clean-sid: maintainer-clean-sid
2a4cbe27 26443
a90ef4bf 26444maintainer-clean-sid:
0aed8855 26445 @: $(MAKE); $(unstage)
a90ef4bf 26446 @[ -f ./sid/Makefile ] || exit 0; \
b40e3958
L
26447 r=`${PWD_COMMAND}`; export r; \
26448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26449 $(HOST_EXPORTS) \
b813574b 26450 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26452 done; \
22121df0 26453 echo "Doing maintainer-clean in sid"; \
a90ef4bf 26454 (cd $(HOST_SUBDIR)/sid && \
2a4cbe27
NN
26455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26457 "RANLIB=$${RANLIB}" \
0c24b341 26458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26459 maintainer-clean) \
2a4cbe27
NN
26460 || exit 1
26461
a90ef4bf 26462@endif sid
2a4cbe27 26463
a2592b1b 26464
a7254363 26465
a90ef4bf
JM
26466.PHONY: configure-sim maybe-configure-sim
26467maybe-configure-sim:
4f0ef2d8 26468@if gcc-bootstrap
a90ef4bf 26469configure-sim: stage_current
4f0ef2d8 26470@endif gcc-bootstrap
a90ef4bf
JM
26471@if sim
26472maybe-configure-sim: configure-sim
26473configure-sim:
26474 @: $(MAKE); $(unstage)
c52c6897
PB
26475 @r=`${PWD_COMMAND}`; export r; \
26476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26477 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
22121df0 26478 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim; \
1f53ca9a 26479 $(HOST_EXPORTS) \
a90ef4bf
JM
26480 echo Configuring in $(HOST_SUBDIR)/sim; \
26481 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4fa63067 26482 case $(srcdir) in \
b00612cc 26483 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26484 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
b00612cc 26485 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26486 esac; \
1b6c0831
L
26487 module_srcdir=sim; \
26488 $(SHELL) \
26489 $$s/$$module_srcdir/configure \
26490 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26491 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26492 --target=${target_alias} \
a2592b1b 26493 || exit 1
a90ef4bf 26494@endif sim
a2592b1b 26495
a7254363
PB
26496
26497
a90ef4bf
JM
26498
26499
26500.PHONY: all-sim maybe-all-sim
26501maybe-all-sim:
26502@if gcc-bootstrap
26503all-sim: stage_current
26504@endif gcc-bootstrap
26505@if sim
26506TARGET-sim=all
26507maybe-all-sim: all-sim
26508all-sim: configure-sim
26509 @: $(MAKE); $(unstage)
c52c6897
PB
26510 @r=`${PWD_COMMAND}`; export r; \
26511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
26512 $(HOST_EXPORTS) \
26513 (cd $(HOST_SUBDIR)/sim && \
b3676d82 26514 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26515 $(TARGET-sim))
26516@endif sim
d545f33b 26517
a90ef4bf
JM
26518
26519
26520
26521.PHONY: check-sim maybe-check-sim
26522maybe-check-sim:
26523@if sim
26524maybe-check-sim: check-sim
26525
26526check-sim:
26527 @: $(MAKE); $(unstage)
c52c6897
PB
26528 @r=`${PWD_COMMAND}`; export r; \
26529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26530 $(HOST_EXPORTS) \
a90ef4bf
JM
26531 (cd $(HOST_SUBDIR)/sim && \
26532 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 26533
a90ef4bf
JM
26534@endif sim
26535
26536.PHONY: install-sim maybe-install-sim
26537maybe-install-sim:
26538@if sim
26539maybe-install-sim: install-sim
26540
26541install-sim: installdirs
26542 @: $(MAKE); $(unstage)
c52c6897
PB
26543 @r=`${PWD_COMMAND}`; export r; \
26544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26545 $(HOST_EXPORTS) \
a90ef4bf
JM
26546 (cd $(HOST_SUBDIR)/sim && \
26547 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 26548
a90ef4bf
JM
26549@endif sim
26550
26551.PHONY: install-strip-sim maybe-install-strip-sim
26552maybe-install-strip-sim:
26553@if sim
26554maybe-install-strip-sim: install-strip-sim
26555
26556install-strip-sim: installdirs
26557 @: $(MAKE); $(unstage)
c52c6897
PB
26558 @r=`${PWD_COMMAND}`; export r; \
26559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 26560 $(HOST_EXPORTS) \
a90ef4bf
JM
26561 (cd $(HOST_SUBDIR)/sim && \
26562 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 26563
a90ef4bf 26564@endif sim
9b980aa1 26565
56a8fe78 26566# Other targets (info, dvi, pdf, etc.)
4fa63067 26567
a90ef4bf
JM
26568.PHONY: maybe-info-sim info-sim
26569maybe-info-sim:
26570@if sim
26571maybe-info-sim: info-sim
4fa63067 26572
a90ef4bf
JM
26573info-sim: \
26574 configure-sim
26575 @: $(MAKE); $(unstage)
26576 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26577 r=`${PWD_COMMAND}`; export r; \
26578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26579 $(HOST_EXPORTS) \
b813574b 26580 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26582 done; \
22121df0 26583 echo "Doing info in sim"; \
a90ef4bf 26584 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26587 "RANLIB=$${RANLIB}" \
0c24b341 26588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26589 info) \
2a4cbe27
NN
26590 || exit 1
26591
a90ef4bf 26592@endif sim
2a4cbe27 26593
a90ef4bf
JM
26594.PHONY: maybe-dvi-sim dvi-sim
26595maybe-dvi-sim:
26596@if sim
26597maybe-dvi-sim: dvi-sim
2a4cbe27 26598
a90ef4bf
JM
26599dvi-sim: \
26600 configure-sim
26601 @: $(MAKE); $(unstage)
26602 @[ -f ./sim/Makefile ] || exit 0; \
b813574b 26603 r=`${PWD_COMMAND}`; export r; \
b40e3958 26604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26605 $(HOST_EXPORTS) \
b813574b 26606 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26608 done; \
22121df0 26609 echo "Doing dvi in sim"; \
a90ef4bf 26610 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26613 "RANLIB=$${RANLIB}" \
0c24b341 26614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26615 dvi) \
2a4cbe27
NN
26616 || exit 1
26617
a90ef4bf 26618@endif sim
2a4cbe27 26619
a90ef4bf
JM
26620.PHONY: maybe-pdf-sim pdf-sim
26621maybe-pdf-sim:
26622@if sim
26623maybe-pdf-sim: pdf-sim
56a8fe78 26624
a90ef4bf
JM
26625pdf-sim: \
26626 configure-sim
26627 @: $(MAKE); $(unstage)
26628 @[ -f ./sim/Makefile ] || exit 0; \
56a8fe78
DD
26629 r=`${PWD_COMMAND}`; export r; \
26630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26631 $(HOST_EXPORTS) \
26632 for flag in $(EXTRA_HOST_FLAGS) ; do \
26633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26634 done; \
22121df0 26635 echo "Doing pdf in sim"; \
a90ef4bf 26636 (cd $(HOST_SUBDIR)/sim && \
56a8fe78
DD
26637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26639 "RANLIB=$${RANLIB}" \
0c24b341 26640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
26641 pdf) \
26642 || exit 1
26643
a90ef4bf 26644@endif sim
56a8fe78 26645
a90ef4bf
JM
26646.PHONY: maybe-html-sim html-sim
26647maybe-html-sim:
26648@if sim
26649maybe-html-sim: html-sim
6d389afc 26650
a90ef4bf
JM
26651html-sim: \
26652 configure-sim
26653 @: $(MAKE); $(unstage)
26654 @[ -f ./sim/Makefile ] || exit 0; \
6d389afc
MS
26655 r=`${PWD_COMMAND}`; export r; \
26656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
26657 $(HOST_EXPORTS) \
26658 for flag in $(EXTRA_HOST_FLAGS) ; do \
26659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26660 done; \
22121df0 26661 echo "Doing html in sim"; \
a90ef4bf 26662 (cd $(HOST_SUBDIR)/sim && \
6d389afc
MS
26663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26665 "RANLIB=$${RANLIB}" \
0c24b341 26666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
26667 html) \
26668 || exit 1
26669
a90ef4bf 26670@endif sim
6d389afc 26671
a90ef4bf
JM
26672.PHONY: maybe-TAGS-sim TAGS-sim
26673maybe-TAGS-sim:
26674@if sim
26675maybe-TAGS-sim: TAGS-sim
2a4cbe27 26676
a90ef4bf
JM
26677TAGS-sim: \
26678 configure-sim
26679 @: $(MAKE); $(unstage)
26680 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26681 r=`${PWD_COMMAND}`; export r; \
26682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26683 $(HOST_EXPORTS) \
b813574b 26684 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26686 done; \
22121df0 26687 echo "Doing TAGS in sim"; \
a90ef4bf 26688 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26691 "RANLIB=$${RANLIB}" \
0c24b341 26692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26693 TAGS) \
2a4cbe27
NN
26694 || exit 1
26695
a90ef4bf 26696@endif sim
2a4cbe27 26697
a90ef4bf
JM
26698.PHONY: maybe-install-info-sim install-info-sim
26699maybe-install-info-sim:
26700@if sim
26701maybe-install-info-sim: install-info-sim
2a4cbe27 26702
a90ef4bf
JM
26703install-info-sim: \
26704 configure-sim \
26705 info-sim
26706 @: $(MAKE); $(unstage)
26707 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26708 r=`${PWD_COMMAND}`; export r; \
26709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26710 $(HOST_EXPORTS) \
b813574b 26711 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26713 done; \
22121df0 26714 echo "Doing install-info in sim"; \
a90ef4bf
JM
26715 (cd $(HOST_SUBDIR)/sim && \
26716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2a4cbe27
NN
26717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26718 "RANLIB=$${RANLIB}" \
0c24b341 26719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26720 install-info) \
2a4cbe27
NN
26721 || exit 1
26722
a90ef4bf 26723@endif sim
2a4cbe27 26724
a90ef4bf
JM
26725.PHONY: maybe-install-pdf-sim install-pdf-sim
26726maybe-install-pdf-sim:
26727@if sim
26728maybe-install-pdf-sim: install-pdf-sim
a3ca38d2 26729
a90ef4bf
JM
26730install-pdf-sim: \
26731 configure-sim \
26732 pdf-sim
26733 @: $(MAKE); $(unstage)
26734 @[ -f ./sim/Makefile ] || exit 0; \
a3ca38d2
DD
26735 r=`${PWD_COMMAND}`; export r; \
26736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26737 $(HOST_EXPORTS) \
26738 for flag in $(EXTRA_HOST_FLAGS) ; do \
26739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26740 done; \
22121df0 26741 echo "Doing install-pdf in sim"; \
a90ef4bf 26742 (cd $(HOST_SUBDIR)/sim && \
a3ca38d2
DD
26743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26745 "RANLIB=$${RANLIB}" \
0c24b341 26746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
26747 install-pdf) \
26748 || exit 1
26749
a90ef4bf 26750@endif sim
a3ca38d2 26751
a90ef4bf
JM
26752.PHONY: maybe-install-html-sim install-html-sim
26753maybe-install-html-sim:
26754@if sim
26755maybe-install-html-sim: install-html-sim
108a6f8e 26756
a90ef4bf
JM
26757install-html-sim: \
26758 configure-sim \
26759 html-sim
26760 @: $(MAKE); $(unstage)
26761 @[ -f ./sim/Makefile ] || exit 0; \
108a6f8e
CD
26762 r=`${PWD_COMMAND}`; export r; \
26763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26764 $(HOST_EXPORTS) \
26765 for flag in $(EXTRA_HOST_FLAGS) ; do \
26766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26767 done; \
22121df0 26768 echo "Doing install-html in sim"; \
a90ef4bf 26769 (cd $(HOST_SUBDIR)/sim && \
108a6f8e
CD
26770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26772 "RANLIB=$${RANLIB}" \
0c24b341 26773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
26774 install-html) \
26775 || exit 1
26776
a90ef4bf 26777@endif sim
108a6f8e 26778
a90ef4bf
JM
26779.PHONY: maybe-installcheck-sim installcheck-sim
26780maybe-installcheck-sim:
26781@if sim
26782maybe-installcheck-sim: installcheck-sim
2a4cbe27 26783
a90ef4bf
JM
26784installcheck-sim: \
26785 configure-sim
26786 @: $(MAKE); $(unstage)
26787 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26788 r=`${PWD_COMMAND}`; export r; \
26789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26790 $(HOST_EXPORTS) \
b813574b 26791 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26793 done; \
22121df0 26794 echo "Doing installcheck in sim"; \
a90ef4bf 26795 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26798 "RANLIB=$${RANLIB}" \
0c24b341 26799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26800 installcheck) \
2a4cbe27
NN
26801 || exit 1
26802
a90ef4bf 26803@endif sim
2a4cbe27 26804
a90ef4bf
JM
26805.PHONY: maybe-mostlyclean-sim mostlyclean-sim
26806maybe-mostlyclean-sim:
26807@if sim
26808maybe-mostlyclean-sim: mostlyclean-sim
2a4cbe27 26809
a90ef4bf
JM
26810mostlyclean-sim:
26811 @: $(MAKE); $(unstage)
26812 @[ -f ./sim/Makefile ] || exit 0; \
b813574b
PB
26813 r=`${PWD_COMMAND}`; export r; \
26814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b
PB
26815 $(HOST_EXPORTS) \
26816 for flag in $(EXTRA_HOST_FLAGS) ; do \
26817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26818 done; \
22121df0 26819 echo "Doing mostlyclean in sim"; \
a90ef4bf 26820 (cd $(HOST_SUBDIR)/sim && \
b813574b
PB
26821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26823 "RANLIB=$${RANLIB}" \
0c24b341 26824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b
PB
26825 mostlyclean) \
26826 || exit 1
4fa63067 26827
a90ef4bf 26828@endif sim
4fa63067 26829
a90ef4bf
JM
26830.PHONY: maybe-clean-sim clean-sim
26831maybe-clean-sim:
26832@if sim
26833maybe-clean-sim: clean-sim
4fa63067 26834
a90ef4bf
JM
26835clean-sim:
26836 @: $(MAKE); $(unstage)
26837 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26838 r=`${PWD_COMMAND}`; export r; \
26839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26840 $(HOST_EXPORTS) \
b813574b 26841 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26843 done; \
22121df0 26844 echo "Doing clean in sim"; \
a90ef4bf 26845 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26848 "RANLIB=$${RANLIB}" \
0c24b341 26849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26850 clean) \
2a4cbe27
NN
26851 || exit 1
26852
a90ef4bf 26853@endif sim
2a4cbe27 26854
a90ef4bf
JM
26855.PHONY: maybe-distclean-sim distclean-sim
26856maybe-distclean-sim:
26857@if sim
26858maybe-distclean-sim: distclean-sim
2a4cbe27 26859
a90ef4bf
JM
26860distclean-sim:
26861 @: $(MAKE); $(unstage)
26862 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26863 r=`${PWD_COMMAND}`; export r; \
26864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26865 $(HOST_EXPORTS) \
b813574b 26866 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26868 done; \
22121df0 26869 echo "Doing distclean in sim"; \
a90ef4bf 26870 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26873 "RANLIB=$${RANLIB}" \
0c24b341 26874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26875 distclean) \
2a4cbe27
NN
26876 || exit 1
26877
a90ef4bf 26878@endif sim
2a4cbe27 26879
a90ef4bf
JM
26880.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
26881maybe-maintainer-clean-sim:
26882@if sim
26883maybe-maintainer-clean-sim: maintainer-clean-sim
2a4cbe27 26884
a90ef4bf
JM
26885maintainer-clean-sim:
26886 @: $(MAKE); $(unstage)
26887 @[ -f ./sim/Makefile ] || exit 0; \
b40e3958
L
26888 r=`${PWD_COMMAND}`; export r; \
26889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 26890 $(HOST_EXPORTS) \
b813574b 26891 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
26892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26893 done; \
22121df0 26894 echo "Doing maintainer-clean in sim"; \
a90ef4bf 26895 (cd $(HOST_SUBDIR)/sim && \
2a4cbe27
NN
26896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26898 "RANLIB=$${RANLIB}" \
0c24b341 26899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 26900 maintainer-clean) \
2a4cbe27
NN
26901 || exit 1
26902
a90ef4bf 26903@endif sim
2a4cbe27 26904
2a4cbe27 26905
a7254363 26906
a90ef4bf
JM
26907.PHONY: configure-texinfo maybe-configure-texinfo
26908maybe-configure-texinfo:
4f0ef2d8 26909@if gcc-bootstrap
a90ef4bf 26910configure-texinfo: stage_current
4f0ef2d8 26911@endif gcc-bootstrap
a90ef4bf
JM
26912@if texinfo
26913maybe-configure-texinfo: configure-texinfo
26914configure-texinfo:
0aed8855 26915 @: $(MAKE); $(unstage)
c52c6897 26916 @r=`${PWD_COMMAND}`; export r; \
b40e3958 26917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 26918 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
22121df0 26919 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo; \
1f53ca9a 26920 $(HOST_EXPORTS) \
a90ef4bf
JM
26921 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26922 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4fa63067 26923 case $(srcdir) in \
b00612cc 26924 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 26925 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
b00612cc 26926 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 26927 esac; \
1b6c0831
L
26928 module_srcdir=texinfo; \
26929 $(SHELL) \
26930 $$s/$$module_srcdir/configure \
26931 --srcdir=$${topdir}/$$module_srcdir \
4b900473 26932 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 26933 --target=${target_alias} \
2a4cbe27 26934 || exit 1
a90ef4bf 26935@endif texinfo
2a4cbe27 26936
a7254363
PB
26937
26938
d545f33b
PB
26939
26940
a90ef4bf
JM
26941.PHONY: all-texinfo maybe-all-texinfo
26942maybe-all-texinfo:
4f0ef2d8 26943@if gcc-bootstrap
a90ef4bf 26944all-texinfo: stage_current
4f0ef2d8 26945@endif gcc-bootstrap
a90ef4bf
JM
26946@if texinfo
26947TARGET-texinfo=all
26948maybe-all-texinfo: all-texinfo
26949all-texinfo: configure-texinfo
0aed8855 26950 @: $(MAKE); $(unstage)
4fa63067
NN
26951 @r=`${PWD_COMMAND}`; export r; \
26952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 26953 $(HOST_EXPORTS) \
a90ef4bf 26954 (cd $(HOST_SUBDIR)/texinfo && \
b3676d82 26955 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
26956 $(TARGET-texinfo))
26957@endif texinfo
4fa63067 26958
a7254363 26959
d545f33b
PB
26960
26961
a90ef4bf
JM
26962.PHONY: check-texinfo maybe-check-texinfo
26963maybe-check-texinfo:
26964@if texinfo
26965maybe-check-texinfo: check-texinfo
2a4cbe27 26966
a90ef4bf 26967check-texinfo:
0aed8855 26968 @: $(MAKE); $(unstage)
4fa63067
NN
26969 @r=`${PWD_COMMAND}`; export r; \
26970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 26971 $(HOST_EXPORTS) \
a90ef4bf 26972 (cd $(HOST_SUBDIR)/texinfo && \
b00612cc 26973 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 26974
a90ef4bf 26975@endif texinfo
4fa63067 26976
a90ef4bf
JM
26977.PHONY: install-texinfo maybe-install-texinfo
26978maybe-install-texinfo:
26979@if texinfo
26980maybe-install-texinfo: install-texinfo
4fa63067 26981
a90ef4bf 26982install-texinfo:
4fa63067 26983
a90ef4bf 26984@endif texinfo
4fa63067 26985
a90ef4bf
JM
26986.PHONY: install-strip-texinfo maybe-install-strip-texinfo
26987maybe-install-strip-texinfo:
26988@if texinfo
26989maybe-install-strip-texinfo: install-strip-texinfo
9b980aa1 26990
a90ef4bf 26991install-strip-texinfo:
9b980aa1 26992
a90ef4bf 26993@endif texinfo
9b980aa1 26994
56a8fe78 26995# Other targets (info, dvi, pdf, etc.)
4fa63067 26996
a90ef4bf
JM
26997.PHONY: maybe-info-texinfo info-texinfo
26998maybe-info-texinfo:
26999@if texinfo
27000maybe-info-texinfo: info-texinfo
4fa63067 27001
a90ef4bf
JM
27002info-texinfo: \
27003 configure-texinfo
0aed8855 27004 @: $(MAKE); $(unstage)
a90ef4bf 27005 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27006 r=`${PWD_COMMAND}`; export r; \
27007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27008 $(HOST_EXPORTS) \
b813574b 27009 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27011 done; \
22121df0 27012 echo "Doing info in texinfo"; \
a90ef4bf 27013 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27016 "RANLIB=$${RANLIB}" \
0c24b341 27017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27018 info) \
2a4cbe27
NN
27019 || exit 1
27020
a90ef4bf 27021@endif texinfo
2a4cbe27 27022
a90ef4bf
JM
27023.PHONY: maybe-dvi-texinfo dvi-texinfo
27024maybe-dvi-texinfo:
27025@if texinfo
27026maybe-dvi-texinfo: dvi-texinfo
2a4cbe27 27027
a90ef4bf
JM
27028dvi-texinfo: \
27029 configure-texinfo
0aed8855 27030 @: $(MAKE); $(unstage)
a90ef4bf 27031 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27032 r=`${PWD_COMMAND}`; export r; \
27033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27034 $(HOST_EXPORTS) \
b813574b 27035 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27037 done; \
22121df0 27038 echo "Doing dvi in texinfo"; \
a90ef4bf 27039 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27042 "RANLIB=$${RANLIB}" \
0c24b341 27043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27044 dvi) \
2a4cbe27
NN
27045 || exit 1
27046
a90ef4bf 27047@endif texinfo
2a4cbe27 27048
a90ef4bf
JM
27049.PHONY: maybe-pdf-texinfo pdf-texinfo
27050maybe-pdf-texinfo:
27051@if texinfo
27052maybe-pdf-texinfo: pdf-texinfo
56a8fe78 27053
a90ef4bf
JM
27054pdf-texinfo: \
27055 configure-texinfo
56a8fe78 27056 @: $(MAKE); $(unstage)
a90ef4bf 27057 @[ -f ./texinfo/Makefile ] || exit 0; \
56a8fe78
DD
27058 r=`${PWD_COMMAND}`; export r; \
27059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27060 $(HOST_EXPORTS) \
27061 for flag in $(EXTRA_HOST_FLAGS) ; do \
27062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27063 done; \
22121df0 27064 echo "Doing pdf in texinfo"; \
a90ef4bf 27065 (cd $(HOST_SUBDIR)/texinfo && \
56a8fe78
DD
27066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27068 "RANLIB=$${RANLIB}" \
0c24b341 27069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27070 pdf) \
27071 || exit 1
27072
a90ef4bf 27073@endif texinfo
56a8fe78 27074
a90ef4bf
JM
27075.PHONY: maybe-html-texinfo html-texinfo
27076maybe-html-texinfo:
27077@if texinfo
27078maybe-html-texinfo: html-texinfo
6d389afc 27079
a90ef4bf
JM
27080html-texinfo: \
27081 configure-texinfo
0aed8855 27082 @: $(MAKE); $(unstage)
a90ef4bf 27083 @[ -f ./texinfo/Makefile ] || exit 0; \
6d389afc
MS
27084 r=`${PWD_COMMAND}`; export r; \
27085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27086 $(HOST_EXPORTS) \
27087 for flag in $(EXTRA_HOST_FLAGS) ; do \
27088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27089 done; \
22121df0 27090 echo "Doing html in texinfo"; \
a90ef4bf 27091 (cd $(HOST_SUBDIR)/texinfo && \
6d389afc
MS
27092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27094 "RANLIB=$${RANLIB}" \
0c24b341 27095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27096 html) \
27097 || exit 1
27098
a90ef4bf 27099@endif texinfo
6d389afc 27100
a90ef4bf
JM
27101.PHONY: maybe-TAGS-texinfo TAGS-texinfo
27102maybe-TAGS-texinfo:
27103@if texinfo
27104maybe-TAGS-texinfo: TAGS-texinfo
2a4cbe27 27105
a90ef4bf
JM
27106TAGS-texinfo: \
27107 configure-texinfo
0aed8855 27108 @: $(MAKE); $(unstage)
a90ef4bf 27109 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27110 r=`${PWD_COMMAND}`; export r; \
27111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27112 $(HOST_EXPORTS) \
b813574b 27113 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27115 done; \
22121df0 27116 echo "Doing TAGS in texinfo"; \
a90ef4bf 27117 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27120 "RANLIB=$${RANLIB}" \
0c24b341 27121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27122 TAGS) \
2a4cbe27
NN
27123 || exit 1
27124
a90ef4bf 27125@endif texinfo
2a4cbe27 27126
a90ef4bf
JM
27127.PHONY: maybe-install-info-texinfo install-info-texinfo
27128maybe-install-info-texinfo:
27129@if texinfo
27130maybe-install-info-texinfo: install-info-texinfo
2a4cbe27 27131
a90ef4bf
JM
27132install-info-texinfo: \
27133 configure-texinfo \
27134 info-texinfo
0aed8855 27135 @: $(MAKE); $(unstage)
a90ef4bf 27136 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27137 r=`${PWD_COMMAND}`; export r; \
27138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27139 $(HOST_EXPORTS) \
b813574b 27140 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27142 done; \
22121df0 27143 echo "Doing install-info in texinfo"; \
a90ef4bf 27144 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27147 "RANLIB=$${RANLIB}" \
0c24b341 27148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27149 install-info) \
2a4cbe27
NN
27150 || exit 1
27151
a90ef4bf 27152@endif texinfo
2a4cbe27 27153
a90ef4bf
JM
27154.PHONY: maybe-install-pdf-texinfo install-pdf-texinfo
27155maybe-install-pdf-texinfo:
27156@if texinfo
27157maybe-install-pdf-texinfo: install-pdf-texinfo
a3ca38d2 27158
a90ef4bf
JM
27159install-pdf-texinfo: \
27160 configure-texinfo \
27161 pdf-texinfo
a3ca38d2 27162 @: $(MAKE); $(unstage)
a90ef4bf 27163 @[ -f ./texinfo/Makefile ] || exit 0; \
a3ca38d2
DD
27164 r=`${PWD_COMMAND}`; export r; \
27165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27166 $(HOST_EXPORTS) \
27167 for flag in $(EXTRA_HOST_FLAGS) ; do \
27168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27169 done; \
22121df0 27170 echo "Doing install-pdf in texinfo"; \
a90ef4bf 27171 (cd $(HOST_SUBDIR)/texinfo && \
a3ca38d2
DD
27172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27174 "RANLIB=$${RANLIB}" \
0c24b341 27175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
27176 install-pdf) \
27177 || exit 1
27178
a90ef4bf 27179@endif texinfo
a3ca38d2 27180
a90ef4bf
JM
27181.PHONY: maybe-install-html-texinfo install-html-texinfo
27182maybe-install-html-texinfo:
27183@if texinfo
27184maybe-install-html-texinfo: install-html-texinfo
108a6f8e 27185
a90ef4bf
JM
27186install-html-texinfo: \
27187 configure-texinfo \
27188 html-texinfo
108a6f8e 27189 @: $(MAKE); $(unstage)
a90ef4bf 27190 @[ -f ./texinfo/Makefile ] || exit 0; \
108a6f8e
CD
27191 r=`${PWD_COMMAND}`; export r; \
27192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27193 $(HOST_EXPORTS) \
27194 for flag in $(EXTRA_HOST_FLAGS) ; do \
27195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27196 done; \
22121df0 27197 echo "Doing install-html in texinfo"; \
a90ef4bf 27198 (cd $(HOST_SUBDIR)/texinfo && \
108a6f8e
CD
27199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27201 "RANLIB=$${RANLIB}" \
0c24b341 27202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
27203 install-html) \
27204 || exit 1
27205
a90ef4bf 27206@endif texinfo
108a6f8e 27207
a90ef4bf
JM
27208.PHONY: maybe-installcheck-texinfo installcheck-texinfo
27209maybe-installcheck-texinfo:
27210@if texinfo
27211maybe-installcheck-texinfo: installcheck-texinfo
2a4cbe27 27212
a90ef4bf
JM
27213installcheck-texinfo: \
27214 configure-texinfo
0aed8855 27215 @: $(MAKE); $(unstage)
a90ef4bf 27216 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27217 r=`${PWD_COMMAND}`; export r; \
27218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27219 $(HOST_EXPORTS) \
b813574b 27220 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27222 done; \
22121df0 27223 echo "Doing installcheck in texinfo"; \
a90ef4bf 27224 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27227 "RANLIB=$${RANLIB}" \
0c24b341 27228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27229 installcheck) \
2a4cbe27
NN
27230 || exit 1
27231
a90ef4bf 27232@endif texinfo
2a4cbe27 27233
a90ef4bf
JM
27234.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27235maybe-mostlyclean-texinfo:
27236@if texinfo
27237maybe-mostlyclean-texinfo: mostlyclean-texinfo
2a4cbe27 27238
a90ef4bf 27239mostlyclean-texinfo:
0aed8855 27240 @: $(MAKE); $(unstage)
a90ef4bf 27241 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27242 r=`${PWD_COMMAND}`; export r; \
27243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27244 $(HOST_EXPORTS) \
b813574b 27245 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27247 done; \
22121df0 27248 echo "Doing mostlyclean in texinfo"; \
a90ef4bf 27249 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27252 "RANLIB=$${RANLIB}" \
0c24b341 27253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27254 mostlyclean) \
2a4cbe27
NN
27255 || exit 1
27256
a90ef4bf 27257@endif texinfo
2a4cbe27 27258
a90ef4bf
JM
27259.PHONY: maybe-clean-texinfo clean-texinfo
27260maybe-clean-texinfo:
27261@if texinfo
27262maybe-clean-texinfo: clean-texinfo
2a4cbe27 27263
a90ef4bf 27264clean-texinfo:
0aed8855 27265 @: $(MAKE); $(unstage)
a90ef4bf 27266 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27267 r=`${PWD_COMMAND}`; export r; \
27268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27269 $(HOST_EXPORTS) \
b813574b 27270 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27272 done; \
22121df0 27273 echo "Doing clean in texinfo"; \
a90ef4bf 27274 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27277 "RANLIB=$${RANLIB}" \
0c24b341 27278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27279 clean) \
2a4cbe27
NN
27280 || exit 1
27281
a90ef4bf 27282@endif texinfo
2a4cbe27 27283
a90ef4bf
JM
27284.PHONY: maybe-distclean-texinfo distclean-texinfo
27285maybe-distclean-texinfo:
27286@if texinfo
27287maybe-distclean-texinfo: distclean-texinfo
2a4cbe27 27288
a90ef4bf 27289distclean-texinfo:
0aed8855 27290 @: $(MAKE); $(unstage)
a90ef4bf 27291 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27292 r=`${PWD_COMMAND}`; export r; \
27293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27294 $(HOST_EXPORTS) \
b813574b 27295 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27297 done; \
22121df0 27298 echo "Doing distclean in texinfo"; \
a90ef4bf 27299 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27302 "RANLIB=$${RANLIB}" \
0c24b341 27303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 27304 distclean) \
2a4cbe27
NN
27305 || exit 1
27306
a90ef4bf 27307@endif texinfo
2a4cbe27 27308
a90ef4bf
JM
27309.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
27310maybe-maintainer-clean-texinfo:
27311@if texinfo
27312maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
a7254363 27313
a90ef4bf 27314maintainer-clean-texinfo:
0aed8855 27315 @: $(MAKE); $(unstage)
a90ef4bf 27316 @[ -f ./texinfo/Makefile ] || exit 0; \
b40e3958
L
27317 r=`${PWD_COMMAND}`; export r; \
27318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27319 $(HOST_EXPORTS) \
b813574b 27320 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
27321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27322 done; \
22121df0 27323 echo "Doing maintainer-clean in texinfo"; \
a90ef4bf 27324 (cd $(HOST_SUBDIR)/texinfo && \
2a4cbe27
NN
27325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27327 "RANLIB=$${RANLIB}" \
0c24b341 27328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27329 maintainer-clean) \
2a4cbe27
NN
27330 || exit 1
27331
a90ef4bf 27332@endif texinfo
2a4cbe27 27333
2a4cbe27 27334
a7254363 27335
a90ef4bf
JM
27336.PHONY: configure-zlib maybe-configure-zlib
27337maybe-configure-zlib:
4f0ef2d8 27338@if gcc-bootstrap
a90ef4bf 27339configure-zlib: stage_current
4f0ef2d8 27340@endif gcc-bootstrap
a90ef4bf
JM
27341@if zlib
27342maybe-configure-zlib: configure-zlib
27343configure-zlib:
c52c6897
PB
27344 @r=`${PWD_COMMAND}`; export r; \
27345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 27346 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 27347 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
1f53ca9a 27348 $(HOST_EXPORTS) \
a90ef4bf
JM
27349 echo Configuring in $(HOST_SUBDIR)/zlib; \
27350 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
04cf1b77 27351 case $(srcdir) in \
b00612cc 27352 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27353 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
b00612cc 27354 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
04cf1b77 27355 esac; \
1b6c0831
L
27356 module_srcdir=zlib; \
27357 $(SHELL) \
27358 $$s/$$module_srcdir/configure \
27359 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27360 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
e81d5d05 27361 --target=${target_alias} @extra_host_zlib_configure_flags@ \
04cf1b77 27362 || exit 1
a90ef4bf 27363@endif zlib
04cf1b77 27364
a7254363
PB
27365
27366
a90ef4bf
JM
27367.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
27368maybe-configure-stage1-zlib:
27369@if zlib-bootstrap
27370maybe-configure-stage1-zlib: configure-stage1-zlib
27371configure-stage1-zlib:
c52c6897 27372 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a90ef4bf 27373 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27374 @r=`${PWD_COMMAND}`; export r; \
27375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27376 TFLAGS="$(STAGE1_TFLAGS)"; \
a90ef4bf 27377 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
1b05fbbd 27378 $(HOST_EXPORTS) \
8ee82aff 27379 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27380 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
27381 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
27382 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib; \
27383 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27384 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27385 case $(srcdir) in \
27386 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27387 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27388 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27389 esac; \
1b6c0831
L
27390 module_srcdir=zlib; \
27391 $(SHELL) $$s/$$module_srcdir/configure \
27392 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27393 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
27394 --target=${target_alias} \
27395 \
e81d5d05
L
27396 $(STAGE1_CONFIGURE_FLAGS) \
27397 @extra_host_zlib_configure_flags@
a90ef4bf 27398@endif zlib-bootstrap
d545f33b 27399
a90ef4bf
JM
27400.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
27401maybe-configure-stage2-zlib:
27402@if zlib-bootstrap
27403maybe-configure-stage2-zlib: configure-stage2-zlib
27404configure-stage2-zlib:
c52c6897 27405 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a90ef4bf 27406 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27407 @r=`${PWD_COMMAND}`; export r; \
27408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27409 TFLAGS="$(STAGE2_TFLAGS)"; \
a90ef4bf 27410 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27411 $(HOST_EXPORTS) \
1b05fbbd 27412 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27413 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27414 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
27415 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27416 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib; \
27417 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27418 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27419 case $(srcdir) in \
27420 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27421 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27422 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27423 esac; \
1b6c0831
L
27424 module_srcdir=zlib; \
27425 $(SHELL) $$s/$$module_srcdir/configure \
27426 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27427 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27428 --target=${target_alias} \
22121df0 27429 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27430 $(STAGE2_CONFIGURE_FLAGS) \
27431 @extra_host_zlib_configure_flags@
a90ef4bf 27432@endif zlib-bootstrap
8520c408 27433
a90ef4bf
JM
27434.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
27435maybe-configure-stage3-zlib:
27436@if zlib-bootstrap
27437maybe-configure-stage3-zlib: configure-stage3-zlib
27438configure-stage3-zlib:
c52c6897 27439 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a90ef4bf 27440 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27441 @r=`${PWD_COMMAND}`; export r; \
27442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27443 TFLAGS="$(STAGE3_TFLAGS)"; \
a90ef4bf 27444 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27445 $(HOST_EXPORTS) \
1b05fbbd 27446 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27447 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27448 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
27449 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27450 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib; \
27451 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27452 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27453 case $(srcdir) in \
27454 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27455 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27456 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27457 esac; \
1b6c0831
L
27458 module_srcdir=zlib; \
27459 $(SHELL) $$s/$$module_srcdir/configure \
27460 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27461 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27462 --target=${target_alias} \
22121df0 27463 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27464 $(STAGE3_CONFIGURE_FLAGS) \
27465 @extra_host_zlib_configure_flags@
a90ef4bf 27466@endif zlib-bootstrap
8520c408 27467
a90ef4bf
JM
27468.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
27469maybe-configure-stage4-zlib:
27470@if zlib-bootstrap
27471maybe-configure-stage4-zlib: configure-stage4-zlib
27472configure-stage4-zlib:
c52c6897 27473 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a90ef4bf 27474 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27475 @r=`${PWD_COMMAND}`; export r; \
27476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27477 TFLAGS="$(STAGE4_TFLAGS)"; \
a90ef4bf 27478 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27479 $(HOST_EXPORTS) \
1b05fbbd 27480 $(POSTSTAGE1_HOST_EXPORTS) \
8520c408 27481 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27482 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
27483 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27484 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib; \
27485 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27486 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27487 case $(srcdir) in \
27488 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27489 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27490 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27491 esac; \
1b6c0831
L
27492 module_srcdir=zlib; \
27493 $(SHELL) $$s/$$module_srcdir/configure \
27494 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27495 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27496 --target=${target_alias} \
22121df0 27497 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27498 $(STAGE4_CONFIGURE_FLAGS) \
27499 @extra_host_zlib_configure_flags@
a90ef4bf 27500@endif zlib-bootstrap
d545f33b 27501
a90ef4bf
JM
27502.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
27503maybe-configure-stageprofile-zlib:
27504@if zlib-bootstrap
27505maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
27506configure-stageprofile-zlib:
c52c6897 27507 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a90ef4bf 27508 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27509 @r=`${PWD_COMMAND}`; export r; \
27510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27511 TFLAGS="$(STAGEprofile_TFLAGS)"; \
a90ef4bf 27512 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27513 $(HOST_EXPORTS) \
1b05fbbd
AO
27514 $(POSTSTAGE1_HOST_EXPORTS) \
27515 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27516 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
27517 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27518 echo Configuring stage profile in $(HOST_SUBDIR)/zlib; \
27519 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27520 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27521 case $(srcdir) in \
27522 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27523 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27524 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27525 esac; \
1b6c0831
L
27526 module_srcdir=zlib; \
27527 $(SHELL) $$s/$$module_srcdir/configure \
27528 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27529 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27530 --target=${target_alias} \
22121df0 27531 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27532 $(STAGEprofile_CONFIGURE_FLAGS) \
27533 @extra_host_zlib_configure_flags@
a90ef4bf 27534@endif zlib-bootstrap
d545f33b 27535
a90ef4bf
JM
27536.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
27537maybe-configure-stagefeedback-zlib:
27538@if zlib-bootstrap
27539maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
27540configure-stagefeedback-zlib:
c52c6897 27541 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a90ef4bf 27542 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
c52c6897
PB
27543 @r=`${PWD_COMMAND}`; export r; \
27544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27545 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
a90ef4bf 27546 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
d545f33b 27547 $(HOST_EXPORTS) \
1b05fbbd
AO
27548 $(POSTSTAGE1_HOST_EXPORTS) \
27549 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
1f53ca9a
AO
27550 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
27551 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
27552 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib; \
27553 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib; \
a90ef4bf 27554 cd $(HOST_SUBDIR)/zlib || exit 1; \
d545f33b
PB
27555 case $(srcdir) in \
27556 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 27557 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
d545f33b
PB
27558 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
27559 esac; \
1b6c0831
L
27560 module_srcdir=zlib; \
27561 $(SHELL) $$s/$$module_srcdir/configure \
27562 --srcdir=$${topdir}/$$module_srcdir \
4b900473 27563 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 27564 --target=${target_alias} \
22121df0 27565 --with-build-libsubdir=$(HOST_SUBDIR) \
e81d5d05
L
27566 $(STAGEfeedback_CONFIGURE_FLAGS) \
27567 @extra_host_zlib_configure_flags@
a90ef4bf 27568@endif zlib-bootstrap
d545f33b
PB
27569
27570
27571
27572
27573
a90ef4bf
JM
27574.PHONY: all-zlib maybe-all-zlib
27575maybe-all-zlib:
4f0ef2d8 27576@if gcc-bootstrap
a90ef4bf 27577all-zlib: stage_current
4f0ef2d8 27578@endif gcc-bootstrap
a90ef4bf
JM
27579@if zlib
27580TARGET-zlib=all
27581maybe-all-zlib: all-zlib
27582all-zlib: configure-zlib
c52c6897 27583 @r=`${PWD_COMMAND}`; export r; \
04cf1b77 27584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 27585 $(HOST_EXPORTS) \
a90ef4bf 27586 (cd $(HOST_SUBDIR)/zlib && \
b3676d82 27587 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
27588 $(TARGET-zlib))
27589@endif zlib
04cf1b77 27590
a7254363 27591
d545f33b 27592
a90ef4bf
JM
27593.PHONY: all-stage1-zlib maybe-all-stage1-zlib
27594.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
27595maybe-all-stage1-zlib:
27596maybe-clean-stage1-zlib:
27597@if zlib-bootstrap
27598maybe-all-stage1-zlib: all-stage1-zlib
27599all-stage1: all-stage1-zlib
27600TARGET-stage1-zlib = $(TARGET-zlib)
27601all-stage1-zlib: configure-stage1-zlib
c52c6897 27602 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
d545f33b
PB
27603 @r=`${PWD_COMMAND}`; export r; \
27604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27605 TFLAGS="$(STAGE1_TFLAGS)"; \
1f53ca9a 27606 $(HOST_EXPORTS) \
a90ef4bf 27607 cd $(HOST_SUBDIR)/zlib && \
05a13254 27608 \
7f6ef0c0 27609 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27610 CFLAGS="$(STAGE1_CFLAGS)" \
1f53ca9a 27611 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
1b05fbbd
AO
27612 LIBCFLAGS="$(LIBCFLAGS)" \
27613 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27614 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27615 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
27616 $(EXTRA_HOST_FLAGS) \
27617 $(STAGE1_FLAGS_TO_PASS) \
05a13254 27618 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 27619 $(TARGET-stage1-zlib)
d545f33b 27620
a90ef4bf
JM
27621maybe-clean-stage1-zlib: clean-stage1-zlib
27622clean-stage1: clean-stage1-zlib
27623clean-stage1-zlib:
9dbaa842 27624 @if [ $(current_stage) = stage1 ]; then \
a90ef4bf 27625 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27626 else \
a90ef4bf 27627 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27628 $(MAKE) stage1-start; \
27629 fi; \
a90ef4bf 27630 cd $(HOST_SUBDIR)/zlib && \
7f6ef0c0 27631 $(MAKE) $(EXTRA_HOST_FLAGS) \
b3676d82 27632 $(STAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27633@endif zlib-bootstrap
d545f33b
PB
27634
27635
a90ef4bf
JM
27636.PHONY: all-stage2-zlib maybe-all-stage2-zlib
27637.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
27638maybe-all-stage2-zlib:
27639maybe-clean-stage2-zlib:
27640@if zlib-bootstrap
27641maybe-all-stage2-zlib: all-stage2-zlib
27642all-stage2: all-stage2-zlib
27643TARGET-stage2-zlib = $(TARGET-zlib)
27644all-stage2-zlib: configure-stage2-zlib
c52c6897 27645 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
d545f33b
PB
27646 @r=`${PWD_COMMAND}`; export r; \
27647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27648 TFLAGS="$(STAGE2_TFLAGS)"; \
d545f33b 27649 $(HOST_EXPORTS) \
1f53ca9a 27650 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27651 cd $(HOST_SUBDIR)/zlib && \
05a13254 27652 \
7f6ef0c0 27653 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27654 CFLAGS="$(STAGE2_CFLAGS)" \
1f53ca9a 27655 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
1b05fbbd
AO
27656 LIBCFLAGS="$(STAGE2_CFLAGS)" \
27657 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27658 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27659 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27660 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27661 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 27662 $(TARGET-stage2-zlib)
d545f33b 27663
a90ef4bf
JM
27664maybe-clean-stage2-zlib: clean-stage2-zlib
27665clean-stage2: clean-stage2-zlib
27666clean-stage2-zlib:
9dbaa842 27667 @if [ $(current_stage) = stage2 ]; then \
a90ef4bf 27668 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27669 else \
a90ef4bf 27670 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27671 $(MAKE) stage2-start; \
27672 fi; \
a90ef4bf 27673 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27674 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27675@endif zlib-bootstrap
d545f33b
PB
27676
27677
a90ef4bf
JM
27678.PHONY: all-stage3-zlib maybe-all-stage3-zlib
27679.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
27680maybe-all-stage3-zlib:
27681maybe-clean-stage3-zlib:
27682@if zlib-bootstrap
27683maybe-all-stage3-zlib: all-stage3-zlib
27684all-stage3: all-stage3-zlib
27685TARGET-stage3-zlib = $(TARGET-zlib)
27686all-stage3-zlib: configure-stage3-zlib
c52c6897 27687 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
d545f33b
PB
27688 @r=`${PWD_COMMAND}`; export r; \
27689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27690 TFLAGS="$(STAGE3_TFLAGS)"; \
d545f33b 27691 $(HOST_EXPORTS) \
1f53ca9a 27692 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27693 cd $(HOST_SUBDIR)/zlib && \
05a13254 27694 \
7f6ef0c0 27695 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27696 CFLAGS="$(STAGE3_CFLAGS)" \
1f53ca9a 27697 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
1b05fbbd
AO
27698 LIBCFLAGS="$(STAGE3_CFLAGS)" \
27699 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27700 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27701 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27702 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27703 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 27704 $(TARGET-stage3-zlib)
d545f33b 27705
a90ef4bf
JM
27706maybe-clean-stage3-zlib: clean-stage3-zlib
27707clean-stage3: clean-stage3-zlib
27708clean-stage3-zlib:
9dbaa842 27709 @if [ $(current_stage) = stage3 ]; then \
a90ef4bf 27710 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27711 else \
a90ef4bf 27712 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27713 $(MAKE) stage3-start; \
27714 fi; \
a90ef4bf 27715 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27716 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27717@endif zlib-bootstrap
d545f33b
PB
27718
27719
a90ef4bf
JM
27720.PHONY: all-stage4-zlib maybe-all-stage4-zlib
27721.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
27722maybe-all-stage4-zlib:
27723maybe-clean-stage4-zlib:
27724@if zlib-bootstrap
27725maybe-all-stage4-zlib: all-stage4-zlib
27726all-stage4: all-stage4-zlib
27727TARGET-stage4-zlib = $(TARGET-zlib)
27728all-stage4-zlib: configure-stage4-zlib
c52c6897 27729 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
d545f33b
PB
27730 @r=`${PWD_COMMAND}`; export r; \
27731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27732 TFLAGS="$(STAGE4_TFLAGS)"; \
d545f33b 27733 $(HOST_EXPORTS) \
1f53ca9a 27734 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27735 cd $(HOST_SUBDIR)/zlib && \
05a13254 27736 \
7f6ef0c0 27737 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27738 CFLAGS="$(STAGE4_CFLAGS)" \
1f53ca9a 27739 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
7f6ef0c0 27740 LIBCFLAGS="$(STAGE4_CFLAGS)" \
1b05fbbd
AO
27741 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27742 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27743 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27744 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27745 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 27746 $(TARGET-stage4-zlib)
d545f33b 27747
a90ef4bf
JM
27748maybe-clean-stage4-zlib: clean-stage4-zlib
27749clean-stage4: clean-stage4-zlib
27750clean-stage4-zlib:
9dbaa842 27751 @if [ $(current_stage) = stage4 ]; then \
a90ef4bf 27752 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27753 else \
a90ef4bf 27754 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27755 $(MAKE) stage4-start; \
27756 fi; \
a90ef4bf 27757 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27758 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27759@endif zlib-bootstrap
d545f33b
PB
27760
27761
a90ef4bf
JM
27762.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
27763.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
27764maybe-all-stageprofile-zlib:
27765maybe-clean-stageprofile-zlib:
27766@if zlib-bootstrap
27767maybe-all-stageprofile-zlib: all-stageprofile-zlib
27768all-stageprofile: all-stageprofile-zlib
27769TARGET-stageprofile-zlib = $(TARGET-zlib)
27770all-stageprofile-zlib: configure-stageprofile-zlib
c52c6897 27771 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
d545f33b
PB
27772 @r=`${PWD_COMMAND}`; export r; \
27773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27774 TFLAGS="$(STAGEprofile_TFLAGS)"; \
d545f33b 27775 $(HOST_EXPORTS) \
1f53ca9a 27776 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27777 cd $(HOST_SUBDIR)/zlib && \
05a13254 27778 \
7f6ef0c0 27779 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27780 CFLAGS="$(STAGEprofile_CFLAGS)" \
1f53ca9a 27781 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
1b05fbbd
AO
27782 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
27783 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27784 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27785 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27786 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27787 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 27788 $(TARGET-stageprofile-zlib)
d545f33b 27789
a90ef4bf
JM
27790maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
27791clean-stageprofile: clean-stageprofile-zlib
27792clean-stageprofile-zlib:
9dbaa842 27793 @if [ $(current_stage) = stageprofile ]; then \
a90ef4bf 27794 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27795 else \
a90ef4bf 27796 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27797 $(MAKE) stageprofile-start; \
27798 fi; \
a90ef4bf 27799 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27800 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27801@endif zlib-bootstrap
d545f33b
PB
27802
27803
a90ef4bf
JM
27804.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
27805.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
27806maybe-all-stagefeedback-zlib:
27807maybe-clean-stagefeedback-zlib:
27808@if zlib-bootstrap
27809maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
27810all-stagefeedback: all-stagefeedback-zlib
27811TARGET-stagefeedback-zlib = $(TARGET-zlib)
27812all-stagefeedback-zlib: configure-stagefeedback-zlib
c52c6897 27813 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
d545f33b
PB
27814 @r=`${PWD_COMMAND}`; export r; \
27815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 27816 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
d545f33b 27817 $(HOST_EXPORTS) \
1f53ca9a 27818 $(POSTSTAGE1_HOST_EXPORTS) \
a90ef4bf 27819 cd $(HOST_SUBDIR)/zlib && \
05a13254 27820 \
7f6ef0c0 27821 $(MAKE) $(BASE_FLAGS_TO_PASS) \
1b05fbbd 27822 CFLAGS="$(STAGEfeedback_CFLAGS)" \
1f53ca9a 27823 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
1b05fbbd
AO
27824 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
27825 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
27826 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
27827 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
27828 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
05a13254 27829 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 27830 $(TARGET-stagefeedback-zlib)
d545f33b 27831
a90ef4bf
JM
27832maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
27833clean-stagefeedback: clean-stagefeedback-zlib
27834clean-stagefeedback-zlib:
9dbaa842 27835 @if [ $(current_stage) = stagefeedback ]; then \
a90ef4bf 27836 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
9dbaa842 27837 else \
a90ef4bf 27838 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
9dbaa842
DD
27839 $(MAKE) stagefeedback-start; \
27840 fi; \
a90ef4bf 27841 cd $(HOST_SUBDIR)/zlib && \
b3676d82 27842 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
a90ef4bf 27843@endif zlib-bootstrap
d545f33b
PB
27844
27845
27846
27847
27848
a90ef4bf
JM
27849.PHONY: check-zlib maybe-check-zlib
27850maybe-check-zlib:
27851@if zlib
27852maybe-check-zlib: check-zlib
04cf1b77 27853
a90ef4bf 27854check-zlib:
04cf1b77 27855
a90ef4bf 27856@endif zlib
04cf1b77 27857
a90ef4bf
JM
27858.PHONY: install-zlib maybe-install-zlib
27859maybe-install-zlib:
27860@if zlib
27861maybe-install-zlib: install-zlib
04cf1b77 27862
a90ef4bf 27863install-zlib:
04cf1b77 27864
a90ef4bf 27865@endif zlib
04cf1b77 27866
a90ef4bf
JM
27867.PHONY: install-strip-zlib maybe-install-strip-zlib
27868maybe-install-strip-zlib:
27869@if zlib
27870maybe-install-strip-zlib: install-strip-zlib
9b980aa1 27871
a90ef4bf 27872install-strip-zlib:
9b980aa1 27873
a90ef4bf 27874@endif zlib
9b980aa1 27875
56a8fe78 27876# Other targets (info, dvi, pdf, etc.)
04cf1b77 27877
a90ef4bf
JM
27878.PHONY: maybe-info-zlib info-zlib
27879maybe-info-zlib:
27880@if zlib
27881maybe-info-zlib: info-zlib
04cf1b77 27882
a90ef4bf
JM
27883info-zlib: \
27884 configure-zlib
27885 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27886 r=`${PWD_COMMAND}`; export r; \
27887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27888 $(HOST_EXPORTS) \
b813574b 27889 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27891 done; \
22121df0 27892 echo "Doing info in zlib"; \
a90ef4bf 27893 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27896 "RANLIB=$${RANLIB}" \
0c24b341 27897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27898 info) \
04cf1b77
PB
27899 || exit 1
27900
a90ef4bf 27901@endif zlib
04cf1b77 27902
a90ef4bf
JM
27903.PHONY: maybe-dvi-zlib dvi-zlib
27904maybe-dvi-zlib:
27905@if zlib
27906maybe-dvi-zlib: dvi-zlib
04cf1b77 27907
a90ef4bf
JM
27908dvi-zlib: \
27909 configure-zlib
27910 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27911 r=`${PWD_COMMAND}`; export r; \
27912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27913 $(HOST_EXPORTS) \
b813574b 27914 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27916 done; \
22121df0 27917 echo "Doing dvi in zlib"; \
a90ef4bf 27918 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27921 "RANLIB=$${RANLIB}" \
0c24b341 27922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27923 dvi) \
04cf1b77
PB
27924 || exit 1
27925
a90ef4bf 27926@endif zlib
04cf1b77 27927
a90ef4bf
JM
27928.PHONY: maybe-pdf-zlib pdf-zlib
27929maybe-pdf-zlib:
27930@if zlib
27931maybe-pdf-zlib: pdf-zlib
56a8fe78 27932
a90ef4bf
JM
27933pdf-zlib: \
27934 configure-zlib
27935 @[ -f ./zlib/Makefile ] || exit 0; \
56a8fe78
DD
27936 r=`${PWD_COMMAND}`; export r; \
27937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27938 $(HOST_EXPORTS) \
27939 for flag in $(EXTRA_HOST_FLAGS) ; do \
27940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27941 done; \
22121df0 27942 echo "Doing pdf in zlib"; \
a90ef4bf 27943 (cd $(HOST_SUBDIR)/zlib && \
56a8fe78
DD
27944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27946 "RANLIB=$${RANLIB}" \
0c24b341 27947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
27948 pdf) \
27949 || exit 1
27950
a90ef4bf 27951@endif zlib
56a8fe78 27952
a90ef4bf
JM
27953.PHONY: maybe-html-zlib html-zlib
27954maybe-html-zlib:
27955@if zlib
27956maybe-html-zlib: html-zlib
6d389afc 27957
a90ef4bf
JM
27958html-zlib: \
27959 configure-zlib
27960 @[ -f ./zlib/Makefile ] || exit 0; \
6d389afc
MS
27961 r=`${PWD_COMMAND}`; export r; \
27962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
27963 $(HOST_EXPORTS) \
27964 for flag in $(EXTRA_HOST_FLAGS) ; do \
27965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27966 done; \
22121df0 27967 echo "Doing html in zlib"; \
a90ef4bf 27968 (cd $(HOST_SUBDIR)/zlib && \
6d389afc
MS
27969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27971 "RANLIB=$${RANLIB}" \
0c24b341 27972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
27973 html) \
27974 || exit 1
27975
a90ef4bf 27976@endif zlib
6d389afc 27977
a90ef4bf
JM
27978.PHONY: maybe-TAGS-zlib TAGS-zlib
27979maybe-TAGS-zlib:
27980@if zlib
27981maybe-TAGS-zlib: TAGS-zlib
04cf1b77 27982
a90ef4bf
JM
27983TAGS-zlib: \
27984 configure-zlib
27985 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
27986 r=`${PWD_COMMAND}`; export r; \
27987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 27988 $(HOST_EXPORTS) \
b813574b 27989 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
27990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27991 done; \
22121df0 27992 echo "Doing TAGS in zlib"; \
a90ef4bf 27993 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
27994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27996 "RANLIB=$${RANLIB}" \
0c24b341 27997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 27998 TAGS) \
04cf1b77
PB
27999 || exit 1
28000
a90ef4bf 28001@endif zlib
04cf1b77 28002
a90ef4bf
JM
28003.PHONY: maybe-install-info-zlib install-info-zlib
28004maybe-install-info-zlib:
28005@if zlib
28006maybe-install-info-zlib: install-info-zlib
04cf1b77 28007
a90ef4bf
JM
28008install-info-zlib: \
28009 configure-zlib \
28010 info-zlib
28011 @[ -f ./zlib/Makefile ] || exit 0; \
28012 r=`${PWD_COMMAND}`; export r; \
28013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28014 $(HOST_EXPORTS) \
b813574b 28015 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28017 done; \
22121df0 28018 echo "Doing install-info in zlib"; \
a90ef4bf 28019 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28022 "RANLIB=$${RANLIB}" \
0c24b341 28023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28024 install-info) \
04cf1b77
PB
28025 || exit 1
28026
a90ef4bf 28027@endif zlib
04cf1b77 28028
a90ef4bf
JM
28029.PHONY: maybe-install-pdf-zlib install-pdf-zlib
28030maybe-install-pdf-zlib:
28031@if zlib
28032maybe-install-pdf-zlib: install-pdf-zlib
a3ca38d2 28033
a90ef4bf
JM
28034install-pdf-zlib: \
28035 configure-zlib \
28036 pdf-zlib
28037 @[ -f ./zlib/Makefile ] || exit 0; \
a3ca38d2
DD
28038 r=`${PWD_COMMAND}`; export r; \
28039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28040 $(HOST_EXPORTS) \
28041 for flag in $(EXTRA_HOST_FLAGS) ; do \
28042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28043 done; \
22121df0 28044 echo "Doing install-pdf in zlib"; \
a90ef4bf 28045 (cd $(HOST_SUBDIR)/zlib && \
a3ca38d2
DD
28046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28048 "RANLIB=$${RANLIB}" \
0c24b341 28049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
28050 install-pdf) \
28051 || exit 1
28052
a90ef4bf 28053@endif zlib
a3ca38d2 28054
a90ef4bf
JM
28055.PHONY: maybe-install-html-zlib install-html-zlib
28056maybe-install-html-zlib:
28057@if zlib
28058maybe-install-html-zlib: install-html-zlib
108a6f8e 28059
a90ef4bf
JM
28060install-html-zlib: \
28061 configure-zlib \
28062 html-zlib
28063 @[ -f ./zlib/Makefile ] || exit 0; \
108a6f8e
CD
28064 r=`${PWD_COMMAND}`; export r; \
28065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28066 $(HOST_EXPORTS) \
28067 for flag in $(EXTRA_HOST_FLAGS) ; do \
28068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28069 done; \
22121df0 28070 echo "Doing install-html in zlib"; \
a90ef4bf 28071 (cd $(HOST_SUBDIR)/zlib && \
108a6f8e
CD
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}" \
108a6f8e
CD
28076 install-html) \
28077 || exit 1
28078
a90ef4bf 28079@endif zlib
108a6f8e 28080
a90ef4bf
JM
28081.PHONY: maybe-installcheck-zlib installcheck-zlib
28082maybe-installcheck-zlib:
28083@if zlib
28084maybe-installcheck-zlib: installcheck-zlib
04cf1b77 28085
a90ef4bf
JM
28086installcheck-zlib: \
28087 configure-zlib
28088 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28089 r=`${PWD_COMMAND}`; export r; \
28090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28091 $(HOST_EXPORTS) \
b813574b 28092 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28094 done; \
22121df0 28095 echo "Doing installcheck in zlib"; \
a90ef4bf 28096 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28099 "RANLIB=$${RANLIB}" \
0c24b341 28100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28101 installcheck) \
04cf1b77
PB
28102 || exit 1
28103
a90ef4bf 28104@endif zlib
04cf1b77 28105
a90ef4bf
JM
28106.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
28107maybe-mostlyclean-zlib:
28108@if zlib
28109maybe-mostlyclean-zlib: mostlyclean-zlib
04cf1b77 28110
a90ef4bf
JM
28111mostlyclean-zlib:
28112 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28113 r=`${PWD_COMMAND}`; export r; \
28114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28115 $(HOST_EXPORTS) \
b813574b 28116 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28118 done; \
22121df0 28119 echo "Doing mostlyclean in zlib"; \
a90ef4bf 28120 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28123 "RANLIB=$${RANLIB}" \
0c24b341 28124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28125 mostlyclean) \
04cf1b77
PB
28126 || exit 1
28127
a90ef4bf 28128@endif zlib
04cf1b77 28129
a90ef4bf
JM
28130.PHONY: maybe-clean-zlib clean-zlib
28131maybe-clean-zlib:
28132@if zlib
28133maybe-clean-zlib: clean-zlib
04cf1b77 28134
a90ef4bf
JM
28135clean-zlib:
28136 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28137 r=`${PWD_COMMAND}`; export r; \
28138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28139 $(HOST_EXPORTS) \
b813574b 28140 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28142 done; \
22121df0 28143 echo "Doing clean in zlib"; \
a90ef4bf 28144 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28147 "RANLIB=$${RANLIB}" \
0c24b341 28148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28149 clean) \
04cf1b77
PB
28150 || exit 1
28151
a90ef4bf 28152@endif zlib
04cf1b77 28153
a90ef4bf
JM
28154.PHONY: maybe-distclean-zlib distclean-zlib
28155maybe-distclean-zlib:
28156@if zlib
28157maybe-distclean-zlib: distclean-zlib
04cf1b77 28158
a90ef4bf
JM
28159distclean-zlib:
28160 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28161 r=`${PWD_COMMAND}`; export r; \
28162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28163 $(HOST_EXPORTS) \
b813574b 28164 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28166 done; \
22121df0 28167 echo "Doing distclean in zlib"; \
a90ef4bf 28168 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28171 "RANLIB=$${RANLIB}" \
0c24b341 28172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28173 distclean) \
04cf1b77
PB
28174 || exit 1
28175
a90ef4bf 28176@endif zlib
04cf1b77 28177
a90ef4bf
JM
28178.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
28179maybe-maintainer-clean-zlib:
28180@if zlib
28181maybe-maintainer-clean-zlib: maintainer-clean-zlib
04cf1b77 28182
a90ef4bf
JM
28183maintainer-clean-zlib:
28184 @[ -f ./zlib/Makefile ] || exit 0; \
04cf1b77
PB
28185 r=`${PWD_COMMAND}`; export r; \
28186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 28187 $(HOST_EXPORTS) \
b813574b 28188 for flag in $(EXTRA_HOST_FLAGS) ; do \
04cf1b77
PB
28189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28190 done; \
22121df0 28191 echo "Doing maintainer-clean in zlib"; \
a90ef4bf 28192 (cd $(HOST_SUBDIR)/zlib && \
04cf1b77
PB
28193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28195 "RANLIB=$${RANLIB}" \
0c24b341 28196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 28197 maintainer-clean) \
04cf1b77
PB
28198 || exit 1
28199
a90ef4bf 28200@endif zlib
04cf1b77
PB
28201
28202
a7254363 28203
73cc7272
TT
28204.PHONY: configure-gnulib maybe-configure-gnulib
28205maybe-configure-gnulib:
28206@if gcc-bootstrap
28207configure-gnulib: stage_current
28208@endif gcc-bootstrap
28209@if gnulib
28210maybe-configure-gnulib: configure-gnulib
28211configure-gnulib:
28212 @: $(MAKE); $(unstage)
28213 @r=`${PWD_COMMAND}`; export r; \
28214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28215 test ! -f $(HOST_SUBDIR)/gnulib/Makefile || exit 0; \
28216 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnulib; \
28217 $(HOST_EXPORTS) \
28218 echo Configuring in $(HOST_SUBDIR)/gnulib; \
28219 cd "$(HOST_SUBDIR)/gnulib" || exit 1; \
28220 case $(srcdir) in \
28221 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28222 *) topdir=`echo $(HOST_SUBDIR)/gnulib/ | \
28223 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28224 esac; \
28225 module_srcdir=gnulib; \
28226 $(SHELL) \
28227 $$s/$$module_srcdir/configure \
28228 --srcdir=$${topdir}/$$module_srcdir \
28229 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28230 --target=${target_alias} \
28231 || exit 1
28232@endif gnulib
28233
28234
28235
28236
28237
28238.PHONY: all-gnulib maybe-all-gnulib
28239maybe-all-gnulib:
28240@if gcc-bootstrap
28241all-gnulib: stage_current
28242@endif gcc-bootstrap
28243@if gnulib
28244TARGET-gnulib=all
28245maybe-all-gnulib: all-gnulib
28246all-gnulib: configure-gnulib
28247 @: $(MAKE); $(unstage)
28248 @r=`${PWD_COMMAND}`; export r; \
28249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28250 $(HOST_EXPORTS) \
28251 (cd $(HOST_SUBDIR)/gnulib && \
28252 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
28253 $(TARGET-gnulib))
28254@endif gnulib
28255
28256
28257
28258
28259.PHONY: check-gnulib maybe-check-gnulib
28260maybe-check-gnulib:
28261@if gnulib
28262maybe-check-gnulib: check-gnulib
28263
28264check-gnulib:
28265 @: $(MAKE); $(unstage)
28266 @r=`${PWD_COMMAND}`; export r; \
28267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28268 $(HOST_EXPORTS) \
28269 (cd $(HOST_SUBDIR)/gnulib && \
28270 $(MAKE) $(FLAGS_TO_PASS) check)
28271
28272@endif gnulib
28273
28274.PHONY: install-gnulib maybe-install-gnulib
28275maybe-install-gnulib:
28276@if gnulib
28277maybe-install-gnulib: install-gnulib
28278
28279install-gnulib: installdirs
28280 @: $(MAKE); $(unstage)
28281 @r=`${PWD_COMMAND}`; export r; \
28282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28283 $(HOST_EXPORTS) \
28284 (cd $(HOST_SUBDIR)/gnulib && \
28285 $(MAKE) $(FLAGS_TO_PASS) install)
28286
28287@endif gnulib
28288
28289.PHONY: install-strip-gnulib maybe-install-strip-gnulib
28290maybe-install-strip-gnulib:
28291@if gnulib
28292maybe-install-strip-gnulib: install-strip-gnulib
28293
28294install-strip-gnulib: installdirs
28295 @: $(MAKE); $(unstage)
28296 @r=`${PWD_COMMAND}`; export r; \
28297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28298 $(HOST_EXPORTS) \
28299 (cd $(HOST_SUBDIR)/gnulib && \
28300 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28301
28302@endif gnulib
28303
28304# Other targets (info, dvi, pdf, etc.)
28305
28306.PHONY: maybe-info-gnulib info-gnulib
28307maybe-info-gnulib:
28308@if gnulib
28309maybe-info-gnulib: info-gnulib
28310
28311info-gnulib: \
28312 configure-gnulib
28313 @: $(MAKE); $(unstage)
28314 @[ -f ./gnulib/Makefile ] || exit 0; \
28315 r=`${PWD_COMMAND}`; export r; \
28316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28317 $(HOST_EXPORTS) \
28318 for flag in $(EXTRA_HOST_FLAGS) ; do \
28319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28320 done; \
28321 echo "Doing info in gnulib"; \
28322 (cd $(HOST_SUBDIR)/gnulib && \
28323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28325 "RANLIB=$${RANLIB}" \
28326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28327 info) \
28328 || exit 1
28329
28330@endif gnulib
28331
28332.PHONY: maybe-dvi-gnulib dvi-gnulib
28333maybe-dvi-gnulib:
28334@if gnulib
28335maybe-dvi-gnulib: dvi-gnulib
28336
28337dvi-gnulib: \
28338 configure-gnulib
28339 @: $(MAKE); $(unstage)
28340 @[ -f ./gnulib/Makefile ] || exit 0; \
28341 r=`${PWD_COMMAND}`; export r; \
28342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28343 $(HOST_EXPORTS) \
28344 for flag in $(EXTRA_HOST_FLAGS) ; do \
28345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28346 done; \
28347 echo "Doing dvi in gnulib"; \
28348 (cd $(HOST_SUBDIR)/gnulib && \
28349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28351 "RANLIB=$${RANLIB}" \
28352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28353 dvi) \
28354 || exit 1
28355
28356@endif gnulib
28357
28358.PHONY: maybe-pdf-gnulib pdf-gnulib
28359maybe-pdf-gnulib:
28360@if gnulib
28361maybe-pdf-gnulib: pdf-gnulib
28362
28363pdf-gnulib: \
28364 configure-gnulib
28365 @: $(MAKE); $(unstage)
28366 @[ -f ./gnulib/Makefile ] || exit 0; \
28367 r=`${PWD_COMMAND}`; export r; \
28368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28369 $(HOST_EXPORTS) \
28370 for flag in $(EXTRA_HOST_FLAGS) ; do \
28371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28372 done; \
28373 echo "Doing pdf in gnulib"; \
28374 (cd $(HOST_SUBDIR)/gnulib && \
28375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28377 "RANLIB=$${RANLIB}" \
28378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28379 pdf) \
28380 || exit 1
28381
28382@endif gnulib
28383
28384.PHONY: maybe-html-gnulib html-gnulib
28385maybe-html-gnulib:
28386@if gnulib
28387maybe-html-gnulib: html-gnulib
28388
28389html-gnulib: \
28390 configure-gnulib
28391 @: $(MAKE); $(unstage)
28392 @[ -f ./gnulib/Makefile ] || exit 0; \
28393 r=`${PWD_COMMAND}`; export r; \
28394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28395 $(HOST_EXPORTS) \
28396 for flag in $(EXTRA_HOST_FLAGS) ; do \
28397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28398 done; \
28399 echo "Doing html in gnulib"; \
28400 (cd $(HOST_SUBDIR)/gnulib && \
28401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28403 "RANLIB=$${RANLIB}" \
28404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28405 html) \
28406 || exit 1
28407
28408@endif gnulib
28409
28410.PHONY: maybe-TAGS-gnulib TAGS-gnulib
28411maybe-TAGS-gnulib:
28412@if gnulib
28413maybe-TAGS-gnulib: TAGS-gnulib
28414
28415TAGS-gnulib: \
28416 configure-gnulib
28417 @: $(MAKE); $(unstage)
28418 @[ -f ./gnulib/Makefile ] || exit 0; \
28419 r=`${PWD_COMMAND}`; export r; \
28420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28421 $(HOST_EXPORTS) \
28422 for flag in $(EXTRA_HOST_FLAGS) ; do \
28423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28424 done; \
28425 echo "Doing TAGS in gnulib"; \
28426 (cd $(HOST_SUBDIR)/gnulib && \
28427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28429 "RANLIB=$${RANLIB}" \
28430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28431 TAGS) \
28432 || exit 1
28433
28434@endif gnulib
28435
28436.PHONY: maybe-install-info-gnulib install-info-gnulib
28437maybe-install-info-gnulib:
28438@if gnulib
28439maybe-install-info-gnulib: install-info-gnulib
28440
28441install-info-gnulib: \
28442 configure-gnulib \
28443 info-gnulib
28444 @: $(MAKE); $(unstage)
28445 @[ -f ./gnulib/Makefile ] || exit 0; \
28446 r=`${PWD_COMMAND}`; export r; \
28447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28448 $(HOST_EXPORTS) \
28449 for flag in $(EXTRA_HOST_FLAGS) ; do \
28450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28451 done; \
28452 echo "Doing install-info in gnulib"; \
28453 (cd $(HOST_SUBDIR)/gnulib && \
28454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28456 "RANLIB=$${RANLIB}" \
28457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28458 install-info) \
28459 || exit 1
28460
28461@endif gnulib
28462
28463.PHONY: maybe-install-pdf-gnulib install-pdf-gnulib
28464maybe-install-pdf-gnulib:
28465@if gnulib
28466maybe-install-pdf-gnulib: install-pdf-gnulib
28467
28468install-pdf-gnulib: \
28469 configure-gnulib \
28470 pdf-gnulib
28471 @: $(MAKE); $(unstage)
28472 @[ -f ./gnulib/Makefile ] || exit 0; \
28473 r=`${PWD_COMMAND}`; export r; \
28474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28475 $(HOST_EXPORTS) \
28476 for flag in $(EXTRA_HOST_FLAGS) ; do \
28477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28478 done; \
28479 echo "Doing install-pdf in gnulib"; \
28480 (cd $(HOST_SUBDIR)/gnulib && \
28481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28483 "RANLIB=$${RANLIB}" \
28484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28485 install-pdf) \
28486 || exit 1
28487
28488@endif gnulib
28489
28490.PHONY: maybe-install-html-gnulib install-html-gnulib
28491maybe-install-html-gnulib:
28492@if gnulib
28493maybe-install-html-gnulib: install-html-gnulib
28494
28495install-html-gnulib: \
28496 configure-gnulib \
28497 html-gnulib
28498 @: $(MAKE); $(unstage)
28499 @[ -f ./gnulib/Makefile ] || exit 0; \
28500 r=`${PWD_COMMAND}`; export r; \
28501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28502 $(HOST_EXPORTS) \
28503 for flag in $(EXTRA_HOST_FLAGS) ; do \
28504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28505 done; \
28506 echo "Doing install-html in gnulib"; \
28507 (cd $(HOST_SUBDIR)/gnulib && \
28508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28510 "RANLIB=$${RANLIB}" \
28511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28512 install-html) \
28513 || exit 1
28514
28515@endif gnulib
28516
28517.PHONY: maybe-installcheck-gnulib installcheck-gnulib
28518maybe-installcheck-gnulib:
28519@if gnulib
28520maybe-installcheck-gnulib: installcheck-gnulib
28521
28522installcheck-gnulib: \
28523 configure-gnulib
28524 @: $(MAKE); $(unstage)
28525 @[ -f ./gnulib/Makefile ] || exit 0; \
28526 r=`${PWD_COMMAND}`; export r; \
28527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28528 $(HOST_EXPORTS) \
28529 for flag in $(EXTRA_HOST_FLAGS) ; do \
28530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28531 done; \
28532 echo "Doing installcheck in gnulib"; \
28533 (cd $(HOST_SUBDIR)/gnulib && \
28534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28536 "RANLIB=$${RANLIB}" \
28537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28538 installcheck) \
28539 || exit 1
28540
28541@endif gnulib
28542
28543.PHONY: maybe-mostlyclean-gnulib mostlyclean-gnulib
28544maybe-mostlyclean-gnulib:
28545@if gnulib
28546maybe-mostlyclean-gnulib: mostlyclean-gnulib
28547
28548mostlyclean-gnulib:
28549 @: $(MAKE); $(unstage)
28550 @[ -f ./gnulib/Makefile ] || exit 0; \
28551 r=`${PWD_COMMAND}`; export r; \
28552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28553 $(HOST_EXPORTS) \
28554 for flag in $(EXTRA_HOST_FLAGS) ; do \
28555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28556 done; \
28557 echo "Doing mostlyclean in gnulib"; \
28558 (cd $(HOST_SUBDIR)/gnulib && \
28559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28561 "RANLIB=$${RANLIB}" \
28562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28563 mostlyclean) \
28564 || exit 1
28565
28566@endif gnulib
28567
28568.PHONY: maybe-clean-gnulib clean-gnulib
28569maybe-clean-gnulib:
28570@if gnulib
28571maybe-clean-gnulib: clean-gnulib
28572
28573clean-gnulib:
28574 @: $(MAKE); $(unstage)
28575 @[ -f ./gnulib/Makefile ] || exit 0; \
28576 r=`${PWD_COMMAND}`; export r; \
28577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28578 $(HOST_EXPORTS) \
28579 for flag in $(EXTRA_HOST_FLAGS) ; do \
28580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28581 done; \
28582 echo "Doing clean in gnulib"; \
28583 (cd $(HOST_SUBDIR)/gnulib && \
28584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28586 "RANLIB=$${RANLIB}" \
28587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28588 clean) \
28589 || exit 1
28590
28591@endif gnulib
28592
28593.PHONY: maybe-distclean-gnulib distclean-gnulib
28594maybe-distclean-gnulib:
28595@if gnulib
28596maybe-distclean-gnulib: distclean-gnulib
28597
28598distclean-gnulib:
28599 @: $(MAKE); $(unstage)
28600 @[ -f ./gnulib/Makefile ] || exit 0; \
28601 r=`${PWD_COMMAND}`; export r; \
28602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28603 $(HOST_EXPORTS) \
28604 for flag in $(EXTRA_HOST_FLAGS) ; do \
28605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28606 done; \
28607 echo "Doing distclean in gnulib"; \
28608 (cd $(HOST_SUBDIR)/gnulib && \
28609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28611 "RANLIB=$${RANLIB}" \
28612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28613 distclean) \
28614 || exit 1
28615
28616@endif gnulib
28617
28618.PHONY: maybe-maintainer-clean-gnulib maintainer-clean-gnulib
28619maybe-maintainer-clean-gnulib:
28620@if gnulib
28621maybe-maintainer-clean-gnulib: maintainer-clean-gnulib
28622
28623maintainer-clean-gnulib:
28624 @: $(MAKE); $(unstage)
28625 @[ -f ./gnulib/Makefile ] || exit 0; \
28626 r=`${PWD_COMMAND}`; export r; \
28627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28628 $(HOST_EXPORTS) \
28629 for flag in $(EXTRA_HOST_FLAGS) ; do \
28630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28631 done; \
28632 echo "Doing maintainer-clean in gnulib"; \
28633 (cd $(HOST_SUBDIR)/gnulib && \
28634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28636 "RANLIB=$${RANLIB}" \
28637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28638 maintainer-clean) \
28639 || exit 1
28640
28641@endif gnulib
28642
28643
28644
01027315
TT
28645.PHONY: configure-gdbsupport maybe-configure-gdbsupport
28646maybe-configure-gdbsupport:
28647@if gcc-bootstrap
28648configure-gdbsupport: stage_current
28649@endif gcc-bootstrap
28650@if gdbsupport
28651maybe-configure-gdbsupport: configure-gdbsupport
28652configure-gdbsupport:
28653 @: $(MAKE); $(unstage)
28654 @r=`${PWD_COMMAND}`; export r; \
28655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28656 test ! -f $(HOST_SUBDIR)/gdbsupport/Makefile || exit 0; \
28657 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdbsupport; \
28658 $(HOST_EXPORTS) \
28659 echo Configuring in $(HOST_SUBDIR)/gdbsupport; \
28660 cd "$(HOST_SUBDIR)/gdbsupport" || exit 1; \
28661 case $(srcdir) in \
28662 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28663 *) topdir=`echo $(HOST_SUBDIR)/gdbsupport/ | \
28664 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28665 esac; \
28666 module_srcdir=gdbsupport; \
28667 $(SHELL) \
28668 $$s/$$module_srcdir/configure \
28669 --srcdir=$${topdir}/$$module_srcdir \
28670 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
28671 --target=${target_alias} \
28672 || exit 1
28673@endif gdbsupport
28674
28675
28676
28677
28678
28679.PHONY: all-gdbsupport maybe-all-gdbsupport
28680maybe-all-gdbsupport:
28681@if gcc-bootstrap
28682all-gdbsupport: stage_current
28683@endif gcc-bootstrap
28684@if gdbsupport
28685TARGET-gdbsupport=all
28686maybe-all-gdbsupport: all-gdbsupport
28687all-gdbsupport: configure-gdbsupport
28688 @: $(MAKE); $(unstage)
28689 @r=`${PWD_COMMAND}`; export r; \
28690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28691 $(HOST_EXPORTS) \
28692 (cd $(HOST_SUBDIR)/gdbsupport && \
28693 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
28694 $(TARGET-gdbsupport))
28695@endif gdbsupport
28696
28697
28698
28699
28700.PHONY: check-gdbsupport maybe-check-gdbsupport
28701maybe-check-gdbsupport:
28702@if gdbsupport
28703maybe-check-gdbsupport: check-gdbsupport
28704
28705check-gdbsupport:
28706 @: $(MAKE); $(unstage)
28707 @r=`${PWD_COMMAND}`; export r; \
28708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28709 $(HOST_EXPORTS) \
28710 (cd $(HOST_SUBDIR)/gdbsupport && \
28711 $(MAKE) $(FLAGS_TO_PASS) check)
28712
28713@endif gdbsupport
28714
28715.PHONY: install-gdbsupport maybe-install-gdbsupport
28716maybe-install-gdbsupport:
28717@if gdbsupport
28718maybe-install-gdbsupport: install-gdbsupport
28719
28720install-gdbsupport: installdirs
28721 @: $(MAKE); $(unstage)
28722 @r=`${PWD_COMMAND}`; export r; \
28723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28724 $(HOST_EXPORTS) \
28725 (cd $(HOST_SUBDIR)/gdbsupport && \
28726 $(MAKE) $(FLAGS_TO_PASS) install)
28727
28728@endif gdbsupport
28729
28730.PHONY: install-strip-gdbsupport maybe-install-strip-gdbsupport
28731maybe-install-strip-gdbsupport:
28732@if gdbsupport
28733maybe-install-strip-gdbsupport: install-strip-gdbsupport
28734
28735install-strip-gdbsupport: installdirs
28736 @: $(MAKE); $(unstage)
28737 @r=`${PWD_COMMAND}`; export r; \
28738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28739 $(HOST_EXPORTS) \
28740 (cd $(HOST_SUBDIR)/gdbsupport && \
28741 $(MAKE) $(FLAGS_TO_PASS) install-strip)
28742
28743@endif gdbsupport
28744
28745# Other targets (info, dvi, pdf, etc.)
28746
28747.PHONY: maybe-info-gdbsupport info-gdbsupport
28748maybe-info-gdbsupport:
28749@if gdbsupport
28750maybe-info-gdbsupport: info-gdbsupport
28751
28752info-gdbsupport: \
28753 configure-gdbsupport
28754 @: $(MAKE); $(unstage)
28755 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28756 r=`${PWD_COMMAND}`; export r; \
28757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28758 $(HOST_EXPORTS) \
28759 for flag in $(EXTRA_HOST_FLAGS) ; do \
28760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28761 done; \
28762 echo "Doing info in gdbsupport"; \
28763 (cd $(HOST_SUBDIR)/gdbsupport && \
28764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28766 "RANLIB=$${RANLIB}" \
28767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28768 info) \
28769 || exit 1
28770
28771@endif gdbsupport
28772
28773.PHONY: maybe-dvi-gdbsupport dvi-gdbsupport
28774maybe-dvi-gdbsupport:
28775@if gdbsupport
28776maybe-dvi-gdbsupport: dvi-gdbsupport
28777
28778dvi-gdbsupport: \
28779 configure-gdbsupport
28780 @: $(MAKE); $(unstage)
28781 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28782 r=`${PWD_COMMAND}`; export r; \
28783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28784 $(HOST_EXPORTS) \
28785 for flag in $(EXTRA_HOST_FLAGS) ; do \
28786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28787 done; \
28788 echo "Doing dvi in gdbsupport"; \
28789 (cd $(HOST_SUBDIR)/gdbsupport && \
28790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28792 "RANLIB=$${RANLIB}" \
28793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28794 dvi) \
28795 || exit 1
28796
28797@endif gdbsupport
28798
28799.PHONY: maybe-pdf-gdbsupport pdf-gdbsupport
28800maybe-pdf-gdbsupport:
28801@if gdbsupport
28802maybe-pdf-gdbsupport: pdf-gdbsupport
28803
28804pdf-gdbsupport: \
28805 configure-gdbsupport
28806 @: $(MAKE); $(unstage)
28807 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28808 r=`${PWD_COMMAND}`; export r; \
28809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28810 $(HOST_EXPORTS) \
28811 for flag in $(EXTRA_HOST_FLAGS) ; do \
28812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28813 done; \
28814 echo "Doing pdf in gdbsupport"; \
28815 (cd $(HOST_SUBDIR)/gdbsupport && \
28816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28818 "RANLIB=$${RANLIB}" \
28819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28820 pdf) \
28821 || exit 1
28822
28823@endif gdbsupport
28824
28825.PHONY: maybe-html-gdbsupport html-gdbsupport
28826maybe-html-gdbsupport:
28827@if gdbsupport
28828maybe-html-gdbsupport: html-gdbsupport
28829
28830html-gdbsupport: \
28831 configure-gdbsupport
28832 @: $(MAKE); $(unstage)
28833 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28834 r=`${PWD_COMMAND}`; export r; \
28835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28836 $(HOST_EXPORTS) \
28837 for flag in $(EXTRA_HOST_FLAGS) ; do \
28838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28839 done; \
28840 echo "Doing html in gdbsupport"; \
28841 (cd $(HOST_SUBDIR)/gdbsupport && \
28842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28844 "RANLIB=$${RANLIB}" \
28845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28846 html) \
28847 || exit 1
28848
28849@endif gdbsupport
28850
28851.PHONY: maybe-TAGS-gdbsupport TAGS-gdbsupport
28852maybe-TAGS-gdbsupport:
28853@if gdbsupport
28854maybe-TAGS-gdbsupport: TAGS-gdbsupport
28855
28856TAGS-gdbsupport: \
28857 configure-gdbsupport
28858 @: $(MAKE); $(unstage)
28859 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28860 r=`${PWD_COMMAND}`; export r; \
28861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28862 $(HOST_EXPORTS) \
28863 for flag in $(EXTRA_HOST_FLAGS) ; do \
28864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28865 done; \
28866 echo "Doing TAGS in gdbsupport"; \
28867 (cd $(HOST_SUBDIR)/gdbsupport && \
28868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28870 "RANLIB=$${RANLIB}" \
28871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28872 TAGS) \
28873 || exit 1
28874
28875@endif gdbsupport
28876
28877.PHONY: maybe-install-info-gdbsupport install-info-gdbsupport
28878maybe-install-info-gdbsupport:
28879@if gdbsupport
28880maybe-install-info-gdbsupport: install-info-gdbsupport
28881
28882install-info-gdbsupport: \
28883 configure-gdbsupport \
28884 info-gdbsupport
28885 @: $(MAKE); $(unstage)
28886 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28887 r=`${PWD_COMMAND}`; export r; \
28888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28889 $(HOST_EXPORTS) \
28890 for flag in $(EXTRA_HOST_FLAGS) ; do \
28891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28892 done; \
28893 echo "Doing install-info in gdbsupport"; \
28894 (cd $(HOST_SUBDIR)/gdbsupport && \
28895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28897 "RANLIB=$${RANLIB}" \
28898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28899 install-info) \
28900 || exit 1
28901
28902@endif gdbsupport
28903
28904.PHONY: maybe-install-pdf-gdbsupport install-pdf-gdbsupport
28905maybe-install-pdf-gdbsupport:
28906@if gdbsupport
28907maybe-install-pdf-gdbsupport: install-pdf-gdbsupport
28908
28909install-pdf-gdbsupport: \
28910 configure-gdbsupport \
28911 pdf-gdbsupport
28912 @: $(MAKE); $(unstage)
28913 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28914 r=`${PWD_COMMAND}`; export r; \
28915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28916 $(HOST_EXPORTS) \
28917 for flag in $(EXTRA_HOST_FLAGS) ; do \
28918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28919 done; \
28920 echo "Doing install-pdf in gdbsupport"; \
28921 (cd $(HOST_SUBDIR)/gdbsupport && \
28922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28924 "RANLIB=$${RANLIB}" \
28925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28926 install-pdf) \
28927 || exit 1
28928
28929@endif gdbsupport
28930
28931.PHONY: maybe-install-html-gdbsupport install-html-gdbsupport
28932maybe-install-html-gdbsupport:
28933@if gdbsupport
28934maybe-install-html-gdbsupport: install-html-gdbsupport
28935
28936install-html-gdbsupport: \
28937 configure-gdbsupport \
28938 html-gdbsupport
28939 @: $(MAKE); $(unstage)
28940 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28941 r=`${PWD_COMMAND}`; export r; \
28942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28943 $(HOST_EXPORTS) \
28944 for flag in $(EXTRA_HOST_FLAGS) ; do \
28945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28946 done; \
28947 echo "Doing install-html in gdbsupport"; \
28948 (cd $(HOST_SUBDIR)/gdbsupport && \
28949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28951 "RANLIB=$${RANLIB}" \
28952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28953 install-html) \
28954 || exit 1
28955
28956@endif gdbsupport
28957
28958.PHONY: maybe-installcheck-gdbsupport installcheck-gdbsupport
28959maybe-installcheck-gdbsupport:
28960@if gdbsupport
28961maybe-installcheck-gdbsupport: installcheck-gdbsupport
28962
28963installcheck-gdbsupport: \
28964 configure-gdbsupport
28965 @: $(MAKE); $(unstage)
28966 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28967 r=`${PWD_COMMAND}`; export r; \
28968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28969 $(HOST_EXPORTS) \
28970 for flag in $(EXTRA_HOST_FLAGS) ; do \
28971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28972 done; \
28973 echo "Doing installcheck in gdbsupport"; \
28974 (cd $(HOST_SUBDIR)/gdbsupport && \
28975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28977 "RANLIB=$${RANLIB}" \
28978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
28979 installcheck) \
28980 || exit 1
28981
28982@endif gdbsupport
28983
28984.PHONY: maybe-mostlyclean-gdbsupport mostlyclean-gdbsupport
28985maybe-mostlyclean-gdbsupport:
28986@if gdbsupport
28987maybe-mostlyclean-gdbsupport: mostlyclean-gdbsupport
28988
28989mostlyclean-gdbsupport:
28990 @: $(MAKE); $(unstage)
28991 @[ -f ./gdbsupport/Makefile ] || exit 0; \
28992 r=`${PWD_COMMAND}`; export r; \
28993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28994 $(HOST_EXPORTS) \
28995 for flag in $(EXTRA_HOST_FLAGS) ; do \
28996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28997 done; \
28998 echo "Doing mostlyclean in gdbsupport"; \
28999 (cd $(HOST_SUBDIR)/gdbsupport && \
29000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29002 "RANLIB=$${RANLIB}" \
29003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29004 mostlyclean) \
29005 || exit 1
29006
29007@endif gdbsupport
29008
29009.PHONY: maybe-clean-gdbsupport clean-gdbsupport
29010maybe-clean-gdbsupport:
29011@if gdbsupport
29012maybe-clean-gdbsupport: clean-gdbsupport
29013
29014clean-gdbsupport:
29015 @: $(MAKE); $(unstage)
29016 @[ -f ./gdbsupport/Makefile ] || exit 0; \
29017 r=`${PWD_COMMAND}`; export r; \
29018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29019 $(HOST_EXPORTS) \
29020 for flag in $(EXTRA_HOST_FLAGS) ; do \
29021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29022 done; \
29023 echo "Doing clean in gdbsupport"; \
29024 (cd $(HOST_SUBDIR)/gdbsupport && \
29025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29027 "RANLIB=$${RANLIB}" \
29028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29029 clean) \
29030 || exit 1
29031
29032@endif gdbsupport
29033
29034.PHONY: maybe-distclean-gdbsupport distclean-gdbsupport
29035maybe-distclean-gdbsupport:
29036@if gdbsupport
29037maybe-distclean-gdbsupport: distclean-gdbsupport
29038
29039distclean-gdbsupport:
29040 @: $(MAKE); $(unstage)
29041 @[ -f ./gdbsupport/Makefile ] || exit 0; \
29042 r=`${PWD_COMMAND}`; export r; \
29043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29044 $(HOST_EXPORTS) \
29045 for flag in $(EXTRA_HOST_FLAGS) ; do \
29046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29047 done; \
29048 echo "Doing distclean in gdbsupport"; \
29049 (cd $(HOST_SUBDIR)/gdbsupport && \
29050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29052 "RANLIB=$${RANLIB}" \
29053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29054 distclean) \
29055 || exit 1
29056
29057@endif gdbsupport
29058
29059.PHONY: maybe-maintainer-clean-gdbsupport maintainer-clean-gdbsupport
29060maybe-maintainer-clean-gdbsupport:
29061@if gdbsupport
29062maybe-maintainer-clean-gdbsupport: maintainer-clean-gdbsupport
29063
29064maintainer-clean-gdbsupport:
29065 @: $(MAKE); $(unstage)
29066 @[ -f ./gdbsupport/Makefile ] || exit 0; \
29067 r=`${PWD_COMMAND}`; export r; \
29068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29069 $(HOST_EXPORTS) \
29070 for flag in $(EXTRA_HOST_FLAGS) ; do \
29071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29072 done; \
29073 echo "Doing maintainer-clean in gdbsupport"; \
29074 (cd $(HOST_SUBDIR)/gdbsupport && \
29075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29077 "RANLIB=$${RANLIB}" \
29078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29079 maintainer-clean) \
29080 || exit 1
29081
29082@endif gdbsupport
29083
29084
29085
919adfe8
TT
29086.PHONY: configure-gdbserver maybe-configure-gdbserver
29087maybe-configure-gdbserver:
29088@if gcc-bootstrap
29089configure-gdbserver: stage_current
29090@endif gcc-bootstrap
29091@if gdbserver
29092maybe-configure-gdbserver: configure-gdbserver
29093configure-gdbserver:
29094 @: $(MAKE); $(unstage)
29095 @r=`${PWD_COMMAND}`; export r; \
29096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29097 test ! -f $(HOST_SUBDIR)/gdbserver/Makefile || exit 0; \
29098 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdbserver; \
29099 $(HOST_EXPORTS) \
29100 echo Configuring in $(HOST_SUBDIR)/gdbserver; \
29101 cd "$(HOST_SUBDIR)/gdbserver" || exit 1; \
29102 case $(srcdir) in \
29103 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29104 *) topdir=`echo $(HOST_SUBDIR)/gdbserver/ | \
29105 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29106 esac; \
29107 module_srcdir=gdbserver; \
29108 $(SHELL) \
29109 $$s/$$module_srcdir/configure \
29110 --srcdir=$${topdir}/$$module_srcdir \
29111 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
29112 --target=${target_alias} \
29113 || exit 1
29114@endif gdbserver
29115
29116
29117
29118
29119
29120.PHONY: all-gdbserver maybe-all-gdbserver
29121maybe-all-gdbserver:
29122@if gcc-bootstrap
29123all-gdbserver: stage_current
29124@endif gcc-bootstrap
29125@if gdbserver
29126TARGET-gdbserver=all
29127maybe-all-gdbserver: all-gdbserver
29128all-gdbserver: configure-gdbserver
29129 @: $(MAKE); $(unstage)
29130 @r=`${PWD_COMMAND}`; export r; \
29131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29132 $(HOST_EXPORTS) \
29133 (cd $(HOST_SUBDIR)/gdbserver && \
29134 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
29135 $(TARGET-gdbserver))
29136@endif gdbserver
29137
29138
29139
29140
29141.PHONY: check-gdbserver maybe-check-gdbserver
29142maybe-check-gdbserver:
29143@if gdbserver
29144maybe-check-gdbserver: check-gdbserver
29145
29146check-gdbserver:
29147 @: $(MAKE); $(unstage)
29148 @r=`${PWD_COMMAND}`; export r; \
29149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29150 $(HOST_EXPORTS) \
29151 (cd $(HOST_SUBDIR)/gdbserver && \
29152 $(MAKE) $(FLAGS_TO_PASS) check)
29153
29154@endif gdbserver
29155
29156.PHONY: install-gdbserver maybe-install-gdbserver
29157maybe-install-gdbserver:
29158@if gdbserver
29159maybe-install-gdbserver: install-gdbserver
29160
29161install-gdbserver: installdirs
29162 @: $(MAKE); $(unstage)
29163 @r=`${PWD_COMMAND}`; export r; \
29164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29165 $(HOST_EXPORTS) \
29166 (cd $(HOST_SUBDIR)/gdbserver && \
29167 $(MAKE) $(FLAGS_TO_PASS) install)
29168
29169@endif gdbserver
29170
29171.PHONY: install-strip-gdbserver maybe-install-strip-gdbserver
29172maybe-install-strip-gdbserver:
29173@if gdbserver
29174maybe-install-strip-gdbserver: install-strip-gdbserver
29175
29176install-strip-gdbserver: installdirs
29177 @: $(MAKE); $(unstage)
29178 @r=`${PWD_COMMAND}`; export r; \
29179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29180 $(HOST_EXPORTS) \
29181 (cd $(HOST_SUBDIR)/gdbserver && \
29182 $(MAKE) $(FLAGS_TO_PASS) install-strip)
29183
29184@endif gdbserver
29185
29186# Other targets (info, dvi, pdf, etc.)
29187
29188.PHONY: maybe-info-gdbserver info-gdbserver
29189maybe-info-gdbserver:
29190@if gdbserver
29191maybe-info-gdbserver: info-gdbserver
29192
29193info-gdbserver: \
29194 configure-gdbserver
29195 @: $(MAKE); $(unstage)
29196 @[ -f ./gdbserver/Makefile ] || exit 0; \
29197 r=`${PWD_COMMAND}`; export r; \
29198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29199 $(HOST_EXPORTS) \
29200 for flag in $(EXTRA_HOST_FLAGS) ; do \
29201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29202 done; \
29203 echo "Doing info in gdbserver"; \
29204 (cd $(HOST_SUBDIR)/gdbserver && \
29205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29207 "RANLIB=$${RANLIB}" \
29208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29209 info) \
29210 || exit 1
29211
29212@endif gdbserver
29213
29214.PHONY: maybe-dvi-gdbserver dvi-gdbserver
29215maybe-dvi-gdbserver:
29216@if gdbserver
29217maybe-dvi-gdbserver: dvi-gdbserver
29218
29219dvi-gdbserver: \
29220 configure-gdbserver
29221 @: $(MAKE); $(unstage)
29222 @[ -f ./gdbserver/Makefile ] || exit 0; \
29223 r=`${PWD_COMMAND}`; export r; \
29224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29225 $(HOST_EXPORTS) \
29226 for flag in $(EXTRA_HOST_FLAGS) ; do \
29227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29228 done; \
29229 echo "Doing dvi in gdbserver"; \
29230 (cd $(HOST_SUBDIR)/gdbserver && \
29231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29233 "RANLIB=$${RANLIB}" \
29234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29235 dvi) \
29236 || exit 1
29237
29238@endif gdbserver
29239
29240.PHONY: maybe-pdf-gdbserver pdf-gdbserver
29241maybe-pdf-gdbserver:
29242@if gdbserver
29243maybe-pdf-gdbserver: pdf-gdbserver
29244
29245pdf-gdbserver: \
29246 configure-gdbserver
29247 @: $(MAKE); $(unstage)
29248 @[ -f ./gdbserver/Makefile ] || exit 0; \
29249 r=`${PWD_COMMAND}`; export r; \
29250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29251 $(HOST_EXPORTS) \
29252 for flag in $(EXTRA_HOST_FLAGS) ; do \
29253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29254 done; \
29255 echo "Doing pdf in gdbserver"; \
29256 (cd $(HOST_SUBDIR)/gdbserver && \
29257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29259 "RANLIB=$${RANLIB}" \
29260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29261 pdf) \
29262 || exit 1
29263
29264@endif gdbserver
29265
29266.PHONY: maybe-html-gdbserver html-gdbserver
29267maybe-html-gdbserver:
29268@if gdbserver
29269maybe-html-gdbserver: html-gdbserver
29270
29271html-gdbserver: \
29272 configure-gdbserver
29273 @: $(MAKE); $(unstage)
29274 @[ -f ./gdbserver/Makefile ] || exit 0; \
29275 r=`${PWD_COMMAND}`; export r; \
29276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29277 $(HOST_EXPORTS) \
29278 for flag in $(EXTRA_HOST_FLAGS) ; do \
29279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29280 done; \
29281 echo "Doing html in gdbserver"; \
29282 (cd $(HOST_SUBDIR)/gdbserver && \
29283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29285 "RANLIB=$${RANLIB}" \
29286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29287 html) \
29288 || exit 1
29289
29290@endif gdbserver
29291
29292.PHONY: maybe-TAGS-gdbserver TAGS-gdbserver
29293maybe-TAGS-gdbserver:
29294@if gdbserver
29295maybe-TAGS-gdbserver: TAGS-gdbserver
29296
29297TAGS-gdbserver: \
29298 configure-gdbserver
29299 @: $(MAKE); $(unstage)
29300 @[ -f ./gdbserver/Makefile ] || exit 0; \
29301 r=`${PWD_COMMAND}`; export r; \
29302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29303 $(HOST_EXPORTS) \
29304 for flag in $(EXTRA_HOST_FLAGS) ; do \
29305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29306 done; \
29307 echo "Doing TAGS in gdbserver"; \
29308 (cd $(HOST_SUBDIR)/gdbserver && \
29309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29311 "RANLIB=$${RANLIB}" \
29312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29313 TAGS) \
29314 || exit 1
29315
29316@endif gdbserver
29317
29318.PHONY: maybe-install-info-gdbserver install-info-gdbserver
29319maybe-install-info-gdbserver:
29320@if gdbserver
29321maybe-install-info-gdbserver: install-info-gdbserver
29322
29323install-info-gdbserver: \
29324 configure-gdbserver \
29325 info-gdbserver
29326 @: $(MAKE); $(unstage)
29327 @[ -f ./gdbserver/Makefile ] || exit 0; \
29328 r=`${PWD_COMMAND}`; export r; \
29329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29330 $(HOST_EXPORTS) \
29331 for flag in $(EXTRA_HOST_FLAGS) ; do \
29332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29333 done; \
29334 echo "Doing install-info in gdbserver"; \
29335 (cd $(HOST_SUBDIR)/gdbserver && \
29336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29338 "RANLIB=$${RANLIB}" \
29339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29340 install-info) \
29341 || exit 1
29342
29343@endif gdbserver
29344
29345.PHONY: maybe-install-pdf-gdbserver install-pdf-gdbserver
29346maybe-install-pdf-gdbserver:
29347@if gdbserver
29348maybe-install-pdf-gdbserver: install-pdf-gdbserver
29349
29350install-pdf-gdbserver: \
29351 configure-gdbserver \
29352 pdf-gdbserver
29353 @: $(MAKE); $(unstage)
29354 @[ -f ./gdbserver/Makefile ] || exit 0; \
29355 r=`${PWD_COMMAND}`; export r; \
29356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29357 $(HOST_EXPORTS) \
29358 for flag in $(EXTRA_HOST_FLAGS) ; do \
29359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29360 done; \
29361 echo "Doing install-pdf in gdbserver"; \
29362 (cd $(HOST_SUBDIR)/gdbserver && \
29363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29365 "RANLIB=$${RANLIB}" \
29366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29367 install-pdf) \
29368 || exit 1
29369
29370@endif gdbserver
29371
29372.PHONY: maybe-install-html-gdbserver install-html-gdbserver
29373maybe-install-html-gdbserver:
29374@if gdbserver
29375maybe-install-html-gdbserver: install-html-gdbserver
29376
29377install-html-gdbserver: \
29378 configure-gdbserver \
29379 html-gdbserver
29380 @: $(MAKE); $(unstage)
29381 @[ -f ./gdbserver/Makefile ] || exit 0; \
29382 r=`${PWD_COMMAND}`; export r; \
29383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29384 $(HOST_EXPORTS) \
29385 for flag in $(EXTRA_HOST_FLAGS) ; do \
29386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29387 done; \
29388 echo "Doing install-html in gdbserver"; \
29389 (cd $(HOST_SUBDIR)/gdbserver && \
29390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29392 "RANLIB=$${RANLIB}" \
29393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29394 install-html) \
29395 || exit 1
29396
29397@endif gdbserver
29398
29399.PHONY: maybe-installcheck-gdbserver installcheck-gdbserver
29400maybe-installcheck-gdbserver:
29401@if gdbserver
29402maybe-installcheck-gdbserver: installcheck-gdbserver
29403
29404installcheck-gdbserver: \
29405 configure-gdbserver
29406 @: $(MAKE); $(unstage)
29407 @[ -f ./gdbserver/Makefile ] || exit 0; \
29408 r=`${PWD_COMMAND}`; export r; \
29409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29410 $(HOST_EXPORTS) \
29411 for flag in $(EXTRA_HOST_FLAGS) ; do \
29412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29413 done; \
29414 echo "Doing installcheck in gdbserver"; \
29415 (cd $(HOST_SUBDIR)/gdbserver && \
29416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29418 "RANLIB=$${RANLIB}" \
29419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29420 installcheck) \
29421 || exit 1
29422
29423@endif gdbserver
29424
29425.PHONY: maybe-mostlyclean-gdbserver mostlyclean-gdbserver
29426maybe-mostlyclean-gdbserver:
29427@if gdbserver
29428maybe-mostlyclean-gdbserver: mostlyclean-gdbserver
29429
29430mostlyclean-gdbserver:
29431 @: $(MAKE); $(unstage)
29432 @[ -f ./gdbserver/Makefile ] || exit 0; \
29433 r=`${PWD_COMMAND}`; export r; \
29434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29435 $(HOST_EXPORTS) \
29436 for flag in $(EXTRA_HOST_FLAGS) ; do \
29437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29438 done; \
29439 echo "Doing mostlyclean in gdbserver"; \
29440 (cd $(HOST_SUBDIR)/gdbserver && \
29441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29443 "RANLIB=$${RANLIB}" \
29444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29445 mostlyclean) \
29446 || exit 1
29447
29448@endif gdbserver
29449
29450.PHONY: maybe-clean-gdbserver clean-gdbserver
29451maybe-clean-gdbserver:
29452@if gdbserver
29453maybe-clean-gdbserver: clean-gdbserver
29454
29455clean-gdbserver:
29456 @: $(MAKE); $(unstage)
29457 @[ -f ./gdbserver/Makefile ] || exit 0; \
29458 r=`${PWD_COMMAND}`; export r; \
29459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29460 $(HOST_EXPORTS) \
29461 for flag in $(EXTRA_HOST_FLAGS) ; do \
29462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29463 done; \
29464 echo "Doing clean in gdbserver"; \
29465 (cd $(HOST_SUBDIR)/gdbserver && \
29466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29468 "RANLIB=$${RANLIB}" \
29469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29470 clean) \
29471 || exit 1
29472
29473@endif gdbserver
29474
29475.PHONY: maybe-distclean-gdbserver distclean-gdbserver
29476maybe-distclean-gdbserver:
29477@if gdbserver
29478maybe-distclean-gdbserver: distclean-gdbserver
29479
29480distclean-gdbserver:
29481 @: $(MAKE); $(unstage)
29482 @[ -f ./gdbserver/Makefile ] || exit 0; \
29483 r=`${PWD_COMMAND}`; export r; \
29484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29485 $(HOST_EXPORTS) \
29486 for flag in $(EXTRA_HOST_FLAGS) ; do \
29487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29488 done; \
29489 echo "Doing distclean in gdbserver"; \
29490 (cd $(HOST_SUBDIR)/gdbserver && \
29491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29493 "RANLIB=$${RANLIB}" \
29494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29495 distclean) \
29496 || exit 1
29497
29498@endif gdbserver
29499
29500.PHONY: maybe-maintainer-clean-gdbserver maintainer-clean-gdbserver
29501maybe-maintainer-clean-gdbserver:
29502@if gdbserver
29503maybe-maintainer-clean-gdbserver: maintainer-clean-gdbserver
29504
29505maintainer-clean-gdbserver:
29506 @: $(MAKE); $(unstage)
29507 @[ -f ./gdbserver/Makefile ] || exit 0; \
29508 r=`${PWD_COMMAND}`; export r; \
29509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29510 $(HOST_EXPORTS) \
29511 for flag in $(EXTRA_HOST_FLAGS) ; do \
29512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29513 done; \
29514 echo "Doing maintainer-clean in gdbserver"; \
29515 (cd $(HOST_SUBDIR)/gdbserver && \
29516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29518 "RANLIB=$${RANLIB}" \
29519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29520 maintainer-clean) \
29521 || exit 1
29522
29523@endif gdbserver
29524
29525
29526
a90ef4bf
JM
29527.PHONY: configure-gdb maybe-configure-gdb
29528maybe-configure-gdb:
4f0ef2d8 29529@if gcc-bootstrap
a90ef4bf 29530configure-gdb: stage_current
4f0ef2d8 29531@endif gcc-bootstrap
a90ef4bf
JM
29532@if gdb
29533maybe-configure-gdb: configure-gdb
29534configure-gdb:
29535 @: $(MAKE); $(unstage)
c52c6897
PB
29536 @r=`${PWD_COMMAND}`; export r; \
29537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29538 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
22121df0 29539 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb; \
1f53ca9a 29540 $(HOST_EXPORTS) \
a90ef4bf
JM
29541 echo Configuring in $(HOST_SUBDIR)/gdb; \
29542 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4fa63067 29543 case $(srcdir) in \
b00612cc 29544 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29545 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
b00612cc 29546 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 29547 esac; \
1b6c0831
L
29548 module_srcdir=gdb; \
29549 $(SHELL) \
29550 $$s/$$module_srcdir/configure \
29551 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29552 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29553 --target=${target_alias} \
4fa63067 29554 || exit 1
a90ef4bf 29555@endif gdb
4fa63067 29556
a7254363
PB
29557
29558
d545f33b 29559
8520c408 29560
a90ef4bf
JM
29561.PHONY: all-gdb maybe-all-gdb
29562maybe-all-gdb:
29563@if gcc-bootstrap
29564all-gdb: stage_current
29565@endif gcc-bootstrap
29566@if gdb
29567TARGET-gdb=all
29568maybe-all-gdb: all-gdb
29569all-gdb: configure-gdb
29570 @: $(MAKE); $(unstage)
c52c6897
PB
29571 @r=`${PWD_COMMAND}`; export r; \
29572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29573 $(HOST_EXPORTS) \
29574 (cd $(HOST_SUBDIR)/gdb && \
b3676d82 29575 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
29576 $(TARGET-gdb))
29577@endif gdb
8520c408 29578
a90ef4bf
JM
29579
29580
29581
29582.PHONY: check-gdb maybe-check-gdb
29583maybe-check-gdb:
29584@if gdb
29585maybe-check-gdb: check-gdb
29586
29587check-gdb:
29588 @: $(MAKE); $(unstage)
c52c6897
PB
29589 @r=`${PWD_COMMAND}`; export r; \
29590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 29591 $(HOST_EXPORTS) \
a90ef4bf
JM
29592 (cd $(HOST_SUBDIR)/gdb && \
29593 $(MAKE) $(FLAGS_TO_PASS) check)
d545f33b 29594
a90ef4bf
JM
29595@endif gdb
29596
29597.PHONY: install-gdb maybe-install-gdb
29598maybe-install-gdb:
29599@if gdb
29600maybe-install-gdb: install-gdb
29601
29602install-gdb: installdirs
29603 @: $(MAKE); $(unstage)
c52c6897
PB
29604 @r=`${PWD_COMMAND}`; export r; \
29605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29606 $(HOST_EXPORTS) \
a90ef4bf
JM
29607 (cd $(HOST_SUBDIR)/gdb && \
29608 $(MAKE) $(FLAGS_TO_PASS) install)
d545f33b 29609
a90ef4bf
JM
29610@endif gdb
29611
29612.PHONY: install-strip-gdb maybe-install-strip-gdb
29613maybe-install-strip-gdb:
29614@if gdb
29615maybe-install-strip-gdb: install-strip-gdb
29616
29617install-strip-gdb: installdirs
29618 @: $(MAKE); $(unstage)
c52c6897
PB
29619 @r=`${PWD_COMMAND}`; export r; \
29620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 29621 $(HOST_EXPORTS) \
a90ef4bf
JM
29622 (cd $(HOST_SUBDIR)/gdb && \
29623 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 29624
a90ef4bf 29625@endif gdb
d545f33b 29626
a90ef4bf 29627# Other targets (info, dvi, pdf, etc.)
d545f33b 29628
a90ef4bf
JM
29629.PHONY: maybe-info-gdb info-gdb
29630maybe-info-gdb:
29631@if gdb
29632maybe-info-gdb: info-gdb
d545f33b 29633
a90ef4bf
JM
29634info-gdb: \
29635 configure-gdb
29636 @: $(MAKE); $(unstage)
29637 @[ -f ./gdb/Makefile ] || exit 0; \
29638 r=`${PWD_COMMAND}`; export r; \
4fa63067 29639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29640 $(HOST_EXPORTS) \
29641 for flag in $(EXTRA_HOST_FLAGS) ; do \
29642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29643 done; \
22121df0 29644 echo "Doing info in gdb"; \
a90ef4bf
JM
29645 (cd $(HOST_SUBDIR)/gdb && \
29646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29648 "RANLIB=$${RANLIB}" \
29649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29650 info) \
29651 || exit 1
4fa63067 29652
a90ef4bf 29653@endif gdb
a7254363 29654
a90ef4bf
JM
29655.PHONY: maybe-dvi-gdb dvi-gdb
29656maybe-dvi-gdb:
29657@if gdb
29658maybe-dvi-gdb: dvi-gdb
d545f33b 29659
a90ef4bf
JM
29660dvi-gdb: \
29661 configure-gdb
29662 @: $(MAKE); $(unstage)
29663 @[ -f ./gdb/Makefile ] || exit 0; \
29664 r=`${PWD_COMMAND}`; export r; \
d545f33b 29665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
29666 $(HOST_EXPORTS) \
29667 for flag in $(EXTRA_HOST_FLAGS) ; do \
29668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29669 done; \
22121df0 29670 echo "Doing dvi in gdb"; \
a90ef4bf
JM
29671 (cd $(HOST_SUBDIR)/gdb && \
29672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29674 "RANLIB=$${RANLIB}" \
29675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
29676 dvi) \
29677 || exit 1
d545f33b 29678
a90ef4bf 29679@endif gdb
d545f33b 29680
a90ef4bf
JM
29681.PHONY: maybe-pdf-gdb pdf-gdb
29682maybe-pdf-gdb:
29683@if gdb
29684maybe-pdf-gdb: pdf-gdb
d545f33b 29685
a90ef4bf
JM
29686pdf-gdb: \
29687 configure-gdb
9b980aa1 29688 @: $(MAKE); $(unstage)
a90ef4bf 29689 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29690 r=`${PWD_COMMAND}`; export r; \
29691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29692 $(HOST_EXPORTS) \
b813574b 29693 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29695 done; \
22121df0 29696 echo "Doing pdf in gdb"; \
a90ef4bf 29697 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29700 "RANLIB=$${RANLIB}" \
0c24b341 29701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29702 pdf) \
2a4cbe27
NN
29703 || exit 1
29704
a90ef4bf 29705@endif gdb
2a4cbe27 29706
a90ef4bf
JM
29707.PHONY: maybe-html-gdb html-gdb
29708maybe-html-gdb:
29709@if gdb
29710maybe-html-gdb: html-gdb
2a4cbe27 29711
a90ef4bf
JM
29712html-gdb: \
29713 configure-gdb
29714 @: $(MAKE); $(unstage)
29715 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29716 r=`${PWD_COMMAND}`; export r; \
29717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29718 $(HOST_EXPORTS) \
b813574b 29719 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29721 done; \
22121df0 29722 echo "Doing html in gdb"; \
a90ef4bf 29723 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29726 "RANLIB=$${RANLIB}" \
0c24b341 29727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29728 html) \
2a4cbe27
NN
29729 || exit 1
29730
a90ef4bf 29731@endif gdb
2a4cbe27 29732
a90ef4bf
JM
29733.PHONY: maybe-TAGS-gdb TAGS-gdb
29734maybe-TAGS-gdb:
29735@if gdb
29736maybe-TAGS-gdb: TAGS-gdb
56a8fe78 29737
a90ef4bf
JM
29738TAGS-gdb: \
29739 configure-gdb
29740 @: $(MAKE); $(unstage)
29741 @[ -f ./gdb/Makefile ] || exit 0; \
56a8fe78
DD
29742 r=`${PWD_COMMAND}`; export r; \
29743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29744 $(HOST_EXPORTS) \
29745 for flag in $(EXTRA_HOST_FLAGS) ; do \
29746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29747 done; \
22121df0 29748 echo "Doing TAGS in gdb"; \
a90ef4bf 29749 (cd $(HOST_SUBDIR)/gdb && \
56a8fe78
DD
29750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29752 "RANLIB=$${RANLIB}" \
0c24b341 29753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29754 TAGS) \
56a8fe78
DD
29755 || exit 1
29756
a90ef4bf 29757@endif gdb
56a8fe78 29758
a90ef4bf
JM
29759.PHONY: maybe-install-info-gdb install-info-gdb
29760maybe-install-info-gdb:
29761@if gdb
29762maybe-install-info-gdb: install-info-gdb
6d389afc 29763
a90ef4bf
JM
29764install-info-gdb: \
29765 configure-gdb \
29766 info-gdb
29767 @: $(MAKE); $(unstage)
29768 @[ -f ./gdb/Makefile ] || exit 0; \
6d389afc
MS
29769 r=`${PWD_COMMAND}`; export r; \
29770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
29771 $(HOST_EXPORTS) \
29772 for flag in $(EXTRA_HOST_FLAGS) ; do \
29773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29774 done; \
22121df0 29775 echo "Doing install-info in gdb"; \
a90ef4bf 29776 (cd $(HOST_SUBDIR)/gdb && \
6d389afc
MS
29777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29779 "RANLIB=$${RANLIB}" \
0c24b341 29780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29781 install-info) \
6d389afc
MS
29782 || exit 1
29783
a90ef4bf 29784@endif gdb
6d389afc 29785
a90ef4bf
JM
29786.PHONY: maybe-install-pdf-gdb install-pdf-gdb
29787maybe-install-pdf-gdb:
29788@if gdb
29789maybe-install-pdf-gdb: install-pdf-gdb
2a4cbe27 29790
a90ef4bf
JM
29791install-pdf-gdb: \
29792 configure-gdb \
29793 pdf-gdb
29794 @: $(MAKE); $(unstage)
29795 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29796 r=`${PWD_COMMAND}`; export r; \
29797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29798 $(HOST_EXPORTS) \
b813574b 29799 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29801 done; \
22121df0 29802 echo "Doing install-pdf in gdb"; \
a90ef4bf 29803 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29806 "RANLIB=$${RANLIB}" \
0c24b341 29807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29808 install-pdf) \
2a4cbe27
NN
29809 || exit 1
29810
a90ef4bf 29811@endif gdb
2a4cbe27 29812
a90ef4bf
JM
29813.PHONY: maybe-install-html-gdb install-html-gdb
29814maybe-install-html-gdb:
29815@if gdb
29816maybe-install-html-gdb: install-html-gdb
2a4cbe27 29817
a90ef4bf
JM
29818install-html-gdb: \
29819 configure-gdb \
29820 html-gdb
29821 @: $(MAKE); $(unstage)
29822 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29823 r=`${PWD_COMMAND}`; export r; \
29824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29825 $(HOST_EXPORTS) \
b813574b 29826 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29828 done; \
22121df0 29829 echo "Doing install-html in gdb"; \
a90ef4bf 29830 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29833 "RANLIB=$${RANLIB}" \
0c24b341 29834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29835 install-html) \
2a4cbe27
NN
29836 || exit 1
29837
a90ef4bf 29838@endif gdb
2a4cbe27 29839
a90ef4bf
JM
29840.PHONY: maybe-installcheck-gdb installcheck-gdb
29841maybe-installcheck-gdb:
29842@if gdb
29843maybe-installcheck-gdb: installcheck-gdb
a3ca38d2 29844
a90ef4bf
JM
29845installcheck-gdb: \
29846 configure-gdb
29847 @: $(MAKE); $(unstage)
29848 @[ -f ./gdb/Makefile ] || exit 0; \
a3ca38d2
DD
29849 r=`${PWD_COMMAND}`; export r; \
29850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29851 $(HOST_EXPORTS) \
29852 for flag in $(EXTRA_HOST_FLAGS) ; do \
29853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29854 done; \
22121df0 29855 echo "Doing installcheck in gdb"; \
a90ef4bf 29856 (cd $(HOST_SUBDIR)/gdb && \
a3ca38d2
DD
29857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29859 "RANLIB=$${RANLIB}" \
0c24b341 29860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29861 installcheck) \
a3ca38d2
DD
29862 || exit 1
29863
a90ef4bf 29864@endif gdb
a3ca38d2 29865
a90ef4bf
JM
29866.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
29867maybe-mostlyclean-gdb:
29868@if gdb
29869maybe-mostlyclean-gdb: mostlyclean-gdb
108a6f8e 29870
a90ef4bf
JM
29871mostlyclean-gdb:
29872 @: $(MAKE); $(unstage)
29873 @[ -f ./gdb/Makefile ] || exit 0; \
108a6f8e
CD
29874 r=`${PWD_COMMAND}`; export r; \
29875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29876 $(HOST_EXPORTS) \
29877 for flag in $(EXTRA_HOST_FLAGS) ; do \
29878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29879 done; \
22121df0 29880 echo "Doing mostlyclean in gdb"; \
a90ef4bf 29881 (cd $(HOST_SUBDIR)/gdb && \
108a6f8e
CD
29882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29884 "RANLIB=$${RANLIB}" \
0c24b341 29885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29886 mostlyclean) \
108a6f8e
CD
29887 || exit 1
29888
a90ef4bf 29889@endif gdb
108a6f8e 29890
a90ef4bf
JM
29891.PHONY: maybe-clean-gdb clean-gdb
29892maybe-clean-gdb:
29893@if gdb
29894maybe-clean-gdb: clean-gdb
2a4cbe27 29895
a90ef4bf
JM
29896clean-gdb:
29897 @: $(MAKE); $(unstage)
29898 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29899 r=`${PWD_COMMAND}`; export r; \
29900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29901 $(HOST_EXPORTS) \
b813574b 29902 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29904 done; \
22121df0 29905 echo "Doing clean in gdb"; \
a90ef4bf 29906 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29909 "RANLIB=$${RANLIB}" \
0c24b341 29910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29911 clean) \
2a4cbe27
NN
29912 || exit 1
29913
a90ef4bf 29914@endif gdb
2a4cbe27 29915
a90ef4bf
JM
29916.PHONY: maybe-distclean-gdb distclean-gdb
29917maybe-distclean-gdb:
29918@if gdb
29919maybe-distclean-gdb: distclean-gdb
2a4cbe27 29920
a90ef4bf
JM
29921distclean-gdb:
29922 @: $(MAKE); $(unstage)
29923 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29924 r=`${PWD_COMMAND}`; export r; \
29925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29926 $(HOST_EXPORTS) \
b813574b 29927 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29929 done; \
22121df0 29930 echo "Doing distclean in gdb"; \
a90ef4bf 29931 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29934 "RANLIB=$${RANLIB}" \
0c24b341 29935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29936 distclean) \
2a4cbe27
NN
29937 || exit 1
29938
a90ef4bf 29939@endif gdb
2a4cbe27 29940
a90ef4bf
JM
29941.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
29942maybe-maintainer-clean-gdb:
29943@if gdb
29944maybe-maintainer-clean-gdb: maintainer-clean-gdb
2a4cbe27 29945
a90ef4bf
JM
29946maintainer-clean-gdb:
29947 @: $(MAKE); $(unstage)
29948 @[ -f ./gdb/Makefile ] || exit 0; \
b40e3958
L
29949 r=`${PWD_COMMAND}`; export r; \
29950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 29951 $(HOST_EXPORTS) \
b813574b 29952 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
29953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29954 done; \
22121df0 29955 echo "Doing maintainer-clean in gdb"; \
a90ef4bf 29956 (cd $(HOST_SUBDIR)/gdb && \
2a4cbe27
NN
29957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29959 "RANLIB=$${RANLIB}" \
0c24b341 29960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 29961 maintainer-clean) \
2a4cbe27
NN
29962 || exit 1
29963
a90ef4bf 29964@endif gdb
2a4cbe27 29965
2a4cbe27 29966
a7254363 29967
a90ef4bf
JM
29968.PHONY: configure-expect maybe-configure-expect
29969maybe-configure-expect:
4f0ef2d8 29970@if gcc-bootstrap
a90ef4bf 29971configure-expect: stage_current
4f0ef2d8 29972@endif gcc-bootstrap
a90ef4bf
JM
29973@if expect
29974maybe-configure-expect: configure-expect
29975configure-expect:
29976 @: $(MAKE); $(unstage)
c52c6897
PB
29977 @r=`${PWD_COMMAND}`; export r; \
29978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 29979 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
22121df0 29980 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect; \
1f53ca9a 29981 $(HOST_EXPORTS) \
a90ef4bf
JM
29982 echo Configuring in $(HOST_SUBDIR)/expect; \
29983 cd "$(HOST_SUBDIR)/expect" || exit 1; \
be01d343
PB
29984 case $(srcdir) in \
29985 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 29986 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
be01d343
PB
29987 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
29988 esac; \
1b6c0831
L
29989 module_srcdir=expect; \
29990 $(SHELL) \
29991 $$s/$$module_srcdir/configure \
29992 --srcdir=$${topdir}/$$module_srcdir \
4b900473 29993 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 29994 --target=${target_alias} \
be01d343 29995 || exit 1
a90ef4bf 29996@endif expect
be01d343
PB
29997
29998
29999
be01d343 30000
8520c408 30001
a90ef4bf
JM
30002.PHONY: all-expect maybe-all-expect
30003maybe-all-expect:
30004@if gcc-bootstrap
30005all-expect: stage_current
30006@endif gcc-bootstrap
30007@if expect
30008TARGET-expect=all
30009maybe-all-expect: all-expect
30010all-expect: configure-expect
30011 @: $(MAKE); $(unstage)
c52c6897
PB
30012 @r=`${PWD_COMMAND}`; export r; \
30013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30014 $(HOST_EXPORTS) \
30015 (cd $(HOST_SUBDIR)/expect && \
b3676d82 30016 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30017 $(TARGET-expect))
30018@endif expect
8520c408 30019
a90ef4bf
JM
30020
30021
30022
30023.PHONY: check-expect maybe-check-expect
30024maybe-check-expect:
30025@if expect
30026maybe-check-expect: check-expect
30027
30028check-expect:
30029 @: $(MAKE); $(unstage)
c52c6897
PB
30030 @r=`${PWD_COMMAND}`; export r; \
30031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30032 $(HOST_EXPORTS) \
a90ef4bf
JM
30033 (cd $(HOST_SUBDIR)/expect && \
30034 $(MAKE) $(FLAGS_TO_PASS) check)
be01d343 30035
a90ef4bf
JM
30036@endif expect
30037
30038.PHONY: install-expect maybe-install-expect
30039maybe-install-expect:
30040@if expect
30041maybe-install-expect: install-expect
30042
30043install-expect: installdirs
30044 @: $(MAKE); $(unstage)
c52c6897
PB
30045 @r=`${PWD_COMMAND}`; export r; \
30046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 30047 $(HOST_EXPORTS) \
a90ef4bf
JM
30048 (cd $(HOST_SUBDIR)/expect && \
30049 $(MAKE) $(FLAGS_TO_PASS) install)
be01d343 30050
a90ef4bf
JM
30051@endif expect
30052
30053.PHONY: install-strip-expect maybe-install-strip-expect
30054maybe-install-strip-expect:
30055@if expect
30056maybe-install-strip-expect: install-strip-expect
30057
30058install-strip-expect: installdirs
30059 @: $(MAKE); $(unstage)
c52c6897
PB
30060 @r=`${PWD_COMMAND}`; export r; \
30061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
be01d343 30062 $(HOST_EXPORTS) \
a90ef4bf
JM
30063 (cd $(HOST_SUBDIR)/expect && \
30064 $(MAKE) $(FLAGS_TO_PASS) install-strip)
be01d343 30065
a90ef4bf 30066@endif expect
be01d343 30067
a90ef4bf 30068# Other targets (info, dvi, pdf, etc.)
be01d343 30069
a90ef4bf
JM
30070.PHONY: maybe-info-expect info-expect
30071maybe-info-expect:
30072@if expect
30073maybe-info-expect: info-expect
be01d343 30074
a90ef4bf
JM
30075info-expect: \
30076 configure-expect
30077 @: $(MAKE); $(unstage)
30078 @[ -f ./expect/Makefile ] || exit 0; \
30079 r=`${PWD_COMMAND}`; export r; \
be01d343 30080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30081 $(HOST_EXPORTS) \
30082 for flag in $(EXTRA_HOST_FLAGS) ; do \
30083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30084 done; \
22121df0 30085 echo "Doing info in expect"; \
a90ef4bf
JM
30086 (cd $(HOST_SUBDIR)/expect && \
30087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30089 "RANLIB=$${RANLIB}" \
30090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30091 info) \
30092 || exit 1
be01d343 30093
a90ef4bf 30094@endif expect
be01d343 30095
a90ef4bf
JM
30096.PHONY: maybe-dvi-expect dvi-expect
30097maybe-dvi-expect:
30098@if expect
30099maybe-dvi-expect: dvi-expect
be01d343 30100
a90ef4bf
JM
30101dvi-expect: \
30102 configure-expect
30103 @: $(MAKE); $(unstage)
30104 @[ -f ./expect/Makefile ] || exit 0; \
30105 r=`${PWD_COMMAND}`; export r; \
be01d343 30106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30107 $(HOST_EXPORTS) \
30108 for flag in $(EXTRA_HOST_FLAGS) ; do \
30109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30110 done; \
22121df0 30111 echo "Doing dvi in expect"; \
a90ef4bf
JM
30112 (cd $(HOST_SUBDIR)/expect && \
30113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30115 "RANLIB=$${RANLIB}" \
30116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30117 dvi) \
30118 || exit 1
be01d343 30119
a90ef4bf 30120@endif expect
be01d343 30121
a90ef4bf
JM
30122.PHONY: maybe-pdf-expect pdf-expect
30123maybe-pdf-expect:
30124@if expect
30125maybe-pdf-expect: pdf-expect
be01d343 30126
a90ef4bf
JM
30127pdf-expect: \
30128 configure-expect
30129 @: $(MAKE); $(unstage)
30130 @[ -f ./expect/Makefile ] || exit 0; \
30131 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
30132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30133 $(HOST_EXPORTS) \
a90ef4bf
JM
30134 for flag in $(EXTRA_HOST_FLAGS) ; do \
30135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30136 done; \
22121df0 30137 echo "Doing pdf in expect"; \
a90ef4bf
JM
30138 (cd $(HOST_SUBDIR)/expect && \
30139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30141 "RANLIB=$${RANLIB}" \
30142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30143 pdf) \
30144 || exit 1
be01d343 30145
a90ef4bf 30146@endif expect
be01d343 30147
a90ef4bf
JM
30148.PHONY: maybe-html-expect html-expect
30149maybe-html-expect:
30150@if expect
30151maybe-html-expect: html-expect
be01d343 30152
a90ef4bf
JM
30153html-expect: \
30154 configure-expect
30155 @: $(MAKE); $(unstage)
30156 @[ -f ./expect/Makefile ] || exit 0; \
30157 r=`${PWD_COMMAND}`; export r; \
be01d343
PB
30158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30159 $(HOST_EXPORTS) \
a90ef4bf
JM
30160 for flag in $(EXTRA_HOST_FLAGS) ; do \
30161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30162 done; \
22121df0 30163 echo "Doing html in expect"; \
a90ef4bf
JM
30164 (cd $(HOST_SUBDIR)/expect && \
30165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30167 "RANLIB=$${RANLIB}" \
30168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
30169 html) \
30170 || exit 1
be01d343 30171
a90ef4bf 30172@endif expect
be01d343 30173
a90ef4bf
JM
30174.PHONY: maybe-TAGS-expect TAGS-expect
30175maybe-TAGS-expect:
30176@if expect
30177maybe-TAGS-expect: TAGS-expect
9b980aa1 30178
a90ef4bf
JM
30179TAGS-expect: \
30180 configure-expect
9b980aa1 30181 @: $(MAKE); $(unstage)
a90ef4bf 30182 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30183 r=`${PWD_COMMAND}`; export r; \
30184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30185 $(HOST_EXPORTS) \
30186 for flag in $(EXTRA_HOST_FLAGS) ; do \
30187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30188 done; \
22121df0 30189 echo "Doing TAGS in expect"; \
a90ef4bf 30190 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30193 "RANLIB=$${RANLIB}" \
0c24b341 30194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30195 TAGS) \
30196 || exit 1
30197
a90ef4bf 30198@endif expect
be01d343 30199
a90ef4bf
JM
30200.PHONY: maybe-install-info-expect install-info-expect
30201maybe-install-info-expect:
30202@if expect
30203maybe-install-info-expect: install-info-expect
be01d343 30204
a90ef4bf
JM
30205install-info-expect: \
30206 configure-expect \
30207 info-expect
30208 @: $(MAKE); $(unstage)
30209 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30210 r=`${PWD_COMMAND}`; export r; \
30211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30212 $(HOST_EXPORTS) \
30213 for flag in $(EXTRA_HOST_FLAGS) ; do \
30214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30215 done; \
22121df0 30216 echo "Doing install-info in expect"; \
a90ef4bf 30217 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30220 "RANLIB=$${RANLIB}" \
0c24b341 30221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30222 install-info) \
30223 || exit 1
30224
a90ef4bf 30225@endif expect
be01d343 30226
a90ef4bf
JM
30227.PHONY: maybe-install-pdf-expect install-pdf-expect
30228maybe-install-pdf-expect:
30229@if expect
30230maybe-install-pdf-expect: install-pdf-expect
a3ca38d2 30231
a90ef4bf
JM
30232install-pdf-expect: \
30233 configure-expect \
30234 pdf-expect
30235 @: $(MAKE); $(unstage)
30236 @[ -f ./expect/Makefile ] || exit 0; \
a3ca38d2
DD
30237 r=`${PWD_COMMAND}`; export r; \
30238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30239 $(HOST_EXPORTS) \
30240 for flag in $(EXTRA_HOST_FLAGS) ; do \
30241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30242 done; \
22121df0 30243 echo "Doing install-pdf in expect"; \
a90ef4bf 30244 (cd $(HOST_SUBDIR)/expect && \
a3ca38d2
DD
30245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30247 "RANLIB=$${RANLIB}" \
0c24b341 30248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30249 install-pdf) \
30250 || exit 1
30251
a90ef4bf 30252@endif expect
a3ca38d2 30253
a90ef4bf
JM
30254.PHONY: maybe-install-html-expect install-html-expect
30255maybe-install-html-expect:
30256@if expect
30257maybe-install-html-expect: install-html-expect
108a6f8e 30258
a90ef4bf
JM
30259install-html-expect: \
30260 configure-expect \
30261 html-expect
30262 @: $(MAKE); $(unstage)
30263 @[ -f ./expect/Makefile ] || exit 0; \
108a6f8e
CD
30264 r=`${PWD_COMMAND}`; export r; \
30265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30266 $(HOST_EXPORTS) \
30267 for flag in $(EXTRA_HOST_FLAGS) ; do \
30268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30269 done; \
22121df0 30270 echo "Doing install-html in expect"; \
a90ef4bf 30271 (cd $(HOST_SUBDIR)/expect && \
108a6f8e
CD
30272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30274 "RANLIB=$${RANLIB}" \
0c24b341 30275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30276 install-html) \
30277 || exit 1
30278
a90ef4bf 30279@endif expect
108a6f8e 30280
a90ef4bf
JM
30281.PHONY: maybe-installcheck-expect installcheck-expect
30282maybe-installcheck-expect:
30283@if expect
30284maybe-installcheck-expect: installcheck-expect
be01d343 30285
a90ef4bf
JM
30286installcheck-expect: \
30287 configure-expect
30288 @: $(MAKE); $(unstage)
30289 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30290 r=`${PWD_COMMAND}`; export r; \
30291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30292 $(HOST_EXPORTS) \
30293 for flag in $(EXTRA_HOST_FLAGS) ; do \
30294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30295 done; \
22121df0 30296 echo "Doing installcheck in expect"; \
a90ef4bf 30297 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30300 "RANLIB=$${RANLIB}" \
0c24b341 30301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30302 installcheck) \
30303 || exit 1
30304
a90ef4bf 30305@endif expect
be01d343 30306
a90ef4bf
JM
30307.PHONY: maybe-mostlyclean-expect mostlyclean-expect
30308maybe-mostlyclean-expect:
30309@if expect
30310maybe-mostlyclean-expect: mostlyclean-expect
be01d343 30311
a90ef4bf
JM
30312mostlyclean-expect:
30313 @: $(MAKE); $(unstage)
30314 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30315 r=`${PWD_COMMAND}`; export r; \
30316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30317 $(HOST_EXPORTS) \
30318 for flag in $(EXTRA_HOST_FLAGS) ; do \
30319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30320 done; \
22121df0 30321 echo "Doing mostlyclean in expect"; \
a90ef4bf 30322 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30325 "RANLIB=$${RANLIB}" \
0c24b341 30326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30327 mostlyclean) \
30328 || exit 1
30329
a90ef4bf 30330@endif expect
be01d343 30331
a90ef4bf
JM
30332.PHONY: maybe-clean-expect clean-expect
30333maybe-clean-expect:
30334@if expect
30335maybe-clean-expect: clean-expect
be01d343 30336
a90ef4bf
JM
30337clean-expect:
30338 @: $(MAKE); $(unstage)
30339 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30340 r=`${PWD_COMMAND}`; export r; \
30341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30342 $(HOST_EXPORTS) \
30343 for flag in $(EXTRA_HOST_FLAGS) ; do \
30344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30345 done; \
22121df0 30346 echo "Doing clean in expect"; \
a90ef4bf 30347 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30350 "RANLIB=$${RANLIB}" \
0c24b341 30351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30352 clean) \
30353 || exit 1
30354
a90ef4bf 30355@endif expect
be01d343 30356
a90ef4bf
JM
30357.PHONY: maybe-distclean-expect distclean-expect
30358maybe-distclean-expect:
30359@if expect
30360maybe-distclean-expect: distclean-expect
be01d343 30361
a90ef4bf
JM
30362distclean-expect:
30363 @: $(MAKE); $(unstage)
30364 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30365 r=`${PWD_COMMAND}`; export r; \
30366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30367 $(HOST_EXPORTS) \
30368 for flag in $(EXTRA_HOST_FLAGS) ; do \
30369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30370 done; \
22121df0 30371 echo "Doing distclean in expect"; \
a90ef4bf 30372 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30375 "RANLIB=$${RANLIB}" \
0c24b341 30376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30377 distclean) \
30378 || exit 1
30379
a90ef4bf 30380@endif expect
be01d343 30381
a90ef4bf
JM
30382.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
30383maybe-maintainer-clean-expect:
30384@if expect
30385maybe-maintainer-clean-expect: maintainer-clean-expect
be01d343 30386
a90ef4bf
JM
30387maintainer-clean-expect:
30388 @: $(MAKE); $(unstage)
30389 @[ -f ./expect/Makefile ] || exit 0; \
be01d343
PB
30390 r=`${PWD_COMMAND}`; export r; \
30391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30392 $(HOST_EXPORTS) \
30393 for flag in $(EXTRA_HOST_FLAGS) ; do \
30394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30395 done; \
22121df0 30396 echo "Doing maintainer-clean in expect"; \
a90ef4bf 30397 (cd $(HOST_SUBDIR)/expect && \
be01d343
PB
30398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30400 "RANLIB=$${RANLIB}" \
0c24b341 30401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
be01d343
PB
30402 maintainer-clean) \
30403 || exit 1
30404
a90ef4bf 30405@endif expect
be01d343
PB
30406
30407
30408
a90ef4bf
JM
30409.PHONY: configure-guile maybe-configure-guile
30410maybe-configure-guile:
4f0ef2d8 30411@if gcc-bootstrap
a90ef4bf 30412configure-guile: stage_current
4f0ef2d8 30413@endif gcc-bootstrap
a90ef4bf
JM
30414@if guile
30415maybe-configure-guile: configure-guile
30416configure-guile:
0aed8855 30417 @: $(MAKE); $(unstage)
c52c6897 30418 @r=`${PWD_COMMAND}`; export r; \
4b1cb4fe 30419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30420 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
22121df0 30421 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile; \
1f53ca9a 30422 $(HOST_EXPORTS) \
a90ef4bf
JM
30423 echo Configuring in $(HOST_SUBDIR)/guile; \
30424 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4b1cb4fe 30425 case $(srcdir) in \
b00612cc 30426 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30427 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
b00612cc 30428 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 30429 esac; \
1b6c0831
L
30430 module_srcdir=guile; \
30431 $(SHELL) \
30432 $$s/$$module_srcdir/configure \
30433 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30434 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30435 --target=${target_alias} \
4b1cb4fe 30436 || exit 1
a90ef4bf 30437@endif guile
4b1cb4fe 30438
a7254363
PB
30439
30440
d545f33b
PB
30441
30442
a90ef4bf
JM
30443.PHONY: all-guile maybe-all-guile
30444maybe-all-guile:
4f0ef2d8 30445@if gcc-bootstrap
a90ef4bf 30446all-guile: stage_current
4f0ef2d8 30447@endif gcc-bootstrap
a90ef4bf
JM
30448@if guile
30449TARGET-guile=all
30450maybe-all-guile: all-guile
30451all-guile: configure-guile
30452 @: $(MAKE); $(unstage)
4b1cb4fe
DD
30453 @r=`${PWD_COMMAND}`; export r; \
30454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 30455 $(HOST_EXPORTS) \
a90ef4bf 30456 (cd $(HOST_SUBDIR)/guile && \
b3676d82 30457 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30458 $(TARGET-guile))
30459@endif guile
4b1cb4fe 30460
a7254363 30461
d545f33b
PB
30462
30463
a90ef4bf
JM
30464.PHONY: check-guile maybe-check-guile
30465maybe-check-guile:
30466@if guile
30467maybe-check-guile: check-guile
4b1cb4fe 30468
a90ef4bf 30469check-guile:
0aed8855 30470 @: $(MAKE); $(unstage)
4b1cb4fe
DD
30471 @r=`${PWD_COMMAND}`; export r; \
30472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30473 $(HOST_EXPORTS) \
a90ef4bf 30474 (cd $(HOST_SUBDIR)/guile && \
b00612cc 30475 $(MAKE) $(FLAGS_TO_PASS) check)
4b1cb4fe 30476
a90ef4bf 30477@endif guile
4b1cb4fe 30478
a90ef4bf
JM
30479.PHONY: install-guile maybe-install-guile
30480maybe-install-guile:
30481@if guile
30482maybe-install-guile: install-guile
4b1cb4fe 30483
a90ef4bf 30484install-guile: installdirs
0aed8855 30485 @: $(MAKE); $(unstage)
b813574b
PB
30486 @r=`${PWD_COMMAND}`; export r; \
30487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
b813574b 30488 $(HOST_EXPORTS) \
a90ef4bf 30489 (cd $(HOST_SUBDIR)/guile && \
2da12f12 30490 $(MAKE) $(FLAGS_TO_PASS) install)
4b1cb4fe 30491
a90ef4bf 30492@endif guile
4b1cb4fe 30493
a90ef4bf
JM
30494.PHONY: install-strip-guile maybe-install-strip-guile
30495maybe-install-strip-guile:
30496@if guile
30497maybe-install-strip-guile: install-strip-guile
9b980aa1 30498
a90ef4bf 30499install-strip-guile: installdirs
9b980aa1
RW
30500 @: $(MAKE); $(unstage)
30501 @r=`${PWD_COMMAND}`; export r; \
30502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30503 $(HOST_EXPORTS) \
a90ef4bf 30504 (cd $(HOST_SUBDIR)/guile && \
9b980aa1
RW
30505 $(MAKE) $(FLAGS_TO_PASS) install-strip)
30506
a90ef4bf 30507@endif guile
9b980aa1 30508
56a8fe78 30509# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 30510
a90ef4bf
JM
30511.PHONY: maybe-info-guile info-guile
30512maybe-info-guile:
30513@if guile
30514maybe-info-guile: info-guile
4b1cb4fe 30515
a90ef4bf
JM
30516info-guile: \
30517 configure-guile
0aed8855 30518 @: $(MAKE); $(unstage)
a90ef4bf 30519 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30520 r=`${PWD_COMMAND}`; export r; \
30521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30522 $(HOST_EXPORTS) \
b813574b 30523 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30525 done; \
22121df0 30526 echo "Doing info in guile"; \
a90ef4bf 30527 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30530 "RANLIB=$${RANLIB}" \
0c24b341 30531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30532 info) \
4b1cb4fe
DD
30533 || exit 1
30534
a90ef4bf 30535@endif guile
4b1cb4fe 30536
a90ef4bf
JM
30537.PHONY: maybe-dvi-guile dvi-guile
30538maybe-dvi-guile:
30539@if guile
30540maybe-dvi-guile: dvi-guile
4b1cb4fe 30541
a90ef4bf
JM
30542dvi-guile: \
30543 configure-guile
0aed8855 30544 @: $(MAKE); $(unstage)
a90ef4bf 30545 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30546 r=`${PWD_COMMAND}`; export r; \
30547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30548 $(HOST_EXPORTS) \
b813574b 30549 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30551 done; \
22121df0 30552 echo "Doing dvi in guile"; \
a90ef4bf 30553 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30556 "RANLIB=$${RANLIB}" \
0c24b341 30557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30558 dvi) \
4b1cb4fe
DD
30559 || exit 1
30560
a90ef4bf 30561@endif guile
4b1cb4fe 30562
a90ef4bf
JM
30563.PHONY: maybe-pdf-guile pdf-guile
30564maybe-pdf-guile:
30565@if guile
30566maybe-pdf-guile: pdf-guile
56a8fe78 30567
a90ef4bf
JM
30568pdf-guile: \
30569 configure-guile
56a8fe78 30570 @: $(MAKE); $(unstage)
a90ef4bf 30571 @[ -f ./guile/Makefile ] || exit 0; \
56a8fe78
DD
30572 r=`${PWD_COMMAND}`; export r; \
30573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30574 $(HOST_EXPORTS) \
30575 for flag in $(EXTRA_HOST_FLAGS) ; do \
30576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30577 done; \
22121df0 30578 echo "Doing pdf in guile"; \
a90ef4bf 30579 (cd $(HOST_SUBDIR)/guile && \
56a8fe78
DD
30580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30582 "RANLIB=$${RANLIB}" \
0c24b341 30583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
30584 pdf) \
30585 || exit 1
30586
a90ef4bf 30587@endif guile
56a8fe78 30588
a90ef4bf
JM
30589.PHONY: maybe-html-guile html-guile
30590maybe-html-guile:
30591@if guile
30592maybe-html-guile: html-guile
6d389afc 30593
a90ef4bf
JM
30594html-guile: \
30595 configure-guile
0aed8855 30596 @: $(MAKE); $(unstage)
a90ef4bf 30597 @[ -f ./guile/Makefile ] || exit 0; \
6d389afc
MS
30598 r=`${PWD_COMMAND}`; export r; \
30599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30600 $(HOST_EXPORTS) \
30601 for flag in $(EXTRA_HOST_FLAGS) ; do \
30602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30603 done; \
22121df0 30604 echo "Doing html in guile"; \
a90ef4bf 30605 (cd $(HOST_SUBDIR)/guile && \
6d389afc
MS
30606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30608 "RANLIB=$${RANLIB}" \
0c24b341 30609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30610 html) \
30611 || exit 1
30612
a90ef4bf 30613@endif guile
6d389afc 30614
a90ef4bf
JM
30615.PHONY: maybe-TAGS-guile TAGS-guile
30616maybe-TAGS-guile:
30617@if guile
30618maybe-TAGS-guile: TAGS-guile
4b1cb4fe 30619
a90ef4bf
JM
30620TAGS-guile: \
30621 configure-guile
0aed8855 30622 @: $(MAKE); $(unstage)
a90ef4bf 30623 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30624 r=`${PWD_COMMAND}`; export r; \
30625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30626 $(HOST_EXPORTS) \
b813574b 30627 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30629 done; \
22121df0 30630 echo "Doing TAGS in guile"; \
a90ef4bf 30631 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30634 "RANLIB=$${RANLIB}" \
0c24b341 30635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30636 TAGS) \
4b1cb4fe
DD
30637 || exit 1
30638
a90ef4bf 30639@endif guile
4b1cb4fe 30640
a90ef4bf
JM
30641.PHONY: maybe-install-info-guile install-info-guile
30642maybe-install-info-guile:
30643@if guile
30644maybe-install-info-guile: install-info-guile
4b1cb4fe 30645
a90ef4bf
JM
30646install-info-guile: \
30647 configure-guile \
30648 info-guile
0aed8855 30649 @: $(MAKE); $(unstage)
a90ef4bf 30650 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30651 r=`${PWD_COMMAND}`; export r; \
30652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30653 $(HOST_EXPORTS) \
b813574b 30654 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30656 done; \
22121df0 30657 echo "Doing install-info in guile"; \
a90ef4bf 30658 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30661 "RANLIB=$${RANLIB}" \
0c24b341 30662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30663 install-info) \
4b1cb4fe
DD
30664 || exit 1
30665
a90ef4bf 30666@endif guile
4b1cb4fe 30667
a90ef4bf
JM
30668.PHONY: maybe-install-pdf-guile install-pdf-guile
30669maybe-install-pdf-guile:
30670@if guile
30671maybe-install-pdf-guile: install-pdf-guile
a3ca38d2 30672
a90ef4bf
JM
30673install-pdf-guile: \
30674 configure-guile \
30675 pdf-guile
a3ca38d2 30676 @: $(MAKE); $(unstage)
a90ef4bf 30677 @[ -f ./guile/Makefile ] || exit 0; \
a3ca38d2
DD
30678 r=`${PWD_COMMAND}`; export r; \
30679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30680 $(HOST_EXPORTS) \
30681 for flag in $(EXTRA_HOST_FLAGS) ; do \
30682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30683 done; \
22121df0 30684 echo "Doing install-pdf in guile"; \
a90ef4bf 30685 (cd $(HOST_SUBDIR)/guile && \
a3ca38d2
DD
30686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30688 "RANLIB=$${RANLIB}" \
0c24b341 30689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
30690 install-pdf) \
30691 || exit 1
30692
a90ef4bf 30693@endif guile
a3ca38d2 30694
a90ef4bf
JM
30695.PHONY: maybe-install-html-guile install-html-guile
30696maybe-install-html-guile:
30697@if guile
30698maybe-install-html-guile: install-html-guile
108a6f8e 30699
a90ef4bf
JM
30700install-html-guile: \
30701 configure-guile \
30702 html-guile
108a6f8e 30703 @: $(MAKE); $(unstage)
a90ef4bf 30704 @[ -f ./guile/Makefile ] || exit 0; \
108a6f8e
CD
30705 r=`${PWD_COMMAND}`; export r; \
30706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30707 $(HOST_EXPORTS) \
30708 for flag in $(EXTRA_HOST_FLAGS) ; do \
30709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30710 done; \
22121df0 30711 echo "Doing install-html in guile"; \
a90ef4bf 30712 (cd $(HOST_SUBDIR)/guile && \
108a6f8e
CD
30713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30715 "RANLIB=$${RANLIB}" \
0c24b341 30716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
30717 install-html) \
30718 || exit 1
30719
a90ef4bf 30720@endif guile
108a6f8e 30721
a90ef4bf
JM
30722.PHONY: maybe-installcheck-guile installcheck-guile
30723maybe-installcheck-guile:
30724@if guile
30725maybe-installcheck-guile: installcheck-guile
4b1cb4fe 30726
a90ef4bf
JM
30727installcheck-guile: \
30728 configure-guile
0aed8855 30729 @: $(MAKE); $(unstage)
a90ef4bf 30730 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30731 r=`${PWD_COMMAND}`; export r; \
30732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30733 $(HOST_EXPORTS) \
b813574b 30734 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30736 done; \
22121df0 30737 echo "Doing installcheck in guile"; \
a90ef4bf 30738 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30741 "RANLIB=$${RANLIB}" \
0c24b341 30742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30743 installcheck) \
4b1cb4fe
DD
30744 || exit 1
30745
a90ef4bf 30746@endif guile
4b1cb4fe 30747
a90ef4bf
JM
30748.PHONY: maybe-mostlyclean-guile mostlyclean-guile
30749maybe-mostlyclean-guile:
30750@if guile
30751maybe-mostlyclean-guile: mostlyclean-guile
4b1cb4fe 30752
a90ef4bf 30753mostlyclean-guile:
0aed8855 30754 @: $(MAKE); $(unstage)
a90ef4bf 30755 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30756 r=`${PWD_COMMAND}`; export r; \
30757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30758 $(HOST_EXPORTS) \
b813574b 30759 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30761 done; \
22121df0 30762 echo "Doing mostlyclean in guile"; \
a90ef4bf 30763 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30766 "RANLIB=$${RANLIB}" \
0c24b341 30767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30768 mostlyclean) \
4b1cb4fe
DD
30769 || exit 1
30770
a90ef4bf 30771@endif guile
4b1cb4fe 30772
a90ef4bf
JM
30773.PHONY: maybe-clean-guile clean-guile
30774maybe-clean-guile:
30775@if guile
30776maybe-clean-guile: clean-guile
4b1cb4fe 30777
a90ef4bf 30778clean-guile:
0aed8855 30779 @: $(MAKE); $(unstage)
a90ef4bf 30780 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30781 r=`${PWD_COMMAND}`; export r; \
30782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30783 $(HOST_EXPORTS) \
b813574b 30784 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30786 done; \
22121df0 30787 echo "Doing clean in guile"; \
a90ef4bf 30788 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30791 "RANLIB=$${RANLIB}" \
0c24b341 30792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30793 clean) \
4b1cb4fe
DD
30794 || exit 1
30795
a90ef4bf 30796@endif guile
4b1cb4fe 30797
a90ef4bf
JM
30798.PHONY: maybe-distclean-guile distclean-guile
30799maybe-distclean-guile:
30800@if guile
30801maybe-distclean-guile: distclean-guile
4b1cb4fe 30802
a90ef4bf 30803distclean-guile:
0aed8855 30804 @: $(MAKE); $(unstage)
a90ef4bf 30805 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30806 r=`${PWD_COMMAND}`; export r; \
30807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30808 $(HOST_EXPORTS) \
b813574b 30809 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30811 done; \
22121df0 30812 echo "Doing distclean in guile"; \
a90ef4bf 30813 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30816 "RANLIB=$${RANLIB}" \
0c24b341 30817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30818 distclean) \
4b1cb4fe
DD
30819 || exit 1
30820
a90ef4bf 30821@endif guile
4b1cb4fe 30822
a90ef4bf
JM
30823.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
30824maybe-maintainer-clean-guile:
30825@if guile
30826maybe-maintainer-clean-guile: maintainer-clean-guile
4b1cb4fe 30827
a90ef4bf 30828maintainer-clean-guile:
0aed8855 30829 @: $(MAKE); $(unstage)
a90ef4bf 30830 @[ -f ./guile/Makefile ] || exit 0; \
4b1cb4fe
DD
30831 r=`${PWD_COMMAND}`; export r; \
30832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30833 $(HOST_EXPORTS) \
b813574b 30834 for flag in $(EXTRA_HOST_FLAGS) ; do \
4b1cb4fe
DD
30835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30836 done; \
22121df0 30837 echo "Doing maintainer-clean in guile"; \
a90ef4bf 30838 (cd $(HOST_SUBDIR)/guile && \
4b1cb4fe
DD
30839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30841 "RANLIB=$${RANLIB}" \
0c24b341 30842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 30843 maintainer-clean) \
4b1cb4fe
DD
30844 || exit 1
30845
a90ef4bf 30846@endif guile
4b1cb4fe
DD
30847
30848
a7254363 30849
a90ef4bf
JM
30850.PHONY: configure-tk maybe-configure-tk
30851maybe-configure-tk:
4f0ef2d8 30852@if gcc-bootstrap
a90ef4bf 30853configure-tk: stage_current
4f0ef2d8 30854@endif gcc-bootstrap
a90ef4bf
JM
30855@if tk
30856maybe-configure-tk: configure-tk
30857configure-tk:
30858 @: $(MAKE); $(unstage)
c52c6897
PB
30859 @r=`${PWD_COMMAND}`; export r; \
30860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 30861 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
22121df0 30862 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk; \
1f53ca9a 30863 $(HOST_EXPORTS) \
a90ef4bf
JM
30864 echo Configuring in $(HOST_SUBDIR)/tk; \
30865 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4fa63067 30866 case $(srcdir) in \
b00612cc 30867 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 30868 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
b00612cc 30869 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 30870 esac; \
1b6c0831
L
30871 module_srcdir=tk; \
30872 $(SHELL) \
30873 $$s/$$module_srcdir/configure \
30874 --srcdir=$${topdir}/$$module_srcdir \
4b900473 30875 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 30876 --target=${target_alias} \
2a4cbe27 30877 || exit 1
a90ef4bf 30878@endif tk
2a4cbe27 30879
a7254363
PB
30880
30881
a90ef4bf
JM
30882
30883
30884.PHONY: all-tk maybe-all-tk
30885maybe-all-tk:
30886@if gcc-bootstrap
30887all-tk: stage_current
30888@endif gcc-bootstrap
30889@if tk
30890TARGET-tk=all
30891maybe-all-tk: all-tk
30892all-tk: configure-tk
30893 @: $(MAKE); $(unstage)
c52c6897
PB
30894 @r=`${PWD_COMMAND}`; export r; \
30895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
30896 $(HOST_EXPORTS) \
30897 (cd $(HOST_SUBDIR)/tk && \
b3676d82 30898 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
30899 $(TARGET-tk))
30900@endif tk
d545f33b 30901
a90ef4bf
JM
30902
30903
30904
30905.PHONY: check-tk maybe-check-tk
30906maybe-check-tk:
30907@if tk
30908maybe-check-tk: check-tk
30909
30910check-tk:
30911 @: $(MAKE); $(unstage)
c52c6897
PB
30912 @r=`${PWD_COMMAND}`; export r; \
30913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 30914 $(HOST_EXPORTS) \
a90ef4bf
JM
30915 (cd $(HOST_SUBDIR)/tk && \
30916 $(MAKE) $(FLAGS_TO_PASS) check)
8520c408 30917
a90ef4bf
JM
30918@endif tk
30919
30920.PHONY: install-tk maybe-install-tk
30921maybe-install-tk:
30922@if tk
30923maybe-install-tk: install-tk
30924
30925install-tk: installdirs
30926 @: $(MAKE); $(unstage)
c52c6897
PB
30927 @r=`${PWD_COMMAND}`; export r; \
30928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 30929 $(HOST_EXPORTS) \
a90ef4bf
JM
30930 (cd $(HOST_SUBDIR)/tk && \
30931 $(MAKE) $(FLAGS_TO_PASS) install)
8520c408 30932
a90ef4bf
JM
30933@endif tk
30934
30935.PHONY: install-strip-tk maybe-install-strip-tk
30936maybe-install-strip-tk:
30937@if tk
30938maybe-install-strip-tk: install-strip-tk
30939
30940install-strip-tk: installdirs
30941 @: $(MAKE); $(unstage)
c52c6897
PB
30942 @r=`${PWD_COMMAND}`; export r; \
30943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d545f33b 30944 $(HOST_EXPORTS) \
a90ef4bf
JM
30945 (cd $(HOST_SUBDIR)/tk && \
30946 $(MAKE) $(FLAGS_TO_PASS) install-strip)
d545f33b 30947
a90ef4bf 30948@endif tk
9b980aa1 30949
56a8fe78 30950# Other targets (info, dvi, pdf, etc.)
2a4cbe27 30951
a90ef4bf
JM
30952.PHONY: maybe-info-tk info-tk
30953maybe-info-tk:
30954@if tk
30955maybe-info-tk: info-tk
4fa63067 30956
a90ef4bf
JM
30957info-tk: \
30958 configure-tk
30959 @: $(MAKE); $(unstage)
30960 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
30961 r=`${PWD_COMMAND}`; export r; \
30962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 30963 $(HOST_EXPORTS) \
b813574b 30964 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
30965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30966 done; \
22121df0 30967 echo "Doing info in tk"; \
a90ef4bf 30968 (cd $(HOST_SUBDIR)/tk && \
6d389afc
MS
30969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30971 "RANLIB=$${RANLIB}" \
0c24b341 30972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
30973 info) \
30974 || exit 1
30975
a90ef4bf 30976@endif tk
6d389afc 30977
a90ef4bf
JM
30978.PHONY: maybe-dvi-tk dvi-tk
30979maybe-dvi-tk:
30980@if tk
30981maybe-dvi-tk: dvi-tk
6d389afc 30982
a90ef4bf
JM
30983dvi-tk: \
30984 configure-tk
30985 @: $(MAKE); $(unstage)
30986 @[ -f ./tk/Makefile ] || exit 0; \
6d389afc
MS
30987 r=`${PWD_COMMAND}`; export r; \
30988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
30989 $(HOST_EXPORTS) \
30990 for flag in $(EXTRA_HOST_FLAGS) ; do \
30991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30992 done; \
22121df0 30993 echo "Doing dvi in tk"; \
a90ef4bf 30994 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
30995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30997 "RANLIB=$${RANLIB}" \
0c24b341 30998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 30999 dvi) \
2a4cbe27
NN
31000 || exit 1
31001
a90ef4bf 31002@endif tk
2a4cbe27 31003
a90ef4bf
JM
31004.PHONY: maybe-pdf-tk pdf-tk
31005maybe-pdf-tk:
31006@if tk
31007maybe-pdf-tk: pdf-tk
56a8fe78 31008
a90ef4bf
JM
31009pdf-tk: \
31010 configure-tk
31011 @: $(MAKE); $(unstage)
31012 @[ -f ./tk/Makefile ] || exit 0; \
56a8fe78
DD
31013 r=`${PWD_COMMAND}`; export r; \
31014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31015 $(HOST_EXPORTS) \
31016 for flag in $(EXTRA_HOST_FLAGS) ; do \
31017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31018 done; \
22121df0 31019 echo "Doing pdf in tk"; \
a90ef4bf 31020 (cd $(HOST_SUBDIR)/tk && \
56a8fe78
DD
31021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31023 "RANLIB=$${RANLIB}" \
0c24b341 31024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31025 pdf) \
31026 || exit 1
31027
a90ef4bf 31028@endif tk
56a8fe78 31029
a90ef4bf
JM
31030.PHONY: maybe-html-tk html-tk
31031maybe-html-tk:
31032@if tk
31033maybe-html-tk: html-tk
2a4cbe27 31034
a90ef4bf
JM
31035html-tk: \
31036 configure-tk
31037 @: $(MAKE); $(unstage)
31038 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31039 r=`${PWD_COMMAND}`; export r; \
31040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31041 $(HOST_EXPORTS) \
b813574b 31042 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31044 done; \
22121df0 31045 echo "Doing html in tk"; \
a90ef4bf 31046 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31049 "RANLIB=$${RANLIB}" \
0c24b341 31050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 31051 html) \
2a4cbe27
NN
31052 || exit 1
31053
a90ef4bf 31054@endif tk
2a4cbe27 31055
a90ef4bf
JM
31056.PHONY: maybe-TAGS-tk TAGS-tk
31057maybe-TAGS-tk:
31058@if tk
31059maybe-TAGS-tk: TAGS-tk
2a4cbe27 31060
a90ef4bf
JM
31061TAGS-tk: \
31062 configure-tk
31063 @: $(MAKE); $(unstage)
31064 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31065 r=`${PWD_COMMAND}`; export r; \
31066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31067 $(HOST_EXPORTS) \
b813574b 31068 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31070 done; \
22121df0 31071 echo "Doing TAGS in tk"; \
a90ef4bf 31072 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31075 "RANLIB=$${RANLIB}" \
0c24b341 31076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31077 TAGS) \
2a4cbe27
NN
31078 || exit 1
31079
a90ef4bf 31080@endif tk
2a4cbe27 31081
a90ef4bf
JM
31082.PHONY: maybe-install-info-tk install-info-tk
31083maybe-install-info-tk:
31084@if tk
31085maybe-install-info-tk: install-info-tk
2a4cbe27 31086
a90ef4bf
JM
31087install-info-tk: \
31088 configure-tk \
31089 info-tk
31090 @: $(MAKE); $(unstage)
31091 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31092 r=`${PWD_COMMAND}`; export r; \
31093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31094 $(HOST_EXPORTS) \
b813574b 31095 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31097 done; \
22121df0 31098 echo "Doing install-info in tk"; \
a90ef4bf 31099 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31102 "RANLIB=$${RANLIB}" \
0c24b341 31103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31104 install-info) \
2a4cbe27
NN
31105 || exit 1
31106
a90ef4bf 31107@endif tk
2a4cbe27 31108
a90ef4bf
JM
31109.PHONY: maybe-install-pdf-tk install-pdf-tk
31110maybe-install-pdf-tk:
31111@if tk
31112maybe-install-pdf-tk: install-pdf-tk
a3ca38d2 31113
a90ef4bf
JM
31114install-pdf-tk: \
31115 configure-tk \
31116 pdf-tk
31117 @: $(MAKE); $(unstage)
31118 @[ -f ./tk/Makefile ] || exit 0; \
a3ca38d2
DD
31119 r=`${PWD_COMMAND}`; export r; \
31120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31121 $(HOST_EXPORTS) \
31122 for flag in $(EXTRA_HOST_FLAGS) ; do \
31123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31124 done; \
22121df0 31125 echo "Doing install-pdf in tk"; \
a90ef4bf 31126 (cd $(HOST_SUBDIR)/tk && \
a3ca38d2
DD
31127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31129 "RANLIB=$${RANLIB}" \
0c24b341 31130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31131 install-pdf) \
31132 || exit 1
31133
a90ef4bf 31134@endif tk
a3ca38d2 31135
a90ef4bf
JM
31136.PHONY: maybe-install-html-tk install-html-tk
31137maybe-install-html-tk:
31138@if tk
31139maybe-install-html-tk: install-html-tk
108a6f8e 31140
a90ef4bf
JM
31141install-html-tk: \
31142 configure-tk \
31143 html-tk
31144 @: $(MAKE); $(unstage)
31145 @[ -f ./tk/Makefile ] || exit 0; \
108a6f8e
CD
31146 r=`${PWD_COMMAND}`; export r; \
31147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31148 $(HOST_EXPORTS) \
31149 for flag in $(EXTRA_HOST_FLAGS) ; do \
31150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31151 done; \
22121df0 31152 echo "Doing install-html in tk"; \
a90ef4bf 31153 (cd $(HOST_SUBDIR)/tk && \
108a6f8e
CD
31154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31156 "RANLIB=$${RANLIB}" \
0c24b341 31157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31158 install-html) \
31159 || exit 1
31160
a90ef4bf 31161@endif tk
108a6f8e 31162
a90ef4bf
JM
31163.PHONY: maybe-installcheck-tk installcheck-tk
31164maybe-installcheck-tk:
31165@if tk
31166maybe-installcheck-tk: installcheck-tk
2a4cbe27 31167
a90ef4bf
JM
31168installcheck-tk: \
31169 configure-tk
31170 @: $(MAKE); $(unstage)
31171 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31172 r=`${PWD_COMMAND}`; export r; \
31173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31174 $(HOST_EXPORTS) \
b813574b 31175 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31177 done; \
22121df0 31178 echo "Doing installcheck in tk"; \
a90ef4bf 31179 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31182 "RANLIB=$${RANLIB}" \
0c24b341 31183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31184 installcheck) \
2a4cbe27
NN
31185 || exit 1
31186
a90ef4bf 31187@endif tk
2a4cbe27 31188
a90ef4bf
JM
31189.PHONY: maybe-mostlyclean-tk mostlyclean-tk
31190maybe-mostlyclean-tk:
31191@if tk
31192maybe-mostlyclean-tk: mostlyclean-tk
2a4cbe27 31193
a90ef4bf
JM
31194mostlyclean-tk:
31195 @: $(MAKE); $(unstage)
31196 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31197 r=`${PWD_COMMAND}`; export r; \
31198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31199 $(HOST_EXPORTS) \
b813574b 31200 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31202 done; \
22121df0 31203 echo "Doing mostlyclean in tk"; \
a90ef4bf 31204 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31207 "RANLIB=$${RANLIB}" \
0c24b341 31208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31209 mostlyclean) \
2a4cbe27
NN
31210 || exit 1
31211
a90ef4bf 31212@endif tk
2a4cbe27 31213
a90ef4bf
JM
31214.PHONY: maybe-clean-tk clean-tk
31215maybe-clean-tk:
31216@if tk
31217maybe-clean-tk: clean-tk
2a4cbe27 31218
a90ef4bf
JM
31219clean-tk:
31220 @: $(MAKE); $(unstage)
31221 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31222 r=`${PWD_COMMAND}`; export r; \
31223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31224 $(HOST_EXPORTS) \
b813574b 31225 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31227 done; \
22121df0 31228 echo "Doing clean in tk"; \
a90ef4bf 31229 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31232 "RANLIB=$${RANLIB}" \
0c24b341 31233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31234 clean) \
2a4cbe27
NN
31235 || exit 1
31236
a90ef4bf 31237@endif tk
2a4cbe27 31238
a90ef4bf
JM
31239.PHONY: maybe-distclean-tk distclean-tk
31240maybe-distclean-tk:
31241@if tk
31242maybe-distclean-tk: distclean-tk
2a4cbe27 31243
a90ef4bf
JM
31244distclean-tk:
31245 @: $(MAKE); $(unstage)
31246 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31247 r=`${PWD_COMMAND}`; export r; \
31248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31249 $(HOST_EXPORTS) \
b813574b 31250 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31252 done; \
22121df0 31253 echo "Doing distclean in tk"; \
a90ef4bf 31254 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31257 "RANLIB=$${RANLIB}" \
0c24b341 31258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31259 distclean) \
2a4cbe27
NN
31260 || exit 1
31261
a90ef4bf 31262@endif tk
2a4cbe27 31263
a90ef4bf
JM
31264.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
31265maybe-maintainer-clean-tk:
31266@if tk
31267maybe-maintainer-clean-tk: maintainer-clean-tk
2a4cbe27 31268
a90ef4bf
JM
31269maintainer-clean-tk:
31270 @: $(MAKE); $(unstage)
31271 @[ -f ./tk/Makefile ] || exit 0; \
b40e3958
L
31272 r=`${PWD_COMMAND}`; export r; \
31273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31274 $(HOST_EXPORTS) \
b813574b 31275 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31277 done; \
22121df0 31278 echo "Doing maintainer-clean in tk"; \
a90ef4bf 31279 (cd $(HOST_SUBDIR)/tk && \
2a4cbe27
NN
31280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31282 "RANLIB=$${RANLIB}" \
0c24b341 31283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31284 maintainer-clean) \
2a4cbe27
NN
31285 || exit 1
31286
a90ef4bf 31287@endif tk
2a4cbe27 31288
2a4cbe27 31289
a7254363 31290
a90ef4bf
JM
31291.PHONY: configure-libtermcap maybe-configure-libtermcap
31292maybe-configure-libtermcap:
dc448a7b 31293@if gcc-bootstrap
a90ef4bf 31294configure-libtermcap: stage_current
dc448a7b 31295@endif gcc-bootstrap
a90ef4bf
JM
31296@if libtermcap
31297maybe-configure-libtermcap: configure-libtermcap
31298configure-libtermcap:
dc448a7b
TT
31299 @: $(MAKE); $(unstage)
31300 @r=`${PWD_COMMAND}`; export r; \
31301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31302 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 31303 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap; \
1f53ca9a 31304 $(HOST_EXPORTS) \
a90ef4bf
JM
31305 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
31306 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
dc448a7b
TT
31307 case $(srcdir) in \
31308 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31309 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
dc448a7b
TT
31310 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
31311 esac; \
1b6c0831
L
31312 module_srcdir=libtermcap; \
31313 $(SHELL) \
31314 $$s/$$module_srcdir/configure \
31315 --srcdir=$${topdir}/$$module_srcdir \
dc448a7b 31316 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31317 --target=${target_alias} \
dc448a7b 31318 || exit 1
a90ef4bf 31319@endif libtermcap
dc448a7b
TT
31320
31321
31322
31323
31324
a90ef4bf
JM
31325.PHONY: all-libtermcap maybe-all-libtermcap
31326maybe-all-libtermcap:
dc448a7b 31327@if gcc-bootstrap
a90ef4bf 31328all-libtermcap: stage_current
dc448a7b 31329@endif gcc-bootstrap
a90ef4bf
JM
31330@if libtermcap
31331TARGET-libtermcap=all
31332maybe-all-libtermcap: all-libtermcap
31333all-libtermcap: configure-libtermcap
dc448a7b
TT
31334 @: $(MAKE); $(unstage)
31335 @r=`${PWD_COMMAND}`; export r; \
31336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31337 $(HOST_EXPORTS) \
a90ef4bf 31338 (cd $(HOST_SUBDIR)/libtermcap && \
b3676d82 31339 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31340 $(TARGET-libtermcap))
31341@endif libtermcap
dc448a7b
TT
31342
31343
31344
31345
a90ef4bf
JM
31346.PHONY: check-libtermcap maybe-check-libtermcap
31347maybe-check-libtermcap:
31348@if libtermcap
31349maybe-check-libtermcap: check-libtermcap
dc448a7b 31350
a90ef4bf
JM
31351check-libtermcap:
31352
31353@endif libtermcap
31354
31355.PHONY: install-libtermcap maybe-install-libtermcap
31356maybe-install-libtermcap:
31357@if libtermcap
31358maybe-install-libtermcap: install-libtermcap
31359
31360install-libtermcap: installdirs
dc448a7b
TT
31361 @: $(MAKE); $(unstage)
31362 @r=`${PWD_COMMAND}`; export r; \
31363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31364 $(HOST_EXPORTS) \
a90ef4bf
JM
31365 (cd $(HOST_SUBDIR)/libtermcap && \
31366 $(MAKE) $(FLAGS_TO_PASS) install)
dc448a7b 31367
a90ef4bf 31368@endif libtermcap
dc448a7b 31369
a90ef4bf
JM
31370.PHONY: install-strip-libtermcap maybe-install-strip-libtermcap
31371maybe-install-strip-libtermcap:
31372@if libtermcap
31373maybe-install-strip-libtermcap: install-strip-libtermcap
9b980aa1 31374
a90ef4bf
JM
31375install-strip-libtermcap: installdirs
31376 @: $(MAKE); $(unstage)
31377 @r=`${PWD_COMMAND}`; export r; \
31378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31379 $(HOST_EXPORTS) \
31380 (cd $(HOST_SUBDIR)/libtermcap && \
31381 $(MAKE) $(FLAGS_TO_PASS) install-strip)
9b980aa1 31382
a90ef4bf 31383@endif libtermcap
9b980aa1 31384
dc448a7b
TT
31385# Other targets (info, dvi, pdf, etc.)
31386
a90ef4bf
JM
31387.PHONY: maybe-info-libtermcap info-libtermcap
31388maybe-info-libtermcap:
31389@if libtermcap
31390maybe-info-libtermcap: info-libtermcap
dc448a7b 31391
a90ef4bf
JM
31392info-libtermcap: \
31393 configure-libtermcap
dc448a7b 31394 @: $(MAKE); $(unstage)
a90ef4bf 31395 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31396 r=`${PWD_COMMAND}`; export r; \
31397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31398 $(HOST_EXPORTS) \
31399 for flag in $(EXTRA_HOST_FLAGS) ; do \
31400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31401 done; \
22121df0 31402 echo "Doing info in libtermcap"; \
a90ef4bf 31403 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31406 "RANLIB=$${RANLIB}" \
31407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31408 info) \
31409 || exit 1
31410
a90ef4bf 31411@endif libtermcap
dc448a7b 31412
a90ef4bf
JM
31413.PHONY: maybe-dvi-libtermcap dvi-libtermcap
31414maybe-dvi-libtermcap:
31415@if libtermcap
31416maybe-dvi-libtermcap: dvi-libtermcap
dc448a7b 31417
a90ef4bf
JM
31418dvi-libtermcap: \
31419 configure-libtermcap
dc448a7b 31420 @: $(MAKE); $(unstage)
a90ef4bf 31421 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31422 r=`${PWD_COMMAND}`; export r; \
31423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31424 $(HOST_EXPORTS) \
31425 for flag in $(EXTRA_HOST_FLAGS) ; do \
31426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31427 done; \
22121df0 31428 echo "Doing dvi in libtermcap"; \
a90ef4bf 31429 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31432 "RANLIB=$${RANLIB}" \
31433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31434 dvi) \
31435 || exit 1
31436
a90ef4bf 31437@endif libtermcap
dc448a7b 31438
a90ef4bf
JM
31439.PHONY: maybe-pdf-libtermcap pdf-libtermcap
31440maybe-pdf-libtermcap:
31441@if libtermcap
31442maybe-pdf-libtermcap: pdf-libtermcap
dc448a7b 31443
a90ef4bf
JM
31444pdf-libtermcap: \
31445 configure-libtermcap
dc448a7b 31446 @: $(MAKE); $(unstage)
a90ef4bf 31447 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31448 r=`${PWD_COMMAND}`; export r; \
31449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31450 $(HOST_EXPORTS) \
31451 for flag in $(EXTRA_HOST_FLAGS) ; do \
31452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31453 done; \
22121df0 31454 echo "Doing pdf in libtermcap"; \
a90ef4bf 31455 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31458 "RANLIB=$${RANLIB}" \
31459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31460 pdf) \
31461 || exit 1
31462
a90ef4bf 31463@endif libtermcap
dc448a7b 31464
a90ef4bf
JM
31465.PHONY: maybe-html-libtermcap html-libtermcap
31466maybe-html-libtermcap:
31467@if libtermcap
31468maybe-html-libtermcap: html-libtermcap
dc448a7b 31469
a90ef4bf
JM
31470html-libtermcap: \
31471 configure-libtermcap
dc448a7b 31472 @: $(MAKE); $(unstage)
a90ef4bf 31473 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31474 r=`${PWD_COMMAND}`; export r; \
31475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31476 $(HOST_EXPORTS) \
31477 for flag in $(EXTRA_HOST_FLAGS) ; do \
31478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31479 done; \
22121df0 31480 echo "Doing html in libtermcap"; \
a90ef4bf 31481 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31484 "RANLIB=$${RANLIB}" \
31485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31486 html) \
31487 || exit 1
31488
a90ef4bf 31489@endif libtermcap
dc448a7b 31490
a90ef4bf
JM
31491.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
31492maybe-TAGS-libtermcap:
31493@if libtermcap
31494maybe-TAGS-libtermcap: TAGS-libtermcap
dc448a7b 31495
a90ef4bf
JM
31496TAGS-libtermcap: \
31497 configure-libtermcap
dc448a7b 31498 @: $(MAKE); $(unstage)
a90ef4bf 31499 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31500 r=`${PWD_COMMAND}`; export r; \
31501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31502 $(HOST_EXPORTS) \
31503 for flag in $(EXTRA_HOST_FLAGS) ; do \
31504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31505 done; \
22121df0 31506 echo "Doing TAGS in libtermcap"; \
a90ef4bf 31507 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31510 "RANLIB=$${RANLIB}" \
31511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
31512 TAGS) \
31513 || exit 1
31514
a90ef4bf 31515@endif libtermcap
dc448a7b 31516
a90ef4bf
JM
31517.PHONY: maybe-install-info-libtermcap install-info-libtermcap
31518maybe-install-info-libtermcap:
31519@if libtermcap
31520maybe-install-info-libtermcap: install-info-libtermcap
dc448a7b 31521
a90ef4bf
JM
31522install-info-libtermcap: \
31523 configure-libtermcap \
31524 info-libtermcap
dc448a7b 31525 @: $(MAKE); $(unstage)
a90ef4bf 31526 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31527 r=`${PWD_COMMAND}`; export r; \
31528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31529 $(HOST_EXPORTS) \
31530 for flag in $(EXTRA_HOST_FLAGS) ; do \
31531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31532 done; \
22121df0 31533 echo "Doing install-info in libtermcap"; \
a90ef4bf 31534 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31537 "RANLIB=$${RANLIB}" \
31538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31539 install-info) \
dc448a7b
TT
31540 || exit 1
31541
a90ef4bf 31542@endif libtermcap
dc448a7b 31543
a90ef4bf
JM
31544.PHONY: maybe-install-pdf-libtermcap install-pdf-libtermcap
31545maybe-install-pdf-libtermcap:
31546@if libtermcap
31547maybe-install-pdf-libtermcap: install-pdf-libtermcap
dc448a7b 31548
a90ef4bf
JM
31549install-pdf-libtermcap: \
31550 configure-libtermcap \
31551 pdf-libtermcap
dc448a7b 31552 @: $(MAKE); $(unstage)
a90ef4bf 31553 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31554 r=`${PWD_COMMAND}`; export r; \
31555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31556 $(HOST_EXPORTS) \
31557 for flag in $(EXTRA_HOST_FLAGS) ; do \
31558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31559 done; \
22121df0 31560 echo "Doing install-pdf in libtermcap"; \
a90ef4bf 31561 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31564 "RANLIB=$${RANLIB}" \
31565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31566 install-pdf) \
dc448a7b
TT
31567 || exit 1
31568
a90ef4bf 31569@endif libtermcap
dc448a7b 31570
a90ef4bf
JM
31571.PHONY: maybe-install-html-libtermcap install-html-libtermcap
31572maybe-install-html-libtermcap:
31573@if libtermcap
31574maybe-install-html-libtermcap: install-html-libtermcap
dc448a7b 31575
a90ef4bf
JM
31576install-html-libtermcap: \
31577 configure-libtermcap \
31578 html-libtermcap
dc448a7b 31579 @: $(MAKE); $(unstage)
a90ef4bf 31580 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31581 r=`${PWD_COMMAND}`; export r; \
31582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31583 $(HOST_EXPORTS) \
31584 for flag in $(EXTRA_HOST_FLAGS) ; do \
31585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31586 done; \
22121df0 31587 echo "Doing install-html in libtermcap"; \
a90ef4bf 31588 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31591 "RANLIB=$${RANLIB}" \
31592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31593 install-html) \
dc448a7b
TT
31594 || exit 1
31595
a90ef4bf 31596@endif libtermcap
dc448a7b 31597
a90ef4bf
JM
31598.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
31599maybe-installcheck-libtermcap:
31600@if libtermcap
31601maybe-installcheck-libtermcap: installcheck-libtermcap
dc448a7b 31602
a90ef4bf
JM
31603installcheck-libtermcap: \
31604 configure-libtermcap
dc448a7b 31605 @: $(MAKE); $(unstage)
a90ef4bf 31606 @[ -f ./libtermcap/Makefile ] || exit 0; \
dc448a7b
TT
31607 r=`${PWD_COMMAND}`; export r; \
31608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31609 $(HOST_EXPORTS) \
31610 for flag in $(EXTRA_HOST_FLAGS) ; do \
31611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31612 done; \
22121df0 31613 echo "Doing installcheck in libtermcap"; \
a90ef4bf 31614 (cd $(HOST_SUBDIR)/libtermcap && \
dc448a7b
TT
31615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31617 "RANLIB=$${RANLIB}" \
31618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 31619 installcheck) \
dc448a7b
TT
31620 || exit 1
31621
a90ef4bf 31622@endif libtermcap
dc448a7b 31623
a90ef4bf
JM
31624.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
31625maybe-mostlyclean-libtermcap:
31626@if libtermcap
31627maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
dc448a7b 31628
a90ef4bf
JM
31629# libtermcap doesn't support mostlyclean.
31630mostlyclean-libtermcap:
dc448a7b 31631
a90ef4bf 31632@endif libtermcap
dc448a7b 31633
a90ef4bf
JM
31634.PHONY: maybe-clean-libtermcap clean-libtermcap
31635maybe-clean-libtermcap:
31636@if libtermcap
31637maybe-clean-libtermcap: clean-libtermcap
dc448a7b 31638
a90ef4bf
JM
31639# libtermcap doesn't support clean.
31640clean-libtermcap:
dc448a7b 31641
a90ef4bf
JM
31642@endif libtermcap
31643
31644.PHONY: maybe-distclean-libtermcap distclean-libtermcap
31645maybe-distclean-libtermcap:
31646@if libtermcap
31647maybe-distclean-libtermcap: distclean-libtermcap
31648
31649# libtermcap doesn't support distclean.
31650distclean-libtermcap:
31651
31652@endif libtermcap
31653
31654.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
31655maybe-maintainer-clean-libtermcap:
31656@if libtermcap
31657maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
31658
31659# libtermcap doesn't support maintainer-clean.
31660maintainer-clean-libtermcap:
31661
31662@endif libtermcap
31663
31664
31665
31666.PHONY: configure-utils maybe-configure-utils
31667maybe-configure-utils:
31668@if gcc-bootstrap
31669configure-utils: stage_current
31670@endif gcc-bootstrap
31671@if utils
31672maybe-configure-utils: configure-utils
31673configure-utils:
31674 @: $(MAKE); $(unstage)
c52c6897 31675 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 31677 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
22121df0 31678 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils; \
1f53ca9a 31679 $(HOST_EXPORTS) \
a90ef4bf
JM
31680 echo Configuring in $(HOST_SUBDIR)/utils; \
31681 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4fa63067 31682 case $(srcdir) in \
b00612cc 31683 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 31684 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
b00612cc 31685 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 31686 esac; \
1b6c0831
L
31687 module_srcdir=utils; \
31688 $(SHELL) \
31689 $$s/$$module_srcdir/configure \
31690 --srcdir=$${topdir}/$$module_srcdir \
4b900473 31691 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 31692 --target=${target_alias} \
2a4cbe27 31693 || exit 1
a90ef4bf 31694@endif utils
2a4cbe27 31695
a7254363
PB
31696
31697
d545f33b
PB
31698
31699
a90ef4bf
JM
31700.PHONY: all-utils maybe-all-utils
31701maybe-all-utils:
4f0ef2d8 31702@if gcc-bootstrap
a90ef4bf 31703all-utils: stage_current
4f0ef2d8 31704@endif gcc-bootstrap
a90ef4bf
JM
31705@if utils
31706TARGET-utils=all
31707maybe-all-utils: all-utils
31708all-utils: configure-utils
0aed8855 31709 @: $(MAKE); $(unstage)
4fa63067
NN
31710 @r=`${PWD_COMMAND}`; export r; \
31711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 31712 $(HOST_EXPORTS) \
a90ef4bf 31713 (cd $(HOST_SUBDIR)/utils && \
b3676d82 31714 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
31715 $(TARGET-utils))
31716@endif utils
2a4cbe27 31717
a7254363 31718
d545f33b
PB
31719
31720
a90ef4bf
JM
31721.PHONY: check-utils maybe-check-utils
31722maybe-check-utils:
31723@if utils
31724maybe-check-utils: check-utils
2a4cbe27 31725
a90ef4bf 31726check-utils:
2a4cbe27 31727
a90ef4bf 31728@endif utils
2a4cbe27 31729
a90ef4bf
JM
31730.PHONY: install-utils maybe-install-utils
31731maybe-install-utils:
31732@if utils
31733maybe-install-utils: install-utils
2a4cbe27 31734
a90ef4bf 31735install-utils: installdirs
0aed8855 31736 @: $(MAKE); $(unstage)
4fa63067 31737 @r=`${PWD_COMMAND}`; export r; \
b40e3958 31738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31739 $(HOST_EXPORTS) \
a90ef4bf 31740 (cd $(HOST_SUBDIR)/utils && \
2da12f12 31741 $(MAKE) $(FLAGS_TO_PASS) install)
2a4cbe27 31742
a90ef4bf 31743@endif utils
2a4cbe27 31744
a90ef4bf
JM
31745.PHONY: install-strip-utils maybe-install-strip-utils
31746maybe-install-strip-utils:
31747@if utils
31748maybe-install-strip-utils: install-strip-utils
9b980aa1 31749
a90ef4bf 31750install-strip-utils: installdirs
9b980aa1
RW
31751 @: $(MAKE); $(unstage)
31752 @r=`${PWD_COMMAND}`; export r; \
31753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31754 $(HOST_EXPORTS) \
a90ef4bf 31755 (cd $(HOST_SUBDIR)/utils && \
9b980aa1
RW
31756 $(MAKE) $(FLAGS_TO_PASS) install-strip)
31757
a90ef4bf 31758@endif utils
9b980aa1 31759
56a8fe78 31760# Other targets (info, dvi, pdf, etc.)
2a4cbe27 31761
a90ef4bf
JM
31762.PHONY: maybe-info-utils info-utils
31763maybe-info-utils:
31764@if utils
31765maybe-info-utils: info-utils
4fa63067 31766
a90ef4bf
JM
31767info-utils: \
31768 configure-utils
0aed8855 31769 @: $(MAKE); $(unstage)
a90ef4bf 31770 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31771 r=`${PWD_COMMAND}`; export r; \
31772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31773 $(HOST_EXPORTS) \
b813574b 31774 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31776 done; \
22121df0 31777 echo "Doing info in utils"; \
a90ef4bf 31778 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31781 "RANLIB=$${RANLIB}" \
0c24b341 31782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31783 info) \
2a4cbe27
NN
31784 || exit 1
31785
a90ef4bf 31786@endif utils
2a4cbe27 31787
a90ef4bf
JM
31788.PHONY: maybe-dvi-utils dvi-utils
31789maybe-dvi-utils:
31790@if utils
31791maybe-dvi-utils: dvi-utils
2a4cbe27 31792
a90ef4bf
JM
31793dvi-utils: \
31794 configure-utils
0aed8855 31795 @: $(MAKE); $(unstage)
a90ef4bf 31796 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31797 r=`${PWD_COMMAND}`; export r; \
31798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31799 $(HOST_EXPORTS) \
b813574b 31800 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31802 done; \
22121df0 31803 echo "Doing dvi in utils"; \
a90ef4bf 31804 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31807 "RANLIB=$${RANLIB}" \
0c24b341 31808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31809 dvi) \
2a4cbe27
NN
31810 || exit 1
31811
a90ef4bf 31812@endif utils
2a4cbe27 31813
a90ef4bf
JM
31814.PHONY: maybe-pdf-utils pdf-utils
31815maybe-pdf-utils:
31816@if utils
31817maybe-pdf-utils: pdf-utils
56a8fe78 31818
a90ef4bf
JM
31819pdf-utils: \
31820 configure-utils
56a8fe78 31821 @: $(MAKE); $(unstage)
a90ef4bf 31822 @[ -f ./utils/Makefile ] || exit 0; \
56a8fe78
DD
31823 r=`${PWD_COMMAND}`; export r; \
31824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31825 $(HOST_EXPORTS) \
31826 for flag in $(EXTRA_HOST_FLAGS) ; do \
31827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31828 done; \
22121df0 31829 echo "Doing pdf in utils"; \
a90ef4bf 31830 (cd $(HOST_SUBDIR)/utils && \
56a8fe78
DD
31831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31833 "RANLIB=$${RANLIB}" \
0c24b341 31834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
31835 pdf) \
31836 || exit 1
31837
a90ef4bf 31838@endif utils
56a8fe78 31839
a90ef4bf
JM
31840.PHONY: maybe-html-utils html-utils
31841maybe-html-utils:
31842@if utils
31843maybe-html-utils: html-utils
6d389afc 31844
a90ef4bf
JM
31845html-utils: \
31846 configure-utils
0aed8855 31847 @: $(MAKE); $(unstage)
a90ef4bf 31848 @[ -f ./utils/Makefile ] || exit 0; \
6d389afc
MS
31849 r=`${PWD_COMMAND}`; export r; \
31850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
31851 $(HOST_EXPORTS) \
31852 for flag in $(EXTRA_HOST_FLAGS) ; do \
31853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31854 done; \
22121df0 31855 echo "Doing html in utils"; \
a90ef4bf 31856 (cd $(HOST_SUBDIR)/utils && \
6d389afc
MS
31857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31859 "RANLIB=$${RANLIB}" \
0c24b341 31860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
31861 html) \
31862 || exit 1
31863
a90ef4bf 31864@endif utils
6d389afc 31865
a90ef4bf
JM
31866.PHONY: maybe-TAGS-utils TAGS-utils
31867maybe-TAGS-utils:
31868@if utils
31869maybe-TAGS-utils: TAGS-utils
2a4cbe27 31870
a90ef4bf
JM
31871TAGS-utils: \
31872 configure-utils
0aed8855 31873 @: $(MAKE); $(unstage)
a90ef4bf 31874 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31875 r=`${PWD_COMMAND}`; export r; \
31876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31877 $(HOST_EXPORTS) \
b813574b 31878 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31880 done; \
22121df0 31881 echo "Doing TAGS in utils"; \
a90ef4bf 31882 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31885 "RANLIB=$${RANLIB}" \
0c24b341 31886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31887 TAGS) \
2a4cbe27
NN
31888 || exit 1
31889
a90ef4bf 31890@endif utils
2a4cbe27 31891
a90ef4bf
JM
31892.PHONY: maybe-install-info-utils install-info-utils
31893maybe-install-info-utils:
31894@if utils
31895maybe-install-info-utils: install-info-utils
2a4cbe27 31896
a90ef4bf
JM
31897install-info-utils: \
31898 configure-utils \
31899 info-utils
0aed8855 31900 @: $(MAKE); $(unstage)
a90ef4bf 31901 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31902 r=`${PWD_COMMAND}`; export r; \
31903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31904 $(HOST_EXPORTS) \
b813574b 31905 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31907 done; \
22121df0 31908 echo "Doing install-info in utils"; \
a90ef4bf 31909 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31912 "RANLIB=$${RANLIB}" \
0c24b341 31913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31914 install-info) \
2a4cbe27
NN
31915 || exit 1
31916
a90ef4bf 31917@endif utils
2a4cbe27 31918
a90ef4bf
JM
31919.PHONY: maybe-install-pdf-utils install-pdf-utils
31920maybe-install-pdf-utils:
31921@if utils
31922maybe-install-pdf-utils: install-pdf-utils
a3ca38d2 31923
a90ef4bf
JM
31924install-pdf-utils: \
31925 configure-utils \
31926 pdf-utils
a3ca38d2 31927 @: $(MAKE); $(unstage)
a90ef4bf 31928 @[ -f ./utils/Makefile ] || exit 0; \
a3ca38d2
DD
31929 r=`${PWD_COMMAND}`; export r; \
31930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31931 $(HOST_EXPORTS) \
31932 for flag in $(EXTRA_HOST_FLAGS) ; do \
31933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31934 done; \
22121df0 31935 echo "Doing install-pdf in utils"; \
a90ef4bf 31936 (cd $(HOST_SUBDIR)/utils && \
a3ca38d2
DD
31937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31939 "RANLIB=$${RANLIB}" \
0c24b341 31940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
31941 install-pdf) \
31942 || exit 1
31943
a90ef4bf 31944@endif utils
a3ca38d2 31945
a90ef4bf
JM
31946.PHONY: maybe-install-html-utils install-html-utils
31947maybe-install-html-utils:
31948@if utils
31949maybe-install-html-utils: install-html-utils
108a6f8e 31950
a90ef4bf
JM
31951install-html-utils: \
31952 configure-utils \
31953 html-utils
108a6f8e 31954 @: $(MAKE); $(unstage)
a90ef4bf 31955 @[ -f ./utils/Makefile ] || exit 0; \
108a6f8e
CD
31956 r=`${PWD_COMMAND}`; export r; \
31957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31958 $(HOST_EXPORTS) \
31959 for flag in $(EXTRA_HOST_FLAGS) ; do \
31960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31961 done; \
22121df0 31962 echo "Doing install-html in utils"; \
a90ef4bf 31963 (cd $(HOST_SUBDIR)/utils && \
108a6f8e
CD
31964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31966 "RANLIB=$${RANLIB}" \
0c24b341 31967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
31968 install-html) \
31969 || exit 1
31970
a90ef4bf 31971@endif utils
108a6f8e 31972
a90ef4bf
JM
31973.PHONY: maybe-installcheck-utils installcheck-utils
31974maybe-installcheck-utils:
31975@if utils
31976maybe-installcheck-utils: installcheck-utils
2a4cbe27 31977
a90ef4bf
JM
31978installcheck-utils: \
31979 configure-utils
0aed8855 31980 @: $(MAKE); $(unstage)
a90ef4bf 31981 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
31982 r=`${PWD_COMMAND}`; export r; \
31983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 31984 $(HOST_EXPORTS) \
b813574b 31985 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
31986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31987 done; \
22121df0 31988 echo "Doing installcheck in utils"; \
a90ef4bf 31989 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
31990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31992 "RANLIB=$${RANLIB}" \
0c24b341 31993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 31994 installcheck) \
2a4cbe27
NN
31995 || exit 1
31996
a90ef4bf 31997@endif utils
2a4cbe27 31998
a90ef4bf
JM
31999.PHONY: maybe-mostlyclean-utils mostlyclean-utils
32000maybe-mostlyclean-utils:
32001@if utils
32002maybe-mostlyclean-utils: mostlyclean-utils
2a4cbe27 32003
a90ef4bf 32004mostlyclean-utils:
0aed8855 32005 @: $(MAKE); $(unstage)
a90ef4bf 32006 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
32007 r=`${PWD_COMMAND}`; export r; \
32008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32009 $(HOST_EXPORTS) \
b813574b 32010 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32012 done; \
22121df0 32013 echo "Doing mostlyclean in utils"; \
a90ef4bf 32014 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
32015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32017 "RANLIB=$${RANLIB}" \
0c24b341 32018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32019 mostlyclean) \
2a4cbe27
NN
32020 || exit 1
32021
a90ef4bf 32022@endif utils
2a4cbe27 32023
a90ef4bf
JM
32024.PHONY: maybe-clean-utils clean-utils
32025maybe-clean-utils:
32026@if utils
32027maybe-clean-utils: clean-utils
2a4cbe27 32028
a90ef4bf 32029clean-utils:
0aed8855 32030 @: $(MAKE); $(unstage)
a90ef4bf 32031 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
32032 r=`${PWD_COMMAND}`; export r; \
32033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32034 $(HOST_EXPORTS) \
b813574b 32035 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32037 done; \
22121df0 32038 echo "Doing clean in utils"; \
a90ef4bf 32039 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
32040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32042 "RANLIB=$${RANLIB}" \
0c24b341 32043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32044 clean) \
2a4cbe27
NN
32045 || exit 1
32046
a90ef4bf 32047@endif utils
2a4cbe27 32048
a90ef4bf
JM
32049.PHONY: maybe-distclean-utils distclean-utils
32050maybe-distclean-utils:
32051@if utils
32052maybe-distclean-utils: distclean-utils
2a4cbe27 32053
a90ef4bf 32054distclean-utils:
0aed8855 32055 @: $(MAKE); $(unstage)
a90ef4bf 32056 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
32057 r=`${PWD_COMMAND}`; export r; \
32058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32059 $(HOST_EXPORTS) \
b813574b 32060 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32062 done; \
22121df0 32063 echo "Doing distclean in utils"; \
a90ef4bf 32064 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
32065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32067 "RANLIB=$${RANLIB}" \
0c24b341 32068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32069 distclean) \
2a4cbe27
NN
32070 || exit 1
32071
a90ef4bf 32072@endif utils
2a4cbe27 32073
a90ef4bf
JM
32074.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
32075maybe-maintainer-clean-utils:
32076@if utils
32077maybe-maintainer-clean-utils: maintainer-clean-utils
2a4cbe27 32078
a90ef4bf 32079maintainer-clean-utils:
0aed8855 32080 @: $(MAKE); $(unstage)
a90ef4bf 32081 @[ -f ./utils/Makefile ] || exit 0; \
b40e3958
L
32082 r=`${PWD_COMMAND}`; export r; \
32083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32084 $(HOST_EXPORTS) \
b813574b 32085 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32087 done; \
22121df0 32088 echo "Doing maintainer-clean in utils"; \
a90ef4bf 32089 (cd $(HOST_SUBDIR)/utils && \
2a4cbe27
NN
32090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32092 "RANLIB=$${RANLIB}" \
0c24b341 32093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32094 maintainer-clean) \
2a4cbe27
NN
32095 || exit 1
32096
a90ef4bf 32097@endif utils
2a4cbe27 32098
2a4cbe27 32099
a7254363 32100
a90ef4bf
JM
32101.PHONY: configure-gnattools maybe-configure-gnattools
32102maybe-configure-gnattools:
4f0ef2d8 32103@if gcc-bootstrap
a90ef4bf 32104configure-gnattools: stage_current
4f0ef2d8 32105@endif gcc-bootstrap
a90ef4bf
JM
32106@if gnattools
32107maybe-configure-gnattools: configure-gnattools
32108configure-gnattools:
0aed8855 32109 @: $(MAKE); $(unstage)
c52c6897 32110 @r=`${PWD_COMMAND}`; export r; \
b40e3958 32111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32112 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
22121df0 32113 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools; \
1f53ca9a 32114 $(HOST_EXPORTS) \
a90ef4bf
JM
32115 echo Configuring in $(HOST_SUBDIR)/gnattools; \
32116 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
4fa63067 32117 case $(srcdir) in \
b00612cc 32118 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32119 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
b00612cc 32120 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 32121 esac; \
1b6c0831
L
32122 module_srcdir=gnattools; \
32123 $(SHELL) \
32124 $$s/$$module_srcdir/configure \
32125 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32126 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32127 --target=${target_alias} \
2a4cbe27 32128 || exit 1
a90ef4bf 32129@endif gnattools
2a4cbe27 32130
a7254363
PB
32131
32132
d545f33b
PB
32133
32134
a90ef4bf
JM
32135.PHONY: all-gnattools maybe-all-gnattools
32136maybe-all-gnattools:
4f0ef2d8 32137@if gcc-bootstrap
a90ef4bf 32138all-gnattools: stage_current
4f0ef2d8 32139@endif gcc-bootstrap
a90ef4bf
JM
32140@if gnattools
32141TARGET-gnattools=all
32142maybe-all-gnattools: all-gnattools
32143all-gnattools: configure-gnattools
0aed8855 32144 @: $(MAKE); $(unstage)
4fa63067
NN
32145 @r=`${PWD_COMMAND}`; export r; \
32146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 32147 $(HOST_EXPORTS) \
a90ef4bf 32148 (cd $(HOST_SUBDIR)/gnattools && \
b3676d82 32149 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
a90ef4bf
JM
32150 $(TARGET-gnattools))
32151@endif gnattools
4fa63067 32152
a7254363 32153
d545f33b
PB
32154
32155
a90ef4bf
JM
32156.PHONY: check-gnattools maybe-check-gnattools
32157maybe-check-gnattools:
32158@if gnattools
32159maybe-check-gnattools: check-gnattools
2a4cbe27 32160
a90ef4bf 32161check-gnattools:
0aed8855 32162 @: $(MAKE); $(unstage)
4fa63067
NN
32163 @r=`${PWD_COMMAND}`; export r; \
32164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 32165 $(HOST_EXPORTS) \
a90ef4bf 32166 (cd $(HOST_SUBDIR)/gnattools && \
b00612cc 32167 $(MAKE) $(FLAGS_TO_PASS) check)
2a4cbe27 32168
a90ef4bf 32169@endif gnattools
4fa63067 32170
a90ef4bf
JM
32171.PHONY: install-gnattools maybe-install-gnattools
32172maybe-install-gnattools:
32173@if gnattools
32174maybe-install-gnattools: install-gnattools
4fa63067 32175
a90ef4bf 32176install-gnattools: installdirs
0aed8855 32177 @: $(MAKE); $(unstage)
4fa63067
NN
32178 @r=`${PWD_COMMAND}`; export r; \
32179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32180 $(HOST_EXPORTS) \
a90ef4bf 32181 (cd $(HOST_SUBDIR)/gnattools && \
2da12f12 32182 $(MAKE) $(FLAGS_TO_PASS) install)
4fa63067 32183
a90ef4bf 32184@endif gnattools
4fa63067 32185
a90ef4bf
JM
32186.PHONY: install-strip-gnattools maybe-install-strip-gnattools
32187maybe-install-strip-gnattools:
32188@if gnattools
32189maybe-install-strip-gnattools: install-strip-gnattools
9b980aa1 32190
a90ef4bf 32191install-strip-gnattools: installdirs
9b980aa1
RW
32192 @: $(MAKE); $(unstage)
32193 @r=`${PWD_COMMAND}`; export r; \
32194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32195 $(HOST_EXPORTS) \
a90ef4bf 32196 (cd $(HOST_SUBDIR)/gnattools && \
9b980aa1
RW
32197 $(MAKE) $(FLAGS_TO_PASS) install-strip)
32198
a90ef4bf 32199@endif gnattools
9b980aa1 32200
56a8fe78 32201# Other targets (info, dvi, pdf, etc.)
4fa63067 32202
a90ef4bf
JM
32203.PHONY: maybe-info-gnattools info-gnattools
32204maybe-info-gnattools:
32205@if gnattools
32206maybe-info-gnattools: info-gnattools
4fa63067 32207
a90ef4bf
JM
32208info-gnattools: \
32209 configure-gnattools
0aed8855 32210 @: $(MAKE); $(unstage)
a90ef4bf 32211 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32212 r=`${PWD_COMMAND}`; export r; \
32213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32214 $(HOST_EXPORTS) \
b813574b 32215 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32217 done; \
22121df0 32218 echo "Doing info in gnattools"; \
a90ef4bf 32219 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32222 "RANLIB=$${RANLIB}" \
0c24b341 32223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32224 info) \
2a4cbe27
NN
32225 || exit 1
32226
a90ef4bf 32227@endif gnattools
2a4cbe27 32228
a90ef4bf
JM
32229.PHONY: maybe-dvi-gnattools dvi-gnattools
32230maybe-dvi-gnattools:
32231@if gnattools
32232maybe-dvi-gnattools: dvi-gnattools
2a4cbe27 32233
a90ef4bf
JM
32234dvi-gnattools: \
32235 configure-gnattools
0aed8855 32236 @: $(MAKE); $(unstage)
a90ef4bf 32237 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32238 r=`${PWD_COMMAND}`; export r; \
32239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32240 $(HOST_EXPORTS) \
b813574b 32241 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32243 done; \
22121df0 32244 echo "Doing dvi in gnattools"; \
a90ef4bf 32245 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32248 "RANLIB=$${RANLIB}" \
0c24b341 32249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32250 dvi) \
2a4cbe27
NN
32251 || exit 1
32252
a90ef4bf 32253@endif gnattools
2a4cbe27 32254
a90ef4bf
JM
32255.PHONY: maybe-pdf-gnattools pdf-gnattools
32256maybe-pdf-gnattools:
32257@if gnattools
32258maybe-pdf-gnattools: pdf-gnattools
56a8fe78 32259
a90ef4bf
JM
32260pdf-gnattools: \
32261 configure-gnattools
56a8fe78 32262 @: $(MAKE); $(unstage)
a90ef4bf 32263 @[ -f ./gnattools/Makefile ] || exit 0; \
56a8fe78
DD
32264 r=`${PWD_COMMAND}`; export r; \
32265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32266 $(HOST_EXPORTS) \
32267 for flag in $(EXTRA_HOST_FLAGS) ; do \
32268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32269 done; \
22121df0 32270 echo "Doing pdf in gnattools"; \
a90ef4bf 32271 (cd $(HOST_SUBDIR)/gnattools && \
56a8fe78
DD
32272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32274 "RANLIB=$${RANLIB}" \
0c24b341 32275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
32276 pdf) \
32277 || exit 1
32278
a90ef4bf 32279@endif gnattools
56a8fe78 32280
a90ef4bf
JM
32281.PHONY: maybe-html-gnattools html-gnattools
32282maybe-html-gnattools:
32283@if gnattools
32284maybe-html-gnattools: html-gnattools
6d389afc 32285
a90ef4bf
JM
32286html-gnattools: \
32287 configure-gnattools
0aed8855 32288 @: $(MAKE); $(unstage)
a90ef4bf 32289 @[ -f ./gnattools/Makefile ] || exit 0; \
6d389afc
MS
32290 r=`${PWD_COMMAND}`; export r; \
32291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc
MS
32292 $(HOST_EXPORTS) \
32293 for flag in $(EXTRA_HOST_FLAGS) ; do \
32294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32295 done; \
22121df0 32296 echo "Doing html in gnattools"; \
a90ef4bf 32297 (cd $(HOST_SUBDIR)/gnattools && \
6d389afc
MS
32298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32300 "RANLIB=$${RANLIB}" \
0c24b341 32301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
32302 html) \
32303 || exit 1
32304
a90ef4bf 32305@endif gnattools
6d389afc 32306
a90ef4bf
JM
32307.PHONY: maybe-TAGS-gnattools TAGS-gnattools
32308maybe-TAGS-gnattools:
32309@if gnattools
32310maybe-TAGS-gnattools: TAGS-gnattools
2a4cbe27 32311
a90ef4bf
JM
32312TAGS-gnattools: \
32313 configure-gnattools
0aed8855 32314 @: $(MAKE); $(unstage)
a90ef4bf 32315 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32316 r=`${PWD_COMMAND}`; export r; \
32317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32318 $(HOST_EXPORTS) \
b813574b 32319 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32321 done; \
22121df0 32322 echo "Doing TAGS in gnattools"; \
a90ef4bf 32323 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32326 "RANLIB=$${RANLIB}" \
0c24b341 32327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32328 TAGS) \
2a4cbe27
NN
32329 || exit 1
32330
a90ef4bf 32331@endif gnattools
2a4cbe27 32332
a90ef4bf
JM
32333.PHONY: maybe-install-info-gnattools install-info-gnattools
32334maybe-install-info-gnattools:
32335@if gnattools
32336maybe-install-info-gnattools: install-info-gnattools
2a4cbe27 32337
a90ef4bf
JM
32338install-info-gnattools: \
32339 configure-gnattools \
32340 info-gnattools
0aed8855 32341 @: $(MAKE); $(unstage)
a90ef4bf 32342 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32343 r=`${PWD_COMMAND}`; export r; \
32344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32345 $(HOST_EXPORTS) \
b813574b 32346 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32348 done; \
22121df0 32349 echo "Doing install-info in gnattools"; \
a90ef4bf 32350 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32353 "RANLIB=$${RANLIB}" \
0c24b341 32354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32355 install-info) \
2a4cbe27
NN
32356 || exit 1
32357
a90ef4bf 32358@endif gnattools
2a4cbe27 32359
a90ef4bf
JM
32360.PHONY: maybe-install-pdf-gnattools install-pdf-gnattools
32361maybe-install-pdf-gnattools:
32362@if gnattools
32363maybe-install-pdf-gnattools: install-pdf-gnattools
a3ca38d2 32364
a90ef4bf
JM
32365install-pdf-gnattools: \
32366 configure-gnattools \
32367 pdf-gnattools
a3ca38d2 32368 @: $(MAKE); $(unstage)
a90ef4bf 32369 @[ -f ./gnattools/Makefile ] || exit 0; \
a3ca38d2
DD
32370 r=`${PWD_COMMAND}`; export r; \
32371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32372 $(HOST_EXPORTS) \
32373 for flag in $(EXTRA_HOST_FLAGS) ; do \
32374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32375 done; \
22121df0 32376 echo "Doing install-pdf in gnattools"; \
a90ef4bf 32377 (cd $(HOST_SUBDIR)/gnattools && \
a3ca38d2
DD
32378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32380 "RANLIB=$${RANLIB}" \
0c24b341 32381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
32382 install-pdf) \
32383 || exit 1
32384
a90ef4bf 32385@endif gnattools
a3ca38d2 32386
a90ef4bf
JM
32387.PHONY: maybe-install-html-gnattools install-html-gnattools
32388maybe-install-html-gnattools:
32389@if gnattools
32390maybe-install-html-gnattools: install-html-gnattools
108a6f8e 32391
a90ef4bf
JM
32392install-html-gnattools: \
32393 configure-gnattools \
32394 html-gnattools
108a6f8e 32395 @: $(MAKE); $(unstage)
a90ef4bf 32396 @[ -f ./gnattools/Makefile ] || exit 0; \
108a6f8e
CD
32397 r=`${PWD_COMMAND}`; export r; \
32398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32399 $(HOST_EXPORTS) \
32400 for flag in $(EXTRA_HOST_FLAGS) ; do \
32401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32402 done; \
22121df0 32403 echo "Doing install-html in gnattools"; \
a90ef4bf 32404 (cd $(HOST_SUBDIR)/gnattools && \
108a6f8e
CD
32405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32407 "RANLIB=$${RANLIB}" \
0c24b341 32408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
32409 install-html) \
32410 || exit 1
32411
a90ef4bf 32412@endif gnattools
108a6f8e 32413
a90ef4bf
JM
32414.PHONY: maybe-installcheck-gnattools installcheck-gnattools
32415maybe-installcheck-gnattools:
32416@if gnattools
32417maybe-installcheck-gnattools: installcheck-gnattools
2a4cbe27 32418
a90ef4bf
JM
32419installcheck-gnattools: \
32420 configure-gnattools
0aed8855 32421 @: $(MAKE); $(unstage)
a90ef4bf 32422 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32423 r=`${PWD_COMMAND}`; export r; \
32424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32425 $(HOST_EXPORTS) \
b813574b 32426 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32428 done; \
22121df0 32429 echo "Doing installcheck in gnattools"; \
a90ef4bf 32430 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32433 "RANLIB=$${RANLIB}" \
0c24b341 32434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32435 installcheck) \
2a4cbe27
NN
32436 || exit 1
32437
a90ef4bf 32438@endif gnattools
2a4cbe27 32439
a90ef4bf
JM
32440.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
32441maybe-mostlyclean-gnattools:
32442@if gnattools
32443maybe-mostlyclean-gnattools: mostlyclean-gnattools
2a4cbe27 32444
a90ef4bf 32445mostlyclean-gnattools:
0aed8855 32446 @: $(MAKE); $(unstage)
a90ef4bf 32447 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32448 r=`${PWD_COMMAND}`; export r; \
32449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32450 $(HOST_EXPORTS) \
b813574b 32451 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32453 done; \
22121df0 32454 echo "Doing mostlyclean in gnattools"; \
a90ef4bf 32455 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32458 "RANLIB=$${RANLIB}" \
0c24b341 32459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32460 mostlyclean) \
2a4cbe27
NN
32461 || exit 1
32462
a90ef4bf 32463@endif gnattools
2a4cbe27 32464
a90ef4bf
JM
32465.PHONY: maybe-clean-gnattools clean-gnattools
32466maybe-clean-gnattools:
32467@if gnattools
32468maybe-clean-gnattools: clean-gnattools
2a4cbe27 32469
a90ef4bf 32470clean-gnattools:
0aed8855 32471 @: $(MAKE); $(unstage)
a90ef4bf 32472 @[ -f ./gnattools/Makefile ] || exit 0; \
b40e3958
L
32473 r=`${PWD_COMMAND}`; export r; \
32474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32475 $(HOST_EXPORTS) \
b813574b 32476 for flag in $(EXTRA_HOST_FLAGS) ; do \
2a4cbe27
NN
32477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32478 done; \
22121df0 32479 echo "Doing clean in gnattools"; \
a90ef4bf 32480 (cd $(HOST_SUBDIR)/gnattools && \
2a4cbe27
NN
32481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32483 "RANLIB=$${RANLIB}" \
0c24b341 32484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32485 clean) \
2a4cbe27
NN
32486 || exit 1
32487
a90ef4bf 32488@endif gnattools
2a4cbe27 32489
a90ef4bf
JM
32490.PHONY: maybe-distclean-gnattools distclean-gnattools
32491maybe-distclean-gnattools:
32492@if gnattools
32493maybe-distclean-gnattools: distclean-gnattools
a2592b1b 32494
a90ef4bf 32495distclean-gnattools:
0aed8855 32496 @: $(MAKE); $(unstage)
a90ef4bf 32497 @[ -f ./gnattools/Makefile ] || exit 0; \
a2592b1b
DD
32498 r=`${PWD_COMMAND}`; export r; \
32499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32500 $(HOST_EXPORTS) \
b813574b 32501 for flag in $(EXTRA_HOST_FLAGS) ; do \
a2592b1b
DD
32502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32503 done; \
22121df0 32504 echo "Doing distclean in gnattools"; \
a90ef4bf 32505 (cd $(HOST_SUBDIR)/gnattools && \
a2592b1b
DD
32506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32508 "RANLIB=$${RANLIB}" \
0c24b341 32509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32510 distclean) \
a2592b1b
DD
32511 || exit 1
32512
a90ef4bf 32513@endif gnattools
a2592b1b 32514
a90ef4bf
JM
32515.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
32516maybe-maintainer-clean-gnattools:
32517@if gnattools
32518maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
2a4cbe27 32519
a90ef4bf 32520maintainer-clean-gnattools:
0aed8855 32521 @: $(MAKE); $(unstage)
a90ef4bf 32522 @[ -f ./gnattools/Makefile ] || exit 0; \
4fa63067 32523 r=`${PWD_COMMAND}`; export r; \
b40e3958 32524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 32525 $(HOST_EXPORTS) \
b813574b 32526 for flag in $(EXTRA_HOST_FLAGS) ; do \
4fa63067
NN
32527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32528 done; \
22121df0 32529 echo "Doing maintainer-clean in gnattools"; \
a90ef4bf 32530 (cd $(HOST_SUBDIR)/gnattools && \
4fa63067
NN
32531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32533 "RANLIB=$${RANLIB}" \
0c24b341 32534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 32535 maintainer-clean) \
4fa63067 32536 || exit 1
252b5132 32537
a90ef4bf 32538@endif gnattools
252b5132 32539
252b5132 32540
a7254363 32541
a90ef4bf
JM
32542.PHONY: configure-lto-plugin maybe-configure-lto-plugin
32543maybe-configure-lto-plugin:
4f0ef2d8 32544@if gcc-bootstrap
a90ef4bf 32545configure-lto-plugin: stage_current
4f0ef2d8 32546@endif gcc-bootstrap
a90ef4bf
JM
32547@if lto-plugin
32548maybe-configure-lto-plugin: configure-lto-plugin
32549configure-lto-plugin:
c52c6897 32550 @r=`${PWD_COMMAND}`; export r; \
b813574b 32551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32552 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
22121df0 32553 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
1f53ca9a 32554 $(HOST_EXPORTS) \
a90ef4bf
JM
32555 echo Configuring in $(HOST_SUBDIR)/lto-plugin; \
32556 cd "$(HOST_SUBDIR)/lto-plugin" || exit 1; \
4fa63067 32557 case $(srcdir) in \
b00612cc 32558 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 32559 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
b00612cc 32560 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4fa63067 32561 esac; \
1b6c0831
L
32562 module_srcdir=lto-plugin; \
32563 $(SHELL) \
32564 $$s/$$module_srcdir/configure \
32565 --srcdir=$${topdir}/$$module_srcdir \
4b900473 32566 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32567 --target=${target_alias} --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@ \
4fa63067 32568 || exit 1
a90ef4bf 32569@endif lto-plugin
a7254363 32570
d545f33b
PB
32571
32572
a90ef4bf
JM
32573.PHONY: configure-stage1-lto-plugin maybe-configure-stage1-lto-plugin
32574maybe-configure-stage1-lto-plugin:
32575@if lto-plugin-bootstrap
32576maybe-configure-stage1-lto-plugin: configure-stage1-lto-plugin
32577configure-stage1-lto-plugin:
32578 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32579 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
32580 @r=`${PWD_COMMAND}`; export r; \
32581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32582 TFLAGS="$(STAGE1_TFLAGS)"; \
32583 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
32584 $(HOST_EXPORTS) \
32585 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
32586 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
32587 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
22121df0
L
32588 echo Configuring stage 1 in $(HOST_SUBDIR)/lto-plugin; \
32589 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32590 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32591 case $(srcdir) in \
32592 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32593 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32594 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32595 esac; \
1b6c0831
L
32596 module_srcdir=lto-plugin; \
32597 $(SHELL) $$s/$$module_srcdir/configure \
32598 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32599 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831
L
32600 --target=${target_alias} \
32601 \
a90ef4bf 32602 $(STAGE1_CONFIGURE_FLAGS) \
1b6c0831 32603 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32604@endif lto-plugin-bootstrap
252b5132 32605
a90ef4bf
JM
32606.PHONY: configure-stage2-lto-plugin maybe-configure-stage2-lto-plugin
32607maybe-configure-stage2-lto-plugin:
32608@if lto-plugin-bootstrap
32609maybe-configure-stage2-lto-plugin: configure-stage2-lto-plugin
32610configure-stage2-lto-plugin:
32611 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32612 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
b813574b
PB
32613 @r=`${PWD_COMMAND}`; export r; \
32614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32615 TFLAGS="$(STAGE2_TFLAGS)"; \
32616 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
b813574b 32617 $(HOST_EXPORTS) \
a90ef4bf
JM
32618 $(POSTSTAGE1_HOST_EXPORTS) \
32619 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
32620 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
32621 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32622 echo Configuring stage 2 in $(HOST_SUBDIR)/lto-plugin; \
32623 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32624 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32625 case $(srcdir) in \
32626 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32627 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32628 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32629 esac; \
1b6c0831
L
32630 module_srcdir=lto-plugin; \
32631 $(SHELL) $$s/$$module_srcdir/configure \
32632 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32633 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32634 --target=${target_alias} \
22121df0 32635 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32636 $(STAGE2_CONFIGURE_FLAGS) \
1b6c0831 32637 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32638@endif lto-plugin-bootstrap
4fa63067 32639
a90ef4bf
JM
32640.PHONY: configure-stage3-lto-plugin maybe-configure-stage3-lto-plugin
32641maybe-configure-stage3-lto-plugin:
32642@if lto-plugin-bootstrap
32643maybe-configure-stage3-lto-plugin: configure-stage3-lto-plugin
32644configure-stage3-lto-plugin:
32645 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32646 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
4fa63067
NN
32647 @r=`${PWD_COMMAND}`; export r; \
32648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32649 TFLAGS="$(STAGE3_TFLAGS)"; \
32650 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 32651 $(HOST_EXPORTS) \
a90ef4bf
JM
32652 $(POSTSTAGE1_HOST_EXPORTS) \
32653 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
32654 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
32655 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32656 echo Configuring stage 3 in $(HOST_SUBDIR)/lto-plugin; \
32657 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32658 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32659 case $(srcdir) in \
32660 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32661 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32662 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32663 esac; \
1b6c0831
L
32664 module_srcdir=lto-plugin; \
32665 $(SHELL) $$s/$$module_srcdir/configure \
32666 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32667 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32668 --target=${target_alias} \
22121df0 32669 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32670 $(STAGE3_CONFIGURE_FLAGS) \
1b6c0831 32671 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32672@endif lto-plugin-bootstrap
9b980aa1 32673
a90ef4bf
JM
32674.PHONY: configure-stage4-lto-plugin maybe-configure-stage4-lto-plugin
32675maybe-configure-stage4-lto-plugin:
32676@if lto-plugin-bootstrap
32677maybe-configure-stage4-lto-plugin: configure-stage4-lto-plugin
32678configure-stage4-lto-plugin:
32679 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32680 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
9b980aa1
RW
32681 @r=`${PWD_COMMAND}`; export r; \
32682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32683 TFLAGS="$(STAGE4_TFLAGS)"; \
32684 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
9b980aa1 32685 $(HOST_EXPORTS) \
a90ef4bf
JM
32686 $(POSTSTAGE1_HOST_EXPORTS) \
32687 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
32688 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
32689 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32690 echo Configuring stage 4 in $(HOST_SUBDIR)/lto-plugin; \
32691 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32692 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32693 case $(srcdir) in \
32694 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32695 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32696 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32697 esac; \
1b6c0831
L
32698 module_srcdir=lto-plugin; \
32699 $(SHELL) $$s/$$module_srcdir/configure \
32700 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32701 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32702 --target=${target_alias} \
22121df0 32703 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32704 $(STAGE4_CONFIGURE_FLAGS) \
1b6c0831 32705 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32706@endif lto-plugin-bootstrap
4fa63067 32707
a90ef4bf
JM
32708.PHONY: configure-stageprofile-lto-plugin maybe-configure-stageprofile-lto-plugin
32709maybe-configure-stageprofile-lto-plugin:
32710@if lto-plugin-bootstrap
32711maybe-configure-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
32712configure-stageprofile-lto-plugin:
32713 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32714 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
32715 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32717 TFLAGS="$(STAGEprofile_TFLAGS)"; \
32718 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 32719 $(HOST_EXPORTS) \
a90ef4bf
JM
32720 $(POSTSTAGE1_HOST_EXPORTS) \
32721 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
32722 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
32723 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32724 echo Configuring stage profile in $(HOST_SUBDIR)/lto-plugin; \
32725 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32726 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32727 case $(srcdir) in \
32728 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32729 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32730 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32731 esac; \
1b6c0831
L
32732 module_srcdir=lto-plugin; \
32733 $(SHELL) $$s/$$module_srcdir/configure \
32734 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32735 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32736 --target=${target_alias} \
22121df0 32737 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32738 $(STAGEprofile_CONFIGURE_FLAGS) \
1b6c0831 32739 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32740@endif lto-plugin-bootstrap
4fa63067 32741
a90ef4bf
JM
32742.PHONY: configure-stagefeedback-lto-plugin maybe-configure-stagefeedback-lto-plugin
32743maybe-configure-stagefeedback-lto-plugin:
32744@if lto-plugin-bootstrap
32745maybe-configure-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
32746configure-stagefeedback-lto-plugin:
32747 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
32748 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin
32749 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32751 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
32752 test ! -f $(HOST_SUBDIR)/lto-plugin/Makefile || exit 0; \
378fce5b 32753 $(HOST_EXPORTS) \
a90ef4bf
JM
32754 $(POSTSTAGE1_HOST_EXPORTS) \
32755 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
32756 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
32757 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
22121df0
L
32758 echo Configuring stage feedback in $(HOST_SUBDIR)/lto-plugin; \
32759 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/lto-plugin; \
a90ef4bf
JM
32760 cd $(HOST_SUBDIR)/lto-plugin || exit 1; \
32761 case $(srcdir) in \
32762 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32763 *) topdir=`echo $(HOST_SUBDIR)/lto-plugin/ | \
32764 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32765 esac; \
1b6c0831
L
32766 module_srcdir=lto-plugin; \
32767 $(SHELL) $$s/$$module_srcdir/configure \
32768 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 32769 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
1b6c0831 32770 --target=${target_alias} \
22121df0 32771 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf 32772 $(STAGEfeedback_CONFIGURE_FLAGS) \
1b6c0831 32773 --enable-shared @extra_linker_plugin_flags@ @extra_linker_plugin_configure_flags@
a90ef4bf 32774@endif lto-plugin-bootstrap
252b5132 32775
56a8fe78 32776
56a8fe78 32777
56a8fe78 32778
6d389afc 32779
a90ef4bf
JM
32780.PHONY: all-lto-plugin maybe-all-lto-plugin
32781maybe-all-lto-plugin:
32782@if gcc-bootstrap
32783all-lto-plugin: stage_current
32784@endif gcc-bootstrap
32785@if lto-plugin
32786TARGET-lto-plugin=all
32787maybe-all-lto-plugin: all-lto-plugin
32788all-lto-plugin: configure-lto-plugin
32789 @r=`${PWD_COMMAND}`; export r; \
6d389afc 32790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32791 $(HOST_EXPORTS) \
32792 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32793 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
a90ef4bf
JM
32794 $(TARGET-lto-plugin))
32795@endif lto-plugin
6d389afc 32796
6d389afc 32797
252b5132 32798
a90ef4bf
JM
32799.PHONY: all-stage1-lto-plugin maybe-all-stage1-lto-plugin
32800.PHONY: clean-stage1-lto-plugin maybe-clean-stage1-lto-plugin
32801maybe-all-stage1-lto-plugin:
32802maybe-clean-stage1-lto-plugin:
32803@if lto-plugin-bootstrap
32804maybe-all-stage1-lto-plugin: all-stage1-lto-plugin
32805all-stage1: all-stage1-lto-plugin
32806TARGET-stage1-lto-plugin = $(TARGET-lto-plugin)
32807all-stage1-lto-plugin: configure-stage1-lto-plugin
32808 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
32809 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
32811 TFLAGS="$(STAGE1_TFLAGS)"; \
32812 $(HOST_EXPORTS) \
32813 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32814 \
a90ef4bf
JM
32815 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32816 CFLAGS="$(STAGE1_CFLAGS)" \
32817 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
32818 LIBCFLAGS="$(LIBCFLAGS)" \
32819 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32820 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32821 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82 32822 $(EXTRA_HOST_FLAGS) \
1b6c0831 32823 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32824 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 32825 $(TARGET-stage1-lto-plugin)
3866be5d 32826
a90ef4bf
JM
32827maybe-clean-stage1-lto-plugin: clean-stage1-lto-plugin
32828clean-stage1: clean-stage1-lto-plugin
32829clean-stage1-lto-plugin:
32830 @if [ $(current_stage) = stage1 ]; then \
32831 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32832 else \
32833 [ -f $(HOST_SUBDIR)/stage1-lto-plugin/Makefile ] || exit 0; \
32834 $(MAKE) stage1-start; \
32835 fi; \
32836 cd $(HOST_SUBDIR)/lto-plugin && \
32837 $(MAKE) $(EXTRA_HOST_FLAGS) \
1b6c0831 32838 $(STAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32839@endif lto-plugin-bootstrap
3866be5d 32840
3866be5d 32841
a90ef4bf
JM
32842.PHONY: all-stage2-lto-plugin maybe-all-stage2-lto-plugin
32843.PHONY: clean-stage2-lto-plugin maybe-clean-stage2-lto-plugin
32844maybe-all-stage2-lto-plugin:
32845maybe-clean-stage2-lto-plugin:
32846@if lto-plugin-bootstrap
32847maybe-all-stage2-lto-plugin: all-stage2-lto-plugin
32848all-stage2: all-stage2-lto-plugin
32849TARGET-stage2-lto-plugin = $(TARGET-lto-plugin)
32850all-stage2-lto-plugin: configure-stage2-lto-plugin
32851 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
32852 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32854 TFLAGS="$(STAGE2_TFLAGS)"; \
378fce5b 32855 $(HOST_EXPORTS) \
a90ef4bf
JM
32856 $(POSTSTAGE1_HOST_EXPORTS) \
32857 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32858 \
a90ef4bf
JM
32859 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32860 CFLAGS="$(STAGE2_CFLAGS)" \
32861 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
32862 LIBCFLAGS="$(STAGE2_CFLAGS)" \
32863 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32864 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32865 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32866 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32867 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 32868 $(TARGET-stage2-lto-plugin)
3866be5d 32869
a90ef4bf
JM
32870maybe-clean-stage2-lto-plugin: clean-stage2-lto-plugin
32871clean-stage2: clean-stage2-lto-plugin
32872clean-stage2-lto-plugin:
32873 @if [ $(current_stage) = stage2 ]; then \
32874 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32875 else \
32876 [ -f $(HOST_SUBDIR)/stage2-lto-plugin/Makefile ] || exit 0; \
32877 $(MAKE) stage2-start; \
32878 fi; \
32879 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32880 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32881@endif lto-plugin-bootstrap
3866be5d 32882
a3ca38d2 32883
a90ef4bf
JM
32884.PHONY: all-stage3-lto-plugin maybe-all-stage3-lto-plugin
32885.PHONY: clean-stage3-lto-plugin maybe-clean-stage3-lto-plugin
32886maybe-all-stage3-lto-plugin:
32887maybe-clean-stage3-lto-plugin:
32888@if lto-plugin-bootstrap
32889maybe-all-stage3-lto-plugin: all-stage3-lto-plugin
32890all-stage3: all-stage3-lto-plugin
32891TARGET-stage3-lto-plugin = $(TARGET-lto-plugin)
32892all-stage3-lto-plugin: configure-stage3-lto-plugin
32893 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
32894 @r=`${PWD_COMMAND}`; export r; \
a3ca38d2 32895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32896 TFLAGS="$(STAGE3_TFLAGS)"; \
a3ca38d2 32897 $(HOST_EXPORTS) \
a90ef4bf
JM
32898 $(POSTSTAGE1_HOST_EXPORTS) \
32899 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32900 \
a90ef4bf
JM
32901 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32902 CFLAGS="$(STAGE3_CFLAGS)" \
32903 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
32904 LIBCFLAGS="$(STAGE3_CFLAGS)" \
32905 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32906 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32907 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32908 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32909 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 32910 $(TARGET-stage3-lto-plugin)
a3ca38d2 32911
a90ef4bf
JM
32912maybe-clean-stage3-lto-plugin: clean-stage3-lto-plugin
32913clean-stage3: clean-stage3-lto-plugin
32914clean-stage3-lto-plugin:
32915 @if [ $(current_stage) = stage3 ]; then \
32916 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32917 else \
32918 [ -f $(HOST_SUBDIR)/stage3-lto-plugin/Makefile ] || exit 0; \
32919 $(MAKE) stage3-start; \
32920 fi; \
32921 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32922 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32923@endif lto-plugin-bootstrap
a3ca38d2 32924
108a6f8e 32925
a90ef4bf
JM
32926.PHONY: all-stage4-lto-plugin maybe-all-stage4-lto-plugin
32927.PHONY: clean-stage4-lto-plugin maybe-clean-stage4-lto-plugin
32928maybe-all-stage4-lto-plugin:
32929maybe-clean-stage4-lto-plugin:
32930@if lto-plugin-bootstrap
32931maybe-all-stage4-lto-plugin: all-stage4-lto-plugin
32932all-stage4: all-stage4-lto-plugin
32933TARGET-stage4-lto-plugin = $(TARGET-lto-plugin)
32934all-stage4-lto-plugin: configure-stage4-lto-plugin
32935 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
32936 @r=`${PWD_COMMAND}`; export r; \
108a6f8e 32937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32938 TFLAGS="$(STAGE4_TFLAGS)"; \
108a6f8e 32939 $(HOST_EXPORTS) \
a90ef4bf
JM
32940 $(POSTSTAGE1_HOST_EXPORTS) \
32941 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32942 \
a90ef4bf
JM
32943 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32944 CFLAGS="$(STAGE4_CFLAGS)" \
32945 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
32946 LIBCFLAGS="$(STAGE4_CFLAGS)" \
32947 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32948 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32949 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32950 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32951 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 32952 $(TARGET-stage4-lto-plugin)
108a6f8e 32953
a90ef4bf
JM
32954maybe-clean-stage4-lto-plugin: clean-stage4-lto-plugin
32955clean-stage4: clean-stage4-lto-plugin
32956clean-stage4-lto-plugin:
32957 @if [ $(current_stage) = stage4 ]; then \
32958 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
32959 else \
32960 [ -f $(HOST_SUBDIR)/stage4-lto-plugin/Makefile ] || exit 0; \
32961 $(MAKE) stage4-start; \
32962 fi; \
32963 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 32964 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 32965@endif lto-plugin-bootstrap
4fa63067 32966
4fa63067 32967
a90ef4bf
JM
32968.PHONY: all-stageprofile-lto-plugin maybe-all-stageprofile-lto-plugin
32969.PHONY: clean-stageprofile-lto-plugin maybe-clean-stageprofile-lto-plugin
32970maybe-all-stageprofile-lto-plugin:
32971maybe-clean-stageprofile-lto-plugin:
32972@if lto-plugin-bootstrap
32973maybe-all-stageprofile-lto-plugin: all-stageprofile-lto-plugin
32974all-stageprofile: all-stageprofile-lto-plugin
32975TARGET-stageprofile-lto-plugin = $(TARGET-lto-plugin)
32976all-stageprofile-lto-plugin: configure-stageprofile-lto-plugin
32977 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
32978 @r=`${PWD_COMMAND}`; export r; \
4fa63067 32979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 32980 TFLAGS="$(STAGEprofile_TFLAGS)"; \
378fce5b 32981 $(HOST_EXPORTS) \
a90ef4bf
JM
32982 $(POSTSTAGE1_HOST_EXPORTS) \
32983 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 32984 \
a90ef4bf
JM
32985 $(MAKE) $(BASE_FLAGS_TO_PASS) \
32986 CFLAGS="$(STAGEprofile_CFLAGS)" \
32987 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
32988 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
32989 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
32990 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
32991 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 32992 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 32993 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf 32994 $(TARGET-stageprofile-lto-plugin)
4fa63067 32995
a90ef4bf
JM
32996maybe-clean-stageprofile-lto-plugin: clean-stageprofile-lto-plugin
32997clean-stageprofile: clean-stageprofile-lto-plugin
32998clean-stageprofile-lto-plugin:
32999 @if [ $(current_stage) = stageprofile ]; then \
33000 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
33001 else \
33002 [ -f $(HOST_SUBDIR)/stageprofile-lto-plugin/Makefile ] || exit 0; \
33003 $(MAKE) stageprofile-start; \
33004 fi; \
33005 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 33006 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 33007@endif lto-plugin-bootstrap
4fa63067 33008
4fa63067 33009
a90ef4bf
JM
33010.PHONY: all-stagefeedback-lto-plugin maybe-all-stagefeedback-lto-plugin
33011.PHONY: clean-stagefeedback-lto-plugin maybe-clean-stagefeedback-lto-plugin
33012maybe-all-stagefeedback-lto-plugin:
33013maybe-clean-stagefeedback-lto-plugin:
33014@if lto-plugin-bootstrap
33015maybe-all-stagefeedback-lto-plugin: all-stagefeedback-lto-plugin
33016all-stagefeedback: all-stagefeedback-lto-plugin
33017TARGET-stagefeedback-lto-plugin = $(TARGET-lto-plugin)
33018all-stagefeedback-lto-plugin: configure-stagefeedback-lto-plugin
33019 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
33020 @r=`${PWD_COMMAND}`; export r; \
b40e3958 33021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 33022 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
378fce5b 33023 $(HOST_EXPORTS) \
a90ef4bf
JM
33024 $(POSTSTAGE1_HOST_EXPORTS) \
33025 cd $(HOST_SUBDIR)/lto-plugin && \
05a13254 33026 \
a90ef4bf
JM
33027 $(MAKE) $(BASE_FLAGS_TO_PASS) \
33028 CFLAGS="$(STAGEfeedback_CFLAGS)" \
33029 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
33030 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
33031 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
33032 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
33033 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 33034 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ \
05a13254 33035 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf 33036 $(TARGET-stagefeedback-lto-plugin)
3866be5d 33037
a90ef4bf
JM
33038maybe-clean-stagefeedback-lto-plugin: clean-stagefeedback-lto-plugin
33039clean-stagefeedback: clean-stagefeedback-lto-plugin
33040clean-stagefeedback-lto-plugin:
33041 @if [ $(current_stage) = stagefeedback ]; then \
33042 [ -f $(HOST_SUBDIR)/lto-plugin/Makefile ] || exit 0; \
33043 else \
33044 [ -f $(HOST_SUBDIR)/stagefeedback-lto-plugin/Makefile ] || exit 0; \
33045 $(MAKE) stagefeedback-start; \
33046 fi; \
33047 cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 33048 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) @extra_linker_plugin_flags@ clean
a90ef4bf 33049@endif lto-plugin-bootstrap
a7254363 33050
e2b9e2dc 33051
a7254363
PB
33052
33053
d545f33b 33054
a90ef4bf
JM
33055.PHONY: check-lto-plugin maybe-check-lto-plugin
33056maybe-check-lto-plugin:
33057@if lto-plugin
33058maybe-check-lto-plugin: check-lto-plugin
d545f33b 33059
a90ef4bf 33060check-lto-plugin:
0aed8855 33061 @: $(MAKE); $(unstage)
b40e3958
L
33062 @r=`${PWD_COMMAND}`; export r; \
33063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 33064 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
a90ef4bf 33065 (cd $(HOST_SUBDIR)/lto-plugin && \
f91ca6bc 33066 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ $(EXTRA_BOOTSTRAP_FLAGS) check)
3866be5d 33067
a90ef4bf 33068@endif lto-plugin
3866be5d 33069
a90ef4bf
JM
33070.PHONY: install-lto-plugin maybe-install-lto-plugin
33071maybe-install-lto-plugin:
33072@if lto-plugin
33073maybe-install-lto-plugin: install-lto-plugin
4fa63067 33074
a90ef4bf 33075install-lto-plugin: installdirs
0aed8855 33076 @: $(MAKE); $(unstage)
4fa63067
NN
33077 @r=`${PWD_COMMAND}`; export r; \
33078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33079 $(HOST_EXPORTS) \
a90ef4bf 33080 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 33081 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install)
4fa63067 33082
a90ef4bf 33083@endif lto-plugin
4fa63067 33084
a90ef4bf
JM
33085.PHONY: install-strip-lto-plugin maybe-install-strip-lto-plugin
33086maybe-install-strip-lto-plugin:
33087@if lto-plugin
33088maybe-install-strip-lto-plugin: install-strip-lto-plugin
9b980aa1 33089
a90ef4bf 33090install-strip-lto-plugin: installdirs
9b980aa1
RW
33091 @: $(MAKE); $(unstage)
33092 @r=`${PWD_COMMAND}`; export r; \
33093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33094 $(HOST_EXPORTS) \
a90ef4bf 33095 (cd $(HOST_SUBDIR)/lto-plugin && \
1b6c0831 33096 $(MAKE) $(FLAGS_TO_PASS) @extra_linker_plugin_flags@ install-strip)
9b980aa1 33097
a90ef4bf 33098@endif lto-plugin
9b980aa1 33099
56a8fe78 33100# Other targets (info, dvi, pdf, etc.)
4fa63067 33101
a90ef4bf
JM
33102.PHONY: maybe-info-lto-plugin info-lto-plugin
33103maybe-info-lto-plugin:
33104@if lto-plugin
33105maybe-info-lto-plugin: info-lto-plugin
4fa63067 33106
a90ef4bf
JM
33107info-lto-plugin: \
33108 configure-lto-plugin
33109 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33110 r=`${PWD_COMMAND}`; export r; \
33111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33112 $(HOST_EXPORTS) \
1b6c0831 33113 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33115 done; \
22121df0 33116 echo "Doing info in lto-plugin"; \
a90ef4bf 33117 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33120 "RANLIB=$${RANLIB}" \
0c24b341 33121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33122 info) \
4fa63067
NN
33123 || exit 1
33124
a90ef4bf 33125@endif lto-plugin
4fa63067 33126
a90ef4bf
JM
33127.PHONY: maybe-dvi-lto-plugin dvi-lto-plugin
33128maybe-dvi-lto-plugin:
33129@if lto-plugin
33130maybe-dvi-lto-plugin: dvi-lto-plugin
4fa63067 33131
a90ef4bf
JM
33132dvi-lto-plugin: \
33133 configure-lto-plugin
33134 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33135 r=`${PWD_COMMAND}`; export r; \
33136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33137 $(HOST_EXPORTS) \
1b6c0831 33138 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33140 done; \
22121df0 33141 echo "Doing dvi in lto-plugin"; \
a90ef4bf 33142 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33145 "RANLIB=$${RANLIB}" \
0c24b341 33146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33147 dvi) \
4fa63067
NN
33148 || exit 1
33149
a90ef4bf 33150@endif lto-plugin
4fa63067 33151
a90ef4bf
JM
33152.PHONY: maybe-pdf-lto-plugin pdf-lto-plugin
33153maybe-pdf-lto-plugin:
33154@if lto-plugin
33155maybe-pdf-lto-plugin: pdf-lto-plugin
56a8fe78 33156
a90ef4bf
JM
33157pdf-lto-plugin: \
33158 configure-lto-plugin
33159 @[ -f ./lto-plugin/Makefile ] || exit 0; \
56a8fe78
DD
33160 r=`${PWD_COMMAND}`; export r; \
33161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33162 $(HOST_EXPORTS) \
1b6c0831 33163 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
56a8fe78
DD
33164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33165 done; \
22121df0 33166 echo "Doing pdf in lto-plugin"; \
a90ef4bf 33167 (cd $(HOST_SUBDIR)/lto-plugin && \
56a8fe78
DD
33168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33170 "RANLIB=$${RANLIB}" \
0c24b341 33171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
33172 pdf) \
33173 || exit 1
33174
a90ef4bf 33175@endif lto-plugin
56a8fe78 33176
a90ef4bf
JM
33177.PHONY: maybe-html-lto-plugin html-lto-plugin
33178maybe-html-lto-plugin:
33179@if lto-plugin
33180maybe-html-lto-plugin: html-lto-plugin
6d389afc 33181
a90ef4bf
JM
33182html-lto-plugin: \
33183 configure-lto-plugin
33184 @[ -f ./lto-plugin/Makefile ] || exit 0; \
6d389afc
MS
33185 r=`${PWD_COMMAND}`; export r; \
33186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 33187 $(HOST_EXPORTS) \
1b6c0831 33188 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
6d389afc
MS
33189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33190 done; \
22121df0 33191 echo "Doing html in lto-plugin"; \
a90ef4bf 33192 (cd $(HOST_SUBDIR)/lto-plugin && \
6d389afc
MS
33193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33195 "RANLIB=$${RANLIB}" \
0c24b341 33196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
33197 html) \
33198 || exit 1
33199
a90ef4bf 33200@endif lto-plugin
6d389afc 33201
a90ef4bf
JM
33202.PHONY: maybe-TAGS-lto-plugin TAGS-lto-plugin
33203maybe-TAGS-lto-plugin:
33204@if lto-plugin
33205maybe-TAGS-lto-plugin: TAGS-lto-plugin
4fa63067 33206
a90ef4bf
JM
33207TAGS-lto-plugin: \
33208 configure-lto-plugin
33209 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33210 r=`${PWD_COMMAND}`; export r; \
33211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33212 $(HOST_EXPORTS) \
1b6c0831 33213 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33215 done; \
22121df0 33216 echo "Doing TAGS in lto-plugin"; \
a90ef4bf 33217 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33220 "RANLIB=$${RANLIB}" \
0c24b341 33221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33222 TAGS) \
4fa63067
NN
33223 || exit 1
33224
a90ef4bf 33225@endif lto-plugin
4fa63067 33226
a90ef4bf
JM
33227.PHONY: maybe-install-info-lto-plugin install-info-lto-plugin
33228maybe-install-info-lto-plugin:
33229@if lto-plugin
33230maybe-install-info-lto-plugin: install-info-lto-plugin
4fa63067 33231
a90ef4bf
JM
33232install-info-lto-plugin: \
33233 configure-lto-plugin \
33234 info-lto-plugin
33235 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33236 r=`${PWD_COMMAND}`; export r; \
33237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33238 $(HOST_EXPORTS) \
1b6c0831 33239 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33241 done; \
22121df0 33242 echo "Doing install-info in lto-plugin"; \
a90ef4bf 33243 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33246 "RANLIB=$${RANLIB}" \
0c24b341 33247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33248 install-info) \
4fa63067
NN
33249 || exit 1
33250
a90ef4bf 33251@endif lto-plugin
4fa63067 33252
a90ef4bf
JM
33253.PHONY: maybe-install-pdf-lto-plugin install-pdf-lto-plugin
33254maybe-install-pdf-lto-plugin:
33255@if lto-plugin
33256maybe-install-pdf-lto-plugin: install-pdf-lto-plugin
a3ca38d2 33257
a90ef4bf
JM
33258install-pdf-lto-plugin: \
33259 configure-lto-plugin \
33260 pdf-lto-plugin
33261 @[ -f ./lto-plugin/Makefile ] || exit 0; \
a3ca38d2
DD
33262 r=`${PWD_COMMAND}`; export r; \
33263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33264 $(HOST_EXPORTS) \
1b6c0831 33265 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
a3ca38d2
DD
33266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33267 done; \
22121df0 33268 echo "Doing install-pdf in lto-plugin"; \
a90ef4bf 33269 (cd $(HOST_SUBDIR)/lto-plugin && \
a3ca38d2
DD
33270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33272 "RANLIB=$${RANLIB}" \
0c24b341 33273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
33274 install-pdf) \
33275 || exit 1
33276
a90ef4bf 33277@endif lto-plugin
a3ca38d2 33278
a90ef4bf
JM
33279.PHONY: maybe-install-html-lto-plugin install-html-lto-plugin
33280maybe-install-html-lto-plugin:
33281@if lto-plugin
33282maybe-install-html-lto-plugin: install-html-lto-plugin
108a6f8e 33283
a90ef4bf
JM
33284install-html-lto-plugin: \
33285 configure-lto-plugin \
33286 html-lto-plugin
33287 @[ -f ./lto-plugin/Makefile ] || exit 0; \
108a6f8e
CD
33288 r=`${PWD_COMMAND}`; export r; \
33289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33290 $(HOST_EXPORTS) \
1b6c0831 33291 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
108a6f8e
CD
33292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33293 done; \
22121df0 33294 echo "Doing install-html in lto-plugin"; \
a90ef4bf 33295 (cd $(HOST_SUBDIR)/lto-plugin && \
108a6f8e
CD
33296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33298 "RANLIB=$${RANLIB}" \
0c24b341 33299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
33300 install-html) \
33301 || exit 1
33302
a90ef4bf 33303@endif lto-plugin
108a6f8e 33304
a90ef4bf
JM
33305.PHONY: maybe-installcheck-lto-plugin installcheck-lto-plugin
33306maybe-installcheck-lto-plugin:
33307@if lto-plugin
33308maybe-installcheck-lto-plugin: installcheck-lto-plugin
4fa63067 33309
a90ef4bf
JM
33310installcheck-lto-plugin: \
33311 configure-lto-plugin
33312 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33313 r=`${PWD_COMMAND}`; export r; \
33314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33315 $(HOST_EXPORTS) \
1b6c0831 33316 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33318 done; \
22121df0 33319 echo "Doing installcheck in lto-plugin"; \
a90ef4bf 33320 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33323 "RANLIB=$${RANLIB}" \
0c24b341 33324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33325 installcheck) \
4fa63067
NN
33326 || exit 1
33327
a90ef4bf 33328@endif lto-plugin
4fa63067 33329
a90ef4bf
JM
33330.PHONY: maybe-mostlyclean-lto-plugin mostlyclean-lto-plugin
33331maybe-mostlyclean-lto-plugin:
33332@if lto-plugin
33333maybe-mostlyclean-lto-plugin: mostlyclean-lto-plugin
4fa63067 33334
a90ef4bf
JM
33335mostlyclean-lto-plugin:
33336 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33337 r=`${PWD_COMMAND}`; export r; \
33338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33339 $(HOST_EXPORTS) \
1b6c0831 33340 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33342 done; \
22121df0 33343 echo "Doing mostlyclean in lto-plugin"; \
a90ef4bf 33344 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33347 "RANLIB=$${RANLIB}" \
0c24b341 33348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33349 mostlyclean) \
4fa63067
NN
33350 || exit 1
33351
a90ef4bf 33352@endif lto-plugin
4fa63067 33353
a90ef4bf
JM
33354.PHONY: maybe-clean-lto-plugin clean-lto-plugin
33355maybe-clean-lto-plugin:
33356@if lto-plugin
33357maybe-clean-lto-plugin: clean-lto-plugin
4fa63067 33358
a90ef4bf
JM
33359clean-lto-plugin:
33360 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33361 r=`${PWD_COMMAND}`; export r; \
33362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33363 $(HOST_EXPORTS) \
1b6c0831 33364 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33366 done; \
22121df0 33367 echo "Doing clean in lto-plugin"; \
a90ef4bf 33368 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33371 "RANLIB=$${RANLIB}" \
0c24b341 33372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33373 clean) \
4fa63067
NN
33374 || exit 1
33375
a90ef4bf 33376@endif lto-plugin
4fa63067 33377
a90ef4bf
JM
33378.PHONY: maybe-distclean-lto-plugin distclean-lto-plugin
33379maybe-distclean-lto-plugin:
33380@if lto-plugin
33381maybe-distclean-lto-plugin: distclean-lto-plugin
4fa63067 33382
a90ef4bf
JM
33383distclean-lto-plugin:
33384 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33385 r=`${PWD_COMMAND}`; export r; \
33386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33387 $(HOST_EXPORTS) \
1b6c0831 33388 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33390 done; \
22121df0 33391 echo "Doing distclean in lto-plugin"; \
a90ef4bf 33392 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33395 "RANLIB=$${RANLIB}" \
0c24b341 33396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33397 distclean) \
4fa63067
NN
33398 || exit 1
33399
a90ef4bf 33400@endif lto-plugin
4fa63067 33401
a90ef4bf
JM
33402.PHONY: maybe-maintainer-clean-lto-plugin maintainer-clean-lto-plugin
33403maybe-maintainer-clean-lto-plugin:
33404@if lto-plugin
33405maybe-maintainer-clean-lto-plugin: maintainer-clean-lto-plugin
4fa63067 33406
a90ef4bf
JM
33407maintainer-clean-lto-plugin:
33408 @[ -f ./lto-plugin/Makefile ] || exit 0; \
4fa63067
NN
33409 r=`${PWD_COMMAND}`; export r; \
33410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 33411 $(HOST_EXPORTS) \
1b6c0831 33412 for flag in $(EXTRA_HOST_FLAGS) @extra_linker_plugin_flags@; do \
4fa63067
NN
33413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33414 done; \
22121df0 33415 echo "Doing maintainer-clean in lto-plugin"; \
a90ef4bf 33416 (cd $(HOST_SUBDIR)/lto-plugin && \
4fa63067
NN
33417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33419 "RANLIB=$${RANLIB}" \
0c24b341 33420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b813574b 33421 maintainer-clean) \
4fa63067 33422 || exit 1
16ae0395 33423
a90ef4bf
JM
33424@endif lto-plugin
33425
33426
33427
1b6c0831
L
33428.PHONY: configure-libcc1 maybe-configure-libcc1
33429maybe-configure-libcc1:
4f0ef2d8 33430@if gcc-bootstrap
1b6c0831 33431configure-libcc1: stage_current
4f0ef2d8 33432@endif gcc-bootstrap
1b6c0831
L
33433@if libcc1
33434maybe-configure-libcc1: configure-libcc1
33435configure-libcc1:
33436 @: $(MAKE); $(unstage)
c52c6897 33437 @r=`${PWD_COMMAND}`; export r; \
b40e3958 33438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 33439 test ! -f $(HOST_SUBDIR)/libcc1/Makefile || exit 0; \
22121df0 33440 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcc1; \
1b6c0831
L
33441 $(HOST_EXPORTS) \
33442 echo Configuring in $(HOST_SUBDIR)/libcc1; \
33443 cd "$(HOST_SUBDIR)/libcc1" || exit 1; \
e2b9e2dc 33444 case $(srcdir) in \
b00612cc 33445 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 33446 *) topdir=`echo $(HOST_SUBDIR)/libcc1/ | \
b00612cc 33447 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 33448 esac; \
1b6c0831
L
33449 module_srcdir=libcc1; \
33450 $(SHELL) \
33451 $$s/$$module_srcdir/configure \
33452 --srcdir=$${topdir}/$$module_srcdir \
33453 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33454 --target=${target_alias} --enable-shared \
e2b9e2dc 33455 || exit 1
1b6c0831 33456@endif libcc1
d545f33b
PB
33457
33458
3866be5d 33459
16ae0395 33460
9b980aa1 33461
1b6c0831
L
33462.PHONY: all-libcc1 maybe-all-libcc1
33463maybe-all-libcc1:
33464@if gcc-bootstrap
33465all-libcc1: stage_current
33466@endif gcc-bootstrap
33467@if libcc1
33468TARGET-libcc1=all
33469maybe-all-libcc1: all-libcc1
33470all-libcc1: configure-libcc1
33471 @: $(MAKE); $(unstage)
e8a5fa9c
RW
33472 @r=`${PWD_COMMAND}`; export r; \
33473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33474 $(HOST_EXPORTS) \
33475 (cd $(HOST_SUBDIR)/libcc1 && \
33476 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
33477 $(TARGET-libcc1))
33478@endif libcc1
e8a5fa9c 33479
1b6c0831
L
33480
33481
33482
33483.PHONY: check-libcc1 maybe-check-libcc1
33484maybe-check-libcc1:
33485@if libcc1
33486maybe-check-libcc1: check-libcc1
33487
33488check-libcc1:
33489 @: $(MAKE); $(unstage)
e8a5fa9c
RW
33490 @r=`${PWD_COMMAND}`; export r; \
33491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 33492 $(HOST_EXPORTS) \
1b6c0831
L
33493 (cd $(HOST_SUBDIR)/libcc1 && \
33494 $(MAKE) $(FLAGS_TO_PASS) check)
e8a5fa9c 33495
1b6c0831
L
33496@endif libcc1
33497
33498.PHONY: install-libcc1 maybe-install-libcc1
33499maybe-install-libcc1:
33500@if libcc1
33501maybe-install-libcc1: install-libcc1
33502
33503install-libcc1: installdirs
33504 @: $(MAKE); $(unstage)
e8a5fa9c
RW
33505 @r=`${PWD_COMMAND}`; export r; \
33506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33507 $(HOST_EXPORTS) \
33508 (cd $(HOST_SUBDIR)/libcc1 && \
33509 $(MAKE) $(FLAGS_TO_PASS) install)
e8a5fa9c 33510
1b6c0831
L
33511@endif libcc1
33512
33513.PHONY: install-strip-libcc1 maybe-install-strip-libcc1
33514maybe-install-strip-libcc1:
33515@if libcc1
33516maybe-install-strip-libcc1: install-strip-libcc1
33517
33518install-strip-libcc1: installdirs
33519 @: $(MAKE); $(unstage)
e8a5fa9c
RW
33520 @r=`${PWD_COMMAND}`; export r; \
33521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33522 $(HOST_EXPORTS) \
33523 (cd $(HOST_SUBDIR)/libcc1 && \
33524 $(MAKE) $(FLAGS_TO_PASS) install-strip)
e8a5fa9c 33525
1b6c0831 33526@endif libcc1
e8a5fa9c 33527
1b6c0831 33528# Other targets (info, dvi, pdf, etc.)
d545f33b 33529
1b6c0831
L
33530.PHONY: maybe-info-libcc1 info-libcc1
33531maybe-info-libcc1:
33532@if libcc1
33533maybe-info-libcc1: info-libcc1
d545f33b 33534
1b6c0831
L
33535info-libcc1: \
33536 configure-libcc1
33537 @: $(MAKE); $(unstage)
33538 @[ -f ./libcc1/Makefile ] || exit 0; \
33539 r=`${PWD_COMMAND}`; export r; \
b40e3958 33540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33541 $(HOST_EXPORTS) \
33542 for flag in $(EXTRA_HOST_FLAGS) ; do \
33543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33544 done; \
22121df0 33545 echo "Doing info in libcc1"; \
1b6c0831
L
33546 (cd $(HOST_SUBDIR)/libcc1 && \
33547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33549 "RANLIB=$${RANLIB}" \
33550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33551 info) \
33552 || exit 1
3866be5d 33553
1b6c0831 33554@endif libcc1
a7254363 33555
1b6c0831
L
33556.PHONY: maybe-dvi-libcc1 dvi-libcc1
33557maybe-dvi-libcc1:
33558@if libcc1
33559maybe-dvi-libcc1: dvi-libcc1
a7254363 33560
1b6c0831
L
33561dvi-libcc1: \
33562 configure-libcc1
33563 @: $(MAKE); $(unstage)
33564 @[ -f ./libcc1/Makefile ] || exit 0; \
33565 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33567 $(HOST_EXPORTS) \
33568 for flag in $(EXTRA_HOST_FLAGS) ; do \
33569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33570 done; \
22121df0 33571 echo "Doing dvi in libcc1"; \
1b6c0831
L
33572 (cd $(HOST_SUBDIR)/libcc1 && \
33573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33575 "RANLIB=$${RANLIB}" \
33576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33577 dvi) \
33578 || exit 1
e8a5fa9c 33579
1b6c0831 33580@endif libcc1
e8a5fa9c 33581
1b6c0831
L
33582.PHONY: maybe-pdf-libcc1 pdf-libcc1
33583maybe-pdf-libcc1:
33584@if libcc1
33585maybe-pdf-libcc1: pdf-libcc1
e8a5fa9c 33586
1b6c0831
L
33587pdf-libcc1: \
33588 configure-libcc1
33589 @: $(MAKE); $(unstage)
33590 @[ -f ./libcc1/Makefile ] || exit 0; \
33591 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33593 $(HOST_EXPORTS) \
33594 for flag in $(EXTRA_HOST_FLAGS) ; do \
33595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33596 done; \
22121df0 33597 echo "Doing pdf in libcc1"; \
1b6c0831
L
33598 (cd $(HOST_SUBDIR)/libcc1 && \
33599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33601 "RANLIB=$${RANLIB}" \
33602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33603 pdf) \
33604 || exit 1
e8a5fa9c 33605
1b6c0831 33606@endif libcc1
e8a5fa9c 33607
1b6c0831
L
33608.PHONY: maybe-html-libcc1 html-libcc1
33609maybe-html-libcc1:
33610@if libcc1
33611maybe-html-libcc1: html-libcc1
e8a5fa9c 33612
1b6c0831
L
33613html-libcc1: \
33614 configure-libcc1
33615 @: $(MAKE); $(unstage)
33616 @[ -f ./libcc1/Makefile ] || exit 0; \
33617 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33619 $(HOST_EXPORTS) \
33620 for flag in $(EXTRA_HOST_FLAGS) ; do \
33621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33622 done; \
22121df0 33623 echo "Doing html in libcc1"; \
1b6c0831
L
33624 (cd $(HOST_SUBDIR)/libcc1 && \
33625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33627 "RANLIB=$${RANLIB}" \
33628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33629 html) \
33630 || exit 1
e8a5fa9c 33631
1b6c0831 33632@endif libcc1
e8a5fa9c 33633
1b6c0831
L
33634.PHONY: maybe-TAGS-libcc1 TAGS-libcc1
33635maybe-TAGS-libcc1:
33636@if libcc1
33637maybe-TAGS-libcc1: TAGS-libcc1
e8a5fa9c 33638
1b6c0831
L
33639TAGS-libcc1: \
33640 configure-libcc1
33641 @: $(MAKE); $(unstage)
33642 @[ -f ./libcc1/Makefile ] || exit 0; \
33643 r=`${PWD_COMMAND}`; export r; \
e8a5fa9c 33644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
33645 $(HOST_EXPORTS) \
33646 for flag in $(EXTRA_HOST_FLAGS) ; do \
33647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33648 done; \
22121df0 33649 echo "Doing TAGS in libcc1"; \
1b6c0831
L
33650 (cd $(HOST_SUBDIR)/libcc1 && \
33651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33653 "RANLIB=$${RANLIB}" \
33654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33655 TAGS) \
33656 || exit 1
33657
33658@endif libcc1
33659
33660.PHONY: maybe-install-info-libcc1 install-info-libcc1
33661maybe-install-info-libcc1:
33662@if libcc1
33663maybe-install-info-libcc1: install-info-libcc1
33664
33665install-info-libcc1: \
33666 configure-libcc1 \
33667 info-libcc1
33668 @: $(MAKE); $(unstage)
33669 @[ -f ./libcc1/Makefile ] || exit 0; \
33670 r=`${PWD_COMMAND}`; export r; \
33671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33672 $(HOST_EXPORTS) \
33673 for flag in $(EXTRA_HOST_FLAGS) ; do \
33674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33675 done; \
22121df0 33676 echo "Doing install-info in libcc1"; \
1b6c0831
L
33677 (cd $(HOST_SUBDIR)/libcc1 && \
33678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33680 "RANLIB=$${RANLIB}" \
33681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33682 install-info) \
33683 || exit 1
33684
33685@endif libcc1
33686
33687.PHONY: maybe-install-pdf-libcc1 install-pdf-libcc1
33688maybe-install-pdf-libcc1:
33689@if libcc1
33690maybe-install-pdf-libcc1: install-pdf-libcc1
33691
33692install-pdf-libcc1: \
33693 configure-libcc1 \
33694 pdf-libcc1
33695 @: $(MAKE); $(unstage)
33696 @[ -f ./libcc1/Makefile ] || exit 0; \
33697 r=`${PWD_COMMAND}`; export r; \
33698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33699 $(HOST_EXPORTS) \
33700 for flag in $(EXTRA_HOST_FLAGS) ; do \
33701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33702 done; \
22121df0 33703 echo "Doing install-pdf in libcc1"; \
1b6c0831
L
33704 (cd $(HOST_SUBDIR)/libcc1 && \
33705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33707 "RANLIB=$${RANLIB}" \
33708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33709 install-pdf) \
33710 || exit 1
33711
33712@endif libcc1
33713
33714.PHONY: maybe-install-html-libcc1 install-html-libcc1
33715maybe-install-html-libcc1:
33716@if libcc1
33717maybe-install-html-libcc1: install-html-libcc1
33718
33719install-html-libcc1: \
33720 configure-libcc1 \
33721 html-libcc1
33722 @: $(MAKE); $(unstage)
33723 @[ -f ./libcc1/Makefile ] || exit 0; \
33724 r=`${PWD_COMMAND}`; export r; \
33725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33726 $(HOST_EXPORTS) \
33727 for flag in $(EXTRA_HOST_FLAGS) ; do \
33728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33729 done; \
22121df0 33730 echo "Doing install-html in libcc1"; \
1b6c0831
L
33731 (cd $(HOST_SUBDIR)/libcc1 && \
33732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33734 "RANLIB=$${RANLIB}" \
33735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33736 install-html) \
33737 || exit 1
33738
33739@endif libcc1
33740
33741.PHONY: maybe-installcheck-libcc1 installcheck-libcc1
33742maybe-installcheck-libcc1:
33743@if libcc1
33744maybe-installcheck-libcc1: installcheck-libcc1
33745
33746installcheck-libcc1: \
33747 configure-libcc1
33748 @: $(MAKE); $(unstage)
33749 @[ -f ./libcc1/Makefile ] || exit 0; \
33750 r=`${PWD_COMMAND}`; export r; \
33751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33752 $(HOST_EXPORTS) \
33753 for flag in $(EXTRA_HOST_FLAGS) ; do \
33754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33755 done; \
22121df0 33756 echo "Doing installcheck in libcc1"; \
1b6c0831
L
33757 (cd $(HOST_SUBDIR)/libcc1 && \
33758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33760 "RANLIB=$${RANLIB}" \
33761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33762 installcheck) \
33763 || exit 1
33764
33765@endif libcc1
33766
33767.PHONY: maybe-mostlyclean-libcc1 mostlyclean-libcc1
33768maybe-mostlyclean-libcc1:
33769@if libcc1
33770maybe-mostlyclean-libcc1: mostlyclean-libcc1
33771
33772mostlyclean-libcc1:
33773 @: $(MAKE); $(unstage)
33774 @[ -f ./libcc1/Makefile ] || exit 0; \
33775 r=`${PWD_COMMAND}`; export r; \
33776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33777 $(HOST_EXPORTS) \
33778 for flag in $(EXTRA_HOST_FLAGS) ; do \
33779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33780 done; \
22121df0 33781 echo "Doing mostlyclean in libcc1"; \
1b6c0831
L
33782 (cd $(HOST_SUBDIR)/libcc1 && \
33783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33785 "RANLIB=$${RANLIB}" \
33786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33787 mostlyclean) \
33788 || exit 1
33789
33790@endif libcc1
33791
33792.PHONY: maybe-clean-libcc1 clean-libcc1
33793maybe-clean-libcc1:
33794@if libcc1
33795maybe-clean-libcc1: clean-libcc1
33796
33797clean-libcc1:
33798 @: $(MAKE); $(unstage)
33799 @[ -f ./libcc1/Makefile ] || exit 0; \
33800 r=`${PWD_COMMAND}`; export r; \
33801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33802 $(HOST_EXPORTS) \
33803 for flag in $(EXTRA_HOST_FLAGS) ; do \
33804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33805 done; \
22121df0 33806 echo "Doing clean in libcc1"; \
1b6c0831
L
33807 (cd $(HOST_SUBDIR)/libcc1 && \
33808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33810 "RANLIB=$${RANLIB}" \
33811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33812 clean) \
33813 || exit 1
33814
33815@endif libcc1
33816
33817.PHONY: maybe-distclean-libcc1 distclean-libcc1
33818maybe-distclean-libcc1:
33819@if libcc1
33820maybe-distclean-libcc1: distclean-libcc1
33821
33822distclean-libcc1:
33823 @: $(MAKE); $(unstage)
33824 @[ -f ./libcc1/Makefile ] || exit 0; \
33825 r=`${PWD_COMMAND}`; export r; \
33826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33827 $(HOST_EXPORTS) \
33828 for flag in $(EXTRA_HOST_FLAGS) ; do \
33829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33830 done; \
22121df0 33831 echo "Doing distclean in libcc1"; \
1b6c0831
L
33832 (cd $(HOST_SUBDIR)/libcc1 && \
33833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33835 "RANLIB=$${RANLIB}" \
33836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33837 distclean) \
33838 || exit 1
33839
33840@endif libcc1
33841
33842.PHONY: maybe-maintainer-clean-libcc1 maintainer-clean-libcc1
33843maybe-maintainer-clean-libcc1:
33844@if libcc1
33845maybe-maintainer-clean-libcc1: maintainer-clean-libcc1
33846
33847maintainer-clean-libcc1:
33848 @: $(MAKE); $(unstage)
33849 @[ -f ./libcc1/Makefile ] || exit 0; \
33850 r=`${PWD_COMMAND}`; export r; \
33851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33852 $(HOST_EXPORTS) \
33853 for flag in $(EXTRA_HOST_FLAGS) ; do \
33854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33855 done; \
22121df0 33856 echo "Doing maintainer-clean in libcc1"; \
1b6c0831
L
33857 (cd $(HOST_SUBDIR)/libcc1 && \
33858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33860 "RANLIB=$${RANLIB}" \
33861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33862 maintainer-clean) \
33863 || exit 1
33864
33865@endif libcc1
33866
33867
33868
33869.PHONY: configure-gotools maybe-configure-gotools
33870maybe-configure-gotools:
33871@if gcc-bootstrap
33872configure-gotools: stage_current
33873@endif gcc-bootstrap
33874@if gotools
33875maybe-configure-gotools: configure-gotools
33876configure-gotools:
33877 @: $(MAKE); $(unstage)
33878 @r=`${PWD_COMMAND}`; export r; \
33879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33880 test ! -f $(HOST_SUBDIR)/gotools/Makefile || exit 0; \
22121df0 33881 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gotools; \
1b6c0831
L
33882 $(HOST_EXPORTS) \
33883 echo Configuring in $(HOST_SUBDIR)/gotools; \
33884 cd "$(HOST_SUBDIR)/gotools" || exit 1; \
33885 case $(srcdir) in \
33886 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33887 *) topdir=`echo $(HOST_SUBDIR)/gotools/ | \
33888 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
33889 esac; \
33890 module_srcdir=gotools; \
33891 $(SHELL) \
33892 $$s/$$module_srcdir/configure \
33893 --srcdir=$${topdir}/$$module_srcdir \
33894 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
33895 --target=${target_alias} \
33896 || exit 1
33897@endif gotools
33898
33899
33900
33901
33902
33903.PHONY: all-gotools maybe-all-gotools
33904maybe-all-gotools:
33905@if gcc-bootstrap
33906all-gotools: stage_current
33907@endif gcc-bootstrap
33908@if gotools
33909TARGET-gotools=all
33910maybe-all-gotools: all-gotools
33911all-gotools: configure-gotools
33912 @: $(MAKE); $(unstage)
33913 @r=`${PWD_COMMAND}`; export r; \
33914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33915 $(HOST_EXPORTS) \
33916 (cd $(HOST_SUBDIR)/gotools && \
33917 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
33918 $(TARGET-gotools))
33919@endif gotools
33920
33921
33922
33923
33924.PHONY: check-gotools maybe-check-gotools
33925maybe-check-gotools:
33926@if gotools
33927maybe-check-gotools: check-gotools
33928
33929check-gotools:
33930 @: $(MAKE); $(unstage)
33931 @r=`${PWD_COMMAND}`; export r; \
33932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f91ca6bc 33933 $(HOST_EXPORTS) \
1b6c0831
L
33934 (cd $(HOST_SUBDIR)/gotools && \
33935 $(MAKE) $(FLAGS_TO_PASS) check)
33936
33937@endif gotools
33938
33939.PHONY: install-gotools maybe-install-gotools
33940maybe-install-gotools:
33941@if gotools
33942maybe-install-gotools: install-gotools
33943
33944install-gotools: installdirs
33945 @: $(MAKE); $(unstage)
33946 @r=`${PWD_COMMAND}`; export r; \
33947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33948 $(HOST_EXPORTS) \
33949 (cd $(HOST_SUBDIR)/gotools && \
33950 $(MAKE) $(FLAGS_TO_PASS) install)
33951
33952@endif gotools
33953
33954.PHONY: install-strip-gotools maybe-install-strip-gotools
33955maybe-install-strip-gotools:
33956@if gotools
33957maybe-install-strip-gotools: install-strip-gotools
33958
33959install-strip-gotools: installdirs
33960 @: $(MAKE); $(unstage)
33961 @r=`${PWD_COMMAND}`; export r; \
33962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33963 $(HOST_EXPORTS) \
33964 (cd $(HOST_SUBDIR)/gotools && \
33965 $(MAKE) $(FLAGS_TO_PASS) install-strip)
33966
33967@endif gotools
33968
33969# Other targets (info, dvi, pdf, etc.)
33970
33971.PHONY: maybe-info-gotools info-gotools
33972maybe-info-gotools:
33973@if gotools
33974maybe-info-gotools: info-gotools
33975
33976info-gotools: \
33977 configure-gotools
33978 @: $(MAKE); $(unstage)
33979 @[ -f ./gotools/Makefile ] || exit 0; \
33980 r=`${PWD_COMMAND}`; export r; \
33981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33982 $(HOST_EXPORTS) \
33983 for flag in $(EXTRA_HOST_FLAGS) ; do \
33984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33985 done; \
22121df0 33986 echo "Doing info in gotools"; \
1b6c0831
L
33987 (cd $(HOST_SUBDIR)/gotools && \
33988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33990 "RANLIB=$${RANLIB}" \
33991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
33992 info) \
33993 || exit 1
33994
33995@endif gotools
33996
33997.PHONY: maybe-dvi-gotools dvi-gotools
33998maybe-dvi-gotools:
33999@if gotools
34000maybe-dvi-gotools: dvi-gotools
34001
34002dvi-gotools: \
34003 configure-gotools
34004 @: $(MAKE); $(unstage)
34005 @[ -f ./gotools/Makefile ] || exit 0; \
34006 r=`${PWD_COMMAND}`; export r; \
34007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34008 $(HOST_EXPORTS) \
34009 for flag in $(EXTRA_HOST_FLAGS) ; do \
34010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34011 done; \
22121df0 34012 echo "Doing dvi in gotools"; \
1b6c0831
L
34013 (cd $(HOST_SUBDIR)/gotools && \
34014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34016 "RANLIB=$${RANLIB}" \
34017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34018 dvi) \
34019 || exit 1
34020
34021@endif gotools
34022
34023.PHONY: maybe-pdf-gotools pdf-gotools
34024maybe-pdf-gotools:
34025@if gotools
34026maybe-pdf-gotools: pdf-gotools
34027
34028pdf-gotools: \
34029 configure-gotools
34030 @: $(MAKE); $(unstage)
34031 @[ -f ./gotools/Makefile ] || exit 0; \
34032 r=`${PWD_COMMAND}`; export r; \
34033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34034 $(HOST_EXPORTS) \
34035 for flag in $(EXTRA_HOST_FLAGS) ; do \
34036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34037 done; \
22121df0 34038 echo "Doing pdf in gotools"; \
1b6c0831
L
34039 (cd $(HOST_SUBDIR)/gotools && \
34040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34042 "RANLIB=$${RANLIB}" \
34043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34044 pdf) \
34045 || exit 1
34046
34047@endif gotools
34048
34049.PHONY: maybe-html-gotools html-gotools
34050maybe-html-gotools:
34051@if gotools
34052maybe-html-gotools: html-gotools
34053
34054html-gotools: \
34055 configure-gotools
34056 @: $(MAKE); $(unstage)
34057 @[ -f ./gotools/Makefile ] || exit 0; \
34058 r=`${PWD_COMMAND}`; export r; \
34059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34060 $(HOST_EXPORTS) \
34061 for flag in $(EXTRA_HOST_FLAGS) ; do \
34062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34063 done; \
22121df0 34064 echo "Doing html in gotools"; \
1b6c0831
L
34065 (cd $(HOST_SUBDIR)/gotools && \
34066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34068 "RANLIB=$${RANLIB}" \
34069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34070 html) \
34071 || exit 1
34072
34073@endif gotools
34074
34075.PHONY: maybe-TAGS-gotools TAGS-gotools
34076maybe-TAGS-gotools:
34077@if gotools
34078maybe-TAGS-gotools: TAGS-gotools
34079
34080TAGS-gotools: \
34081 configure-gotools
34082 @: $(MAKE); $(unstage)
34083 @[ -f ./gotools/Makefile ] || exit 0; \
34084 r=`${PWD_COMMAND}`; export r; \
34085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34086 $(HOST_EXPORTS) \
34087 for flag in $(EXTRA_HOST_FLAGS) ; do \
34088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34089 done; \
22121df0 34090 echo "Doing TAGS in gotools"; \
1b6c0831
L
34091 (cd $(HOST_SUBDIR)/gotools && \
34092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34094 "RANLIB=$${RANLIB}" \
34095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34096 TAGS) \
34097 || exit 1
34098
34099@endif gotools
34100
34101.PHONY: maybe-install-info-gotools install-info-gotools
34102maybe-install-info-gotools:
34103@if gotools
34104maybe-install-info-gotools: install-info-gotools
34105
34106install-info-gotools: \
34107 configure-gotools \
34108 info-gotools
34109 @: $(MAKE); $(unstage)
34110 @[ -f ./gotools/Makefile ] || exit 0; \
34111 r=`${PWD_COMMAND}`; export r; \
34112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34113 $(HOST_EXPORTS) \
34114 for flag in $(EXTRA_HOST_FLAGS) ; do \
34115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34116 done; \
22121df0 34117 echo "Doing install-info in gotools"; \
1b6c0831
L
34118 (cd $(HOST_SUBDIR)/gotools && \
34119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34121 "RANLIB=$${RANLIB}" \
34122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34123 install-info) \
34124 || exit 1
34125
34126@endif gotools
34127
34128.PHONY: maybe-install-pdf-gotools install-pdf-gotools
34129maybe-install-pdf-gotools:
34130@if gotools
34131maybe-install-pdf-gotools: install-pdf-gotools
34132
34133install-pdf-gotools: \
34134 configure-gotools \
34135 pdf-gotools
34136 @: $(MAKE); $(unstage)
34137 @[ -f ./gotools/Makefile ] || exit 0; \
34138 r=`${PWD_COMMAND}`; export r; \
34139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34140 $(HOST_EXPORTS) \
34141 for flag in $(EXTRA_HOST_FLAGS) ; do \
34142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34143 done; \
22121df0 34144 echo "Doing install-pdf in gotools"; \
1b6c0831
L
34145 (cd $(HOST_SUBDIR)/gotools && \
34146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34148 "RANLIB=$${RANLIB}" \
34149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34150 install-pdf) \
34151 || exit 1
34152
34153@endif gotools
34154
34155.PHONY: maybe-install-html-gotools install-html-gotools
34156maybe-install-html-gotools:
34157@if gotools
34158maybe-install-html-gotools: install-html-gotools
34159
34160install-html-gotools: \
34161 configure-gotools \
34162 html-gotools
34163 @: $(MAKE); $(unstage)
34164 @[ -f ./gotools/Makefile ] || exit 0; \
34165 r=`${PWD_COMMAND}`; export r; \
34166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34167 $(HOST_EXPORTS) \
34168 for flag in $(EXTRA_HOST_FLAGS) ; do \
34169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34170 done; \
22121df0 34171 echo "Doing install-html in gotools"; \
1b6c0831
L
34172 (cd $(HOST_SUBDIR)/gotools && \
34173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34175 "RANLIB=$${RANLIB}" \
34176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34177 install-html) \
34178 || exit 1
34179
34180@endif gotools
34181
34182.PHONY: maybe-installcheck-gotools installcheck-gotools
34183maybe-installcheck-gotools:
34184@if gotools
34185maybe-installcheck-gotools: installcheck-gotools
34186
34187installcheck-gotools: \
34188 configure-gotools
34189 @: $(MAKE); $(unstage)
34190 @[ -f ./gotools/Makefile ] || exit 0; \
34191 r=`${PWD_COMMAND}`; export r; \
34192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34193 $(HOST_EXPORTS) \
34194 for flag in $(EXTRA_HOST_FLAGS) ; do \
34195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34196 done; \
22121df0 34197 echo "Doing installcheck in gotools"; \
1b6c0831
L
34198 (cd $(HOST_SUBDIR)/gotools && \
34199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34201 "RANLIB=$${RANLIB}" \
34202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34203 installcheck) \
34204 || exit 1
34205
34206@endif gotools
34207
34208.PHONY: maybe-mostlyclean-gotools mostlyclean-gotools
34209maybe-mostlyclean-gotools:
34210@if gotools
34211maybe-mostlyclean-gotools: mostlyclean-gotools
34212
34213mostlyclean-gotools:
34214 @: $(MAKE); $(unstage)
34215 @[ -f ./gotools/Makefile ] || exit 0; \
34216 r=`${PWD_COMMAND}`; export r; \
34217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34218 $(HOST_EXPORTS) \
34219 for flag in $(EXTRA_HOST_FLAGS) ; do \
34220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34221 done; \
22121df0 34222 echo "Doing mostlyclean in gotools"; \
1b6c0831
L
34223 (cd $(HOST_SUBDIR)/gotools && \
34224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34226 "RANLIB=$${RANLIB}" \
34227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34228 mostlyclean) \
34229 || exit 1
34230
34231@endif gotools
34232
34233.PHONY: maybe-clean-gotools clean-gotools
34234maybe-clean-gotools:
34235@if gotools
34236maybe-clean-gotools: clean-gotools
34237
34238clean-gotools:
34239 @: $(MAKE); $(unstage)
34240 @[ -f ./gotools/Makefile ] || exit 0; \
34241 r=`${PWD_COMMAND}`; export r; \
34242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34243 $(HOST_EXPORTS) \
34244 for flag in $(EXTRA_HOST_FLAGS) ; do \
34245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34246 done; \
22121df0 34247 echo "Doing clean in gotools"; \
1b6c0831
L
34248 (cd $(HOST_SUBDIR)/gotools && \
34249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34251 "RANLIB=$${RANLIB}" \
34252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34253 clean) \
34254 || exit 1
34255
34256@endif gotools
34257
34258.PHONY: maybe-distclean-gotools distclean-gotools
34259maybe-distclean-gotools:
34260@if gotools
34261maybe-distclean-gotools: distclean-gotools
34262
34263distclean-gotools:
34264 @: $(MAKE); $(unstage)
34265 @[ -f ./gotools/Makefile ] || exit 0; \
34266 r=`${PWD_COMMAND}`; export r; \
34267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34268 $(HOST_EXPORTS) \
34269 for flag in $(EXTRA_HOST_FLAGS) ; do \
34270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34271 done; \
22121df0 34272 echo "Doing distclean in gotools"; \
1b6c0831
L
34273 (cd $(HOST_SUBDIR)/gotools && \
34274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34276 "RANLIB=$${RANLIB}" \
34277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34278 distclean) \
34279 || exit 1
34280
34281@endif gotools
34282
34283.PHONY: maybe-maintainer-clean-gotools maintainer-clean-gotools
34284maybe-maintainer-clean-gotools:
34285@if gotools
34286maybe-maintainer-clean-gotools: maintainer-clean-gotools
34287
34288maintainer-clean-gotools:
34289 @: $(MAKE); $(unstage)
34290 @[ -f ./gotools/Makefile ] || exit 0; \
34291 r=`${PWD_COMMAND}`; export r; \
34292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34293 $(HOST_EXPORTS) \
34294 for flag in $(EXTRA_HOST_FLAGS) ; do \
34295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34296 done; \
22121df0 34297 echo "Doing maintainer-clean in gotools"; \
1b6c0831
L
34298 (cd $(HOST_SUBDIR)/gotools && \
34299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34301 "RANLIB=$${RANLIB}" \
34302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34303 maintainer-clean) \
34304 || exit 1
34305
34306@endif gotools
34307
34308
34309
0e65dfba
NA
34310.PHONY: configure-libctf maybe-configure-libctf
34311maybe-configure-libctf:
34312@if gcc-bootstrap
34313configure-libctf: stage_current
34314@endif gcc-bootstrap
34315@if libctf
34316maybe-configure-libctf: configure-libctf
34317configure-libctf:
34318 @r=`${PWD_COMMAND}`; export r; \
34319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34320 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34321 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34322 $(HOST_EXPORTS) \
34323 echo Configuring in $(HOST_SUBDIR)/libctf; \
34324 cd "$(HOST_SUBDIR)/libctf" || exit 1; \
34325 case $(srcdir) in \
34326 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34327 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34328 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34329 esac; \
34330 module_srcdir=libctf; \
34331 $(SHELL) \
34332 $$s/$$module_srcdir/configure \
34333 --srcdir=$${topdir}/$$module_srcdir \
34334 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34335 --target=${target_alias} \
34336 || exit 1
34337@endif libctf
34338
34339
34340
34341.PHONY: configure-stage1-libctf maybe-configure-stage1-libctf
34342maybe-configure-stage1-libctf:
34343@if libctf-bootstrap
34344maybe-configure-stage1-libctf: configure-stage1-libctf
34345configure-stage1-libctf:
34346 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34347 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34348 @r=`${PWD_COMMAND}`; export r; \
34349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34350 TFLAGS="$(STAGE1_TFLAGS)"; \
34351 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34352 $(HOST_EXPORTS) \
34353 CFLAGS="$(STAGE1_CFLAGS)"; export CFLAGS; \
34354 CXXFLAGS="$(STAGE1_CXXFLAGS)"; export CXXFLAGS; \
34355 LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \
34356 echo Configuring stage 1 in $(HOST_SUBDIR)/libctf; \
34357 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34358 cd $(HOST_SUBDIR)/libctf || exit 1; \
34359 case $(srcdir) in \
34360 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34361 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34362 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34363 esac; \
34364 module_srcdir=libctf; \
34365 $(SHELL) $$s/$$module_srcdir/configure \
34366 --srcdir=$${topdir}/$$module_srcdir \
34367 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34368 --target=${target_alias} \
34369 \
34370 $(STAGE1_CONFIGURE_FLAGS)
34371@endif libctf-bootstrap
34372
34373.PHONY: configure-stage2-libctf maybe-configure-stage2-libctf
34374maybe-configure-stage2-libctf:
34375@if libctf-bootstrap
34376maybe-configure-stage2-libctf: configure-stage2-libctf
34377configure-stage2-libctf:
34378 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34379 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34380 @r=`${PWD_COMMAND}`; export r; \
34381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34382 TFLAGS="$(STAGE2_TFLAGS)"; \
34383 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34384 $(HOST_EXPORTS) \
34385 $(POSTSTAGE1_HOST_EXPORTS) \
34386 CFLAGS="$(STAGE2_CFLAGS)"; export CFLAGS; \
34387 CXXFLAGS="$(STAGE2_CXXFLAGS)"; export CXXFLAGS; \
34388 LIBCFLAGS="$(STAGE2_CFLAGS)"; export LIBCFLAGS; \
34389 echo Configuring stage 2 in $(HOST_SUBDIR)/libctf; \
34390 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34391 cd $(HOST_SUBDIR)/libctf || exit 1; \
34392 case $(srcdir) in \
34393 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34394 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34395 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34396 esac; \
34397 module_srcdir=libctf; \
34398 $(SHELL) $$s/$$module_srcdir/configure \
34399 --srcdir=$${topdir}/$$module_srcdir \
34400 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34401 --target=${target_alias} \
34402 --with-build-libsubdir=$(HOST_SUBDIR) \
34403 $(STAGE2_CONFIGURE_FLAGS)
34404@endif libctf-bootstrap
34405
34406.PHONY: configure-stage3-libctf maybe-configure-stage3-libctf
34407maybe-configure-stage3-libctf:
34408@if libctf-bootstrap
34409maybe-configure-stage3-libctf: configure-stage3-libctf
34410configure-stage3-libctf:
34411 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34412 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34413 @r=`${PWD_COMMAND}`; export r; \
34414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34415 TFLAGS="$(STAGE3_TFLAGS)"; \
34416 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34417 $(HOST_EXPORTS) \
34418 $(POSTSTAGE1_HOST_EXPORTS) \
34419 CFLAGS="$(STAGE3_CFLAGS)"; export CFLAGS; \
34420 CXXFLAGS="$(STAGE3_CXXFLAGS)"; export CXXFLAGS; \
34421 LIBCFLAGS="$(STAGE3_CFLAGS)"; export LIBCFLAGS; \
34422 echo Configuring stage 3 in $(HOST_SUBDIR)/libctf; \
34423 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34424 cd $(HOST_SUBDIR)/libctf || exit 1; \
34425 case $(srcdir) in \
34426 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34427 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34428 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34429 esac; \
34430 module_srcdir=libctf; \
34431 $(SHELL) $$s/$$module_srcdir/configure \
34432 --srcdir=$${topdir}/$$module_srcdir \
34433 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34434 --target=${target_alias} \
34435 --with-build-libsubdir=$(HOST_SUBDIR) \
34436 $(STAGE3_CONFIGURE_FLAGS)
34437@endif libctf-bootstrap
34438
34439.PHONY: configure-stage4-libctf maybe-configure-stage4-libctf
34440maybe-configure-stage4-libctf:
34441@if libctf-bootstrap
34442maybe-configure-stage4-libctf: configure-stage4-libctf
34443configure-stage4-libctf:
34444 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34445 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34446 @r=`${PWD_COMMAND}`; export r; \
34447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34448 TFLAGS="$(STAGE4_TFLAGS)"; \
34449 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34450 $(HOST_EXPORTS) \
34451 $(POSTSTAGE1_HOST_EXPORTS) \
34452 CFLAGS="$(STAGE4_CFLAGS)"; export CFLAGS; \
34453 CXXFLAGS="$(STAGE4_CXXFLAGS)"; export CXXFLAGS; \
34454 LIBCFLAGS="$(STAGE4_CFLAGS)"; export LIBCFLAGS; \
34455 echo Configuring stage 4 in $(HOST_SUBDIR)/libctf; \
34456 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34457 cd $(HOST_SUBDIR)/libctf || exit 1; \
34458 case $(srcdir) in \
34459 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34460 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34461 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34462 esac; \
34463 module_srcdir=libctf; \
34464 $(SHELL) $$s/$$module_srcdir/configure \
34465 --srcdir=$${topdir}/$$module_srcdir \
34466 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34467 --target=${target_alias} \
34468 --with-build-libsubdir=$(HOST_SUBDIR) \
34469 $(STAGE4_CONFIGURE_FLAGS)
34470@endif libctf-bootstrap
34471
34472.PHONY: configure-stageprofile-libctf maybe-configure-stageprofile-libctf
34473maybe-configure-stageprofile-libctf:
34474@if libctf-bootstrap
34475maybe-configure-stageprofile-libctf: configure-stageprofile-libctf
34476configure-stageprofile-libctf:
34477 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34478 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34479 @r=`${PWD_COMMAND}`; export r; \
34480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34481 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34482 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34483 $(HOST_EXPORTS) \
34484 $(POSTSTAGE1_HOST_EXPORTS) \
34485 CFLAGS="$(STAGEprofile_CFLAGS)"; export CFLAGS; \
34486 CXXFLAGS="$(STAGEprofile_CXXFLAGS)"; export CXXFLAGS; \
34487 LIBCFLAGS="$(STAGEprofile_CFLAGS)"; export LIBCFLAGS; \
34488 echo Configuring stage profile in $(HOST_SUBDIR)/libctf; \
34489 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34490 cd $(HOST_SUBDIR)/libctf || exit 1; \
34491 case $(srcdir) in \
34492 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34493 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34494 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34495 esac; \
34496 module_srcdir=libctf; \
34497 $(SHELL) $$s/$$module_srcdir/configure \
34498 --srcdir=$${topdir}/$$module_srcdir \
34499 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34500 --target=${target_alias} \
34501 --with-build-libsubdir=$(HOST_SUBDIR) \
34502 $(STAGEprofile_CONFIGURE_FLAGS)
34503@endif libctf-bootstrap
34504
34505.PHONY: configure-stagefeedback-libctf maybe-configure-stagefeedback-libctf
34506maybe-configure-stagefeedback-libctf:
34507@if libctf-bootstrap
34508maybe-configure-stagefeedback-libctf: configure-stagefeedback-libctf
34509configure-stagefeedback-libctf:
34510 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34511 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf
34512 @r=`${PWD_COMMAND}`; export r; \
34513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34514 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34515 test ! -f $(HOST_SUBDIR)/libctf/Makefile || exit 0; \
34516 $(HOST_EXPORTS) \
34517 $(POSTSTAGE1_HOST_EXPORTS) \
34518 CFLAGS="$(STAGEfeedback_CFLAGS)"; export CFLAGS; \
34519 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)"; export CXXFLAGS; \
34520 LIBCFLAGS="$(STAGEfeedback_CFLAGS)"; export LIBCFLAGS; \
34521 echo Configuring stage feedback in $(HOST_SUBDIR)/libctf; \
34522 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libctf; \
34523 cd $(HOST_SUBDIR)/libctf || exit 1; \
34524 case $(srcdir) in \
34525 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34526 *) topdir=`echo $(HOST_SUBDIR)/libctf/ | \
34527 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34528 esac; \
34529 module_srcdir=libctf; \
34530 $(SHELL) $$s/$$module_srcdir/configure \
34531 --srcdir=$${topdir}/$$module_srcdir \
34532 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
34533 --target=${target_alias} \
34534 --with-build-libsubdir=$(HOST_SUBDIR) \
34535 $(STAGEfeedback_CONFIGURE_FLAGS)
34536@endif libctf-bootstrap
34537
34538
34539
34540
34541
34542.PHONY: all-libctf maybe-all-libctf
34543maybe-all-libctf:
34544@if gcc-bootstrap
34545all-libctf: stage_current
34546@endif gcc-bootstrap
34547@if libctf
34548TARGET-libctf=all
34549maybe-all-libctf: all-libctf
34550all-libctf: configure-libctf
34551 @r=`${PWD_COMMAND}`; export r; \
34552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34553 $(HOST_EXPORTS) \
34554 (cd $(HOST_SUBDIR)/libctf && \
34555 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS) \
34556 $(TARGET-libctf))
34557@endif libctf
34558
34559
34560
34561.PHONY: all-stage1-libctf maybe-all-stage1-libctf
34562.PHONY: clean-stage1-libctf maybe-clean-stage1-libctf
34563maybe-all-stage1-libctf:
34564maybe-clean-stage1-libctf:
34565@if libctf-bootstrap
34566maybe-all-stage1-libctf: all-stage1-libctf
34567all-stage1: all-stage1-libctf
34568TARGET-stage1-libctf = $(TARGET-libctf)
34569all-stage1-libctf: configure-stage1-libctf
34570 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
34571 @r=`${PWD_COMMAND}`; export r; \
34572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34573 TFLAGS="$(STAGE1_TFLAGS)"; \
34574 $(HOST_EXPORTS) \
34575 cd $(HOST_SUBDIR)/libctf && \
34576 \
34577 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34578 CFLAGS="$(STAGE1_CFLAGS)" \
34579 CXXFLAGS="$(STAGE1_CXXFLAGS)" \
34580 LIBCFLAGS="$(LIBCFLAGS)" \
34581 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34582 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34583 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34584 $(EXTRA_HOST_FLAGS) \
34585 $(STAGE1_FLAGS_TO_PASS) \
34586 TFLAGS="$(STAGE1_TFLAGS)" \
34587 $(TARGET-stage1-libctf)
34588
34589maybe-clean-stage1-libctf: clean-stage1-libctf
34590clean-stage1: clean-stage1-libctf
34591clean-stage1-libctf:
34592 @if [ $(current_stage) = stage1 ]; then \
34593 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34594 else \
34595 [ -f $(HOST_SUBDIR)/stage1-libctf/Makefile ] || exit 0; \
34596 $(MAKE) stage1-start; \
34597 fi; \
34598 cd $(HOST_SUBDIR)/libctf && \
34599 $(MAKE) $(EXTRA_HOST_FLAGS) \
34600 $(STAGE1_FLAGS_TO_PASS) clean
34601@endif libctf-bootstrap
34602
34603
34604.PHONY: all-stage2-libctf maybe-all-stage2-libctf
34605.PHONY: clean-stage2-libctf maybe-clean-stage2-libctf
34606maybe-all-stage2-libctf:
34607maybe-clean-stage2-libctf:
34608@if libctf-bootstrap
34609maybe-all-stage2-libctf: all-stage2-libctf
34610all-stage2: all-stage2-libctf
34611TARGET-stage2-libctf = $(TARGET-libctf)
34612all-stage2-libctf: configure-stage2-libctf
34613 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
34614 @r=`${PWD_COMMAND}`; export r; \
34615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34616 TFLAGS="$(STAGE2_TFLAGS)"; \
34617 $(HOST_EXPORTS) \
34618 $(POSTSTAGE1_HOST_EXPORTS) \
34619 cd $(HOST_SUBDIR)/libctf && \
34620 \
34621 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34622 CFLAGS="$(STAGE2_CFLAGS)" \
34623 CXXFLAGS="$(STAGE2_CXXFLAGS)" \
34624 LIBCFLAGS="$(STAGE2_CFLAGS)" \
34625 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34626 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34627 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34628 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34629 TFLAGS="$(STAGE2_TFLAGS)" \
34630 $(TARGET-stage2-libctf)
34631
34632maybe-clean-stage2-libctf: clean-stage2-libctf
34633clean-stage2: clean-stage2-libctf
34634clean-stage2-libctf:
34635 @if [ $(current_stage) = stage2 ]; then \
34636 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34637 else \
34638 [ -f $(HOST_SUBDIR)/stage2-libctf/Makefile ] || exit 0; \
34639 $(MAKE) stage2-start; \
34640 fi; \
34641 cd $(HOST_SUBDIR)/libctf && \
34642 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34643@endif libctf-bootstrap
34644
34645
34646.PHONY: all-stage3-libctf maybe-all-stage3-libctf
34647.PHONY: clean-stage3-libctf maybe-clean-stage3-libctf
34648maybe-all-stage3-libctf:
34649maybe-clean-stage3-libctf:
34650@if libctf-bootstrap
34651maybe-all-stage3-libctf: all-stage3-libctf
34652all-stage3: all-stage3-libctf
34653TARGET-stage3-libctf = $(TARGET-libctf)
34654all-stage3-libctf: configure-stage3-libctf
34655 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
34656 @r=`${PWD_COMMAND}`; export r; \
34657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34658 TFLAGS="$(STAGE3_TFLAGS)"; \
34659 $(HOST_EXPORTS) \
34660 $(POSTSTAGE1_HOST_EXPORTS) \
34661 cd $(HOST_SUBDIR)/libctf && \
34662 \
34663 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34664 CFLAGS="$(STAGE3_CFLAGS)" \
34665 CXXFLAGS="$(STAGE3_CXXFLAGS)" \
34666 LIBCFLAGS="$(STAGE3_CFLAGS)" \
34667 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34668 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34669 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34670 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34671 TFLAGS="$(STAGE3_TFLAGS)" \
34672 $(TARGET-stage3-libctf)
34673
34674maybe-clean-stage3-libctf: clean-stage3-libctf
34675clean-stage3: clean-stage3-libctf
34676clean-stage3-libctf:
34677 @if [ $(current_stage) = stage3 ]; then \
34678 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34679 else \
34680 [ -f $(HOST_SUBDIR)/stage3-libctf/Makefile ] || exit 0; \
34681 $(MAKE) stage3-start; \
34682 fi; \
34683 cd $(HOST_SUBDIR)/libctf && \
34684 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34685@endif libctf-bootstrap
34686
34687
34688.PHONY: all-stage4-libctf maybe-all-stage4-libctf
34689.PHONY: clean-stage4-libctf maybe-clean-stage4-libctf
34690maybe-all-stage4-libctf:
34691maybe-clean-stage4-libctf:
34692@if libctf-bootstrap
34693maybe-all-stage4-libctf: all-stage4-libctf
34694all-stage4: all-stage4-libctf
34695TARGET-stage4-libctf = $(TARGET-libctf)
34696all-stage4-libctf: configure-stage4-libctf
34697 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
34698 @r=`${PWD_COMMAND}`; export r; \
34699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34700 TFLAGS="$(STAGE4_TFLAGS)"; \
34701 $(HOST_EXPORTS) \
34702 $(POSTSTAGE1_HOST_EXPORTS) \
34703 cd $(HOST_SUBDIR)/libctf && \
34704 \
34705 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34706 CFLAGS="$(STAGE4_CFLAGS)" \
34707 CXXFLAGS="$(STAGE4_CXXFLAGS)" \
34708 LIBCFLAGS="$(STAGE4_CFLAGS)" \
34709 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34710 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34711 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34712 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34713 TFLAGS="$(STAGE4_TFLAGS)" \
34714 $(TARGET-stage4-libctf)
34715
34716maybe-clean-stage4-libctf: clean-stage4-libctf
34717clean-stage4: clean-stage4-libctf
34718clean-stage4-libctf:
34719 @if [ $(current_stage) = stage4 ]; then \
34720 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34721 else \
34722 [ -f $(HOST_SUBDIR)/stage4-libctf/Makefile ] || exit 0; \
34723 $(MAKE) stage4-start; \
34724 fi; \
34725 cd $(HOST_SUBDIR)/libctf && \
34726 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34727@endif libctf-bootstrap
34728
34729
34730.PHONY: all-stageprofile-libctf maybe-all-stageprofile-libctf
34731.PHONY: clean-stageprofile-libctf maybe-clean-stageprofile-libctf
34732maybe-all-stageprofile-libctf:
34733maybe-clean-stageprofile-libctf:
34734@if libctf-bootstrap
34735maybe-all-stageprofile-libctf: all-stageprofile-libctf
34736all-stageprofile: all-stageprofile-libctf
34737TARGET-stageprofile-libctf = $(TARGET-libctf)
34738all-stageprofile-libctf: configure-stageprofile-libctf
34739 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
34740 @r=`${PWD_COMMAND}`; export r; \
34741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34742 TFLAGS="$(STAGEprofile_TFLAGS)"; \
34743 $(HOST_EXPORTS) \
34744 $(POSTSTAGE1_HOST_EXPORTS) \
34745 cd $(HOST_SUBDIR)/libctf && \
34746 \
34747 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34748 CFLAGS="$(STAGEprofile_CFLAGS)" \
34749 CXXFLAGS="$(STAGEprofile_CXXFLAGS)" \
34750 LIBCFLAGS="$(STAGEprofile_CFLAGS)" \
34751 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34752 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34753 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34754 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34755 TFLAGS="$(STAGEprofile_TFLAGS)" \
34756 $(TARGET-stageprofile-libctf)
34757
34758maybe-clean-stageprofile-libctf: clean-stageprofile-libctf
34759clean-stageprofile: clean-stageprofile-libctf
34760clean-stageprofile-libctf:
34761 @if [ $(current_stage) = stageprofile ]; then \
34762 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34763 else \
34764 [ -f $(HOST_SUBDIR)/stageprofile-libctf/Makefile ] || exit 0; \
34765 $(MAKE) stageprofile-start; \
34766 fi; \
34767 cd $(HOST_SUBDIR)/libctf && \
34768 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34769@endif libctf-bootstrap
34770
34771
34772.PHONY: all-stagefeedback-libctf maybe-all-stagefeedback-libctf
34773.PHONY: clean-stagefeedback-libctf maybe-clean-stagefeedback-libctf
34774maybe-all-stagefeedback-libctf:
34775maybe-clean-stagefeedback-libctf:
34776@if libctf-bootstrap
34777maybe-all-stagefeedback-libctf: all-stagefeedback-libctf
34778all-stagefeedback: all-stagefeedback-libctf
34779TARGET-stagefeedback-libctf = $(TARGET-libctf)
34780all-stagefeedback-libctf: configure-stagefeedback-libctf
34781 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
34782 @r=`${PWD_COMMAND}`; export r; \
34783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34784 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
34785 $(HOST_EXPORTS) \
34786 $(POSTSTAGE1_HOST_EXPORTS) \
34787 cd $(HOST_SUBDIR)/libctf && \
34788 \
34789 $(MAKE) $(BASE_FLAGS_TO_PASS) \
34790 CFLAGS="$(STAGEfeedback_CFLAGS)" \
34791 CXXFLAGS="$(STAGEfeedback_CXXFLAGS)" \
34792 LIBCFLAGS="$(STAGEfeedback_CFLAGS)" \
34793 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
34794 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
34795 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
34796 $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) \
34797 TFLAGS="$(STAGEfeedback_TFLAGS)" \
34798 $(TARGET-stagefeedback-libctf)
34799
34800maybe-clean-stagefeedback-libctf: clean-stagefeedback-libctf
34801clean-stagefeedback: clean-stagefeedback-libctf
34802clean-stagefeedback-libctf:
34803 @if [ $(current_stage) = stagefeedback ]; then \
34804 [ -f $(HOST_SUBDIR)/libctf/Makefile ] || exit 0; \
34805 else \
34806 [ -f $(HOST_SUBDIR)/stagefeedback-libctf/Makefile ] || exit 0; \
34807 $(MAKE) stagefeedback-start; \
34808 fi; \
34809 cd $(HOST_SUBDIR)/libctf && \
34810 $(MAKE) $(EXTRA_HOST_FLAGS) $(POSTSTAGE1_FLAGS_TO_PASS) clean
34811@endif libctf-bootstrap
34812
34813
34814
34815
34816
34817.PHONY: check-libctf maybe-check-libctf
34818maybe-check-libctf:
34819@if libctf
34820maybe-check-libctf: check-libctf
34821
34822check-libctf:
c59e30ed
NA
34823 @: $(MAKE); $(unstage)
34824 @r=`${PWD_COMMAND}`; export r; \
34825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34826 $(HOST_EXPORTS) $(EXTRA_HOST_EXPORTS) \
34827 (cd $(HOST_SUBDIR)/libctf && \
34828 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_BOOTSTRAP_FLAGS) check)
0e65dfba
NA
34829
34830@endif libctf
34831
34832.PHONY: install-libctf maybe-install-libctf
34833maybe-install-libctf:
34834@if libctf
34835maybe-install-libctf: install-libctf
34836
87279e3c
NA
34837install-libctf: installdirs
34838 @: $(MAKE); $(unstage)
34839 @r=`${PWD_COMMAND}`; export r; \
34840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34841 $(HOST_EXPORTS) \
34842 (cd $(HOST_SUBDIR)/libctf && \
34843 $(MAKE) $(FLAGS_TO_PASS) install)
0e65dfba
NA
34844
34845@endif libctf
34846
34847.PHONY: install-strip-libctf maybe-install-strip-libctf
34848maybe-install-strip-libctf:
34849@if libctf
34850maybe-install-strip-libctf: install-strip-libctf
34851
87279e3c
NA
34852install-strip-libctf: installdirs
34853 @: $(MAKE); $(unstage)
34854 @r=`${PWD_COMMAND}`; export r; \
34855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34856 $(HOST_EXPORTS) \
34857 (cd $(HOST_SUBDIR)/libctf && \
34858 $(MAKE) $(FLAGS_TO_PASS) install-strip)
0e65dfba
NA
34859
34860@endif libctf
34861
34862# Other targets (info, dvi, pdf, etc.)
34863
34864.PHONY: maybe-info-libctf info-libctf
34865maybe-info-libctf:
34866@if libctf
34867maybe-info-libctf: info-libctf
34868
34869info-libctf: \
34870 configure-libctf
34871 @[ -f ./libctf/Makefile ] || exit 0; \
34872 r=`${PWD_COMMAND}`; export r; \
34873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34874 $(HOST_EXPORTS) \
34875 for flag in $(EXTRA_HOST_FLAGS) ; do \
34876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34877 done; \
34878 echo "Doing info in libctf"; \
34879 (cd $(HOST_SUBDIR)/libctf && \
34880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34882 "RANLIB=$${RANLIB}" \
34883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34884 info) \
34885 || exit 1
34886
34887@endif libctf
34888
34889.PHONY: maybe-dvi-libctf dvi-libctf
34890maybe-dvi-libctf:
34891@if libctf
34892maybe-dvi-libctf: dvi-libctf
34893
34894dvi-libctf: \
34895 configure-libctf
34896 @[ -f ./libctf/Makefile ] || exit 0; \
34897 r=`${PWD_COMMAND}`; export r; \
34898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34899 $(HOST_EXPORTS) \
34900 for flag in $(EXTRA_HOST_FLAGS) ; do \
34901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34902 done; \
34903 echo "Doing dvi in libctf"; \
34904 (cd $(HOST_SUBDIR)/libctf && \
34905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34907 "RANLIB=$${RANLIB}" \
34908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34909 dvi) \
34910 || exit 1
34911
34912@endif libctf
34913
34914.PHONY: maybe-pdf-libctf pdf-libctf
34915maybe-pdf-libctf:
34916@if libctf
34917maybe-pdf-libctf: pdf-libctf
34918
34919pdf-libctf: \
34920 configure-libctf
34921 @[ -f ./libctf/Makefile ] || exit 0; \
34922 r=`${PWD_COMMAND}`; export r; \
34923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34924 $(HOST_EXPORTS) \
34925 for flag in $(EXTRA_HOST_FLAGS) ; do \
34926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34927 done; \
34928 echo "Doing pdf in libctf"; \
34929 (cd $(HOST_SUBDIR)/libctf && \
34930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34932 "RANLIB=$${RANLIB}" \
34933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34934 pdf) \
34935 || exit 1
34936
34937@endif libctf
34938
34939.PHONY: maybe-html-libctf html-libctf
34940maybe-html-libctf:
34941@if libctf
34942maybe-html-libctf: html-libctf
34943
34944html-libctf: \
34945 configure-libctf
34946 @[ -f ./libctf/Makefile ] || exit 0; \
34947 r=`${PWD_COMMAND}`; export r; \
34948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34949 $(HOST_EXPORTS) \
34950 for flag in $(EXTRA_HOST_FLAGS) ; do \
34951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34952 done; \
34953 echo "Doing html in libctf"; \
34954 (cd $(HOST_SUBDIR)/libctf && \
34955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34957 "RANLIB=$${RANLIB}" \
34958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34959 html) \
34960 || exit 1
34961
34962@endif libctf
34963
34964.PHONY: maybe-TAGS-libctf TAGS-libctf
34965maybe-TAGS-libctf:
34966@if libctf
34967maybe-TAGS-libctf: TAGS-libctf
34968
34969TAGS-libctf: \
34970 configure-libctf
34971 @[ -f ./libctf/Makefile ] || exit 0; \
34972 r=`${PWD_COMMAND}`; export r; \
34973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34974 $(HOST_EXPORTS) \
34975 for flag in $(EXTRA_HOST_FLAGS) ; do \
34976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34977 done; \
34978 echo "Doing TAGS in libctf"; \
34979 (cd $(HOST_SUBDIR)/libctf && \
34980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34982 "RANLIB=$${RANLIB}" \
34983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
34984 TAGS) \
34985 || exit 1
34986
34987@endif libctf
34988
34989.PHONY: maybe-install-info-libctf install-info-libctf
34990maybe-install-info-libctf:
34991@if libctf
34992maybe-install-info-libctf: install-info-libctf
34993
34994install-info-libctf: \
34995 configure-libctf \
34996 info-libctf
34997 @[ -f ./libctf/Makefile ] || exit 0; \
34998 r=`${PWD_COMMAND}`; export r; \
34999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35000 $(HOST_EXPORTS) \
35001 for flag in $(EXTRA_HOST_FLAGS) ; do \
35002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35003 done; \
35004 echo "Doing install-info in libctf"; \
35005 (cd $(HOST_SUBDIR)/libctf && \
35006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35008 "RANLIB=$${RANLIB}" \
35009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35010 install-info) \
35011 || exit 1
35012
35013@endif libctf
35014
35015.PHONY: maybe-install-pdf-libctf install-pdf-libctf
35016maybe-install-pdf-libctf:
35017@if libctf
35018maybe-install-pdf-libctf: install-pdf-libctf
35019
35020install-pdf-libctf: \
35021 configure-libctf \
35022 pdf-libctf
35023 @[ -f ./libctf/Makefile ] || exit 0; \
35024 r=`${PWD_COMMAND}`; export r; \
35025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35026 $(HOST_EXPORTS) \
35027 for flag in $(EXTRA_HOST_FLAGS) ; do \
35028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35029 done; \
35030 echo "Doing install-pdf in libctf"; \
35031 (cd $(HOST_SUBDIR)/libctf && \
35032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35034 "RANLIB=$${RANLIB}" \
35035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35036 install-pdf) \
35037 || exit 1
35038
35039@endif libctf
35040
35041.PHONY: maybe-install-html-libctf install-html-libctf
35042maybe-install-html-libctf:
35043@if libctf
35044maybe-install-html-libctf: install-html-libctf
35045
35046install-html-libctf: \
35047 configure-libctf \
35048 html-libctf
35049 @[ -f ./libctf/Makefile ] || exit 0; \
35050 r=`${PWD_COMMAND}`; export r; \
35051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35052 $(HOST_EXPORTS) \
35053 for flag in $(EXTRA_HOST_FLAGS) ; do \
35054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35055 done; \
35056 echo "Doing install-html in libctf"; \
35057 (cd $(HOST_SUBDIR)/libctf && \
35058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35060 "RANLIB=$${RANLIB}" \
35061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35062 install-html) \
35063 || exit 1
35064
35065@endif libctf
35066
35067.PHONY: maybe-installcheck-libctf installcheck-libctf
35068maybe-installcheck-libctf:
35069@if libctf
35070maybe-installcheck-libctf: installcheck-libctf
35071
35072installcheck-libctf: \
35073 configure-libctf
35074 @[ -f ./libctf/Makefile ] || exit 0; \
35075 r=`${PWD_COMMAND}`; export r; \
35076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35077 $(HOST_EXPORTS) \
35078 for flag in $(EXTRA_HOST_FLAGS) ; do \
35079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35080 done; \
35081 echo "Doing installcheck in libctf"; \
35082 (cd $(HOST_SUBDIR)/libctf && \
35083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35085 "RANLIB=$${RANLIB}" \
35086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35087 installcheck) \
35088 || exit 1
35089
35090@endif libctf
35091
35092.PHONY: maybe-mostlyclean-libctf mostlyclean-libctf
35093maybe-mostlyclean-libctf:
35094@if libctf
35095maybe-mostlyclean-libctf: mostlyclean-libctf
35096
35097mostlyclean-libctf:
35098 @[ -f ./libctf/Makefile ] || exit 0; \
35099 r=`${PWD_COMMAND}`; export r; \
35100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35101 $(HOST_EXPORTS) \
35102 for flag in $(EXTRA_HOST_FLAGS) ; do \
35103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35104 done; \
35105 echo "Doing mostlyclean in libctf"; \
35106 (cd $(HOST_SUBDIR)/libctf && \
35107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35109 "RANLIB=$${RANLIB}" \
35110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35111 mostlyclean) \
35112 || exit 1
35113
35114@endif libctf
35115
35116.PHONY: maybe-clean-libctf clean-libctf
35117maybe-clean-libctf:
35118@if libctf
35119maybe-clean-libctf: clean-libctf
35120
35121clean-libctf:
35122 @[ -f ./libctf/Makefile ] || exit 0; \
35123 r=`${PWD_COMMAND}`; export r; \
35124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35125 $(HOST_EXPORTS) \
35126 for flag in $(EXTRA_HOST_FLAGS) ; do \
35127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35128 done; \
35129 echo "Doing clean in libctf"; \
35130 (cd $(HOST_SUBDIR)/libctf && \
35131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35133 "RANLIB=$${RANLIB}" \
35134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35135 clean) \
35136 || exit 1
35137
35138@endif libctf
35139
35140.PHONY: maybe-distclean-libctf distclean-libctf
35141maybe-distclean-libctf:
35142@if libctf
35143maybe-distclean-libctf: distclean-libctf
35144
35145distclean-libctf:
35146 @[ -f ./libctf/Makefile ] || exit 0; \
35147 r=`${PWD_COMMAND}`; export r; \
35148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35149 $(HOST_EXPORTS) \
35150 for flag in $(EXTRA_HOST_FLAGS) ; do \
35151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35152 done; \
35153 echo "Doing distclean in libctf"; \
35154 (cd $(HOST_SUBDIR)/libctf && \
35155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35157 "RANLIB=$${RANLIB}" \
35158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35159 distclean) \
35160 || exit 1
35161
35162@endif libctf
35163
35164.PHONY: maybe-maintainer-clean-libctf maintainer-clean-libctf
35165maybe-maintainer-clean-libctf:
35166@if libctf
35167maybe-maintainer-clean-libctf: maintainer-clean-libctf
35168
35169maintainer-clean-libctf:
35170 @[ -f ./libctf/Makefile ] || exit 0; \
35171 r=`${PWD_COMMAND}`; export r; \
35172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35173 $(HOST_EXPORTS) \
35174 for flag in $(EXTRA_HOST_FLAGS) ; do \
35175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35176 done; \
35177 echo "Doing maintainer-clean in libctf"; \
35178 (cd $(HOST_SUBDIR)/libctf && \
35179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35181 "RANLIB=$${RANLIB}" \
35182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35183 maintainer-clean) \
35184 || exit 1
35185
35186@endif libctf
35187
35188
35189
1b6c0831
L
35190# ---------------------------------------
35191# Modules which run on the target machine
35192# ---------------------------------------
35193
35194
35195
35196
35197.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
35198maybe-configure-target-libstdc++-v3:
35199@if gcc-bootstrap
35200configure-target-libstdc++-v3: stage_current
35201@endif gcc-bootstrap
35202@if target-libstdc++-v3
35203maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
35204configure-target-libstdc++-v3:
35205 @r=`${PWD_COMMAND}`; export r; \
35206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35207 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0
L
35208 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
35209 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35210 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35211 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35212 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35213 else \
35214 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35215 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35216 fi; \
35217 else \
35218 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35219 fi; \
35220 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
22121df0 35221 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35222 $(RAW_CXX_TARGET_EXPORTS) \
35223 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
35224 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
35225 case $(srcdir) in \
35226 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35227 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35228 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35229 esac; \
35230 module_srcdir=libstdc++-v3; \
35231 rm -f no-such-file || : ; \
35232 CONFIG_SITE=no-such-file $(SHELL) \
35233 $$s/$$module_srcdir/configure \
35234 --srcdir=$${topdir}/$$module_srcdir \
35235 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35236 --target=${target_alias} \
35237 || exit 1
35238@endif target-libstdc++-v3
35239
35240
35241
35242.PHONY: configure-stage1-target-libstdc++-v3 maybe-configure-stage1-target-libstdc++-v3
35243maybe-configure-stage1-target-libstdc++-v3:
35244@if target-libstdc++-v3-bootstrap
35245maybe-configure-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
35246configure-stage1-target-libstdc++-v3:
35247 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35248 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35249 @r=`${PWD_COMMAND}`; export r; \
35250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35251 TFLAGS="$(STAGE1_TFLAGS)"; \
35252 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35253 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35254 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35255 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35256 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35257 else \
35258 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35259 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35260 fi; \
35261 else \
35262 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35263 fi; \
35264 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35265 $(RAW_CXX_TARGET_EXPORTS) \
35266 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35267 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35268 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35269 echo Configuring stage 1 in $(TARGET_SUBDIR)/libstdc++-v3; \
35270 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35271 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35272 case $(srcdir) in \
35273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35274 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35276 esac; \
35277 module_srcdir=libstdc++-v3; \
35278 $(SHELL) $$s/$$module_srcdir/configure \
35279 --srcdir=$${topdir}/$$module_srcdir \
35280 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35281 --target=${target_alias} \
35282 \
35283 $(STAGE1_CONFIGURE_FLAGS)
35284@endif target-libstdc++-v3-bootstrap
35285
35286.PHONY: configure-stage2-target-libstdc++-v3 maybe-configure-stage2-target-libstdc++-v3
35287maybe-configure-stage2-target-libstdc++-v3:
35288@if target-libstdc++-v3-bootstrap
35289maybe-configure-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
35290configure-stage2-target-libstdc++-v3:
35291 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35292 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35293 @r=`${PWD_COMMAND}`; export r; \
35294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35295 TFLAGS="$(STAGE2_TFLAGS)"; \
35296 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35297 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35298 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35299 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35300 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35301 else \
35302 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35303 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35304 fi; \
35305 else \
35306 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35307 fi; \
35308 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35309 $(RAW_CXX_TARGET_EXPORTS) \
35310 \
35311 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35312 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35313 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35314 echo Configuring stage 2 in $(TARGET_SUBDIR)/libstdc++-v3; \
35315 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35316 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35317 case $(srcdir) in \
35318 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35319 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35320 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35321 esac; \
35322 module_srcdir=libstdc++-v3; \
35323 $(SHELL) $$s/$$module_srcdir/configure \
35324 --srcdir=$${topdir}/$$module_srcdir \
35325 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35326 --target=${target_alias} \
22121df0 35327 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35328 $(STAGE2_CONFIGURE_FLAGS)
35329@endif target-libstdc++-v3-bootstrap
35330
35331.PHONY: configure-stage3-target-libstdc++-v3 maybe-configure-stage3-target-libstdc++-v3
35332maybe-configure-stage3-target-libstdc++-v3:
35333@if target-libstdc++-v3-bootstrap
35334maybe-configure-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
35335configure-stage3-target-libstdc++-v3:
35336 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35337 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35338 @r=`${PWD_COMMAND}`; export r; \
35339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35340 TFLAGS="$(STAGE3_TFLAGS)"; \
35341 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35342 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35343 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35344 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35345 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35346 else \
35347 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35348 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35349 fi; \
35350 else \
35351 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35352 fi; \
35353 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35354 $(RAW_CXX_TARGET_EXPORTS) \
35355 \
35356 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35357 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35358 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35359 echo Configuring stage 3 in $(TARGET_SUBDIR)/libstdc++-v3; \
35360 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35361 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35362 case $(srcdir) in \
35363 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35364 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35365 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35366 esac; \
35367 module_srcdir=libstdc++-v3; \
35368 $(SHELL) $$s/$$module_srcdir/configure \
35369 --srcdir=$${topdir}/$$module_srcdir \
35370 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35371 --target=${target_alias} \
22121df0 35372 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35373 $(STAGE3_CONFIGURE_FLAGS)
35374@endif target-libstdc++-v3-bootstrap
35375
35376.PHONY: configure-stage4-target-libstdc++-v3 maybe-configure-stage4-target-libstdc++-v3
35377maybe-configure-stage4-target-libstdc++-v3:
35378@if target-libstdc++-v3-bootstrap
35379maybe-configure-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
35380configure-stage4-target-libstdc++-v3:
35381 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35382 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35383 @r=`${PWD_COMMAND}`; export r; \
35384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35385 TFLAGS="$(STAGE4_TFLAGS)"; \
35386 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35387 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35388 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35389 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35390 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35391 else \
35392 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35393 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35394 fi; \
35395 else \
35396 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35397 fi; \
35398 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35399 $(RAW_CXX_TARGET_EXPORTS) \
35400 \
35401 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35402 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35403 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35404 echo Configuring stage 4 in $(TARGET_SUBDIR)/libstdc++-v3; \
35405 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35406 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35407 case $(srcdir) in \
35408 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35409 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35410 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35411 esac; \
35412 module_srcdir=libstdc++-v3; \
35413 $(SHELL) $$s/$$module_srcdir/configure \
35414 --srcdir=$${topdir}/$$module_srcdir \
35415 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35416 --target=${target_alias} \
22121df0 35417 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35418 $(STAGE4_CONFIGURE_FLAGS)
35419@endif target-libstdc++-v3-bootstrap
35420
35421.PHONY: configure-stageprofile-target-libstdc++-v3 maybe-configure-stageprofile-target-libstdc++-v3
35422maybe-configure-stageprofile-target-libstdc++-v3:
35423@if target-libstdc++-v3-bootstrap
35424maybe-configure-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
35425configure-stageprofile-target-libstdc++-v3:
35426 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35427 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35428 @r=`${PWD_COMMAND}`; export r; \
35429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35430 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35431 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35432 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35433 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35434 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35435 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35436 else \
35437 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35438 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35439 fi; \
35440 else \
35441 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35442 fi; \
35443 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35444 $(RAW_CXX_TARGET_EXPORTS) \
35445 \
35446 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35447 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35448 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35449 echo Configuring stage profile in $(TARGET_SUBDIR)/libstdc++-v3; \
35450 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35451 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35452 case $(srcdir) in \
35453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35454 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35456 esac; \
35457 module_srcdir=libstdc++-v3; \
35458 $(SHELL) $$s/$$module_srcdir/configure \
35459 --srcdir=$${topdir}/$$module_srcdir \
35460 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35461 --target=${target_alias} \
22121df0 35462 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35463 $(STAGEprofile_CONFIGURE_FLAGS)
35464@endif target-libstdc++-v3-bootstrap
35465
35466.PHONY: configure-stagefeedback-target-libstdc++-v3 maybe-configure-stagefeedback-target-libstdc++-v3
35467maybe-configure-stagefeedback-target-libstdc++-v3:
35468@if target-libstdc++-v3-bootstrap
35469maybe-configure-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
35470configure-stagefeedback-target-libstdc++-v3:
35471 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35472 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3
35473 @r=`${PWD_COMMAND}`; export r; \
35474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35475 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35476 echo "Checking multilib configuration for libstdc++-v3..."; \
22121df0 35477 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null; \
1b6c0831
L
35478 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35479 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
35480 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
35481 else \
35482 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
35483 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35484 fi; \
35485 else \
35486 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
35487 fi; \
35488 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
35489 $(RAW_CXX_TARGET_EXPORTS) \
35490 \
35491 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
35492 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
35493 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
35494 echo Configuring stage feedback in $(TARGET_SUBDIR)/libstdc++-v3; \
35495 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3; \
1b6c0831
L
35496 cd $(TARGET_SUBDIR)/libstdc++-v3 || exit 1; \
35497 case $(srcdir) in \
35498 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35499 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
35500 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
35501 esac; \
35502 module_srcdir=libstdc++-v3; \
35503 $(SHELL) $$s/$$module_srcdir/configure \
35504 --srcdir=$${topdir}/$$module_srcdir \
35505 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
35506 --target=${target_alias} \
22121df0 35507 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
35508 $(STAGEfeedback_CONFIGURE_FLAGS)
35509@endif target-libstdc++-v3-bootstrap
35510
35511
35512
35513
35514
35515.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
35516maybe-all-target-libstdc++-v3:
35517@if gcc-bootstrap
35518all-target-libstdc++-v3: stage_current
35519@endif gcc-bootstrap
35520@if target-libstdc++-v3
35521TARGET-target-libstdc++-v3=all
35522maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
35523all-target-libstdc++-v3: configure-target-libstdc++-v3
35524 @r=`${PWD_COMMAND}`; export r; \
35525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35526 $(RAW_CXX_TARGET_EXPORTS) \
35527 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35528 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35529 $(TARGET-target-libstdc++-v3))
35530@endif target-libstdc++-v3
35531
35532
35533
35534.PHONY: all-stage1-target-libstdc++-v3 maybe-all-stage1-target-libstdc++-v3
35535.PHONY: clean-stage1-target-libstdc++-v3 maybe-clean-stage1-target-libstdc++-v3
35536maybe-all-stage1-target-libstdc++-v3:
35537maybe-clean-stage1-target-libstdc++-v3:
35538@if target-libstdc++-v3-bootstrap
35539maybe-all-stage1-target-libstdc++-v3: all-stage1-target-libstdc++-v3
35540all-stage1: all-stage1-target-libstdc++-v3
35541TARGET-stage1-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35542all-stage1-target-libstdc++-v3: configure-stage1-target-libstdc++-v3
35543 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
35544 @r=`${PWD_COMMAND}`; export r; \
35545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35546 TFLAGS="$(STAGE1_TFLAGS)"; \
35547 $(RAW_CXX_TARGET_EXPORTS) \
35548 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35549 \
1b6c0831
L
35550 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35551 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35552 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35553 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35554 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35555 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35556 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35557 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35558 \
05a13254 35559 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
35560 $(TARGET-stage1-target-libstdc++-v3)
35561
35562maybe-clean-stage1-target-libstdc++-v3: clean-stage1-target-libstdc++-v3
35563clean-stage1: clean-stage1-target-libstdc++-v3
35564clean-stage1-target-libstdc++-v3:
35565 @if [ $(current_stage) = stage1 ]; then \
35566 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35567 else \
35568 [ -f $(TARGET_SUBDIR)/stage1-libstdc++-v3/Makefile ] || exit 0; \
35569 $(MAKE) stage1-start; \
35570 fi; \
35571 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35572 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
35573 clean
35574@endif target-libstdc++-v3-bootstrap
35575
35576
35577.PHONY: all-stage2-target-libstdc++-v3 maybe-all-stage2-target-libstdc++-v3
35578.PHONY: clean-stage2-target-libstdc++-v3 maybe-clean-stage2-target-libstdc++-v3
35579maybe-all-stage2-target-libstdc++-v3:
35580maybe-clean-stage2-target-libstdc++-v3:
35581@if target-libstdc++-v3-bootstrap
35582maybe-all-stage2-target-libstdc++-v3: all-stage2-target-libstdc++-v3
35583all-stage2: all-stage2-target-libstdc++-v3
35584TARGET-stage2-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35585all-stage2-target-libstdc++-v3: configure-stage2-target-libstdc++-v3
35586 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
35587 @r=`${PWD_COMMAND}`; export r; \
35588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35589 TFLAGS="$(STAGE2_TFLAGS)"; \
35590 $(RAW_CXX_TARGET_EXPORTS) \
35591 \
35592 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35593 \
1b6c0831
L
35594 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35595 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35596 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35597 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35598 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35599 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35600 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35601 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35602 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
35603 $(TARGET-stage2-target-libstdc++-v3)
35604
35605maybe-clean-stage2-target-libstdc++-v3: clean-stage2-target-libstdc++-v3
35606clean-stage2: clean-stage2-target-libstdc++-v3
35607clean-stage2-target-libstdc++-v3:
35608 @if [ $(current_stage) = stage2 ]; then \
35609 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35610 else \
35611 [ -f $(TARGET_SUBDIR)/stage2-libstdc++-v3/Makefile ] || exit 0; \
35612 $(MAKE) stage2-start; \
35613 fi; \
35614 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35615 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35616@endif target-libstdc++-v3-bootstrap
35617
35618
35619.PHONY: all-stage3-target-libstdc++-v3 maybe-all-stage3-target-libstdc++-v3
35620.PHONY: clean-stage3-target-libstdc++-v3 maybe-clean-stage3-target-libstdc++-v3
35621maybe-all-stage3-target-libstdc++-v3:
35622maybe-clean-stage3-target-libstdc++-v3:
35623@if target-libstdc++-v3-bootstrap
35624maybe-all-stage3-target-libstdc++-v3: all-stage3-target-libstdc++-v3
35625all-stage3: all-stage3-target-libstdc++-v3
35626TARGET-stage3-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35627all-stage3-target-libstdc++-v3: configure-stage3-target-libstdc++-v3
35628 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
35629 @r=`${PWD_COMMAND}`; export r; \
35630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35631 TFLAGS="$(STAGE3_TFLAGS)"; \
35632 $(RAW_CXX_TARGET_EXPORTS) \
35633 \
35634 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35635 \
1b6c0831
L
35636 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35637 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35638 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35639 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35640 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35641 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35642 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35643 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35644 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
35645 $(TARGET-stage3-target-libstdc++-v3)
35646
35647maybe-clean-stage3-target-libstdc++-v3: clean-stage3-target-libstdc++-v3
35648clean-stage3: clean-stage3-target-libstdc++-v3
35649clean-stage3-target-libstdc++-v3:
35650 @if [ $(current_stage) = stage3 ]; then \
35651 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35652 else \
35653 [ -f $(TARGET_SUBDIR)/stage3-libstdc++-v3/Makefile ] || exit 0; \
35654 $(MAKE) stage3-start; \
35655 fi; \
35656 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35657 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35658@endif target-libstdc++-v3-bootstrap
35659
35660
35661.PHONY: all-stage4-target-libstdc++-v3 maybe-all-stage4-target-libstdc++-v3
35662.PHONY: clean-stage4-target-libstdc++-v3 maybe-clean-stage4-target-libstdc++-v3
35663maybe-all-stage4-target-libstdc++-v3:
35664maybe-clean-stage4-target-libstdc++-v3:
35665@if target-libstdc++-v3-bootstrap
35666maybe-all-stage4-target-libstdc++-v3: all-stage4-target-libstdc++-v3
35667all-stage4: all-stage4-target-libstdc++-v3
35668TARGET-stage4-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35669all-stage4-target-libstdc++-v3: configure-stage4-target-libstdc++-v3
35670 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
35671 @r=`${PWD_COMMAND}`; export r; \
35672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35673 TFLAGS="$(STAGE4_TFLAGS)"; \
35674 $(RAW_CXX_TARGET_EXPORTS) \
35675 \
35676 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35677 \
1b6c0831
L
35678 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35679 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35680 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35681 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35682 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35683 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35684 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35685 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35686 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831
L
35687 $(TARGET-stage4-target-libstdc++-v3)
35688
35689maybe-clean-stage4-target-libstdc++-v3: clean-stage4-target-libstdc++-v3
35690clean-stage4: clean-stage4-target-libstdc++-v3
35691clean-stage4-target-libstdc++-v3:
35692 @if [ $(current_stage) = stage4 ]; then \
35693 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35694 else \
35695 [ -f $(TARGET_SUBDIR)/stage4-libstdc++-v3/Makefile ] || exit 0; \
35696 $(MAKE) stage4-start; \
35697 fi; \
35698 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35699 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35700@endif target-libstdc++-v3-bootstrap
35701
35702
35703.PHONY: all-stageprofile-target-libstdc++-v3 maybe-all-stageprofile-target-libstdc++-v3
35704.PHONY: clean-stageprofile-target-libstdc++-v3 maybe-clean-stageprofile-target-libstdc++-v3
35705maybe-all-stageprofile-target-libstdc++-v3:
35706maybe-clean-stageprofile-target-libstdc++-v3:
35707@if target-libstdc++-v3-bootstrap
35708maybe-all-stageprofile-target-libstdc++-v3: all-stageprofile-target-libstdc++-v3
35709all-stageprofile: all-stageprofile-target-libstdc++-v3
35710TARGET-stageprofile-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35711all-stageprofile-target-libstdc++-v3: configure-stageprofile-target-libstdc++-v3
35712 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
35713 @r=`${PWD_COMMAND}`; export r; \
35714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35715 TFLAGS="$(STAGEprofile_TFLAGS)"; \
35716 $(RAW_CXX_TARGET_EXPORTS) \
35717 \
35718 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35719 \
1b6c0831
L
35720 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35721 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35722 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35723 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35724 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35725 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35726 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35727 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35728 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831
L
35729 $(TARGET-stageprofile-target-libstdc++-v3)
35730
35731maybe-clean-stageprofile-target-libstdc++-v3: clean-stageprofile-target-libstdc++-v3
35732clean-stageprofile: clean-stageprofile-target-libstdc++-v3
35733clean-stageprofile-target-libstdc++-v3:
35734 @if [ $(current_stage) = stageprofile ]; then \
35735 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35736 else \
35737 [ -f $(TARGET_SUBDIR)/stageprofile-libstdc++-v3/Makefile ] || exit 0; \
35738 $(MAKE) stageprofile-start; \
35739 fi; \
35740 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35741 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35742@endif target-libstdc++-v3-bootstrap
35743
35744
35745.PHONY: all-stagefeedback-target-libstdc++-v3 maybe-all-stagefeedback-target-libstdc++-v3
35746.PHONY: clean-stagefeedback-target-libstdc++-v3 maybe-clean-stagefeedback-target-libstdc++-v3
35747maybe-all-stagefeedback-target-libstdc++-v3:
35748maybe-clean-stagefeedback-target-libstdc++-v3:
35749@if target-libstdc++-v3-bootstrap
35750maybe-all-stagefeedback-target-libstdc++-v3: all-stagefeedback-target-libstdc++-v3
35751all-stagefeedback: all-stagefeedback-target-libstdc++-v3
35752TARGET-stagefeedback-target-libstdc++-v3 = $(TARGET-target-libstdc++-v3)
35753all-stagefeedback-target-libstdc++-v3: configure-stagefeedback-target-libstdc++-v3
35754 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
35755 @r=`${PWD_COMMAND}`; export r; \
35756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35757 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
35758 $(RAW_CXX_TARGET_EXPORTS) \
35759 \
35760 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
05a13254 35761 \
1b6c0831
L
35762 $(MAKE) $(BASE_FLAGS_TO_PASS) \
35763 CFLAGS="$(CFLAGS_FOR_TARGET)" \
35764 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
35765 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
35766 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
35767 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
35768 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
35769 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 35770 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831
L
35771 $(TARGET-stagefeedback-target-libstdc++-v3)
35772
35773maybe-clean-stagefeedback-target-libstdc++-v3: clean-stagefeedback-target-libstdc++-v3
35774clean-stagefeedback: clean-stagefeedback-target-libstdc++-v3
35775clean-stagefeedback-target-libstdc++-v3:
35776 @if [ $(current_stage) = stagefeedback ]; then \
35777 [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
35778 else \
35779 [ -f $(TARGET_SUBDIR)/stagefeedback-libstdc++-v3/Makefile ] || exit 0; \
35780 $(MAKE) stagefeedback-start; \
35781 fi; \
35782 cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35783 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
35784@endif target-libstdc++-v3-bootstrap
35785
35786
35787
35788
35789
35790
35791.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
35792maybe-check-target-libstdc++-v3:
35793@if target-libstdc++-v3
35794maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
35795
35796check-target-libstdc++-v3:
35797 @: $(MAKE); $(unstage)
35798 @r=`${PWD_COMMAND}`; export r; \
35799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35800 $(RAW_CXX_TARGET_EXPORTS) \
35801 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35802 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
35803
35804@endif target-libstdc++-v3
35805
35806.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
35807maybe-install-target-libstdc++-v3:
35808@if target-libstdc++-v3
35809maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
35810
35811install-target-libstdc++-v3: installdirs
35812 @: $(MAKE); $(unstage)
35813 @r=`${PWD_COMMAND}`; export r; \
35814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35815 $(RAW_CXX_TARGET_EXPORTS) \
35816 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35817 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
35818
35819@endif target-libstdc++-v3
35820
35821.PHONY: install-strip-target-libstdc++-v3 maybe-install-strip-target-libstdc++-v3
35822maybe-install-strip-target-libstdc++-v3:
35823@if target-libstdc++-v3
35824maybe-install-strip-target-libstdc++-v3: install-strip-target-libstdc++-v3
35825
35826install-strip-target-libstdc++-v3: installdirs
35827 @: $(MAKE); $(unstage)
35828 @r=`${PWD_COMMAND}`; export r; \
35829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35830 $(RAW_CXX_TARGET_EXPORTS) \
35831 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35832 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
35833
35834@endif target-libstdc++-v3
35835
35836# Other targets (info, dvi, pdf, etc.)
35837
35838.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
35839maybe-info-target-libstdc++-v3:
35840@if target-libstdc++-v3
35841maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
35842
35843info-target-libstdc++-v3: \
35844 configure-target-libstdc++-v3
35845 @: $(MAKE); $(unstage)
22121df0 35846 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35847 r=`${PWD_COMMAND}`; export r; \
35848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35849 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35850 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35851 for flag in $(EXTRA_TARGET_FLAGS); do \
35852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35853 done; \
35854 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35857 "RANLIB=$${RANLIB}" \
35858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35859 info) \
35860 || exit 1
35861
35862@endif target-libstdc++-v3
35863
35864.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
35865maybe-dvi-target-libstdc++-v3:
35866@if target-libstdc++-v3
35867maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
35868
35869dvi-target-libstdc++-v3: \
35870 configure-target-libstdc++-v3
35871 @: $(MAKE); $(unstage)
22121df0 35872 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35873 r=`${PWD_COMMAND}`; export r; \
35874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35875 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35876 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35877 for flag in $(EXTRA_TARGET_FLAGS); do \
35878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35879 done; \
35880 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35883 "RANLIB=$${RANLIB}" \
35884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35885 dvi) \
35886 || exit 1
35887
35888@endif target-libstdc++-v3
35889
35890.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
35891maybe-pdf-target-libstdc++-v3:
35892@if target-libstdc++-v3
35893maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
35894
35895pdf-target-libstdc++-v3: \
35896 configure-target-libstdc++-v3
35897 @: $(MAKE); $(unstage)
22121df0 35898 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35899 r=`${PWD_COMMAND}`; export r; \
35900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35901 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35902 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35903 for flag in $(EXTRA_TARGET_FLAGS); do \
35904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35905 done; \
35906 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35909 "RANLIB=$${RANLIB}" \
35910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35911 pdf) \
35912 || exit 1
35913
35914@endif target-libstdc++-v3
35915
35916.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
35917maybe-html-target-libstdc++-v3:
35918@if target-libstdc++-v3
35919maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
35920
35921html-target-libstdc++-v3: \
35922 configure-target-libstdc++-v3
35923 @: $(MAKE); $(unstage)
22121df0 35924 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35925 r=`${PWD_COMMAND}`; export r; \
35926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35927 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35928 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35929 for flag in $(EXTRA_TARGET_FLAGS); do \
35930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35931 done; \
35932 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35935 "RANLIB=$${RANLIB}" \
35936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35937 html) \
35938 || exit 1
35939
35940@endif target-libstdc++-v3
35941
35942.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
35943maybe-TAGS-target-libstdc++-v3:
35944@if target-libstdc++-v3
35945maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
35946
35947TAGS-target-libstdc++-v3: \
35948 configure-target-libstdc++-v3
35949 @: $(MAKE); $(unstage)
22121df0 35950 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35951 r=`${PWD_COMMAND}`; export r; \
35952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35953 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35954 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35955 for flag in $(EXTRA_TARGET_FLAGS); do \
35956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35957 done; \
35958 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35961 "RANLIB=$${RANLIB}" \
35962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35963 TAGS) \
35964 || exit 1
35965
35966@endif target-libstdc++-v3
35967
35968.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
35969maybe-install-info-target-libstdc++-v3:
35970@if target-libstdc++-v3
35971maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
35972
35973install-info-target-libstdc++-v3: \
35974 configure-target-libstdc++-v3 \
35975 info-target-libstdc++-v3
35976 @: $(MAKE); $(unstage)
22121df0 35977 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
35978 r=`${PWD_COMMAND}`; export r; \
35979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35980 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 35981 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
35982 for flag in $(EXTRA_TARGET_FLAGS); do \
35983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35984 done; \
35985 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
35986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35988 "RANLIB=$${RANLIB}" \
35989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
35990 install-info) \
35991 || exit 1
35992
35993@endif target-libstdc++-v3
35994
35995.PHONY: maybe-install-pdf-target-libstdc++-v3 install-pdf-target-libstdc++-v3
35996maybe-install-pdf-target-libstdc++-v3:
35997@if target-libstdc++-v3
35998maybe-install-pdf-target-libstdc++-v3: install-pdf-target-libstdc++-v3
35999
36000install-pdf-target-libstdc++-v3: \
36001 configure-target-libstdc++-v3 \
36002 pdf-target-libstdc++-v3
36003 @: $(MAKE); $(unstage)
22121df0 36004 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36005 r=`${PWD_COMMAND}`; export r; \
36006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36007 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36008 echo "Doing install-pdf in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36009 for flag in $(EXTRA_TARGET_FLAGS); do \
36010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36011 done; \
36012 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36015 "RANLIB=$${RANLIB}" \
36016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36017 install-pdf) \
36018 || exit 1
36019
36020@endif target-libstdc++-v3
36021
36022.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
36023maybe-install-html-target-libstdc++-v3:
36024@if target-libstdc++-v3
36025maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
36026
36027install-html-target-libstdc++-v3: \
36028 configure-target-libstdc++-v3 \
36029 html-target-libstdc++-v3
36030 @: $(MAKE); $(unstage)
22121df0 36031 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36032 r=`${PWD_COMMAND}`; export r; \
36033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36034 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36035 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36036 for flag in $(EXTRA_TARGET_FLAGS); do \
36037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36038 done; \
36039 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36042 "RANLIB=$${RANLIB}" \
36043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36044 install-html) \
36045 || exit 1
36046
36047@endif target-libstdc++-v3
36048
36049.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
36050maybe-installcheck-target-libstdc++-v3:
36051@if target-libstdc++-v3
36052maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
36053
36054installcheck-target-libstdc++-v3: \
36055 configure-target-libstdc++-v3
36056 @: $(MAKE); $(unstage)
22121df0 36057 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36058 r=`${PWD_COMMAND}`; export r; \
36059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36060 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36061 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36062 for flag in $(EXTRA_TARGET_FLAGS); do \
36063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36064 done; \
36065 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36068 "RANLIB=$${RANLIB}" \
36069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36070 installcheck) \
36071 || exit 1
36072
36073@endif target-libstdc++-v3
36074
36075.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
36076maybe-mostlyclean-target-libstdc++-v3:
36077@if target-libstdc++-v3
36078maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
36079
36080mostlyclean-target-libstdc++-v3:
36081 @: $(MAKE); $(unstage)
22121df0 36082 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36083 r=`${PWD_COMMAND}`; export r; \
36084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36085 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36086 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36087 for flag in $(EXTRA_TARGET_FLAGS); do \
36088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36089 done; \
36090 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36093 "RANLIB=$${RANLIB}" \
36094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36095 mostlyclean) \
36096 || exit 1
36097
36098@endif target-libstdc++-v3
36099
36100.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
36101maybe-clean-target-libstdc++-v3:
36102@if target-libstdc++-v3
36103maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
36104
36105clean-target-libstdc++-v3:
36106 @: $(MAKE); $(unstage)
22121df0 36107 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36108 r=`${PWD_COMMAND}`; export r; \
36109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36110 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36111 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36112 for flag in $(EXTRA_TARGET_FLAGS); do \
36113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36114 done; \
36115 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36118 "RANLIB=$${RANLIB}" \
36119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36120 clean) \
36121 || exit 1
36122
36123@endif target-libstdc++-v3
36124
36125.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
36126maybe-distclean-target-libstdc++-v3:
36127@if target-libstdc++-v3
36128maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
36129
36130distclean-target-libstdc++-v3:
36131 @: $(MAKE); $(unstage)
22121df0 36132 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36133 r=`${PWD_COMMAND}`; export r; \
36134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36135 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36136 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36137 for flag in $(EXTRA_TARGET_FLAGS); do \
36138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36139 done; \
36140 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36143 "RANLIB=$${RANLIB}" \
36144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36145 distclean) \
36146 || exit 1
36147
36148@endif target-libstdc++-v3
36149
36150.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
36151maybe-maintainer-clean-target-libstdc++-v3:
36152@if target-libstdc++-v3
36153maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
36154
36155maintainer-clean-target-libstdc++-v3:
36156 @: $(MAKE); $(unstage)
22121df0 36157 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0; \
1b6c0831
L
36158 r=`${PWD_COMMAND}`; export r; \
36159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36160 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36161 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3"; \
1b6c0831
L
36162 for flag in $(EXTRA_TARGET_FLAGS); do \
36163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36164 done; \
36165 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
36166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36168 "RANLIB=$${RANLIB}" \
36169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
36170 maintainer-clean) \
36171 || exit 1
36172
36173@endif target-libstdc++-v3
36174
36175
36176
36177
36178
36179.PHONY: configure-target-libsanitizer maybe-configure-target-libsanitizer
36180maybe-configure-target-libsanitizer:
36181@if gcc-bootstrap
36182configure-target-libsanitizer: stage_current
36183@endif gcc-bootstrap
36184@if target-libsanitizer
36185maybe-configure-target-libsanitizer: configure-target-libsanitizer
36186configure-target-libsanitizer:
36187 @r=`${PWD_COMMAND}`; export r; \
36188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36189 echo "Checking multilib configuration for libsanitizer..."; \
22121df0
L
36190 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
36191 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36192 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36193 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36194 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36195 else \
36196 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36197 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36198 fi; \
36199 else \
36200 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36201 fi; \
36202 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
22121df0 36203 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36204 $(RAW_CXX_TARGET_EXPORTS) \
36205 echo Configuring in $(TARGET_SUBDIR)/libsanitizer; \
36206 cd "$(TARGET_SUBDIR)/libsanitizer" || exit 1; \
36207 case $(srcdir) in \
36208 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36209 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36210 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36211 esac; \
36212 module_srcdir=libsanitizer; \
36213 rm -f no-such-file || : ; \
36214 CONFIG_SITE=no-such-file $(SHELL) \
36215 $$s/$$module_srcdir/configure \
36216 --srcdir=$${topdir}/$$module_srcdir \
36217 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36218 --target=${target_alias} \
36219 || exit 1
36220@endif target-libsanitizer
36221
36222
36223
36224.PHONY: configure-stage1-target-libsanitizer maybe-configure-stage1-target-libsanitizer
36225maybe-configure-stage1-target-libsanitizer:
36226@if target-libsanitizer-bootstrap
36227maybe-configure-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
36228configure-stage1-target-libsanitizer:
36229 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36230 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36231 @r=`${PWD_COMMAND}`; export r; \
36232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36233 TFLAGS="$(STAGE1_TFLAGS)"; \
36234 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36235 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36236 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36237 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36238 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36239 else \
36240 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36241 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36242 fi; \
36243 else \
36244 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36245 fi; \
36246 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36247 $(RAW_CXX_TARGET_EXPORTS) \
36248 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36249 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36250 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36251 echo Configuring stage 1 in $(TARGET_SUBDIR)/libsanitizer; \
36252 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36253 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36254 case $(srcdir) in \
36255 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36256 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36257 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36258 esac; \
36259 module_srcdir=libsanitizer; \
36260 $(SHELL) $$s/$$module_srcdir/configure \
36261 --srcdir=$${topdir}/$$module_srcdir \
36262 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36263 --target=${target_alias} \
36264 \
36265 $(STAGE1_CONFIGURE_FLAGS)
36266@endif target-libsanitizer-bootstrap
36267
36268.PHONY: configure-stage2-target-libsanitizer maybe-configure-stage2-target-libsanitizer
36269maybe-configure-stage2-target-libsanitizer:
36270@if target-libsanitizer-bootstrap
36271maybe-configure-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
36272configure-stage2-target-libsanitizer:
36273 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36274 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36275 @r=`${PWD_COMMAND}`; export r; \
36276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36277 TFLAGS="$(STAGE2_TFLAGS)"; \
36278 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36279 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36280 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36281 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36282 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36283 else \
36284 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36285 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36286 fi; \
36287 else \
36288 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36289 fi; \
36290 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36291 $(RAW_CXX_TARGET_EXPORTS) \
36292 \
36293 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36294 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36295 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36296 echo Configuring stage 2 in $(TARGET_SUBDIR)/libsanitizer; \
36297 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36298 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36299 case $(srcdir) in \
36300 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36301 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36302 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36303 esac; \
36304 module_srcdir=libsanitizer; \
36305 $(SHELL) $$s/$$module_srcdir/configure \
36306 --srcdir=$${topdir}/$$module_srcdir \
36307 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36308 --target=${target_alias} \
22121df0 36309 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36310 $(STAGE2_CONFIGURE_FLAGS)
36311@endif target-libsanitizer-bootstrap
36312
36313.PHONY: configure-stage3-target-libsanitizer maybe-configure-stage3-target-libsanitizer
36314maybe-configure-stage3-target-libsanitizer:
36315@if target-libsanitizer-bootstrap
36316maybe-configure-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
36317configure-stage3-target-libsanitizer:
36318 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36319 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36320 @r=`${PWD_COMMAND}`; export r; \
36321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36322 TFLAGS="$(STAGE3_TFLAGS)"; \
36323 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36324 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36325 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36326 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36327 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36328 else \
36329 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36330 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36331 fi; \
36332 else \
36333 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36334 fi; \
36335 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36336 $(RAW_CXX_TARGET_EXPORTS) \
36337 \
36338 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36339 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36340 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36341 echo Configuring stage 3 in $(TARGET_SUBDIR)/libsanitizer; \
36342 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36343 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36344 case $(srcdir) in \
36345 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36346 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36347 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36348 esac; \
36349 module_srcdir=libsanitizer; \
36350 $(SHELL) $$s/$$module_srcdir/configure \
36351 --srcdir=$${topdir}/$$module_srcdir \
36352 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36353 --target=${target_alias} \
22121df0 36354 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36355 $(STAGE3_CONFIGURE_FLAGS)
36356@endif target-libsanitizer-bootstrap
36357
36358.PHONY: configure-stage4-target-libsanitizer maybe-configure-stage4-target-libsanitizer
36359maybe-configure-stage4-target-libsanitizer:
36360@if target-libsanitizer-bootstrap
36361maybe-configure-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
36362configure-stage4-target-libsanitizer:
36363 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36364 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36365 @r=`${PWD_COMMAND}`; export r; \
36366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36367 TFLAGS="$(STAGE4_TFLAGS)"; \
36368 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36369 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36370 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36371 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36372 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36373 else \
36374 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36375 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36376 fi; \
36377 else \
36378 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36379 fi; \
36380 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36381 $(RAW_CXX_TARGET_EXPORTS) \
36382 \
36383 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36384 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36385 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36386 echo Configuring stage 4 in $(TARGET_SUBDIR)/libsanitizer; \
36387 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36388 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36389 case $(srcdir) in \
36390 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36391 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36392 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36393 esac; \
36394 module_srcdir=libsanitizer; \
36395 $(SHELL) $$s/$$module_srcdir/configure \
36396 --srcdir=$${topdir}/$$module_srcdir \
36397 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36398 --target=${target_alias} \
22121df0 36399 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36400 $(STAGE4_CONFIGURE_FLAGS)
36401@endif target-libsanitizer-bootstrap
36402
36403.PHONY: configure-stageprofile-target-libsanitizer maybe-configure-stageprofile-target-libsanitizer
36404maybe-configure-stageprofile-target-libsanitizer:
36405@if target-libsanitizer-bootstrap
36406maybe-configure-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
36407configure-stageprofile-target-libsanitizer:
36408 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36409 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36410 @r=`${PWD_COMMAND}`; export r; \
36411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36412 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36413 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36414 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36415 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36416 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36417 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36418 else \
36419 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36420 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36421 fi; \
36422 else \
36423 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36424 fi; \
36425 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36426 $(RAW_CXX_TARGET_EXPORTS) \
36427 \
36428 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36429 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36430 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36431 echo Configuring stage profile in $(TARGET_SUBDIR)/libsanitizer; \
36432 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36433 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36434 case $(srcdir) in \
36435 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36436 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36437 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36438 esac; \
36439 module_srcdir=libsanitizer; \
36440 $(SHELL) $$s/$$module_srcdir/configure \
36441 --srcdir=$${topdir}/$$module_srcdir \
36442 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36443 --target=${target_alias} \
22121df0 36444 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36445 $(STAGEprofile_CONFIGURE_FLAGS)
36446@endif target-libsanitizer-bootstrap
36447
36448.PHONY: configure-stagefeedback-target-libsanitizer maybe-configure-stagefeedback-target-libsanitizer
36449maybe-configure-stagefeedback-target-libsanitizer:
36450@if target-libsanitizer-bootstrap
36451maybe-configure-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
36452configure-stagefeedback-target-libsanitizer:
36453 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36454 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer
36455 @r=`${PWD_COMMAND}`; export r; \
36456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36457 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36458 echo "Checking multilib configuration for libsanitizer..."; \
22121df0 36459 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libsanitizer/multilib.tmp 2> /dev/null; \
1b6c0831
L
36460 if test -r $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36461 if cmp -s $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; then \
36462 rm -f $(TARGET_SUBDIR)/libsanitizer/multilib.tmp; \
36463 else \
36464 rm -f $(TARGET_SUBDIR)/libsanitizer/Makefile; \
36465 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36466 fi; \
36467 else \
36468 mv $(TARGET_SUBDIR)/libsanitizer/multilib.tmp $(TARGET_SUBDIR)/libsanitizer/multilib.out; \
36469 fi; \
36470 test ! -f $(TARGET_SUBDIR)/libsanitizer/Makefile || exit 0; \
36471 $(RAW_CXX_TARGET_EXPORTS) \
36472 \
36473 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
36474 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
36475 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
36476 echo Configuring stage feedback in $(TARGET_SUBDIR)/libsanitizer; \
36477 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libsanitizer; \
1b6c0831
L
36478 cd $(TARGET_SUBDIR)/libsanitizer || exit 1; \
36479 case $(srcdir) in \
36480 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36481 *) topdir=`echo $(TARGET_SUBDIR)/libsanitizer/ | \
36482 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
36483 esac; \
36484 module_srcdir=libsanitizer; \
36485 $(SHELL) $$s/$$module_srcdir/configure \
36486 --srcdir=$${topdir}/$$module_srcdir \
36487 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
36488 --target=${target_alias} \
22121df0 36489 --with-build-libsubdir=$(HOST_SUBDIR) \
1b6c0831
L
36490 $(STAGEfeedback_CONFIGURE_FLAGS)
36491@endif target-libsanitizer-bootstrap
36492
36493
36494
36495
36496
36497.PHONY: all-target-libsanitizer maybe-all-target-libsanitizer
36498maybe-all-target-libsanitizer:
36499@if gcc-bootstrap
36500all-target-libsanitizer: stage_current
36501@endif gcc-bootstrap
36502@if target-libsanitizer
36503TARGET-target-libsanitizer=all
36504maybe-all-target-libsanitizer: all-target-libsanitizer
36505all-target-libsanitizer: configure-target-libsanitizer
36506 @r=`${PWD_COMMAND}`; export r; \
36507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36508 $(RAW_CXX_TARGET_EXPORTS) \
36509 (cd $(TARGET_SUBDIR)/libsanitizer && \
36510 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36511 $(TARGET-target-libsanitizer))
36512@endif target-libsanitizer
36513
36514
36515
36516.PHONY: all-stage1-target-libsanitizer maybe-all-stage1-target-libsanitizer
36517.PHONY: clean-stage1-target-libsanitizer maybe-clean-stage1-target-libsanitizer
36518maybe-all-stage1-target-libsanitizer:
36519maybe-clean-stage1-target-libsanitizer:
36520@if target-libsanitizer-bootstrap
36521maybe-all-stage1-target-libsanitizer: all-stage1-target-libsanitizer
36522all-stage1: all-stage1-target-libsanitizer
36523TARGET-stage1-target-libsanitizer = $(TARGET-target-libsanitizer)
36524all-stage1-target-libsanitizer: configure-stage1-target-libsanitizer
36525 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
36526 @r=`${PWD_COMMAND}`; export r; \
36527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36528 TFLAGS="$(STAGE1_TFLAGS)"; \
36529 $(RAW_CXX_TARGET_EXPORTS) \
36530 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36531 \
1b6c0831
L
36532 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36533 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36534 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36535 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36536 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36537 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36538 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36539 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36540 \
05a13254 36541 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831
L
36542 $(TARGET-stage1-target-libsanitizer)
36543
36544maybe-clean-stage1-target-libsanitizer: clean-stage1-target-libsanitizer
36545clean-stage1: clean-stage1-target-libsanitizer
36546clean-stage1-target-libsanitizer:
36547 @if [ $(current_stage) = stage1 ]; then \
36548 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36549 else \
36550 [ -f $(TARGET_SUBDIR)/stage1-libsanitizer/Makefile ] || exit 0; \
36551 $(MAKE) stage1-start; \
36552 fi; \
36553 cd $(TARGET_SUBDIR)/libsanitizer && \
36554 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
36555 clean
36556@endif target-libsanitizer-bootstrap
36557
36558
36559.PHONY: all-stage2-target-libsanitizer maybe-all-stage2-target-libsanitizer
36560.PHONY: clean-stage2-target-libsanitizer maybe-clean-stage2-target-libsanitizer
36561maybe-all-stage2-target-libsanitizer:
36562maybe-clean-stage2-target-libsanitizer:
36563@if target-libsanitizer-bootstrap
36564maybe-all-stage2-target-libsanitizer: all-stage2-target-libsanitizer
36565all-stage2: all-stage2-target-libsanitizer
36566TARGET-stage2-target-libsanitizer = $(TARGET-target-libsanitizer)
36567all-stage2-target-libsanitizer: configure-stage2-target-libsanitizer
36568 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
36569 @r=`${PWD_COMMAND}`; export r; \
36570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36571 TFLAGS="$(STAGE2_TFLAGS)"; \
36572 $(RAW_CXX_TARGET_EXPORTS) \
36573 \
36574 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36575 \
1b6c0831
L
36576 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36577 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36578 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36579 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36580 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36581 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36582 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36583 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36584 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831
L
36585 $(TARGET-stage2-target-libsanitizer)
36586
36587maybe-clean-stage2-target-libsanitizer: clean-stage2-target-libsanitizer
36588clean-stage2: clean-stage2-target-libsanitizer
36589clean-stage2-target-libsanitizer:
36590 @if [ $(current_stage) = stage2 ]; then \
36591 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36592 else \
36593 [ -f $(TARGET_SUBDIR)/stage2-libsanitizer/Makefile ] || exit 0; \
36594 $(MAKE) stage2-start; \
36595 fi; \
36596 cd $(TARGET_SUBDIR)/libsanitizer && \
36597 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36598@endif target-libsanitizer-bootstrap
36599
36600
36601.PHONY: all-stage3-target-libsanitizer maybe-all-stage3-target-libsanitizer
36602.PHONY: clean-stage3-target-libsanitizer maybe-clean-stage3-target-libsanitizer
36603maybe-all-stage3-target-libsanitizer:
36604maybe-clean-stage3-target-libsanitizer:
36605@if target-libsanitizer-bootstrap
36606maybe-all-stage3-target-libsanitizer: all-stage3-target-libsanitizer
36607all-stage3: all-stage3-target-libsanitizer
36608TARGET-stage3-target-libsanitizer = $(TARGET-target-libsanitizer)
36609all-stage3-target-libsanitizer: configure-stage3-target-libsanitizer
36610 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
36611 @r=`${PWD_COMMAND}`; export r; \
36612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36613 TFLAGS="$(STAGE3_TFLAGS)"; \
36614 $(RAW_CXX_TARGET_EXPORTS) \
36615 \
36616 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36617 \
1b6c0831
L
36618 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36619 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36620 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36621 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36622 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36623 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36624 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36625 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36626 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831
L
36627 $(TARGET-stage3-target-libsanitizer)
36628
36629maybe-clean-stage3-target-libsanitizer: clean-stage3-target-libsanitizer
36630clean-stage3: clean-stage3-target-libsanitizer
36631clean-stage3-target-libsanitizer:
36632 @if [ $(current_stage) = stage3 ]; then \
36633 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
36634 else \
36635 [ -f $(TARGET_SUBDIR)/stage3-libsanitizer/Makefile ] || exit 0; \
36636 $(MAKE) stage3-start; \
36637 fi; \
36638 cd $(TARGET_SUBDIR)/libsanitizer && \
36639 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
36640@endif target-libsanitizer-bootstrap
36641
36642
36643.PHONY: all-stage4-target-libsanitizer maybe-all-stage4-target-libsanitizer
36644.PHONY: clean-stage4-target-libsanitizer maybe-clean-stage4-target-libsanitizer
36645maybe-all-stage4-target-libsanitizer:
36646maybe-clean-stage4-target-libsanitizer:
36647@if target-libsanitizer-bootstrap
36648maybe-all-stage4-target-libsanitizer: all-stage4-target-libsanitizer
36649all-stage4: all-stage4-target-libsanitizer
36650TARGET-stage4-target-libsanitizer = $(TARGET-target-libsanitizer)
36651all-stage4-target-libsanitizer: configure-stage4-target-libsanitizer
36652 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
36653 @r=`${PWD_COMMAND}`; export r; \
36654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36655 TFLAGS="$(STAGE4_TFLAGS)"; \
36656 $(RAW_CXX_TARGET_EXPORTS) \
36657 \
36658 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36659 \
1b6c0831
L
36660 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36661 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36662 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36663 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
e8a5fa9c
RW
36664 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36665 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36666 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36667 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36668 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 36669 $(TARGET-stage4-target-libsanitizer)
e8a5fa9c 36670
1b6c0831
L
36671maybe-clean-stage4-target-libsanitizer: clean-stage4-target-libsanitizer
36672clean-stage4: clean-stage4-target-libsanitizer
36673clean-stage4-target-libsanitizer:
e8a5fa9c 36674 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 36675 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36676 else \
1b6c0831 36677 [ -f $(TARGET_SUBDIR)/stage4-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36678 $(MAKE) stage4-start; \
36679 fi; \
1b6c0831 36680 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36681 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36682@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36683
36684
1b6c0831
L
36685.PHONY: all-stageprofile-target-libsanitizer maybe-all-stageprofile-target-libsanitizer
36686.PHONY: clean-stageprofile-target-libsanitizer maybe-clean-stageprofile-target-libsanitizer
36687maybe-all-stageprofile-target-libsanitizer:
36688maybe-clean-stageprofile-target-libsanitizer:
36689@if target-libsanitizer-bootstrap
36690maybe-all-stageprofile-target-libsanitizer: all-stageprofile-target-libsanitizer
36691all-stageprofile: all-stageprofile-target-libsanitizer
36692TARGET-stageprofile-target-libsanitizer = $(TARGET-target-libsanitizer)
36693all-stageprofile-target-libsanitizer: configure-stageprofile-target-libsanitizer
e8a5fa9c
RW
36694 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
36695 @r=`${PWD_COMMAND}`; export r; \
36696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36697 TFLAGS="$(STAGEprofile_TFLAGS)"; \
36698 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 36699 \
1b6c0831 36700 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36701 \
e8a5fa9c
RW
36702 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36703 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36704 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36705 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36706 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36707 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36708 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36709 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36710 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 36711 $(TARGET-stageprofile-target-libsanitizer)
e8a5fa9c 36712
1b6c0831
L
36713maybe-clean-stageprofile-target-libsanitizer: clean-stageprofile-target-libsanitizer
36714clean-stageprofile: clean-stageprofile-target-libsanitizer
36715clean-stageprofile-target-libsanitizer:
e8a5fa9c 36716 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 36717 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36718 else \
1b6c0831 36719 [ -f $(TARGET_SUBDIR)/stageprofile-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36720 $(MAKE) stageprofile-start; \
36721 fi; \
1b6c0831 36722 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36723 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36724@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36725
36726
1b6c0831
L
36727.PHONY: all-stagefeedback-target-libsanitizer maybe-all-stagefeedback-target-libsanitizer
36728.PHONY: clean-stagefeedback-target-libsanitizer maybe-clean-stagefeedback-target-libsanitizer
36729maybe-all-stagefeedback-target-libsanitizer:
36730maybe-clean-stagefeedback-target-libsanitizer:
36731@if target-libsanitizer-bootstrap
36732maybe-all-stagefeedback-target-libsanitizer: all-stagefeedback-target-libsanitizer
36733all-stagefeedback: all-stagefeedback-target-libsanitizer
36734TARGET-stagefeedback-target-libsanitizer = $(TARGET-target-libsanitizer)
36735all-stagefeedback-target-libsanitizer: configure-stagefeedback-target-libsanitizer
e8a5fa9c
RW
36736 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
36737 @r=`${PWD_COMMAND}`; export r; \
36738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36739 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
36740 $(RAW_CXX_TARGET_EXPORTS) \
1f53ca9a 36741 \
1b6c0831 36742 cd $(TARGET_SUBDIR)/libsanitizer && \
05a13254 36743 \
e8a5fa9c
RW
36744 $(MAKE) $(BASE_FLAGS_TO_PASS) \
36745 CFLAGS="$(CFLAGS_FOR_TARGET)" \
36746 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
36747 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
36748 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
36749 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
36750 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
36751 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 36752 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 36753 $(TARGET-stagefeedback-target-libsanitizer)
e8a5fa9c 36754
1b6c0831
L
36755maybe-clean-stagefeedback-target-libsanitizer: clean-stagefeedback-target-libsanitizer
36756clean-stagefeedback: clean-stagefeedback-target-libsanitizer
36757clean-stagefeedback-target-libsanitizer:
e8a5fa9c 36758 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 36759 [ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
e8a5fa9c 36760 else \
1b6c0831 36761 [ -f $(TARGET_SUBDIR)/stagefeedback-libsanitizer/Makefile ] || exit 0; \
e8a5fa9c
RW
36762 $(MAKE) stagefeedback-start; \
36763 fi; \
1b6c0831 36764 cd $(TARGET_SUBDIR)/libsanitizer && \
b3676d82 36765 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
1b6c0831 36766@endif target-libsanitizer-bootstrap
e8a5fa9c
RW
36767
36768
36769
36770
d545f33b
PB
36771
36772
1b6c0831
L
36773.PHONY: check-target-libsanitizer maybe-check-target-libsanitizer
36774maybe-check-target-libsanitizer:
36775@if target-libsanitizer
36776maybe-check-target-libsanitizer: check-target-libsanitizer
3866be5d 36777
1b6c0831 36778check-target-libsanitizer:
0aed8855 36779 @: $(MAKE); $(unstage)
b40e3958
L
36780 @r=`${PWD_COMMAND}`; export r; \
36781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36782 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36783 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 36784 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
3866be5d 36785
1b6c0831 36786@endif target-libsanitizer
3866be5d 36787
1b6c0831
L
36788.PHONY: install-target-libsanitizer maybe-install-target-libsanitizer
36789maybe-install-target-libsanitizer:
36790@if target-libsanitizer
36791maybe-install-target-libsanitizer: install-target-libsanitizer
16ae0395 36792
1b6c0831 36793install-target-libsanitizer: installdirs
0aed8855 36794 @: $(MAKE); $(unstage)
b40e3958
L
36795 @r=`${PWD_COMMAND}`; export r; \
36796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36797 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36798 (cd $(TARGET_SUBDIR)/libsanitizer && \
7ffa0b57 36799 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 36800
1b6c0831 36801@endif target-libsanitizer
e2b9e2dc 36802
1b6c0831
L
36803.PHONY: install-strip-target-libsanitizer maybe-install-strip-target-libsanitizer
36804maybe-install-strip-target-libsanitizer:
36805@if target-libsanitizer
36806maybe-install-strip-target-libsanitizer: install-strip-target-libsanitizer
9b980aa1 36807
1b6c0831 36808install-strip-target-libsanitizer: installdirs
9b980aa1
RW
36809 @: $(MAKE); $(unstage)
36810 @r=`${PWD_COMMAND}`; export r; \
36811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36812 $(RAW_CXX_TARGET_EXPORTS) \
1b6c0831 36813 (cd $(TARGET_SUBDIR)/libsanitizer && \
9b980aa1
RW
36814 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
36815
1b6c0831 36816@endif target-libsanitizer
9b980aa1 36817
56a8fe78 36818# Other targets (info, dvi, pdf, etc.)
3866be5d 36819
1b6c0831
L
36820.PHONY: maybe-info-target-libsanitizer info-target-libsanitizer
36821maybe-info-target-libsanitizer:
36822@if target-libsanitizer
36823maybe-info-target-libsanitizer: info-target-libsanitizer
3866be5d 36824
1b6c0831
L
36825info-target-libsanitizer: \
36826 configure-target-libsanitizer
0aed8855 36827 @: $(MAKE); $(unstage)
22121df0 36828 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36829 r=`${PWD_COMMAND}`; export r; \
b40e3958 36830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36831 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36832 echo "Doing info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36833 for flag in $(EXTRA_TARGET_FLAGS); do \
36834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36835 done; \
1b6c0831 36836 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36839 "RANLIB=$${RANLIB}" \
0c24b341 36840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36841 info) \
4fa63067 36842 || exit 1
3866be5d 36843
1b6c0831 36844@endif target-libsanitizer
3866be5d 36845
1b6c0831
L
36846.PHONY: maybe-dvi-target-libsanitizer dvi-target-libsanitizer
36847maybe-dvi-target-libsanitizer:
36848@if target-libsanitizer
36849maybe-dvi-target-libsanitizer: dvi-target-libsanitizer
16ae0395 36850
1b6c0831
L
36851dvi-target-libsanitizer: \
36852 configure-target-libsanitizer
0aed8855 36853 @: $(MAKE); $(unstage)
22121df0 36854 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36855 r=`${PWD_COMMAND}`; export r; \
b40e3958 36856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36857 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36858 echo "Doing dvi in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36859 for flag in $(EXTRA_TARGET_FLAGS); do \
36860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36861 done; \
1b6c0831 36862 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36865 "RANLIB=$${RANLIB}" \
0c24b341 36866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36867 dvi) \
4fa63067 36868 || exit 1
3866be5d 36869
1b6c0831 36870@endif target-libsanitizer
3866be5d 36871
1b6c0831
L
36872.PHONY: maybe-pdf-target-libsanitizer pdf-target-libsanitizer
36873maybe-pdf-target-libsanitizer:
36874@if target-libsanitizer
36875maybe-pdf-target-libsanitizer: pdf-target-libsanitizer
56a8fe78 36876
1b6c0831
L
36877pdf-target-libsanitizer: \
36878 configure-target-libsanitizer
56a8fe78 36879 @: $(MAKE); $(unstage)
22121df0 36880 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
56a8fe78
DD
36881 r=`${PWD_COMMAND}`; export r; \
36882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36883 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36884 echo "Doing pdf in $(TARGET_SUBDIR)/libsanitizer"; \
56a8fe78
DD
36885 for flag in $(EXTRA_TARGET_FLAGS); do \
36886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36887 done; \
1b6c0831 36888 (cd $(TARGET_SUBDIR)/libsanitizer && \
56a8fe78
DD
36889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36891 "RANLIB=$${RANLIB}" \
0c24b341 36892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
36893 pdf) \
36894 || exit 1
36895
1b6c0831 36896@endif target-libsanitizer
56a8fe78 36897
1b6c0831
L
36898.PHONY: maybe-html-target-libsanitizer html-target-libsanitizer
36899maybe-html-target-libsanitizer:
36900@if target-libsanitizer
36901maybe-html-target-libsanitizer: html-target-libsanitizer
6d389afc 36902
1b6c0831
L
36903html-target-libsanitizer: \
36904 configure-target-libsanitizer
0aed8855 36905 @: $(MAKE); $(unstage)
22121df0 36906 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
6d389afc
MS
36907 r=`${PWD_COMMAND}`; export r; \
36908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 36909 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36910 echo "Doing html in $(TARGET_SUBDIR)/libsanitizer"; \
6d389afc
MS
36911 for flag in $(EXTRA_TARGET_FLAGS); do \
36912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36913 done; \
1b6c0831 36914 (cd $(TARGET_SUBDIR)/libsanitizer && \
6d389afc
MS
36915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36917 "RANLIB=$${RANLIB}" \
0c24b341 36918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
36919 html) \
36920 || exit 1
36921
1b6c0831 36922@endif target-libsanitizer
6d389afc 36923
1b6c0831
L
36924.PHONY: maybe-TAGS-target-libsanitizer TAGS-target-libsanitizer
36925maybe-TAGS-target-libsanitizer:
36926@if target-libsanitizer
36927maybe-TAGS-target-libsanitizer: TAGS-target-libsanitizer
4fa63067 36928
1b6c0831
L
36929TAGS-target-libsanitizer: \
36930 configure-target-libsanitizer
0aed8855 36931 @: $(MAKE); $(unstage)
22121df0 36932 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
36933 r=`${PWD_COMMAND}`; export r; \
36934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36935 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36936 echo "Doing TAGS in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36937 for flag in $(EXTRA_TARGET_FLAGS); do \
36938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36939 done; \
1b6c0831 36940 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36943 "RANLIB=$${RANLIB}" \
0c24b341 36944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36945 TAGS) \
e2b9e2dc
NN
36946 || exit 1
36947
1b6c0831 36948@endif target-libsanitizer
3866be5d 36949
1b6c0831
L
36950.PHONY: maybe-install-info-target-libsanitizer install-info-target-libsanitizer
36951maybe-install-info-target-libsanitizer:
36952@if target-libsanitizer
36953maybe-install-info-target-libsanitizer: install-info-target-libsanitizer
3866be5d 36954
1b6c0831
L
36955install-info-target-libsanitizer: \
36956 configure-target-libsanitizer \
36957 info-target-libsanitizer
0aed8855 36958 @: $(MAKE); $(unstage)
22121df0 36959 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 36960 r=`${PWD_COMMAND}`; export r; \
b40e3958 36961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 36962 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36963 echo "Doing install-info in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
36964 for flag in $(EXTRA_TARGET_FLAGS); do \
36965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36966 done; \
1b6c0831 36967 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
36968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36970 "RANLIB=$${RANLIB}" \
0c24b341 36971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 36972 install-info) \
4fa63067 36973 || exit 1
3866be5d 36974
1b6c0831 36975@endif target-libsanitizer
3866be5d 36976
1b6c0831
L
36977.PHONY: maybe-install-pdf-target-libsanitizer install-pdf-target-libsanitizer
36978maybe-install-pdf-target-libsanitizer:
36979@if target-libsanitizer
36980maybe-install-pdf-target-libsanitizer: install-pdf-target-libsanitizer
a3ca38d2 36981
1b6c0831
L
36982install-pdf-target-libsanitizer: \
36983 configure-target-libsanitizer \
36984 pdf-target-libsanitizer
a3ca38d2 36985 @: $(MAKE); $(unstage)
22121df0 36986 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
a3ca38d2
DD
36987 r=`${PWD_COMMAND}`; export r; \
36988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36989 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 36990 echo "Doing install-pdf in $(TARGET_SUBDIR)/libsanitizer"; \
a3ca38d2
DD
36991 for flag in $(EXTRA_TARGET_FLAGS); do \
36992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36993 done; \
1b6c0831 36994 (cd $(TARGET_SUBDIR)/libsanitizer && \
a3ca38d2
DD
36995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36997 "RANLIB=$${RANLIB}" \
0c24b341 36998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
36999 install-pdf) \
37000 || exit 1
37001
1b6c0831 37002@endif target-libsanitizer
a3ca38d2 37003
1b6c0831
L
37004.PHONY: maybe-install-html-target-libsanitizer install-html-target-libsanitizer
37005maybe-install-html-target-libsanitizer:
37006@if target-libsanitizer
37007maybe-install-html-target-libsanitizer: install-html-target-libsanitizer
108a6f8e 37008
1b6c0831
L
37009install-html-target-libsanitizer: \
37010 configure-target-libsanitizer \
37011 html-target-libsanitizer
108a6f8e 37012 @: $(MAKE); $(unstage)
22121df0 37013 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
108a6f8e
CD
37014 r=`${PWD_COMMAND}`; export r; \
37015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37016 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37017 echo "Doing install-html in $(TARGET_SUBDIR)/libsanitizer"; \
108a6f8e
CD
37018 for flag in $(EXTRA_TARGET_FLAGS); do \
37019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37020 done; \
1b6c0831 37021 (cd $(TARGET_SUBDIR)/libsanitizer && \
108a6f8e
CD
37022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37024 "RANLIB=$${RANLIB}" \
0c24b341 37025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
37026 install-html) \
37027 || exit 1
37028
1b6c0831 37029@endif target-libsanitizer
108a6f8e 37030
1b6c0831
L
37031.PHONY: maybe-installcheck-target-libsanitizer installcheck-target-libsanitizer
37032maybe-installcheck-target-libsanitizer:
37033@if target-libsanitizer
37034maybe-installcheck-target-libsanitizer: installcheck-target-libsanitizer
16ae0395 37035
1b6c0831
L
37036installcheck-target-libsanitizer: \
37037 configure-target-libsanitizer
0aed8855 37038 @: $(MAKE); $(unstage)
22121df0 37039 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37040 r=`${PWD_COMMAND}`; export r; \
b40e3958 37041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37042 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37043 echo "Doing installcheck in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37044 for flag in $(EXTRA_TARGET_FLAGS); do \
37045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37046 done; \
1b6c0831 37047 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37050 "RANLIB=$${RANLIB}" \
0c24b341 37051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37052 installcheck) \
4fa63067 37053 || exit 1
3866be5d 37054
1b6c0831 37055@endif target-libsanitizer
3866be5d 37056
1b6c0831
L
37057.PHONY: maybe-mostlyclean-target-libsanitizer mostlyclean-target-libsanitizer
37058maybe-mostlyclean-target-libsanitizer:
37059@if target-libsanitizer
37060maybe-mostlyclean-target-libsanitizer: mostlyclean-target-libsanitizer
4fa63067 37061
1b6c0831 37062mostlyclean-target-libsanitizer:
0aed8855 37063 @: $(MAKE); $(unstage)
22121df0 37064 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
b40e3958
L
37065 r=`${PWD_COMMAND}`; export r; \
37066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37067 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37068 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37069 for flag in $(EXTRA_TARGET_FLAGS); do \
37070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37071 done; \
1b6c0831 37072 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37075 "RANLIB=$${RANLIB}" \
0c24b341 37076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37077 mostlyclean) \
e2b9e2dc
NN
37078 || exit 1
37079
1b6c0831 37080@endif target-libsanitizer
4fa63067 37081
1b6c0831
L
37082.PHONY: maybe-clean-target-libsanitizer clean-target-libsanitizer
37083maybe-clean-target-libsanitizer:
37084@if target-libsanitizer
37085maybe-clean-target-libsanitizer: clean-target-libsanitizer
4fa63067 37086
1b6c0831 37087clean-target-libsanitizer:
0aed8855 37088 @: $(MAKE); $(unstage)
22121df0 37089 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37090 r=`${PWD_COMMAND}`; export r; \
b40e3958 37091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37092 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37093 echo "Doing clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37094 for flag in $(EXTRA_TARGET_FLAGS); do \
37095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37096 done; \
1b6c0831 37097 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37100 "RANLIB=$${RANLIB}" \
0c24b341 37101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37102 clean) \
4fa63067 37103 || exit 1
3866be5d 37104
1b6c0831 37105@endif target-libsanitizer
3866be5d 37106
1b6c0831
L
37107.PHONY: maybe-distclean-target-libsanitizer distclean-target-libsanitizer
37108maybe-distclean-target-libsanitizer:
37109@if target-libsanitizer
37110maybe-distclean-target-libsanitizer: distclean-target-libsanitizer
4fa63067 37111
1b6c0831 37112distclean-target-libsanitizer:
0aed8855 37113 @: $(MAKE); $(unstage)
22121df0 37114 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37115 r=`${PWD_COMMAND}`; export r; \
b40e3958 37116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37117 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37118 echo "Doing distclean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37119 for flag in $(EXTRA_TARGET_FLAGS); do \
37120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37121 done; \
1b6c0831 37122 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37125 "RANLIB=$${RANLIB}" \
0c24b341 37126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37127 distclean) \
4fa63067 37128 || exit 1
3866be5d 37129
1b6c0831 37130@endif target-libsanitizer
3866be5d 37131
1b6c0831
L
37132.PHONY: maybe-maintainer-clean-target-libsanitizer maintainer-clean-target-libsanitizer
37133maybe-maintainer-clean-target-libsanitizer:
37134@if target-libsanitizer
37135maybe-maintainer-clean-target-libsanitizer: maintainer-clean-target-libsanitizer
16ae0395 37136
1b6c0831 37137maintainer-clean-target-libsanitizer:
0aed8855 37138 @: $(MAKE); $(unstage)
22121df0 37139 @[ -f $(TARGET_SUBDIR)/libsanitizer/Makefile ] || exit 0; \
4fa63067 37140 r=`${PWD_COMMAND}`; export r; \
b40e3958 37141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 37142 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 37143 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libsanitizer"; \
4fa63067
NN
37144 for flag in $(EXTRA_TARGET_FLAGS); do \
37145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37146 done; \
1b6c0831 37147 (cd $(TARGET_SUBDIR)/libsanitizer && \
4fa63067
NN
37148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37150 "RANLIB=$${RANLIB}" \
0c24b341 37151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 37152 maintainer-clean) \
4fa63067 37153 || exit 1
3866be5d 37154
1b6c0831 37155@endif target-libsanitizer
3866be5d 37156
4fa63067 37157
4fa63067 37158
a7254363
PB
37159
37160
1b6c0831
L
37161.PHONY: configure-target-libmpx maybe-configure-target-libmpx
37162maybe-configure-target-libmpx:
5286fdef 37163@if gcc-bootstrap
1b6c0831 37164configure-target-libmpx: stage_current
5286fdef 37165@endif gcc-bootstrap
1b6c0831
L
37166@if target-libmpx
37167maybe-configure-target-libmpx: configure-target-libmpx
37168configure-target-libmpx:
5286fdef
L
37169 @r=`${PWD_COMMAND}`; export r; \
37170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37171 echo "Checking multilib configuration for libmpx..."; \
22121df0
L
37172 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
37173 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37174 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37175 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37176 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5286fdef 37177 else \
1b6c0831
L
37178 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37179 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef
L
37180 fi; \
37181 else \
1b6c0831 37182 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5286fdef 37183 fi; \
1b6c0831 37184 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
22121df0 37185 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831
L
37186 $(NORMAL_TARGET_EXPORTS) \
37187 echo Configuring in $(TARGET_SUBDIR)/libmpx; \
37188 cd "$(TARGET_SUBDIR)/libmpx" || exit 1; \
5286fdef
L
37189 case $(srcdir) in \
37190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37191 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5286fdef
L
37192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37193 esac; \
1b6c0831 37194 module_srcdir=libmpx; \
5286fdef 37195 rm -f no-such-file || : ; \
1b6c0831
L
37196 CONFIG_SITE=no-such-file $(SHELL) \
37197 $$s/$$module_srcdir/configure \
37198 --srcdir=$${topdir}/$$module_srcdir \
5286fdef 37199 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37200 --target=${target_alias} \
5286fdef 37201 || exit 1
1b6c0831 37202@endif target-libmpx
5286fdef
L
37203
37204
37205
1b6c0831
L
37206.PHONY: configure-stage1-target-libmpx maybe-configure-stage1-target-libmpx
37207maybe-configure-stage1-target-libmpx:
37208@if target-libmpx-bootstrap
37209maybe-configure-stage1-target-libmpx: configure-stage1-target-libmpx
37210configure-stage1-target-libmpx:
5eb08693 37211 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
1b6c0831 37212 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37213 @r=`${PWD_COMMAND}`; export r; \
37214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37215 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831 37216 echo "Checking multilib configuration for libmpx..."; \
22121df0 37217 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37218 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37219 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37220 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37221 else \
1b6c0831
L
37222 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37223 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37224 fi; \
37225 else \
1b6c0831 37226 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37227 fi; \
1b6c0831
L
37228 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37229 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37230 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37231 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37232 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37233 echo Configuring stage 1 in $(TARGET_SUBDIR)/libmpx; \
37234 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37235 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37236 case $(srcdir) in \
37237 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37238 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37239 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37240 esac; \
1b6c0831
L
37241 module_srcdir=libmpx; \
37242 $(SHELL) $$s/$$module_srcdir/configure \
37243 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37244 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
37245 --target=${target_alias} \
37246 \
5eb08693 37247 $(STAGE1_CONFIGURE_FLAGS)
1b6c0831 37248@endif target-libmpx-bootstrap
5eb08693 37249
1b6c0831
L
37250.PHONY: configure-stage2-target-libmpx maybe-configure-stage2-target-libmpx
37251maybe-configure-stage2-target-libmpx:
37252@if target-libmpx-bootstrap
37253maybe-configure-stage2-target-libmpx: configure-stage2-target-libmpx
37254configure-stage2-target-libmpx:
5eb08693 37255 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
1b6c0831 37256 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37257 @r=`${PWD_COMMAND}`; export r; \
37258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37259 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 37260 echo "Checking multilib configuration for libmpx..."; \
22121df0 37261 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37262 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37263 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37264 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37265 else \
1b6c0831
L
37266 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37267 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37268 fi; \
37269 else \
1b6c0831 37270 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37271 fi; \
1b6c0831
L
37272 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37273 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37274 \
37275 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37276 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37277 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37278 echo Configuring stage 2 in $(TARGET_SUBDIR)/libmpx; \
37279 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37280 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37281 case $(srcdir) in \
37282 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37283 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37284 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37285 esac; \
1b6c0831
L
37286 module_srcdir=libmpx; \
37287 $(SHELL) $$s/$$module_srcdir/configure \
37288 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37289 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37290 --target=${target_alias} \
22121df0 37291 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37292 $(STAGE2_CONFIGURE_FLAGS)
1b6c0831 37293@endif target-libmpx-bootstrap
5eb08693 37294
1b6c0831
L
37295.PHONY: configure-stage3-target-libmpx maybe-configure-stage3-target-libmpx
37296maybe-configure-stage3-target-libmpx:
37297@if target-libmpx-bootstrap
37298maybe-configure-stage3-target-libmpx: configure-stage3-target-libmpx
37299configure-stage3-target-libmpx:
5eb08693 37300 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
1b6c0831 37301 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37302 @r=`${PWD_COMMAND}`; export r; \
37303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37304 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 37305 echo "Checking multilib configuration for libmpx..."; \
22121df0 37306 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37307 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37308 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37309 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37310 else \
1b6c0831
L
37311 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37312 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37313 fi; \
37314 else \
1b6c0831 37315 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37316 fi; \
1b6c0831
L
37317 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37318 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37319 \
37320 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37321 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37322 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37323 echo Configuring stage 3 in $(TARGET_SUBDIR)/libmpx; \
37324 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37325 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37326 case $(srcdir) in \
37327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37328 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37330 esac; \
1b6c0831
L
37331 module_srcdir=libmpx; \
37332 $(SHELL) $$s/$$module_srcdir/configure \
37333 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37334 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37335 --target=${target_alias} \
22121df0 37336 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37337 $(STAGE3_CONFIGURE_FLAGS)
1b6c0831 37338@endif target-libmpx-bootstrap
5eb08693 37339
1b6c0831
L
37340.PHONY: configure-stage4-target-libmpx maybe-configure-stage4-target-libmpx
37341maybe-configure-stage4-target-libmpx:
37342@if target-libmpx-bootstrap
37343maybe-configure-stage4-target-libmpx: configure-stage4-target-libmpx
37344configure-stage4-target-libmpx:
5eb08693 37345 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
1b6c0831 37346 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37347 @r=`${PWD_COMMAND}`; export r; \
37348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37349 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 37350 echo "Checking multilib configuration for libmpx..."; \
22121df0 37351 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37352 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37353 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37354 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37355 else \
1b6c0831
L
37356 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37357 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37358 fi; \
37359 else \
1b6c0831 37360 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37361 fi; \
1b6c0831
L
37362 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37363 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37364 \
37365 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37366 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37367 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37368 echo Configuring stage 4 in $(TARGET_SUBDIR)/libmpx; \
37369 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37370 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37371 case $(srcdir) in \
37372 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37373 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37374 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37375 esac; \
1b6c0831
L
37376 module_srcdir=libmpx; \
37377 $(SHELL) $$s/$$module_srcdir/configure \
37378 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37379 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37380 --target=${target_alias} \
22121df0 37381 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37382 $(STAGE4_CONFIGURE_FLAGS)
1b6c0831 37383@endif target-libmpx-bootstrap
5eb08693 37384
1b6c0831
L
37385.PHONY: configure-stageprofile-target-libmpx maybe-configure-stageprofile-target-libmpx
37386maybe-configure-stageprofile-target-libmpx:
37387@if target-libmpx-bootstrap
37388maybe-configure-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
37389configure-stageprofile-target-libmpx:
5eb08693 37390 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
1b6c0831 37391 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37392 @r=`${PWD_COMMAND}`; export r; \
37393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37394 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 37395 echo "Checking multilib configuration for libmpx..."; \
22121df0 37396 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37397 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37398 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37399 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37400 else \
1b6c0831
L
37401 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37402 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37403 fi; \
37404 else \
1b6c0831 37405 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37406 fi; \
1b6c0831
L
37407 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37408 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37409 \
37410 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37411 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37412 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37413 echo Configuring stage profile in $(TARGET_SUBDIR)/libmpx; \
37414 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37415 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37416 case $(srcdir) in \
37417 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37418 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37419 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37420 esac; \
1b6c0831
L
37421 module_srcdir=libmpx; \
37422 $(SHELL) $$s/$$module_srcdir/configure \
37423 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37424 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37425 --target=${target_alias} \
22121df0 37426 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37427 $(STAGEprofile_CONFIGURE_FLAGS)
1b6c0831 37428@endif target-libmpx-bootstrap
5eb08693 37429
1b6c0831
L
37430.PHONY: configure-stagefeedback-target-libmpx maybe-configure-stagefeedback-target-libmpx
37431maybe-configure-stagefeedback-target-libmpx:
37432@if target-libmpx-bootstrap
37433maybe-configure-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
37434configure-stagefeedback-target-libmpx:
5eb08693 37435 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
1b6c0831 37436 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx
5eb08693
L
37437 @r=`${PWD_COMMAND}`; export r; \
37438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37439 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 37440 echo "Checking multilib configuration for libmpx..."; \
22121df0 37441 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmpx/multilib.tmp 2> /dev/null; \
1b6c0831
L
37442 if test -r $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37443 if cmp -s $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; then \
37444 rm -f $(TARGET_SUBDIR)/libmpx/multilib.tmp; \
5eb08693 37445 else \
1b6c0831
L
37446 rm -f $(TARGET_SUBDIR)/libmpx/Makefile; \
37447 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693
L
37448 fi; \
37449 else \
1b6c0831 37450 mv $(TARGET_SUBDIR)/libmpx/multilib.tmp $(TARGET_SUBDIR)/libmpx/multilib.out; \
5eb08693 37451 fi; \
1b6c0831
L
37452 test ! -f $(TARGET_SUBDIR)/libmpx/Makefile || exit 0; \
37453 $(NORMAL_TARGET_EXPORTS) \
5eb08693
L
37454 \
37455 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
37456 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
37457 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
37458 echo Configuring stage feedback in $(TARGET_SUBDIR)/libmpx; \
37459 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmpx; \
1b6c0831 37460 cd $(TARGET_SUBDIR)/libmpx || exit 1; \
5eb08693
L
37461 case $(srcdir) in \
37462 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
1b6c0831 37463 *) topdir=`echo $(TARGET_SUBDIR)/libmpx/ | \
5eb08693
L
37464 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
37465 esac; \
1b6c0831
L
37466 module_srcdir=libmpx; \
37467 $(SHELL) $$s/$$module_srcdir/configure \
37468 --srcdir=$${topdir}/$$module_srcdir \
5eb08693 37469 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 37470 --target=${target_alias} \
22121df0 37471 --with-build-libsubdir=$(HOST_SUBDIR) \
5eb08693 37472 $(STAGEfeedback_CONFIGURE_FLAGS)
1b6c0831 37473@endif target-libmpx-bootstrap
5eb08693
L
37474
37475
37476
5286fdef
L
37477
37478
1b6c0831
L
37479.PHONY: all-target-libmpx maybe-all-target-libmpx
37480maybe-all-target-libmpx:
5286fdef 37481@if gcc-bootstrap
1b6c0831 37482all-target-libmpx: stage_current
5286fdef 37483@endif gcc-bootstrap
1b6c0831
L
37484@if target-libmpx
37485TARGET-target-libmpx=all
37486maybe-all-target-libmpx: all-target-libmpx
37487all-target-libmpx: configure-target-libmpx
5286fdef
L
37488 @r=`${PWD_COMMAND}`; export r; \
37489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37490 $(NORMAL_TARGET_EXPORTS) \
37491 (cd $(TARGET_SUBDIR)/libmpx && \
37492 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
37493 $(TARGET-target-libmpx))
37494@endif target-libmpx
5286fdef
L
37495
37496
37497
1b6c0831
L
37498.PHONY: all-stage1-target-libmpx maybe-all-stage1-target-libmpx
37499.PHONY: clean-stage1-target-libmpx maybe-clean-stage1-target-libmpx
37500maybe-all-stage1-target-libmpx:
37501maybe-clean-stage1-target-libmpx:
37502@if target-libmpx-bootstrap
37503maybe-all-stage1-target-libmpx: all-stage1-target-libmpx
37504all-stage1: all-stage1-target-libmpx
37505TARGET-stage1-target-libmpx = $(TARGET-target-libmpx)
37506all-stage1-target-libmpx: configure-stage1-target-libmpx
5eb08693
L
37507 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
37508 @r=`${PWD_COMMAND}`; export r; \
37509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37510 TFLAGS="$(STAGE1_TFLAGS)"; \
1b6c0831
L
37511 $(NORMAL_TARGET_EXPORTS) \
37512 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37513 \
5eb08693
L
37514 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37515 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37516 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37517 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37518 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37519 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37520 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37521 $(EXTRA_TARGET_FLAGS) \
5eb08693 37522 \
05a13254 37523 TFLAGS="$(STAGE1_TFLAGS)" \
1b6c0831 37524 $(TARGET-stage1-target-libmpx)
5eb08693 37525
1b6c0831
L
37526maybe-clean-stage1-target-libmpx: clean-stage1-target-libmpx
37527clean-stage1: clean-stage1-target-libmpx
37528clean-stage1-target-libmpx:
5eb08693 37529 @if [ $(current_stage) = stage1 ]; then \
1b6c0831 37530 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37531 else \
1b6c0831 37532 [ -f $(TARGET_SUBDIR)/stage1-libmpx/Makefile ] || exit 0; \
5eb08693
L
37533 $(MAKE) stage1-start; \
37534 fi; \
1b6c0831
L
37535 cd $(TARGET_SUBDIR)/libmpx && \
37536 $(MAKE) $(EXTRA_TARGET_FLAGS) \
5eb08693 37537 clean
1b6c0831
L
37538@endif target-libmpx-bootstrap
37539
37540
37541.PHONY: all-stage2-target-libmpx maybe-all-stage2-target-libmpx
37542.PHONY: clean-stage2-target-libmpx maybe-clean-stage2-target-libmpx
37543maybe-all-stage2-target-libmpx:
37544maybe-clean-stage2-target-libmpx:
37545@if target-libmpx-bootstrap
37546maybe-all-stage2-target-libmpx: all-stage2-target-libmpx
37547all-stage2: all-stage2-target-libmpx
37548TARGET-stage2-target-libmpx = $(TARGET-target-libmpx)
37549all-stage2-target-libmpx: configure-stage2-target-libmpx
5eb08693
L
37550 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
37551 @r=`${PWD_COMMAND}`; export r; \
37552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37553 TFLAGS="$(STAGE2_TFLAGS)"; \
1b6c0831 37554 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37555 \
1b6c0831 37556 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37557 \
5eb08693
L
37558 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37559 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37560 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37561 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37562 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37563 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37564 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37565 $(EXTRA_TARGET_FLAGS) \
05a13254 37566 TFLAGS="$(STAGE2_TFLAGS)" \
1b6c0831 37567 $(TARGET-stage2-target-libmpx)
5eb08693 37568
1b6c0831
L
37569maybe-clean-stage2-target-libmpx: clean-stage2-target-libmpx
37570clean-stage2: clean-stage2-target-libmpx
37571clean-stage2-target-libmpx:
5eb08693 37572 @if [ $(current_stage) = stage2 ]; then \
1b6c0831 37573 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37574 else \
1b6c0831 37575 [ -f $(TARGET_SUBDIR)/stage2-libmpx/Makefile ] || exit 0; \
5eb08693
L
37576 $(MAKE) stage2-start; \
37577 fi; \
1b6c0831
L
37578 cd $(TARGET_SUBDIR)/libmpx && \
37579 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37580@endif target-libmpx-bootstrap
37581
37582
37583.PHONY: all-stage3-target-libmpx maybe-all-stage3-target-libmpx
37584.PHONY: clean-stage3-target-libmpx maybe-clean-stage3-target-libmpx
37585maybe-all-stage3-target-libmpx:
37586maybe-clean-stage3-target-libmpx:
37587@if target-libmpx-bootstrap
37588maybe-all-stage3-target-libmpx: all-stage3-target-libmpx
37589all-stage3: all-stage3-target-libmpx
37590TARGET-stage3-target-libmpx = $(TARGET-target-libmpx)
37591all-stage3-target-libmpx: configure-stage3-target-libmpx
5eb08693
L
37592 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
37593 @r=`${PWD_COMMAND}`; export r; \
37594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37595 TFLAGS="$(STAGE3_TFLAGS)"; \
1b6c0831 37596 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37597 \
1b6c0831 37598 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37599 \
5eb08693
L
37600 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37601 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37602 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37603 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37604 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37605 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37606 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37607 $(EXTRA_TARGET_FLAGS) \
05a13254 37608 TFLAGS="$(STAGE3_TFLAGS)" \
1b6c0831 37609 $(TARGET-stage3-target-libmpx)
5eb08693 37610
1b6c0831
L
37611maybe-clean-stage3-target-libmpx: clean-stage3-target-libmpx
37612clean-stage3: clean-stage3-target-libmpx
37613clean-stage3-target-libmpx:
5eb08693 37614 @if [ $(current_stage) = stage3 ]; then \
1b6c0831 37615 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37616 else \
1b6c0831 37617 [ -f $(TARGET_SUBDIR)/stage3-libmpx/Makefile ] || exit 0; \
5eb08693
L
37618 $(MAKE) stage3-start; \
37619 fi; \
1b6c0831
L
37620 cd $(TARGET_SUBDIR)/libmpx && \
37621 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37622@endif target-libmpx-bootstrap
37623
37624
37625.PHONY: all-stage4-target-libmpx maybe-all-stage4-target-libmpx
37626.PHONY: clean-stage4-target-libmpx maybe-clean-stage4-target-libmpx
37627maybe-all-stage4-target-libmpx:
37628maybe-clean-stage4-target-libmpx:
37629@if target-libmpx-bootstrap
37630maybe-all-stage4-target-libmpx: all-stage4-target-libmpx
37631all-stage4: all-stage4-target-libmpx
37632TARGET-stage4-target-libmpx = $(TARGET-target-libmpx)
37633all-stage4-target-libmpx: configure-stage4-target-libmpx
5eb08693
L
37634 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
37635 @r=`${PWD_COMMAND}`; export r; \
37636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37637 TFLAGS="$(STAGE4_TFLAGS)"; \
1b6c0831 37638 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37639 \
1b6c0831 37640 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37641 \
5eb08693
L
37642 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37643 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37644 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37645 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37646 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37647 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37648 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37649 $(EXTRA_TARGET_FLAGS) \
05a13254 37650 TFLAGS="$(STAGE4_TFLAGS)" \
1b6c0831 37651 $(TARGET-stage4-target-libmpx)
5eb08693 37652
1b6c0831
L
37653maybe-clean-stage4-target-libmpx: clean-stage4-target-libmpx
37654clean-stage4: clean-stage4-target-libmpx
37655clean-stage4-target-libmpx:
5eb08693 37656 @if [ $(current_stage) = stage4 ]; then \
1b6c0831 37657 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37658 else \
1b6c0831 37659 [ -f $(TARGET_SUBDIR)/stage4-libmpx/Makefile ] || exit 0; \
5eb08693
L
37660 $(MAKE) stage4-start; \
37661 fi; \
1b6c0831
L
37662 cd $(TARGET_SUBDIR)/libmpx && \
37663 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37664@endif target-libmpx-bootstrap
37665
37666
37667.PHONY: all-stageprofile-target-libmpx maybe-all-stageprofile-target-libmpx
37668.PHONY: clean-stageprofile-target-libmpx maybe-clean-stageprofile-target-libmpx
37669maybe-all-stageprofile-target-libmpx:
37670maybe-clean-stageprofile-target-libmpx:
37671@if target-libmpx-bootstrap
37672maybe-all-stageprofile-target-libmpx: all-stageprofile-target-libmpx
37673all-stageprofile: all-stageprofile-target-libmpx
37674TARGET-stageprofile-target-libmpx = $(TARGET-target-libmpx)
37675all-stageprofile-target-libmpx: configure-stageprofile-target-libmpx
5eb08693
L
37676 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
37677 @r=`${PWD_COMMAND}`; export r; \
37678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37679 TFLAGS="$(STAGEprofile_TFLAGS)"; \
1b6c0831 37680 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37681 \
1b6c0831 37682 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37683 \
5eb08693
L
37684 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37685 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37686 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37687 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37688 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37689 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37690 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37691 $(EXTRA_TARGET_FLAGS) \
05a13254 37692 TFLAGS="$(STAGEprofile_TFLAGS)" \
1b6c0831 37693 $(TARGET-stageprofile-target-libmpx)
5eb08693 37694
1b6c0831
L
37695maybe-clean-stageprofile-target-libmpx: clean-stageprofile-target-libmpx
37696clean-stageprofile: clean-stageprofile-target-libmpx
37697clean-stageprofile-target-libmpx:
5eb08693 37698 @if [ $(current_stage) = stageprofile ]; then \
1b6c0831 37699 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37700 else \
1b6c0831 37701 [ -f $(TARGET_SUBDIR)/stageprofile-libmpx/Makefile ] || exit 0; \
5eb08693
L
37702 $(MAKE) stageprofile-start; \
37703 fi; \
1b6c0831
L
37704 cd $(TARGET_SUBDIR)/libmpx && \
37705 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37706@endif target-libmpx-bootstrap
37707
37708
37709.PHONY: all-stagefeedback-target-libmpx maybe-all-stagefeedback-target-libmpx
37710.PHONY: clean-stagefeedback-target-libmpx maybe-clean-stagefeedback-target-libmpx
37711maybe-all-stagefeedback-target-libmpx:
37712maybe-clean-stagefeedback-target-libmpx:
37713@if target-libmpx-bootstrap
37714maybe-all-stagefeedback-target-libmpx: all-stagefeedback-target-libmpx
37715all-stagefeedback: all-stagefeedback-target-libmpx
37716TARGET-stagefeedback-target-libmpx = $(TARGET-target-libmpx)
37717all-stagefeedback-target-libmpx: configure-stagefeedback-target-libmpx
5eb08693
L
37718 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
37719 @r=`${PWD_COMMAND}`; export r; \
37720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37721 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
1b6c0831 37722 $(NORMAL_TARGET_EXPORTS) \
5eb08693 37723 \
1b6c0831 37724 cd $(TARGET_SUBDIR)/libmpx && \
05a13254 37725 \
5eb08693
L
37726 $(MAKE) $(BASE_FLAGS_TO_PASS) \
37727 CFLAGS="$(CFLAGS_FOR_TARGET)" \
37728 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
37729 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
37730 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
37731 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
37732 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
1b6c0831 37733 $(EXTRA_TARGET_FLAGS) \
05a13254 37734 TFLAGS="$(STAGEfeedback_TFLAGS)" \
1b6c0831 37735 $(TARGET-stagefeedback-target-libmpx)
5eb08693 37736
1b6c0831
L
37737maybe-clean-stagefeedback-target-libmpx: clean-stagefeedback-target-libmpx
37738clean-stagefeedback: clean-stagefeedback-target-libmpx
37739clean-stagefeedback-target-libmpx:
5eb08693 37740 @if [ $(current_stage) = stagefeedback ]; then \
1b6c0831 37741 [ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5eb08693 37742 else \
1b6c0831 37743 [ -f $(TARGET_SUBDIR)/stagefeedback-libmpx/Makefile ] || exit 0; \
5eb08693
L
37744 $(MAKE) stagefeedback-start; \
37745 fi; \
1b6c0831
L
37746 cd $(TARGET_SUBDIR)/libmpx && \
37747 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
37748@endif target-libmpx-bootstrap
5eb08693
L
37749
37750
37751
37752
5286fdef
L
37753
37754
1b6c0831
L
37755.PHONY: check-target-libmpx maybe-check-target-libmpx
37756maybe-check-target-libmpx:
37757@if target-libmpx
37758maybe-check-target-libmpx: check-target-libmpx
5286fdef 37759
1b6c0831 37760check-target-libmpx:
5286fdef
L
37761 @: $(MAKE); $(unstage)
37762 @r=`${PWD_COMMAND}`; export r; \
37763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37764 $(NORMAL_TARGET_EXPORTS) \
37765 (cd $(TARGET_SUBDIR)/libmpx && \
37766 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5286fdef 37767
1b6c0831 37768@endif target-libmpx
5286fdef 37769
1b6c0831
L
37770.PHONY: install-target-libmpx maybe-install-target-libmpx
37771maybe-install-target-libmpx:
37772@if target-libmpx
37773maybe-install-target-libmpx: install-target-libmpx
5286fdef 37774
1b6c0831 37775install-target-libmpx: installdirs
5286fdef
L
37776 @: $(MAKE); $(unstage)
37777 @r=`${PWD_COMMAND}`; export r; \
37778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37779 $(NORMAL_TARGET_EXPORTS) \
37780 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37781 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
37782
1b6c0831 37783@endif target-libmpx
5286fdef 37784
1b6c0831
L
37785.PHONY: install-strip-target-libmpx maybe-install-strip-target-libmpx
37786maybe-install-strip-target-libmpx:
37787@if target-libmpx
37788maybe-install-strip-target-libmpx: install-strip-target-libmpx
5286fdef 37789
1b6c0831 37790install-strip-target-libmpx: installdirs
5286fdef
L
37791 @: $(MAKE); $(unstage)
37792 @r=`${PWD_COMMAND}`; export r; \
37793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831
L
37794 $(NORMAL_TARGET_EXPORTS) \
37795 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37796 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
37797
1b6c0831 37798@endif target-libmpx
5286fdef
L
37799
37800# Other targets (info, dvi, pdf, etc.)
37801
1b6c0831
L
37802.PHONY: maybe-info-target-libmpx info-target-libmpx
37803maybe-info-target-libmpx:
37804@if target-libmpx
37805maybe-info-target-libmpx: info-target-libmpx
5286fdef 37806
1b6c0831
L
37807info-target-libmpx: \
37808 configure-target-libmpx
5286fdef 37809 @: $(MAKE); $(unstage)
22121df0 37810 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37811 r=`${PWD_COMMAND}`; export r; \
37812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37813 $(NORMAL_TARGET_EXPORTS) \
22121df0 37814 echo "Doing info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37815 for flag in $(EXTRA_TARGET_FLAGS); do \
37816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37817 done; \
1b6c0831 37818 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37821 "RANLIB=$${RANLIB}" \
37822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37823 info) \
37824 || exit 1
37825
1b6c0831 37826@endif target-libmpx
5286fdef 37827
1b6c0831
L
37828.PHONY: maybe-dvi-target-libmpx dvi-target-libmpx
37829maybe-dvi-target-libmpx:
37830@if target-libmpx
37831maybe-dvi-target-libmpx: dvi-target-libmpx
5286fdef 37832
1b6c0831
L
37833dvi-target-libmpx: \
37834 configure-target-libmpx
5286fdef 37835 @: $(MAKE); $(unstage)
22121df0 37836 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37837 r=`${PWD_COMMAND}`; export r; \
37838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37839 $(NORMAL_TARGET_EXPORTS) \
22121df0 37840 echo "Doing dvi in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37841 for flag in $(EXTRA_TARGET_FLAGS); do \
37842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37843 done; \
1b6c0831 37844 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37847 "RANLIB=$${RANLIB}" \
37848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37849 dvi) \
37850 || exit 1
37851
1b6c0831 37852@endif target-libmpx
5286fdef 37853
1b6c0831
L
37854.PHONY: maybe-pdf-target-libmpx pdf-target-libmpx
37855maybe-pdf-target-libmpx:
37856@if target-libmpx
37857maybe-pdf-target-libmpx: pdf-target-libmpx
5286fdef 37858
1b6c0831
L
37859pdf-target-libmpx: \
37860 configure-target-libmpx
5286fdef 37861 @: $(MAKE); $(unstage)
22121df0 37862 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37863 r=`${PWD_COMMAND}`; export r; \
37864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37865 $(NORMAL_TARGET_EXPORTS) \
22121df0 37866 echo "Doing pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37867 for flag in $(EXTRA_TARGET_FLAGS); do \
37868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37869 done; \
1b6c0831 37870 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37873 "RANLIB=$${RANLIB}" \
37874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37875 pdf) \
37876 || exit 1
37877
1b6c0831 37878@endif target-libmpx
5286fdef 37879
1b6c0831
L
37880.PHONY: maybe-html-target-libmpx html-target-libmpx
37881maybe-html-target-libmpx:
37882@if target-libmpx
37883maybe-html-target-libmpx: html-target-libmpx
5286fdef 37884
1b6c0831
L
37885html-target-libmpx: \
37886 configure-target-libmpx
5286fdef 37887 @: $(MAKE); $(unstage)
22121df0 37888 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37889 r=`${PWD_COMMAND}`; export r; \
37890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37891 $(NORMAL_TARGET_EXPORTS) \
22121df0 37892 echo "Doing html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37893 for flag in $(EXTRA_TARGET_FLAGS); do \
37894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37895 done; \
1b6c0831 37896 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37899 "RANLIB=$${RANLIB}" \
37900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37901 html) \
37902 || exit 1
37903
1b6c0831 37904@endif target-libmpx
5286fdef 37905
1b6c0831
L
37906.PHONY: maybe-TAGS-target-libmpx TAGS-target-libmpx
37907maybe-TAGS-target-libmpx:
37908@if target-libmpx
37909maybe-TAGS-target-libmpx: TAGS-target-libmpx
5286fdef 37910
1b6c0831
L
37911TAGS-target-libmpx: \
37912 configure-target-libmpx
5286fdef 37913 @: $(MAKE); $(unstage)
22121df0 37914 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37915 r=`${PWD_COMMAND}`; export r; \
37916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37917 $(NORMAL_TARGET_EXPORTS) \
22121df0 37918 echo "Doing TAGS in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37919 for flag in $(EXTRA_TARGET_FLAGS); do \
37920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37921 done; \
1b6c0831 37922 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37925 "RANLIB=$${RANLIB}" \
37926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37927 TAGS) \
37928 || exit 1
37929
1b6c0831 37930@endif target-libmpx
5286fdef 37931
1b6c0831
L
37932.PHONY: maybe-install-info-target-libmpx install-info-target-libmpx
37933maybe-install-info-target-libmpx:
37934@if target-libmpx
37935maybe-install-info-target-libmpx: install-info-target-libmpx
5286fdef 37936
1b6c0831
L
37937install-info-target-libmpx: \
37938 configure-target-libmpx \
37939 info-target-libmpx
5286fdef 37940 @: $(MAKE); $(unstage)
22121df0 37941 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37942 r=`${PWD_COMMAND}`; export r; \
37943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37944 $(NORMAL_TARGET_EXPORTS) \
22121df0 37945 echo "Doing install-info in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37946 for flag in $(EXTRA_TARGET_FLAGS); do \
37947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37948 done; \
1b6c0831 37949 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37952 "RANLIB=$${RANLIB}" \
37953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37954 install-info) \
37955 || exit 1
37956
1b6c0831 37957@endif target-libmpx
5286fdef 37958
1b6c0831
L
37959.PHONY: maybe-install-pdf-target-libmpx install-pdf-target-libmpx
37960maybe-install-pdf-target-libmpx:
37961@if target-libmpx
37962maybe-install-pdf-target-libmpx: install-pdf-target-libmpx
5286fdef 37963
1b6c0831
L
37964install-pdf-target-libmpx: \
37965 configure-target-libmpx \
37966 pdf-target-libmpx
5286fdef 37967 @: $(MAKE); $(unstage)
22121df0 37968 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37969 r=`${PWD_COMMAND}`; export r; \
37970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37971 $(NORMAL_TARGET_EXPORTS) \
22121df0 37972 echo "Doing install-pdf in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
37973 for flag in $(EXTRA_TARGET_FLAGS); do \
37974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37975 done; \
1b6c0831 37976 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
37977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37979 "RANLIB=$${RANLIB}" \
37980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
37981 install-pdf) \
37982 || exit 1
37983
1b6c0831 37984@endif target-libmpx
5286fdef 37985
1b6c0831
L
37986.PHONY: maybe-install-html-target-libmpx install-html-target-libmpx
37987maybe-install-html-target-libmpx:
37988@if target-libmpx
37989maybe-install-html-target-libmpx: install-html-target-libmpx
5286fdef 37990
1b6c0831
L
37991install-html-target-libmpx: \
37992 configure-target-libmpx \
37993 html-target-libmpx
5286fdef 37994 @: $(MAKE); $(unstage)
22121df0 37995 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
37996 r=`${PWD_COMMAND}`; export r; \
37997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 37998 $(NORMAL_TARGET_EXPORTS) \
22121df0 37999 echo "Doing install-html in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38000 for flag in $(EXTRA_TARGET_FLAGS); do \
38001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38002 done; \
1b6c0831 38003 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38006 "RANLIB=$${RANLIB}" \
38007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38008 install-html) \
38009 || exit 1
38010
1b6c0831 38011@endif target-libmpx
5286fdef 38012
1b6c0831
L
38013.PHONY: maybe-installcheck-target-libmpx installcheck-target-libmpx
38014maybe-installcheck-target-libmpx:
38015@if target-libmpx
38016maybe-installcheck-target-libmpx: installcheck-target-libmpx
5286fdef 38017
1b6c0831
L
38018installcheck-target-libmpx: \
38019 configure-target-libmpx
5286fdef 38020 @: $(MAKE); $(unstage)
22121df0 38021 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38022 r=`${PWD_COMMAND}`; export r; \
38023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38024 $(NORMAL_TARGET_EXPORTS) \
22121df0 38025 echo "Doing installcheck in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38026 for flag in $(EXTRA_TARGET_FLAGS); do \
38027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38028 done; \
1b6c0831 38029 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38032 "RANLIB=$${RANLIB}" \
38033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38034 installcheck) \
38035 || exit 1
38036
1b6c0831 38037@endif target-libmpx
5286fdef 38038
1b6c0831
L
38039.PHONY: maybe-mostlyclean-target-libmpx mostlyclean-target-libmpx
38040maybe-mostlyclean-target-libmpx:
38041@if target-libmpx
38042maybe-mostlyclean-target-libmpx: mostlyclean-target-libmpx
5286fdef 38043
1b6c0831 38044mostlyclean-target-libmpx:
5286fdef 38045 @: $(MAKE); $(unstage)
22121df0 38046 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38047 r=`${PWD_COMMAND}`; export r; \
38048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38049 $(NORMAL_TARGET_EXPORTS) \
22121df0 38050 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38051 for flag in $(EXTRA_TARGET_FLAGS); do \
38052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38053 done; \
1b6c0831 38054 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38057 "RANLIB=$${RANLIB}" \
38058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38059 mostlyclean) \
38060 || exit 1
38061
1b6c0831 38062@endif target-libmpx
5286fdef 38063
1b6c0831
L
38064.PHONY: maybe-clean-target-libmpx clean-target-libmpx
38065maybe-clean-target-libmpx:
38066@if target-libmpx
38067maybe-clean-target-libmpx: clean-target-libmpx
5286fdef 38068
1b6c0831 38069clean-target-libmpx:
5286fdef 38070 @: $(MAKE); $(unstage)
22121df0 38071 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38072 r=`${PWD_COMMAND}`; export r; \
38073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38074 $(NORMAL_TARGET_EXPORTS) \
22121df0 38075 echo "Doing clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38076 for flag in $(EXTRA_TARGET_FLAGS); do \
38077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38078 done; \
1b6c0831 38079 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38082 "RANLIB=$${RANLIB}" \
38083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38084 clean) \
38085 || exit 1
38086
1b6c0831 38087@endif target-libmpx
5286fdef 38088
1b6c0831
L
38089.PHONY: maybe-distclean-target-libmpx distclean-target-libmpx
38090maybe-distclean-target-libmpx:
38091@if target-libmpx
38092maybe-distclean-target-libmpx: distclean-target-libmpx
5286fdef 38093
1b6c0831 38094distclean-target-libmpx:
5286fdef 38095 @: $(MAKE); $(unstage)
22121df0 38096 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38097 r=`${PWD_COMMAND}`; export r; \
38098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38099 $(NORMAL_TARGET_EXPORTS) \
22121df0 38100 echo "Doing distclean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38101 for flag in $(EXTRA_TARGET_FLAGS); do \
38102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38103 done; \
1b6c0831 38104 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38107 "RANLIB=$${RANLIB}" \
38108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38109 distclean) \
38110 || exit 1
38111
1b6c0831 38112@endif target-libmpx
5286fdef 38113
1b6c0831
L
38114.PHONY: maybe-maintainer-clean-target-libmpx maintainer-clean-target-libmpx
38115maybe-maintainer-clean-target-libmpx:
38116@if target-libmpx
38117maybe-maintainer-clean-target-libmpx: maintainer-clean-target-libmpx
5286fdef 38118
1b6c0831 38119maintainer-clean-target-libmpx:
5286fdef 38120 @: $(MAKE); $(unstage)
22121df0 38121 @[ -f $(TARGET_SUBDIR)/libmpx/Makefile ] || exit 0; \
5286fdef
L
38122 r=`${PWD_COMMAND}`; export r; \
38123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b6c0831 38124 $(NORMAL_TARGET_EXPORTS) \
22121df0 38125 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmpx"; \
5286fdef
L
38126 for flag in $(EXTRA_TARGET_FLAGS); do \
38127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38128 done; \
1b6c0831 38129 (cd $(TARGET_SUBDIR)/libmpx && \
5286fdef
L
38130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38132 "RANLIB=$${RANLIB}" \
38133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38134 maintainer-clean) \
38135 || exit 1
38136
1b6c0831 38137@endif target-libmpx
5286fdef
L
38138
38139
38140
38141
38142
95e43135
JBG
38143.PHONY: configure-target-libvtv maybe-configure-target-libvtv
38144maybe-configure-target-libvtv:
38145@if gcc-bootstrap
38146configure-target-libvtv: stage_current
38147@endif gcc-bootstrap
38148@if target-libvtv
38149maybe-configure-target-libvtv: configure-target-libvtv
38150configure-target-libvtv:
38151 @r=`${PWD_COMMAND}`; export r; \
38152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38153 echo "Checking multilib configuration for libvtv..."; \
22121df0
L
38154 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
38155 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38156 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38157 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38158 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38159 else \
38160 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38161 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38162 fi; \
38163 else \
38164 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38165 fi; \
38166 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
22121df0 38167 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38168 $(RAW_CXX_TARGET_EXPORTS) \
38169 echo Configuring in $(TARGET_SUBDIR)/libvtv; \
38170 cd "$(TARGET_SUBDIR)/libvtv" || exit 1; \
38171 case $(srcdir) in \
38172 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38173 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38174 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38175 esac; \
1b6c0831 38176 module_srcdir=libvtv; \
95e43135 38177 rm -f no-such-file || : ; \
1b6c0831
L
38178 CONFIG_SITE=no-such-file $(SHELL) \
38179 $$s/$$module_srcdir/configure \
38180 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38181 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38182 --target=${target_alias} \
95e43135
JBG
38183 || exit 1
38184@endif target-libvtv
38185
38186
38187
38188.PHONY: configure-stage1-target-libvtv maybe-configure-stage1-target-libvtv
38189maybe-configure-stage1-target-libvtv:
38190@if target-libvtv-bootstrap
38191maybe-configure-stage1-target-libvtv: configure-stage1-target-libvtv
38192configure-stage1-target-libvtv:
38193 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38194 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38195 @r=`${PWD_COMMAND}`; export r; \
38196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38197 TFLAGS="$(STAGE1_TFLAGS)"; \
38198 echo "Checking multilib configuration for libvtv..."; \
22121df0 38199 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38200 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38201 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38202 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38203 else \
38204 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38205 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38206 fi; \
38207 else \
38208 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38209 fi; \
38210 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38211 $(RAW_CXX_TARGET_EXPORTS) \
38212 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38213 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38214 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38215 echo Configuring stage 1 in $(TARGET_SUBDIR)/libvtv; \
38216 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38217 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38218 case $(srcdir) in \
38219 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38220 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38221 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38222 esac; \
1b6c0831
L
38223 module_srcdir=libvtv; \
38224 $(SHELL) $$s/$$module_srcdir/configure \
38225 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38226 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
38227 --target=${target_alias} \
38228 \
95e43135
JBG
38229 $(STAGE1_CONFIGURE_FLAGS)
38230@endif target-libvtv-bootstrap
38231
38232.PHONY: configure-stage2-target-libvtv maybe-configure-stage2-target-libvtv
38233maybe-configure-stage2-target-libvtv:
38234@if target-libvtv-bootstrap
38235maybe-configure-stage2-target-libvtv: configure-stage2-target-libvtv
38236configure-stage2-target-libvtv:
38237 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38238 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38239 @r=`${PWD_COMMAND}`; export r; \
38240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38241 TFLAGS="$(STAGE2_TFLAGS)"; \
38242 echo "Checking multilib configuration for libvtv..."; \
22121df0 38243 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38244 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38245 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38246 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38247 else \
38248 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38249 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38250 fi; \
38251 else \
38252 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38253 fi; \
38254 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38255 $(RAW_CXX_TARGET_EXPORTS) \
38256 \
38257 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38258 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38259 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38260 echo Configuring stage 2 in $(TARGET_SUBDIR)/libvtv; \
38261 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38262 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38263 case $(srcdir) in \
38264 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38265 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38266 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38267 esac; \
1b6c0831
L
38268 module_srcdir=libvtv; \
38269 $(SHELL) $$s/$$module_srcdir/configure \
38270 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38271 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38272 --target=${target_alias} \
22121df0 38273 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38274 $(STAGE2_CONFIGURE_FLAGS)
38275@endif target-libvtv-bootstrap
38276
38277.PHONY: configure-stage3-target-libvtv maybe-configure-stage3-target-libvtv
38278maybe-configure-stage3-target-libvtv:
38279@if target-libvtv-bootstrap
38280maybe-configure-stage3-target-libvtv: configure-stage3-target-libvtv
38281configure-stage3-target-libvtv:
38282 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38283 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38284 @r=`${PWD_COMMAND}`; export r; \
38285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38286 TFLAGS="$(STAGE3_TFLAGS)"; \
38287 echo "Checking multilib configuration for libvtv..."; \
22121df0 38288 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38289 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38290 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38291 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38292 else \
38293 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38294 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38295 fi; \
38296 else \
38297 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38298 fi; \
38299 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38300 $(RAW_CXX_TARGET_EXPORTS) \
38301 \
38302 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38303 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38304 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38305 echo Configuring stage 3 in $(TARGET_SUBDIR)/libvtv; \
38306 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38307 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38308 case $(srcdir) in \
38309 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38310 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38311 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38312 esac; \
1b6c0831
L
38313 module_srcdir=libvtv; \
38314 $(SHELL) $$s/$$module_srcdir/configure \
38315 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38316 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38317 --target=${target_alias} \
22121df0 38318 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38319 $(STAGE3_CONFIGURE_FLAGS)
38320@endif target-libvtv-bootstrap
38321
38322.PHONY: configure-stage4-target-libvtv maybe-configure-stage4-target-libvtv
38323maybe-configure-stage4-target-libvtv:
38324@if target-libvtv-bootstrap
38325maybe-configure-stage4-target-libvtv: configure-stage4-target-libvtv
38326configure-stage4-target-libvtv:
38327 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38328 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38329 @r=`${PWD_COMMAND}`; export r; \
38330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38331 TFLAGS="$(STAGE4_TFLAGS)"; \
38332 echo "Checking multilib configuration for libvtv..."; \
22121df0 38333 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38334 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38335 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38336 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38337 else \
38338 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38339 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38340 fi; \
38341 else \
38342 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38343 fi; \
38344 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38345 $(RAW_CXX_TARGET_EXPORTS) \
38346 \
38347 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38348 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38349 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38350 echo Configuring stage 4 in $(TARGET_SUBDIR)/libvtv; \
38351 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38352 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38353 case $(srcdir) in \
38354 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38355 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38356 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38357 esac; \
1b6c0831
L
38358 module_srcdir=libvtv; \
38359 $(SHELL) $$s/$$module_srcdir/configure \
38360 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38361 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38362 --target=${target_alias} \
22121df0 38363 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38364 $(STAGE4_CONFIGURE_FLAGS)
38365@endif target-libvtv-bootstrap
38366
38367.PHONY: configure-stageprofile-target-libvtv maybe-configure-stageprofile-target-libvtv
38368maybe-configure-stageprofile-target-libvtv:
38369@if target-libvtv-bootstrap
38370maybe-configure-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
38371configure-stageprofile-target-libvtv:
38372 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38373 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38374 @r=`${PWD_COMMAND}`; export r; \
38375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38376 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38377 echo "Checking multilib configuration for libvtv..."; \
22121df0 38378 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38379 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38380 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38381 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38382 else \
38383 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38384 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38385 fi; \
38386 else \
38387 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38388 fi; \
38389 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38390 $(RAW_CXX_TARGET_EXPORTS) \
38391 \
38392 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38393 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38394 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38395 echo Configuring stage profile in $(TARGET_SUBDIR)/libvtv; \
38396 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38397 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38398 case $(srcdir) in \
38399 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38400 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38401 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38402 esac; \
1b6c0831
L
38403 module_srcdir=libvtv; \
38404 $(SHELL) $$s/$$module_srcdir/configure \
38405 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38406 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38407 --target=${target_alias} \
22121df0 38408 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38409 $(STAGEprofile_CONFIGURE_FLAGS)
38410@endif target-libvtv-bootstrap
38411
38412.PHONY: configure-stagefeedback-target-libvtv maybe-configure-stagefeedback-target-libvtv
38413maybe-configure-stagefeedback-target-libvtv:
38414@if target-libvtv-bootstrap
38415maybe-configure-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
38416configure-stagefeedback-target-libvtv:
38417 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38418 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv
38419 @r=`${PWD_COMMAND}`; export r; \
38420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38421 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38422 echo "Checking multilib configuration for libvtv..."; \
22121df0 38423 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libvtv/multilib.tmp 2> /dev/null; \
95e43135
JBG
38424 if test -r $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38425 if cmp -s $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; then \
38426 rm -f $(TARGET_SUBDIR)/libvtv/multilib.tmp; \
38427 else \
38428 rm -f $(TARGET_SUBDIR)/libvtv/Makefile; \
38429 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38430 fi; \
38431 else \
38432 mv $(TARGET_SUBDIR)/libvtv/multilib.tmp $(TARGET_SUBDIR)/libvtv/multilib.out; \
38433 fi; \
38434 test ! -f $(TARGET_SUBDIR)/libvtv/Makefile || exit 0; \
38435 $(RAW_CXX_TARGET_EXPORTS) \
38436 \
38437 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
38438 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
38439 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
38440 echo Configuring stage feedback in $(TARGET_SUBDIR)/libvtv; \
38441 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libvtv; \
95e43135
JBG
38442 cd $(TARGET_SUBDIR)/libvtv || exit 1; \
38443 case $(srcdir) in \
38444 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38445 *) topdir=`echo $(TARGET_SUBDIR)/libvtv/ | \
38446 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38447 esac; \
1b6c0831
L
38448 module_srcdir=libvtv; \
38449 $(SHELL) $$s/$$module_srcdir/configure \
38450 --srcdir=$${topdir}/$$module_srcdir \
95e43135 38451 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 38452 --target=${target_alias} \
22121df0 38453 --with-build-libsubdir=$(HOST_SUBDIR) \
95e43135
JBG
38454 $(STAGEfeedback_CONFIGURE_FLAGS)
38455@endif target-libvtv-bootstrap
38456
38457
38458
38459
38460
38461.PHONY: all-target-libvtv maybe-all-target-libvtv
38462maybe-all-target-libvtv:
38463@if gcc-bootstrap
38464all-target-libvtv: stage_current
38465@endif gcc-bootstrap
38466@if target-libvtv
38467TARGET-target-libvtv=all
38468maybe-all-target-libvtv: all-target-libvtv
38469all-target-libvtv: configure-target-libvtv
38470 @r=`${PWD_COMMAND}`; export r; \
38471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38472 $(RAW_CXX_TARGET_EXPORTS) \
38473 (cd $(TARGET_SUBDIR)/libvtv && \
38474 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
38475 $(TARGET-target-libvtv))
38476@endif target-libvtv
38477
38478
38479
38480.PHONY: all-stage1-target-libvtv maybe-all-stage1-target-libvtv
38481.PHONY: clean-stage1-target-libvtv maybe-clean-stage1-target-libvtv
38482maybe-all-stage1-target-libvtv:
38483maybe-clean-stage1-target-libvtv:
38484@if target-libvtv-bootstrap
38485maybe-all-stage1-target-libvtv: all-stage1-target-libvtv
38486all-stage1: all-stage1-target-libvtv
38487TARGET-stage1-target-libvtv = $(TARGET-target-libvtv)
38488all-stage1-target-libvtv: configure-stage1-target-libvtv
38489 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
38490 @r=`${PWD_COMMAND}`; export r; \
38491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38492 TFLAGS="$(STAGE1_TFLAGS)"; \
38493 $(RAW_CXX_TARGET_EXPORTS) \
38494 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38495 \
95e43135
JBG
38496 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38497 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38498 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38499 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38500 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38501 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38502 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38503 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
38504 \
05a13254 38505 TFLAGS="$(STAGE1_TFLAGS)" \
95e43135
JBG
38506 $(TARGET-stage1-target-libvtv)
38507
38508maybe-clean-stage1-target-libvtv: clean-stage1-target-libvtv
38509clean-stage1: clean-stage1-target-libvtv
38510clean-stage1-target-libvtv:
38511 @if [ $(current_stage) = stage1 ]; then \
38512 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38513 else \
38514 [ -f $(TARGET_SUBDIR)/stage1-libvtv/Makefile ] || exit 0; \
38515 $(MAKE) stage1-start; \
38516 fi; \
38517 cd $(TARGET_SUBDIR)/libvtv && \
38518 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
38519 clean
38520@endif target-libvtv-bootstrap
38521
38522
38523.PHONY: all-stage2-target-libvtv maybe-all-stage2-target-libvtv
38524.PHONY: clean-stage2-target-libvtv maybe-clean-stage2-target-libvtv
38525maybe-all-stage2-target-libvtv:
38526maybe-clean-stage2-target-libvtv:
38527@if target-libvtv-bootstrap
38528maybe-all-stage2-target-libvtv: all-stage2-target-libvtv
38529all-stage2: all-stage2-target-libvtv
38530TARGET-stage2-target-libvtv = $(TARGET-target-libvtv)
38531all-stage2-target-libvtv: configure-stage2-target-libvtv
38532 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
38533 @r=`${PWD_COMMAND}`; export r; \
38534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38535 TFLAGS="$(STAGE2_TFLAGS)"; \
38536 $(RAW_CXX_TARGET_EXPORTS) \
38537 \
38538 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38539 \
95e43135
JBG
38540 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38541 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38542 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38543 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38544 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38545 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38546 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38547 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38548 TFLAGS="$(STAGE2_TFLAGS)" \
95e43135
JBG
38549 $(TARGET-stage2-target-libvtv)
38550
38551maybe-clean-stage2-target-libvtv: clean-stage2-target-libvtv
38552clean-stage2: clean-stage2-target-libvtv
38553clean-stage2-target-libvtv:
38554 @if [ $(current_stage) = stage2 ]; then \
38555 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38556 else \
38557 [ -f $(TARGET_SUBDIR)/stage2-libvtv/Makefile ] || exit 0; \
38558 $(MAKE) stage2-start; \
38559 fi; \
38560 cd $(TARGET_SUBDIR)/libvtv && \
38561 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38562@endif target-libvtv-bootstrap
38563
38564
38565.PHONY: all-stage3-target-libvtv maybe-all-stage3-target-libvtv
38566.PHONY: clean-stage3-target-libvtv maybe-clean-stage3-target-libvtv
38567maybe-all-stage3-target-libvtv:
38568maybe-clean-stage3-target-libvtv:
38569@if target-libvtv-bootstrap
38570maybe-all-stage3-target-libvtv: all-stage3-target-libvtv
38571all-stage3: all-stage3-target-libvtv
38572TARGET-stage3-target-libvtv = $(TARGET-target-libvtv)
38573all-stage3-target-libvtv: configure-stage3-target-libvtv
38574 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
38575 @r=`${PWD_COMMAND}`; export r; \
38576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38577 TFLAGS="$(STAGE3_TFLAGS)"; \
38578 $(RAW_CXX_TARGET_EXPORTS) \
38579 \
38580 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38581 \
95e43135
JBG
38582 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38583 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38584 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38585 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38586 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38587 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38588 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38589 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38590 TFLAGS="$(STAGE3_TFLAGS)" \
95e43135
JBG
38591 $(TARGET-stage3-target-libvtv)
38592
38593maybe-clean-stage3-target-libvtv: clean-stage3-target-libvtv
38594clean-stage3: clean-stage3-target-libvtv
38595clean-stage3-target-libvtv:
38596 @if [ $(current_stage) = stage3 ]; then \
38597 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38598 else \
38599 [ -f $(TARGET_SUBDIR)/stage3-libvtv/Makefile ] || exit 0; \
38600 $(MAKE) stage3-start; \
38601 fi; \
38602 cd $(TARGET_SUBDIR)/libvtv && \
38603 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38604@endif target-libvtv-bootstrap
38605
38606
38607.PHONY: all-stage4-target-libvtv maybe-all-stage4-target-libvtv
38608.PHONY: clean-stage4-target-libvtv maybe-clean-stage4-target-libvtv
38609maybe-all-stage4-target-libvtv:
38610maybe-clean-stage4-target-libvtv:
38611@if target-libvtv-bootstrap
38612maybe-all-stage4-target-libvtv: all-stage4-target-libvtv
38613all-stage4: all-stage4-target-libvtv
38614TARGET-stage4-target-libvtv = $(TARGET-target-libvtv)
38615all-stage4-target-libvtv: configure-stage4-target-libvtv
38616 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
38617 @r=`${PWD_COMMAND}`; export r; \
38618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38619 TFLAGS="$(STAGE4_TFLAGS)"; \
38620 $(RAW_CXX_TARGET_EXPORTS) \
38621 \
38622 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38623 \
95e43135
JBG
38624 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38625 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38626 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38627 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38628 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38629 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38630 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38631 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38632 TFLAGS="$(STAGE4_TFLAGS)" \
95e43135
JBG
38633 $(TARGET-stage4-target-libvtv)
38634
38635maybe-clean-stage4-target-libvtv: clean-stage4-target-libvtv
38636clean-stage4: clean-stage4-target-libvtv
38637clean-stage4-target-libvtv:
38638 @if [ $(current_stage) = stage4 ]; then \
38639 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38640 else \
38641 [ -f $(TARGET_SUBDIR)/stage4-libvtv/Makefile ] || exit 0; \
38642 $(MAKE) stage4-start; \
38643 fi; \
38644 cd $(TARGET_SUBDIR)/libvtv && \
38645 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38646@endif target-libvtv-bootstrap
38647
38648
38649.PHONY: all-stageprofile-target-libvtv maybe-all-stageprofile-target-libvtv
38650.PHONY: clean-stageprofile-target-libvtv maybe-clean-stageprofile-target-libvtv
38651maybe-all-stageprofile-target-libvtv:
38652maybe-clean-stageprofile-target-libvtv:
38653@if target-libvtv-bootstrap
38654maybe-all-stageprofile-target-libvtv: all-stageprofile-target-libvtv
38655all-stageprofile: all-stageprofile-target-libvtv
38656TARGET-stageprofile-target-libvtv = $(TARGET-target-libvtv)
38657all-stageprofile-target-libvtv: configure-stageprofile-target-libvtv
38658 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
38659 @r=`${PWD_COMMAND}`; export r; \
38660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38661 TFLAGS="$(STAGEprofile_TFLAGS)"; \
38662 $(RAW_CXX_TARGET_EXPORTS) \
38663 \
38664 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38665 \
95e43135
JBG
38666 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38667 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38668 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38669 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38670 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38671 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38672 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38673 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38674 TFLAGS="$(STAGEprofile_TFLAGS)" \
95e43135
JBG
38675 $(TARGET-stageprofile-target-libvtv)
38676
38677maybe-clean-stageprofile-target-libvtv: clean-stageprofile-target-libvtv
38678clean-stageprofile: clean-stageprofile-target-libvtv
38679clean-stageprofile-target-libvtv:
38680 @if [ $(current_stage) = stageprofile ]; then \
38681 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38682 else \
38683 [ -f $(TARGET_SUBDIR)/stageprofile-libvtv/Makefile ] || exit 0; \
38684 $(MAKE) stageprofile-start; \
38685 fi; \
38686 cd $(TARGET_SUBDIR)/libvtv && \
38687 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38688@endif target-libvtv-bootstrap
38689
38690
38691.PHONY: all-stagefeedback-target-libvtv maybe-all-stagefeedback-target-libvtv
38692.PHONY: clean-stagefeedback-target-libvtv maybe-clean-stagefeedback-target-libvtv
38693maybe-all-stagefeedback-target-libvtv:
38694maybe-clean-stagefeedback-target-libvtv:
38695@if target-libvtv-bootstrap
38696maybe-all-stagefeedback-target-libvtv: all-stagefeedback-target-libvtv
38697all-stagefeedback: all-stagefeedback-target-libvtv
38698TARGET-stagefeedback-target-libvtv = $(TARGET-target-libvtv)
38699all-stagefeedback-target-libvtv: configure-stagefeedback-target-libvtv
38700 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
38701 @r=`${PWD_COMMAND}`; export r; \
38702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38703 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
38704 $(RAW_CXX_TARGET_EXPORTS) \
38705 \
38706 cd $(TARGET_SUBDIR)/libvtv && \
05a13254 38707 \
95e43135
JBG
38708 $(MAKE) $(BASE_FLAGS_TO_PASS) \
38709 CFLAGS="$(CFLAGS_FOR_TARGET)" \
38710 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
38711 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
38712 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
38713 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
38714 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
38715 $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' \
05a13254 38716 TFLAGS="$(STAGEfeedback_TFLAGS)" \
95e43135
JBG
38717 $(TARGET-stagefeedback-target-libvtv)
38718
38719maybe-clean-stagefeedback-target-libvtv: clean-stagefeedback-target-libvtv
38720clean-stagefeedback: clean-stagefeedback-target-libvtv
38721clean-stagefeedback-target-libvtv:
38722 @if [ $(current_stage) = stagefeedback ]; then \
38723 [ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
38724 else \
38725 [ -f $(TARGET_SUBDIR)/stagefeedback-libvtv/Makefile ] || exit 0; \
38726 $(MAKE) stagefeedback-start; \
38727 fi; \
38728 cd $(TARGET_SUBDIR)/libvtv && \
38729 $(MAKE) $(EXTRA_TARGET_FLAGS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' clean
38730@endif target-libvtv-bootstrap
38731
38732
38733
38734
38735
38736
38737.PHONY: check-target-libvtv maybe-check-target-libvtv
38738maybe-check-target-libvtv:
38739@if target-libvtv
38740maybe-check-target-libvtv: check-target-libvtv
38741
38742check-target-libvtv:
38743 @: $(MAKE); $(unstage)
38744 @r=`${PWD_COMMAND}`; export r; \
38745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38746 $(RAW_CXX_TARGET_EXPORTS) \
38747 (cd $(TARGET_SUBDIR)/libvtv && \
38748 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
38749
38750@endif target-libvtv
38751
38752.PHONY: install-target-libvtv maybe-install-target-libvtv
38753maybe-install-target-libvtv:
38754@if target-libvtv
38755maybe-install-target-libvtv: install-target-libvtv
38756
38757install-target-libvtv: installdirs
38758 @: $(MAKE); $(unstage)
38759 @r=`${PWD_COMMAND}`; export r; \
38760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38761 $(RAW_CXX_TARGET_EXPORTS) \
38762 (cd $(TARGET_SUBDIR)/libvtv && \
38763 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38764
38765@endif target-libvtv
38766
38767.PHONY: install-strip-target-libvtv maybe-install-strip-target-libvtv
38768maybe-install-strip-target-libvtv:
38769@if target-libvtv
38770maybe-install-strip-target-libvtv: install-strip-target-libvtv
38771
38772install-strip-target-libvtv: installdirs
38773 @: $(MAKE); $(unstage)
38774 @r=`${PWD_COMMAND}`; export r; \
38775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38776 $(RAW_CXX_TARGET_EXPORTS) \
38777 (cd $(TARGET_SUBDIR)/libvtv && \
38778 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
38779
38780@endif target-libvtv
38781
38782# Other targets (info, dvi, pdf, etc.)
38783
38784.PHONY: maybe-info-target-libvtv info-target-libvtv
38785maybe-info-target-libvtv:
38786@if target-libvtv
38787maybe-info-target-libvtv: info-target-libvtv
38788
38789info-target-libvtv: \
38790 configure-target-libvtv
38791 @: $(MAKE); $(unstage)
22121df0 38792 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38793 r=`${PWD_COMMAND}`; export r; \
38794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38795 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38796 echo "Doing info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38797 for flag in $(EXTRA_TARGET_FLAGS); do \
38798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38799 done; \
38800 (cd $(TARGET_SUBDIR)/libvtv && \
38801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38803 "RANLIB=$${RANLIB}" \
38804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38805 info) \
38806 || exit 1
38807
38808@endif target-libvtv
38809
38810.PHONY: maybe-dvi-target-libvtv dvi-target-libvtv
38811maybe-dvi-target-libvtv:
38812@if target-libvtv
38813maybe-dvi-target-libvtv: dvi-target-libvtv
38814
38815dvi-target-libvtv: \
38816 configure-target-libvtv
38817 @: $(MAKE); $(unstage)
22121df0 38818 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38819 r=`${PWD_COMMAND}`; export r; \
38820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38821 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38822 echo "Doing dvi in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38823 for flag in $(EXTRA_TARGET_FLAGS); do \
38824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38825 done; \
38826 (cd $(TARGET_SUBDIR)/libvtv && \
38827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38829 "RANLIB=$${RANLIB}" \
38830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38831 dvi) \
38832 || exit 1
38833
38834@endif target-libvtv
38835
38836.PHONY: maybe-pdf-target-libvtv pdf-target-libvtv
38837maybe-pdf-target-libvtv:
38838@if target-libvtv
38839maybe-pdf-target-libvtv: pdf-target-libvtv
38840
38841pdf-target-libvtv: \
38842 configure-target-libvtv
38843 @: $(MAKE); $(unstage)
22121df0 38844 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38845 r=`${PWD_COMMAND}`; export r; \
38846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38847 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38848 echo "Doing pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38849 for flag in $(EXTRA_TARGET_FLAGS); do \
38850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38851 done; \
38852 (cd $(TARGET_SUBDIR)/libvtv && \
38853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38855 "RANLIB=$${RANLIB}" \
38856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38857 pdf) \
38858 || exit 1
38859
38860@endif target-libvtv
38861
38862.PHONY: maybe-html-target-libvtv html-target-libvtv
38863maybe-html-target-libvtv:
38864@if target-libvtv
38865maybe-html-target-libvtv: html-target-libvtv
38866
38867html-target-libvtv: \
38868 configure-target-libvtv
38869 @: $(MAKE); $(unstage)
22121df0 38870 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38871 r=`${PWD_COMMAND}`; export r; \
38872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38873 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38874 echo "Doing html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38875 for flag in $(EXTRA_TARGET_FLAGS); do \
38876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38877 done; \
38878 (cd $(TARGET_SUBDIR)/libvtv && \
38879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38881 "RANLIB=$${RANLIB}" \
38882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38883 html) \
38884 || exit 1
38885
38886@endif target-libvtv
38887
38888.PHONY: maybe-TAGS-target-libvtv TAGS-target-libvtv
38889maybe-TAGS-target-libvtv:
38890@if target-libvtv
38891maybe-TAGS-target-libvtv: TAGS-target-libvtv
38892
38893TAGS-target-libvtv: \
38894 configure-target-libvtv
38895 @: $(MAKE); $(unstage)
22121df0 38896 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38897 r=`${PWD_COMMAND}`; export r; \
38898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38899 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38900 echo "Doing TAGS in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
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)/libvtv && \
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 TAGS) \
38910 || exit 1
38911
38912@endif target-libvtv
38913
38914.PHONY: maybe-install-info-target-libvtv install-info-target-libvtv
38915maybe-install-info-target-libvtv:
38916@if target-libvtv
38917maybe-install-info-target-libvtv: install-info-target-libvtv
38918
38919install-info-target-libvtv: \
38920 configure-target-libvtv \
38921 info-target-libvtv
38922 @: $(MAKE); $(unstage)
22121df0 38923 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38924 r=`${PWD_COMMAND}`; export r; \
38925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38926 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38927 echo "Doing install-info in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38928 for flag in $(EXTRA_TARGET_FLAGS); do \
38929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38930 done; \
38931 (cd $(TARGET_SUBDIR)/libvtv && \
38932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38934 "RANLIB=$${RANLIB}" \
38935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38936 install-info) \
38937 || exit 1
38938
38939@endif target-libvtv
38940
38941.PHONY: maybe-install-pdf-target-libvtv install-pdf-target-libvtv
38942maybe-install-pdf-target-libvtv:
38943@if target-libvtv
38944maybe-install-pdf-target-libvtv: install-pdf-target-libvtv
38945
38946install-pdf-target-libvtv: \
38947 configure-target-libvtv \
38948 pdf-target-libvtv
38949 @: $(MAKE); $(unstage)
22121df0 38950 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38951 r=`${PWD_COMMAND}`; export r; \
38952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38953 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38954 echo "Doing install-pdf in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38955 for flag in $(EXTRA_TARGET_FLAGS); do \
38956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38957 done; \
38958 (cd $(TARGET_SUBDIR)/libvtv && \
38959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38961 "RANLIB=$${RANLIB}" \
38962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38963 install-pdf) \
38964 || exit 1
38965
38966@endif target-libvtv
38967
38968.PHONY: maybe-install-html-target-libvtv install-html-target-libvtv
38969maybe-install-html-target-libvtv:
38970@if target-libvtv
38971maybe-install-html-target-libvtv: install-html-target-libvtv
38972
38973install-html-target-libvtv: \
38974 configure-target-libvtv \
38975 html-target-libvtv
38976 @: $(MAKE); $(unstage)
22121df0 38977 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
38978 r=`${PWD_COMMAND}`; export r; \
38979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38980 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 38981 echo "Doing install-html in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
38982 for flag in $(EXTRA_TARGET_FLAGS); do \
38983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38984 done; \
38985 (cd $(TARGET_SUBDIR)/libvtv && \
38986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38988 "RANLIB=$${RANLIB}" \
38989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
38990 install-html) \
38991 || exit 1
38992
38993@endif target-libvtv
38994
38995.PHONY: maybe-installcheck-target-libvtv installcheck-target-libvtv
38996maybe-installcheck-target-libvtv:
38997@if target-libvtv
38998maybe-installcheck-target-libvtv: installcheck-target-libvtv
38999
39000installcheck-target-libvtv: \
39001 configure-target-libvtv
39002 @: $(MAKE); $(unstage)
22121df0 39003 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
39004 r=`${PWD_COMMAND}`; export r; \
39005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39006 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 39007 echo "Doing installcheck in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
39008 for flag in $(EXTRA_TARGET_FLAGS); do \
39009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39010 done; \
39011 (cd $(TARGET_SUBDIR)/libvtv && \
39012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39014 "RANLIB=$${RANLIB}" \
39015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39016 installcheck) \
39017 || exit 1
39018
39019@endif target-libvtv
39020
39021.PHONY: maybe-mostlyclean-target-libvtv mostlyclean-target-libvtv
39022maybe-mostlyclean-target-libvtv:
39023@if target-libvtv
39024maybe-mostlyclean-target-libvtv: mostlyclean-target-libvtv
39025
39026mostlyclean-target-libvtv:
39027 @: $(MAKE); $(unstage)
22121df0 39028 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
39029 r=`${PWD_COMMAND}`; export r; \
39030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39031 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 39032 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
39033 for flag in $(EXTRA_TARGET_FLAGS); do \
39034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39035 done; \
39036 (cd $(TARGET_SUBDIR)/libvtv && \
39037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39039 "RANLIB=$${RANLIB}" \
39040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39041 mostlyclean) \
39042 || exit 1
39043
39044@endif target-libvtv
39045
39046.PHONY: maybe-clean-target-libvtv clean-target-libvtv
39047maybe-clean-target-libvtv:
39048@if target-libvtv
39049maybe-clean-target-libvtv: clean-target-libvtv
39050
39051clean-target-libvtv:
39052 @: $(MAKE); $(unstage)
22121df0 39053 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
39054 r=`${PWD_COMMAND}`; export r; \
39055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39056 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 39057 echo "Doing clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
39058 for flag in $(EXTRA_TARGET_FLAGS); do \
39059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39060 done; \
39061 (cd $(TARGET_SUBDIR)/libvtv && \
39062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39064 "RANLIB=$${RANLIB}" \
39065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39066 clean) \
39067 || exit 1
39068
39069@endif target-libvtv
39070
39071.PHONY: maybe-distclean-target-libvtv distclean-target-libvtv
39072maybe-distclean-target-libvtv:
39073@if target-libvtv
39074maybe-distclean-target-libvtv: distclean-target-libvtv
39075
39076distclean-target-libvtv:
39077 @: $(MAKE); $(unstage)
22121df0 39078 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
39079 r=`${PWD_COMMAND}`; export r; \
39080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39081 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 39082 echo "Doing distclean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
39083 for flag in $(EXTRA_TARGET_FLAGS); do \
39084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39085 done; \
39086 (cd $(TARGET_SUBDIR)/libvtv && \
39087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39089 "RANLIB=$${RANLIB}" \
39090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39091 distclean) \
39092 || exit 1
39093
39094@endif target-libvtv
39095
39096.PHONY: maybe-maintainer-clean-target-libvtv maintainer-clean-target-libvtv
39097maybe-maintainer-clean-target-libvtv:
39098@if target-libvtv
39099maybe-maintainer-clean-target-libvtv: maintainer-clean-target-libvtv
39100
39101maintainer-clean-target-libvtv:
39102 @: $(MAKE); $(unstage)
22121df0 39103 @[ -f $(TARGET_SUBDIR)/libvtv/Makefile ] || exit 0; \
95e43135
JBG
39104 r=`${PWD_COMMAND}`; export r; \
39105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39106 $(RAW_CXX_TARGET_EXPORTS) \
22121df0 39107 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libvtv"; \
95e43135
JBG
39108 for flag in $(EXTRA_TARGET_FLAGS); do \
39109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39110 done; \
39111 (cd $(TARGET_SUBDIR)/libvtv && \
39112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39114 "RANLIB=$${RANLIB}" \
39115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39116 maintainer-clean) \
39117 || exit 1
39118
39119@endif target-libvtv
39120
39121
39122
39123
39124
e3f56a99
NC
39125.PHONY: configure-target-libcilkrts maybe-configure-target-libcilkrts
39126maybe-configure-target-libcilkrts:
39127@if gcc-bootstrap
39128configure-target-libcilkrts: stage_current
39129@endif gcc-bootstrap
39130@if target-libcilkrts
39131maybe-configure-target-libcilkrts: configure-target-libcilkrts
39132configure-target-libcilkrts:
39133 @: $(MAKE); $(unstage)
39134 @r=`${PWD_COMMAND}`; export r; \
39135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39136 echo "Checking multilib configuration for libcilkrts..."; \
39137 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
39138 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libcilkrts/multilib.tmp 2> /dev/null; \
39139 if test -r $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
39140 if cmp -s $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; then \
39141 rm -f $(TARGET_SUBDIR)/libcilkrts/multilib.tmp; \
39142 else \
39143 rm -f $(TARGET_SUBDIR)/libcilkrts/Makefile; \
39144 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
39145 fi; \
39146 else \
39147 mv $(TARGET_SUBDIR)/libcilkrts/multilib.tmp $(TARGET_SUBDIR)/libcilkrts/multilib.out; \
39148 fi; \
39149 test ! -f $(TARGET_SUBDIR)/libcilkrts/Makefile || exit 0; \
39150 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libcilkrts; \
39151 $(NORMAL_TARGET_EXPORTS) \
39152 echo Configuring in $(TARGET_SUBDIR)/libcilkrts; \
39153 cd "$(TARGET_SUBDIR)/libcilkrts" || exit 1; \
39154 case $(srcdir) in \
39155 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39156 *) topdir=`echo $(TARGET_SUBDIR)/libcilkrts/ | \
39157 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39158 esac; \
39159 module_srcdir=libcilkrts; \
39160 rm -f no-such-file || : ; \
39161 CONFIG_SITE=no-such-file $(SHELL) \
39162 $$s/$$module_srcdir/configure \
39163 --srcdir=$${topdir}/$$module_srcdir \
39164 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39165 --target=${target_alias} \
39166 || exit 1
39167@endif target-libcilkrts
39168
39169
39170
39171
39172
39173.PHONY: all-target-libcilkrts maybe-all-target-libcilkrts
39174maybe-all-target-libcilkrts:
39175@if gcc-bootstrap
39176all-target-libcilkrts: stage_current
39177@endif gcc-bootstrap
39178@if target-libcilkrts
39179TARGET-target-libcilkrts=all
39180maybe-all-target-libcilkrts: all-target-libcilkrts
39181all-target-libcilkrts: configure-target-libcilkrts
39182 @: $(MAKE); $(unstage)
39183 @r=`${PWD_COMMAND}`; export r; \
39184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39185 $(NORMAL_TARGET_EXPORTS) \
39186 (cd $(TARGET_SUBDIR)/libcilkrts && \
39187 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
39188 $(TARGET-target-libcilkrts))
39189@endif target-libcilkrts
39190
39191
39192
39193
39194
39195.PHONY: check-target-libcilkrts maybe-check-target-libcilkrts
39196maybe-check-target-libcilkrts:
39197@if target-libcilkrts
39198maybe-check-target-libcilkrts: check-target-libcilkrts
39199
39200check-target-libcilkrts:
39201 @: $(MAKE); $(unstage)
39202 @r=`${PWD_COMMAND}`; export r; \
39203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39204 $(NORMAL_TARGET_EXPORTS) \
39205 (cd $(TARGET_SUBDIR)/libcilkrts && \
39206 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39207
39208@endif target-libcilkrts
39209
39210.PHONY: install-target-libcilkrts maybe-install-target-libcilkrts
39211maybe-install-target-libcilkrts:
39212@if target-libcilkrts
39213maybe-install-target-libcilkrts: install-target-libcilkrts
39214
39215install-target-libcilkrts: installdirs
39216 @: $(MAKE); $(unstage)
39217 @r=`${PWD_COMMAND}`; export r; \
39218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39219 $(NORMAL_TARGET_EXPORTS) \
39220 (cd $(TARGET_SUBDIR)/libcilkrts && \
39221 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39222
39223@endif target-libcilkrts
39224
39225.PHONY: install-strip-target-libcilkrts maybe-install-strip-target-libcilkrts
39226maybe-install-strip-target-libcilkrts:
39227@if target-libcilkrts
39228maybe-install-strip-target-libcilkrts: install-strip-target-libcilkrts
39229
39230install-strip-target-libcilkrts: installdirs
39231 @: $(MAKE); $(unstage)
39232 @r=`${PWD_COMMAND}`; export r; \
39233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39234 $(NORMAL_TARGET_EXPORTS) \
39235 (cd $(TARGET_SUBDIR)/libcilkrts && \
39236 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39237
39238@endif target-libcilkrts
39239
39240# Other targets (info, dvi, pdf, etc.)
39241
39242.PHONY: maybe-info-target-libcilkrts info-target-libcilkrts
39243maybe-info-target-libcilkrts:
39244@if target-libcilkrts
39245maybe-info-target-libcilkrts: info-target-libcilkrts
39246
39247info-target-libcilkrts: \
39248 configure-target-libcilkrts
39249 @: $(MAKE); $(unstage)
39250 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39251 r=`${PWD_COMMAND}`; export r; \
39252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39253 $(NORMAL_TARGET_EXPORTS) \
39254 echo "Doing info in $(TARGET_SUBDIR)/libcilkrts"; \
39255 for flag in $(EXTRA_TARGET_FLAGS); do \
39256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39257 done; \
39258 (cd $(TARGET_SUBDIR)/libcilkrts && \
39259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39261 "RANLIB=$${RANLIB}" \
39262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39263 info) \
39264 || exit 1
39265
39266@endif target-libcilkrts
39267
39268.PHONY: maybe-dvi-target-libcilkrts dvi-target-libcilkrts
39269maybe-dvi-target-libcilkrts:
39270@if target-libcilkrts
39271maybe-dvi-target-libcilkrts: dvi-target-libcilkrts
39272
39273dvi-target-libcilkrts: \
39274 configure-target-libcilkrts
39275 @: $(MAKE); $(unstage)
39276 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39277 r=`${PWD_COMMAND}`; export r; \
39278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39279 $(NORMAL_TARGET_EXPORTS) \
39280 echo "Doing dvi in $(TARGET_SUBDIR)/libcilkrts"; \
39281 for flag in $(EXTRA_TARGET_FLAGS); do \
39282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39283 done; \
39284 (cd $(TARGET_SUBDIR)/libcilkrts && \
39285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39287 "RANLIB=$${RANLIB}" \
39288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39289 dvi) \
39290 || exit 1
39291
39292@endif target-libcilkrts
39293
39294.PHONY: maybe-pdf-target-libcilkrts pdf-target-libcilkrts
39295maybe-pdf-target-libcilkrts:
39296@if target-libcilkrts
39297maybe-pdf-target-libcilkrts: pdf-target-libcilkrts
39298
39299pdf-target-libcilkrts: \
39300 configure-target-libcilkrts
39301 @: $(MAKE); $(unstage)
39302 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39303 r=`${PWD_COMMAND}`; export r; \
39304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39305 $(NORMAL_TARGET_EXPORTS) \
39306 echo "Doing pdf in $(TARGET_SUBDIR)/libcilkrts"; \
39307 for flag in $(EXTRA_TARGET_FLAGS); do \
39308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39309 done; \
39310 (cd $(TARGET_SUBDIR)/libcilkrts && \
39311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39313 "RANLIB=$${RANLIB}" \
39314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39315 pdf) \
39316 || exit 1
39317
39318@endif target-libcilkrts
39319
39320.PHONY: maybe-html-target-libcilkrts html-target-libcilkrts
39321maybe-html-target-libcilkrts:
39322@if target-libcilkrts
39323maybe-html-target-libcilkrts: html-target-libcilkrts
39324
39325html-target-libcilkrts: \
39326 configure-target-libcilkrts
39327 @: $(MAKE); $(unstage)
39328 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39329 r=`${PWD_COMMAND}`; export r; \
39330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39331 $(NORMAL_TARGET_EXPORTS) \
39332 echo "Doing html in $(TARGET_SUBDIR)/libcilkrts"; \
39333 for flag in $(EXTRA_TARGET_FLAGS); do \
39334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39335 done; \
39336 (cd $(TARGET_SUBDIR)/libcilkrts && \
39337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39339 "RANLIB=$${RANLIB}" \
39340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39341 html) \
39342 || exit 1
39343
39344@endif target-libcilkrts
39345
39346.PHONY: maybe-TAGS-target-libcilkrts TAGS-target-libcilkrts
39347maybe-TAGS-target-libcilkrts:
39348@if target-libcilkrts
39349maybe-TAGS-target-libcilkrts: TAGS-target-libcilkrts
39350
39351TAGS-target-libcilkrts: \
39352 configure-target-libcilkrts
39353 @: $(MAKE); $(unstage)
39354 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39355 r=`${PWD_COMMAND}`; export r; \
39356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39357 $(NORMAL_TARGET_EXPORTS) \
39358 echo "Doing TAGS in $(TARGET_SUBDIR)/libcilkrts"; \
39359 for flag in $(EXTRA_TARGET_FLAGS); do \
39360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39361 done; \
39362 (cd $(TARGET_SUBDIR)/libcilkrts && \
39363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39365 "RANLIB=$${RANLIB}" \
39366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39367 TAGS) \
39368 || exit 1
39369
39370@endif target-libcilkrts
39371
39372.PHONY: maybe-install-info-target-libcilkrts install-info-target-libcilkrts
39373maybe-install-info-target-libcilkrts:
39374@if target-libcilkrts
39375maybe-install-info-target-libcilkrts: install-info-target-libcilkrts
39376
39377install-info-target-libcilkrts: \
39378 configure-target-libcilkrts \
39379 info-target-libcilkrts
39380 @: $(MAKE); $(unstage)
39381 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39382 r=`${PWD_COMMAND}`; export r; \
39383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39384 $(NORMAL_TARGET_EXPORTS) \
39385 echo "Doing install-info in $(TARGET_SUBDIR)/libcilkrts"; \
39386 for flag in $(EXTRA_TARGET_FLAGS); do \
39387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39388 done; \
39389 (cd $(TARGET_SUBDIR)/libcilkrts && \
39390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39392 "RANLIB=$${RANLIB}" \
39393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39394 install-info) \
39395 || exit 1
39396
39397@endif target-libcilkrts
39398
39399.PHONY: maybe-install-pdf-target-libcilkrts install-pdf-target-libcilkrts
39400maybe-install-pdf-target-libcilkrts:
39401@if target-libcilkrts
39402maybe-install-pdf-target-libcilkrts: install-pdf-target-libcilkrts
39403
39404install-pdf-target-libcilkrts: \
39405 configure-target-libcilkrts \
39406 pdf-target-libcilkrts
39407 @: $(MAKE); $(unstage)
39408 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39409 r=`${PWD_COMMAND}`; export r; \
39410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39411 $(NORMAL_TARGET_EXPORTS) \
39412 echo "Doing install-pdf in $(TARGET_SUBDIR)/libcilkrts"; \
39413 for flag in $(EXTRA_TARGET_FLAGS); do \
39414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39415 done; \
39416 (cd $(TARGET_SUBDIR)/libcilkrts && \
39417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39419 "RANLIB=$${RANLIB}" \
39420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39421 install-pdf) \
39422 || exit 1
39423
39424@endif target-libcilkrts
39425
39426.PHONY: maybe-install-html-target-libcilkrts install-html-target-libcilkrts
39427maybe-install-html-target-libcilkrts:
39428@if target-libcilkrts
39429maybe-install-html-target-libcilkrts: install-html-target-libcilkrts
39430
39431install-html-target-libcilkrts: \
39432 configure-target-libcilkrts \
39433 html-target-libcilkrts
39434 @: $(MAKE); $(unstage)
39435 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39436 r=`${PWD_COMMAND}`; export r; \
39437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39438 $(NORMAL_TARGET_EXPORTS) \
39439 echo "Doing install-html in $(TARGET_SUBDIR)/libcilkrts"; \
39440 for flag in $(EXTRA_TARGET_FLAGS); do \
39441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39442 done; \
39443 (cd $(TARGET_SUBDIR)/libcilkrts && \
39444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39446 "RANLIB=$${RANLIB}" \
39447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39448 install-html) \
39449 || exit 1
39450
39451@endif target-libcilkrts
39452
39453.PHONY: maybe-installcheck-target-libcilkrts installcheck-target-libcilkrts
39454maybe-installcheck-target-libcilkrts:
39455@if target-libcilkrts
39456maybe-installcheck-target-libcilkrts: installcheck-target-libcilkrts
39457
39458installcheck-target-libcilkrts: \
39459 configure-target-libcilkrts
39460 @: $(MAKE); $(unstage)
39461 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39462 r=`${PWD_COMMAND}`; export r; \
39463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39464 $(NORMAL_TARGET_EXPORTS) \
39465 echo "Doing installcheck in $(TARGET_SUBDIR)/libcilkrts"; \
39466 for flag in $(EXTRA_TARGET_FLAGS); do \
39467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39468 done; \
39469 (cd $(TARGET_SUBDIR)/libcilkrts && \
39470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39472 "RANLIB=$${RANLIB}" \
39473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39474 installcheck) \
39475 || exit 1
39476
39477@endif target-libcilkrts
39478
39479.PHONY: maybe-mostlyclean-target-libcilkrts mostlyclean-target-libcilkrts
39480maybe-mostlyclean-target-libcilkrts:
39481@if target-libcilkrts
39482maybe-mostlyclean-target-libcilkrts: mostlyclean-target-libcilkrts
39483
39484mostlyclean-target-libcilkrts:
39485 @: $(MAKE); $(unstage)
39486 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39487 r=`${PWD_COMMAND}`; export r; \
39488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39489 $(NORMAL_TARGET_EXPORTS) \
39490 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libcilkrts"; \
39491 for flag in $(EXTRA_TARGET_FLAGS); do \
39492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39493 done; \
39494 (cd $(TARGET_SUBDIR)/libcilkrts && \
39495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39497 "RANLIB=$${RANLIB}" \
39498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39499 mostlyclean) \
39500 || exit 1
39501
39502@endif target-libcilkrts
39503
39504.PHONY: maybe-clean-target-libcilkrts clean-target-libcilkrts
39505maybe-clean-target-libcilkrts:
39506@if target-libcilkrts
39507maybe-clean-target-libcilkrts: clean-target-libcilkrts
39508
39509clean-target-libcilkrts:
39510 @: $(MAKE); $(unstage)
39511 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39512 r=`${PWD_COMMAND}`; export r; \
39513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39514 $(NORMAL_TARGET_EXPORTS) \
39515 echo "Doing clean in $(TARGET_SUBDIR)/libcilkrts"; \
39516 for flag in $(EXTRA_TARGET_FLAGS); do \
39517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39518 done; \
39519 (cd $(TARGET_SUBDIR)/libcilkrts && \
39520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39522 "RANLIB=$${RANLIB}" \
39523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39524 clean) \
39525 || exit 1
39526
39527@endif target-libcilkrts
39528
39529.PHONY: maybe-distclean-target-libcilkrts distclean-target-libcilkrts
39530maybe-distclean-target-libcilkrts:
39531@if target-libcilkrts
39532maybe-distclean-target-libcilkrts: distclean-target-libcilkrts
39533
39534distclean-target-libcilkrts:
39535 @: $(MAKE); $(unstage)
39536 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39537 r=`${PWD_COMMAND}`; export r; \
39538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39539 $(NORMAL_TARGET_EXPORTS) \
39540 echo "Doing distclean in $(TARGET_SUBDIR)/libcilkrts"; \
39541 for flag in $(EXTRA_TARGET_FLAGS); do \
39542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39543 done; \
39544 (cd $(TARGET_SUBDIR)/libcilkrts && \
39545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39547 "RANLIB=$${RANLIB}" \
39548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39549 distclean) \
39550 || exit 1
39551
39552@endif target-libcilkrts
39553
39554.PHONY: maybe-maintainer-clean-target-libcilkrts maintainer-clean-target-libcilkrts
39555maybe-maintainer-clean-target-libcilkrts:
39556@if target-libcilkrts
39557maybe-maintainer-clean-target-libcilkrts: maintainer-clean-target-libcilkrts
39558
39559maintainer-clean-target-libcilkrts:
39560 @: $(MAKE); $(unstage)
39561 @[ -f $(TARGET_SUBDIR)/libcilkrts/Makefile ] || exit 0; \
39562 r=`${PWD_COMMAND}`; export r; \
39563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39564 $(NORMAL_TARGET_EXPORTS) \
39565 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libcilkrts"; \
39566 for flag in $(EXTRA_TARGET_FLAGS); do \
39567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39568 done; \
39569 (cd $(TARGET_SUBDIR)/libcilkrts && \
39570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39572 "RANLIB=$${RANLIB}" \
39573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39574 maintainer-clean) \
39575 || exit 1
39576
39577@endif target-libcilkrts
39578
39579
39580
39581
39582
1b6c0831
L
39583.PHONY: configure-target-liboffloadmic maybe-configure-target-liboffloadmic
39584maybe-configure-target-liboffloadmic:
39585@if gcc-bootstrap
39586configure-target-liboffloadmic: stage_current
39587@endif gcc-bootstrap
39588@if target-liboffloadmic
39589maybe-configure-target-liboffloadmic: configure-target-liboffloadmic
39590configure-target-liboffloadmic:
39591 @: $(MAKE); $(unstage)
39592 @r=`${PWD_COMMAND}`; export r; \
39593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39594 echo "Checking multilib configuration for liboffloadmic..."; \
22121df0
L
39595 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
39596 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp 2> /dev/null; \
1b6c0831
L
39597 if test -r $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
39598 if cmp -s $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; then \
39599 rm -f $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp; \
39600 else \
39601 rm -f $(TARGET_SUBDIR)/liboffloadmic/Makefile; \
39602 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
39603 fi; \
39604 else \
39605 mv $(TARGET_SUBDIR)/liboffloadmic/multilib.tmp $(TARGET_SUBDIR)/liboffloadmic/multilib.out; \
39606 fi; \
39607 test ! -f $(TARGET_SUBDIR)/liboffloadmic/Makefile || exit 0; \
22121df0 39608 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/liboffloadmic; \
1b6c0831
L
39609 $(NORMAL_TARGET_EXPORTS) \
39610 echo Configuring in $(TARGET_SUBDIR)/liboffloadmic; \
39611 cd "$(TARGET_SUBDIR)/liboffloadmic" || exit 1; \
39612 case $(srcdir) in \
39613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39614 *) topdir=`echo $(TARGET_SUBDIR)/liboffloadmic/ | \
39615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
39616 esac; \
39617 module_srcdir=liboffloadmic; \
39618 rm -f no-such-file || : ; \
39619 CONFIG_SITE=no-such-file $(SHELL) \
39620 $$s/$$module_srcdir/configure \
39621 --srcdir=$${topdir}/$$module_srcdir \
39622 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
39623 --target=${target_alias} @extra_liboffloadmic_configure_flags@ \
39624 || exit 1
39625@endif target-liboffloadmic
39626
39627
39628
39629
39630
39631.PHONY: all-target-liboffloadmic maybe-all-target-liboffloadmic
39632maybe-all-target-liboffloadmic:
39633@if gcc-bootstrap
39634all-target-liboffloadmic: stage_current
39635@endif gcc-bootstrap
39636@if target-liboffloadmic
39637TARGET-target-liboffloadmic=all
39638maybe-all-target-liboffloadmic: all-target-liboffloadmic
39639all-target-liboffloadmic: configure-target-liboffloadmic
39640 @: $(MAKE); $(unstage)
39641 @r=`${PWD_COMMAND}`; export r; \
39642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39643 $(NORMAL_TARGET_EXPORTS) \
39644 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39645 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
39646 $(TARGET-target-liboffloadmic))
39647@endif target-liboffloadmic
39648
39649
39650
39651
39652
39653.PHONY: check-target-liboffloadmic maybe-check-target-liboffloadmic
39654maybe-check-target-liboffloadmic:
39655@if target-liboffloadmic
39656maybe-check-target-liboffloadmic: check-target-liboffloadmic
39657
39658check-target-liboffloadmic:
39659 @: $(MAKE); $(unstage)
39660 @r=`${PWD_COMMAND}`; export r; \
39661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39662 $(NORMAL_TARGET_EXPORTS) \
39663 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39664 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
39665
39666@endif target-liboffloadmic
39667
39668.PHONY: install-target-liboffloadmic maybe-install-target-liboffloadmic
39669maybe-install-target-liboffloadmic:
39670@if target-liboffloadmic
39671maybe-install-target-liboffloadmic: install-target-liboffloadmic
39672
39673install-target-liboffloadmic: installdirs
39674 @: $(MAKE); $(unstage)
39675 @r=`${PWD_COMMAND}`; export r; \
39676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39677 $(NORMAL_TARGET_EXPORTS) \
39678 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39679 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
39680
39681@endif target-liboffloadmic
39682
39683.PHONY: install-strip-target-liboffloadmic maybe-install-strip-target-liboffloadmic
39684maybe-install-strip-target-liboffloadmic:
39685@if target-liboffloadmic
39686maybe-install-strip-target-liboffloadmic: install-strip-target-liboffloadmic
39687
39688install-strip-target-liboffloadmic: installdirs
39689 @: $(MAKE); $(unstage)
39690 @r=`${PWD_COMMAND}`; export r; \
39691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39692 $(NORMAL_TARGET_EXPORTS) \
39693 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39694 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
39695
39696@endif target-liboffloadmic
39697
39698# Other targets (info, dvi, pdf, etc.)
39699
39700.PHONY: maybe-info-target-liboffloadmic info-target-liboffloadmic
39701maybe-info-target-liboffloadmic:
39702@if target-liboffloadmic
39703maybe-info-target-liboffloadmic: info-target-liboffloadmic
39704
39705info-target-liboffloadmic: \
39706 configure-target-liboffloadmic
39707 @: $(MAKE); $(unstage)
22121df0 39708 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39709 r=`${PWD_COMMAND}`; export r; \
39710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39711 $(NORMAL_TARGET_EXPORTS) \
22121df0 39712 echo "Doing info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39713 for flag in $(EXTRA_TARGET_FLAGS); do \
39714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39715 done; \
39716 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39719 "RANLIB=$${RANLIB}" \
39720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39721 info) \
39722 || exit 1
39723
39724@endif target-liboffloadmic
39725
39726.PHONY: maybe-dvi-target-liboffloadmic dvi-target-liboffloadmic
39727maybe-dvi-target-liboffloadmic:
39728@if target-liboffloadmic
39729maybe-dvi-target-liboffloadmic: dvi-target-liboffloadmic
39730
39731dvi-target-liboffloadmic: \
39732 configure-target-liboffloadmic
39733 @: $(MAKE); $(unstage)
22121df0 39734 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39735 r=`${PWD_COMMAND}`; export r; \
39736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39737 $(NORMAL_TARGET_EXPORTS) \
22121df0 39738 echo "Doing dvi in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39739 for flag in $(EXTRA_TARGET_FLAGS); do \
39740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39741 done; \
39742 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39745 "RANLIB=$${RANLIB}" \
39746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39747 dvi) \
39748 || exit 1
39749
39750@endif target-liboffloadmic
39751
39752.PHONY: maybe-pdf-target-liboffloadmic pdf-target-liboffloadmic
39753maybe-pdf-target-liboffloadmic:
39754@if target-liboffloadmic
39755maybe-pdf-target-liboffloadmic: pdf-target-liboffloadmic
39756
39757pdf-target-liboffloadmic: \
39758 configure-target-liboffloadmic
39759 @: $(MAKE); $(unstage)
22121df0 39760 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39761 r=`${PWD_COMMAND}`; export r; \
39762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39763 $(NORMAL_TARGET_EXPORTS) \
22121df0 39764 echo "Doing pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39765 for flag in $(EXTRA_TARGET_FLAGS); do \
39766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39767 done; \
39768 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39771 "RANLIB=$${RANLIB}" \
39772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39773 pdf) \
39774 || exit 1
39775
39776@endif target-liboffloadmic
39777
39778.PHONY: maybe-html-target-liboffloadmic html-target-liboffloadmic
39779maybe-html-target-liboffloadmic:
39780@if target-liboffloadmic
39781maybe-html-target-liboffloadmic: html-target-liboffloadmic
39782
39783html-target-liboffloadmic: \
39784 configure-target-liboffloadmic
39785 @: $(MAKE); $(unstage)
22121df0 39786 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39787 r=`${PWD_COMMAND}`; export r; \
39788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39789 $(NORMAL_TARGET_EXPORTS) \
22121df0 39790 echo "Doing html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39791 for flag in $(EXTRA_TARGET_FLAGS); do \
39792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39793 done; \
39794 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39797 "RANLIB=$${RANLIB}" \
39798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39799 html) \
39800 || exit 1
39801
39802@endif target-liboffloadmic
39803
39804.PHONY: maybe-TAGS-target-liboffloadmic TAGS-target-liboffloadmic
39805maybe-TAGS-target-liboffloadmic:
39806@if target-liboffloadmic
39807maybe-TAGS-target-liboffloadmic: TAGS-target-liboffloadmic
39808
39809TAGS-target-liboffloadmic: \
39810 configure-target-liboffloadmic
39811 @: $(MAKE); $(unstage)
22121df0 39812 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39813 r=`${PWD_COMMAND}`; export r; \
39814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39815 $(NORMAL_TARGET_EXPORTS) \
22121df0 39816 echo "Doing TAGS in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39817 for flag in $(EXTRA_TARGET_FLAGS); do \
39818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39819 done; \
39820 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39823 "RANLIB=$${RANLIB}" \
39824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39825 TAGS) \
39826 || exit 1
39827
39828@endif target-liboffloadmic
39829
39830.PHONY: maybe-install-info-target-liboffloadmic install-info-target-liboffloadmic
39831maybe-install-info-target-liboffloadmic:
39832@if target-liboffloadmic
39833maybe-install-info-target-liboffloadmic: install-info-target-liboffloadmic
39834
39835install-info-target-liboffloadmic: \
39836 configure-target-liboffloadmic \
39837 info-target-liboffloadmic
39838 @: $(MAKE); $(unstage)
22121df0 39839 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39840 r=`${PWD_COMMAND}`; export r; \
39841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39842 $(NORMAL_TARGET_EXPORTS) \
22121df0 39843 echo "Doing install-info in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39844 for flag in $(EXTRA_TARGET_FLAGS); do \
39845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39846 done; \
39847 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39850 "RANLIB=$${RANLIB}" \
39851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39852 install-info) \
39853 || exit 1
39854
39855@endif target-liboffloadmic
39856
39857.PHONY: maybe-install-pdf-target-liboffloadmic install-pdf-target-liboffloadmic
39858maybe-install-pdf-target-liboffloadmic:
39859@if target-liboffloadmic
39860maybe-install-pdf-target-liboffloadmic: install-pdf-target-liboffloadmic
39861
39862install-pdf-target-liboffloadmic: \
39863 configure-target-liboffloadmic \
39864 pdf-target-liboffloadmic
39865 @: $(MAKE); $(unstage)
22121df0 39866 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39867 r=`${PWD_COMMAND}`; export r; \
39868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39869 $(NORMAL_TARGET_EXPORTS) \
22121df0 39870 echo "Doing install-pdf in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39871 for flag in $(EXTRA_TARGET_FLAGS); do \
39872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39873 done; \
39874 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39877 "RANLIB=$${RANLIB}" \
39878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39879 install-pdf) \
39880 || exit 1
39881
39882@endif target-liboffloadmic
39883
39884.PHONY: maybe-install-html-target-liboffloadmic install-html-target-liboffloadmic
39885maybe-install-html-target-liboffloadmic:
39886@if target-liboffloadmic
39887maybe-install-html-target-liboffloadmic: install-html-target-liboffloadmic
39888
39889install-html-target-liboffloadmic: \
39890 configure-target-liboffloadmic \
39891 html-target-liboffloadmic
39892 @: $(MAKE); $(unstage)
22121df0 39893 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39894 r=`${PWD_COMMAND}`; export r; \
39895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39896 $(NORMAL_TARGET_EXPORTS) \
22121df0 39897 echo "Doing install-html in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39898 for flag in $(EXTRA_TARGET_FLAGS); do \
39899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39900 done; \
39901 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39904 "RANLIB=$${RANLIB}" \
39905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39906 install-html) \
39907 || exit 1
39908
39909@endif target-liboffloadmic
39910
39911.PHONY: maybe-installcheck-target-liboffloadmic installcheck-target-liboffloadmic
39912maybe-installcheck-target-liboffloadmic:
39913@if target-liboffloadmic
39914maybe-installcheck-target-liboffloadmic: installcheck-target-liboffloadmic
39915
39916installcheck-target-liboffloadmic: \
39917 configure-target-liboffloadmic
39918 @: $(MAKE); $(unstage)
22121df0 39919 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39920 r=`${PWD_COMMAND}`; export r; \
39921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39922 $(NORMAL_TARGET_EXPORTS) \
22121df0 39923 echo "Doing installcheck in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39924 for flag in $(EXTRA_TARGET_FLAGS); do \
39925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39926 done; \
39927 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39930 "RANLIB=$${RANLIB}" \
39931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39932 installcheck) \
39933 || exit 1
39934
39935@endif target-liboffloadmic
39936
39937.PHONY: maybe-mostlyclean-target-liboffloadmic mostlyclean-target-liboffloadmic
39938maybe-mostlyclean-target-liboffloadmic:
39939@if target-liboffloadmic
39940maybe-mostlyclean-target-liboffloadmic: mostlyclean-target-liboffloadmic
39941
39942mostlyclean-target-liboffloadmic:
39943 @: $(MAKE); $(unstage)
22121df0 39944 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39945 r=`${PWD_COMMAND}`; export r; \
39946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39947 $(NORMAL_TARGET_EXPORTS) \
22121df0 39948 echo "Doing mostlyclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39949 for flag in $(EXTRA_TARGET_FLAGS); do \
39950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39951 done; \
39952 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39955 "RANLIB=$${RANLIB}" \
39956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39957 mostlyclean) \
39958 || exit 1
39959
39960@endif target-liboffloadmic
39961
39962.PHONY: maybe-clean-target-liboffloadmic clean-target-liboffloadmic
39963maybe-clean-target-liboffloadmic:
39964@if target-liboffloadmic
39965maybe-clean-target-liboffloadmic: clean-target-liboffloadmic
39966
39967clean-target-liboffloadmic:
39968 @: $(MAKE); $(unstage)
22121df0 39969 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39970 r=`${PWD_COMMAND}`; export r; \
39971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39972 $(NORMAL_TARGET_EXPORTS) \
22121df0 39973 echo "Doing clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39974 for flag in $(EXTRA_TARGET_FLAGS); do \
39975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39976 done; \
39977 (cd $(TARGET_SUBDIR)/liboffloadmic && \
39978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39980 "RANLIB=$${RANLIB}" \
39981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
39982 clean) \
39983 || exit 1
39984
39985@endif target-liboffloadmic
39986
39987.PHONY: maybe-distclean-target-liboffloadmic distclean-target-liboffloadmic
39988maybe-distclean-target-liboffloadmic:
39989@if target-liboffloadmic
39990maybe-distclean-target-liboffloadmic: distclean-target-liboffloadmic
39991
39992distclean-target-liboffloadmic:
39993 @: $(MAKE); $(unstage)
22121df0 39994 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
39995 r=`${PWD_COMMAND}`; export r; \
39996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39997 $(NORMAL_TARGET_EXPORTS) \
22121df0 39998 echo "Doing distclean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
39999 for flag in $(EXTRA_TARGET_FLAGS); do \
40000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40001 done; \
40002 (cd $(TARGET_SUBDIR)/liboffloadmic && \
40003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40005 "RANLIB=$${RANLIB}" \
40006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40007 distclean) \
40008 || exit 1
40009
40010@endif target-liboffloadmic
40011
40012.PHONY: maybe-maintainer-clean-target-liboffloadmic maintainer-clean-target-liboffloadmic
40013maybe-maintainer-clean-target-liboffloadmic:
40014@if target-liboffloadmic
40015maybe-maintainer-clean-target-liboffloadmic: maintainer-clean-target-liboffloadmic
40016
40017maintainer-clean-target-liboffloadmic:
40018 @: $(MAKE); $(unstage)
22121df0 40019 @[ -f $(TARGET_SUBDIR)/liboffloadmic/Makefile ] || exit 0; \
1b6c0831
L
40020 r=`${PWD_COMMAND}`; export r; \
40021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40022 $(NORMAL_TARGET_EXPORTS) \
22121df0 40023 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/liboffloadmic"; \
1b6c0831
L
40024 for flag in $(EXTRA_TARGET_FLAGS); do \
40025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40026 done; \
40027 (cd $(TARGET_SUBDIR)/liboffloadmic && \
40028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40030 "RANLIB=$${RANLIB}" \
40031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40032 maintainer-clean) \
40033 || exit 1
40034
40035@endif target-liboffloadmic
40036
40037
40038
40039
40040
a90ef4bf
JM
40041.PHONY: configure-target-libssp maybe-configure-target-libssp
40042maybe-configure-target-libssp:
4f0ef2d8 40043@if gcc-bootstrap
a90ef4bf 40044configure-target-libssp: stage_current
4f0ef2d8 40045@endif gcc-bootstrap
a90ef4bf
JM
40046@if target-libssp
40047maybe-configure-target-libssp: configure-target-libssp
40048configure-target-libssp:
0aed8855
PB
40049 @: $(MAKE); $(unstage)
40050 @r=`${PWD_COMMAND}`; export r; \
40051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40052 echo "Checking multilib configuration for libssp..."; \
22121df0
L
40053 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
40054 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40055 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
40056 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
40057 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
0aed8855 40058 else \
a90ef4bf
JM
40059 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
40060 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
0aed8855
PB
40061 fi; \
40062 else \
a90ef4bf 40063 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
c52c6897 40064 fi; \
a90ef4bf 40065 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
22121df0 40066 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp; \
1f53ca9a 40067 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40068 echo Configuring in $(TARGET_SUBDIR)/libssp; \
40069 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
4b1cb4fe 40070 case $(srcdir) in \
b00612cc 40071 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40072 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
b00612cc 40073 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4b1cb4fe 40074 esac; \
1b6c0831 40075 module_srcdir=libssp; \
4b1cb4fe 40076 rm -f no-such-file || : ; \
1b6c0831
L
40077 CONFIG_SITE=no-such-file $(SHELL) \
40078 $$s/$$module_srcdir/configure \
40079 --srcdir=$${topdir}/$$module_srcdir \
4b900473 40080 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40081 --target=${target_alias} \
4b1cb4fe 40082 || exit 1
a90ef4bf 40083@endif target-libssp
4b1cb4fe 40084
a7254363
PB
40085
40086
d545f33b
PB
40087
40088
a90ef4bf
JM
40089.PHONY: all-target-libssp maybe-all-target-libssp
40090maybe-all-target-libssp:
4f0ef2d8 40091@if gcc-bootstrap
a90ef4bf 40092all-target-libssp: stage_current
4f0ef2d8 40093@endif gcc-bootstrap
a90ef4bf
JM
40094@if target-libssp
40095TARGET-target-libssp=all
40096maybe-all-target-libssp: all-target-libssp
40097all-target-libssp: configure-target-libssp
0aed8855 40098 @: $(MAKE); $(unstage)
4b1cb4fe
DD
40099 @r=`${PWD_COMMAND}`; export r; \
40100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 40101 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40102 (cd $(TARGET_SUBDIR)/libssp && \
b3676d82 40103 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40104 $(TARGET-target-libssp))
40105@endif target-libssp
4b1cb4fe 40106
a7254363
PB
40107
40108
d545f33b
PB
40109
40110
a90ef4bf
JM
40111.PHONY: check-target-libssp maybe-check-target-libssp
40112maybe-check-target-libssp:
40113@if target-libssp
40114maybe-check-target-libssp: check-target-libssp
4b1cb4fe 40115
a90ef4bf 40116check-target-libssp:
0aed8855 40117 @: $(MAKE); $(unstage)
b40e3958
L
40118 @r=`${PWD_COMMAND}`; export r; \
40119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40120 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40121 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 40122 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 40123
a90ef4bf 40124@endif target-libssp
3866be5d 40125
a90ef4bf
JM
40126.PHONY: install-target-libssp maybe-install-target-libssp
40127maybe-install-target-libssp:
40128@if target-libssp
40129maybe-install-target-libssp: install-target-libssp
e2b9e2dc 40130
a90ef4bf 40131install-target-libssp: installdirs
0aed8855 40132 @: $(MAKE); $(unstage)
b40e3958
L
40133 @r=`${PWD_COMMAND}`; export r; \
40134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40135 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40136 (cd $(TARGET_SUBDIR)/libssp && \
7ffa0b57 40137 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 40138
a90ef4bf 40139@endif target-libssp
3866be5d 40140
a90ef4bf
JM
40141.PHONY: install-strip-target-libssp maybe-install-strip-target-libssp
40142maybe-install-strip-target-libssp:
40143@if target-libssp
40144maybe-install-strip-target-libssp: install-strip-target-libssp
9b980aa1 40145
a90ef4bf 40146install-strip-target-libssp: installdirs
9b980aa1
RW
40147 @: $(MAKE); $(unstage)
40148 @r=`${PWD_COMMAND}`; export r; \
40149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40150 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40151 (cd $(TARGET_SUBDIR)/libssp && \
9b980aa1
RW
40152 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40153
a90ef4bf 40154@endif target-libssp
9b980aa1 40155
56a8fe78 40156# Other targets (info, dvi, pdf, etc.)
3866be5d 40157
a90ef4bf
JM
40158.PHONY: maybe-info-target-libssp info-target-libssp
40159maybe-info-target-libssp:
40160@if target-libssp
40161maybe-info-target-libssp: info-target-libssp
3866be5d 40162
a90ef4bf
JM
40163info-target-libssp: \
40164 configure-target-libssp
0aed8855 40165 @: $(MAKE); $(unstage)
22121df0 40166 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067
NN
40167 r=`${PWD_COMMAND}`; export r; \
40168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40169 $(NORMAL_TARGET_EXPORTS) \
22121df0 40170 echo "Doing info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40171 for flag in $(EXTRA_TARGET_FLAGS); do \
40172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40173 done; \
a90ef4bf 40174 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40177 "RANLIB=$${RANLIB}" \
0c24b341 40178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40179 info) \
4fa63067 40180 || exit 1
16ae0395 40181
a90ef4bf 40182@endif target-libssp
3866be5d 40183
a90ef4bf
JM
40184.PHONY: maybe-dvi-target-libssp dvi-target-libssp
40185maybe-dvi-target-libssp:
40186@if target-libssp
40187maybe-dvi-target-libssp: dvi-target-libssp
3866be5d 40188
a90ef4bf
JM
40189dvi-target-libssp: \
40190 configure-target-libssp
0aed8855 40191 @: $(MAKE); $(unstage)
22121df0 40192 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
40193 r=`${PWD_COMMAND}`; export r; \
40194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40195 $(NORMAL_TARGET_EXPORTS) \
22121df0 40196 echo "Doing dvi in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40197 for flag in $(EXTRA_TARGET_FLAGS); do \
40198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40199 done; \
a90ef4bf 40200 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40203 "RANLIB=$${RANLIB}" \
0c24b341 40204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 40205 dvi) \
e2b9e2dc
NN
40206 || exit 1
40207
a90ef4bf 40208@endif target-libssp
3866be5d 40209
a90ef4bf
JM
40210.PHONY: maybe-pdf-target-libssp pdf-target-libssp
40211maybe-pdf-target-libssp:
40212@if target-libssp
40213maybe-pdf-target-libssp: pdf-target-libssp
56a8fe78 40214
a90ef4bf
JM
40215pdf-target-libssp: \
40216 configure-target-libssp
56a8fe78 40217 @: $(MAKE); $(unstage)
22121df0 40218 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
56a8fe78
DD
40219 r=`${PWD_COMMAND}`; export r; \
40220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40221 $(NORMAL_TARGET_EXPORTS) \
22121df0 40222 echo "Doing pdf in $(TARGET_SUBDIR)/libssp"; \
56a8fe78
DD
40223 for flag in $(EXTRA_TARGET_FLAGS); do \
40224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40225 done; \
a90ef4bf 40226 (cd $(TARGET_SUBDIR)/libssp && \
56a8fe78
DD
40227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40229 "RANLIB=$${RANLIB}" \
0c24b341 40230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
40231 pdf) \
40232 || exit 1
40233
a90ef4bf 40234@endif target-libssp
a3ca38d2 40235
a90ef4bf
JM
40236.PHONY: maybe-html-target-libssp html-target-libssp
40237maybe-html-target-libssp:
40238@if target-libssp
40239maybe-html-target-libssp: html-target-libssp
108a6f8e 40240
a90ef4bf
JM
40241html-target-libssp: \
40242 configure-target-libssp
108a6f8e 40243 @: $(MAKE); $(unstage)
22121df0 40244 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
108a6f8e
CD
40245 r=`${PWD_COMMAND}`; export r; \
40246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40247 $(NORMAL_TARGET_EXPORTS) \
22121df0 40248 echo "Doing html in $(TARGET_SUBDIR)/libssp"; \
108a6f8e
CD
40249 for flag in $(EXTRA_TARGET_FLAGS); do \
40250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40251 done; \
a90ef4bf 40252 (cd $(TARGET_SUBDIR)/libssp && \
108a6f8e
CD
40253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40255 "RANLIB=$${RANLIB}" \
0c24b341 40256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40257 html) \
108a6f8e
CD
40258 || exit 1
40259
a90ef4bf 40260@endif target-libssp
108a6f8e 40261
a90ef4bf
JM
40262.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
40263maybe-TAGS-target-libssp:
40264@if target-libssp
40265maybe-TAGS-target-libssp: TAGS-target-libssp
4fa63067 40266
a90ef4bf
JM
40267TAGS-target-libssp: \
40268 configure-target-libssp
0aed8855 40269 @: $(MAKE); $(unstage)
22121df0 40270 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
40271 r=`${PWD_COMMAND}`; export r; \
40272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40273 $(NORMAL_TARGET_EXPORTS) \
22121df0 40274 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40275 for flag in $(EXTRA_TARGET_FLAGS); do \
40276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40277 done; \
a90ef4bf 40278 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40281 "RANLIB=$${RANLIB}" \
0c24b341 40282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40283 TAGS) \
e2b9e2dc
NN
40284 || exit 1
40285
a90ef4bf 40286@endif target-libssp
3866be5d 40287
a90ef4bf
JM
40288.PHONY: maybe-install-info-target-libssp install-info-target-libssp
40289maybe-install-info-target-libssp:
40290@if target-libssp
40291maybe-install-info-target-libssp: install-info-target-libssp
3866be5d 40292
a90ef4bf
JM
40293install-info-target-libssp: \
40294 configure-target-libssp \
40295 info-target-libssp
0aed8855 40296 @: $(MAKE); $(unstage)
22121df0 40297 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 40298 r=`${PWD_COMMAND}`; export r; \
b40e3958 40299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40300 $(NORMAL_TARGET_EXPORTS) \
22121df0 40301 echo "Doing install-info in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40302 for flag in $(EXTRA_TARGET_FLAGS); do \
40303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40304 done; \
a90ef4bf 40305 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40308 "RANLIB=$${RANLIB}" \
0c24b341 40309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40310 install-info) \
4fa63067 40311 || exit 1
3866be5d 40312
a90ef4bf 40313@endif target-libssp
3866be5d 40314
a90ef4bf
JM
40315.PHONY: maybe-install-pdf-target-libssp install-pdf-target-libssp
40316maybe-install-pdf-target-libssp:
40317@if target-libssp
40318maybe-install-pdf-target-libssp: install-pdf-target-libssp
16ae0395 40319
a90ef4bf
JM
40320install-pdf-target-libssp: \
40321 configure-target-libssp \
40322 pdf-target-libssp
0aed8855 40323 @: $(MAKE); $(unstage)
22121df0 40324 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 40325 r=`${PWD_COMMAND}`; export r; \
b40e3958 40326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40327 $(NORMAL_TARGET_EXPORTS) \
22121df0 40328 echo "Doing install-pdf in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40329 for flag in $(EXTRA_TARGET_FLAGS); do \
40330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40331 done; \
a90ef4bf 40332 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40335 "RANLIB=$${RANLIB}" \
0c24b341 40336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40337 install-pdf) \
4fa63067 40338 || exit 1
3866be5d 40339
a90ef4bf 40340@endif target-libssp
3866be5d 40341
a90ef4bf
JM
40342.PHONY: maybe-install-html-target-libssp install-html-target-libssp
40343maybe-install-html-target-libssp:
40344@if target-libssp
40345maybe-install-html-target-libssp: install-html-target-libssp
4fa63067 40346
a90ef4bf
JM
40347install-html-target-libssp: \
40348 configure-target-libssp \
40349 html-target-libssp
0aed8855 40350 @: $(MAKE); $(unstage)
22121df0 40351 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
b40e3958
L
40352 r=`${PWD_COMMAND}`; export r; \
40353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40354 $(NORMAL_TARGET_EXPORTS) \
22121df0 40355 echo "Doing install-html in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40356 for flag in $(EXTRA_TARGET_FLAGS); do \
40357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40358 done; \
a90ef4bf 40359 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40362 "RANLIB=$${RANLIB}" \
0c24b341 40363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40364 install-html) \
e2b9e2dc
NN
40365 || exit 1
40366
a90ef4bf 40367@endif target-libssp
3866be5d 40368
a90ef4bf
JM
40369.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
40370maybe-installcheck-target-libssp:
40371@if target-libssp
40372maybe-installcheck-target-libssp: installcheck-target-libssp
3866be5d 40373
a90ef4bf
JM
40374installcheck-target-libssp: \
40375 configure-target-libssp
0aed8855 40376 @: $(MAKE); $(unstage)
22121df0 40377 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
4fa63067 40378 r=`${PWD_COMMAND}`; export r; \
b40e3958 40379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 40380 $(NORMAL_TARGET_EXPORTS) \
22121df0 40381 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp"; \
4fa63067
NN
40382 for flag in $(EXTRA_TARGET_FLAGS); do \
40383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40384 done; \
a90ef4bf 40385 (cd $(TARGET_SUBDIR)/libssp && \
4fa63067
NN
40386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40388 "RANLIB=$${RANLIB}" \
0c24b341 40389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 40390 installcheck) \
6aa8ef82 40391 || exit 1
6aa8ef82 40392
a90ef4bf 40393@endif target-libssp
6aa8ef82 40394
a90ef4bf
JM
40395.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
40396maybe-mostlyclean-target-libssp:
40397@if target-libssp
40398maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
6aa8ef82 40399
a90ef4bf
JM
40400mostlyclean-target-libssp:
40401 @: $(MAKE); $(unstage)
22121df0 40402 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40403 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40405 $(NORMAL_TARGET_EXPORTS) \
22121df0 40406 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40407 for flag in $(EXTRA_TARGET_FLAGS); do \
40408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40409 done; \
40410 (cd $(TARGET_SUBDIR)/libssp && \
40411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40413 "RANLIB=$${RANLIB}" \
40414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40415 mostlyclean) \
40416 || exit 1
6aa8ef82 40417
a90ef4bf 40418@endif target-libssp
6aa8ef82 40419
a90ef4bf
JM
40420.PHONY: maybe-clean-target-libssp clean-target-libssp
40421maybe-clean-target-libssp:
40422@if target-libssp
40423maybe-clean-target-libssp: clean-target-libssp
6aa8ef82 40424
a90ef4bf
JM
40425clean-target-libssp:
40426 @: $(MAKE); $(unstage)
22121df0 40427 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40428 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40430 $(NORMAL_TARGET_EXPORTS) \
22121df0 40431 echo "Doing clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40432 for flag in $(EXTRA_TARGET_FLAGS); do \
40433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40434 done; \
40435 (cd $(TARGET_SUBDIR)/libssp && \
40436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40438 "RANLIB=$${RANLIB}" \
40439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40440 clean) \
40441 || exit 1
6aa8ef82 40442
a90ef4bf 40443@endif target-libssp
6aa8ef82 40444
a90ef4bf
JM
40445.PHONY: maybe-distclean-target-libssp distclean-target-libssp
40446maybe-distclean-target-libssp:
40447@if target-libssp
40448maybe-distclean-target-libssp: distclean-target-libssp
6aa8ef82 40449
a90ef4bf
JM
40450distclean-target-libssp:
40451 @: $(MAKE); $(unstage)
22121df0 40452 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40453 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40455 $(NORMAL_TARGET_EXPORTS) \
22121df0 40456 echo "Doing distclean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40457 for flag in $(EXTRA_TARGET_FLAGS); do \
40458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40459 done; \
40460 (cd $(TARGET_SUBDIR)/libssp && \
40461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40463 "RANLIB=$${RANLIB}" \
40464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40465 distclean) \
40466 || exit 1
6aa8ef82 40467
a90ef4bf 40468@endif target-libssp
6aa8ef82 40469
a90ef4bf
JM
40470.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
40471maybe-maintainer-clean-target-libssp:
40472@if target-libssp
40473maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
6aa8ef82 40474
a90ef4bf
JM
40475maintainer-clean-target-libssp:
40476 @: $(MAKE); $(unstage)
22121df0 40477 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0; \
a90ef4bf 40478 r=`${PWD_COMMAND}`; export r; \
6aa8ef82
DJ
40479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40480 $(NORMAL_TARGET_EXPORTS) \
22121df0 40481 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp"; \
a90ef4bf
JM
40482 for flag in $(EXTRA_TARGET_FLAGS); do \
40483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40484 done; \
40485 (cd $(TARGET_SUBDIR)/libssp && \
40486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40488 "RANLIB=$${RANLIB}" \
40489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
40490 maintainer-clean) \
40491 || exit 1
6aa8ef82 40492
a90ef4bf 40493@endif target-libssp
6aa8ef82
DJ
40494
40495
a90ef4bf
JM
40496
40497
40498
40499.PHONY: configure-target-newlib maybe-configure-target-newlib
40500maybe-configure-target-newlib:
40501@if gcc-bootstrap
40502configure-target-newlib: stage_current
40503@endif gcc-bootstrap
40504@if target-newlib
40505maybe-configure-target-newlib: configure-target-newlib
40506configure-target-newlib:
40507 @: $(MAKE); $(unstage)
6aa8ef82
DJ
40508 @r=`${PWD_COMMAND}`; export r; \
40509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40510 echo "Checking multilib configuration for newlib..."; \
22121df0
L
40511 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
40512 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40513 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
40514 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
40515 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
40516 else \
40517 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
40518 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
40519 fi; \
6aa8ef82 40520 else \
a90ef4bf 40521 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
6aa8ef82 40522 fi; \
a90ef4bf 40523 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
22121df0 40524 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib; \
a90ef4bf
JM
40525 $(NORMAL_TARGET_EXPORTS) \
40526 echo Configuring in $(TARGET_SUBDIR)/newlib; \
40527 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
40528 case $(srcdir) in \
40529 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40530 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
40531 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40532 esac; \
1b6c0831 40533 module_srcdir=newlib; \
a90ef4bf 40534 rm -f no-such-file || : ; \
1b6c0831
L
40535 CONFIG_SITE=no-such-file $(SHELL) \
40536 $$s/$$module_srcdir/configure \
40537 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 40538 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40539 --target=${target_alias} \
a90ef4bf
JM
40540 || exit 1
40541@endif target-newlib
6aa8ef82
DJ
40542
40543
40544
40545
40546
a90ef4bf
JM
40547.PHONY: all-target-newlib maybe-all-target-newlib
40548maybe-all-target-newlib:
40549@if gcc-bootstrap
40550all-target-newlib: stage_current
40551@endif gcc-bootstrap
40552@if target-newlib
40553TARGET-target-newlib=all
40554maybe-all-target-newlib: all-target-newlib
40555all-target-newlib: configure-target-newlib
40556 @: $(MAKE); $(unstage)
40557 @r=`${PWD_COMMAND}`; export r; \
40558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40559 $(NORMAL_TARGET_EXPORTS) \
40560 (cd $(TARGET_SUBDIR)/newlib && \
b3676d82 40561 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
40562 $(TARGET-target-newlib))
40563@endif target-newlib
6aa8ef82 40564
6aa8ef82 40565
6aa8ef82 40566
6aa8ef82 40567
6aa8ef82 40568
a90ef4bf
JM
40569.PHONY: check-target-newlib maybe-check-target-newlib
40570maybe-check-target-newlib:
40571@if target-newlib
40572maybe-check-target-newlib: check-target-newlib
40573
40574check-target-newlib:
6aa8ef82
DJ
40575 @: $(MAKE); $(unstage)
40576 @r=`${PWD_COMMAND}`; export r; \
40577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40578 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40579 (cd $(TARGET_SUBDIR)/newlib && \
40580 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
40581
40582@endif target-newlib
40583
40584.PHONY: install-target-newlib maybe-install-target-newlib
40585maybe-install-target-newlib:
40586@if target-newlib
40587maybe-install-target-newlib: install-target-newlib
40588
40589install-target-newlib: installdirs
40590 @: $(MAKE); $(unstage)
40591 @r=`${PWD_COMMAND}`; export r; \
40592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40593 $(NORMAL_TARGET_EXPORTS) \
40594 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40595 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
40596
a90ef4bf 40597@endif target-newlib
6aa8ef82 40598
a90ef4bf
JM
40599.PHONY: install-strip-target-newlib maybe-install-strip-target-newlib
40600maybe-install-strip-target-newlib:
40601@if target-newlib
40602maybe-install-strip-target-newlib: install-strip-target-newlib
9b980aa1 40603
a90ef4bf 40604install-strip-target-newlib: installdirs
9b980aa1
RW
40605 @: $(MAKE); $(unstage)
40606 @r=`${PWD_COMMAND}`; export r; \
40607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40608 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 40609 (cd $(TARGET_SUBDIR)/newlib && \
9b980aa1
RW
40610 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
40611
a90ef4bf 40612@endif target-newlib
9b980aa1 40613
6aa8ef82
DJ
40614# Other targets (info, dvi, pdf, etc.)
40615
a90ef4bf
JM
40616.PHONY: maybe-info-target-newlib info-target-newlib
40617maybe-info-target-newlib:
40618@if target-newlib
40619maybe-info-target-newlib: info-target-newlib
6aa8ef82 40620
a90ef4bf
JM
40621info-target-newlib: \
40622 configure-target-newlib
6aa8ef82 40623 @: $(MAKE); $(unstage)
22121df0 40624 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40625 r=`${PWD_COMMAND}`; export r; \
40626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40627 $(NORMAL_TARGET_EXPORTS) \
22121df0 40628 echo "Doing info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40629 for flag in $(EXTRA_TARGET_FLAGS); do \
40630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40631 done; \
a90ef4bf 40632 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40635 "RANLIB=$${RANLIB}" \
0c24b341 40636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40637 info) \
40638 || exit 1
40639
a90ef4bf 40640@endif target-newlib
6aa8ef82 40641
a90ef4bf
JM
40642.PHONY: maybe-dvi-target-newlib dvi-target-newlib
40643maybe-dvi-target-newlib:
40644@if target-newlib
40645maybe-dvi-target-newlib: dvi-target-newlib
6aa8ef82 40646
a90ef4bf
JM
40647dvi-target-newlib: \
40648 configure-target-newlib
6aa8ef82 40649 @: $(MAKE); $(unstage)
22121df0 40650 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40651 r=`${PWD_COMMAND}`; export r; \
40652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40653 $(NORMAL_TARGET_EXPORTS) \
22121df0 40654 echo "Doing dvi in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40655 for flag in $(EXTRA_TARGET_FLAGS); do \
40656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40657 done; \
a90ef4bf 40658 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40661 "RANLIB=$${RANLIB}" \
0c24b341 40662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40663 dvi) \
40664 || exit 1
40665
a90ef4bf 40666@endif target-newlib
6aa8ef82 40667
a90ef4bf
JM
40668.PHONY: maybe-pdf-target-newlib pdf-target-newlib
40669maybe-pdf-target-newlib:
40670@if target-newlib
40671maybe-pdf-target-newlib: pdf-target-newlib
6aa8ef82 40672
a90ef4bf
JM
40673pdf-target-newlib: \
40674 configure-target-newlib
6aa8ef82 40675 @: $(MAKE); $(unstage)
22121df0 40676 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40677 r=`${PWD_COMMAND}`; export r; \
40678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40679 $(NORMAL_TARGET_EXPORTS) \
22121df0 40680 echo "Doing pdf in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40681 for flag in $(EXTRA_TARGET_FLAGS); do \
40682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40683 done; \
a90ef4bf 40684 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40687 "RANLIB=$${RANLIB}" \
0c24b341 40688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40689 pdf) \
40690 || exit 1
40691
a90ef4bf 40692@endif target-newlib
6aa8ef82 40693
a90ef4bf
JM
40694.PHONY: maybe-html-target-newlib html-target-newlib
40695maybe-html-target-newlib:
40696@if target-newlib
40697maybe-html-target-newlib: html-target-newlib
6aa8ef82 40698
a90ef4bf
JM
40699html-target-newlib: \
40700 configure-target-newlib
6aa8ef82 40701 @: $(MAKE); $(unstage)
22121df0 40702 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40703 r=`${PWD_COMMAND}`; export r; \
40704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40705 $(NORMAL_TARGET_EXPORTS) \
22121df0 40706 echo "Doing html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40707 for flag in $(EXTRA_TARGET_FLAGS); do \
40708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40709 done; \
a90ef4bf 40710 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40713 "RANLIB=$${RANLIB}" \
0c24b341 40714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40715 html) \
40716 || exit 1
40717
a90ef4bf 40718@endif target-newlib
6aa8ef82 40719
a90ef4bf
JM
40720.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
40721maybe-TAGS-target-newlib:
40722@if target-newlib
40723maybe-TAGS-target-newlib: TAGS-target-newlib
6aa8ef82 40724
a90ef4bf
JM
40725TAGS-target-newlib: \
40726 configure-target-newlib
6aa8ef82 40727 @: $(MAKE); $(unstage)
22121df0 40728 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40729 r=`${PWD_COMMAND}`; export r; \
40730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40731 $(NORMAL_TARGET_EXPORTS) \
22121df0 40732 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40733 for flag in $(EXTRA_TARGET_FLAGS); do \
40734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40735 done; \
a90ef4bf 40736 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40739 "RANLIB=$${RANLIB}" \
0c24b341 40740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40741 TAGS) \
40742 || exit 1
40743
a90ef4bf 40744@endif target-newlib
6aa8ef82 40745
a90ef4bf
JM
40746.PHONY: maybe-install-info-target-newlib install-info-target-newlib
40747maybe-install-info-target-newlib:
40748@if target-newlib
40749maybe-install-info-target-newlib: install-info-target-newlib
6aa8ef82 40750
a90ef4bf
JM
40751install-info-target-newlib: \
40752 configure-target-newlib \
40753 info-target-newlib
6aa8ef82 40754 @: $(MAKE); $(unstage)
22121df0 40755 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40756 r=`${PWD_COMMAND}`; export r; \
40757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40758 $(NORMAL_TARGET_EXPORTS) \
22121df0 40759 echo "Doing install-info in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40760 for flag in $(EXTRA_TARGET_FLAGS); do \
40761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40762 done; \
a90ef4bf 40763 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40766 "RANLIB=$${RANLIB}" \
0c24b341 40767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40768 install-info) \
40769 || exit 1
40770
a90ef4bf 40771@endif target-newlib
6aa8ef82 40772
a90ef4bf
JM
40773.PHONY: maybe-install-pdf-target-newlib install-pdf-target-newlib
40774maybe-install-pdf-target-newlib:
40775@if target-newlib
40776maybe-install-pdf-target-newlib: install-pdf-target-newlib
a3ca38d2 40777
a90ef4bf
JM
40778install-pdf-target-newlib: \
40779 configure-target-newlib \
40780 pdf-target-newlib
a3ca38d2 40781 @: $(MAKE); $(unstage)
22121df0 40782 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
a3ca38d2
DD
40783 r=`${PWD_COMMAND}`; export r; \
40784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40785 $(NORMAL_TARGET_EXPORTS) \
22121df0 40786 echo "Doing install-pdf in $(TARGET_SUBDIR)/newlib"; \
a3ca38d2
DD
40787 for flag in $(EXTRA_TARGET_FLAGS); do \
40788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40789 done; \
a90ef4bf 40790 (cd $(TARGET_SUBDIR)/newlib && \
a3ca38d2
DD
40791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40793 "RANLIB=$${RANLIB}" \
0c24b341 40794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
40795 install-pdf) \
40796 || exit 1
40797
a90ef4bf 40798@endif target-newlib
a3ca38d2 40799
a90ef4bf
JM
40800.PHONY: maybe-install-html-target-newlib install-html-target-newlib
40801maybe-install-html-target-newlib:
40802@if target-newlib
40803maybe-install-html-target-newlib: install-html-target-newlib
6aa8ef82 40804
a90ef4bf
JM
40805install-html-target-newlib: \
40806 configure-target-newlib \
40807 html-target-newlib
6aa8ef82 40808 @: $(MAKE); $(unstage)
22121df0 40809 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40810 r=`${PWD_COMMAND}`; export r; \
40811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40812 $(NORMAL_TARGET_EXPORTS) \
22121df0 40813 echo "Doing install-html in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40814 for flag in $(EXTRA_TARGET_FLAGS); do \
40815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40816 done; \
a90ef4bf 40817 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40820 "RANLIB=$${RANLIB}" \
0c24b341 40821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40822 install-html) \
40823 || exit 1
40824
a90ef4bf 40825@endif target-newlib
6aa8ef82 40826
a90ef4bf
JM
40827.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
40828maybe-installcheck-target-newlib:
40829@if target-newlib
40830maybe-installcheck-target-newlib: installcheck-target-newlib
6aa8ef82 40831
a90ef4bf
JM
40832installcheck-target-newlib: \
40833 configure-target-newlib
6aa8ef82 40834 @: $(MAKE); $(unstage)
22121df0 40835 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40836 r=`${PWD_COMMAND}`; export r; \
40837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40838 $(NORMAL_TARGET_EXPORTS) \
22121df0 40839 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40840 for flag in $(EXTRA_TARGET_FLAGS); do \
40841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40842 done; \
a90ef4bf 40843 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40846 "RANLIB=$${RANLIB}" \
0c24b341 40847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40848 installcheck) \
40849 || exit 1
40850
a90ef4bf 40851@endif target-newlib
6aa8ef82 40852
a90ef4bf
JM
40853.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
40854maybe-mostlyclean-target-newlib:
40855@if target-newlib
40856maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
6aa8ef82 40857
a90ef4bf 40858mostlyclean-target-newlib:
6aa8ef82 40859 @: $(MAKE); $(unstage)
22121df0 40860 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40861 r=`${PWD_COMMAND}`; export r; \
40862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40863 $(NORMAL_TARGET_EXPORTS) \
22121df0 40864 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40865 for flag in $(EXTRA_TARGET_FLAGS); do \
40866 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40867 done; \
a90ef4bf 40868 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40871 "RANLIB=$${RANLIB}" \
0c24b341 40872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40873 mostlyclean) \
40874 || exit 1
40875
a90ef4bf 40876@endif target-newlib
6aa8ef82 40877
a90ef4bf
JM
40878.PHONY: maybe-clean-target-newlib clean-target-newlib
40879maybe-clean-target-newlib:
40880@if target-newlib
40881maybe-clean-target-newlib: clean-target-newlib
6aa8ef82 40882
a90ef4bf 40883clean-target-newlib:
6aa8ef82 40884 @: $(MAKE); $(unstage)
22121df0 40885 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40886 r=`${PWD_COMMAND}`; export r; \
40887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40888 $(NORMAL_TARGET_EXPORTS) \
22121df0 40889 echo "Doing clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40890 for flag in $(EXTRA_TARGET_FLAGS); do \
40891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40892 done; \
a90ef4bf 40893 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40896 "RANLIB=$${RANLIB}" \
0c24b341 40897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40898 clean) \
40899 || exit 1
40900
a90ef4bf 40901@endif target-newlib
6aa8ef82 40902
a90ef4bf
JM
40903.PHONY: maybe-distclean-target-newlib distclean-target-newlib
40904maybe-distclean-target-newlib:
40905@if target-newlib
40906maybe-distclean-target-newlib: distclean-target-newlib
6aa8ef82 40907
a90ef4bf 40908distclean-target-newlib:
6aa8ef82 40909 @: $(MAKE); $(unstage)
22121df0 40910 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40911 r=`${PWD_COMMAND}`; export r; \
40912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40913 $(NORMAL_TARGET_EXPORTS) \
22121df0 40914 echo "Doing distclean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40915 for flag in $(EXTRA_TARGET_FLAGS); do \
40916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40917 done; \
a90ef4bf 40918 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40921 "RANLIB=$${RANLIB}" \
0c24b341 40922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40923 distclean) \
40924 || exit 1
40925
a90ef4bf 40926@endif target-newlib
6aa8ef82 40927
a90ef4bf
JM
40928.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
40929maybe-maintainer-clean-target-newlib:
40930@if target-newlib
40931maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
6aa8ef82 40932
a90ef4bf 40933maintainer-clean-target-newlib:
6aa8ef82 40934 @: $(MAKE); $(unstage)
22121df0 40935 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0; \
6aa8ef82
DJ
40936 r=`${PWD_COMMAND}`; export r; \
40937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40938 $(NORMAL_TARGET_EXPORTS) \
22121df0 40939 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib"; \
6aa8ef82
DJ
40940 for flag in $(EXTRA_TARGET_FLAGS); do \
40941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40942 done; \
a90ef4bf 40943 (cd $(TARGET_SUBDIR)/newlib && \
6aa8ef82
DJ
40944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40946 "RANLIB=$${RANLIB}" \
0c24b341 40947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6aa8ef82
DJ
40948 maintainer-clean) \
40949 || exit 1
40950
a90ef4bf 40951@endif target-newlib
6aa8ef82
DJ
40952
40953
40954
40955
40956
a90ef4bf
JM
40957.PHONY: configure-target-libgcc maybe-configure-target-libgcc
40958maybe-configure-target-libgcc:
e552509b 40959@if gcc-bootstrap
a90ef4bf 40960configure-target-libgcc: stage_current
e552509b 40961@endif gcc-bootstrap
a90ef4bf
JM
40962@if target-libgcc
40963maybe-configure-target-libgcc: configure-target-libgcc
40964configure-target-libgcc:
e552509b
ILT
40965 @r=`${PWD_COMMAND}`; export r; \
40966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 40967 echo "Checking multilib configuration for libgcc..."; \
22121df0
L
40968 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
40969 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
40970 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40971 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
40972 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
e552509b 40973 else \
a90ef4bf
JM
40974 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
40975 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b
ILT
40976 fi; \
40977 else \
a90ef4bf 40978 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
e552509b 40979 fi; \
a90ef4bf 40980 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
22121df0 40981 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
e552509b 40982 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
40983 echo Configuring in $(TARGET_SUBDIR)/libgcc; \
40984 cd "$(TARGET_SUBDIR)/libgcc" || exit 1; \
e552509b
ILT
40985 case $(srcdir) in \
40986 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 40987 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
e552509b
ILT
40988 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
40989 esac; \
1b6c0831 40990 module_srcdir=libgcc; \
e552509b 40991 rm -f no-such-file || : ; \
1b6c0831
L
40992 CONFIG_SITE=no-such-file $(SHELL) \
40993 $$s/$$module_srcdir/configure \
40994 --srcdir=$${topdir}/$$module_srcdir \
e552509b 40995 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 40996 --target=${target_alias} \
e552509b 40997 || exit 1
a90ef4bf 40998@endif target-libgcc
e552509b
ILT
40999
41000
e552509b 41001
a90ef4bf
JM
41002.PHONY: configure-stage1-target-libgcc maybe-configure-stage1-target-libgcc
41003maybe-configure-stage1-target-libgcc:
41004@if target-libgcc-bootstrap
41005maybe-configure-stage1-target-libgcc: configure-stage1-target-libgcc
41006configure-stage1-target-libgcc:
41007 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
41008 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
41009 @r=`${PWD_COMMAND}`; export r; \
41010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41011 TFLAGS="$(STAGE1_TFLAGS)"; \
41012 echo "Checking multilib configuration for libgcc..."; \
22121df0 41013 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41014 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41015 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41016 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41017 else \
41018 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41019 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41020 fi; \
41021 else \
41022 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41023 fi; \
41024 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41025 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41026 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41027 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41028 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41029 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgcc; \
41030 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41031 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41032 case $(srcdir) in \
41033 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41034 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41035 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41036 esac; \
1b6c0831
L
41037 module_srcdir=libgcc; \
41038 $(SHELL) $$s/$$module_srcdir/configure \
41039 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41040 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
41041 --target=${target_alias} \
41042 \
a90ef4bf
JM
41043 $(STAGE1_CONFIGURE_FLAGS)
41044@endif target-libgcc-bootstrap
e552509b 41045
a90ef4bf
JM
41046.PHONY: configure-stage2-target-libgcc maybe-configure-stage2-target-libgcc
41047maybe-configure-stage2-target-libgcc:
41048@if target-libgcc-bootstrap
41049maybe-configure-stage2-target-libgcc: configure-stage2-target-libgcc
41050configure-stage2-target-libgcc:
41051 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
41052 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
e552509b
ILT
41053 @r=`${PWD_COMMAND}`; export r; \
41054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41055 TFLAGS="$(STAGE2_TFLAGS)"; \
41056 echo "Checking multilib configuration for libgcc..."; \
22121df0 41057 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41058 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41059 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41060 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41061 else \
41062 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41063 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41064 fi; \
41065 else \
41066 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41067 fi; \
41068 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41069 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41070 \
41071 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41072 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41073 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41074 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgcc; \
41075 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41076 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41077 case $(srcdir) in \
41078 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41079 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41080 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41081 esac; \
1b6c0831
L
41082 module_srcdir=libgcc; \
41083 $(SHELL) $$s/$$module_srcdir/configure \
41084 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41085 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41086 --target=${target_alias} \
22121df0 41087 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41088 $(STAGE2_CONFIGURE_FLAGS)
41089@endif target-libgcc-bootstrap
9b980aa1 41090
a90ef4bf
JM
41091.PHONY: configure-stage3-target-libgcc maybe-configure-stage3-target-libgcc
41092maybe-configure-stage3-target-libgcc:
41093@if target-libgcc-bootstrap
41094maybe-configure-stage3-target-libgcc: configure-stage3-target-libgcc
41095configure-stage3-target-libgcc:
41096 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
41097 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
9b980aa1
RW
41098 @r=`${PWD_COMMAND}`; export r; \
41099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41100 TFLAGS="$(STAGE3_TFLAGS)"; \
41101 echo "Checking multilib configuration for libgcc..."; \
22121df0 41102 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41103 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41104 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41105 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41106 else \
41107 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41108 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41109 fi; \
41110 else \
41111 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41112 fi; \
41113 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
9b980aa1 41114 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41115 \
41116 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41117 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41118 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41119 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgcc; \
41120 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41121 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41122 case $(srcdir) in \
41123 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41124 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41125 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41126 esac; \
1b6c0831
L
41127 module_srcdir=libgcc; \
41128 $(SHELL) $$s/$$module_srcdir/configure \
41129 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41130 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41131 --target=${target_alias} \
22121df0 41132 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41133 $(STAGE3_CONFIGURE_FLAGS)
41134@endif target-libgcc-bootstrap
e552509b 41135
a90ef4bf
JM
41136.PHONY: configure-stage4-target-libgcc maybe-configure-stage4-target-libgcc
41137maybe-configure-stage4-target-libgcc:
41138@if target-libgcc-bootstrap
41139maybe-configure-stage4-target-libgcc: configure-stage4-target-libgcc
41140configure-stage4-target-libgcc:
41141 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
41142 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
41143 @r=`${PWD_COMMAND}`; export r; \
e552509b 41144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41145 TFLAGS="$(STAGE4_TFLAGS)"; \
41146 echo "Checking multilib configuration for libgcc..."; \
22121df0 41147 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41148 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41149 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41150 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41151 else \
41152 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41153 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41154 fi; \
41155 else \
41156 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41157 fi; \
41158 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41159 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41160 \
41161 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41162 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41163 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41164 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgcc; \
41165 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41166 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41167 case $(srcdir) in \
41168 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41169 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41170 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41171 esac; \
1b6c0831
L
41172 module_srcdir=libgcc; \
41173 $(SHELL) $$s/$$module_srcdir/configure \
41174 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41175 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41176 --target=${target_alias} \
22121df0 41177 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41178 $(STAGE4_CONFIGURE_FLAGS)
41179@endif target-libgcc-bootstrap
41180
41181.PHONY: configure-stageprofile-target-libgcc maybe-configure-stageprofile-target-libgcc
41182maybe-configure-stageprofile-target-libgcc:
41183@if target-libgcc-bootstrap
41184maybe-configure-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
41185configure-stageprofile-target-libgcc:
41186 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
41187 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
41188 @r=`${PWD_COMMAND}`; export r; \
e552509b 41189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41190 TFLAGS="$(STAGEprofile_TFLAGS)"; \
41191 echo "Checking multilib configuration for libgcc..."; \
22121df0 41192 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41193 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41194 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41195 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41196 else \
41197 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41198 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41199 fi; \
41200 else \
41201 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41202 fi; \
41203 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41204 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41205 \
41206 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41207 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41208 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41209 echo Configuring stage profile in $(TARGET_SUBDIR)/libgcc; \
41210 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41211 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41212 case $(srcdir) in \
41213 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41214 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41215 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41216 esac; \
1b6c0831
L
41217 module_srcdir=libgcc; \
41218 $(SHELL) $$s/$$module_srcdir/configure \
41219 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41220 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41221 --target=${target_alias} \
22121df0 41222 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41223 $(STAGEprofile_CONFIGURE_FLAGS)
41224@endif target-libgcc-bootstrap
e552509b 41225
a90ef4bf
JM
41226.PHONY: configure-stagefeedback-target-libgcc maybe-configure-stagefeedback-target-libgcc
41227maybe-configure-stagefeedback-target-libgcc:
41228@if target-libgcc-bootstrap
41229maybe-configure-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
41230configure-stagefeedback-target-libgcc:
41231 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
41232 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc
41233 @r=`${PWD_COMMAND}`; export r; \
e552509b 41234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41235 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
41236 echo "Checking multilib configuration for libgcc..."; \
22121df0 41237 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgcc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
41238 if test -r $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41239 if cmp -s $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; then \
41240 rm -f $(TARGET_SUBDIR)/libgcc/multilib.tmp; \
41241 else \
41242 rm -f $(TARGET_SUBDIR)/libgcc/Makefile; \
41243 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41244 fi; \
41245 else \
41246 mv $(TARGET_SUBDIR)/libgcc/multilib.tmp $(TARGET_SUBDIR)/libgcc/multilib.out; \
41247 fi; \
41248 test ! -f $(TARGET_SUBDIR)/libgcc/Makefile || exit 0; \
e552509b 41249 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41250 \
41251 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
41252 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
41253 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
41254 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgcc; \
41255 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgcc; \
a90ef4bf
JM
41256 cd $(TARGET_SUBDIR)/libgcc || exit 1; \
41257 case $(srcdir) in \
41258 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41259 *) topdir=`echo $(TARGET_SUBDIR)/libgcc/ | \
41260 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41261 esac; \
1b6c0831
L
41262 module_srcdir=libgcc; \
41263 $(SHELL) $$s/$$module_srcdir/configure \
41264 --srcdir=$${topdir}/$$module_srcdir \
a90ef4bf 41265 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41266 --target=${target_alias} \
22121df0 41267 --with-build-libsubdir=$(HOST_SUBDIR) \
a90ef4bf
JM
41268 $(STAGEfeedback_CONFIGURE_FLAGS)
41269@endif target-libgcc-bootstrap
e552509b 41270
e552509b 41271
e552509b 41272
e552509b 41273
e552509b 41274
a90ef4bf
JM
41275.PHONY: all-target-libgcc maybe-all-target-libgcc
41276maybe-all-target-libgcc:
41277@if gcc-bootstrap
41278all-target-libgcc: stage_current
41279@endif gcc-bootstrap
41280@if target-libgcc
41281TARGET-target-libgcc=all
41282maybe-all-target-libgcc: all-target-libgcc
41283all-target-libgcc: configure-target-libgcc
41284 @r=`${PWD_COMMAND}`; export r; \
e552509b 41285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41286 $(NORMAL_TARGET_EXPORTS) \
41287 (cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41288 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
41289 $(TARGET-target-libgcc))
41290@endif target-libgcc
e552509b 41291
e552509b 41292
e552509b 41293
a90ef4bf
JM
41294.PHONY: all-stage1-target-libgcc maybe-all-stage1-target-libgcc
41295.PHONY: clean-stage1-target-libgcc maybe-clean-stage1-target-libgcc
41296maybe-all-stage1-target-libgcc:
41297maybe-clean-stage1-target-libgcc:
41298@if target-libgcc-bootstrap
41299maybe-all-stage1-target-libgcc: all-stage1-target-libgcc
41300all-stage1: all-stage1-target-libgcc
41301TARGET-stage1-target-libgcc = $(TARGET-target-libgcc)
41302all-stage1-target-libgcc: configure-stage1-target-libgcc
41303 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
41304 @r=`${PWD_COMMAND}`; export r; \
e552509b 41305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41306 TFLAGS="$(STAGE1_TFLAGS)"; \
41307 $(NORMAL_TARGET_EXPORTS) \
41308 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41309 \
a90ef4bf
JM
41310 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41311 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41312 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41313 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41314 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41315 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41316 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
41317 $(EXTRA_TARGET_FLAGS) \
41318 \
05a13254 41319 TFLAGS="$(STAGE1_TFLAGS)" \
a90ef4bf 41320 $(TARGET-stage1-target-libgcc)
e552509b 41321
a90ef4bf
JM
41322maybe-clean-stage1-target-libgcc: clean-stage1-target-libgcc
41323clean-stage1: clean-stage1-target-libgcc
41324clean-stage1-target-libgcc:
41325 @if [ $(current_stage) = stage1 ]; then \
41326 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41327 else \
41328 [ -f $(TARGET_SUBDIR)/stage1-libgcc/Makefile ] || exit 0; \
41329 $(MAKE) stage1-start; \
41330 fi; \
41331 cd $(TARGET_SUBDIR)/libgcc && \
41332 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 41333 clean
a90ef4bf 41334@endif target-libgcc-bootstrap
e552509b 41335
e552509b 41336
a90ef4bf
JM
41337.PHONY: all-stage2-target-libgcc maybe-all-stage2-target-libgcc
41338.PHONY: clean-stage2-target-libgcc maybe-clean-stage2-target-libgcc
41339maybe-all-stage2-target-libgcc:
41340maybe-clean-stage2-target-libgcc:
41341@if target-libgcc-bootstrap
41342maybe-all-stage2-target-libgcc: all-stage2-target-libgcc
41343all-stage2: all-stage2-target-libgcc
41344TARGET-stage2-target-libgcc = $(TARGET-target-libgcc)
41345all-stage2-target-libgcc: configure-stage2-target-libgcc
41346 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
41347 @r=`${PWD_COMMAND}`; export r; \
e552509b 41348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41349 TFLAGS="$(STAGE2_TFLAGS)"; \
e552509b 41350 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41351 \
41352 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41353 \
a90ef4bf
JM
41354 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41355 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41356 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41357 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41358 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41359 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41360 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41361 $(EXTRA_TARGET_FLAGS) \
05a13254 41362 TFLAGS="$(STAGE2_TFLAGS)" \
a90ef4bf 41363 $(TARGET-stage2-target-libgcc)
e552509b 41364
a90ef4bf
JM
41365maybe-clean-stage2-target-libgcc: clean-stage2-target-libgcc
41366clean-stage2: clean-stage2-target-libgcc
41367clean-stage2-target-libgcc:
41368 @if [ $(current_stage) = stage2 ]; then \
41369 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41370 else \
41371 [ -f $(TARGET_SUBDIR)/stage2-libgcc/Makefile ] || exit 0; \
41372 $(MAKE) stage2-start; \
41373 fi; \
41374 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41375 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41376@endif target-libgcc-bootstrap
e552509b 41377
e552509b 41378
a90ef4bf
JM
41379.PHONY: all-stage3-target-libgcc maybe-all-stage3-target-libgcc
41380.PHONY: clean-stage3-target-libgcc maybe-clean-stage3-target-libgcc
41381maybe-all-stage3-target-libgcc:
41382maybe-clean-stage3-target-libgcc:
41383@if target-libgcc-bootstrap
41384maybe-all-stage3-target-libgcc: all-stage3-target-libgcc
41385all-stage3: all-stage3-target-libgcc
41386TARGET-stage3-target-libgcc = $(TARGET-target-libgcc)
41387all-stage3-target-libgcc: configure-stage3-target-libgcc
41388 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
41389 @r=`${PWD_COMMAND}`; export r; \
e552509b 41390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41391 TFLAGS="$(STAGE3_TFLAGS)"; \
e552509b 41392 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41393 \
41394 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41395 \
a90ef4bf
JM
41396 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41397 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41398 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41399 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41400 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41401 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41402 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41403 $(EXTRA_TARGET_FLAGS) \
05a13254 41404 TFLAGS="$(STAGE3_TFLAGS)" \
a90ef4bf 41405 $(TARGET-stage3-target-libgcc)
e552509b 41406
a90ef4bf
JM
41407maybe-clean-stage3-target-libgcc: clean-stage3-target-libgcc
41408clean-stage3: clean-stage3-target-libgcc
41409clean-stage3-target-libgcc:
41410 @if [ $(current_stage) = stage3 ]; then \
41411 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41412 else \
41413 [ -f $(TARGET_SUBDIR)/stage3-libgcc/Makefile ] || exit 0; \
41414 $(MAKE) stage3-start; \
41415 fi; \
41416 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41417 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41418@endif target-libgcc-bootstrap
e552509b 41419
e552509b 41420
a90ef4bf
JM
41421.PHONY: all-stage4-target-libgcc maybe-all-stage4-target-libgcc
41422.PHONY: clean-stage4-target-libgcc maybe-clean-stage4-target-libgcc
41423maybe-all-stage4-target-libgcc:
41424maybe-clean-stage4-target-libgcc:
41425@if target-libgcc-bootstrap
41426maybe-all-stage4-target-libgcc: all-stage4-target-libgcc
41427all-stage4: all-stage4-target-libgcc
41428TARGET-stage4-target-libgcc = $(TARGET-target-libgcc)
41429all-stage4-target-libgcc: configure-stage4-target-libgcc
41430 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
41431 @r=`${PWD_COMMAND}`; export r; \
e552509b 41432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 41433 TFLAGS="$(STAGE4_TFLAGS)"; \
e552509b 41434 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
41435 \
41436 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41437 \
a90ef4bf
JM
41438 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41439 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41440 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41441 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41442 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41443 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41444 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41445 $(EXTRA_TARGET_FLAGS) \
05a13254 41446 TFLAGS="$(STAGE4_TFLAGS)" \
a90ef4bf 41447 $(TARGET-stage4-target-libgcc)
e552509b 41448
a90ef4bf
JM
41449maybe-clean-stage4-target-libgcc: clean-stage4-target-libgcc
41450clean-stage4: clean-stage4-target-libgcc
41451clean-stage4-target-libgcc:
41452 @if [ $(current_stage) = stage4 ]; then \
41453 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41454 else \
41455 [ -f $(TARGET_SUBDIR)/stage4-libgcc/Makefile ] || exit 0; \
41456 $(MAKE) stage4-start; \
41457 fi; \
41458 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41459 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41460@endif target-libgcc-bootstrap
e552509b
ILT
41461
41462
a90ef4bf
JM
41463.PHONY: all-stageprofile-target-libgcc maybe-all-stageprofile-target-libgcc
41464.PHONY: clean-stageprofile-target-libgcc maybe-clean-stageprofile-target-libgcc
41465maybe-all-stageprofile-target-libgcc:
41466maybe-clean-stageprofile-target-libgcc:
41467@if target-libgcc-bootstrap
41468maybe-all-stageprofile-target-libgcc: all-stageprofile-target-libgcc
41469all-stageprofile: all-stageprofile-target-libgcc
41470TARGET-stageprofile-target-libgcc = $(TARGET-target-libgcc)
41471all-stageprofile-target-libgcc: configure-stageprofile-target-libgcc
41472 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
0aed8855
PB
41473 @r=`${PWD_COMMAND}`; export r; \
41474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41475 TFLAGS="$(STAGEprofile_TFLAGS)"; \
41476 $(NORMAL_TARGET_EXPORTS) \
41477 \
41478 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41479 \
a90ef4bf
JM
41480 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41481 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41482 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41483 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41484 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41485 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41486 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41487 $(EXTRA_TARGET_FLAGS) \
05a13254 41488 TFLAGS="$(STAGEprofile_TFLAGS)" \
a90ef4bf
JM
41489 $(TARGET-stageprofile-target-libgcc)
41490
41491maybe-clean-stageprofile-target-libgcc: clean-stageprofile-target-libgcc
41492clean-stageprofile: clean-stageprofile-target-libgcc
41493clean-stageprofile-target-libgcc:
41494 @if [ $(current_stage) = stageprofile ]; then \
41495 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
0aed8855 41496 else \
a90ef4bf
JM
41497 [ -f $(TARGET_SUBDIR)/stageprofile-libgcc/Makefile ] || exit 0; \
41498 $(MAKE) stageprofile-start; \
c52c6897 41499 fi; \
a90ef4bf 41500 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41501 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41502@endif target-libgcc-bootstrap
d545f33b
PB
41503
41504
a90ef4bf
JM
41505.PHONY: all-stagefeedback-target-libgcc maybe-all-stagefeedback-target-libgcc
41506.PHONY: clean-stagefeedback-target-libgcc maybe-clean-stagefeedback-target-libgcc
41507maybe-all-stagefeedback-target-libgcc:
41508maybe-clean-stagefeedback-target-libgcc:
41509@if target-libgcc-bootstrap
41510maybe-all-stagefeedback-target-libgcc: all-stagefeedback-target-libgcc
41511all-stagefeedback: all-stagefeedback-target-libgcc
41512TARGET-stagefeedback-target-libgcc = $(TARGET-target-libgcc)
41513all-stagefeedback-target-libgcc: configure-stagefeedback-target-libgcc
41514 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
4b1cb4fe
DD
41515 @r=`${PWD_COMMAND}`; export r; \
41516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf
JM
41517 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
41518 $(NORMAL_TARGET_EXPORTS) \
41519 \
41520 cd $(TARGET_SUBDIR)/libgcc && \
05a13254 41521 \
a90ef4bf
JM
41522 $(MAKE) $(BASE_FLAGS_TO_PASS) \
41523 CFLAGS="$(CFLAGS_FOR_TARGET)" \
41524 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
41525 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
41526 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
41527 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
41528 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
41529 $(EXTRA_TARGET_FLAGS) \
05a13254 41530 TFLAGS="$(STAGEfeedback_TFLAGS)" \
a90ef4bf
JM
41531 $(TARGET-stagefeedback-target-libgcc)
41532
41533maybe-clean-stagefeedback-target-libgcc: clean-stagefeedback-target-libgcc
41534clean-stagefeedback: clean-stagefeedback-target-libgcc
41535clean-stagefeedback-target-libgcc:
41536 @if [ $(current_stage) = stagefeedback ]; then \
41537 [ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
41538 else \
41539 [ -f $(TARGET_SUBDIR)/stagefeedback-libgcc/Makefile ] || exit 0; \
41540 $(MAKE) stagefeedback-start; \
41541 fi; \
41542 cd $(TARGET_SUBDIR)/libgcc && \
b3676d82 41543 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
a90ef4bf 41544@endif target-libgcc-bootstrap
4b1cb4fe 41545
a7254363
PB
41546
41547
d545f33b
PB
41548
41549
4b1cb4fe 41550
a90ef4bf
JM
41551.PHONY: check-target-libgcc maybe-check-target-libgcc
41552maybe-check-target-libgcc:
41553@if target-libgcc
41554maybe-check-target-libgcc: check-target-libgcc
4b1cb4fe 41555
a90ef4bf
JM
41556# Dummy target for uncheckable module.
41557check-target-libgcc:
4b1cb4fe 41558
a90ef4bf 41559@endif target-libgcc
4b1cb4fe 41560
a90ef4bf
JM
41561.PHONY: install-target-libgcc maybe-install-target-libgcc
41562maybe-install-target-libgcc:
41563@if target-libgcc
41564maybe-install-target-libgcc: install-target-libgcc
41565
41566install-target-libgcc: installdirs
0aed8855 41567 @: $(MAKE); $(unstage)
4b1cb4fe
DD
41568 @r=`${PWD_COMMAND}`; export r; \
41569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41570 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41571 (cd $(TARGET_SUBDIR)/libgcc && \
7ffa0b57 41572 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4b1cb4fe 41573
a90ef4bf 41574@endif target-libgcc
4b1cb4fe 41575
a90ef4bf
JM
41576.PHONY: install-strip-target-libgcc maybe-install-strip-target-libgcc
41577maybe-install-strip-target-libgcc:
41578@if target-libgcc
41579maybe-install-strip-target-libgcc: install-strip-target-libgcc
9b980aa1 41580
a90ef4bf 41581install-strip-target-libgcc: installdirs
9b980aa1
RW
41582 @: $(MAKE); $(unstage)
41583 @r=`${PWD_COMMAND}`; export r; \
41584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41585 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 41586 (cd $(TARGET_SUBDIR)/libgcc && \
9b980aa1
RW
41587 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
41588
a90ef4bf 41589@endif target-libgcc
9b980aa1 41590
56a8fe78 41591# Other targets (info, dvi, pdf, etc.)
4b1cb4fe 41592
a90ef4bf
JM
41593.PHONY: maybe-info-target-libgcc info-target-libgcc
41594maybe-info-target-libgcc:
41595@if target-libgcc
41596maybe-info-target-libgcc: info-target-libgcc
4b1cb4fe 41597
a90ef4bf
JM
41598info-target-libgcc: \
41599 configure-target-libgcc
0aed8855 41600 @: $(MAKE); $(unstage)
22121df0 41601 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41602 r=`${PWD_COMMAND}`; export r; \
41603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41604 $(NORMAL_TARGET_EXPORTS) \
22121df0 41605 echo "Doing info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41606 for flag in $(EXTRA_TARGET_FLAGS); do \
41607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41608 done; \
a90ef4bf 41609 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41612 "RANLIB=$${RANLIB}" \
0c24b341 41613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41614 info) \
4b1cb4fe
DD
41615 || exit 1
41616
a90ef4bf 41617@endif target-libgcc
4b1cb4fe 41618
a90ef4bf
JM
41619.PHONY: maybe-dvi-target-libgcc dvi-target-libgcc
41620maybe-dvi-target-libgcc:
41621@if target-libgcc
41622maybe-dvi-target-libgcc: dvi-target-libgcc
4b1cb4fe 41623
a90ef4bf
JM
41624dvi-target-libgcc: \
41625 configure-target-libgcc
0aed8855 41626 @: $(MAKE); $(unstage)
22121df0 41627 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41628 r=`${PWD_COMMAND}`; export r; \
41629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41630 $(NORMAL_TARGET_EXPORTS) \
22121df0 41631 echo "Doing dvi in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41632 for flag in $(EXTRA_TARGET_FLAGS); do \
41633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41634 done; \
a90ef4bf 41635 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41638 "RANLIB=$${RANLIB}" \
0c24b341 41639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41640 dvi) \
4b1cb4fe
DD
41641 || exit 1
41642
a90ef4bf 41643@endif target-libgcc
4b1cb4fe 41644
a90ef4bf
JM
41645.PHONY: maybe-pdf-target-libgcc pdf-target-libgcc
41646maybe-pdf-target-libgcc:
41647@if target-libgcc
41648maybe-pdf-target-libgcc: pdf-target-libgcc
56a8fe78 41649
a90ef4bf
JM
41650pdf-target-libgcc: \
41651 configure-target-libgcc
56a8fe78 41652 @: $(MAKE); $(unstage)
22121df0 41653 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
56a8fe78
DD
41654 r=`${PWD_COMMAND}`; export r; \
41655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41656 $(NORMAL_TARGET_EXPORTS) \
22121df0 41657 echo "Doing pdf in $(TARGET_SUBDIR)/libgcc"; \
56a8fe78
DD
41658 for flag in $(EXTRA_TARGET_FLAGS); do \
41659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41660 done; \
a90ef4bf 41661 (cd $(TARGET_SUBDIR)/libgcc && \
56a8fe78
DD
41662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41664 "RANLIB=$${RANLIB}" \
0c24b341 41665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
41666 pdf) \
41667 || exit 1
41668
a90ef4bf 41669@endif target-libgcc
56a8fe78 41670
a90ef4bf
JM
41671.PHONY: maybe-html-target-libgcc html-target-libgcc
41672maybe-html-target-libgcc:
41673@if target-libgcc
41674maybe-html-target-libgcc: html-target-libgcc
6d389afc 41675
a90ef4bf
JM
41676html-target-libgcc: \
41677 configure-target-libgcc
0aed8855 41678 @: $(MAKE); $(unstage)
22121df0 41679 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
6d389afc
MS
41680 r=`${PWD_COMMAND}`; export r; \
41681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 41682 $(NORMAL_TARGET_EXPORTS) \
22121df0 41683 echo "Doing html in $(TARGET_SUBDIR)/libgcc"; \
6d389afc
MS
41684 for flag in $(EXTRA_TARGET_FLAGS); do \
41685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41686 done; \
a90ef4bf 41687 (cd $(TARGET_SUBDIR)/libgcc && \
6d389afc
MS
41688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41690 "RANLIB=$${RANLIB}" \
0c24b341 41691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
41692 html) \
41693 || exit 1
41694
a90ef4bf 41695@endif target-libgcc
6d389afc 41696
a90ef4bf
JM
41697.PHONY: maybe-TAGS-target-libgcc TAGS-target-libgcc
41698maybe-TAGS-target-libgcc:
41699@if target-libgcc
41700maybe-TAGS-target-libgcc: TAGS-target-libgcc
4b1cb4fe 41701
a90ef4bf
JM
41702TAGS-target-libgcc: \
41703 configure-target-libgcc
0aed8855 41704 @: $(MAKE); $(unstage)
22121df0 41705 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41706 r=`${PWD_COMMAND}`; export r; \
41707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41708 $(NORMAL_TARGET_EXPORTS) \
22121df0 41709 echo "Doing TAGS in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
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)/libgcc && \
4b1cb4fe
DD
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}" \
7ffa0b57 41718 TAGS) \
4b1cb4fe
DD
41719 || exit 1
41720
a90ef4bf 41721@endif target-libgcc
4b1cb4fe 41722
a90ef4bf
JM
41723.PHONY: maybe-install-info-target-libgcc install-info-target-libgcc
41724maybe-install-info-target-libgcc:
41725@if target-libgcc
41726maybe-install-info-target-libgcc: install-info-target-libgcc
4b1cb4fe 41727
a90ef4bf
JM
41728install-info-target-libgcc: \
41729 configure-target-libgcc \
41730 info-target-libgcc
0aed8855 41731 @: $(MAKE); $(unstage)
22121df0 41732 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41733 r=`${PWD_COMMAND}`; export r; \
41734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41735 $(NORMAL_TARGET_EXPORTS) \
22121df0 41736 echo "Doing install-info in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41737 for flag in $(EXTRA_TARGET_FLAGS); do \
41738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41739 done; \
a90ef4bf 41740 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41743 "RANLIB=$${RANLIB}" \
0c24b341 41744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41745 install-info) \
4b1cb4fe
DD
41746 || exit 1
41747
a90ef4bf 41748@endif target-libgcc
4b1cb4fe 41749
a90ef4bf
JM
41750.PHONY: maybe-install-pdf-target-libgcc install-pdf-target-libgcc
41751maybe-install-pdf-target-libgcc:
41752@if target-libgcc
41753maybe-install-pdf-target-libgcc: install-pdf-target-libgcc
a3ca38d2 41754
a90ef4bf
JM
41755install-pdf-target-libgcc: \
41756 configure-target-libgcc \
41757 pdf-target-libgcc
a3ca38d2 41758 @: $(MAKE); $(unstage)
22121df0 41759 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
a3ca38d2
DD
41760 r=`${PWD_COMMAND}`; export r; \
41761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41762 $(NORMAL_TARGET_EXPORTS) \
22121df0 41763 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgcc"; \
a3ca38d2
DD
41764 for flag in $(EXTRA_TARGET_FLAGS); do \
41765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41766 done; \
a90ef4bf 41767 (cd $(TARGET_SUBDIR)/libgcc && \
a3ca38d2
DD
41768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41770 "RANLIB=$${RANLIB}" \
0c24b341 41771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
41772 install-pdf) \
41773 || exit 1
41774
a90ef4bf 41775@endif target-libgcc
a3ca38d2 41776
a90ef4bf
JM
41777.PHONY: maybe-install-html-target-libgcc install-html-target-libgcc
41778maybe-install-html-target-libgcc:
41779@if target-libgcc
41780maybe-install-html-target-libgcc: install-html-target-libgcc
108a6f8e 41781
a90ef4bf
JM
41782install-html-target-libgcc: \
41783 configure-target-libgcc \
41784 html-target-libgcc
108a6f8e 41785 @: $(MAKE); $(unstage)
22121df0 41786 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
108a6f8e
CD
41787 r=`${PWD_COMMAND}`; export r; \
41788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41789 $(NORMAL_TARGET_EXPORTS) \
22121df0 41790 echo "Doing install-html in $(TARGET_SUBDIR)/libgcc"; \
108a6f8e
CD
41791 for flag in $(EXTRA_TARGET_FLAGS); do \
41792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41793 done; \
a90ef4bf 41794 (cd $(TARGET_SUBDIR)/libgcc && \
108a6f8e
CD
41795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41797 "RANLIB=$${RANLIB}" \
0c24b341 41798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
41799 install-html) \
41800 || exit 1
41801
a90ef4bf 41802@endif target-libgcc
108a6f8e 41803
a90ef4bf
JM
41804.PHONY: maybe-installcheck-target-libgcc installcheck-target-libgcc
41805maybe-installcheck-target-libgcc:
41806@if target-libgcc
41807maybe-installcheck-target-libgcc: installcheck-target-libgcc
4b1cb4fe 41808
a90ef4bf
JM
41809installcheck-target-libgcc: \
41810 configure-target-libgcc
0aed8855 41811 @: $(MAKE); $(unstage)
22121df0 41812 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41813 r=`${PWD_COMMAND}`; export r; \
41814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41815 $(NORMAL_TARGET_EXPORTS) \
22121df0 41816 echo "Doing installcheck in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41817 for flag in $(EXTRA_TARGET_FLAGS); do \
41818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41819 done; \
a90ef4bf 41820 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41823 "RANLIB=$${RANLIB}" \
0c24b341 41824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41825 installcheck) \
4b1cb4fe
DD
41826 || exit 1
41827
a90ef4bf 41828@endif target-libgcc
4b1cb4fe 41829
a90ef4bf
JM
41830.PHONY: maybe-mostlyclean-target-libgcc mostlyclean-target-libgcc
41831maybe-mostlyclean-target-libgcc:
41832@if target-libgcc
41833maybe-mostlyclean-target-libgcc: mostlyclean-target-libgcc
4b1cb4fe 41834
a90ef4bf 41835mostlyclean-target-libgcc:
0aed8855 41836 @: $(MAKE); $(unstage)
22121df0 41837 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41838 r=`${PWD_COMMAND}`; export r; \
41839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41840 $(NORMAL_TARGET_EXPORTS) \
22121df0 41841 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41842 for flag in $(EXTRA_TARGET_FLAGS); do \
41843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41844 done; \
a90ef4bf 41845 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41848 "RANLIB=$${RANLIB}" \
0c24b341 41849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41850 mostlyclean) \
4b1cb4fe
DD
41851 || exit 1
41852
a90ef4bf 41853@endif target-libgcc
4b1cb4fe 41854
a90ef4bf
JM
41855.PHONY: maybe-clean-target-libgcc clean-target-libgcc
41856maybe-clean-target-libgcc:
41857@if target-libgcc
41858maybe-clean-target-libgcc: clean-target-libgcc
4b1cb4fe 41859
a90ef4bf 41860clean-target-libgcc:
0aed8855 41861 @: $(MAKE); $(unstage)
22121df0 41862 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41863 r=`${PWD_COMMAND}`; export r; \
41864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41865 $(NORMAL_TARGET_EXPORTS) \
22121df0 41866 echo "Doing clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41867 for flag in $(EXTRA_TARGET_FLAGS); do \
41868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41869 done; \
a90ef4bf 41870 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41873 "RANLIB=$${RANLIB}" \
0c24b341 41874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41875 clean) \
4b1cb4fe
DD
41876 || exit 1
41877
a90ef4bf 41878@endif target-libgcc
4b1cb4fe 41879
a90ef4bf
JM
41880.PHONY: maybe-distclean-target-libgcc distclean-target-libgcc
41881maybe-distclean-target-libgcc:
41882@if target-libgcc
41883maybe-distclean-target-libgcc: distclean-target-libgcc
4b1cb4fe 41884
a90ef4bf 41885distclean-target-libgcc:
0aed8855 41886 @: $(MAKE); $(unstage)
22121df0 41887 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41888 r=`${PWD_COMMAND}`; export r; \
41889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41890 $(NORMAL_TARGET_EXPORTS) \
22121df0 41891 echo "Doing distclean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41892 for flag in $(EXTRA_TARGET_FLAGS); do \
41893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41894 done; \
a90ef4bf 41895 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41898 "RANLIB=$${RANLIB}" \
0c24b341 41899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41900 distclean) \
4b1cb4fe
DD
41901 || exit 1
41902
a90ef4bf 41903@endif target-libgcc
4b1cb4fe 41904
a90ef4bf
JM
41905.PHONY: maybe-maintainer-clean-target-libgcc maintainer-clean-target-libgcc
41906maybe-maintainer-clean-target-libgcc:
41907@if target-libgcc
41908maybe-maintainer-clean-target-libgcc: maintainer-clean-target-libgcc
4b1cb4fe 41909
a90ef4bf 41910maintainer-clean-target-libgcc:
0aed8855 41911 @: $(MAKE); $(unstage)
22121df0 41912 @[ -f $(TARGET_SUBDIR)/libgcc/Makefile ] || exit 0; \
4b1cb4fe
DD
41913 r=`${PWD_COMMAND}`; export r; \
41914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 41915 $(NORMAL_TARGET_EXPORTS) \
22121df0 41916 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgcc"; \
4b1cb4fe
DD
41917 for flag in $(EXTRA_TARGET_FLAGS); do \
41918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41919 done; \
a90ef4bf 41920 (cd $(TARGET_SUBDIR)/libgcc && \
4b1cb4fe
DD
41921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41923 "RANLIB=$${RANLIB}" \
0c24b341 41924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 41925 maintainer-clean) \
4b1cb4fe
DD
41926 || exit 1
41927
a90ef4bf 41928@endif target-libgcc
4b1cb4fe
DD
41929
41930
3866be5d 41931
a7254363 41932
e90269c8 41933
2bf680c4
ILT
41934.PHONY: configure-target-libbacktrace maybe-configure-target-libbacktrace
41935maybe-configure-target-libbacktrace:
41936@if gcc-bootstrap
41937configure-target-libbacktrace: stage_current
41938@endif gcc-bootstrap
41939@if target-libbacktrace
41940maybe-configure-target-libbacktrace: configure-target-libbacktrace
41941configure-target-libbacktrace:
41942 @: $(MAKE); $(unstage)
41943 @r=`${PWD_COMMAND}`; export r; \
41944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41945 echo "Checking multilib configuration for libbacktrace..."; \
22121df0
L
41946 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
41947 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libbacktrace/multilib.tmp 2> /dev/null; \
2bf680c4
ILT
41948 if test -r $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
41949 if cmp -s $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; then \
41950 rm -f $(TARGET_SUBDIR)/libbacktrace/multilib.tmp; \
41951 else \
41952 rm -f $(TARGET_SUBDIR)/libbacktrace/Makefile; \
41953 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
41954 fi; \
41955 else \
41956 mv $(TARGET_SUBDIR)/libbacktrace/multilib.tmp $(TARGET_SUBDIR)/libbacktrace/multilib.out; \
41957 fi; \
41958 test ! -f $(TARGET_SUBDIR)/libbacktrace/Makefile || exit 0; \
22121df0 41959 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libbacktrace; \
2bf680c4
ILT
41960 $(NORMAL_TARGET_EXPORTS) \
41961 echo Configuring in $(TARGET_SUBDIR)/libbacktrace; \
41962 cd "$(TARGET_SUBDIR)/libbacktrace" || exit 1; \
41963 case $(srcdir) in \
41964 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41965 *) topdir=`echo $(TARGET_SUBDIR)/libbacktrace/ | \
41966 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41967 esac; \
1b6c0831 41968 module_srcdir=libbacktrace; \
2bf680c4 41969 rm -f no-such-file || : ; \
1b6c0831
L
41970 CONFIG_SITE=no-such-file $(SHELL) \
41971 $$s/$$module_srcdir/configure \
41972 --srcdir=$${topdir}/$$module_srcdir \
2bf680c4 41973 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 41974 --target=${target_alias} \
2bf680c4
ILT
41975 || exit 1
41976@endif target-libbacktrace
41977
41978
41979
41980
41981
41982.PHONY: all-target-libbacktrace maybe-all-target-libbacktrace
41983maybe-all-target-libbacktrace:
41984@if gcc-bootstrap
41985all-target-libbacktrace: stage_current
41986@endif gcc-bootstrap
41987@if target-libbacktrace
41988TARGET-target-libbacktrace=all
41989maybe-all-target-libbacktrace: all-target-libbacktrace
41990all-target-libbacktrace: configure-target-libbacktrace
41991 @: $(MAKE); $(unstage)
41992 @r=`${PWD_COMMAND}`; export r; \
41993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41994 $(NORMAL_TARGET_EXPORTS) \
41995 (cd $(TARGET_SUBDIR)/libbacktrace && \
b3676d82 41996 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
2bf680c4
ILT
41997 $(TARGET-target-libbacktrace))
41998@endif target-libbacktrace
41999
42000
42001
42002
42003
42004.PHONY: check-target-libbacktrace maybe-check-target-libbacktrace
42005maybe-check-target-libbacktrace:
42006@if target-libbacktrace
42007maybe-check-target-libbacktrace: check-target-libbacktrace
42008
42009check-target-libbacktrace:
42010 @: $(MAKE); $(unstage)
42011 @r=`${PWD_COMMAND}`; export r; \
42012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42013 $(NORMAL_TARGET_EXPORTS) \
42014 (cd $(TARGET_SUBDIR)/libbacktrace && \
42015 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
42016
42017@endif target-libbacktrace
42018
42019.PHONY: install-target-libbacktrace maybe-install-target-libbacktrace
42020maybe-install-target-libbacktrace:
42021@if target-libbacktrace
42022maybe-install-target-libbacktrace: install-target-libbacktrace
42023
42024install-target-libbacktrace: installdirs
42025 @: $(MAKE); $(unstage)
42026 @r=`${PWD_COMMAND}`; export r; \
42027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42028 $(NORMAL_TARGET_EXPORTS) \
42029 (cd $(TARGET_SUBDIR)/libbacktrace && \
42030 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
42031
42032@endif target-libbacktrace
42033
42034.PHONY: install-strip-target-libbacktrace maybe-install-strip-target-libbacktrace
42035maybe-install-strip-target-libbacktrace:
42036@if target-libbacktrace
42037maybe-install-strip-target-libbacktrace: install-strip-target-libbacktrace
42038
42039install-strip-target-libbacktrace: installdirs
42040 @: $(MAKE); $(unstage)
42041 @r=`${PWD_COMMAND}`; export r; \
42042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42043 $(NORMAL_TARGET_EXPORTS) \
42044 (cd $(TARGET_SUBDIR)/libbacktrace && \
42045 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42046
42047@endif target-libbacktrace
42048
42049# Other targets (info, dvi, pdf, etc.)
42050
42051.PHONY: maybe-info-target-libbacktrace info-target-libbacktrace
42052maybe-info-target-libbacktrace:
42053@if target-libbacktrace
42054maybe-info-target-libbacktrace: info-target-libbacktrace
42055
42056info-target-libbacktrace: \
42057 configure-target-libbacktrace
42058 @: $(MAKE); $(unstage)
22121df0 42059 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42060 r=`${PWD_COMMAND}`; export r; \
42061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42062 $(NORMAL_TARGET_EXPORTS) \
22121df0 42063 echo "Doing info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42064 for flag in $(EXTRA_TARGET_FLAGS); do \
42065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42066 done; \
42067 (cd $(TARGET_SUBDIR)/libbacktrace && \
42068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42070 "RANLIB=$${RANLIB}" \
42071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42072 info) \
42073 || exit 1
42074
42075@endif target-libbacktrace
42076
42077.PHONY: maybe-dvi-target-libbacktrace dvi-target-libbacktrace
42078maybe-dvi-target-libbacktrace:
42079@if target-libbacktrace
42080maybe-dvi-target-libbacktrace: dvi-target-libbacktrace
42081
42082dvi-target-libbacktrace: \
42083 configure-target-libbacktrace
42084 @: $(MAKE); $(unstage)
22121df0 42085 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42086 r=`${PWD_COMMAND}`; export r; \
42087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42088 $(NORMAL_TARGET_EXPORTS) \
22121df0 42089 echo "Doing dvi in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42090 for flag in $(EXTRA_TARGET_FLAGS); do \
42091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42092 done; \
42093 (cd $(TARGET_SUBDIR)/libbacktrace && \
42094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42096 "RANLIB=$${RANLIB}" \
42097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42098 dvi) \
42099 || exit 1
42100
42101@endif target-libbacktrace
42102
42103.PHONY: maybe-pdf-target-libbacktrace pdf-target-libbacktrace
42104maybe-pdf-target-libbacktrace:
42105@if target-libbacktrace
42106maybe-pdf-target-libbacktrace: pdf-target-libbacktrace
42107
42108pdf-target-libbacktrace: \
42109 configure-target-libbacktrace
42110 @: $(MAKE); $(unstage)
22121df0 42111 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42112 r=`${PWD_COMMAND}`; export r; \
42113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42114 $(NORMAL_TARGET_EXPORTS) \
22121df0 42115 echo "Doing pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42116 for flag in $(EXTRA_TARGET_FLAGS); do \
42117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42118 done; \
42119 (cd $(TARGET_SUBDIR)/libbacktrace && \
42120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42122 "RANLIB=$${RANLIB}" \
42123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42124 pdf) \
42125 || exit 1
42126
42127@endif target-libbacktrace
42128
42129.PHONY: maybe-html-target-libbacktrace html-target-libbacktrace
42130maybe-html-target-libbacktrace:
42131@if target-libbacktrace
42132maybe-html-target-libbacktrace: html-target-libbacktrace
42133
42134html-target-libbacktrace: \
42135 configure-target-libbacktrace
42136 @: $(MAKE); $(unstage)
22121df0 42137 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42138 r=`${PWD_COMMAND}`; export r; \
42139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42140 $(NORMAL_TARGET_EXPORTS) \
22121df0 42141 echo "Doing html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42142 for flag in $(EXTRA_TARGET_FLAGS); do \
42143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42144 done; \
42145 (cd $(TARGET_SUBDIR)/libbacktrace && \
42146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42148 "RANLIB=$${RANLIB}" \
42149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42150 html) \
42151 || exit 1
42152
42153@endif target-libbacktrace
42154
42155.PHONY: maybe-TAGS-target-libbacktrace TAGS-target-libbacktrace
42156maybe-TAGS-target-libbacktrace:
42157@if target-libbacktrace
42158maybe-TAGS-target-libbacktrace: TAGS-target-libbacktrace
42159
42160TAGS-target-libbacktrace: \
42161 configure-target-libbacktrace
42162 @: $(MAKE); $(unstage)
22121df0 42163 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42164 r=`${PWD_COMMAND}`; export r; \
42165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42166 $(NORMAL_TARGET_EXPORTS) \
22121df0 42167 echo "Doing TAGS in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42168 for flag in $(EXTRA_TARGET_FLAGS); do \
42169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42170 done; \
42171 (cd $(TARGET_SUBDIR)/libbacktrace && \
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 TAGS) \
42177 || exit 1
42178
42179@endif target-libbacktrace
42180
42181.PHONY: maybe-install-info-target-libbacktrace install-info-target-libbacktrace
42182maybe-install-info-target-libbacktrace:
42183@if target-libbacktrace
42184maybe-install-info-target-libbacktrace: install-info-target-libbacktrace
42185
42186install-info-target-libbacktrace: \
42187 configure-target-libbacktrace \
42188 info-target-libbacktrace
42189 @: $(MAKE); $(unstage)
22121df0 42190 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42191 r=`${PWD_COMMAND}`; export r; \
42192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42193 $(NORMAL_TARGET_EXPORTS) \
22121df0 42194 echo "Doing install-info in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42195 for flag in $(EXTRA_TARGET_FLAGS); do \
42196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42197 done; \
42198 (cd $(TARGET_SUBDIR)/libbacktrace && \
42199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42201 "RANLIB=$${RANLIB}" \
42202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42203 install-info) \
42204 || exit 1
42205
42206@endif target-libbacktrace
42207
42208.PHONY: maybe-install-pdf-target-libbacktrace install-pdf-target-libbacktrace
42209maybe-install-pdf-target-libbacktrace:
42210@if target-libbacktrace
42211maybe-install-pdf-target-libbacktrace: install-pdf-target-libbacktrace
42212
42213install-pdf-target-libbacktrace: \
42214 configure-target-libbacktrace \
42215 pdf-target-libbacktrace
42216 @: $(MAKE); $(unstage)
22121df0 42217 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42218 r=`${PWD_COMMAND}`; export r; \
42219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42220 $(NORMAL_TARGET_EXPORTS) \
22121df0 42221 echo "Doing install-pdf in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42222 for flag in $(EXTRA_TARGET_FLAGS); do \
42223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42224 done; \
42225 (cd $(TARGET_SUBDIR)/libbacktrace && \
42226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42228 "RANLIB=$${RANLIB}" \
42229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42230 install-pdf) \
42231 || exit 1
42232
42233@endif target-libbacktrace
42234
42235.PHONY: maybe-install-html-target-libbacktrace install-html-target-libbacktrace
42236maybe-install-html-target-libbacktrace:
42237@if target-libbacktrace
42238maybe-install-html-target-libbacktrace: install-html-target-libbacktrace
42239
42240install-html-target-libbacktrace: \
42241 configure-target-libbacktrace \
42242 html-target-libbacktrace
42243 @: $(MAKE); $(unstage)
22121df0 42244 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42245 r=`${PWD_COMMAND}`; export r; \
42246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42247 $(NORMAL_TARGET_EXPORTS) \
22121df0 42248 echo "Doing install-html in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42249 for flag in $(EXTRA_TARGET_FLAGS); do \
42250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42251 done; \
42252 (cd $(TARGET_SUBDIR)/libbacktrace && \
42253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42255 "RANLIB=$${RANLIB}" \
42256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42257 install-html) \
42258 || exit 1
42259
42260@endif target-libbacktrace
42261
42262.PHONY: maybe-installcheck-target-libbacktrace installcheck-target-libbacktrace
42263maybe-installcheck-target-libbacktrace:
42264@if target-libbacktrace
42265maybe-installcheck-target-libbacktrace: installcheck-target-libbacktrace
42266
42267installcheck-target-libbacktrace: \
42268 configure-target-libbacktrace
42269 @: $(MAKE); $(unstage)
22121df0 42270 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42271 r=`${PWD_COMMAND}`; export r; \
42272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42273 $(NORMAL_TARGET_EXPORTS) \
22121df0 42274 echo "Doing installcheck in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42275 for flag in $(EXTRA_TARGET_FLAGS); do \
42276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42277 done; \
42278 (cd $(TARGET_SUBDIR)/libbacktrace && \
42279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42281 "RANLIB=$${RANLIB}" \
42282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42283 installcheck) \
42284 || exit 1
42285
42286@endif target-libbacktrace
42287
42288.PHONY: maybe-mostlyclean-target-libbacktrace mostlyclean-target-libbacktrace
42289maybe-mostlyclean-target-libbacktrace:
42290@if target-libbacktrace
42291maybe-mostlyclean-target-libbacktrace: mostlyclean-target-libbacktrace
42292
42293mostlyclean-target-libbacktrace:
42294 @: $(MAKE); $(unstage)
22121df0 42295 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42296 r=`${PWD_COMMAND}`; export r; \
42297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42298 $(NORMAL_TARGET_EXPORTS) \
22121df0 42299 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42300 for flag in $(EXTRA_TARGET_FLAGS); do \
42301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42302 done; \
42303 (cd $(TARGET_SUBDIR)/libbacktrace && \
42304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42306 "RANLIB=$${RANLIB}" \
42307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42308 mostlyclean) \
42309 || exit 1
42310
42311@endif target-libbacktrace
42312
42313.PHONY: maybe-clean-target-libbacktrace clean-target-libbacktrace
42314maybe-clean-target-libbacktrace:
42315@if target-libbacktrace
42316maybe-clean-target-libbacktrace: clean-target-libbacktrace
42317
42318clean-target-libbacktrace:
42319 @: $(MAKE); $(unstage)
22121df0 42320 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42321 r=`${PWD_COMMAND}`; export r; \
42322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42323 $(NORMAL_TARGET_EXPORTS) \
22121df0 42324 echo "Doing clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42325 for flag in $(EXTRA_TARGET_FLAGS); do \
42326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42327 done; \
42328 (cd $(TARGET_SUBDIR)/libbacktrace && \
42329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42331 "RANLIB=$${RANLIB}" \
42332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42333 clean) \
42334 || exit 1
42335
42336@endif target-libbacktrace
42337
42338.PHONY: maybe-distclean-target-libbacktrace distclean-target-libbacktrace
42339maybe-distclean-target-libbacktrace:
42340@if target-libbacktrace
42341maybe-distclean-target-libbacktrace: distclean-target-libbacktrace
42342
42343distclean-target-libbacktrace:
42344 @: $(MAKE); $(unstage)
22121df0 42345 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42346 r=`${PWD_COMMAND}`; export r; \
42347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42348 $(NORMAL_TARGET_EXPORTS) \
22121df0 42349 echo "Doing distclean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42350 for flag in $(EXTRA_TARGET_FLAGS); do \
42351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42352 done; \
42353 (cd $(TARGET_SUBDIR)/libbacktrace && \
42354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42356 "RANLIB=$${RANLIB}" \
42357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42358 distclean) \
42359 || exit 1
42360
42361@endif target-libbacktrace
42362
42363.PHONY: maybe-maintainer-clean-target-libbacktrace maintainer-clean-target-libbacktrace
42364maybe-maintainer-clean-target-libbacktrace:
42365@if target-libbacktrace
42366maybe-maintainer-clean-target-libbacktrace: maintainer-clean-target-libbacktrace
42367
42368maintainer-clean-target-libbacktrace:
42369 @: $(MAKE); $(unstage)
22121df0 42370 @[ -f $(TARGET_SUBDIR)/libbacktrace/Makefile ] || exit 0; \
2bf680c4
ILT
42371 r=`${PWD_COMMAND}`; export r; \
42372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42373 $(NORMAL_TARGET_EXPORTS) \
22121df0 42374 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libbacktrace"; \
2bf680c4
ILT
42375 for flag in $(EXTRA_TARGET_FLAGS); do \
42376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42377 done; \
42378 (cd $(TARGET_SUBDIR)/libbacktrace && \
42379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42381 "RANLIB=$${RANLIB}" \
42382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42383 maintainer-clean) \
42384 || exit 1
42385
42386@endif target-libbacktrace
42387
42388
42389
42390
42391
a90ef4bf
JM
42392.PHONY: configure-target-libquadmath maybe-configure-target-libquadmath
42393maybe-configure-target-libquadmath:
4f0ef2d8 42394@if gcc-bootstrap
a90ef4bf 42395configure-target-libquadmath: stage_current
4f0ef2d8 42396@endif gcc-bootstrap
a90ef4bf
JM
42397@if target-libquadmath
42398maybe-configure-target-libquadmath: configure-target-libquadmath
42399configure-target-libquadmath:
0aed8855
PB
42400 @: $(MAKE); $(unstage)
42401 @r=`${PWD_COMMAND}`; export r; \
42402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42403 echo "Checking multilib configuration for libquadmath..."; \
22121df0
L
42404 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
42405 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libquadmath/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42406 if test -r $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
42407 if cmp -s $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; then \
42408 rm -f $(TARGET_SUBDIR)/libquadmath/multilib.tmp; \
0aed8855 42409 else \
a90ef4bf
JM
42410 rm -f $(TARGET_SUBDIR)/libquadmath/Makefile; \
42411 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
0aed8855
PB
42412 fi; \
42413 else \
a90ef4bf 42414 mv $(TARGET_SUBDIR)/libquadmath/multilib.tmp $(TARGET_SUBDIR)/libquadmath/multilib.out; \
c52c6897 42415 fi; \
a90ef4bf 42416 test ! -f $(TARGET_SUBDIR)/libquadmath/Makefile || exit 0; \
22121df0 42417 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libquadmath; \
1f53ca9a 42418 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42419 echo Configuring in $(TARGET_SUBDIR)/libquadmath; \
42420 cd "$(TARGET_SUBDIR)/libquadmath" || exit 1; \
e2b9e2dc 42421 case $(srcdir) in \
b00612cc 42422 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42423 *) topdir=`echo $(TARGET_SUBDIR)/libquadmath/ | \
b00612cc 42424 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 42425 esac; \
1b6c0831 42426 module_srcdir=libquadmath; \
4fa63067 42427 rm -f no-such-file || : ; \
1b6c0831
L
42428 CONFIG_SITE=no-such-file $(SHELL) \
42429 $$s/$$module_srcdir/configure \
42430 --srcdir=$${topdir}/$$module_srcdir \
4b900473 42431 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42432 --target=${target_alias} \
e2b9e2dc 42433 || exit 1
a90ef4bf 42434@endif target-libquadmath
e2b9e2dc 42435
a7254363
PB
42436
42437
d545f33b
PB
42438
42439
a90ef4bf
JM
42440.PHONY: all-target-libquadmath maybe-all-target-libquadmath
42441maybe-all-target-libquadmath:
4f0ef2d8 42442@if gcc-bootstrap
a90ef4bf 42443all-target-libquadmath: stage_current
4f0ef2d8 42444@endif gcc-bootstrap
a90ef4bf
JM
42445@if target-libquadmath
42446TARGET-target-libquadmath=all
42447maybe-all-target-libquadmath: all-target-libquadmath
42448all-target-libquadmath: configure-target-libquadmath
0aed8855 42449 @: $(MAKE); $(unstage)
b40e3958
L
42450 @r=`${PWD_COMMAND}`; export r; \
42451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 42452 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42453 (cd $(TARGET_SUBDIR)/libquadmath && \
b3676d82 42454 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42455 $(TARGET-target-libquadmath))
42456@endif target-libquadmath
3866be5d 42457
a7254363
PB
42458
42459
d545f33b
PB
42460
42461
a90ef4bf
JM
42462.PHONY: check-target-libquadmath maybe-check-target-libquadmath
42463maybe-check-target-libquadmath:
42464@if target-libquadmath
42465maybe-check-target-libquadmath: check-target-libquadmath
3866be5d 42466
a90ef4bf 42467check-target-libquadmath:
0aed8855 42468 @: $(MAKE); $(unstage)
b40e3958
L
42469 @r=`${PWD_COMMAND}`; export r; \
42470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42471 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42472 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 42473 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 42474
a90ef4bf 42475@endif target-libquadmath
3866be5d 42476
a90ef4bf
JM
42477.PHONY: install-target-libquadmath maybe-install-target-libquadmath
42478maybe-install-target-libquadmath:
42479@if target-libquadmath
42480maybe-install-target-libquadmath: install-target-libquadmath
e2b9e2dc 42481
a90ef4bf 42482install-target-libquadmath: installdirs
0aed8855 42483 @: $(MAKE); $(unstage)
b40e3958
L
42484 @r=`${PWD_COMMAND}`; export r; \
42485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42486 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42487 (cd $(TARGET_SUBDIR)/libquadmath && \
7ffa0b57 42488 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 42489
a90ef4bf 42490@endif target-libquadmath
3866be5d 42491
a90ef4bf
JM
42492.PHONY: install-strip-target-libquadmath maybe-install-strip-target-libquadmath
42493maybe-install-strip-target-libquadmath:
42494@if target-libquadmath
42495maybe-install-strip-target-libquadmath: install-strip-target-libquadmath
9b980aa1 42496
a90ef4bf 42497install-strip-target-libquadmath: installdirs
9b980aa1
RW
42498 @: $(MAKE); $(unstage)
42499 @r=`${PWD_COMMAND}`; export r; \
42500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42501 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42502 (cd $(TARGET_SUBDIR)/libquadmath && \
9b980aa1
RW
42503 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42504
a90ef4bf 42505@endif target-libquadmath
9b980aa1 42506
56a8fe78 42507# Other targets (info, dvi, pdf, etc.)
4fa63067 42508
a90ef4bf
JM
42509.PHONY: maybe-info-target-libquadmath info-target-libquadmath
42510maybe-info-target-libquadmath:
42511@if target-libquadmath
42512maybe-info-target-libquadmath: info-target-libquadmath
4fa63067 42513
a90ef4bf
JM
42514info-target-libquadmath: \
42515 configure-target-libquadmath
0aed8855 42516 @: $(MAKE); $(unstage)
22121df0 42517 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42518 r=`${PWD_COMMAND}`; export r; \
b40e3958 42519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42520 $(NORMAL_TARGET_EXPORTS) \
22121df0 42521 echo "Doing info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42522 for flag in $(EXTRA_TARGET_FLAGS); do \
42523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42524 done; \
a90ef4bf 42525 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42528 "RANLIB=$${RANLIB}" \
0c24b341 42529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42530 info) \
4fa63067 42531 || exit 1
3866be5d 42532
a90ef4bf 42533@endif target-libquadmath
3866be5d 42534
a90ef4bf
JM
42535.PHONY: maybe-dvi-target-libquadmath dvi-target-libquadmath
42536maybe-dvi-target-libquadmath:
42537@if target-libquadmath
42538maybe-dvi-target-libquadmath: dvi-target-libquadmath
16ae0395 42539
a90ef4bf
JM
42540dvi-target-libquadmath: \
42541 configure-target-libquadmath
0aed8855 42542 @: $(MAKE); $(unstage)
22121df0 42543 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42544 r=`${PWD_COMMAND}`; export r; \
b40e3958 42545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42546 $(NORMAL_TARGET_EXPORTS) \
22121df0 42547 echo "Doing dvi in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42548 for flag in $(EXTRA_TARGET_FLAGS); do \
42549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42550 done; \
a90ef4bf 42551 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42554 "RANLIB=$${RANLIB}" \
0c24b341 42555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42556 dvi) \
4fa63067 42557 || exit 1
3866be5d 42558
a90ef4bf 42559@endif target-libquadmath
3866be5d 42560
a90ef4bf
JM
42561.PHONY: maybe-pdf-target-libquadmath pdf-target-libquadmath
42562maybe-pdf-target-libquadmath:
42563@if target-libquadmath
42564maybe-pdf-target-libquadmath: pdf-target-libquadmath
56a8fe78 42565
a90ef4bf
JM
42566pdf-target-libquadmath: \
42567 configure-target-libquadmath
56a8fe78 42568 @: $(MAKE); $(unstage)
22121df0 42569 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
56a8fe78
DD
42570 r=`${PWD_COMMAND}`; export r; \
42571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42572 $(NORMAL_TARGET_EXPORTS) \
22121df0 42573 echo "Doing pdf in $(TARGET_SUBDIR)/libquadmath"; \
56a8fe78
DD
42574 for flag in $(EXTRA_TARGET_FLAGS); do \
42575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42576 done; \
a90ef4bf 42577 (cd $(TARGET_SUBDIR)/libquadmath && \
56a8fe78
DD
42578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42580 "RANLIB=$${RANLIB}" \
0c24b341 42581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
42582 pdf) \
42583 || exit 1
42584
a90ef4bf 42585@endif target-libquadmath
56a8fe78 42586
a90ef4bf
JM
42587.PHONY: maybe-html-target-libquadmath html-target-libquadmath
42588maybe-html-target-libquadmath:
42589@if target-libquadmath
42590maybe-html-target-libquadmath: html-target-libquadmath
6d389afc 42591
a90ef4bf
JM
42592html-target-libquadmath: \
42593 configure-target-libquadmath
0aed8855 42594 @: $(MAKE); $(unstage)
22121df0 42595 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
6d389afc
MS
42596 r=`${PWD_COMMAND}`; export r; \
42597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 42598 $(NORMAL_TARGET_EXPORTS) \
22121df0 42599 echo "Doing html in $(TARGET_SUBDIR)/libquadmath"; \
6d389afc
MS
42600 for flag in $(EXTRA_TARGET_FLAGS); do \
42601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42602 done; \
a90ef4bf 42603 (cd $(TARGET_SUBDIR)/libquadmath && \
6d389afc
MS
42604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42606 "RANLIB=$${RANLIB}" \
0c24b341 42607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
42608 html) \
42609 || exit 1
42610
a90ef4bf 42611@endif target-libquadmath
6d389afc 42612
a90ef4bf
JM
42613.PHONY: maybe-TAGS-target-libquadmath TAGS-target-libquadmath
42614maybe-TAGS-target-libquadmath:
42615@if target-libquadmath
42616maybe-TAGS-target-libquadmath: TAGS-target-libquadmath
4fa63067 42617
a90ef4bf
JM
42618TAGS-target-libquadmath: \
42619 configure-target-libquadmath
0aed8855 42620 @: $(MAKE); $(unstage)
22121df0 42621 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
42622 r=`${PWD_COMMAND}`; export r; \
42623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42624 $(NORMAL_TARGET_EXPORTS) \
22121df0 42625 echo "Doing TAGS in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
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)/libquadmath && \
4fa63067
NN
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}" \
7ffa0b57 42634 TAGS) \
e2b9e2dc
NN
42635 || exit 1
42636
a90ef4bf 42637@endif target-libquadmath
4fa63067 42638
a90ef4bf
JM
42639.PHONY: maybe-install-info-target-libquadmath install-info-target-libquadmath
42640maybe-install-info-target-libquadmath:
42641@if target-libquadmath
42642maybe-install-info-target-libquadmath: install-info-target-libquadmath
4fa63067 42643
a90ef4bf
JM
42644install-info-target-libquadmath: \
42645 configure-target-libquadmath \
42646 info-target-libquadmath
0aed8855 42647 @: $(MAKE); $(unstage)
22121df0 42648 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42649 r=`${PWD_COMMAND}`; export r; \
b40e3958 42650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42651 $(NORMAL_TARGET_EXPORTS) \
22121df0 42652 echo "Doing install-info in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42653 for flag in $(EXTRA_TARGET_FLAGS); do \
42654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42655 done; \
a90ef4bf 42656 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42659 "RANLIB=$${RANLIB}" \
0c24b341 42660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42661 install-info) \
4fa63067 42662 || exit 1
3866be5d 42663
a90ef4bf 42664@endif target-libquadmath
3866be5d 42665
a90ef4bf
JM
42666.PHONY: maybe-install-pdf-target-libquadmath install-pdf-target-libquadmath
42667maybe-install-pdf-target-libquadmath:
42668@if target-libquadmath
42669maybe-install-pdf-target-libquadmath: install-pdf-target-libquadmath
a3ca38d2 42670
a90ef4bf
JM
42671install-pdf-target-libquadmath: \
42672 configure-target-libquadmath \
42673 pdf-target-libquadmath
a3ca38d2 42674 @: $(MAKE); $(unstage)
22121df0 42675 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
a3ca38d2
DD
42676 r=`${PWD_COMMAND}`; export r; \
42677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42678 $(NORMAL_TARGET_EXPORTS) \
22121df0 42679 echo "Doing install-pdf in $(TARGET_SUBDIR)/libquadmath"; \
a3ca38d2
DD
42680 for flag in $(EXTRA_TARGET_FLAGS); do \
42681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42682 done; \
a90ef4bf 42683 (cd $(TARGET_SUBDIR)/libquadmath && \
a3ca38d2
DD
42684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42686 "RANLIB=$${RANLIB}" \
0c24b341 42687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
42688 install-pdf) \
42689 || exit 1
42690
a90ef4bf 42691@endif target-libquadmath
a3ca38d2 42692
a90ef4bf
JM
42693.PHONY: maybe-install-html-target-libquadmath install-html-target-libquadmath
42694maybe-install-html-target-libquadmath:
42695@if target-libquadmath
42696maybe-install-html-target-libquadmath: install-html-target-libquadmath
108a6f8e 42697
a90ef4bf
JM
42698install-html-target-libquadmath: \
42699 configure-target-libquadmath \
42700 html-target-libquadmath
108a6f8e 42701 @: $(MAKE); $(unstage)
22121df0 42702 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
108a6f8e
CD
42703 r=`${PWD_COMMAND}`; export r; \
42704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42705 $(NORMAL_TARGET_EXPORTS) \
22121df0 42706 echo "Doing install-html in $(TARGET_SUBDIR)/libquadmath"; \
108a6f8e
CD
42707 for flag in $(EXTRA_TARGET_FLAGS); do \
42708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42709 done; \
a90ef4bf 42710 (cd $(TARGET_SUBDIR)/libquadmath && \
108a6f8e
CD
42711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42713 "RANLIB=$${RANLIB}" \
0c24b341 42714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
42715 install-html) \
42716 || exit 1
42717
a90ef4bf 42718@endif target-libquadmath
108a6f8e 42719
a90ef4bf
JM
42720.PHONY: maybe-installcheck-target-libquadmath installcheck-target-libquadmath
42721maybe-installcheck-target-libquadmath:
42722@if target-libquadmath
42723maybe-installcheck-target-libquadmath: installcheck-target-libquadmath
4fa63067 42724
a90ef4bf
JM
42725installcheck-target-libquadmath: \
42726 configure-target-libquadmath
0aed8855 42727 @: $(MAKE); $(unstage)
22121df0 42728 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42729 r=`${PWD_COMMAND}`; export r; \
b40e3958 42730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42731 $(NORMAL_TARGET_EXPORTS) \
22121df0 42732 echo "Doing installcheck in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42733 for flag in $(EXTRA_TARGET_FLAGS); do \
42734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42735 done; \
a90ef4bf 42736 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42739 "RANLIB=$${RANLIB}" \
0c24b341 42740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42741 installcheck) \
4fa63067 42742 || exit 1
3866be5d 42743
a90ef4bf 42744@endif target-libquadmath
3866be5d 42745
a90ef4bf
JM
42746.PHONY: maybe-mostlyclean-target-libquadmath mostlyclean-target-libquadmath
42747maybe-mostlyclean-target-libquadmath:
42748@if target-libquadmath
42749maybe-mostlyclean-target-libquadmath: mostlyclean-target-libquadmath
16ae0395 42750
a90ef4bf 42751mostlyclean-target-libquadmath:
0aed8855 42752 @: $(MAKE); $(unstage)
22121df0 42753 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42754 r=`${PWD_COMMAND}`; export r; \
b40e3958 42755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42756 $(NORMAL_TARGET_EXPORTS) \
22121df0 42757 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42758 for flag in $(EXTRA_TARGET_FLAGS); do \
42759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42760 done; \
a90ef4bf 42761 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42764 "RANLIB=$${RANLIB}" \
0c24b341 42765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42766 mostlyclean) \
4fa63067 42767 || exit 1
3866be5d 42768
a90ef4bf 42769@endif target-libquadmath
3866be5d 42770
a90ef4bf
JM
42771.PHONY: maybe-clean-target-libquadmath clean-target-libquadmath
42772maybe-clean-target-libquadmath:
42773@if target-libquadmath
42774maybe-clean-target-libquadmath: clean-target-libquadmath
4fa63067 42775
a90ef4bf 42776clean-target-libquadmath:
0aed8855 42777 @: $(MAKE); $(unstage)
22121df0 42778 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
b40e3958
L
42779 r=`${PWD_COMMAND}`; export r; \
42780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42781 $(NORMAL_TARGET_EXPORTS) \
22121df0 42782 echo "Doing clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42783 for flag in $(EXTRA_TARGET_FLAGS); do \
42784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42785 done; \
a90ef4bf 42786 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42789 "RANLIB=$${RANLIB}" \
0c24b341 42790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42791 clean) \
e2b9e2dc
NN
42792 || exit 1
42793
a90ef4bf 42794@endif target-libquadmath
3866be5d 42795
a90ef4bf
JM
42796.PHONY: maybe-distclean-target-libquadmath distclean-target-libquadmath
42797maybe-distclean-target-libquadmath:
42798@if target-libquadmath
42799maybe-distclean-target-libquadmath: distclean-target-libquadmath
3866be5d 42800
a90ef4bf 42801distclean-target-libquadmath:
0aed8855 42802 @: $(MAKE); $(unstage)
22121df0 42803 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42804 r=`${PWD_COMMAND}`; export r; \
b40e3958 42805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42806 $(NORMAL_TARGET_EXPORTS) \
22121df0 42807 echo "Doing distclean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42808 for flag in $(EXTRA_TARGET_FLAGS); do \
42809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42810 done; \
a90ef4bf 42811 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42814 "RANLIB=$${RANLIB}" \
0c24b341 42815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42816 distclean) \
4fa63067 42817 || exit 1
3866be5d 42818
a90ef4bf 42819@endif target-libquadmath
3866be5d 42820
a90ef4bf
JM
42821.PHONY: maybe-maintainer-clean-target-libquadmath maintainer-clean-target-libquadmath
42822maybe-maintainer-clean-target-libquadmath:
42823@if target-libquadmath
42824maybe-maintainer-clean-target-libquadmath: maintainer-clean-target-libquadmath
16ae0395 42825
a90ef4bf 42826maintainer-clean-target-libquadmath:
0aed8855 42827 @: $(MAKE); $(unstage)
22121df0 42828 @[ -f $(TARGET_SUBDIR)/libquadmath/Makefile ] || exit 0; \
4fa63067 42829 r=`${PWD_COMMAND}`; export r; \
b40e3958 42830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 42831 $(NORMAL_TARGET_EXPORTS) \
22121df0 42832 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libquadmath"; \
4fa63067
NN
42833 for flag in $(EXTRA_TARGET_FLAGS); do \
42834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42835 done; \
a90ef4bf 42836 (cd $(TARGET_SUBDIR)/libquadmath && \
4fa63067
NN
42837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42839 "RANLIB=$${RANLIB}" \
0c24b341 42840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 42841 maintainer-clean) \
4fa63067 42842 || exit 1
3866be5d 42843
a90ef4bf 42844@endif target-libquadmath
3866be5d 42845
4fa63067 42846
4fa63067 42847
a7254363 42848
e90269c8 42849
a90ef4bf
JM
42850.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
42851maybe-configure-target-libgfortran:
e552509b 42852@if gcc-bootstrap
a90ef4bf 42853configure-target-libgfortran: stage_current
e552509b 42854@endif gcc-bootstrap
a90ef4bf
JM
42855@if target-libgfortran
42856maybe-configure-target-libgfortran: configure-target-libgfortran
42857configure-target-libgfortran:
e552509b
ILT
42858 @: $(MAKE); $(unstage)
42859 @r=`${PWD_COMMAND}`; export r; \
42860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 42861 echo "Checking multilib configuration for libgfortran..."; \
22121df0
L
42862 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
42863 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
42864 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
42865 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
42866 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
e552509b 42867 else \
a90ef4bf
JM
42868 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
42869 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b
ILT
42870 fi; \
42871 else \
a90ef4bf 42872 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
e552509b 42873 fi; \
a90ef4bf 42874 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
22121df0 42875 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran; \
e552509b 42876 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
42877 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
42878 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
e552509b
ILT
42879 case $(srcdir) in \
42880 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 42881 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
e552509b
ILT
42882 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
42883 esac; \
1b6c0831 42884 module_srcdir=libgfortran; \
e552509b 42885 rm -f no-such-file || : ; \
1b6c0831
L
42886 CONFIG_SITE=no-such-file $(SHELL) \
42887 $$s/$$module_srcdir/configure \
42888 --srcdir=$${topdir}/$$module_srcdir \
e552509b 42889 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 42890 --target=${target_alias} \
e552509b 42891 || exit 1
a90ef4bf 42892@endif target-libgfortran
e552509b
ILT
42893
42894
42895
42896
42897
a90ef4bf
JM
42898.PHONY: all-target-libgfortran maybe-all-target-libgfortran
42899maybe-all-target-libgfortran:
e552509b 42900@if gcc-bootstrap
a90ef4bf 42901all-target-libgfortran: stage_current
e552509b 42902@endif gcc-bootstrap
a90ef4bf
JM
42903@if target-libgfortran
42904TARGET-target-libgfortran=all
42905maybe-all-target-libgfortran: all-target-libgfortran
42906all-target-libgfortran: configure-target-libgfortran
e552509b
ILT
42907 @: $(MAKE); $(unstage)
42908 @r=`${PWD_COMMAND}`; export r; \
42909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42910 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42911 (cd $(TARGET_SUBDIR)/libgfortran && \
b3676d82 42912 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
42913 $(TARGET-target-libgfortran))
42914@endif target-libgfortran
e552509b
ILT
42915
42916
42917
42918
42919
a90ef4bf
JM
42920.PHONY: check-target-libgfortran maybe-check-target-libgfortran
42921maybe-check-target-libgfortran:
42922@if target-libgfortran
42923maybe-check-target-libgfortran: check-target-libgfortran
e552509b 42924
a90ef4bf 42925check-target-libgfortran:
e552509b
ILT
42926 @: $(MAKE); $(unstage)
42927 @r=`${PWD_COMMAND}`; export r; \
42928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42929 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42930 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42931 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
42932
a90ef4bf 42933@endif target-libgfortran
e552509b 42934
a90ef4bf
JM
42935.PHONY: install-target-libgfortran maybe-install-target-libgfortran
42936maybe-install-target-libgfortran:
42937@if target-libgfortran
42938maybe-install-target-libgfortran: install-target-libgfortran
e552509b 42939
a90ef4bf 42940install-target-libgfortran: installdirs
e552509b
ILT
42941 @: $(MAKE); $(unstage)
42942 @r=`${PWD_COMMAND}`; export r; \
42943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42944 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42945 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42946 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
42947
a90ef4bf 42948@endif target-libgfortran
e552509b 42949
a90ef4bf
JM
42950.PHONY: install-strip-target-libgfortran maybe-install-strip-target-libgfortran
42951maybe-install-strip-target-libgfortran:
42952@if target-libgfortran
42953maybe-install-strip-target-libgfortran: install-strip-target-libgfortran
9b980aa1 42954
a90ef4bf 42955install-strip-target-libgfortran: installdirs
9b980aa1
RW
42956 @: $(MAKE); $(unstage)
42957 @r=`${PWD_COMMAND}`; export r; \
42958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42959 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 42960 (cd $(TARGET_SUBDIR)/libgfortran && \
9b980aa1
RW
42961 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
42962
a90ef4bf 42963@endif target-libgfortran
9b980aa1 42964
e552509b
ILT
42965# Other targets (info, dvi, pdf, etc.)
42966
a90ef4bf
JM
42967.PHONY: maybe-info-target-libgfortran info-target-libgfortran
42968maybe-info-target-libgfortran:
42969@if target-libgfortran
42970maybe-info-target-libgfortran: info-target-libgfortran
e552509b 42971
a90ef4bf
JM
42972info-target-libgfortran: \
42973 configure-target-libgfortran
e552509b 42974 @: $(MAKE); $(unstage)
22121df0 42975 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
42976 r=`${PWD_COMMAND}`; export r; \
42977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42978 $(NORMAL_TARGET_EXPORTS) \
22121df0 42979 echo "Doing info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
42980 for flag in $(EXTRA_TARGET_FLAGS); do \
42981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
42982 done; \
a90ef4bf 42983 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
42984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
42985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
42986 "RANLIB=$${RANLIB}" \
42987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
42988 info) \
42989 || exit 1
42990
a90ef4bf 42991@endif target-libgfortran
e552509b 42992
a90ef4bf
JM
42993.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
42994maybe-dvi-target-libgfortran:
42995@if target-libgfortran
42996maybe-dvi-target-libgfortran: dvi-target-libgfortran
e552509b 42997
a90ef4bf
JM
42998dvi-target-libgfortran: \
42999 configure-target-libgfortran
e552509b 43000 @: $(MAKE); $(unstage)
22121df0 43001 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43002 r=`${PWD_COMMAND}`; export r; \
43003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43004 $(NORMAL_TARGET_EXPORTS) \
22121df0 43005 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43006 for flag in $(EXTRA_TARGET_FLAGS); do \
43007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43008 done; \
a90ef4bf 43009 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43012 "RANLIB=$${RANLIB}" \
43013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43014 dvi) \
43015 || exit 1
43016
a90ef4bf 43017@endif target-libgfortran
e552509b 43018
a90ef4bf
JM
43019.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
43020maybe-pdf-target-libgfortran:
43021@if target-libgfortran
43022maybe-pdf-target-libgfortran: pdf-target-libgfortran
e552509b 43023
a90ef4bf
JM
43024pdf-target-libgfortran: \
43025 configure-target-libgfortran
e552509b 43026 @: $(MAKE); $(unstage)
22121df0 43027 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43028 r=`${PWD_COMMAND}`; export r; \
43029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43030 $(NORMAL_TARGET_EXPORTS) \
22121df0 43031 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43032 for flag in $(EXTRA_TARGET_FLAGS); do \
43033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43034 done; \
a90ef4bf 43035 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43038 "RANLIB=$${RANLIB}" \
43039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43040 pdf) \
43041 || exit 1
43042
a90ef4bf 43043@endif target-libgfortran
e552509b 43044
a90ef4bf
JM
43045.PHONY: maybe-html-target-libgfortran html-target-libgfortran
43046maybe-html-target-libgfortran:
43047@if target-libgfortran
43048maybe-html-target-libgfortran: html-target-libgfortran
e552509b 43049
a90ef4bf
JM
43050html-target-libgfortran: \
43051 configure-target-libgfortran
e552509b 43052 @: $(MAKE); $(unstage)
22121df0 43053 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43054 r=`${PWD_COMMAND}`; export r; \
43055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43056 $(NORMAL_TARGET_EXPORTS) \
22121df0 43057 echo "Doing html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43058 for flag in $(EXTRA_TARGET_FLAGS); do \
43059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43060 done; \
a90ef4bf 43061 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43064 "RANLIB=$${RANLIB}" \
43065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43066 html) \
43067 || exit 1
43068
a90ef4bf 43069@endif target-libgfortran
e552509b 43070
a90ef4bf
JM
43071.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
43072maybe-TAGS-target-libgfortran:
43073@if target-libgfortran
43074maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
e552509b 43075
a90ef4bf
JM
43076TAGS-target-libgfortran: \
43077 configure-target-libgfortran
e552509b 43078 @: $(MAKE); $(unstage)
22121df0 43079 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43080 r=`${PWD_COMMAND}`; export r; \
43081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43082 $(NORMAL_TARGET_EXPORTS) \
22121df0 43083 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
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)/libgfortran && \
e552509b
ILT
43088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43090 "RANLIB=$${RANLIB}" \
43091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43092 TAGS) \
43093 || exit 1
43094
a90ef4bf 43095@endif target-libgfortran
e552509b 43096
a90ef4bf
JM
43097.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
43098maybe-install-info-target-libgfortran:
43099@if target-libgfortran
43100maybe-install-info-target-libgfortran: install-info-target-libgfortran
e552509b 43101
a90ef4bf
JM
43102install-info-target-libgfortran: \
43103 configure-target-libgfortran \
43104 info-target-libgfortran
e552509b 43105 @: $(MAKE); $(unstage)
22121df0 43106 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43107 r=`${PWD_COMMAND}`; export r; \
43108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43109 $(NORMAL_TARGET_EXPORTS) \
22121df0 43110 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43111 for flag in $(EXTRA_TARGET_FLAGS); do \
43112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43113 done; \
a90ef4bf 43114 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43117 "RANLIB=$${RANLIB}" \
43118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43119 install-info) \
43120 || exit 1
43121
a90ef4bf 43122@endif target-libgfortran
e552509b 43123
a90ef4bf
JM
43124.PHONY: maybe-install-pdf-target-libgfortran install-pdf-target-libgfortran
43125maybe-install-pdf-target-libgfortran:
43126@if target-libgfortran
43127maybe-install-pdf-target-libgfortran: install-pdf-target-libgfortran
e552509b 43128
a90ef4bf
JM
43129install-pdf-target-libgfortran: \
43130 configure-target-libgfortran \
43131 pdf-target-libgfortran
e552509b 43132 @: $(MAKE); $(unstage)
22121df0 43133 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43134 r=`${PWD_COMMAND}`; export r; \
43135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43136 $(NORMAL_TARGET_EXPORTS) \
22121df0 43137 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43138 for flag in $(EXTRA_TARGET_FLAGS); do \
43139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43140 done; \
a90ef4bf 43141 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43144 "RANLIB=$${RANLIB}" \
43145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43146 install-pdf) \
43147 || exit 1
43148
a90ef4bf 43149@endif target-libgfortran
e552509b 43150
a90ef4bf
JM
43151.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
43152maybe-install-html-target-libgfortran:
43153@if target-libgfortran
43154maybe-install-html-target-libgfortran: install-html-target-libgfortran
e552509b 43155
a90ef4bf
JM
43156install-html-target-libgfortran: \
43157 configure-target-libgfortran \
43158 html-target-libgfortran
e552509b 43159 @: $(MAKE); $(unstage)
22121df0 43160 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43161 r=`${PWD_COMMAND}`; export r; \
43162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43163 $(NORMAL_TARGET_EXPORTS) \
22121df0 43164 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43165 for flag in $(EXTRA_TARGET_FLAGS); do \
43166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43167 done; \
a90ef4bf 43168 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43171 "RANLIB=$${RANLIB}" \
43172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43173 install-html) \
43174 || exit 1
43175
a90ef4bf 43176@endif target-libgfortran
e552509b 43177
a90ef4bf
JM
43178.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
43179maybe-installcheck-target-libgfortran:
43180@if target-libgfortran
43181maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
e552509b 43182
a90ef4bf
JM
43183installcheck-target-libgfortran: \
43184 configure-target-libgfortran
e552509b 43185 @: $(MAKE); $(unstage)
22121df0 43186 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43187 r=`${PWD_COMMAND}`; export r; \
43188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43189 $(NORMAL_TARGET_EXPORTS) \
22121df0 43190 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43191 for flag in $(EXTRA_TARGET_FLAGS); do \
43192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43193 done; \
a90ef4bf 43194 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43197 "RANLIB=$${RANLIB}" \
43198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43199 installcheck) \
43200 || exit 1
43201
a90ef4bf 43202@endif target-libgfortran
e552509b 43203
a90ef4bf
JM
43204.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
43205maybe-mostlyclean-target-libgfortran:
43206@if target-libgfortran
43207maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
e552509b 43208
a90ef4bf 43209mostlyclean-target-libgfortran:
e552509b 43210 @: $(MAKE); $(unstage)
22121df0 43211 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43212 r=`${PWD_COMMAND}`; export r; \
43213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43214 $(NORMAL_TARGET_EXPORTS) \
22121df0 43215 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43216 for flag in $(EXTRA_TARGET_FLAGS); do \
43217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43218 done; \
a90ef4bf 43219 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43222 "RANLIB=$${RANLIB}" \
43223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43224 mostlyclean) \
43225 || exit 1
43226
a90ef4bf 43227@endif target-libgfortran
e552509b 43228
a90ef4bf
JM
43229.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
43230maybe-clean-target-libgfortran:
43231@if target-libgfortran
43232maybe-clean-target-libgfortran: clean-target-libgfortran
e552509b 43233
a90ef4bf 43234clean-target-libgfortran:
e552509b 43235 @: $(MAKE); $(unstage)
22121df0 43236 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43237 r=`${PWD_COMMAND}`; export r; \
43238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43239 $(NORMAL_TARGET_EXPORTS) \
22121df0 43240 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43241 for flag in $(EXTRA_TARGET_FLAGS); do \
43242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43243 done; \
a90ef4bf 43244 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43247 "RANLIB=$${RANLIB}" \
43248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43249 clean) \
43250 || exit 1
43251
a90ef4bf 43252@endif target-libgfortran
e552509b 43253
a90ef4bf
JM
43254.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
43255maybe-distclean-target-libgfortran:
43256@if target-libgfortran
43257maybe-distclean-target-libgfortran: distclean-target-libgfortran
e552509b 43258
a90ef4bf 43259distclean-target-libgfortran:
e552509b 43260 @: $(MAKE); $(unstage)
22121df0 43261 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43262 r=`${PWD_COMMAND}`; export r; \
43263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43264 $(NORMAL_TARGET_EXPORTS) \
22121df0 43265 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43266 for flag in $(EXTRA_TARGET_FLAGS); do \
43267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43268 done; \
a90ef4bf 43269 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43272 "RANLIB=$${RANLIB}" \
43273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43274 distclean) \
43275 || exit 1
43276
a90ef4bf 43277@endif target-libgfortran
e552509b 43278
a90ef4bf
JM
43279.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
43280maybe-maintainer-clean-target-libgfortran:
43281@if target-libgfortran
43282maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
e552509b 43283
a90ef4bf 43284maintainer-clean-target-libgfortran:
e552509b 43285 @: $(MAKE); $(unstage)
22121df0 43286 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0; \
e552509b
ILT
43287 r=`${PWD_COMMAND}`; export r; \
43288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43289 $(NORMAL_TARGET_EXPORTS) \
22121df0 43290 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran"; \
e552509b
ILT
43291 for flag in $(EXTRA_TARGET_FLAGS); do \
43292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43293 done; \
a90ef4bf 43294 (cd $(TARGET_SUBDIR)/libgfortran && \
e552509b
ILT
43295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43297 "RANLIB=$${RANLIB}" \
43298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43299 maintainer-clean) \
43300 || exit 1
43301
a90ef4bf 43302@endif target-libgfortran
e552509b
ILT
43303
43304
43305
43306
43307
a90ef4bf
JM
43308.PHONY: configure-target-libobjc maybe-configure-target-libobjc
43309maybe-configure-target-libobjc:
4f0ef2d8 43310@if gcc-bootstrap
a90ef4bf 43311configure-target-libobjc: stage_current
4f0ef2d8 43312@endif gcc-bootstrap
a90ef4bf
JM
43313@if target-libobjc
43314maybe-configure-target-libobjc: configure-target-libobjc
43315configure-target-libobjc:
0aed8855
PB
43316 @: $(MAKE); $(unstage)
43317 @r=`${PWD_COMMAND}`; export r; \
43318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43319 echo "Checking multilib configuration for libobjc..."; \
22121df0
L
43320 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
43321 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43322 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
43323 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
43324 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
0aed8855 43325 else \
a90ef4bf
JM
43326 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
43327 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
0aed8855
PB
43328 fi; \
43329 else \
a90ef4bf 43330 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
c52c6897 43331 fi; \
a90ef4bf 43332 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
22121df0 43333 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc; \
1f53ca9a 43334 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43335 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
43336 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
e2b9e2dc 43337 case $(srcdir) in \
b00612cc 43338 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43339 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
b00612cc 43340 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 43341 esac; \
1b6c0831 43342 module_srcdir=libobjc; \
4fa63067 43343 rm -f no-such-file || : ; \
1b6c0831
L
43344 CONFIG_SITE=no-such-file $(SHELL) \
43345 $$s/$$module_srcdir/configure \
43346 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43347 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43348 --target=${target_alias} \
e2b9e2dc 43349 || exit 1
a90ef4bf 43350@endif target-libobjc
e2b9e2dc 43351
a7254363
PB
43352
43353
d545f33b
PB
43354
43355
a90ef4bf
JM
43356.PHONY: all-target-libobjc maybe-all-target-libobjc
43357maybe-all-target-libobjc:
4f0ef2d8 43358@if gcc-bootstrap
a90ef4bf 43359all-target-libobjc: stage_current
4f0ef2d8 43360@endif gcc-bootstrap
a90ef4bf
JM
43361@if target-libobjc
43362TARGET-target-libobjc=all
43363maybe-all-target-libobjc: all-target-libobjc
43364all-target-libobjc: configure-target-libobjc
0aed8855 43365 @: $(MAKE); $(unstage)
b40e3958
L
43366 @r=`${PWD_COMMAND}`; export r; \
43367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43368 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43369 (cd $(TARGET_SUBDIR)/libobjc && \
b3676d82 43370 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43371 $(TARGET-target-libobjc))
43372@endif target-libobjc
3866be5d 43373
a7254363
PB
43374
43375
d545f33b
PB
43376
43377
a90ef4bf
JM
43378.PHONY: check-target-libobjc maybe-check-target-libobjc
43379maybe-check-target-libobjc:
43380@if target-libobjc
43381maybe-check-target-libobjc: check-target-libobjc
3866be5d 43382
a90ef4bf
JM
43383check-target-libobjc:
43384 @: $(MAKE); $(unstage)
43385 @r=`${PWD_COMMAND}`; export r; \
43386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43387 $(NORMAL_TARGET_EXPORTS) \
43388 (cd $(TARGET_SUBDIR)/libobjc && \
43389 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 43390
a90ef4bf 43391@endif target-libobjc
4fa63067 43392
a90ef4bf
JM
43393.PHONY: install-target-libobjc maybe-install-target-libobjc
43394maybe-install-target-libobjc:
43395@if target-libobjc
43396maybe-install-target-libobjc: install-target-libobjc
4fa63067 43397
a90ef4bf 43398install-target-libobjc: installdirs
0aed8855 43399 @: $(MAKE); $(unstage)
b40e3958
L
43400 @r=`${PWD_COMMAND}`; export r; \
43401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43402 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43403 (cd $(TARGET_SUBDIR)/libobjc && \
7ffa0b57 43404 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 43405
a90ef4bf 43406@endif target-libobjc
3866be5d 43407
a90ef4bf
JM
43408.PHONY: install-strip-target-libobjc maybe-install-strip-target-libobjc
43409maybe-install-strip-target-libobjc:
43410@if target-libobjc
43411maybe-install-strip-target-libobjc: install-strip-target-libobjc
9b980aa1 43412
a90ef4bf 43413install-strip-target-libobjc: installdirs
9b980aa1
RW
43414 @: $(MAKE); $(unstage)
43415 @r=`${PWD_COMMAND}`; export r; \
43416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43417 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43418 (cd $(TARGET_SUBDIR)/libobjc && \
9b980aa1
RW
43419 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43420
a90ef4bf 43421@endif target-libobjc
9b980aa1 43422
56a8fe78 43423# Other targets (info, dvi, pdf, etc.)
16ae0395 43424
a90ef4bf
JM
43425.PHONY: maybe-info-target-libobjc info-target-libobjc
43426maybe-info-target-libobjc:
43427@if target-libobjc
43428maybe-info-target-libobjc: info-target-libobjc
6d389afc 43429
a90ef4bf
JM
43430info-target-libobjc: \
43431 configure-target-libobjc
0aed8855 43432 @: $(MAKE); $(unstage)
22121df0 43433 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
6d389afc
MS
43434 r=`${PWD_COMMAND}`; export r; \
43435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43436 $(NORMAL_TARGET_EXPORTS) \
22121df0 43437 echo "Doing info in $(TARGET_SUBDIR)/libobjc"; \
6d389afc
MS
43438 for flag in $(EXTRA_TARGET_FLAGS); do \
43439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43440 done; \
a90ef4bf 43441 (cd $(TARGET_SUBDIR)/libobjc && \
6d389afc
MS
43442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43444 "RANLIB=$${RANLIB}" \
0c24b341 43445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43446 info) \
43447 || exit 1
43448
a90ef4bf 43449@endif target-libobjc
6d389afc 43450
a90ef4bf
JM
43451.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
43452maybe-dvi-target-libobjc:
43453@if target-libobjc
43454maybe-dvi-target-libobjc: dvi-target-libobjc
4fa63067 43455
a90ef4bf
JM
43456dvi-target-libobjc: \
43457 configure-target-libobjc
0aed8855 43458 @: $(MAKE); $(unstage)
22121df0 43459 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43460 r=`${PWD_COMMAND}`; export r; \
b40e3958 43461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43462 $(NORMAL_TARGET_EXPORTS) \
22121df0 43463 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43464 for flag in $(EXTRA_TARGET_FLAGS); do \
43465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43466 done; \
a90ef4bf 43467 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43470 "RANLIB=$${RANLIB}" \
0c24b341 43471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 43472 dvi) \
4fa63067 43473 || exit 1
3866be5d 43474
a90ef4bf 43475@endif target-libobjc
3866be5d 43476
a90ef4bf
JM
43477.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
43478maybe-pdf-target-libobjc:
43479@if target-libobjc
43480maybe-pdf-target-libobjc: pdf-target-libobjc
56a8fe78 43481
a90ef4bf
JM
43482pdf-target-libobjc: \
43483 configure-target-libobjc
56a8fe78 43484 @: $(MAKE); $(unstage)
22121df0 43485 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
56a8fe78
DD
43486 r=`${PWD_COMMAND}`; export r; \
43487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43488 $(NORMAL_TARGET_EXPORTS) \
22121df0 43489 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc"; \
56a8fe78
DD
43490 for flag in $(EXTRA_TARGET_FLAGS); do \
43491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43492 done; \
a90ef4bf 43493 (cd $(TARGET_SUBDIR)/libobjc && \
56a8fe78
DD
43494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43496 "RANLIB=$${RANLIB}" \
0c24b341 43497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43498 pdf) \
43499 || exit 1
43500
a90ef4bf 43501@endif target-libobjc
56a8fe78 43502
a90ef4bf
JM
43503.PHONY: maybe-html-target-libobjc html-target-libobjc
43504maybe-html-target-libobjc:
43505@if target-libobjc
43506maybe-html-target-libobjc: html-target-libobjc
4fa63067 43507
a90ef4bf
JM
43508html-target-libobjc: \
43509 configure-target-libobjc
0aed8855 43510 @: $(MAKE); $(unstage)
22121df0 43511 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
b40e3958
L
43512 r=`${PWD_COMMAND}`; export r; \
43513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43514 $(NORMAL_TARGET_EXPORTS) \
22121df0 43515 echo "Doing html in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43516 for flag in $(EXTRA_TARGET_FLAGS); do \
43517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43518 done; \
a90ef4bf 43519 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43522 "RANLIB=$${RANLIB}" \
0c24b341 43523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc 43524 html) \
e2b9e2dc
NN
43525 || exit 1
43526
a90ef4bf 43527@endif target-libobjc
4fa63067 43528
a90ef4bf
JM
43529.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
43530maybe-TAGS-target-libobjc:
43531@if target-libobjc
43532maybe-TAGS-target-libobjc: TAGS-target-libobjc
4fa63067 43533
a90ef4bf
JM
43534TAGS-target-libobjc: \
43535 configure-target-libobjc
0aed8855 43536 @: $(MAKE); $(unstage)
22121df0 43537 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43538 r=`${PWD_COMMAND}`; export r; \
b40e3958 43539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43540 $(NORMAL_TARGET_EXPORTS) \
22121df0 43541 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43542 for flag in $(EXTRA_TARGET_FLAGS); do \
43543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43544 done; \
a90ef4bf 43545 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43548 "RANLIB=$${RANLIB}" \
0c24b341 43549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43550 TAGS) \
4fa63067 43551 || exit 1
3866be5d 43552
a90ef4bf 43553@endif target-libobjc
3866be5d 43554
a90ef4bf
JM
43555.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
43556maybe-install-info-target-libobjc:
43557@if target-libobjc
43558maybe-install-info-target-libobjc: install-info-target-libobjc
3866be5d 43559
a90ef4bf
JM
43560install-info-target-libobjc: \
43561 configure-target-libobjc \
43562 info-target-libobjc
0aed8855 43563 @: $(MAKE); $(unstage)
22121df0 43564 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067
NN
43565 r=`${PWD_COMMAND}`; export r; \
43566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43567 $(NORMAL_TARGET_EXPORTS) \
22121df0 43568 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43569 for flag in $(EXTRA_TARGET_FLAGS); do \
43570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43571 done; \
a90ef4bf 43572 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43575 "RANLIB=$${RANLIB}" \
0c24b341 43576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43577 install-info) \
4fa63067 43578 || exit 1
3866be5d 43579
a90ef4bf 43580@endif target-libobjc
16ae0395 43581
a90ef4bf
JM
43582.PHONY: maybe-install-pdf-target-libobjc install-pdf-target-libobjc
43583maybe-install-pdf-target-libobjc:
43584@if target-libobjc
43585maybe-install-pdf-target-libobjc: install-pdf-target-libobjc
a3ca38d2 43586
a90ef4bf
JM
43587install-pdf-target-libobjc: \
43588 configure-target-libobjc \
43589 pdf-target-libobjc
a3ca38d2 43590 @: $(MAKE); $(unstage)
22121df0 43591 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a3ca38d2
DD
43592 r=`${PWD_COMMAND}`; export r; \
43593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43594 $(NORMAL_TARGET_EXPORTS) \
22121df0 43595 echo "Doing install-pdf in $(TARGET_SUBDIR)/libobjc"; \
a3ca38d2
DD
43596 for flag in $(EXTRA_TARGET_FLAGS); do \
43597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43598 done; \
a90ef4bf 43599 (cd $(TARGET_SUBDIR)/libobjc && \
a3ca38d2
DD
43600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43602 "RANLIB=$${RANLIB}" \
0c24b341 43603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
43604 install-pdf) \
43605 || exit 1
43606
a90ef4bf 43607@endif target-libobjc
a3ca38d2 43608
a90ef4bf
JM
43609.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
43610maybe-install-html-target-libobjc:
43611@if target-libobjc
43612maybe-install-html-target-libobjc: install-html-target-libobjc
108a6f8e 43613
a90ef4bf
JM
43614install-html-target-libobjc: \
43615 configure-target-libobjc \
43616 html-target-libobjc
108a6f8e 43617 @: $(MAKE); $(unstage)
22121df0 43618 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
108a6f8e
CD
43619 r=`${PWD_COMMAND}`; export r; \
43620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43621 $(NORMAL_TARGET_EXPORTS) \
22121df0 43622 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc"; \
108a6f8e
CD
43623 for flag in $(EXTRA_TARGET_FLAGS); do \
43624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43625 done; \
a90ef4bf 43626 (cd $(TARGET_SUBDIR)/libobjc && \
108a6f8e
CD
43627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43629 "RANLIB=$${RANLIB}" \
0c24b341 43630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
43631 install-html) \
43632 || exit 1
43633
a90ef4bf 43634@endif target-libobjc
108a6f8e 43635
a90ef4bf
JM
43636.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
43637maybe-installcheck-target-libobjc:
43638@if target-libobjc
43639maybe-installcheck-target-libobjc: installcheck-target-libobjc
4fa63067 43640
a90ef4bf
JM
43641installcheck-target-libobjc: \
43642 configure-target-libobjc
0aed8855 43643 @: $(MAKE); $(unstage)
22121df0 43644 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
4fa63067 43645 r=`${PWD_COMMAND}`; export r; \
b40e3958 43646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43647 $(NORMAL_TARGET_EXPORTS) \
22121df0 43648 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc"; \
4fa63067
NN
43649 for flag in $(EXTRA_TARGET_FLAGS); do \
43650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43651 done; \
a90ef4bf 43652 (cd $(TARGET_SUBDIR)/libobjc && \
4fa63067
NN
43653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43655 "RANLIB=$${RANLIB}" \
0c24b341 43656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43657 installcheck) \
4fa63067 43658 || exit 1
3866be5d 43659
a90ef4bf 43660@endif target-libobjc
3866be5d 43661
a90ef4bf
JM
43662.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
43663maybe-mostlyclean-target-libobjc:
43664@if target-libobjc
43665maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
4fa63067 43666
a90ef4bf
JM
43667mostlyclean-target-libobjc:
43668 @: $(MAKE); $(unstage)
22121df0 43669 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43670 r=`${PWD_COMMAND}`; export r; \
43671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43672 $(NORMAL_TARGET_EXPORTS) \
22121df0 43673 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43674 for flag in $(EXTRA_TARGET_FLAGS); do \
43675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43676 done; \
43677 (cd $(TARGET_SUBDIR)/libobjc && \
43678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43680 "RANLIB=$${RANLIB}" \
43681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43682 mostlyclean) \
43683 || exit 1
4fa63067 43684
a90ef4bf 43685@endif target-libobjc
4fa63067 43686
a90ef4bf
JM
43687.PHONY: maybe-clean-target-libobjc clean-target-libobjc
43688maybe-clean-target-libobjc:
43689@if target-libobjc
43690maybe-clean-target-libobjc: clean-target-libobjc
4fa63067 43691
a90ef4bf
JM
43692clean-target-libobjc:
43693 @: $(MAKE); $(unstage)
22121df0 43694 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43695 r=`${PWD_COMMAND}`; export r; \
43696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43697 $(NORMAL_TARGET_EXPORTS) \
22121df0 43698 echo "Doing clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43699 for flag in $(EXTRA_TARGET_FLAGS); do \
43700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43701 done; \
43702 (cd $(TARGET_SUBDIR)/libobjc && \
43703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43705 "RANLIB=$${RANLIB}" \
43706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43707 clean) \
43708 || exit 1
4fa63067 43709
a90ef4bf 43710@endif target-libobjc
4fa63067 43711
a90ef4bf
JM
43712.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
43713maybe-distclean-target-libobjc:
43714@if target-libobjc
43715maybe-distclean-target-libobjc: distclean-target-libobjc
4fa63067 43716
a90ef4bf
JM
43717distclean-target-libobjc:
43718 @: $(MAKE); $(unstage)
22121df0 43719 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43720 r=`${PWD_COMMAND}`; export r; \
43721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43722 $(NORMAL_TARGET_EXPORTS) \
22121df0 43723 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43724 for flag in $(EXTRA_TARGET_FLAGS); do \
43725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43726 done; \
43727 (cd $(TARGET_SUBDIR)/libobjc && \
43728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43730 "RANLIB=$${RANLIB}" \
43731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43732 distclean) \
43733 || exit 1
4fa63067 43734
a90ef4bf 43735@endif target-libobjc
4fa63067 43736
a90ef4bf
JM
43737.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
43738maybe-maintainer-clean-target-libobjc:
43739@if target-libobjc
43740maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
4fa63067 43741
a90ef4bf
JM
43742maintainer-clean-target-libobjc:
43743 @: $(MAKE); $(unstage)
22121df0 43744 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0; \
a90ef4bf
JM
43745 r=`${PWD_COMMAND}`; export r; \
43746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43747 $(NORMAL_TARGET_EXPORTS) \
22121df0 43748 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc"; \
a90ef4bf
JM
43749 for flag in $(EXTRA_TARGET_FLAGS); do \
43750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43751 done; \
43752 (cd $(TARGET_SUBDIR)/libobjc && \
43753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43755 "RANLIB=$${RANLIB}" \
43756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
43757 maintainer-clean) \
43758 || exit 1
4fa63067 43759
a90ef4bf 43760@endif target-libobjc
4fa63067
NN
43761
43762
4fa63067 43763
4fa63067 43764
a7254363 43765
a90ef4bf
JM
43766.PHONY: configure-target-libgo maybe-configure-target-libgo
43767maybe-configure-target-libgo:
4f0ef2d8 43768@if gcc-bootstrap
a90ef4bf 43769configure-target-libgo: stage_current
4f0ef2d8 43770@endif gcc-bootstrap
a90ef4bf
JM
43771@if target-libgo
43772maybe-configure-target-libgo: configure-target-libgo
43773configure-target-libgo:
0aed8855
PB
43774 @: $(MAKE); $(unstage)
43775 @r=`${PWD_COMMAND}`; export r; \
43776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 43777 echo "Checking multilib configuration for libgo..."; \
22121df0
L
43778 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
43779 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgo/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
43780 if test -r $(TARGET_SUBDIR)/libgo/multilib.out; then \
43781 if cmp -s $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; then \
43782 rm -f $(TARGET_SUBDIR)/libgo/multilib.tmp; \
0aed8855 43783 else \
a90ef4bf
JM
43784 rm -f $(TARGET_SUBDIR)/libgo/Makefile; \
43785 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
0aed8855
PB
43786 fi; \
43787 else \
a90ef4bf 43788 mv $(TARGET_SUBDIR)/libgo/multilib.tmp $(TARGET_SUBDIR)/libgo/multilib.out; \
c52c6897 43789 fi; \
a90ef4bf 43790 test ! -f $(TARGET_SUBDIR)/libgo/Makefile || exit 0; \
22121df0 43791 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgo; \
1f53ca9a 43792 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
43793 echo Configuring in $(TARGET_SUBDIR)/libgo; \
43794 cd "$(TARGET_SUBDIR)/libgo" || exit 1; \
e2b9e2dc 43795 case $(srcdir) in \
b00612cc 43796 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 43797 *) topdir=`echo $(TARGET_SUBDIR)/libgo/ | \
b00612cc 43798 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a90ef4bf 43799 esac; \
1b6c0831 43800 module_srcdir=libgo; \
4fa63067 43801 rm -f no-such-file || : ; \
1b6c0831
L
43802 CONFIG_SITE=no-such-file $(SHELL) \
43803 $$s/$$module_srcdir/configure \
43804 --srcdir=$${topdir}/$$module_srcdir \
4b900473 43805 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 43806 --target=${target_alias} \
e2b9e2dc 43807 || exit 1
a90ef4bf 43808@endif target-libgo
e2b9e2dc 43809
a7254363
PB
43810
43811
d545f33b
PB
43812
43813
a90ef4bf
JM
43814.PHONY: all-target-libgo maybe-all-target-libgo
43815maybe-all-target-libgo:
4f0ef2d8 43816@if gcc-bootstrap
a90ef4bf 43817all-target-libgo: stage_current
4f0ef2d8 43818@endif gcc-bootstrap
a90ef4bf
JM
43819@if target-libgo
43820TARGET-target-libgo=all
43821maybe-all-target-libgo: all-target-libgo
43822all-target-libgo: configure-target-libgo
0aed8855 43823 @: $(MAKE); $(unstage)
b40e3958
L
43824 @r=`${PWD_COMMAND}`; export r; \
43825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 43826 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43827 (cd $(TARGET_SUBDIR)/libgo && \
b3676d82 43828 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
43829 $(TARGET-target-libgo))
43830@endif target-libgo
3866be5d 43831
a7254363
PB
43832
43833
d545f33b
PB
43834
43835
a90ef4bf
JM
43836.PHONY: check-target-libgo maybe-check-target-libgo
43837maybe-check-target-libgo:
43838@if target-libgo
43839maybe-check-target-libgo: check-target-libgo
3866be5d 43840
a90ef4bf 43841check-target-libgo:
0aed8855 43842 @: $(MAKE); $(unstage)
4fa63067
NN
43843 @r=`${PWD_COMMAND}`; export r; \
43844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43845 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43846 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 43847 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
3866be5d 43848
a90ef4bf 43849@endif target-libgo
3866be5d 43850
a90ef4bf
JM
43851.PHONY: install-target-libgo maybe-install-target-libgo
43852maybe-install-target-libgo:
43853@if target-libgo
43854maybe-install-target-libgo: install-target-libgo
16ae0395 43855
a90ef4bf 43856install-target-libgo: installdirs
0aed8855 43857 @: $(MAKE); $(unstage)
4fa63067
NN
43858 @r=`${PWD_COMMAND}`; export r; \
43859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43860 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43861 (cd $(TARGET_SUBDIR)/libgo && \
7ffa0b57 43862 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
3866be5d 43863
a90ef4bf 43864@endif target-libgo
3866be5d 43865
a90ef4bf
JM
43866.PHONY: install-strip-target-libgo maybe-install-strip-target-libgo
43867maybe-install-strip-target-libgo:
43868@if target-libgo
43869maybe-install-strip-target-libgo: install-strip-target-libgo
9b980aa1 43870
a90ef4bf 43871install-strip-target-libgo: installdirs
9b980aa1
RW
43872 @: $(MAKE); $(unstage)
43873 @r=`${PWD_COMMAND}`; export r; \
43874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43875 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 43876 (cd $(TARGET_SUBDIR)/libgo && \
9b980aa1
RW
43877 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
43878
a90ef4bf 43879@endif target-libgo
9b980aa1 43880
56a8fe78 43881# Other targets (info, dvi, pdf, etc.)
4fa63067 43882
a90ef4bf
JM
43883.PHONY: maybe-info-target-libgo info-target-libgo
43884maybe-info-target-libgo:
43885@if target-libgo
43886maybe-info-target-libgo: info-target-libgo
4fa63067 43887
a90ef4bf
JM
43888info-target-libgo: \
43889 configure-target-libgo
0aed8855 43890 @: $(MAKE); $(unstage)
22121df0 43891 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
43892 r=`${PWD_COMMAND}`; export r; \
43893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43894 $(NORMAL_TARGET_EXPORTS) \
22121df0 43895 echo "Doing info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43896 for flag in $(EXTRA_TARGET_FLAGS); do \
43897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43898 done; \
a90ef4bf 43899 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43902 "RANLIB=$${RANLIB}" \
0c24b341 43903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43904 info) \
e2b9e2dc
NN
43905 || exit 1
43906
a90ef4bf 43907@endif target-libgo
3866be5d 43908
a90ef4bf
JM
43909.PHONY: maybe-dvi-target-libgo dvi-target-libgo
43910maybe-dvi-target-libgo:
43911@if target-libgo
43912maybe-dvi-target-libgo: dvi-target-libgo
3866be5d 43913
a90ef4bf
JM
43914dvi-target-libgo: \
43915 configure-target-libgo
0aed8855 43916 @: $(MAKE); $(unstage)
22121df0 43917 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43918 r=`${PWD_COMMAND}`; export r; \
b40e3958 43919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43920 $(NORMAL_TARGET_EXPORTS) \
22121df0 43921 echo "Doing dvi in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
43922 for flag in $(EXTRA_TARGET_FLAGS); do \
43923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43924 done; \
a90ef4bf 43925 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
43926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43928 "RANLIB=$${RANLIB}" \
0c24b341 43929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 43930 dvi) \
4fa63067 43931 || exit 1
3866be5d 43932
a90ef4bf 43933@endif target-libgo
3866be5d 43934
a90ef4bf
JM
43935.PHONY: maybe-pdf-target-libgo pdf-target-libgo
43936maybe-pdf-target-libgo:
43937@if target-libgo
43938maybe-pdf-target-libgo: pdf-target-libgo
56a8fe78 43939
a90ef4bf
JM
43940pdf-target-libgo: \
43941 configure-target-libgo
56a8fe78 43942 @: $(MAKE); $(unstage)
22121df0 43943 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
56a8fe78
DD
43944 r=`${PWD_COMMAND}`; export r; \
43945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43946 $(NORMAL_TARGET_EXPORTS) \
22121df0 43947 echo "Doing pdf in $(TARGET_SUBDIR)/libgo"; \
56a8fe78
DD
43948 for flag in $(EXTRA_TARGET_FLAGS); do \
43949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43950 done; \
a90ef4bf 43951 (cd $(TARGET_SUBDIR)/libgo && \
56a8fe78
DD
43952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43954 "RANLIB=$${RANLIB}" \
0c24b341 43955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
43956 pdf) \
43957 || exit 1
43958
a90ef4bf 43959@endif target-libgo
56a8fe78 43960
a90ef4bf
JM
43961.PHONY: maybe-html-target-libgo html-target-libgo
43962maybe-html-target-libgo:
43963@if target-libgo
43964maybe-html-target-libgo: html-target-libgo
6d389afc 43965
a90ef4bf
JM
43966html-target-libgo: \
43967 configure-target-libgo
0aed8855 43968 @: $(MAKE); $(unstage)
22121df0 43969 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
6d389afc
MS
43970 r=`${PWD_COMMAND}`; export r; \
43971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 43972 $(NORMAL_TARGET_EXPORTS) \
22121df0 43973 echo "Doing html in $(TARGET_SUBDIR)/libgo"; \
6d389afc
MS
43974 for flag in $(EXTRA_TARGET_FLAGS); do \
43975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
43976 done; \
a90ef4bf 43977 (cd $(TARGET_SUBDIR)/libgo && \
6d389afc
MS
43978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
43979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
43980 "RANLIB=$${RANLIB}" \
0c24b341 43981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
43982 html) \
43983 || exit 1
43984
a90ef4bf 43985@endif target-libgo
6d389afc 43986
a90ef4bf
JM
43987.PHONY: maybe-TAGS-target-libgo TAGS-target-libgo
43988maybe-TAGS-target-libgo:
43989@if target-libgo
43990maybe-TAGS-target-libgo: TAGS-target-libgo
16ae0395 43991
a90ef4bf
JM
43992TAGS-target-libgo: \
43993 configure-target-libgo
0aed8855 43994 @: $(MAKE); $(unstage)
22121df0 43995 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 43996 r=`${PWD_COMMAND}`; export r; \
b40e3958 43997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 43998 $(NORMAL_TARGET_EXPORTS) \
22121df0 43999 echo "Doing TAGS in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44000 for flag in $(EXTRA_TARGET_FLAGS); do \
44001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44002 done; \
a90ef4bf 44003 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44006 "RANLIB=$${RANLIB}" \
0c24b341 44007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44008 TAGS) \
4fa63067 44009 || exit 1
3866be5d 44010
a90ef4bf 44011@endif target-libgo
3866be5d 44012
a90ef4bf
JM
44013.PHONY: maybe-install-info-target-libgo install-info-target-libgo
44014maybe-install-info-target-libgo:
44015@if target-libgo
44016maybe-install-info-target-libgo: install-info-target-libgo
4fa63067 44017
a90ef4bf
JM
44018install-info-target-libgo: \
44019 configure-target-libgo \
44020 info-target-libgo
0aed8855 44021 @: $(MAKE); $(unstage)
22121df0 44022 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
44023 r=`${PWD_COMMAND}`; export r; \
44024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44025 $(NORMAL_TARGET_EXPORTS) \
22121df0 44026 echo "Doing install-info in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44027 for flag in $(EXTRA_TARGET_FLAGS); do \
44028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44029 done; \
a90ef4bf 44030 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44033 "RANLIB=$${RANLIB}" \
0c24b341 44034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44035 install-info) \
e2b9e2dc
NN
44036 || exit 1
44037
a90ef4bf 44038@endif target-libgo
4fa63067 44039
a90ef4bf
JM
44040.PHONY: maybe-install-pdf-target-libgo install-pdf-target-libgo
44041maybe-install-pdf-target-libgo:
44042@if target-libgo
44043maybe-install-pdf-target-libgo: install-pdf-target-libgo
a3ca38d2 44044
a90ef4bf
JM
44045install-pdf-target-libgo: \
44046 configure-target-libgo \
44047 pdf-target-libgo
a3ca38d2 44048 @: $(MAKE); $(unstage)
22121df0 44049 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
a3ca38d2
DD
44050 r=`${PWD_COMMAND}`; export r; \
44051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44052 $(NORMAL_TARGET_EXPORTS) \
22121df0 44053 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgo"; \
a3ca38d2
DD
44054 for flag in $(EXTRA_TARGET_FLAGS); do \
44055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44056 done; \
a90ef4bf 44057 (cd $(TARGET_SUBDIR)/libgo && \
a3ca38d2
DD
44058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44060 "RANLIB=$${RANLIB}" \
0c24b341 44061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44062 install-pdf) \
44063 || exit 1
44064
a90ef4bf 44065@endif target-libgo
a3ca38d2 44066
a90ef4bf
JM
44067.PHONY: maybe-install-html-target-libgo install-html-target-libgo
44068maybe-install-html-target-libgo:
44069@if target-libgo
44070maybe-install-html-target-libgo: install-html-target-libgo
108a6f8e 44071
a90ef4bf
JM
44072install-html-target-libgo: \
44073 configure-target-libgo \
44074 html-target-libgo
108a6f8e 44075 @: $(MAKE); $(unstage)
22121df0 44076 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
108a6f8e
CD
44077 r=`${PWD_COMMAND}`; export r; \
44078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44079 $(NORMAL_TARGET_EXPORTS) \
22121df0 44080 echo "Doing install-html in $(TARGET_SUBDIR)/libgo"; \
108a6f8e
CD
44081 for flag in $(EXTRA_TARGET_FLAGS); do \
44082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44083 done; \
a90ef4bf 44084 (cd $(TARGET_SUBDIR)/libgo && \
108a6f8e
CD
44085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44087 "RANLIB=$${RANLIB}" \
0c24b341 44088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44089 install-html) \
44090 || exit 1
44091
a90ef4bf 44092@endif target-libgo
108a6f8e 44093
a90ef4bf
JM
44094.PHONY: maybe-installcheck-target-libgo installcheck-target-libgo
44095maybe-installcheck-target-libgo:
44096@if target-libgo
44097maybe-installcheck-target-libgo: installcheck-target-libgo
4fa63067 44098
a90ef4bf
JM
44099installcheck-target-libgo: \
44100 configure-target-libgo
0aed8855 44101 @: $(MAKE); $(unstage)
22121df0 44102 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44103 r=`${PWD_COMMAND}`; export r; \
b40e3958 44104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44105 $(NORMAL_TARGET_EXPORTS) \
22121df0 44106 echo "Doing installcheck in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44107 for flag in $(EXTRA_TARGET_FLAGS); do \
44108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44109 done; \
a90ef4bf 44110 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44113 "RANLIB=$${RANLIB}" \
0c24b341 44114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44115 installcheck) \
4fa63067 44116 || exit 1
3866be5d 44117
a90ef4bf 44118@endif target-libgo
3866be5d 44119
a90ef4bf
JM
44120.PHONY: maybe-mostlyclean-target-libgo mostlyclean-target-libgo
44121maybe-mostlyclean-target-libgo:
44122@if target-libgo
44123maybe-mostlyclean-target-libgo: mostlyclean-target-libgo
4fa63067 44124
a90ef4bf 44125mostlyclean-target-libgo:
0aed8855 44126 @: $(MAKE); $(unstage)
22121df0 44127 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44128 r=`${PWD_COMMAND}`; export r; \
b40e3958 44129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44130 $(NORMAL_TARGET_EXPORTS) \
22121df0 44131 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44132 for flag in $(EXTRA_TARGET_FLAGS); do \
44133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44134 done; \
a90ef4bf 44135 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44138 "RANLIB=$${RANLIB}" \
0c24b341 44139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44140 mostlyclean) \
4fa63067 44141 || exit 1
3866be5d 44142
a90ef4bf 44143@endif target-libgo
3866be5d 44144
a90ef4bf
JM
44145.PHONY: maybe-clean-target-libgo clean-target-libgo
44146maybe-clean-target-libgo:
44147@if target-libgo
44148maybe-clean-target-libgo: clean-target-libgo
16ae0395 44149
a90ef4bf 44150clean-target-libgo:
0aed8855 44151 @: $(MAKE); $(unstage)
22121df0 44152 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44153 r=`${PWD_COMMAND}`; export r; \
b40e3958 44154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44155 $(NORMAL_TARGET_EXPORTS) \
22121df0 44156 echo "Doing clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44157 for flag in $(EXTRA_TARGET_FLAGS); do \
44158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44159 done; \
a90ef4bf 44160 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44163 "RANLIB=$${RANLIB}" \
0c24b341 44164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44165 clean) \
4fa63067 44166 || exit 1
3866be5d 44167
a90ef4bf 44168@endif target-libgo
3866be5d 44169
a90ef4bf
JM
44170.PHONY: maybe-distclean-target-libgo distclean-target-libgo
44171maybe-distclean-target-libgo:
44172@if target-libgo
44173maybe-distclean-target-libgo: distclean-target-libgo
4fa63067 44174
a90ef4bf 44175distclean-target-libgo:
0aed8855 44176 @: $(MAKE); $(unstage)
22121df0 44177 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
b40e3958
L
44178 r=`${PWD_COMMAND}`; export r; \
44179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44180 $(NORMAL_TARGET_EXPORTS) \
22121df0 44181 echo "Doing distclean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44182 for flag in $(EXTRA_TARGET_FLAGS); do \
44183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44184 done; \
a90ef4bf 44185 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44188 "RANLIB=$${RANLIB}" \
0c24b341 44189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44190 distclean) \
e2b9e2dc
NN
44191 || exit 1
44192
a90ef4bf 44193@endif target-libgo
3866be5d 44194
a90ef4bf
JM
44195.PHONY: maybe-maintainer-clean-target-libgo maintainer-clean-target-libgo
44196maybe-maintainer-clean-target-libgo:
44197@if target-libgo
44198maybe-maintainer-clean-target-libgo: maintainer-clean-target-libgo
3866be5d 44199
a90ef4bf 44200maintainer-clean-target-libgo:
0aed8855 44201 @: $(MAKE); $(unstage)
22121df0 44202 @[ -f $(TARGET_SUBDIR)/libgo/Makefile ] || exit 0; \
4fa63067 44203 r=`${PWD_COMMAND}`; export r; \
b40e3958 44204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44205 $(NORMAL_TARGET_EXPORTS) \
22121df0 44206 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgo"; \
4fa63067
NN
44207 for flag in $(EXTRA_TARGET_FLAGS); do \
44208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44209 done; \
a90ef4bf 44210 (cd $(TARGET_SUBDIR)/libgo && \
4fa63067
NN
44211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44213 "RANLIB=$${RANLIB}" \
0c24b341 44214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44215 maintainer-clean) \
4fa63067 44216 || exit 1
3866be5d 44217
a90ef4bf 44218@endif target-libgo
3866be5d 44219
16ae0395 44220
3866be5d 44221
e90269c8 44222
a7254363 44223
a90ef4bf
JM
44224.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
44225maybe-configure-target-libtermcap:
4f0ef2d8 44226@if gcc-bootstrap
a90ef4bf 44227configure-target-libtermcap: stage_current
4f0ef2d8 44228@endif gcc-bootstrap
a90ef4bf
JM
44229@if target-libtermcap
44230maybe-configure-target-libtermcap: configure-target-libtermcap
44231configure-target-libtermcap:
0aed8855
PB
44232 @: $(MAKE); $(unstage)
44233 @r=`${PWD_COMMAND}`; export r; \
44234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44235 echo "Checking multilib configuration for libtermcap..."; \
22121df0
L
44236 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
44237 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44238 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
44239 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
44240 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
0aed8855 44241 else \
a90ef4bf
JM
44242 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
44243 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
0aed8855
PB
44244 fi; \
44245 else \
a90ef4bf 44246 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
c52c6897 44247 fi; \
a90ef4bf 44248 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
22121df0 44249 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap; \
1f53ca9a 44250 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44251 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
44252 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
e2b9e2dc 44253 case $(srcdir) in \
b00612cc 44254 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44255 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
b00612cc 44256 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
e2b9e2dc 44257 esac; \
1b6c0831 44258 module_srcdir=libtermcap; \
4fa63067 44259 rm -f no-such-file || : ; \
1b6c0831
L
44260 CONFIG_SITE=no-such-file $(SHELL) \
44261 $$s/$$module_srcdir/configure \
44262 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44263 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44264 --target=${target_alias} \
e2b9e2dc 44265 || exit 1
a90ef4bf 44266@endif target-libtermcap
e2b9e2dc 44267
a7254363
PB
44268
44269
d545f33b
PB
44270
44271
a90ef4bf
JM
44272.PHONY: all-target-libtermcap maybe-all-target-libtermcap
44273maybe-all-target-libtermcap:
4f0ef2d8 44274@if gcc-bootstrap
a90ef4bf 44275all-target-libtermcap: stage_current
4f0ef2d8 44276@endif gcc-bootstrap
a90ef4bf
JM
44277@if target-libtermcap
44278TARGET-target-libtermcap=all
44279maybe-all-target-libtermcap: all-target-libtermcap
44280all-target-libtermcap: configure-target-libtermcap
0aed8855 44281 @: $(MAKE); $(unstage)
b40e3958
L
44282 @r=`${PWD_COMMAND}`; export r; \
44283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44284 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44285 (cd $(TARGET_SUBDIR)/libtermcap && \
b3676d82 44286 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44287 $(TARGET-target-libtermcap))
44288@endif target-libtermcap
e393202e 44289
a7254363
PB
44290
44291
d545f33b
PB
44292
44293
a90ef4bf
JM
44294.PHONY: check-target-libtermcap maybe-check-target-libtermcap
44295maybe-check-target-libtermcap:
44296@if target-libtermcap
44297maybe-check-target-libtermcap: check-target-libtermcap
e393202e 44298
4fa63067 44299# Dummy target for uncheckable module.
a90ef4bf 44300check-target-libtermcap:
e393202e 44301
a90ef4bf 44302@endif target-libtermcap
e393202e 44303
a90ef4bf
JM
44304.PHONY: install-target-libtermcap maybe-install-target-libtermcap
44305maybe-install-target-libtermcap:
44306@if target-libtermcap
44307maybe-install-target-libtermcap: install-target-libtermcap
16ae0395 44308
a90ef4bf 44309install-target-libtermcap: installdirs
0aed8855 44310 @: $(MAKE); $(unstage)
b40e3958
L
44311 @r=`${PWD_COMMAND}`; export r; \
44312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44313 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44314 (cd $(TARGET_SUBDIR)/libtermcap && \
7ffa0b57 44315 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 44316
a90ef4bf 44317@endif target-libtermcap
56a8fe78 44318
a90ef4bf
JM
44319.PHONY: install-strip-target-libtermcap maybe-install-strip-target-libtermcap
44320maybe-install-strip-target-libtermcap:
44321@if target-libtermcap
44322maybe-install-strip-target-libtermcap: install-strip-target-libtermcap
6d389afc 44323
a90ef4bf 44324install-strip-target-libtermcap: installdirs
0aed8855 44325 @: $(MAKE); $(unstage)
a90ef4bf 44326 @r=`${PWD_COMMAND}`; export r; \
6d389afc 44327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44328 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44329 (cd $(TARGET_SUBDIR)/libtermcap && \
44330 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
6d389afc 44331
a90ef4bf 44332@endif target-libtermcap
6d389afc 44333
a90ef4bf 44334# Other targets (info, dvi, pdf, etc.)
16ae0395 44335
a90ef4bf
JM
44336.PHONY: maybe-info-target-libtermcap info-target-libtermcap
44337maybe-info-target-libtermcap:
44338@if target-libtermcap
44339maybe-info-target-libtermcap: info-target-libtermcap
44340
44341info-target-libtermcap: \
44342 configure-target-libtermcap
0aed8855 44343 @: $(MAKE); $(unstage)
22121df0 44344 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44345 r=`${PWD_COMMAND}`; export r; \
b40e3958 44346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44347 $(NORMAL_TARGET_EXPORTS) \
22121df0 44348 echo "Doing info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44349 for flag in $(EXTRA_TARGET_FLAGS); do \
44350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44351 done; \
a90ef4bf 44352 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44355 "RANLIB=$${RANLIB}" \
0c24b341 44356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44357 info) \
4fa63067 44358 || exit 1
ce5b542e 44359
a90ef4bf 44360@endif target-libtermcap
ce5b542e 44361
a90ef4bf
JM
44362.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
44363maybe-dvi-target-libtermcap:
44364@if target-libtermcap
44365maybe-dvi-target-libtermcap: dvi-target-libtermcap
4fa63067 44366
a90ef4bf
JM
44367dvi-target-libtermcap: \
44368 configure-target-libtermcap
0aed8855 44369 @: $(MAKE); $(unstage)
22121df0 44370 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
44371 r=`${PWD_COMMAND}`; export r; \
44372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44373 $(NORMAL_TARGET_EXPORTS) \
22121df0 44374 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44375 for flag in $(EXTRA_TARGET_FLAGS); do \
44376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44377 done; \
a90ef4bf 44378 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44381 "RANLIB=$${RANLIB}" \
0c24b341 44382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44383 dvi) \
e2b9e2dc
NN
44384 || exit 1
44385
a90ef4bf 44386@endif target-libtermcap
e393202e 44387
a90ef4bf
JM
44388.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
44389maybe-pdf-target-libtermcap:
44390@if target-libtermcap
44391maybe-pdf-target-libtermcap: pdf-target-libtermcap
a3ca38d2 44392
a90ef4bf
JM
44393pdf-target-libtermcap: \
44394 configure-target-libtermcap
a3ca38d2 44395 @: $(MAKE); $(unstage)
22121df0 44396 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
a3ca38d2
DD
44397 r=`${PWD_COMMAND}`; export r; \
44398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44399 $(NORMAL_TARGET_EXPORTS) \
22121df0 44400 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap"; \
a3ca38d2
DD
44401 for flag in $(EXTRA_TARGET_FLAGS); do \
44402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44403 done; \
a90ef4bf 44404 (cd $(TARGET_SUBDIR)/libtermcap && \
a3ca38d2
DD
44405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44407 "RANLIB=$${RANLIB}" \
0c24b341 44408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44409 pdf) \
a3ca38d2
DD
44410 || exit 1
44411
a90ef4bf 44412@endif target-libtermcap
a3ca38d2 44413
a90ef4bf
JM
44414.PHONY: maybe-html-target-libtermcap html-target-libtermcap
44415maybe-html-target-libtermcap:
44416@if target-libtermcap
44417maybe-html-target-libtermcap: html-target-libtermcap
108a6f8e 44418
a90ef4bf
JM
44419html-target-libtermcap: \
44420 configure-target-libtermcap
108a6f8e 44421 @: $(MAKE); $(unstage)
22121df0 44422 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
108a6f8e
CD
44423 r=`${PWD_COMMAND}`; export r; \
44424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44425 $(NORMAL_TARGET_EXPORTS) \
22121df0 44426 echo "Doing html in $(TARGET_SUBDIR)/libtermcap"; \
108a6f8e
CD
44427 for flag in $(EXTRA_TARGET_FLAGS); do \
44428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44429 done; \
a90ef4bf 44430 (cd $(TARGET_SUBDIR)/libtermcap && \
108a6f8e
CD
44431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44433 "RANLIB=$${RANLIB}" \
0c24b341 44434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44435 html) \
108a6f8e
CD
44436 || exit 1
44437
a90ef4bf 44438@endif target-libtermcap
108a6f8e 44439
a90ef4bf
JM
44440.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
44441maybe-TAGS-target-libtermcap:
44442@if target-libtermcap
44443maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
e393202e 44444
a90ef4bf
JM
44445TAGS-target-libtermcap: \
44446 configure-target-libtermcap
0aed8855 44447 @: $(MAKE); $(unstage)
22121df0 44448 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
44449 r=`${PWD_COMMAND}`; export r; \
44450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44451 $(NORMAL_TARGET_EXPORTS) \
22121df0 44452 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44453 for flag in $(EXTRA_TARGET_FLAGS); do \
44454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44455 done; \
a90ef4bf 44456 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44459 "RANLIB=$${RANLIB}" \
0c24b341 44460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44461 TAGS) \
4fa63067 44462 || exit 1
3866be5d 44463
a90ef4bf 44464@endif target-libtermcap
3866be5d 44465
a90ef4bf
JM
44466.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
44467maybe-install-info-target-libtermcap:
44468@if target-libtermcap
44469maybe-install-info-target-libtermcap: install-info-target-libtermcap
16ae0395 44470
a90ef4bf
JM
44471install-info-target-libtermcap: \
44472 configure-target-libtermcap \
44473 info-target-libtermcap
0aed8855 44474 @: $(MAKE); $(unstage)
22121df0 44475 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44476 r=`${PWD_COMMAND}`; export r; \
b40e3958 44477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44478 $(NORMAL_TARGET_EXPORTS) \
22121df0 44479 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44480 for flag in $(EXTRA_TARGET_FLAGS); do \
44481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44482 done; \
a90ef4bf 44483 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44486 "RANLIB=$${RANLIB}" \
0c24b341 44487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44488 install-info) \
4fa63067 44489 || exit 1
e393202e 44490
a90ef4bf 44491@endif target-libtermcap
3866be5d 44492
a90ef4bf
JM
44493.PHONY: maybe-install-pdf-target-libtermcap install-pdf-target-libtermcap
44494maybe-install-pdf-target-libtermcap:
44495@if target-libtermcap
44496maybe-install-pdf-target-libtermcap: install-pdf-target-libtermcap
4fa63067 44497
a90ef4bf
JM
44498install-pdf-target-libtermcap: \
44499 configure-target-libtermcap \
44500 pdf-target-libtermcap
0aed8855 44501 @: $(MAKE); $(unstage)
22121df0 44502 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
b40e3958
L
44503 r=`${PWD_COMMAND}`; export r; \
44504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44505 $(NORMAL_TARGET_EXPORTS) \
22121df0 44506 echo "Doing install-pdf in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44507 for flag in $(EXTRA_TARGET_FLAGS); do \
44508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44509 done; \
a90ef4bf 44510 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44513 "RANLIB=$${RANLIB}" \
0c24b341 44514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44515 install-pdf) \
e2b9e2dc
NN
44516 || exit 1
44517
a90ef4bf 44518@endif target-libtermcap
e393202e 44519
a90ef4bf
JM
44520.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
44521maybe-install-html-target-libtermcap:
44522@if target-libtermcap
44523maybe-install-html-target-libtermcap: install-html-target-libtermcap
3866be5d 44524
a90ef4bf
JM
44525install-html-target-libtermcap: \
44526 configure-target-libtermcap \
44527 html-target-libtermcap
0aed8855 44528 @: $(MAKE); $(unstage)
22121df0 44529 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067
NN
44530 r=`${PWD_COMMAND}`; export r; \
44531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44532 $(NORMAL_TARGET_EXPORTS) \
22121df0 44533 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44534 for flag in $(EXTRA_TARGET_FLAGS); do \
44535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44536 done; \
a90ef4bf 44537 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44540 "RANLIB=$${RANLIB}" \
0c24b341 44541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44542 install-html) \
4fa63067 44543 || exit 1
3866be5d 44544
a90ef4bf 44545@endif target-libtermcap
3866be5d 44546
a90ef4bf
JM
44547.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
44548maybe-installcheck-target-libtermcap:
44549@if target-libtermcap
44550maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
16ae0395 44551
a90ef4bf
JM
44552installcheck-target-libtermcap: \
44553 configure-target-libtermcap
0aed8855 44554 @: $(MAKE); $(unstage)
22121df0 44555 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0; \
4fa63067 44556 r=`${PWD_COMMAND}`; export r; \
b40e3958 44557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44558 $(NORMAL_TARGET_EXPORTS) \
22121df0 44559 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap"; \
4fa63067
NN
44560 for flag in $(EXTRA_TARGET_FLAGS); do \
44561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44562 done; \
a90ef4bf 44563 (cd $(TARGET_SUBDIR)/libtermcap && \
4fa63067
NN
44564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44566 "RANLIB=$${RANLIB}" \
0c24b341 44567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a90ef4bf 44568 installcheck) \
4fa63067 44569 || exit 1
3866be5d 44570
a90ef4bf
JM
44571@endif target-libtermcap
44572
44573.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
44574maybe-mostlyclean-target-libtermcap:
44575@if target-libtermcap
44576maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
44577
44578# libtermcap doesn't support mostlyclean.
44579mostlyclean-target-libtermcap:
44580
44581@endif target-libtermcap
3866be5d 44582
a90ef4bf
JM
44583.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
44584maybe-clean-target-libtermcap:
44585@if target-libtermcap
44586maybe-clean-target-libtermcap: clean-target-libtermcap
e393202e 44587
a90ef4bf
JM
44588# libtermcap doesn't support clean.
44589clean-target-libtermcap:
15723a45 44590
a90ef4bf 44591@endif target-libtermcap
e90269c8 44592
a90ef4bf
JM
44593.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
44594maybe-distclean-target-libtermcap:
44595@if target-libtermcap
44596maybe-distclean-target-libtermcap: distclean-target-libtermcap
a7254363 44597
a90ef4bf
JM
44598# libtermcap doesn't support distclean.
44599distclean-target-libtermcap:
44600
44601@endif target-libtermcap
44602
44603.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
44604maybe-maintainer-clean-target-libtermcap:
44605@if target-libtermcap
44606maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
44607
44608# libtermcap doesn't support maintainer-clean.
44609maintainer-clean-target-libtermcap:
44610
44611@endif target-libtermcap
44612
44613
44614
44615
44616
44617.PHONY: configure-target-winsup maybe-configure-target-winsup
44618maybe-configure-target-winsup:
4f0ef2d8 44619@if gcc-bootstrap
a90ef4bf 44620configure-target-winsup: stage_current
4f0ef2d8 44621@endif gcc-bootstrap
a90ef4bf
JM
44622@if target-winsup
44623maybe-configure-target-winsup: configure-target-winsup
44624configure-target-winsup:
0aed8855
PB
44625 @: $(MAKE); $(unstage)
44626 @r=`${PWD_COMMAND}`; export r; \
44627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 44628 echo "Checking multilib configuration for winsup..."; \
22121df0
L
44629 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
44630 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
44631 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
44632 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
44633 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
0aed8855 44634 else \
a90ef4bf
JM
44635 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
44636 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
0aed8855
PB
44637 fi; \
44638 else \
a90ef4bf 44639 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
c52c6897 44640 fi; \
a90ef4bf 44641 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
22121df0 44642 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup; \
1f53ca9a 44643 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
44644 echo Configuring in $(TARGET_SUBDIR)/winsup; \
44645 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
bba45b8b 44646 case $(srcdir) in \
b00612cc 44647 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 44648 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
b00612cc 44649 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 44650 esac; \
1b6c0831 44651 module_srcdir=winsup; \
bba45b8b 44652 rm -f no-such-file || : ; \
1b6c0831
L
44653 CONFIG_SITE=no-such-file $(SHELL) \
44654 $$s/$$module_srcdir/configure \
44655 --srcdir=$${topdir}/$$module_srcdir \
4b900473 44656 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 44657 --target=${target_alias} \
bba45b8b 44658 || exit 1
a90ef4bf 44659@endif target-winsup
e393202e 44660
a7254363
PB
44661
44662
d545f33b
PB
44663
44664
a90ef4bf
JM
44665.PHONY: all-target-winsup maybe-all-target-winsup
44666maybe-all-target-winsup:
4f0ef2d8 44667@if gcc-bootstrap
a90ef4bf 44668all-target-winsup: stage_current
4f0ef2d8 44669@endif gcc-bootstrap
a90ef4bf
JM
44670@if target-winsup
44671TARGET-target-winsup=all
44672maybe-all-target-winsup: all-target-winsup
44673all-target-winsup: configure-target-winsup
0aed8855 44674 @: $(MAKE); $(unstage)
b40e3958
L
44675 @r=`${PWD_COMMAND}`; export r; \
44676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 44677 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44678 (cd $(TARGET_SUBDIR)/winsup && \
b3676d82 44679 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
44680 $(TARGET-target-winsup))
44681@endif target-winsup
e393202e 44682
a7254363
PB
44683
44684
d545f33b
PB
44685
44686
a90ef4bf
JM
44687.PHONY: check-target-winsup maybe-check-target-winsup
44688maybe-check-target-winsup:
44689@if target-winsup
44690maybe-check-target-winsup: check-target-winsup
16ae0395 44691
a90ef4bf 44692check-target-winsup:
0aed8855 44693 @: $(MAKE); $(unstage)
b40e3958
L
44694 @r=`${PWD_COMMAND}`; export r; \
44695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44696 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44697 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 44698 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 44699
a90ef4bf 44700@endif target-winsup
e393202e 44701
a90ef4bf
JM
44702.PHONY: install-target-winsup maybe-install-target-winsup
44703maybe-install-target-winsup:
44704@if target-winsup
44705maybe-install-target-winsup: install-target-winsup
4fa63067 44706
a90ef4bf 44707install-target-winsup: installdirs
0aed8855 44708 @: $(MAKE); $(unstage)
4fa63067
NN
44709 @r=`${PWD_COMMAND}`; export r; \
44710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44711 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44712 (cd $(TARGET_SUBDIR)/winsup && \
7ffa0b57 44713 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 44714
a90ef4bf 44715@endif target-winsup
4fa63067 44716
a90ef4bf
JM
44717.PHONY: install-strip-target-winsup maybe-install-strip-target-winsup
44718maybe-install-strip-target-winsup:
44719@if target-winsup
44720maybe-install-strip-target-winsup: install-strip-target-winsup
9b980aa1 44721
a90ef4bf 44722install-strip-target-winsup: installdirs
9b980aa1
RW
44723 @: $(MAKE); $(unstage)
44724 @r=`${PWD_COMMAND}`; export r; \
44725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44726 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 44727 (cd $(TARGET_SUBDIR)/winsup && \
9b980aa1
RW
44728 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
44729
a90ef4bf 44730@endif target-winsup
9b980aa1 44731
56a8fe78 44732# Other targets (info, dvi, pdf, etc.)
4fa63067 44733
a90ef4bf
JM
44734.PHONY: maybe-info-target-winsup info-target-winsup
44735maybe-info-target-winsup:
44736@if target-winsup
44737maybe-info-target-winsup: info-target-winsup
4fa63067 44738
a90ef4bf
JM
44739info-target-winsup: \
44740 configure-target-winsup
0aed8855 44741 @: $(MAKE); $(unstage)
22121df0 44742 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44743 r=`${PWD_COMMAND}`; export r; \
44744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44745 $(NORMAL_TARGET_EXPORTS) \
22121df0 44746 echo "Doing info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44747 for flag in $(EXTRA_TARGET_FLAGS); do \
44748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44749 done; \
a90ef4bf 44750 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44753 "RANLIB=$${RANLIB}" \
0c24b341 44754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44755 info) \
4fa63067
NN
44756 || exit 1
44757
a90ef4bf 44758@endif target-winsup
4fa63067 44759
a90ef4bf
JM
44760.PHONY: maybe-dvi-target-winsup dvi-target-winsup
44761maybe-dvi-target-winsup:
44762@if target-winsup
44763maybe-dvi-target-winsup: dvi-target-winsup
4fa63067 44764
a90ef4bf
JM
44765dvi-target-winsup: \
44766 configure-target-winsup
0aed8855 44767 @: $(MAKE); $(unstage)
22121df0 44768 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44769 r=`${PWD_COMMAND}`; export r; \
44770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44771 $(NORMAL_TARGET_EXPORTS) \
22121df0 44772 echo "Doing dvi in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44773 for flag in $(EXTRA_TARGET_FLAGS); do \
44774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44775 done; \
a90ef4bf 44776 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44779 "RANLIB=$${RANLIB}" \
0c24b341 44780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44781 dvi) \
4fa63067
NN
44782 || exit 1
44783
a90ef4bf 44784@endif target-winsup
4fa63067 44785
a90ef4bf
JM
44786.PHONY: maybe-pdf-target-winsup pdf-target-winsup
44787maybe-pdf-target-winsup:
44788@if target-winsup
44789maybe-pdf-target-winsup: pdf-target-winsup
56a8fe78 44790
a90ef4bf
JM
44791pdf-target-winsup: \
44792 configure-target-winsup
56a8fe78 44793 @: $(MAKE); $(unstage)
22121df0 44794 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
56a8fe78
DD
44795 r=`${PWD_COMMAND}`; export r; \
44796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44797 $(NORMAL_TARGET_EXPORTS) \
22121df0 44798 echo "Doing pdf in $(TARGET_SUBDIR)/winsup"; \
56a8fe78
DD
44799 for flag in $(EXTRA_TARGET_FLAGS); do \
44800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44801 done; \
a90ef4bf 44802 (cd $(TARGET_SUBDIR)/winsup && \
56a8fe78
DD
44803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44805 "RANLIB=$${RANLIB}" \
0c24b341 44806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
44807 pdf) \
44808 || exit 1
44809
a90ef4bf 44810@endif target-winsup
56a8fe78 44811
a90ef4bf
JM
44812.PHONY: maybe-html-target-winsup html-target-winsup
44813maybe-html-target-winsup:
44814@if target-winsup
44815maybe-html-target-winsup: html-target-winsup
6d389afc 44816
a90ef4bf
JM
44817html-target-winsup: \
44818 configure-target-winsup
0aed8855 44819 @: $(MAKE); $(unstage)
22121df0 44820 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
6d389afc
MS
44821 r=`${PWD_COMMAND}`; export r; \
44822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 44823 $(NORMAL_TARGET_EXPORTS) \
22121df0 44824 echo "Doing html in $(TARGET_SUBDIR)/winsup"; \
6d389afc
MS
44825 for flag in $(EXTRA_TARGET_FLAGS); do \
44826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44827 done; \
a90ef4bf 44828 (cd $(TARGET_SUBDIR)/winsup && \
6d389afc
MS
44829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44831 "RANLIB=$${RANLIB}" \
0c24b341 44832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
44833 html) \
44834 || exit 1
44835
a90ef4bf 44836@endif target-winsup
6d389afc 44837
a90ef4bf
JM
44838.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
44839maybe-TAGS-target-winsup:
44840@if target-winsup
44841maybe-TAGS-target-winsup: TAGS-target-winsup
4fa63067 44842
a90ef4bf
JM
44843TAGS-target-winsup: \
44844 configure-target-winsup
0aed8855 44845 @: $(MAKE); $(unstage)
22121df0 44846 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44847 r=`${PWD_COMMAND}`; export r; \
44848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44849 $(NORMAL_TARGET_EXPORTS) \
22121df0 44850 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44851 for flag in $(EXTRA_TARGET_FLAGS); do \
44852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44853 done; \
a90ef4bf 44854 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44857 "RANLIB=$${RANLIB}" \
0c24b341 44858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44859 TAGS) \
4fa63067
NN
44860 || exit 1
44861
a90ef4bf 44862@endif target-winsup
4fa63067 44863
a90ef4bf
JM
44864.PHONY: maybe-install-info-target-winsup install-info-target-winsup
44865maybe-install-info-target-winsup:
44866@if target-winsup
44867maybe-install-info-target-winsup: install-info-target-winsup
4fa63067 44868
a90ef4bf
JM
44869install-info-target-winsup: \
44870 configure-target-winsup \
44871 info-target-winsup
0aed8855 44872 @: $(MAKE); $(unstage)
22121df0 44873 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44874 r=`${PWD_COMMAND}`; export r; \
44875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44876 $(NORMAL_TARGET_EXPORTS) \
22121df0 44877 echo "Doing install-info in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44878 for flag in $(EXTRA_TARGET_FLAGS); do \
44879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44880 done; \
a90ef4bf 44881 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44884 "RANLIB=$${RANLIB}" \
0c24b341 44885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44886 install-info) \
4fa63067
NN
44887 || exit 1
44888
a90ef4bf 44889@endif target-winsup
4fa63067 44890
a90ef4bf
JM
44891.PHONY: maybe-install-pdf-target-winsup install-pdf-target-winsup
44892maybe-install-pdf-target-winsup:
44893@if target-winsup
44894maybe-install-pdf-target-winsup: install-pdf-target-winsup
a3ca38d2 44895
a90ef4bf
JM
44896install-pdf-target-winsup: \
44897 configure-target-winsup \
44898 pdf-target-winsup
a3ca38d2 44899 @: $(MAKE); $(unstage)
22121df0 44900 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
a3ca38d2
DD
44901 r=`${PWD_COMMAND}`; export r; \
44902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44903 $(NORMAL_TARGET_EXPORTS) \
22121df0 44904 echo "Doing install-pdf in $(TARGET_SUBDIR)/winsup"; \
a3ca38d2
DD
44905 for flag in $(EXTRA_TARGET_FLAGS); do \
44906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44907 done; \
a90ef4bf 44908 (cd $(TARGET_SUBDIR)/winsup && \
a3ca38d2
DD
44909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44911 "RANLIB=$${RANLIB}" \
0c24b341 44912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
44913 install-pdf) \
44914 || exit 1
44915
a90ef4bf 44916@endif target-winsup
a3ca38d2 44917
a90ef4bf
JM
44918.PHONY: maybe-install-html-target-winsup install-html-target-winsup
44919maybe-install-html-target-winsup:
44920@if target-winsup
44921maybe-install-html-target-winsup: install-html-target-winsup
108a6f8e 44922
a90ef4bf
JM
44923install-html-target-winsup: \
44924 configure-target-winsup \
44925 html-target-winsup
108a6f8e 44926 @: $(MAKE); $(unstage)
22121df0 44927 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
108a6f8e
CD
44928 r=`${PWD_COMMAND}`; export r; \
44929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
44930 $(NORMAL_TARGET_EXPORTS) \
22121df0 44931 echo "Doing install-html in $(TARGET_SUBDIR)/winsup"; \
108a6f8e
CD
44932 for flag in $(EXTRA_TARGET_FLAGS); do \
44933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44934 done; \
a90ef4bf 44935 (cd $(TARGET_SUBDIR)/winsup && \
108a6f8e
CD
44936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44938 "RANLIB=$${RANLIB}" \
0c24b341 44939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
44940 install-html) \
44941 || exit 1
44942
a90ef4bf 44943@endif target-winsup
108a6f8e 44944
a90ef4bf
JM
44945.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
44946maybe-installcheck-target-winsup:
44947@if target-winsup
44948maybe-installcheck-target-winsup: installcheck-target-winsup
4fa63067 44949
a90ef4bf
JM
44950installcheck-target-winsup: \
44951 configure-target-winsup
0aed8855 44952 @: $(MAKE); $(unstage)
22121df0 44953 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44954 r=`${PWD_COMMAND}`; export r; \
44955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44956 $(NORMAL_TARGET_EXPORTS) \
22121df0 44957 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44958 for flag in $(EXTRA_TARGET_FLAGS); do \
44959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44960 done; \
a90ef4bf 44961 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44964 "RANLIB=$${RANLIB}" \
0c24b341 44965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44966 installcheck) \
4fa63067
NN
44967 || exit 1
44968
a90ef4bf 44969@endif target-winsup
4fa63067 44970
a90ef4bf
JM
44971.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
44972maybe-mostlyclean-target-winsup:
44973@if target-winsup
44974maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
4fa63067 44975
a90ef4bf 44976mostlyclean-target-winsup:
0aed8855 44977 @: $(MAKE); $(unstage)
22121df0 44978 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
44979 r=`${PWD_COMMAND}`; export r; \
44980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 44981 $(NORMAL_TARGET_EXPORTS) \
22121df0 44982 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
44983 for flag in $(EXTRA_TARGET_FLAGS); do \
44984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
44985 done; \
a90ef4bf 44986 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
44987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
44988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
44989 "RANLIB=$${RANLIB}" \
0c24b341 44990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 44991 mostlyclean) \
4fa63067
NN
44992 || exit 1
44993
a90ef4bf 44994@endif target-winsup
4fa63067 44995
a90ef4bf
JM
44996.PHONY: maybe-clean-target-winsup clean-target-winsup
44997maybe-clean-target-winsup:
44998@if target-winsup
44999maybe-clean-target-winsup: clean-target-winsup
4fa63067 45000
a90ef4bf 45001clean-target-winsup:
0aed8855 45002 @: $(MAKE); $(unstage)
22121df0 45003 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
45004 r=`${PWD_COMMAND}`; export r; \
45005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45006 $(NORMAL_TARGET_EXPORTS) \
22121df0 45007 echo "Doing clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
45008 for flag in $(EXTRA_TARGET_FLAGS); do \
45009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45010 done; \
a90ef4bf 45011 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
45012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45014 "RANLIB=$${RANLIB}" \
0c24b341 45015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45016 clean) \
4fa63067
NN
45017 || exit 1
45018
a90ef4bf 45019@endif target-winsup
4fa63067 45020
a90ef4bf
JM
45021.PHONY: maybe-distclean-target-winsup distclean-target-winsup
45022maybe-distclean-target-winsup:
45023@if target-winsup
45024maybe-distclean-target-winsup: distclean-target-winsup
4fa63067 45025
a90ef4bf 45026distclean-target-winsup:
0aed8855 45027 @: $(MAKE); $(unstage)
22121df0 45028 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
45029 r=`${PWD_COMMAND}`; export r; \
45030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45031 $(NORMAL_TARGET_EXPORTS) \
22121df0 45032 echo "Doing distclean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
45033 for flag in $(EXTRA_TARGET_FLAGS); do \
45034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45035 done; \
a90ef4bf 45036 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
45037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45039 "RANLIB=$${RANLIB}" \
0c24b341 45040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45041 distclean) \
4fa63067
NN
45042 || exit 1
45043
a90ef4bf 45044@endif target-winsup
4fa63067 45045
a90ef4bf
JM
45046.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
45047maybe-maintainer-clean-target-winsup:
45048@if target-winsup
45049maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4fa63067 45050
a90ef4bf 45051maintainer-clean-target-winsup:
0aed8855 45052 @: $(MAKE); $(unstage)
22121df0 45053 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0; \
4fa63067
NN
45054 r=`${PWD_COMMAND}`; export r; \
45055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45056 $(NORMAL_TARGET_EXPORTS) \
22121df0 45057 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup"; \
4fa63067
NN
45058 for flag in $(EXTRA_TARGET_FLAGS); do \
45059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45060 done; \
a90ef4bf 45061 (cd $(TARGET_SUBDIR)/winsup && \
4fa63067
NN
45062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45064 "RANLIB=$${RANLIB}" \
0c24b341 45065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45066 maintainer-clean) \
4fa63067 45067 || exit 1
16ae0395 45068
a90ef4bf 45069@endif target-winsup
e393202e
NN
45070
45071
15723a45 45072
e90269c8 45073
a7254363 45074
a90ef4bf
JM
45075.PHONY: configure-target-libgloss maybe-configure-target-libgloss
45076maybe-configure-target-libgloss:
4f0ef2d8 45077@if gcc-bootstrap
a90ef4bf 45078configure-target-libgloss: stage_current
4f0ef2d8 45079@endif gcc-bootstrap
a90ef4bf
JM
45080@if target-libgloss
45081maybe-configure-target-libgloss: configure-target-libgloss
45082configure-target-libgloss:
0aed8855
PB
45083 @: $(MAKE); $(unstage)
45084 @r=`${PWD_COMMAND}`; export r; \
45085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a90ef4bf 45086 echo "Checking multilib configuration for libgloss..."; \
22121df0
L
45087 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
45088 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null; \
a90ef4bf
JM
45089 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
45090 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
45091 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
0aed8855 45092 else \
a90ef4bf
JM
45093 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
45094 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
0aed8855
PB
45095 fi; \
45096 else \
a90ef4bf 45097 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
c52c6897 45098 fi; \
a90ef4bf 45099 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
22121df0 45100 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss; \
1f53ca9a 45101 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf
JM
45102 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
45103 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
bba45b8b 45104 case $(srcdir) in \
b00612cc 45105 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
a90ef4bf 45106 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
b00612cc 45107 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45108 esac; \
1b6c0831 45109 module_srcdir=libgloss; \
bba45b8b 45110 rm -f no-such-file || : ; \
1b6c0831
L
45111 CONFIG_SITE=no-such-file $(SHELL) \
45112 $$s/$$module_srcdir/configure \
45113 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45114 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45115 --target=${target_alias} \
bba45b8b 45116 || exit 1
a90ef4bf 45117@endif target-libgloss
e393202e 45118
a7254363
PB
45119
45120
d545f33b
PB
45121
45122
a90ef4bf
JM
45123.PHONY: all-target-libgloss maybe-all-target-libgloss
45124maybe-all-target-libgloss:
4f0ef2d8 45125@if gcc-bootstrap
a90ef4bf 45126all-target-libgloss: stage_current
4f0ef2d8 45127@endif gcc-bootstrap
a90ef4bf
JM
45128@if target-libgloss
45129TARGET-target-libgloss=all
45130maybe-all-target-libgloss: all-target-libgloss
45131all-target-libgloss: configure-target-libgloss
0aed8855 45132 @: $(MAKE); $(unstage)
b40e3958
L
45133 @r=`${PWD_COMMAND}`; export r; \
45134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45135 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45136 (cd $(TARGET_SUBDIR)/libgloss && \
b3676d82 45137 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
a90ef4bf
JM
45138 $(TARGET-target-libgloss))
45139@endif target-libgloss
e393202e 45140
a7254363
PB
45141
45142
d545f33b
PB
45143
45144
a90ef4bf
JM
45145.PHONY: check-target-libgloss maybe-check-target-libgloss
45146maybe-check-target-libgloss:
45147@if target-libgloss
45148maybe-check-target-libgloss: check-target-libgloss
16ae0395 45149
a90ef4bf
JM
45150# Dummy target for uncheckable module.
45151check-target-libgloss:
930314a4 45152
a90ef4bf 45153@endif target-libgloss
e393202e 45154
a90ef4bf
JM
45155.PHONY: install-target-libgloss maybe-install-target-libgloss
45156maybe-install-target-libgloss:
45157@if target-libgloss
45158maybe-install-target-libgloss: install-target-libgloss
4fa63067 45159
a90ef4bf 45160install-target-libgloss: installdirs
0aed8855 45161 @: $(MAKE); $(unstage)
4fa63067
NN
45162 @r=`${PWD_COMMAND}`; export r; \
45163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45164 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45165 (cd $(TARGET_SUBDIR)/libgloss && \
7ffa0b57 45166 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 45167
a90ef4bf 45168@endif target-libgloss
4fa63067 45169
a90ef4bf
JM
45170.PHONY: install-strip-target-libgloss maybe-install-strip-target-libgloss
45171maybe-install-strip-target-libgloss:
45172@if target-libgloss
45173maybe-install-strip-target-libgloss: install-strip-target-libgloss
9b980aa1 45174
a90ef4bf 45175install-strip-target-libgloss: installdirs
9b980aa1
RW
45176 @: $(MAKE); $(unstage)
45177 @r=`${PWD_COMMAND}`; export r; \
45178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45179 $(NORMAL_TARGET_EXPORTS) \
a90ef4bf 45180 (cd $(TARGET_SUBDIR)/libgloss && \
9b980aa1
RW
45181 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
45182
a90ef4bf 45183@endif target-libgloss
9b980aa1 45184
56a8fe78 45185# Other targets (info, dvi, pdf, etc.)
4fa63067 45186
a90ef4bf
JM
45187.PHONY: maybe-info-target-libgloss info-target-libgloss
45188maybe-info-target-libgloss:
45189@if target-libgloss
45190maybe-info-target-libgloss: info-target-libgloss
4fa63067 45191
a90ef4bf
JM
45192info-target-libgloss: \
45193 configure-target-libgloss
0aed8855 45194 @: $(MAKE); $(unstage)
22121df0 45195 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45196 r=`${PWD_COMMAND}`; export r; \
45197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45198 $(NORMAL_TARGET_EXPORTS) \
22121df0 45199 echo "Doing info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45200 for flag in $(EXTRA_TARGET_FLAGS); do \
45201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45202 done; \
a90ef4bf 45203 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45206 "RANLIB=$${RANLIB}" \
0c24b341 45207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45208 info) \
4fa63067
NN
45209 || exit 1
45210
a90ef4bf 45211@endif target-libgloss
4fa63067 45212
a90ef4bf
JM
45213.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
45214maybe-dvi-target-libgloss:
45215@if target-libgloss
45216maybe-dvi-target-libgloss: dvi-target-libgloss
4fa63067 45217
a90ef4bf
JM
45218dvi-target-libgloss: \
45219 configure-target-libgloss
0aed8855 45220 @: $(MAKE); $(unstage)
22121df0 45221 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45222 r=`${PWD_COMMAND}`; export r; \
45223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45224 $(NORMAL_TARGET_EXPORTS) \
22121df0 45225 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45226 for flag in $(EXTRA_TARGET_FLAGS); do \
45227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45228 done; \
a90ef4bf 45229 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45232 "RANLIB=$${RANLIB}" \
0c24b341 45233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45234 dvi) \
4fa63067
NN
45235 || exit 1
45236
a90ef4bf 45237@endif target-libgloss
4fa63067 45238
a90ef4bf
JM
45239.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
45240maybe-pdf-target-libgloss:
45241@if target-libgloss
45242maybe-pdf-target-libgloss: pdf-target-libgloss
56a8fe78 45243
a90ef4bf
JM
45244pdf-target-libgloss: \
45245 configure-target-libgloss
56a8fe78 45246 @: $(MAKE); $(unstage)
22121df0 45247 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
56a8fe78
DD
45248 r=`${PWD_COMMAND}`; export r; \
45249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45250 $(NORMAL_TARGET_EXPORTS) \
22121df0 45251 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss"; \
56a8fe78
DD
45252 for flag in $(EXTRA_TARGET_FLAGS); do \
45253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45254 done; \
a90ef4bf 45255 (cd $(TARGET_SUBDIR)/libgloss && \
56a8fe78
DD
45256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45258 "RANLIB=$${RANLIB}" \
0c24b341 45259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45260 pdf) \
45261 || exit 1
45262
a90ef4bf 45263@endif target-libgloss
56a8fe78 45264
a90ef4bf
JM
45265.PHONY: maybe-html-target-libgloss html-target-libgloss
45266maybe-html-target-libgloss:
45267@if target-libgloss
45268maybe-html-target-libgloss: html-target-libgloss
6d389afc 45269
a90ef4bf
JM
45270html-target-libgloss: \
45271 configure-target-libgloss
0aed8855 45272 @: $(MAKE); $(unstage)
22121df0 45273 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
6d389afc
MS
45274 r=`${PWD_COMMAND}`; export r; \
45275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45276 $(NORMAL_TARGET_EXPORTS) \
22121df0 45277 echo "Doing html in $(TARGET_SUBDIR)/libgloss"; \
6d389afc
MS
45278 for flag in $(EXTRA_TARGET_FLAGS); do \
45279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45280 done; \
a90ef4bf 45281 (cd $(TARGET_SUBDIR)/libgloss && \
6d389afc
MS
45282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45284 "RANLIB=$${RANLIB}" \
0c24b341 45285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45286 html) \
45287 || exit 1
45288
a90ef4bf 45289@endif target-libgloss
6d389afc 45290
a90ef4bf
JM
45291.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
45292maybe-TAGS-target-libgloss:
45293@if target-libgloss
45294maybe-TAGS-target-libgloss: TAGS-target-libgloss
4fa63067 45295
a90ef4bf
JM
45296TAGS-target-libgloss: \
45297 configure-target-libgloss
0aed8855 45298 @: $(MAKE); $(unstage)
22121df0 45299 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45300 r=`${PWD_COMMAND}`; export r; \
45301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45302 $(NORMAL_TARGET_EXPORTS) \
22121df0 45303 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45304 for flag in $(EXTRA_TARGET_FLAGS); do \
45305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45306 done; \
a90ef4bf 45307 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45310 "RANLIB=$${RANLIB}" \
0c24b341 45311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45312 TAGS) \
4fa63067
NN
45313 || exit 1
45314
a90ef4bf 45315@endif target-libgloss
4fa63067 45316
a90ef4bf
JM
45317.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
45318maybe-install-info-target-libgloss:
45319@if target-libgloss
45320maybe-install-info-target-libgloss: install-info-target-libgloss
4fa63067 45321
a90ef4bf
JM
45322install-info-target-libgloss: \
45323 configure-target-libgloss \
45324 info-target-libgloss
0aed8855 45325 @: $(MAKE); $(unstage)
22121df0 45326 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45327 r=`${PWD_COMMAND}`; export r; \
45328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45329 $(NORMAL_TARGET_EXPORTS) \
22121df0 45330 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45331 for flag in $(EXTRA_TARGET_FLAGS); do \
45332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45333 done; \
a90ef4bf 45334 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45337 "RANLIB=$${RANLIB}" \
0c24b341 45338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45339 install-info) \
4fa63067
NN
45340 || exit 1
45341
a90ef4bf 45342@endif target-libgloss
4fa63067 45343
a90ef4bf
JM
45344.PHONY: maybe-install-pdf-target-libgloss install-pdf-target-libgloss
45345maybe-install-pdf-target-libgloss:
45346@if target-libgloss
45347maybe-install-pdf-target-libgloss: install-pdf-target-libgloss
a3ca38d2 45348
a90ef4bf
JM
45349install-pdf-target-libgloss: \
45350 configure-target-libgloss \
45351 pdf-target-libgloss
a3ca38d2 45352 @: $(MAKE); $(unstage)
22121df0 45353 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
a3ca38d2
DD
45354 r=`${PWD_COMMAND}`; export r; \
45355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45356 $(NORMAL_TARGET_EXPORTS) \
22121df0 45357 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgloss"; \
a3ca38d2
DD
45358 for flag in $(EXTRA_TARGET_FLAGS); do \
45359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45360 done; \
a90ef4bf 45361 (cd $(TARGET_SUBDIR)/libgloss && \
a3ca38d2
DD
45362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45364 "RANLIB=$${RANLIB}" \
0c24b341 45365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45366 install-pdf) \
45367 || exit 1
45368
a90ef4bf 45369@endif target-libgloss
a3ca38d2 45370
a90ef4bf
JM
45371.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
45372maybe-install-html-target-libgloss:
45373@if target-libgloss
45374maybe-install-html-target-libgloss: install-html-target-libgloss
108a6f8e 45375
a90ef4bf
JM
45376install-html-target-libgloss: \
45377 configure-target-libgloss \
45378 html-target-libgloss
108a6f8e 45379 @: $(MAKE); $(unstage)
22121df0 45380 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
108a6f8e
CD
45381 r=`${PWD_COMMAND}`; export r; \
45382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45383 $(NORMAL_TARGET_EXPORTS) \
22121df0 45384 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss"; \
108a6f8e
CD
45385 for flag in $(EXTRA_TARGET_FLAGS); do \
45386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45387 done; \
a90ef4bf 45388 (cd $(TARGET_SUBDIR)/libgloss && \
108a6f8e
CD
45389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45391 "RANLIB=$${RANLIB}" \
0c24b341 45392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45393 install-html) \
45394 || exit 1
45395
a90ef4bf 45396@endif target-libgloss
108a6f8e 45397
a90ef4bf
JM
45398.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
45399maybe-installcheck-target-libgloss:
45400@if target-libgloss
45401maybe-installcheck-target-libgloss: installcheck-target-libgloss
4fa63067 45402
a90ef4bf
JM
45403installcheck-target-libgloss: \
45404 configure-target-libgloss
0aed8855 45405 @: $(MAKE); $(unstage)
22121df0 45406 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45407 r=`${PWD_COMMAND}`; export r; \
45408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45409 $(NORMAL_TARGET_EXPORTS) \
22121df0 45410 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45411 for flag in $(EXTRA_TARGET_FLAGS); do \
45412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45413 done; \
a90ef4bf 45414 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45417 "RANLIB=$${RANLIB}" \
0c24b341 45418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45419 installcheck) \
4fa63067
NN
45420 || exit 1
45421
a90ef4bf 45422@endif target-libgloss
4fa63067 45423
a90ef4bf
JM
45424.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
45425maybe-mostlyclean-target-libgloss:
45426@if target-libgloss
45427maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
4fa63067 45428
a90ef4bf 45429mostlyclean-target-libgloss:
0aed8855 45430 @: $(MAKE); $(unstage)
22121df0 45431 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45432 r=`${PWD_COMMAND}`; export r; \
45433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45434 $(NORMAL_TARGET_EXPORTS) \
22121df0 45435 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45436 for flag in $(EXTRA_TARGET_FLAGS); do \
45437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45438 done; \
a90ef4bf 45439 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45442 "RANLIB=$${RANLIB}" \
0c24b341 45443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45444 mostlyclean) \
4fa63067
NN
45445 || exit 1
45446
a90ef4bf 45447@endif target-libgloss
4fa63067 45448
a90ef4bf
JM
45449.PHONY: maybe-clean-target-libgloss clean-target-libgloss
45450maybe-clean-target-libgloss:
45451@if target-libgloss
45452maybe-clean-target-libgloss: clean-target-libgloss
4fa63067 45453
a90ef4bf 45454clean-target-libgloss:
0aed8855 45455 @: $(MAKE); $(unstage)
22121df0 45456 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45457 r=`${PWD_COMMAND}`; export r; \
45458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45459 $(NORMAL_TARGET_EXPORTS) \
22121df0 45460 echo "Doing clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45461 for flag in $(EXTRA_TARGET_FLAGS); do \
45462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45463 done; \
a90ef4bf 45464 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45467 "RANLIB=$${RANLIB}" \
0c24b341 45468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45469 clean) \
4fa63067
NN
45470 || exit 1
45471
a90ef4bf 45472@endif target-libgloss
4fa63067 45473
a90ef4bf
JM
45474.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
45475maybe-distclean-target-libgloss:
45476@if target-libgloss
45477maybe-distclean-target-libgloss: distclean-target-libgloss
4fa63067 45478
a90ef4bf 45479distclean-target-libgloss:
0aed8855 45480 @: $(MAKE); $(unstage)
22121df0 45481 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45482 r=`${PWD_COMMAND}`; export r; \
45483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45484 $(NORMAL_TARGET_EXPORTS) \
22121df0 45485 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45486 for flag in $(EXTRA_TARGET_FLAGS); do \
45487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45488 done; \
a90ef4bf 45489 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45492 "RANLIB=$${RANLIB}" \
0c24b341 45493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45494 distclean) \
4fa63067
NN
45495 || exit 1
45496
a90ef4bf 45497@endif target-libgloss
4fa63067 45498
a90ef4bf
JM
45499.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
45500maybe-maintainer-clean-target-libgloss:
45501@if target-libgloss
45502maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
4fa63067 45503
a90ef4bf 45504maintainer-clean-target-libgloss:
0aed8855 45505 @: $(MAKE); $(unstage)
22121df0 45506 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0; \
4fa63067
NN
45507 r=`${PWD_COMMAND}`; export r; \
45508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45509 $(NORMAL_TARGET_EXPORTS) \
22121df0 45510 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss"; \
4fa63067
NN
45511 for flag in $(EXTRA_TARGET_FLAGS); do \
45512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45513 done; \
a90ef4bf 45514 (cd $(TARGET_SUBDIR)/libgloss && \
4fa63067
NN
45515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45517 "RANLIB=$${RANLIB}" \
0c24b341 45518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45519 maintainer-clean) \
4fa63067 45520 || exit 1
16ae0395 45521
a90ef4bf 45522@endif target-libgloss
e393202e
NN
45523
45524
15723a45 45525
a7254363
PB
45526
45527
a7254363
PB
45528.PHONY: configure-target-libffi maybe-configure-target-libffi
45529maybe-configure-target-libffi:
4f0ef2d8
CD
45530@if gcc-bootstrap
45531configure-target-libffi: stage_current
45532@endif gcc-bootstrap
a7254363
PB
45533@if target-libffi
45534maybe-configure-target-libffi: configure-target-libffi
c52c6897 45535configure-target-libffi:
0aed8855
PB
45536 @: $(MAKE); $(unstage)
45537 @r=`${PWD_COMMAND}`; export r; \
45538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45539 echo "Checking multilib configuration for libffi..."; \
22121df0
L
45540 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
45541 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null; \
0aed8855
PB
45542 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
45543 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
45544 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
45545 else \
45546 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
45547 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
45548 fi; \
45549 else \
45550 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
c52c6897
PB
45551 fi; \
45552 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22121df0 45553 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi; \
1f53ca9a 45554 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
45555 echo Configuring in $(TARGET_SUBDIR)/libffi; \
45556 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
bba45b8b 45557 case $(srcdir) in \
b00612cc
PB
45558 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
45559 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
45560 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 45561 esac; \
1b6c0831 45562 module_srcdir=libffi; \
bba45b8b 45563 rm -f no-such-file || : ; \
1b6c0831
L
45564 CONFIG_SITE=no-such-file $(SHELL) \
45565 $$s/$$module_srcdir/configure \
45566 --srcdir=$${topdir}/$$module_srcdir \
4b900473 45567 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 45568 --target=${target_alias} \
bba45b8b 45569 || exit 1
6bd3dfaa 45570@endif target-libffi
e393202e 45571
a7254363
PB
45572
45573
d545f33b
PB
45574
45575
4fa63067
NN
45576.PHONY: all-target-libffi maybe-all-target-libffi
45577maybe-all-target-libffi:
4f0ef2d8
CD
45578@if gcc-bootstrap
45579all-target-libffi: stage_current
45580@endif gcc-bootstrap
6bd3dfaa 45581@if target-libffi
72b2455a 45582TARGET-target-libffi=all
6bd3dfaa 45583maybe-all-target-libffi: all-target-libffi
4fa63067 45584all-target-libffi: configure-target-libffi
0aed8855 45585 @: $(MAKE); $(unstage)
b40e3958
L
45586 @r=`${PWD_COMMAND}`; export r; \
45587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 45588 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45589 (cd $(TARGET_SUBDIR)/libffi && \
b3676d82 45590 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 45591 $(TARGET-target-libffi))
6bd3dfaa 45592@endif target-libffi
e393202e 45593
a7254363
PB
45594
45595
d545f33b
PB
45596
45597
4fa63067
NN
45598.PHONY: check-target-libffi maybe-check-target-libffi
45599maybe-check-target-libffi:
6bd3dfaa
PB
45600@if target-libffi
45601maybe-check-target-libffi: check-target-libffi
16ae0395 45602
4fa63067 45603check-target-libffi:
0aed8855 45604 @: $(MAKE); $(unstage)
b40e3958
L
45605 @r=`${PWD_COMMAND}`; export r; \
45606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45607 $(NORMAL_TARGET_EXPORTS) \
4fa63067 45608 (cd $(TARGET_SUBDIR)/libffi && \
7ffa0b57 45609 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
930314a4 45610
6bd3dfaa 45611@endif target-libffi
e393202e 45612
4fa63067
NN
45613.PHONY: install-target-libffi maybe-install-target-libffi
45614maybe-install-target-libffi:
6bd3dfaa
PB
45615@if target-libffi
45616maybe-install-target-libffi: install-target-libffi
16ae0395 45617
b836cb18
JBG
45618# Dummy target for uninstallable.
45619install-target-libffi:
e393202e 45620
6bd3dfaa 45621@endif target-libffi
e393202e 45622
9b980aa1
RW
45623.PHONY: install-strip-target-libffi maybe-install-strip-target-libffi
45624maybe-install-strip-target-libffi:
45625@if target-libffi
45626maybe-install-strip-target-libffi: install-strip-target-libffi
45627
b836cb18
JBG
45628# Dummy target for uninstallable.
45629install-strip-target-libffi:
9b980aa1
RW
45630
45631@endif target-libffi
45632
56a8fe78 45633# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
45634
45635.PHONY: maybe-info-target-libffi info-target-libffi
45636maybe-info-target-libffi:
6bd3dfaa
PB
45637@if target-libffi
45638maybe-info-target-libffi: info-target-libffi
4fa63067
NN
45639
45640info-target-libffi: \
45641 configure-target-libffi
0aed8855 45642 @: $(MAKE); $(unstage)
22121df0 45643 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45644 r=`${PWD_COMMAND}`; export r; \
45645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45646 $(NORMAL_TARGET_EXPORTS) \
22121df0 45647 echo "Doing info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45648 for flag in $(EXTRA_TARGET_FLAGS); do \
45649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45650 done; \
45651 (cd $(TARGET_SUBDIR)/libffi && \
45652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45654 "RANLIB=$${RANLIB}" \
0c24b341 45655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45656 info) \
4fa63067
NN
45657 || exit 1
45658
6bd3dfaa 45659@endif target-libffi
4fa63067
NN
45660
45661.PHONY: maybe-dvi-target-libffi dvi-target-libffi
45662maybe-dvi-target-libffi:
6bd3dfaa
PB
45663@if target-libffi
45664maybe-dvi-target-libffi: dvi-target-libffi
4fa63067
NN
45665
45666dvi-target-libffi: \
45667 configure-target-libffi
0aed8855 45668 @: $(MAKE); $(unstage)
22121df0 45669 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45670 r=`${PWD_COMMAND}`; export r; \
45671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45672 $(NORMAL_TARGET_EXPORTS) \
22121df0 45673 echo "Doing dvi in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45674 for flag in $(EXTRA_TARGET_FLAGS); do \
45675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45676 done; \
45677 (cd $(TARGET_SUBDIR)/libffi && \
45678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45680 "RANLIB=$${RANLIB}" \
0c24b341 45681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45682 dvi) \
4fa63067
NN
45683 || exit 1
45684
6bd3dfaa 45685@endif target-libffi
4fa63067 45686
56a8fe78
DD
45687.PHONY: maybe-pdf-target-libffi pdf-target-libffi
45688maybe-pdf-target-libffi:
45689@if target-libffi
45690maybe-pdf-target-libffi: pdf-target-libffi
45691
45692pdf-target-libffi: \
45693 configure-target-libffi
45694 @: $(MAKE); $(unstage)
22121df0 45695 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
56a8fe78
DD
45696 r=`${PWD_COMMAND}`; export r; \
45697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45698 $(NORMAL_TARGET_EXPORTS) \
22121df0 45699 echo "Doing pdf in $(TARGET_SUBDIR)/libffi"; \
56a8fe78
DD
45700 for flag in $(EXTRA_TARGET_FLAGS); do \
45701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45702 done; \
45703 (cd $(TARGET_SUBDIR)/libffi && \
45704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45706 "RANLIB=$${RANLIB}" \
0c24b341 45707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
45708 pdf) \
45709 || exit 1
45710
45711@endif target-libffi
45712
6d389afc
MS
45713.PHONY: maybe-html-target-libffi html-target-libffi
45714maybe-html-target-libffi:
45715@if target-libffi
45716maybe-html-target-libffi: html-target-libffi
45717
45718html-target-libffi: \
45719 configure-target-libffi
0aed8855 45720 @: $(MAKE); $(unstage)
22121df0 45721 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
6d389afc
MS
45722 r=`${PWD_COMMAND}`; export r; \
45723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 45724 $(NORMAL_TARGET_EXPORTS) \
22121df0 45725 echo "Doing html in $(TARGET_SUBDIR)/libffi"; \
6d389afc
MS
45726 for flag in $(EXTRA_TARGET_FLAGS); do \
45727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45728 done; \
45729 (cd $(TARGET_SUBDIR)/libffi && \
45730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45732 "RANLIB=$${RANLIB}" \
0c24b341 45733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
45734 html) \
45735 || exit 1
45736
45737@endif target-libffi
45738
4fa63067
NN
45739.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
45740maybe-TAGS-target-libffi:
6bd3dfaa
PB
45741@if target-libffi
45742maybe-TAGS-target-libffi: TAGS-target-libffi
4fa63067
NN
45743
45744TAGS-target-libffi: \
45745 configure-target-libffi
0aed8855 45746 @: $(MAKE); $(unstage)
22121df0 45747 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45748 r=`${PWD_COMMAND}`; export r; \
45749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45750 $(NORMAL_TARGET_EXPORTS) \
22121df0 45751 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
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)/libffi && \
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}" \
7ffa0b57 45760 TAGS) \
4fa63067
NN
45761 || exit 1
45762
6bd3dfaa 45763@endif target-libffi
4fa63067
NN
45764
45765.PHONY: maybe-install-info-target-libffi install-info-target-libffi
45766maybe-install-info-target-libffi:
6bd3dfaa
PB
45767@if target-libffi
45768maybe-install-info-target-libffi: install-info-target-libffi
4fa63067
NN
45769
45770install-info-target-libffi: \
45771 configure-target-libffi \
45772 info-target-libffi
0aed8855 45773 @: $(MAKE); $(unstage)
22121df0 45774 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45775 r=`${PWD_COMMAND}`; export r; \
45776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45777 $(NORMAL_TARGET_EXPORTS) \
22121df0 45778 echo "Doing install-info in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45779 for flag in $(EXTRA_TARGET_FLAGS); do \
45780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45781 done; \
45782 (cd $(TARGET_SUBDIR)/libffi && \
45783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45785 "RANLIB=$${RANLIB}" \
0c24b341 45786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45787 install-info) \
4fa63067
NN
45788 || exit 1
45789
6bd3dfaa 45790@endif target-libffi
4fa63067 45791
a3ca38d2
DD
45792.PHONY: maybe-install-pdf-target-libffi install-pdf-target-libffi
45793maybe-install-pdf-target-libffi:
45794@if target-libffi
45795maybe-install-pdf-target-libffi: install-pdf-target-libffi
45796
45797install-pdf-target-libffi: \
45798 configure-target-libffi \
45799 pdf-target-libffi
45800 @: $(MAKE); $(unstage)
22121df0 45801 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
a3ca38d2
DD
45802 r=`${PWD_COMMAND}`; export r; \
45803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45804 $(NORMAL_TARGET_EXPORTS) \
22121df0 45805 echo "Doing install-pdf in $(TARGET_SUBDIR)/libffi"; \
a3ca38d2
DD
45806 for flag in $(EXTRA_TARGET_FLAGS); do \
45807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45808 done; \
45809 (cd $(TARGET_SUBDIR)/libffi && \
45810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45812 "RANLIB=$${RANLIB}" \
0c24b341 45813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
45814 install-pdf) \
45815 || exit 1
45816
45817@endif target-libffi
45818
108a6f8e
CD
45819.PHONY: maybe-install-html-target-libffi install-html-target-libffi
45820maybe-install-html-target-libffi:
45821@if target-libffi
45822maybe-install-html-target-libffi: install-html-target-libffi
45823
45824install-html-target-libffi: \
45825 configure-target-libffi \
45826 html-target-libffi
45827 @: $(MAKE); $(unstage)
22121df0 45828 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
108a6f8e
CD
45829 r=`${PWD_COMMAND}`; export r; \
45830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45831 $(NORMAL_TARGET_EXPORTS) \
22121df0 45832 echo "Doing install-html in $(TARGET_SUBDIR)/libffi"; \
108a6f8e
CD
45833 for flag in $(EXTRA_TARGET_FLAGS); do \
45834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45835 done; \
45836 (cd $(TARGET_SUBDIR)/libffi && \
45837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45839 "RANLIB=$${RANLIB}" \
0c24b341 45840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
45841 install-html) \
45842 || exit 1
45843
45844@endif target-libffi
45845
4fa63067
NN
45846.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
45847maybe-installcheck-target-libffi:
6bd3dfaa
PB
45848@if target-libffi
45849maybe-installcheck-target-libffi: installcheck-target-libffi
4fa63067
NN
45850
45851installcheck-target-libffi: \
45852 configure-target-libffi
0aed8855 45853 @: $(MAKE); $(unstage)
22121df0 45854 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45855 r=`${PWD_COMMAND}`; export r; \
45856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45857 $(NORMAL_TARGET_EXPORTS) \
22121df0 45858 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45859 for flag in $(EXTRA_TARGET_FLAGS); do \
45860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45861 done; \
45862 (cd $(TARGET_SUBDIR)/libffi && \
45863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45865 "RANLIB=$${RANLIB}" \
0c24b341 45866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45867 installcheck) \
4fa63067
NN
45868 || exit 1
45869
6bd3dfaa 45870@endif target-libffi
4fa63067
NN
45871
45872.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
45873maybe-mostlyclean-target-libffi:
6bd3dfaa
PB
45874@if target-libffi
45875maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
4fa63067
NN
45876
45877mostlyclean-target-libffi:
0aed8855 45878 @: $(MAKE); $(unstage)
22121df0 45879 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45880 r=`${PWD_COMMAND}`; export r; \
45881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45882 $(NORMAL_TARGET_EXPORTS) \
22121df0 45883 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45884 for flag in $(EXTRA_TARGET_FLAGS); do \
45885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45886 done; \
45887 (cd $(TARGET_SUBDIR)/libffi && \
45888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45890 "RANLIB=$${RANLIB}" \
0c24b341 45891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45892 mostlyclean) \
4fa63067
NN
45893 || exit 1
45894
6bd3dfaa 45895@endif target-libffi
4fa63067
NN
45896
45897.PHONY: maybe-clean-target-libffi clean-target-libffi
45898maybe-clean-target-libffi:
6bd3dfaa
PB
45899@if target-libffi
45900maybe-clean-target-libffi: clean-target-libffi
4fa63067
NN
45901
45902clean-target-libffi:
0aed8855 45903 @: $(MAKE); $(unstage)
22121df0 45904 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45905 r=`${PWD_COMMAND}`; export r; \
45906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45907 $(NORMAL_TARGET_EXPORTS) \
22121df0 45908 echo "Doing clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45909 for flag in $(EXTRA_TARGET_FLAGS); do \
45910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45911 done; \
45912 (cd $(TARGET_SUBDIR)/libffi && \
45913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45915 "RANLIB=$${RANLIB}" \
0c24b341 45916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45917 clean) \
4fa63067
NN
45918 || exit 1
45919
6bd3dfaa 45920@endif target-libffi
4fa63067
NN
45921
45922.PHONY: maybe-distclean-target-libffi distclean-target-libffi
45923maybe-distclean-target-libffi:
6bd3dfaa
PB
45924@if target-libffi
45925maybe-distclean-target-libffi: distclean-target-libffi
4fa63067
NN
45926
45927distclean-target-libffi:
0aed8855 45928 @: $(MAKE); $(unstage)
22121df0 45929 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45930 r=`${PWD_COMMAND}`; export r; \
45931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45932 $(NORMAL_TARGET_EXPORTS) \
22121df0 45933 echo "Doing distclean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45934 for flag in $(EXTRA_TARGET_FLAGS); do \
45935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45936 done; \
45937 (cd $(TARGET_SUBDIR)/libffi && \
45938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45940 "RANLIB=$${RANLIB}" \
0c24b341 45941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45942 distclean) \
4fa63067
NN
45943 || exit 1
45944
6bd3dfaa 45945@endif target-libffi
4fa63067
NN
45946
45947.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
45948maybe-maintainer-clean-target-libffi:
6bd3dfaa
PB
45949@if target-libffi
45950maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
4fa63067
NN
45951
45952maintainer-clean-target-libffi:
0aed8855 45953 @: $(MAKE); $(unstage)
22121df0 45954 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0; \
4fa63067
NN
45955 r=`${PWD_COMMAND}`; export r; \
45956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 45957 $(NORMAL_TARGET_EXPORTS) \
22121df0 45958 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi"; \
4fa63067
NN
45959 for flag in $(EXTRA_TARGET_FLAGS); do \
45960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
45961 done; \
45962 (cd $(TARGET_SUBDIR)/libffi && \
45963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
45964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
45965 "RANLIB=$${RANLIB}" \
0c24b341 45966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 45967 maintainer-clean) \
4fa63067
NN
45968 || exit 1
45969
6bd3dfaa 45970@endif target-libffi
4fa63067
NN
45971
45972
15723a45 45973
a7254363 45974
15723a45 45975
a7254363
PB
45976.PHONY: configure-target-zlib maybe-configure-target-zlib
45977maybe-configure-target-zlib:
4f0ef2d8
CD
45978@if gcc-bootstrap
45979configure-target-zlib: stage_current
45980@endif gcc-bootstrap
a7254363
PB
45981@if target-zlib
45982maybe-configure-target-zlib: configure-target-zlib
c52c6897 45983configure-target-zlib:
0aed8855
PB
45984 @: $(MAKE); $(unstage)
45985 @r=`${PWD_COMMAND}`; export r; \
45986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
45987 echo "Checking multilib configuration for zlib..."; \
22121df0
L
45988 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
45989 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null; \
0aed8855
PB
45990 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
45991 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
45992 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
45993 else \
45994 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
45995 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
45996 fi; \
45997 else \
45998 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
c52c6897
PB
45999 fi; \
46000 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22121df0 46001 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib; \
1f53ca9a 46002 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
46003 echo Configuring in $(TARGET_SUBDIR)/zlib; \
46004 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
bba45b8b 46005 case $(srcdir) in \
b00612cc
PB
46006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46007 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
46008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 46009 esac; \
1b6c0831 46010 module_srcdir=zlib; \
bba45b8b 46011 rm -f no-such-file || : ; \
1b6c0831
L
46012 CONFIG_SITE=no-such-file $(SHELL) \
46013 $$s/$$module_srcdir/configure \
46014 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46015 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46016 --target=${target_alias} \
bba45b8b 46017 || exit 1
6bd3dfaa 46018@endif target-zlib
e393202e 46019
a7254363
PB
46020
46021
d545f33b
PB
46022
46023
4fa63067
NN
46024.PHONY: all-target-zlib maybe-all-target-zlib
46025maybe-all-target-zlib:
4f0ef2d8
CD
46026@if gcc-bootstrap
46027all-target-zlib: stage_current
46028@endif gcc-bootstrap
6bd3dfaa 46029@if target-zlib
72b2455a 46030TARGET-target-zlib=all
6bd3dfaa 46031maybe-all-target-zlib: all-target-zlib
4fa63067 46032all-target-zlib: configure-target-zlib
0aed8855 46033 @: $(MAKE); $(unstage)
b40e3958
L
46034 @r=`${PWD_COMMAND}`; export r; \
46035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46036 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46037 (cd $(TARGET_SUBDIR)/zlib && \
b3676d82 46038 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46039 $(TARGET-target-zlib))
6bd3dfaa 46040@endif target-zlib
e393202e 46041
a7254363
PB
46042
46043
d545f33b
PB
46044
46045
4fa63067
NN
46046.PHONY: check-target-zlib maybe-check-target-zlib
46047maybe-check-target-zlib:
6bd3dfaa
PB
46048@if target-zlib
46049maybe-check-target-zlib: check-target-zlib
16ae0395 46050
4fa63067 46051check-target-zlib:
0aed8855 46052 @: $(MAKE); $(unstage)
b40e3958
L
46053 @r=`${PWD_COMMAND}`; export r; \
46054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46055 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46056 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 46057 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
e393202e 46058
6bd3dfaa 46059@endif target-zlib
930314a4 46060
4fa63067
NN
46061.PHONY: install-target-zlib maybe-install-target-zlib
46062maybe-install-target-zlib:
6bd3dfaa
PB
46063@if target-zlib
46064maybe-install-target-zlib: install-target-zlib
16ae0395 46065
4fa63067 46066install-target-zlib: installdirs
0aed8855 46067 @: $(MAKE); $(unstage)
b40e3958
L
46068 @r=`${PWD_COMMAND}`; export r; \
46069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46070 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46071 (cd $(TARGET_SUBDIR)/zlib && \
7ffa0b57 46072 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 46073
6bd3dfaa 46074@endif target-zlib
e393202e 46075
9b980aa1
RW
46076.PHONY: install-strip-target-zlib maybe-install-strip-target-zlib
46077maybe-install-strip-target-zlib:
46078@if target-zlib
46079maybe-install-strip-target-zlib: install-strip-target-zlib
46080
46081install-strip-target-zlib: installdirs
46082 @: $(MAKE); $(unstage)
46083 @r=`${PWD_COMMAND}`; export r; \
46084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46085 $(NORMAL_TARGET_EXPORTS) \
46086 (cd $(TARGET_SUBDIR)/zlib && \
46087 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46088
46089@endif target-zlib
46090
56a8fe78 46091# Other targets (info, dvi, pdf, etc.)
15723a45 46092
4fa63067
NN
46093.PHONY: maybe-info-target-zlib info-target-zlib
46094maybe-info-target-zlib:
6bd3dfaa
PB
46095@if target-zlib
46096maybe-info-target-zlib: info-target-zlib
15723a45 46097
4fa63067
NN
46098info-target-zlib: \
46099 configure-target-zlib
0aed8855 46100 @: $(MAKE); $(unstage)
22121df0 46101 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
46102 r=`${PWD_COMMAND}`; export r; \
46103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46104 $(NORMAL_TARGET_EXPORTS) \
22121df0 46105 echo "Doing info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46106 for flag in $(EXTRA_TARGET_FLAGS); do \
46107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46108 done; \
46109 (cd $(TARGET_SUBDIR)/zlib && \
46110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46112 "RANLIB=$${RANLIB}" \
0c24b341 46113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46114 info) \
bba45b8b 46115 || exit 1
e393202e 46116
6bd3dfaa 46117@endif target-zlib
e393202e 46118
4fa63067
NN
46119.PHONY: maybe-dvi-target-zlib dvi-target-zlib
46120maybe-dvi-target-zlib:
6bd3dfaa
PB
46121@if target-zlib
46122maybe-dvi-target-zlib: dvi-target-zlib
16ae0395 46123
4fa63067
NN
46124dvi-target-zlib: \
46125 configure-target-zlib
0aed8855 46126 @: $(MAKE); $(unstage)
22121df0 46127 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46128 r=`${PWD_COMMAND}`; export r; \
b40e3958 46129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46130 $(NORMAL_TARGET_EXPORTS) \
22121df0 46131 echo "Doing dvi in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46132 for flag in $(EXTRA_TARGET_FLAGS); do \
46133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46134 done; \
46135 (cd $(TARGET_SUBDIR)/zlib && \
46136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46138 "RANLIB=$${RANLIB}" \
0c24b341 46139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46140 dvi) \
4fa63067 46141 || exit 1
e393202e 46142
6bd3dfaa 46143@endif target-zlib
930314a4 46144
56a8fe78
DD
46145.PHONY: maybe-pdf-target-zlib pdf-target-zlib
46146maybe-pdf-target-zlib:
46147@if target-zlib
46148maybe-pdf-target-zlib: pdf-target-zlib
46149
46150pdf-target-zlib: \
46151 configure-target-zlib
46152 @: $(MAKE); $(unstage)
22121df0 46153 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
56a8fe78
DD
46154 r=`${PWD_COMMAND}`; export r; \
46155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46156 $(NORMAL_TARGET_EXPORTS) \
22121df0 46157 echo "Doing pdf in $(TARGET_SUBDIR)/zlib"; \
56a8fe78
DD
46158 for flag in $(EXTRA_TARGET_FLAGS); do \
46159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46160 done; \
46161 (cd $(TARGET_SUBDIR)/zlib && \
46162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46164 "RANLIB=$${RANLIB}" \
0c24b341 46165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46166 pdf) \
46167 || exit 1
46168
46169@endif target-zlib
46170
6d389afc
MS
46171.PHONY: maybe-html-target-zlib html-target-zlib
46172maybe-html-target-zlib:
46173@if target-zlib
46174maybe-html-target-zlib: html-target-zlib
46175
46176html-target-zlib: \
46177 configure-target-zlib
0aed8855 46178 @: $(MAKE); $(unstage)
22121df0 46179 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
6d389afc
MS
46180 r=`${PWD_COMMAND}`; export r; \
46181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46182 $(NORMAL_TARGET_EXPORTS) \
22121df0 46183 echo "Doing html in $(TARGET_SUBDIR)/zlib"; \
6d389afc
MS
46184 for flag in $(EXTRA_TARGET_FLAGS); do \
46185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46186 done; \
46187 (cd $(TARGET_SUBDIR)/zlib && \
46188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46190 "RANLIB=$${RANLIB}" \
0c24b341 46191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46192 html) \
46193 || exit 1
46194
46195@endif target-zlib
46196
4fa63067
NN
46197.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
46198maybe-TAGS-target-zlib:
6bd3dfaa
PB
46199@if target-zlib
46200maybe-TAGS-target-zlib: TAGS-target-zlib
16ae0395 46201
4fa63067
NN
46202TAGS-target-zlib: \
46203 configure-target-zlib
0aed8855 46204 @: $(MAKE); $(unstage)
22121df0 46205 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46206 r=`${PWD_COMMAND}`; export r; \
b40e3958 46207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46208 $(NORMAL_TARGET_EXPORTS) \
22121df0 46209 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
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)/zlib && \
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}" \
7ffa0b57 46218 TAGS) \
4fa63067 46219 || exit 1
e393202e 46220
6bd3dfaa 46221@endif target-zlib
15723a45 46222
4fa63067
NN
46223.PHONY: maybe-install-info-target-zlib install-info-target-zlib
46224maybe-install-info-target-zlib:
6bd3dfaa
PB
46225@if target-zlib
46226maybe-install-info-target-zlib: install-info-target-zlib
15723a45 46227
4fa63067
NN
46228install-info-target-zlib: \
46229 configure-target-zlib \
46230 info-target-zlib
0aed8855 46231 @: $(MAKE); $(unstage)
22121df0 46232 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
46233 r=`${PWD_COMMAND}`; export r; \
46234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46235 $(NORMAL_TARGET_EXPORTS) \
22121df0 46236 echo "Doing install-info in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46237 for flag in $(EXTRA_TARGET_FLAGS); do \
46238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46239 done; \
46240 (cd $(TARGET_SUBDIR)/zlib && \
46241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46243 "RANLIB=$${RANLIB}" \
0c24b341 46244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46245 install-info) \
bba45b8b 46246 || exit 1
e393202e 46247
6bd3dfaa 46248@endif target-zlib
16ae0395 46249
a3ca38d2
DD
46250.PHONY: maybe-install-pdf-target-zlib install-pdf-target-zlib
46251maybe-install-pdf-target-zlib:
46252@if target-zlib
46253maybe-install-pdf-target-zlib: install-pdf-target-zlib
46254
46255install-pdf-target-zlib: \
46256 configure-target-zlib \
46257 pdf-target-zlib
46258 @: $(MAKE); $(unstage)
22121df0 46259 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
a3ca38d2
DD
46260 r=`${PWD_COMMAND}`; export r; \
46261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46262 $(NORMAL_TARGET_EXPORTS) \
22121df0 46263 echo "Doing install-pdf in $(TARGET_SUBDIR)/zlib"; \
a3ca38d2
DD
46264 for flag in $(EXTRA_TARGET_FLAGS); do \
46265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46266 done; \
46267 (cd $(TARGET_SUBDIR)/zlib && \
46268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46270 "RANLIB=$${RANLIB}" \
0c24b341 46271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46272 install-pdf) \
46273 || exit 1
46274
46275@endif target-zlib
46276
108a6f8e
CD
46277.PHONY: maybe-install-html-target-zlib install-html-target-zlib
46278maybe-install-html-target-zlib:
46279@if target-zlib
46280maybe-install-html-target-zlib: install-html-target-zlib
46281
46282install-html-target-zlib: \
46283 configure-target-zlib \
46284 html-target-zlib
46285 @: $(MAKE); $(unstage)
22121df0 46286 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
108a6f8e
CD
46287 r=`${PWD_COMMAND}`; export r; \
46288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46289 $(NORMAL_TARGET_EXPORTS) \
22121df0 46290 echo "Doing install-html in $(TARGET_SUBDIR)/zlib"; \
108a6f8e
CD
46291 for flag in $(EXTRA_TARGET_FLAGS); do \
46292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46293 done; \
46294 (cd $(TARGET_SUBDIR)/zlib && \
46295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46297 "RANLIB=$${RANLIB}" \
0c24b341 46298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46299 install-html) \
46300 || exit 1
46301
46302@endif target-zlib
46303
4fa63067
NN
46304.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
46305maybe-installcheck-target-zlib:
6bd3dfaa
PB
46306@if target-zlib
46307maybe-installcheck-target-zlib: installcheck-target-zlib
3866be5d 46308
4fa63067
NN
46309installcheck-target-zlib: \
46310 configure-target-zlib
0aed8855 46311 @: $(MAKE); $(unstage)
22121df0 46312 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
46313 r=`${PWD_COMMAND}`; export r; \
46314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46315 $(NORMAL_TARGET_EXPORTS) \
22121df0 46316 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46317 for flag in $(EXTRA_TARGET_FLAGS); do \
46318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46319 done; \
46320 (cd $(TARGET_SUBDIR)/zlib && \
46321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46323 "RANLIB=$${RANLIB}" \
0c24b341 46324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46325 installcheck) \
4fa63067 46326 || exit 1
e393202e 46327
6bd3dfaa 46328@endif target-zlib
16ae0395 46329
4fa63067
NN
46330.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
46331maybe-mostlyclean-target-zlib:
6bd3dfaa
PB
46332@if target-zlib
46333maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
930314a4 46334
4fa63067 46335mostlyclean-target-zlib:
0aed8855 46336 @: $(MAKE); $(unstage)
22121df0 46337 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067
NN
46338 r=`${PWD_COMMAND}`; export r; \
46339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46340 $(NORMAL_TARGET_EXPORTS) \
22121df0 46341 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46342 for flag in $(EXTRA_TARGET_FLAGS); do \
46343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46344 done; \
46345 (cd $(TARGET_SUBDIR)/zlib && \
46346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46348 "RANLIB=$${RANLIB}" \
0c24b341 46349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46350 mostlyclean) \
4fa63067 46351 || exit 1
e393202e 46352
6bd3dfaa 46353@endif target-zlib
15723a45 46354
4fa63067
NN
46355.PHONY: maybe-clean-target-zlib clean-target-zlib
46356maybe-clean-target-zlib:
6bd3dfaa
PB
46357@if target-zlib
46358maybe-clean-target-zlib: clean-target-zlib
15723a45 46359
4fa63067 46360clean-target-zlib:
0aed8855 46361 @: $(MAKE); $(unstage)
22121df0 46362 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
b40e3958
L
46363 r=`${PWD_COMMAND}`; export r; \
46364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46365 $(NORMAL_TARGET_EXPORTS) \
22121df0 46366 echo "Doing clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46367 for flag in $(EXTRA_TARGET_FLAGS); do \
46368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46369 done; \
46370 (cd $(TARGET_SUBDIR)/zlib && \
46371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46373 "RANLIB=$${RANLIB}" \
0c24b341 46374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46375 clean) \
bba45b8b 46376 || exit 1
e393202e 46377
6bd3dfaa 46378@endif target-zlib
e393202e 46379
4fa63067
NN
46380.PHONY: maybe-distclean-target-zlib distclean-target-zlib
46381maybe-distclean-target-zlib:
6bd3dfaa
PB
46382@if target-zlib
46383maybe-distclean-target-zlib: distclean-target-zlib
16ae0395 46384
4fa63067 46385distclean-target-zlib:
0aed8855 46386 @: $(MAKE); $(unstage)
22121df0 46387 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46388 r=`${PWD_COMMAND}`; export r; \
b40e3958 46389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46390 $(NORMAL_TARGET_EXPORTS) \
22121df0 46391 echo "Doing distclean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46392 for flag in $(EXTRA_TARGET_FLAGS); do \
46393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46394 done; \
46395 (cd $(TARGET_SUBDIR)/zlib && \
46396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46398 "RANLIB=$${RANLIB}" \
0c24b341 46399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46400 distclean) \
4fa63067 46401 || exit 1
e393202e 46402
6bd3dfaa 46403@endif target-zlib
e393202e 46404
4fa63067
NN
46405.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
46406maybe-maintainer-clean-target-zlib:
6bd3dfaa
PB
46407@if target-zlib
46408maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
16ae0395 46409
4fa63067 46410maintainer-clean-target-zlib:
0aed8855 46411 @: $(MAKE); $(unstage)
22121df0 46412 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0; \
4fa63067 46413 r=`${PWD_COMMAND}`; export r; \
b40e3958 46414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46415 $(NORMAL_TARGET_EXPORTS) \
22121df0 46416 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib"; \
4fa63067
NN
46417 for flag in $(EXTRA_TARGET_FLAGS); do \
46418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46419 done; \
46420 (cd $(TARGET_SUBDIR)/zlib && \
46421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46423 "RANLIB=$${RANLIB}" \
0c24b341 46424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46425 maintainer-clean) \
4fa63067 46426 || exit 1
e393202e 46427
6bd3dfaa 46428@endif target-zlib
930314a4 46429
4fa63067 46430
15723a45 46431
a7254363 46432
e90269c8 46433
a7254363
PB
46434.PHONY: configure-target-rda maybe-configure-target-rda
46435maybe-configure-target-rda:
4f0ef2d8
CD
46436@if gcc-bootstrap
46437configure-target-rda: stage_current
46438@endif gcc-bootstrap
a7254363
PB
46439@if target-rda
46440maybe-configure-target-rda: configure-target-rda
c52c6897 46441configure-target-rda:
0aed8855
PB
46442 @: $(MAKE); $(unstage)
46443 @r=`${PWD_COMMAND}`; export r; \
46444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46445 echo "Checking multilib configuration for rda..."; \
22121df0
L
46446 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
46447 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null; \
0aed8855
PB
46448 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
46449 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
46450 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
46451 else \
46452 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
46453 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
46454 fi; \
46455 else \
46456 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
c52c6897
PB
46457 fi; \
46458 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
22121df0 46459 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda; \
1f53ca9a 46460 $(NORMAL_TARGET_EXPORTS) \
4fa63067
NN
46461 echo Configuring in $(TARGET_SUBDIR)/rda; \
46462 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
bba45b8b 46463 case $(srcdir) in \
b00612cc
PB
46464 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46465 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
46466 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
bba45b8b 46467 esac; \
1b6c0831 46468 module_srcdir=rda; \
bba45b8b 46469 rm -f no-such-file || : ; \
1b6c0831
L
46470 CONFIG_SITE=no-such-file $(SHELL) \
46471 $$s/$$module_srcdir/configure \
46472 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46473 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46474 --target=${target_alias} \
bba45b8b 46475 || exit 1
6bd3dfaa 46476@endif target-rda
49b7683b 46477
a7254363
PB
46478
46479
d545f33b
PB
46480
46481
4fa63067
NN
46482.PHONY: all-target-rda maybe-all-target-rda
46483maybe-all-target-rda:
4f0ef2d8
CD
46484@if gcc-bootstrap
46485all-target-rda: stage_current
46486@endif gcc-bootstrap
6bd3dfaa 46487@if target-rda
72b2455a 46488TARGET-target-rda=all
6bd3dfaa 46489maybe-all-target-rda: all-target-rda
4fa63067 46490all-target-rda: configure-target-rda
0aed8855 46491 @: $(MAKE); $(unstage)
b40e3958
L
46492 @r=`${PWD_COMMAND}`; export r; \
46493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46494 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46495 (cd $(TARGET_SUBDIR)/rda && \
b3676d82 46496 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46497 $(TARGET-target-rda))
6bd3dfaa 46498@endif target-rda
252b5132 46499
a7254363
PB
46500
46501
d545f33b
PB
46502
46503
4fa63067
NN
46504.PHONY: check-target-rda maybe-check-target-rda
46505maybe-check-target-rda:
6bd3dfaa
PB
46506@if target-rda
46507maybe-check-target-rda: check-target-rda
16ae0395 46508
4fa63067 46509check-target-rda:
0aed8855 46510 @: $(MAKE); $(unstage)
b40e3958
L
46511 @r=`${PWD_COMMAND}`; export r; \
46512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46513 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46514 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 46515 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
252b5132 46516
6bd3dfaa 46517@endif target-rda
930314a4 46518
4fa63067
NN
46519.PHONY: install-target-rda maybe-install-target-rda
46520maybe-install-target-rda:
6bd3dfaa
PB
46521@if target-rda
46522maybe-install-target-rda: install-target-rda
16ae0395 46523
4fa63067 46524install-target-rda: installdirs
0aed8855 46525 @: $(MAKE); $(unstage)
b40e3958
L
46526 @r=`${PWD_COMMAND}`; export r; \
46527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46528 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46529 (cd $(TARGET_SUBDIR)/rda && \
7ffa0b57 46530 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e393202e 46531
6bd3dfaa 46532@endif target-rda
e393202e 46533
9b980aa1
RW
46534.PHONY: install-strip-target-rda maybe-install-strip-target-rda
46535maybe-install-strip-target-rda:
46536@if target-rda
46537maybe-install-strip-target-rda: install-strip-target-rda
46538
46539install-strip-target-rda: installdirs
46540 @: $(MAKE); $(unstage)
46541 @r=`${PWD_COMMAND}`; export r; \
46542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46543 $(NORMAL_TARGET_EXPORTS) \
46544 (cd $(TARGET_SUBDIR)/rda && \
46545 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
46546
46547@endif target-rda
46548
56a8fe78 46549# Other targets (info, dvi, pdf, etc.)
15723a45 46550
4fa63067
NN
46551.PHONY: maybe-info-target-rda info-target-rda
46552maybe-info-target-rda:
6bd3dfaa
PB
46553@if target-rda
46554maybe-info-target-rda: info-target-rda
15723a45 46555
4fa63067
NN
46556info-target-rda: \
46557 configure-target-rda
0aed8855 46558 @: $(MAKE); $(unstage)
22121df0 46559 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
46560 r=`${PWD_COMMAND}`; export r; \
46561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46562 $(NORMAL_TARGET_EXPORTS) \
22121df0 46563 echo "Doing info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46564 for flag in $(EXTRA_TARGET_FLAGS); do \
46565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46566 done; \
46567 (cd $(TARGET_SUBDIR)/rda && \
46568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46570 "RANLIB=$${RANLIB}" \
0c24b341 46571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46572 info) \
bba45b8b 46573 || exit 1
252b5132 46574
6bd3dfaa 46575@endif target-rda
4fa63067
NN
46576
46577.PHONY: maybe-dvi-target-rda dvi-target-rda
46578maybe-dvi-target-rda:
6bd3dfaa
PB
46579@if target-rda
46580maybe-dvi-target-rda: dvi-target-rda
4fa63067
NN
46581
46582dvi-target-rda: \
46583 configure-target-rda
0aed8855 46584 @: $(MAKE); $(unstage)
22121df0 46585 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46586 r=`${PWD_COMMAND}`; export r; \
b40e3958 46587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46588 $(NORMAL_TARGET_EXPORTS) \
22121df0 46589 echo "Doing dvi in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46590 for flag in $(EXTRA_TARGET_FLAGS); do \
46591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46592 done; \
46593 (cd $(TARGET_SUBDIR)/rda && \
46594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46596 "RANLIB=$${RANLIB}" \
0c24b341 46597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46598 dvi) \
4fa63067 46599 || exit 1
252b5132 46600
6bd3dfaa 46601@endif target-rda
16ae0395 46602
56a8fe78
DD
46603.PHONY: maybe-pdf-target-rda pdf-target-rda
46604maybe-pdf-target-rda:
46605@if target-rda
46606maybe-pdf-target-rda: pdf-target-rda
46607
46608pdf-target-rda: \
46609 configure-target-rda
46610 @: $(MAKE); $(unstage)
22121df0 46611 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
56a8fe78
DD
46612 r=`${PWD_COMMAND}`; export r; \
46613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46614 $(NORMAL_TARGET_EXPORTS) \
22121df0 46615 echo "Doing pdf in $(TARGET_SUBDIR)/rda"; \
56a8fe78
DD
46616 for flag in $(EXTRA_TARGET_FLAGS); do \
46617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46618 done; \
46619 (cd $(TARGET_SUBDIR)/rda && \
46620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46622 "RANLIB=$${RANLIB}" \
0c24b341 46623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
46624 pdf) \
46625 || exit 1
46626
46627@endif target-rda
46628
6d389afc
MS
46629.PHONY: maybe-html-target-rda html-target-rda
46630maybe-html-target-rda:
46631@if target-rda
46632maybe-html-target-rda: html-target-rda
46633
46634html-target-rda: \
46635 configure-target-rda
0aed8855 46636 @: $(MAKE); $(unstage)
22121df0 46637 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
6d389afc
MS
46638 r=`${PWD_COMMAND}`; export r; \
46639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 46640 $(NORMAL_TARGET_EXPORTS) \
22121df0 46641 echo "Doing html in $(TARGET_SUBDIR)/rda"; \
6d389afc
MS
46642 for flag in $(EXTRA_TARGET_FLAGS); do \
46643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46644 done; \
46645 (cd $(TARGET_SUBDIR)/rda && \
46646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46648 "RANLIB=$${RANLIB}" \
0c24b341 46649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
46650 html) \
46651 || exit 1
46652
46653@endif target-rda
46654
4fa63067
NN
46655.PHONY: maybe-TAGS-target-rda TAGS-target-rda
46656maybe-TAGS-target-rda:
6bd3dfaa
PB
46657@if target-rda
46658maybe-TAGS-target-rda: TAGS-target-rda
4fa63067
NN
46659
46660TAGS-target-rda: \
46661 configure-target-rda
0aed8855 46662 @: $(MAKE); $(unstage)
22121df0 46663 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46664 r=`${PWD_COMMAND}`; export r; \
b40e3958 46665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46666 $(NORMAL_TARGET_EXPORTS) \
22121df0 46667 echo "Doing TAGS in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46668 for flag in $(EXTRA_TARGET_FLAGS); do \
46669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46670 done; \
46671 (cd $(TARGET_SUBDIR)/rda && \
46672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46674 "RANLIB=$${RANLIB}" \
0c24b341 46675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46676 TAGS) \
4fa63067 46677 || exit 1
e393202e 46678
6bd3dfaa 46679@endif target-rda
930314a4 46680
4fa63067
NN
46681.PHONY: maybe-install-info-target-rda install-info-target-rda
46682maybe-install-info-target-rda:
6bd3dfaa
PB
46683@if target-rda
46684maybe-install-info-target-rda: install-info-target-rda
16ae0395 46685
4fa63067
NN
46686install-info-target-rda: \
46687 configure-target-rda \
46688 info-target-rda
0aed8855 46689 @: $(MAKE); $(unstage)
22121df0 46690 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46691 r=`${PWD_COMMAND}`; export r; \
b40e3958 46692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46693 $(NORMAL_TARGET_EXPORTS) \
22121df0 46694 echo "Doing install-info in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46695 for flag in $(EXTRA_TARGET_FLAGS); do \
46696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46697 done; \
46698 (cd $(TARGET_SUBDIR)/rda && \
46699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46701 "RANLIB=$${RANLIB}" \
0c24b341 46702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46703 install-info) \
4fa63067 46704 || exit 1
252b5132 46705
6bd3dfaa 46706@endif target-rda
e393202e 46707
a3ca38d2
DD
46708.PHONY: maybe-install-pdf-target-rda install-pdf-target-rda
46709maybe-install-pdf-target-rda:
46710@if target-rda
46711maybe-install-pdf-target-rda: install-pdf-target-rda
46712
46713install-pdf-target-rda: \
46714 configure-target-rda \
46715 pdf-target-rda
46716 @: $(MAKE); $(unstage)
22121df0 46717 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
a3ca38d2
DD
46718 r=`${PWD_COMMAND}`; export r; \
46719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46720 $(NORMAL_TARGET_EXPORTS) \
22121df0 46721 echo "Doing install-pdf in $(TARGET_SUBDIR)/rda"; \
a3ca38d2
DD
46722 for flag in $(EXTRA_TARGET_FLAGS); do \
46723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46724 done; \
46725 (cd $(TARGET_SUBDIR)/rda && \
46726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46728 "RANLIB=$${RANLIB}" \
0c24b341 46729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
46730 install-pdf) \
46731 || exit 1
46732
46733@endif target-rda
46734
108a6f8e
CD
46735.PHONY: maybe-install-html-target-rda install-html-target-rda
46736maybe-install-html-target-rda:
46737@if target-rda
46738maybe-install-html-target-rda: install-html-target-rda
46739
46740install-html-target-rda: \
46741 configure-target-rda \
46742 html-target-rda
46743 @: $(MAKE); $(unstage)
22121df0 46744 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
108a6f8e
CD
46745 r=`${PWD_COMMAND}`; export r; \
46746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46747 $(NORMAL_TARGET_EXPORTS) \
22121df0 46748 echo "Doing install-html in $(TARGET_SUBDIR)/rda"; \
108a6f8e
CD
46749 for flag in $(EXTRA_TARGET_FLAGS); do \
46750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46751 done; \
46752 (cd $(TARGET_SUBDIR)/rda && \
46753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46755 "RANLIB=$${RANLIB}" \
0c24b341 46756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
46757 install-html) \
46758 || exit 1
46759
46760@endif target-rda
46761
4fa63067
NN
46762.PHONY: maybe-installcheck-target-rda installcheck-target-rda
46763maybe-installcheck-target-rda:
6bd3dfaa
PB
46764@if target-rda
46765maybe-installcheck-target-rda: installcheck-target-rda
15723a45 46766
4fa63067
NN
46767installcheck-target-rda: \
46768 configure-target-rda
0aed8855 46769 @: $(MAKE); $(unstage)
22121df0 46770 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067
NN
46771 r=`${PWD_COMMAND}`; export r; \
46772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46773 $(NORMAL_TARGET_EXPORTS) \
22121df0 46774 echo "Doing installcheck in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46775 for flag in $(EXTRA_TARGET_FLAGS); do \
46776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46777 done; \
46778 (cd $(TARGET_SUBDIR)/rda && \
46779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46781 "RANLIB=$${RANLIB}" \
0c24b341 46782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46783 installcheck) \
4fa63067 46784 || exit 1
15723a45 46785
6bd3dfaa 46786@endif target-rda
4fa63067
NN
46787
46788.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
46789maybe-mostlyclean-target-rda:
6bd3dfaa
PB
46790@if target-rda
46791maybe-mostlyclean-target-rda: mostlyclean-target-rda
4fa63067
NN
46792
46793mostlyclean-target-rda:
0aed8855 46794 @: $(MAKE); $(unstage)
22121df0 46795 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
b40e3958
L
46796 r=`${PWD_COMMAND}`; export r; \
46797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46798 $(NORMAL_TARGET_EXPORTS) \
22121df0 46799 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46800 for flag in $(EXTRA_TARGET_FLAGS); do \
46801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46802 done; \
46803 (cd $(TARGET_SUBDIR)/rda && \
46804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46806 "RANLIB=$${RANLIB}" \
0c24b341 46807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46808 mostlyclean) \
bba45b8b 46809 || exit 1
252b5132 46810
6bd3dfaa 46811@endif target-rda
4fa63067
NN
46812
46813.PHONY: maybe-clean-target-rda clean-target-rda
46814maybe-clean-target-rda:
6bd3dfaa
PB
46815@if target-rda
46816maybe-clean-target-rda: clean-target-rda
4fa63067
NN
46817
46818clean-target-rda:
0aed8855 46819 @: $(MAKE); $(unstage)
22121df0 46820 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46821 r=`${PWD_COMMAND}`; export r; \
b40e3958 46822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46823 $(NORMAL_TARGET_EXPORTS) \
22121df0 46824 echo "Doing clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46825 for flag in $(EXTRA_TARGET_FLAGS); do \
46826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46827 done; \
bba45b8b 46828 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46831 "RANLIB=$${RANLIB}" \
0c24b341 46832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46833 clean) \
4fa63067 46834 || exit 1
252b5132 46835
6bd3dfaa 46836@endif target-rda
16ae0395 46837
4fa63067
NN
46838.PHONY: maybe-distclean-target-rda distclean-target-rda
46839maybe-distclean-target-rda:
6bd3dfaa
PB
46840@if target-rda
46841maybe-distclean-target-rda: distclean-target-rda
4fa63067
NN
46842
46843distclean-target-rda:
0aed8855 46844 @: $(MAKE); $(unstage)
22121df0 46845 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46846 r=`${PWD_COMMAND}`; export r; \
b40e3958 46847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46848 $(NORMAL_TARGET_EXPORTS) \
22121df0 46849 echo "Doing distclean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46850 for flag in $(EXTRA_TARGET_FLAGS); do \
46851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46852 done; \
bba45b8b 46853 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46856 "RANLIB=$${RANLIB}" \
0c24b341 46857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46858 distclean) \
4fa63067 46859 || exit 1
252b5132 46860
6bd3dfaa 46861@endif target-rda
930314a4 46862
4fa63067
NN
46863.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
46864maybe-maintainer-clean-target-rda:
6bd3dfaa
PB
46865@if target-rda
46866maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
16ae0395 46867
4fa63067 46868maintainer-clean-target-rda:
0aed8855 46869 @: $(MAKE); $(unstage)
22121df0 46870 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0; \
4fa63067 46871 r=`${PWD_COMMAND}`; export r; \
b40e3958 46872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46873 $(NORMAL_TARGET_EXPORTS) \
22121df0 46874 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda"; \
4fa63067
NN
46875 for flag in $(EXTRA_TARGET_FLAGS); do \
46876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
46877 done; \
bba45b8b 46878 (cd $(TARGET_SUBDIR)/rda && \
4fa63067
NN
46879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
46880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
46881 "RANLIB=$${RANLIB}" \
0c24b341 46882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 46883 maintainer-clean) \
4fa63067
NN
46884 || exit 1
46885
6bd3dfaa 46886@endif target-rda
252b5132 46887
e393202e 46888
a2592b1b 46889
a7254363
PB
46890
46891
46892.PHONY: configure-target-libada maybe-configure-target-libada
46893maybe-configure-target-libada:
4f0ef2d8
CD
46894@if gcc-bootstrap
46895configure-target-libada: stage_current
46896@endif gcc-bootstrap
a7254363
PB
46897@if target-libada
46898maybe-configure-target-libada: configure-target-libada
c52c6897 46899configure-target-libada:
0aed8855
PB
46900 @: $(MAKE); $(unstage)
46901 @r=`${PWD_COMMAND}`; export r; \
46902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
46903 echo "Checking multilib configuration for libada..."; \
22121df0
L
46904 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
46905 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null; \
0aed8855
PB
46906 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
46907 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
46908 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
46909 else \
46910 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
46911 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
46912 fi; \
46913 else \
46914 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
c52c6897
PB
46915 fi; \
46916 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
22121df0 46917 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada; \
1f53ca9a 46918 $(NORMAL_TARGET_EXPORTS) \
a2592b1b
DD
46919 echo Configuring in $(TARGET_SUBDIR)/libada; \
46920 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
46921 case $(srcdir) in \
b00612cc
PB
46922 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
46923 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
46924 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
a2592b1b 46925 esac; \
1b6c0831 46926 module_srcdir=libada; \
a2592b1b 46927 rm -f no-such-file || : ; \
1b6c0831
L
46928 CONFIG_SITE=no-such-file $(SHELL) \
46929 $$s/$$module_srcdir/configure \
46930 --srcdir=$${topdir}/$$module_srcdir \
4b900473 46931 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 46932 --target=${target_alias} \
a2592b1b 46933 || exit 1
6bd3dfaa 46934@endif target-libada
a2592b1b 46935
a7254363
PB
46936
46937
d545f33b
PB
46938
46939
4fa63067
NN
46940.PHONY: all-target-libada maybe-all-target-libada
46941maybe-all-target-libada:
4f0ef2d8
CD
46942@if gcc-bootstrap
46943all-target-libada: stage_current
46944@endif gcc-bootstrap
6bd3dfaa 46945@if target-libada
72b2455a 46946TARGET-target-libada=all
6bd3dfaa 46947maybe-all-target-libada: all-target-libada
4fa63067 46948all-target-libada: configure-target-libada
0aed8855 46949 @: $(MAKE); $(unstage)
4fa63067
NN
46950 @r=`${PWD_COMMAND}`; export r; \
46951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 46952 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46953 (cd $(TARGET_SUBDIR)/libada && \
b3676d82 46954 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 46955 $(TARGET-target-libada))
6bd3dfaa 46956@endif target-libada
4fa63067 46957
a7254363
PB
46958
46959
d545f33b
PB
46960
46961
4fa63067
NN
46962.PHONY: check-target-libada maybe-check-target-libada
46963maybe-check-target-libada:
6bd3dfaa
PB
46964@if target-libada
46965maybe-check-target-libada: check-target-libada
4fa63067
NN
46966
46967check-target-libada:
0aed8855 46968 @: $(MAKE); $(unstage)
4fa63067
NN
46969 @r=`${PWD_COMMAND}`; export r; \
46970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46971 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46972 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 46973 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4fa63067 46974
6bd3dfaa 46975@endif target-libada
4fa63067
NN
46976
46977.PHONY: install-target-libada maybe-install-target-libada
46978maybe-install-target-libada:
6bd3dfaa
PB
46979@if target-libada
46980maybe-install-target-libada: install-target-libada
4fa63067
NN
46981
46982install-target-libada: installdirs
0aed8855 46983 @: $(MAKE); $(unstage)
4fa63067
NN
46984 @r=`${PWD_COMMAND}`; export r; \
46985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 46986 $(NORMAL_TARGET_EXPORTS) \
4fa63067 46987 (cd $(TARGET_SUBDIR)/libada && \
7ffa0b57 46988 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4fa63067 46989
6bd3dfaa 46990@endif target-libada
4fa63067 46991
9b980aa1
RW
46992.PHONY: install-strip-target-libada maybe-install-strip-target-libada
46993maybe-install-strip-target-libada:
46994@if target-libada
46995maybe-install-strip-target-libada: install-strip-target-libada
46996
46997install-strip-target-libada: installdirs
46998 @: $(MAKE); $(unstage)
46999 @r=`${PWD_COMMAND}`; export r; \
47000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47001 $(NORMAL_TARGET_EXPORTS) \
47002 (cd $(TARGET_SUBDIR)/libada && \
47003 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47004
47005@endif target-libada
47006
56a8fe78 47007# Other targets (info, dvi, pdf, etc.)
4fa63067
NN
47008
47009.PHONY: maybe-info-target-libada info-target-libada
47010maybe-info-target-libada:
6bd3dfaa
PB
47011@if target-libada
47012maybe-info-target-libada: info-target-libada
4fa63067
NN
47013
47014info-target-libada: \
47015 configure-target-libada
0aed8855 47016 @: $(MAKE); $(unstage)
22121df0 47017 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47018 r=`${PWD_COMMAND}`; export r; \
47019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47020 $(NORMAL_TARGET_EXPORTS) \
22121df0 47021 echo "Doing info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47022 for flag in $(EXTRA_TARGET_FLAGS); do \
47023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47024 done; \
47025 (cd $(TARGET_SUBDIR)/libada && \
47026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47028 "RANLIB=$${RANLIB}" \
0c24b341 47029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47030 info) \
4fa63067
NN
47031 || exit 1
47032
6bd3dfaa 47033@endif target-libada
4fa63067
NN
47034
47035.PHONY: maybe-dvi-target-libada dvi-target-libada
47036maybe-dvi-target-libada:
6bd3dfaa
PB
47037@if target-libada
47038maybe-dvi-target-libada: dvi-target-libada
4fa63067
NN
47039
47040dvi-target-libada: \
47041 configure-target-libada
0aed8855 47042 @: $(MAKE); $(unstage)
22121df0 47043 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47044 r=`${PWD_COMMAND}`; export r; \
47045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47046 $(NORMAL_TARGET_EXPORTS) \
22121df0 47047 echo "Doing dvi in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47048 for flag in $(EXTRA_TARGET_FLAGS); do \
47049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47050 done; \
47051 (cd $(TARGET_SUBDIR)/libada && \
47052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47054 "RANLIB=$${RANLIB}" \
0c24b341 47055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47056 dvi) \
4fa63067
NN
47057 || exit 1
47058
6bd3dfaa 47059@endif target-libada
4fa63067 47060
56a8fe78
DD
47061.PHONY: maybe-pdf-target-libada pdf-target-libada
47062maybe-pdf-target-libada:
47063@if target-libada
47064maybe-pdf-target-libada: pdf-target-libada
47065
47066pdf-target-libada: \
47067 configure-target-libada
47068 @: $(MAKE); $(unstage)
22121df0 47069 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
56a8fe78
DD
47070 r=`${PWD_COMMAND}`; export r; \
47071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47072 $(NORMAL_TARGET_EXPORTS) \
22121df0 47073 echo "Doing pdf in $(TARGET_SUBDIR)/libada"; \
56a8fe78
DD
47074 for flag in $(EXTRA_TARGET_FLAGS); do \
47075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47076 done; \
47077 (cd $(TARGET_SUBDIR)/libada && \
47078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47080 "RANLIB=$${RANLIB}" \
0c24b341 47081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
47082 pdf) \
47083 || exit 1
47084
47085@endif target-libada
47086
6d389afc
MS
47087.PHONY: maybe-html-target-libada html-target-libada
47088maybe-html-target-libada:
47089@if target-libada
47090maybe-html-target-libada: html-target-libada
47091
47092html-target-libada: \
47093 configure-target-libada
0aed8855 47094 @: $(MAKE); $(unstage)
22121df0 47095 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
6d389afc
MS
47096 r=`${PWD_COMMAND}`; export r; \
47097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6d389afc 47098 $(NORMAL_TARGET_EXPORTS) \
22121df0 47099 echo "Doing html in $(TARGET_SUBDIR)/libada"; \
6d389afc
MS
47100 for flag in $(EXTRA_TARGET_FLAGS); do \
47101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47102 done; \
47103 (cd $(TARGET_SUBDIR)/libada && \
47104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47106 "RANLIB=$${RANLIB}" \
0c24b341 47107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
6d389afc
MS
47108 html) \
47109 || exit 1
47110
47111@endif target-libada
47112
4fa63067
NN
47113.PHONY: maybe-TAGS-target-libada TAGS-target-libada
47114maybe-TAGS-target-libada:
6bd3dfaa
PB
47115@if target-libada
47116maybe-TAGS-target-libada: TAGS-target-libada
4fa63067
NN
47117
47118TAGS-target-libada: \
47119 configure-target-libada
0aed8855 47120 @: $(MAKE); $(unstage)
22121df0 47121 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47122 r=`${PWD_COMMAND}`; export r; \
47123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47124 $(NORMAL_TARGET_EXPORTS) \
22121df0 47125 echo "Doing TAGS in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47126 for flag in $(EXTRA_TARGET_FLAGS); do \
47127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47128 done; \
47129 (cd $(TARGET_SUBDIR)/libada && \
47130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47132 "RANLIB=$${RANLIB}" \
0c24b341 47133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47134 TAGS) \
4fa63067
NN
47135 || exit 1
47136
6bd3dfaa 47137@endif target-libada
4fa63067
NN
47138
47139.PHONY: maybe-install-info-target-libada install-info-target-libada
47140maybe-install-info-target-libada:
6bd3dfaa
PB
47141@if target-libada
47142maybe-install-info-target-libada: install-info-target-libada
4fa63067
NN
47143
47144install-info-target-libada: \
47145 configure-target-libada \
47146 info-target-libada
0aed8855 47147 @: $(MAKE); $(unstage)
22121df0 47148 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47149 r=`${PWD_COMMAND}`; export r; \
47150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47151 $(NORMAL_TARGET_EXPORTS) \
22121df0 47152 echo "Doing install-info in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47153 for flag in $(EXTRA_TARGET_FLAGS); do \
47154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47155 done; \
47156 (cd $(TARGET_SUBDIR)/libada && \
47157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47159 "RANLIB=$${RANLIB}" \
0c24b341 47160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47161 install-info) \
4fa63067
NN
47162 || exit 1
47163
6bd3dfaa 47164@endif target-libada
4fa63067 47165
a3ca38d2
DD
47166.PHONY: maybe-install-pdf-target-libada install-pdf-target-libada
47167maybe-install-pdf-target-libada:
47168@if target-libada
47169maybe-install-pdf-target-libada: install-pdf-target-libada
47170
47171install-pdf-target-libada: \
47172 configure-target-libada \
47173 pdf-target-libada
47174 @: $(MAKE); $(unstage)
22121df0 47175 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
a3ca38d2
DD
47176 r=`${PWD_COMMAND}`; export r; \
47177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47178 $(NORMAL_TARGET_EXPORTS) \
22121df0 47179 echo "Doing install-pdf in $(TARGET_SUBDIR)/libada"; \
a3ca38d2
DD
47180 for flag in $(EXTRA_TARGET_FLAGS); do \
47181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47182 done; \
47183 (cd $(TARGET_SUBDIR)/libada && \
47184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47186 "RANLIB=$${RANLIB}" \
0c24b341 47187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
47188 install-pdf) \
47189 || exit 1
47190
47191@endif target-libada
47192
108a6f8e
CD
47193.PHONY: maybe-install-html-target-libada install-html-target-libada
47194maybe-install-html-target-libada:
47195@if target-libada
47196maybe-install-html-target-libada: install-html-target-libada
47197
47198install-html-target-libada: \
47199 configure-target-libada \
47200 html-target-libada
47201 @: $(MAKE); $(unstage)
22121df0 47202 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
108a6f8e
CD
47203 r=`${PWD_COMMAND}`; export r; \
47204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47205 $(NORMAL_TARGET_EXPORTS) \
22121df0 47206 echo "Doing install-html in $(TARGET_SUBDIR)/libada"; \
108a6f8e
CD
47207 for flag in $(EXTRA_TARGET_FLAGS); do \
47208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47209 done; \
47210 (cd $(TARGET_SUBDIR)/libada && \
47211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47213 "RANLIB=$${RANLIB}" \
0c24b341 47214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
47215 install-html) \
47216 || exit 1
47217
47218@endif target-libada
47219
4fa63067
NN
47220.PHONY: maybe-installcheck-target-libada installcheck-target-libada
47221maybe-installcheck-target-libada:
6bd3dfaa
PB
47222@if target-libada
47223maybe-installcheck-target-libada: installcheck-target-libada
4fa63067
NN
47224
47225installcheck-target-libada: \
47226 configure-target-libada
0aed8855 47227 @: $(MAKE); $(unstage)
22121df0 47228 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47229 r=`${PWD_COMMAND}`; export r; \
47230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47231 $(NORMAL_TARGET_EXPORTS) \
22121df0 47232 echo "Doing installcheck in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47233 for flag in $(EXTRA_TARGET_FLAGS); do \
47234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47235 done; \
47236 (cd $(TARGET_SUBDIR)/libada && \
47237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47239 "RANLIB=$${RANLIB}" \
0c24b341 47240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47241 installcheck) \
4fa63067
NN
47242 || exit 1
47243
6bd3dfaa 47244@endif target-libada
4fa63067
NN
47245
47246.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
47247maybe-mostlyclean-target-libada:
6bd3dfaa
PB
47248@if target-libada
47249maybe-mostlyclean-target-libada: mostlyclean-target-libada
4fa63067
NN
47250
47251mostlyclean-target-libada:
0aed8855 47252 @: $(MAKE); $(unstage)
22121df0 47253 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47254 r=`${PWD_COMMAND}`; export r; \
47255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47256 $(NORMAL_TARGET_EXPORTS) \
22121df0 47257 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47258 for flag in $(EXTRA_TARGET_FLAGS); do \
47259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47260 done; \
47261 (cd $(TARGET_SUBDIR)/libada && \
47262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47264 "RANLIB=$${RANLIB}" \
0c24b341 47265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47266 mostlyclean) \
4fa63067
NN
47267 || exit 1
47268
6bd3dfaa 47269@endif target-libada
4fa63067
NN
47270
47271.PHONY: maybe-clean-target-libada clean-target-libada
47272maybe-clean-target-libada:
6bd3dfaa
PB
47273@if target-libada
47274maybe-clean-target-libada: clean-target-libada
4fa63067
NN
47275
47276clean-target-libada:
0aed8855 47277 @: $(MAKE); $(unstage)
22121df0 47278 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067
NN
47279 r=`${PWD_COMMAND}`; export r; \
47280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47281 $(NORMAL_TARGET_EXPORTS) \
22121df0 47282 echo "Doing clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47283 for flag in $(EXTRA_TARGET_FLAGS); do \
47284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47285 done; \
47286 (cd $(TARGET_SUBDIR)/libada && \
47287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47289 "RANLIB=$${RANLIB}" \
0c24b341 47290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47291 clean) \
4fa63067
NN
47292 || exit 1
47293
6bd3dfaa 47294@endif target-libada
a2592b1b 47295
4fa63067
NN
47296.PHONY: maybe-distclean-target-libada distclean-target-libada
47297maybe-distclean-target-libada:
6bd3dfaa
PB
47298@if target-libada
47299maybe-distclean-target-libada: distclean-target-libada
a2592b1b 47300
4fa63067 47301distclean-target-libada:
0aed8855 47302 @: $(MAKE); $(unstage)
22121df0 47303 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 47304 r=`${PWD_COMMAND}`; export r; \
a2592b1b 47305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47306 $(NORMAL_TARGET_EXPORTS) \
22121df0 47307 echo "Doing distclean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47308 for flag in $(EXTRA_TARGET_FLAGS); do \
47309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47310 done; \
a2592b1b 47311 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
47312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47314 "RANLIB=$${RANLIB}" \
0c24b341 47315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47316 distclean) \
4fa63067 47317 || exit 1
a2592b1b 47318
6bd3dfaa 47319@endif target-libada
a2592b1b 47320
4fa63067
NN
47321.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
47322maybe-maintainer-clean-target-libada:
6bd3dfaa
PB
47323@if target-libada
47324maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
a2592b1b 47325
4fa63067 47326maintainer-clean-target-libada:
0aed8855 47327 @: $(MAKE); $(unstage)
22121df0 47328 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0; \
4fa63067 47329 r=`${PWD_COMMAND}`; export r; \
a2592b1b 47330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
378fce5b 47331 $(NORMAL_TARGET_EXPORTS) \
22121df0 47332 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada"; \
4fa63067
NN
47333 for flag in $(EXTRA_TARGET_FLAGS); do \
47334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
47335 done; \
a2592b1b 47336 (cd $(TARGET_SUBDIR)/libada && \
4fa63067
NN
47337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
47338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
47339 "RANLIB=$${RANLIB}" \
0c24b341 47340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
7ffa0b57 47341 maintainer-clean) \
4fa63067
NN
47342 || exit 1
47343
6bd3dfaa 47344@endif target-libada
a2592b1b
DD
47345
47346
e393202e 47347
b3ded179
PB
47348
47349
47350.PHONY: configure-target-libgomp maybe-configure-target-libgomp
47351maybe-configure-target-libgomp:
4f0ef2d8
CD
47352@if gcc-bootstrap
47353configure-target-libgomp: stage_current
47354@endif gcc-bootstrap
b3ded179
PB
47355@if target-libgomp
47356maybe-configure-target-libgomp: configure-target-libgomp
c52c6897 47357configure-target-libgomp:
b3ded179
PB
47358 @r=`${PWD_COMMAND}`; export r; \
47359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47360 echo "Checking multilib configuration for libgomp..."; \
22121df0
L
47361 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
47362 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
b3ded179
PB
47363 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47364 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47365 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47366 else \
47367 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47368 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47369 fi; \
47370 else \
47371 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
c52c6897
PB
47372 fi; \
47373 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
22121df0 47374 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
1f53ca9a 47375 $(NORMAL_TARGET_EXPORTS) \
b3ded179
PB
47376 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
47377 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
47378 case $(srcdir) in \
47379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47380 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47382 esac; \
1b6c0831 47383 module_srcdir=libgomp; \
b3ded179 47384 rm -f no-such-file || : ; \
1b6c0831
L
47385 CONFIG_SITE=no-such-file $(SHELL) \
47386 $$s/$$module_srcdir/configure \
47387 --srcdir=$${topdir}/$$module_srcdir \
4b900473 47388 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47389 --target=${target_alias} \
b3ded179
PB
47390 || exit 1
47391@endif target-libgomp
47392
47393
47394
911e63d0
JR
47395.PHONY: configure-stage1-target-libgomp maybe-configure-stage1-target-libgomp
47396maybe-configure-stage1-target-libgomp:
47397@if target-libgomp-bootstrap
47398maybe-configure-stage1-target-libgomp: configure-stage1-target-libgomp
47399configure-stage1-target-libgomp:
47400 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
47401 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47402 @r=`${PWD_COMMAND}`; export r; \
47403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47404 TFLAGS="$(STAGE1_TFLAGS)"; \
47405 echo "Checking multilib configuration for libgomp..."; \
22121df0 47406 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47407 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47408 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47409 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47410 else \
47411 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47412 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47413 fi; \
47414 else \
47415 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47416 fi; \
47417 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47418 $(NORMAL_TARGET_EXPORTS) \
47419 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47420 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47421 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47422 echo Configuring stage 1 in $(TARGET_SUBDIR)/libgomp; \
47423 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47424 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47425 case $(srcdir) in \
47426 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47427 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47428 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47429 esac; \
1b6c0831
L
47430 module_srcdir=libgomp; \
47431 $(SHELL) $$s/$$module_srcdir/configure \
47432 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47433 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831
L
47434 --target=${target_alias} \
47435 \
911e63d0
JR
47436 $(STAGE1_CONFIGURE_FLAGS)
47437@endif target-libgomp-bootstrap
47438
47439.PHONY: configure-stage2-target-libgomp maybe-configure-stage2-target-libgomp
47440maybe-configure-stage2-target-libgomp:
47441@if target-libgomp-bootstrap
47442maybe-configure-stage2-target-libgomp: configure-stage2-target-libgomp
47443configure-stage2-target-libgomp:
47444 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
47445 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47446 @r=`${PWD_COMMAND}`; export r; \
47447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47448 TFLAGS="$(STAGE2_TFLAGS)"; \
47449 echo "Checking multilib configuration for libgomp..."; \
22121df0 47450 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47451 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47452 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47453 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47454 else \
47455 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47456 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47457 fi; \
47458 else \
47459 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47460 fi; \
47461 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47462 $(NORMAL_TARGET_EXPORTS) \
47463 \
47464 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47465 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47466 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47467 echo Configuring stage 2 in $(TARGET_SUBDIR)/libgomp; \
47468 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47469 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47470 case $(srcdir) in \
47471 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47472 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47473 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47474 esac; \
1b6c0831
L
47475 module_srcdir=libgomp; \
47476 $(SHELL) $$s/$$module_srcdir/configure \
47477 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47478 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47479 --target=${target_alias} \
22121df0 47480 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47481 $(STAGE2_CONFIGURE_FLAGS)
47482@endif target-libgomp-bootstrap
47483
47484.PHONY: configure-stage3-target-libgomp maybe-configure-stage3-target-libgomp
47485maybe-configure-stage3-target-libgomp:
47486@if target-libgomp-bootstrap
47487maybe-configure-stage3-target-libgomp: configure-stage3-target-libgomp
47488configure-stage3-target-libgomp:
47489 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
47490 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47491 @r=`${PWD_COMMAND}`; export r; \
47492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47493 TFLAGS="$(STAGE3_TFLAGS)"; \
47494 echo "Checking multilib configuration for libgomp..."; \
22121df0 47495 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47496 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47497 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47498 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47499 else \
47500 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47501 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47502 fi; \
47503 else \
47504 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47505 fi; \
47506 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47507 $(NORMAL_TARGET_EXPORTS) \
47508 \
47509 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47510 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47511 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47512 echo Configuring stage 3 in $(TARGET_SUBDIR)/libgomp; \
47513 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47514 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47515 case $(srcdir) in \
47516 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47517 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47518 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47519 esac; \
1b6c0831
L
47520 module_srcdir=libgomp; \
47521 $(SHELL) $$s/$$module_srcdir/configure \
47522 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47523 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47524 --target=${target_alias} \
22121df0 47525 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47526 $(STAGE3_CONFIGURE_FLAGS)
47527@endif target-libgomp-bootstrap
47528
47529.PHONY: configure-stage4-target-libgomp maybe-configure-stage4-target-libgomp
47530maybe-configure-stage4-target-libgomp:
47531@if target-libgomp-bootstrap
47532maybe-configure-stage4-target-libgomp: configure-stage4-target-libgomp
47533configure-stage4-target-libgomp:
47534 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47535 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47536 @r=`${PWD_COMMAND}`; export r; \
47537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47538 TFLAGS="$(STAGE4_TFLAGS)"; \
47539 echo "Checking multilib configuration for libgomp..."; \
22121df0 47540 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47541 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47542 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47543 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47544 else \
47545 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47546 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47547 fi; \
47548 else \
47549 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47550 fi; \
47551 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47552 $(NORMAL_TARGET_EXPORTS) \
47553 \
47554 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47555 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47556 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47557 echo Configuring stage 4 in $(TARGET_SUBDIR)/libgomp; \
47558 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47559 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47560 case $(srcdir) in \
47561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47562 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47564 esac; \
1b6c0831
L
47565 module_srcdir=libgomp; \
47566 $(SHELL) $$s/$$module_srcdir/configure \
47567 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47568 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47569 --target=${target_alias} \
22121df0 47570 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47571 $(STAGE4_CONFIGURE_FLAGS)
47572@endif target-libgomp-bootstrap
47573
47574.PHONY: configure-stageprofile-target-libgomp maybe-configure-stageprofile-target-libgomp
47575maybe-configure-stageprofile-target-libgomp:
47576@if target-libgomp-bootstrap
47577maybe-configure-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
47578configure-stageprofile-target-libgomp:
47579 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47580 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47581 @r=`${PWD_COMMAND}`; export r; \
47582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47583 TFLAGS="$(STAGEprofile_TFLAGS)"; \
47584 echo "Checking multilib configuration for libgomp..."; \
22121df0 47585 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47586 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47587 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47588 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47589 else \
47590 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47591 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47592 fi; \
47593 else \
47594 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47595 fi; \
47596 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47597 $(NORMAL_TARGET_EXPORTS) \
47598 \
47599 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47600 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47601 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47602 echo Configuring stage profile in $(TARGET_SUBDIR)/libgomp; \
47603 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47604 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47605 case $(srcdir) in \
47606 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47607 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47608 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47609 esac; \
1b6c0831
L
47610 module_srcdir=libgomp; \
47611 $(SHELL) $$s/$$module_srcdir/configure \
47612 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47613 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47614 --target=${target_alias} \
22121df0 47615 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47616 $(STAGEprofile_CONFIGURE_FLAGS)
47617@endif target-libgomp-bootstrap
47618
47619.PHONY: configure-stagefeedback-target-libgomp maybe-configure-stagefeedback-target-libgomp
47620maybe-configure-stagefeedback-target-libgomp:
47621@if target-libgomp-bootstrap
47622maybe-configure-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
47623configure-stagefeedback-target-libgomp:
47624 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47625 @$(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp
47626 @r=`${PWD_COMMAND}`; export r; \
47627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47628 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
47629 echo "Checking multilib configuration for libgomp..."; \
22121df0 47630 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null; \
911e63d0
JR
47631 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47632 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
47633 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
47634 else \
47635 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
47636 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47637 fi; \
47638 else \
47639 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
47640 fi; \
47641 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
47642 $(NORMAL_TARGET_EXPORTS) \
47643 \
47644 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
47645 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
47646 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)"; export LIBCFLAGS; \
22121df0
L
47647 echo Configuring stage feedback in $(TARGET_SUBDIR)/libgomp; \
47648 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp; \
911e63d0
JR
47649 cd $(TARGET_SUBDIR)/libgomp || exit 1; \
47650 case $(srcdir) in \
47651 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
47652 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
47653 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
47654 esac; \
1b6c0831
L
47655 module_srcdir=libgomp; \
47656 $(SHELL) $$s/$$module_srcdir/configure \
47657 --srcdir=$${topdir}/$$module_srcdir \
911e63d0 47658 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 47659 --target=${target_alias} \
22121df0 47660 --with-build-libsubdir=$(HOST_SUBDIR) \
911e63d0
JR
47661 $(STAGEfeedback_CONFIGURE_FLAGS)
47662@endif target-libgomp-bootstrap
47663
47664
47665
b3ded179
PB
47666
47667
47668.PHONY: all-target-libgomp maybe-all-target-libgomp
47669maybe-all-target-libgomp:
4f0ef2d8
CD
47670@if gcc-bootstrap
47671all-target-libgomp: stage_current
47672@endif gcc-bootstrap
b3ded179
PB
47673@if target-libgomp
47674TARGET-target-libgomp=all
47675maybe-all-target-libgomp: all-target-libgomp
47676all-target-libgomp: configure-target-libgomp
b3ded179
PB
47677 @r=`${PWD_COMMAND}`; export r; \
47678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1f53ca9a 47679 $(NORMAL_TARGET_EXPORTS) \
b3ded179 47680 (cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47681 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7f6ef0c0 47682 $(TARGET-target-libgomp))
b3ded179
PB
47683@endif target-libgomp
47684
47685
47686
911e63d0
JR
47687.PHONY: all-stage1-target-libgomp maybe-all-stage1-target-libgomp
47688.PHONY: clean-stage1-target-libgomp maybe-clean-stage1-target-libgomp
47689maybe-all-stage1-target-libgomp:
47690maybe-clean-stage1-target-libgomp:
47691@if target-libgomp-bootstrap
47692maybe-all-stage1-target-libgomp: all-stage1-target-libgomp
47693all-stage1: all-stage1-target-libgomp
47694TARGET-stage1-target-libgomp = $(TARGET-target-libgomp)
47695all-stage1-target-libgomp: configure-stage1-target-libgomp
47696 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
47697 @r=`${PWD_COMMAND}`; export r; \
47698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47699 TFLAGS="$(STAGE1_TFLAGS)"; \
47700 $(NORMAL_TARGET_EXPORTS) \
47701 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47702 \
911e63d0
JR
47703 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47704 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47705 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47706 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47707 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47708 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47709 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
b3676d82
EB
47710 $(EXTRA_TARGET_FLAGS) \
47711 \
05a13254 47712 TFLAGS="$(STAGE1_TFLAGS)" \
911e63d0
JR
47713 $(TARGET-stage1-target-libgomp)
47714
47715maybe-clean-stage1-target-libgomp: clean-stage1-target-libgomp
47716clean-stage1: clean-stage1-target-libgomp
47717clean-stage1-target-libgomp:
47718 @if [ $(current_stage) = stage1 ]; then \
47719 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47720 else \
47721 [ -f $(TARGET_SUBDIR)/stage1-libgomp/Makefile ] || exit 0; \
47722 $(MAKE) stage1-start; \
47723 fi; \
47724 cd $(TARGET_SUBDIR)/libgomp && \
47725 $(MAKE) $(EXTRA_TARGET_FLAGS) \
b3676d82 47726 clean
911e63d0
JR
47727@endif target-libgomp-bootstrap
47728
47729
47730.PHONY: all-stage2-target-libgomp maybe-all-stage2-target-libgomp
47731.PHONY: clean-stage2-target-libgomp maybe-clean-stage2-target-libgomp
47732maybe-all-stage2-target-libgomp:
47733maybe-clean-stage2-target-libgomp:
47734@if target-libgomp-bootstrap
47735maybe-all-stage2-target-libgomp: all-stage2-target-libgomp
47736all-stage2: all-stage2-target-libgomp
47737TARGET-stage2-target-libgomp = $(TARGET-target-libgomp)
47738all-stage2-target-libgomp: configure-stage2-target-libgomp
47739 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
47740 @r=`${PWD_COMMAND}`; export r; \
47741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47742 TFLAGS="$(STAGE2_TFLAGS)"; \
47743 $(NORMAL_TARGET_EXPORTS) \
47744 \
47745 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47746 \
911e63d0
JR
47747 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47748 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47749 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47750 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47751 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47752 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47753 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47754 $(EXTRA_TARGET_FLAGS) \
05a13254 47755 TFLAGS="$(STAGE2_TFLAGS)" \
911e63d0
JR
47756 $(TARGET-stage2-target-libgomp)
47757
47758maybe-clean-stage2-target-libgomp: clean-stage2-target-libgomp
47759clean-stage2: clean-stage2-target-libgomp
47760clean-stage2-target-libgomp:
47761 @if [ $(current_stage) = stage2 ]; then \
47762 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47763 else \
47764 [ -f $(TARGET_SUBDIR)/stage2-libgomp/Makefile ] || exit 0; \
47765 $(MAKE) stage2-start; \
47766 fi; \
47767 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47768 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47769@endif target-libgomp-bootstrap
47770
47771
47772.PHONY: all-stage3-target-libgomp maybe-all-stage3-target-libgomp
47773.PHONY: clean-stage3-target-libgomp maybe-clean-stage3-target-libgomp
47774maybe-all-stage3-target-libgomp:
47775maybe-clean-stage3-target-libgomp:
47776@if target-libgomp-bootstrap
47777maybe-all-stage3-target-libgomp: all-stage3-target-libgomp
47778all-stage3: all-stage3-target-libgomp
47779TARGET-stage3-target-libgomp = $(TARGET-target-libgomp)
47780all-stage3-target-libgomp: configure-stage3-target-libgomp
47781 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
47782 @r=`${PWD_COMMAND}`; export r; \
47783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47784 TFLAGS="$(STAGE3_TFLAGS)"; \
47785 $(NORMAL_TARGET_EXPORTS) \
47786 \
47787 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47788 \
911e63d0
JR
47789 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47790 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47791 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47792 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47793 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47794 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47795 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47796 $(EXTRA_TARGET_FLAGS) \
05a13254 47797 TFLAGS="$(STAGE3_TFLAGS)" \
911e63d0
JR
47798 $(TARGET-stage3-target-libgomp)
47799
47800maybe-clean-stage3-target-libgomp: clean-stage3-target-libgomp
47801clean-stage3: clean-stage3-target-libgomp
47802clean-stage3-target-libgomp:
47803 @if [ $(current_stage) = stage3 ]; then \
47804 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47805 else \
47806 [ -f $(TARGET_SUBDIR)/stage3-libgomp/Makefile ] || exit 0; \
47807 $(MAKE) stage3-start; \
47808 fi; \
47809 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47810 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47811@endif target-libgomp-bootstrap
47812
47813
47814.PHONY: all-stage4-target-libgomp maybe-all-stage4-target-libgomp
47815.PHONY: clean-stage4-target-libgomp maybe-clean-stage4-target-libgomp
47816maybe-all-stage4-target-libgomp:
47817maybe-clean-stage4-target-libgomp:
47818@if target-libgomp-bootstrap
47819maybe-all-stage4-target-libgomp: all-stage4-target-libgomp
47820all-stage4: all-stage4-target-libgomp
47821TARGET-stage4-target-libgomp = $(TARGET-target-libgomp)
47822all-stage4-target-libgomp: configure-stage4-target-libgomp
47823 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
47824 @r=`${PWD_COMMAND}`; export r; \
47825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47826 TFLAGS="$(STAGE4_TFLAGS)"; \
47827 $(NORMAL_TARGET_EXPORTS) \
47828 \
47829 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47830 \
911e63d0
JR
47831 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47832 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47833 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47834 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47835 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47836 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47837 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47838 $(EXTRA_TARGET_FLAGS) \
05a13254 47839 TFLAGS="$(STAGE4_TFLAGS)" \
911e63d0
JR
47840 $(TARGET-stage4-target-libgomp)
47841
47842maybe-clean-stage4-target-libgomp: clean-stage4-target-libgomp
47843clean-stage4: clean-stage4-target-libgomp
47844clean-stage4-target-libgomp:
47845 @if [ $(current_stage) = stage4 ]; then \
47846 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47847 else \
47848 [ -f $(TARGET_SUBDIR)/stage4-libgomp/Makefile ] || exit 0; \
47849 $(MAKE) stage4-start; \
47850 fi; \
47851 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47852 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47853@endif target-libgomp-bootstrap
47854
47855
47856.PHONY: all-stageprofile-target-libgomp maybe-all-stageprofile-target-libgomp
47857.PHONY: clean-stageprofile-target-libgomp maybe-clean-stageprofile-target-libgomp
47858maybe-all-stageprofile-target-libgomp:
47859maybe-clean-stageprofile-target-libgomp:
47860@if target-libgomp-bootstrap
47861maybe-all-stageprofile-target-libgomp: all-stageprofile-target-libgomp
47862all-stageprofile: all-stageprofile-target-libgomp
47863TARGET-stageprofile-target-libgomp = $(TARGET-target-libgomp)
47864all-stageprofile-target-libgomp: configure-stageprofile-target-libgomp
47865 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
47866 @r=`${PWD_COMMAND}`; export r; \
47867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47868 TFLAGS="$(STAGEprofile_TFLAGS)"; \
47869 $(NORMAL_TARGET_EXPORTS) \
47870 \
47871 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47872 \
911e63d0
JR
47873 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47874 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47875 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47876 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47877 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47878 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47879 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47880 $(EXTRA_TARGET_FLAGS) \
05a13254 47881 TFLAGS="$(STAGEprofile_TFLAGS)" \
911e63d0
JR
47882 $(TARGET-stageprofile-target-libgomp)
47883
47884maybe-clean-stageprofile-target-libgomp: clean-stageprofile-target-libgomp
47885clean-stageprofile: clean-stageprofile-target-libgomp
47886clean-stageprofile-target-libgomp:
47887 @if [ $(current_stage) = stageprofile ]; then \
47888 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47889 else \
47890 [ -f $(TARGET_SUBDIR)/stageprofile-libgomp/Makefile ] || exit 0; \
47891 $(MAKE) stageprofile-start; \
47892 fi; \
47893 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47894 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47895@endif target-libgomp-bootstrap
47896
47897
47898.PHONY: all-stagefeedback-target-libgomp maybe-all-stagefeedback-target-libgomp
47899.PHONY: clean-stagefeedback-target-libgomp maybe-clean-stagefeedback-target-libgomp
47900maybe-all-stagefeedback-target-libgomp:
47901maybe-clean-stagefeedback-target-libgomp:
47902@if target-libgomp-bootstrap
47903maybe-all-stagefeedback-target-libgomp: all-stagefeedback-target-libgomp
47904all-stagefeedback: all-stagefeedback-target-libgomp
47905TARGET-stagefeedback-target-libgomp = $(TARGET-target-libgomp)
47906all-stagefeedback-target-libgomp: configure-stagefeedback-target-libgomp
47907 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
47908 @r=`${PWD_COMMAND}`; export r; \
47909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47910 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
47911 $(NORMAL_TARGET_EXPORTS) \
47912 \
47913 cd $(TARGET_SUBDIR)/libgomp && \
05a13254 47914 \
911e63d0
JR
47915 $(MAKE) $(BASE_FLAGS_TO_PASS) \
47916 CFLAGS="$(CFLAGS_FOR_TARGET)" \
47917 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
47918 LIBCFLAGS="$(LIBCFLAGS_FOR_TARGET)" \
47919 CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" \
47920 CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" \
47921 LIBCFLAGS_FOR_TARGET="$(LIBCFLAGS_FOR_TARGET)" \
47922 $(EXTRA_TARGET_FLAGS) \
05a13254 47923 TFLAGS="$(STAGEfeedback_TFLAGS)" \
911e63d0
JR
47924 $(TARGET-stagefeedback-target-libgomp)
47925
47926maybe-clean-stagefeedback-target-libgomp: clean-stagefeedback-target-libgomp
47927clean-stagefeedback: clean-stagefeedback-target-libgomp
47928clean-stagefeedback-target-libgomp:
47929 @if [ $(current_stage) = stagefeedback ]; then \
47930 [ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
47931 else \
47932 [ -f $(TARGET_SUBDIR)/stagefeedback-libgomp/Makefile ] || exit 0; \
47933 $(MAKE) stagefeedback-start; \
47934 fi; \
47935 cd $(TARGET_SUBDIR)/libgomp && \
b3676d82 47936 $(MAKE) $(EXTRA_TARGET_FLAGS) clean
911e63d0
JR
47937@endif target-libgomp-bootstrap
47938
47939
47940
47941
b3ded179
PB
47942
47943
47944.PHONY: check-target-libgomp maybe-check-target-libgomp
47945maybe-check-target-libgomp:
47946@if target-libgomp
47947maybe-check-target-libgomp: check-target-libgomp
47948
47949check-target-libgomp:
47950 @: $(MAKE); $(unstage)
47951 @r=`${PWD_COMMAND}`; export r; \
47952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47953 $(NORMAL_TARGET_EXPORTS) \
47954 (cd $(TARGET_SUBDIR)/libgomp && \
47955 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
47956
47957@endif target-libgomp
47958
47959.PHONY: install-target-libgomp maybe-install-target-libgomp
47960maybe-install-target-libgomp:
47961@if target-libgomp
47962maybe-install-target-libgomp: install-target-libgomp
47963
47964install-target-libgomp: installdirs
47965 @: $(MAKE); $(unstage)
47966 @r=`${PWD_COMMAND}`; export r; \
47967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47968 $(NORMAL_TARGET_EXPORTS) \
47969 (cd $(TARGET_SUBDIR)/libgomp && \
47970 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
47971
47972@endif target-libgomp
47973
9b980aa1
RW
47974.PHONY: install-strip-target-libgomp maybe-install-strip-target-libgomp
47975maybe-install-strip-target-libgomp:
47976@if target-libgomp
47977maybe-install-strip-target-libgomp: install-strip-target-libgomp
47978
47979install-strip-target-libgomp: installdirs
47980 @: $(MAKE); $(unstage)
47981 @r=`${PWD_COMMAND}`; export r; \
47982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
47983 $(NORMAL_TARGET_EXPORTS) \
47984 (cd $(TARGET_SUBDIR)/libgomp && \
47985 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
47986
47987@endif target-libgomp
47988
56a8fe78 47989# Other targets (info, dvi, pdf, etc.)
b3ded179
PB
47990
47991.PHONY: maybe-info-target-libgomp info-target-libgomp
47992maybe-info-target-libgomp:
47993@if target-libgomp
47994maybe-info-target-libgomp: info-target-libgomp
47995
47996info-target-libgomp: \
47997 configure-target-libgomp
47998 @: $(MAKE); $(unstage)
22121df0 47999 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48000 r=`${PWD_COMMAND}`; export r; \
48001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48002 $(NORMAL_TARGET_EXPORTS) \
22121df0 48003 echo "Doing info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48004 for flag in $(EXTRA_TARGET_FLAGS); do \
48005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48006 done; \
48007 (cd $(TARGET_SUBDIR)/libgomp && \
48008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48010 "RANLIB=$${RANLIB}" \
0c24b341 48011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48012 info) \
48013 || exit 1
48014
48015@endif target-libgomp
48016
48017.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
48018maybe-dvi-target-libgomp:
48019@if target-libgomp
48020maybe-dvi-target-libgomp: dvi-target-libgomp
48021
48022dvi-target-libgomp: \
48023 configure-target-libgomp
48024 @: $(MAKE); $(unstage)
22121df0 48025 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48026 r=`${PWD_COMMAND}`; export r; \
48027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48028 $(NORMAL_TARGET_EXPORTS) \
22121df0 48029 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48030 for flag in $(EXTRA_TARGET_FLAGS); do \
48031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48032 done; \
48033 (cd $(TARGET_SUBDIR)/libgomp && \
48034 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48035 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48036 "RANLIB=$${RANLIB}" \
0c24b341 48037 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48038 dvi) \
48039 || exit 1
48040
48041@endif target-libgomp
48042
56a8fe78
DD
48043.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
48044maybe-pdf-target-libgomp:
48045@if target-libgomp
48046maybe-pdf-target-libgomp: pdf-target-libgomp
48047
48048pdf-target-libgomp: \
48049 configure-target-libgomp
48050 @: $(MAKE); $(unstage)
22121df0 48051 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
56a8fe78
DD
48052 r=`${PWD_COMMAND}`; export r; \
48053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48054 $(NORMAL_TARGET_EXPORTS) \
22121df0 48055 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp"; \
56a8fe78
DD
48056 for flag in $(EXTRA_TARGET_FLAGS); do \
48057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48058 done; \
48059 (cd $(TARGET_SUBDIR)/libgomp && \
48060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48062 "RANLIB=$${RANLIB}" \
0c24b341 48063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
56a8fe78
DD
48064 pdf) \
48065 || exit 1
48066
48067@endif target-libgomp
48068
b3ded179
PB
48069.PHONY: maybe-html-target-libgomp html-target-libgomp
48070maybe-html-target-libgomp:
48071@if target-libgomp
48072maybe-html-target-libgomp: html-target-libgomp
48073
48074html-target-libgomp: \
48075 configure-target-libgomp
48076 @: $(MAKE); $(unstage)
22121df0 48077 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48078 r=`${PWD_COMMAND}`; export r; \
48079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48080 $(NORMAL_TARGET_EXPORTS) \
22121df0 48081 echo "Doing html in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48082 for flag in $(EXTRA_TARGET_FLAGS); do \
48083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48084 done; \
48085 (cd $(TARGET_SUBDIR)/libgomp && \
48086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48088 "RANLIB=$${RANLIB}" \
0c24b341 48089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48090 html) \
48091 || exit 1
48092
48093@endif target-libgomp
48094
48095.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
48096maybe-TAGS-target-libgomp:
48097@if target-libgomp
48098maybe-TAGS-target-libgomp: TAGS-target-libgomp
48099
48100TAGS-target-libgomp: \
48101 configure-target-libgomp
48102 @: $(MAKE); $(unstage)
22121df0 48103 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48104 r=`${PWD_COMMAND}`; export r; \
48105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48106 $(NORMAL_TARGET_EXPORTS) \
22121df0 48107 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
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)/libgomp && \
48112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48114 "RANLIB=$${RANLIB}" \
0c24b341 48115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48116 TAGS) \
48117 || exit 1
48118
48119@endif target-libgomp
48120
48121.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
48122maybe-install-info-target-libgomp:
48123@if target-libgomp
48124maybe-install-info-target-libgomp: install-info-target-libgomp
48125
48126install-info-target-libgomp: \
48127 configure-target-libgomp \
48128 info-target-libgomp
48129 @: $(MAKE); $(unstage)
22121df0 48130 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48131 r=`${PWD_COMMAND}`; export r; \
48132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48133 $(NORMAL_TARGET_EXPORTS) \
22121df0 48134 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48135 for flag in $(EXTRA_TARGET_FLAGS); do \
48136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48137 done; \
48138 (cd $(TARGET_SUBDIR)/libgomp && \
48139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48141 "RANLIB=$${RANLIB}" \
0c24b341 48142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48143 install-info) \
48144 || exit 1
48145
48146@endif target-libgomp
48147
a3ca38d2
DD
48148.PHONY: maybe-install-pdf-target-libgomp install-pdf-target-libgomp
48149maybe-install-pdf-target-libgomp:
48150@if target-libgomp
48151maybe-install-pdf-target-libgomp: install-pdf-target-libgomp
48152
48153install-pdf-target-libgomp: \
48154 configure-target-libgomp \
48155 pdf-target-libgomp
48156 @: $(MAKE); $(unstage)
22121df0 48157 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
a3ca38d2
DD
48158 r=`${PWD_COMMAND}`; export r; \
48159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48160 $(NORMAL_TARGET_EXPORTS) \
22121df0 48161 echo "Doing install-pdf in $(TARGET_SUBDIR)/libgomp"; \
a3ca38d2
DD
48162 for flag in $(EXTRA_TARGET_FLAGS); do \
48163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48164 done; \
48165 (cd $(TARGET_SUBDIR)/libgomp && \
48166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48168 "RANLIB=$${RANLIB}" \
0c24b341 48169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
a3ca38d2
DD
48170 install-pdf) \
48171 || exit 1
48172
48173@endif target-libgomp
48174
108a6f8e
CD
48175.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
48176maybe-install-html-target-libgomp:
48177@if target-libgomp
48178maybe-install-html-target-libgomp: install-html-target-libgomp
48179
48180install-html-target-libgomp: \
48181 configure-target-libgomp \
48182 html-target-libgomp
48183 @: $(MAKE); $(unstage)
22121df0 48184 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
108a6f8e
CD
48185 r=`${PWD_COMMAND}`; export r; \
48186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48187 $(NORMAL_TARGET_EXPORTS) \
22121df0 48188 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp"; \
108a6f8e
CD
48189 for flag in $(EXTRA_TARGET_FLAGS); do \
48190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48191 done; \
48192 (cd $(TARGET_SUBDIR)/libgomp && \
48193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48195 "RANLIB=$${RANLIB}" \
0c24b341 48196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
108a6f8e
CD
48197 install-html) \
48198 || exit 1
48199
48200@endif target-libgomp
48201
b3ded179
PB
48202.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
48203maybe-installcheck-target-libgomp:
48204@if target-libgomp
48205maybe-installcheck-target-libgomp: installcheck-target-libgomp
48206
48207installcheck-target-libgomp: \
48208 configure-target-libgomp
48209 @: $(MAKE); $(unstage)
22121df0 48210 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48211 r=`${PWD_COMMAND}`; export r; \
48212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48213 $(NORMAL_TARGET_EXPORTS) \
22121df0 48214 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48215 for flag in $(EXTRA_TARGET_FLAGS); do \
48216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48217 done; \
48218 (cd $(TARGET_SUBDIR)/libgomp && \
48219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48221 "RANLIB=$${RANLIB}" \
0c24b341 48222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48223 installcheck) \
48224 || exit 1
48225
48226@endif target-libgomp
48227
48228.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
48229maybe-mostlyclean-target-libgomp:
48230@if target-libgomp
48231maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
48232
48233mostlyclean-target-libgomp:
48234 @: $(MAKE); $(unstage)
22121df0 48235 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48236 r=`${PWD_COMMAND}`; export r; \
48237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48238 $(NORMAL_TARGET_EXPORTS) \
22121df0 48239 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48240 for flag in $(EXTRA_TARGET_FLAGS); do \
48241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48242 done; \
48243 (cd $(TARGET_SUBDIR)/libgomp && \
48244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48246 "RANLIB=$${RANLIB}" \
0c24b341 48247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48248 mostlyclean) \
48249 || exit 1
48250
48251@endif target-libgomp
48252
48253.PHONY: maybe-clean-target-libgomp clean-target-libgomp
48254maybe-clean-target-libgomp:
48255@if target-libgomp
48256maybe-clean-target-libgomp: clean-target-libgomp
48257
48258clean-target-libgomp:
48259 @: $(MAKE); $(unstage)
22121df0 48260 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48261 r=`${PWD_COMMAND}`; export r; \
48262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48263 $(NORMAL_TARGET_EXPORTS) \
22121df0 48264 echo "Doing clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48265 for flag in $(EXTRA_TARGET_FLAGS); do \
48266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48267 done; \
48268 (cd $(TARGET_SUBDIR)/libgomp && \
48269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48271 "RANLIB=$${RANLIB}" \
0c24b341 48272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48273 clean) \
48274 || exit 1
48275
48276@endif target-libgomp
48277
48278.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
48279maybe-distclean-target-libgomp:
48280@if target-libgomp
48281maybe-distclean-target-libgomp: distclean-target-libgomp
48282
48283distclean-target-libgomp:
48284 @: $(MAKE); $(unstage)
22121df0 48285 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48286 r=`${PWD_COMMAND}`; export r; \
48287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48288 $(NORMAL_TARGET_EXPORTS) \
22121df0 48289 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48290 for flag in $(EXTRA_TARGET_FLAGS); do \
48291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48292 done; \
48293 (cd $(TARGET_SUBDIR)/libgomp && \
48294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48296 "RANLIB=$${RANLIB}" \
0c24b341 48297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48298 distclean) \
48299 || exit 1
48300
48301@endif target-libgomp
48302
48303.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
48304maybe-maintainer-clean-target-libgomp:
48305@if target-libgomp
48306maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
48307
48308maintainer-clean-target-libgomp:
48309 @: $(MAKE); $(unstage)
22121df0 48310 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0; \
b3ded179
PB
48311 r=`${PWD_COMMAND}`; export r; \
48312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48313 $(NORMAL_TARGET_EXPORTS) \
22121df0 48314 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp"; \
b3ded179
PB
48315 for flag in $(EXTRA_TARGET_FLAGS); do \
48316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48317 done; \
48318 (cd $(TARGET_SUBDIR)/libgomp && \
48319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48321 "RANLIB=$${RANLIB}" \
0c24b341 48322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
b3ded179
PB
48323 maintainer-clean) \
48324 || exit 1
48325
48326@endif target-libgomp
48327
48328
48329
7ec59b9e
L
48330
48331
48332.PHONY: configure-target-libitm maybe-configure-target-libitm
48333maybe-configure-target-libitm:
48334@if gcc-bootstrap
48335configure-target-libitm: stage_current
48336@endif gcc-bootstrap
48337@if target-libitm
48338maybe-configure-target-libitm: configure-target-libitm
48339configure-target-libitm:
48340 @: $(MAKE); $(unstage)
48341 @r=`${PWD_COMMAND}`; export r; \
48342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48343 echo "Checking multilib configuration for libitm..."; \
22121df0
L
48344 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
48345 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libitm/multilib.tmp 2> /dev/null; \
7ec59b9e
L
48346 if test -r $(TARGET_SUBDIR)/libitm/multilib.out; then \
48347 if cmp -s $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; then \
48348 rm -f $(TARGET_SUBDIR)/libitm/multilib.tmp; \
48349 else \
48350 rm -f $(TARGET_SUBDIR)/libitm/Makefile; \
48351 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
48352 fi; \
48353 else \
48354 mv $(TARGET_SUBDIR)/libitm/multilib.tmp $(TARGET_SUBDIR)/libitm/multilib.out; \
48355 fi; \
48356 test ! -f $(TARGET_SUBDIR)/libitm/Makefile || exit 0; \
22121df0 48357 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libitm; \
7ec59b9e
L
48358 $(NORMAL_TARGET_EXPORTS) \
48359 echo Configuring in $(TARGET_SUBDIR)/libitm; \
48360 cd "$(TARGET_SUBDIR)/libitm" || exit 1; \
48361 case $(srcdir) in \
48362 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48363 *) topdir=`echo $(TARGET_SUBDIR)/libitm/ | \
48364 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
48365 esac; \
1b6c0831 48366 module_srcdir=libitm; \
7ec59b9e 48367 rm -f no-such-file || : ; \
1b6c0831
L
48368 CONFIG_SITE=no-such-file $(SHELL) \
48369 $$s/$$module_srcdir/configure \
48370 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 48371 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 48372 --target=${target_alias} \
7ec59b9e
L
48373 || exit 1
48374@endif target-libitm
48375
48376
48377
48378
48379
48380.PHONY: all-target-libitm maybe-all-target-libitm
48381maybe-all-target-libitm:
48382@if gcc-bootstrap
48383all-target-libitm: stage_current
48384@endif gcc-bootstrap
48385@if target-libitm
48386TARGET-target-libitm=all
48387maybe-all-target-libitm: all-target-libitm
48388all-target-libitm: configure-target-libitm
48389 @: $(MAKE); $(unstage)
48390 @r=`${PWD_COMMAND}`; export r; \
48391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48392 $(NORMAL_TARGET_EXPORTS) \
48393 (cd $(TARGET_SUBDIR)/libitm && \
b3676d82 48394 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
48395 $(TARGET-target-libitm))
48396@endif target-libitm
48397
48398
48399
48400
48401
48402.PHONY: check-target-libitm maybe-check-target-libitm
48403maybe-check-target-libitm:
48404@if target-libitm
48405maybe-check-target-libitm: check-target-libitm
48406
48407check-target-libitm:
48408 @: $(MAKE); $(unstage)
48409 @r=`${PWD_COMMAND}`; export r; \
48410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48411 $(NORMAL_TARGET_EXPORTS) \
48412 (cd $(TARGET_SUBDIR)/libitm && \
48413 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
48414
48415@endif target-libitm
48416
48417.PHONY: install-target-libitm maybe-install-target-libitm
48418maybe-install-target-libitm:
48419@if target-libitm
48420maybe-install-target-libitm: install-target-libitm
48421
48422install-target-libitm: installdirs
48423 @: $(MAKE); $(unstage)
48424 @r=`${PWD_COMMAND}`; export r; \
48425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48426 $(NORMAL_TARGET_EXPORTS) \
48427 (cd $(TARGET_SUBDIR)/libitm && \
48428 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
48429
48430@endif target-libitm
48431
48432.PHONY: install-strip-target-libitm maybe-install-strip-target-libitm
48433maybe-install-strip-target-libitm:
48434@if target-libitm
48435maybe-install-strip-target-libitm: install-strip-target-libitm
48436
48437install-strip-target-libitm: installdirs
48438 @: $(MAKE); $(unstage)
48439 @r=`${PWD_COMMAND}`; export r; \
48440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48441 $(NORMAL_TARGET_EXPORTS) \
48442 (cd $(TARGET_SUBDIR)/libitm && \
48443 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
48444
48445@endif target-libitm
48446
48447# Other targets (info, dvi, pdf, etc.)
48448
48449.PHONY: maybe-info-target-libitm info-target-libitm
48450maybe-info-target-libitm:
48451@if target-libitm
48452maybe-info-target-libitm: info-target-libitm
48453
48454info-target-libitm: \
48455 configure-target-libitm
48456 @: $(MAKE); $(unstage)
22121df0 48457 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48458 r=`${PWD_COMMAND}`; export r; \
48459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48460 $(NORMAL_TARGET_EXPORTS) \
22121df0 48461 echo "Doing info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48462 for flag in $(EXTRA_TARGET_FLAGS); do \
48463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48464 done; \
48465 (cd $(TARGET_SUBDIR)/libitm && \
48466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48468 "RANLIB=$${RANLIB}" \
48469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48470 info) \
48471 || exit 1
48472
48473@endif target-libitm
48474
48475.PHONY: maybe-dvi-target-libitm dvi-target-libitm
48476maybe-dvi-target-libitm:
48477@if target-libitm
48478maybe-dvi-target-libitm: dvi-target-libitm
48479
48480dvi-target-libitm: \
48481 configure-target-libitm
48482 @: $(MAKE); $(unstage)
22121df0 48483 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48484 r=`${PWD_COMMAND}`; export r; \
48485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48486 $(NORMAL_TARGET_EXPORTS) \
22121df0 48487 echo "Doing dvi in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48488 for flag in $(EXTRA_TARGET_FLAGS); do \
48489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48490 done; \
48491 (cd $(TARGET_SUBDIR)/libitm && \
48492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48494 "RANLIB=$${RANLIB}" \
48495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48496 dvi) \
48497 || exit 1
48498
48499@endif target-libitm
48500
48501.PHONY: maybe-pdf-target-libitm pdf-target-libitm
48502maybe-pdf-target-libitm:
48503@if target-libitm
48504maybe-pdf-target-libitm: pdf-target-libitm
48505
48506pdf-target-libitm: \
48507 configure-target-libitm
48508 @: $(MAKE); $(unstage)
22121df0 48509 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48510 r=`${PWD_COMMAND}`; export r; \
48511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48512 $(NORMAL_TARGET_EXPORTS) \
22121df0 48513 echo "Doing pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48514 for flag in $(EXTRA_TARGET_FLAGS); do \
48515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48516 done; \
48517 (cd $(TARGET_SUBDIR)/libitm && \
48518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48520 "RANLIB=$${RANLIB}" \
48521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48522 pdf) \
48523 || exit 1
48524
48525@endif target-libitm
48526
48527.PHONY: maybe-html-target-libitm html-target-libitm
48528maybe-html-target-libitm:
48529@if target-libitm
48530maybe-html-target-libitm: html-target-libitm
48531
48532html-target-libitm: \
48533 configure-target-libitm
48534 @: $(MAKE); $(unstage)
22121df0 48535 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48536 r=`${PWD_COMMAND}`; export r; \
48537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48538 $(NORMAL_TARGET_EXPORTS) \
22121df0 48539 echo "Doing html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48540 for flag in $(EXTRA_TARGET_FLAGS); do \
48541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48542 done; \
48543 (cd $(TARGET_SUBDIR)/libitm && \
48544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48546 "RANLIB=$${RANLIB}" \
48547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48548 html) \
48549 || exit 1
48550
48551@endif target-libitm
48552
48553.PHONY: maybe-TAGS-target-libitm TAGS-target-libitm
48554maybe-TAGS-target-libitm:
48555@if target-libitm
48556maybe-TAGS-target-libitm: TAGS-target-libitm
48557
48558TAGS-target-libitm: \
48559 configure-target-libitm
48560 @: $(MAKE); $(unstage)
22121df0 48561 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48562 r=`${PWD_COMMAND}`; export r; \
48563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48564 $(NORMAL_TARGET_EXPORTS) \
22121df0 48565 echo "Doing TAGS in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48566 for flag in $(EXTRA_TARGET_FLAGS); do \
48567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48568 done; \
48569 (cd $(TARGET_SUBDIR)/libitm && \
48570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48572 "RANLIB=$${RANLIB}" \
48573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48574 TAGS) \
48575 || exit 1
48576
48577@endif target-libitm
48578
48579.PHONY: maybe-install-info-target-libitm install-info-target-libitm
48580maybe-install-info-target-libitm:
48581@if target-libitm
48582maybe-install-info-target-libitm: install-info-target-libitm
48583
48584install-info-target-libitm: \
48585 configure-target-libitm \
48586 info-target-libitm
48587 @: $(MAKE); $(unstage)
22121df0 48588 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48589 r=`${PWD_COMMAND}`; export r; \
48590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48591 $(NORMAL_TARGET_EXPORTS) \
22121df0 48592 echo "Doing install-info in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48593 for flag in $(EXTRA_TARGET_FLAGS); do \
48594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48595 done; \
48596 (cd $(TARGET_SUBDIR)/libitm && \
48597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48599 "RANLIB=$${RANLIB}" \
48600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48601 install-info) \
48602 || exit 1
48603
48604@endif target-libitm
48605
48606.PHONY: maybe-install-pdf-target-libitm install-pdf-target-libitm
48607maybe-install-pdf-target-libitm:
48608@if target-libitm
48609maybe-install-pdf-target-libitm: install-pdf-target-libitm
48610
48611install-pdf-target-libitm: \
48612 configure-target-libitm \
48613 pdf-target-libitm
48614 @: $(MAKE); $(unstage)
22121df0 48615 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48616 r=`${PWD_COMMAND}`; export r; \
48617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48618 $(NORMAL_TARGET_EXPORTS) \
22121df0 48619 echo "Doing install-pdf in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48620 for flag in $(EXTRA_TARGET_FLAGS); do \
48621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48622 done; \
48623 (cd $(TARGET_SUBDIR)/libitm && \
48624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48626 "RANLIB=$${RANLIB}" \
48627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48628 install-pdf) \
48629 || exit 1
48630
48631@endif target-libitm
48632
48633.PHONY: maybe-install-html-target-libitm install-html-target-libitm
48634maybe-install-html-target-libitm:
48635@if target-libitm
48636maybe-install-html-target-libitm: install-html-target-libitm
48637
48638install-html-target-libitm: \
48639 configure-target-libitm \
48640 html-target-libitm
48641 @: $(MAKE); $(unstage)
22121df0 48642 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48643 r=`${PWD_COMMAND}`; export r; \
48644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48645 $(NORMAL_TARGET_EXPORTS) \
22121df0 48646 echo "Doing install-html in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48647 for flag in $(EXTRA_TARGET_FLAGS); do \
48648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48649 done; \
48650 (cd $(TARGET_SUBDIR)/libitm && \
48651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48653 "RANLIB=$${RANLIB}" \
48654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48655 install-html) \
48656 || exit 1
48657
48658@endif target-libitm
48659
48660.PHONY: maybe-installcheck-target-libitm installcheck-target-libitm
48661maybe-installcheck-target-libitm:
48662@if target-libitm
48663maybe-installcheck-target-libitm: installcheck-target-libitm
48664
48665installcheck-target-libitm: \
48666 configure-target-libitm
48667 @: $(MAKE); $(unstage)
22121df0 48668 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48669 r=`${PWD_COMMAND}`; export r; \
48670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48671 $(NORMAL_TARGET_EXPORTS) \
22121df0 48672 echo "Doing installcheck in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48673 for flag in $(EXTRA_TARGET_FLAGS); do \
48674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48675 done; \
48676 (cd $(TARGET_SUBDIR)/libitm && \
48677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48679 "RANLIB=$${RANLIB}" \
48680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48681 installcheck) \
48682 || exit 1
48683
48684@endif target-libitm
48685
48686.PHONY: maybe-mostlyclean-target-libitm mostlyclean-target-libitm
48687maybe-mostlyclean-target-libitm:
48688@if target-libitm
48689maybe-mostlyclean-target-libitm: mostlyclean-target-libitm
48690
48691mostlyclean-target-libitm:
48692 @: $(MAKE); $(unstage)
22121df0 48693 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48694 r=`${PWD_COMMAND}`; export r; \
48695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48696 $(NORMAL_TARGET_EXPORTS) \
22121df0 48697 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48698 for flag in $(EXTRA_TARGET_FLAGS); do \
48699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48700 done; \
48701 (cd $(TARGET_SUBDIR)/libitm && \
48702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48704 "RANLIB=$${RANLIB}" \
48705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48706 mostlyclean) \
48707 || exit 1
48708
48709@endif target-libitm
48710
48711.PHONY: maybe-clean-target-libitm clean-target-libitm
48712maybe-clean-target-libitm:
48713@if target-libitm
48714maybe-clean-target-libitm: clean-target-libitm
48715
48716clean-target-libitm:
48717 @: $(MAKE); $(unstage)
22121df0 48718 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48719 r=`${PWD_COMMAND}`; export r; \
48720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48721 $(NORMAL_TARGET_EXPORTS) \
22121df0 48722 echo "Doing clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48723 for flag in $(EXTRA_TARGET_FLAGS); do \
48724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48725 done; \
48726 (cd $(TARGET_SUBDIR)/libitm && \
48727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48729 "RANLIB=$${RANLIB}" \
48730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48731 clean) \
48732 || exit 1
48733
48734@endif target-libitm
48735
48736.PHONY: maybe-distclean-target-libitm distclean-target-libitm
48737maybe-distclean-target-libitm:
48738@if target-libitm
48739maybe-distclean-target-libitm: distclean-target-libitm
48740
48741distclean-target-libitm:
48742 @: $(MAKE); $(unstage)
22121df0 48743 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48744 r=`${PWD_COMMAND}`; export r; \
48745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48746 $(NORMAL_TARGET_EXPORTS) \
22121df0 48747 echo "Doing distclean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48748 for flag in $(EXTRA_TARGET_FLAGS); do \
48749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48750 done; \
48751 (cd $(TARGET_SUBDIR)/libitm && \
48752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48754 "RANLIB=$${RANLIB}" \
48755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48756 distclean) \
48757 || exit 1
48758
48759@endif target-libitm
48760
48761.PHONY: maybe-maintainer-clean-target-libitm maintainer-clean-target-libitm
48762maybe-maintainer-clean-target-libitm:
48763@if target-libitm
48764maybe-maintainer-clean-target-libitm: maintainer-clean-target-libitm
48765
48766maintainer-clean-target-libitm:
48767 @: $(MAKE); $(unstage)
22121df0 48768 @[ -f $(TARGET_SUBDIR)/libitm/Makefile ] || exit 0; \
7ec59b9e
L
48769 r=`${PWD_COMMAND}`; export r; \
48770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48771 $(NORMAL_TARGET_EXPORTS) \
22121df0 48772 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libitm"; \
7ec59b9e
L
48773 for flag in $(EXTRA_TARGET_FLAGS); do \
48774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48775 done; \
48776 (cd $(TARGET_SUBDIR)/libitm && \
48777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48779 "RANLIB=$${RANLIB}" \
48780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48781 maintainer-clean) \
48782 || exit 1
48783
48784@endif target-libitm
48785
48786
48787
48788
48789
48790.PHONY: configure-target-libatomic maybe-configure-target-libatomic
48791maybe-configure-target-libatomic:
48792@if gcc-bootstrap
48793configure-target-libatomic: stage_current
48794@endif gcc-bootstrap
48795@if target-libatomic
48796maybe-configure-target-libatomic: configure-target-libatomic
48797configure-target-libatomic:
48798 @: $(MAKE); $(unstage)
48799 @r=`${PWD_COMMAND}`; export r; \
48800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48801 echo "Checking multilib configuration for libatomic..."; \
22121df0
L
48802 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
48803 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libatomic/multilib.tmp 2> /dev/null; \
7ec59b9e
L
48804 if test -r $(TARGET_SUBDIR)/libatomic/multilib.out; then \
48805 if cmp -s $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; then \
48806 rm -f $(TARGET_SUBDIR)/libatomic/multilib.tmp; \
48807 else \
48808 rm -f $(TARGET_SUBDIR)/libatomic/Makefile; \
48809 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
48810 fi; \
48811 else \
48812 mv $(TARGET_SUBDIR)/libatomic/multilib.tmp $(TARGET_SUBDIR)/libatomic/multilib.out; \
48813 fi; \
48814 test ! -f $(TARGET_SUBDIR)/libatomic/Makefile || exit 0; \
22121df0 48815 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libatomic; \
7ec59b9e
L
48816 $(NORMAL_TARGET_EXPORTS) \
48817 echo Configuring in $(TARGET_SUBDIR)/libatomic; \
48818 cd "$(TARGET_SUBDIR)/libatomic" || exit 1; \
48819 case $(srcdir) in \
48820 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
48821 *) topdir=`echo $(TARGET_SUBDIR)/libatomic/ | \
48822 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
48823 esac; \
1b6c0831 48824 module_srcdir=libatomic; \
7ec59b9e 48825 rm -f no-such-file || : ; \
1b6c0831
L
48826 CONFIG_SITE=no-such-file $(SHELL) \
48827 $$s/$$module_srcdir/configure \
48828 --srcdir=$${topdir}/$$module_srcdir \
7ec59b9e 48829 $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
1b6c0831 48830 --target=${target_alias} \
7ec59b9e
L
48831 || exit 1
48832@endif target-libatomic
48833
48834
48835
48836
48837
48838.PHONY: all-target-libatomic maybe-all-target-libatomic
48839maybe-all-target-libatomic:
48840@if gcc-bootstrap
48841all-target-libatomic: stage_current
48842@endif gcc-bootstrap
48843@if target-libatomic
48844TARGET-target-libatomic=all
48845maybe-all-target-libatomic: all-target-libatomic
48846all-target-libatomic: configure-target-libatomic
48847 @: $(MAKE); $(unstage)
48848 @r=`${PWD_COMMAND}`; export r; \
48849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48850 $(NORMAL_TARGET_EXPORTS) \
48851 (cd $(TARGET_SUBDIR)/libatomic && \
b3676d82 48852 $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) \
7ec59b9e
L
48853 $(TARGET-target-libatomic))
48854@endif target-libatomic
48855
48856
48857
48858
48859
48860.PHONY: check-target-libatomic maybe-check-target-libatomic
48861maybe-check-target-libatomic:
48862@if target-libatomic
48863maybe-check-target-libatomic: check-target-libatomic
48864
48865check-target-libatomic:
48866 @: $(MAKE); $(unstage)
48867 @r=`${PWD_COMMAND}`; export r; \
48868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48869 $(NORMAL_TARGET_EXPORTS) \
48870 (cd $(TARGET_SUBDIR)/libatomic && \
48871 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
48872
48873@endif target-libatomic
48874
48875.PHONY: install-target-libatomic maybe-install-target-libatomic
48876maybe-install-target-libatomic:
48877@if target-libatomic
48878maybe-install-target-libatomic: install-target-libatomic
48879
48880install-target-libatomic: installdirs
48881 @: $(MAKE); $(unstage)
48882 @r=`${PWD_COMMAND}`; export r; \
48883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48884 $(NORMAL_TARGET_EXPORTS) \
48885 (cd $(TARGET_SUBDIR)/libatomic && \
48886 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
48887
48888@endif target-libatomic
48889
48890.PHONY: install-strip-target-libatomic maybe-install-strip-target-libatomic
48891maybe-install-strip-target-libatomic:
48892@if target-libatomic
48893maybe-install-strip-target-libatomic: install-strip-target-libatomic
48894
48895install-strip-target-libatomic: installdirs
48896 @: $(MAKE); $(unstage)
48897 @r=`${PWD_COMMAND}`; export r; \
48898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48899 $(NORMAL_TARGET_EXPORTS) \
48900 (cd $(TARGET_SUBDIR)/libatomic && \
48901 $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
48902
48903@endif target-libatomic
48904
48905# Other targets (info, dvi, pdf, etc.)
48906
48907.PHONY: maybe-info-target-libatomic info-target-libatomic
48908maybe-info-target-libatomic:
48909@if target-libatomic
48910maybe-info-target-libatomic: info-target-libatomic
48911
48912info-target-libatomic: \
48913 configure-target-libatomic
48914 @: $(MAKE); $(unstage)
22121df0 48915 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48916 r=`${PWD_COMMAND}`; export r; \
48917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48918 $(NORMAL_TARGET_EXPORTS) \
22121df0 48919 echo "Doing info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48920 for flag in $(EXTRA_TARGET_FLAGS); do \
48921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48922 done; \
48923 (cd $(TARGET_SUBDIR)/libatomic && \
48924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48926 "RANLIB=$${RANLIB}" \
48927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48928 info) \
48929 || exit 1
48930
48931@endif target-libatomic
48932
48933.PHONY: maybe-dvi-target-libatomic dvi-target-libatomic
48934maybe-dvi-target-libatomic:
48935@if target-libatomic
48936maybe-dvi-target-libatomic: dvi-target-libatomic
48937
48938dvi-target-libatomic: \
48939 configure-target-libatomic
48940 @: $(MAKE); $(unstage)
22121df0 48941 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48942 r=`${PWD_COMMAND}`; export r; \
48943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48944 $(NORMAL_TARGET_EXPORTS) \
22121df0 48945 echo "Doing dvi in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48946 for flag in $(EXTRA_TARGET_FLAGS); do \
48947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48948 done; \
48949 (cd $(TARGET_SUBDIR)/libatomic && \
48950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48952 "RANLIB=$${RANLIB}" \
48953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48954 dvi) \
48955 || exit 1
48956
48957@endif target-libatomic
48958
48959.PHONY: maybe-pdf-target-libatomic pdf-target-libatomic
48960maybe-pdf-target-libatomic:
48961@if target-libatomic
48962maybe-pdf-target-libatomic: pdf-target-libatomic
48963
48964pdf-target-libatomic: \
48965 configure-target-libatomic
48966 @: $(MAKE); $(unstage)
22121df0 48967 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48968 r=`${PWD_COMMAND}`; export r; \
48969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48970 $(NORMAL_TARGET_EXPORTS) \
22121df0 48971 echo "Doing pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48972 for flag in $(EXTRA_TARGET_FLAGS); do \
48973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
48974 done; \
48975 (cd $(TARGET_SUBDIR)/libatomic && \
48976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
48977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
48978 "RANLIB=$${RANLIB}" \
48979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
48980 pdf) \
48981 || exit 1
48982
48983@endif target-libatomic
48984
48985.PHONY: maybe-html-target-libatomic html-target-libatomic
48986maybe-html-target-libatomic:
48987@if target-libatomic
48988maybe-html-target-libatomic: html-target-libatomic
48989
48990html-target-libatomic: \
48991 configure-target-libatomic
48992 @: $(MAKE); $(unstage)
22121df0 48993 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
48994 r=`${PWD_COMMAND}`; export r; \
48995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
48996 $(NORMAL_TARGET_EXPORTS) \
22121df0 48997 echo "Doing html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
48998 for flag in $(EXTRA_TARGET_FLAGS); do \
48999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49000 done; \
49001 (cd $(TARGET_SUBDIR)/libatomic && \
49002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49004 "RANLIB=$${RANLIB}" \
49005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49006 html) \
49007 || exit 1
49008
49009@endif target-libatomic
49010
49011.PHONY: maybe-TAGS-target-libatomic TAGS-target-libatomic
49012maybe-TAGS-target-libatomic:
49013@if target-libatomic
49014maybe-TAGS-target-libatomic: TAGS-target-libatomic
49015
49016TAGS-target-libatomic: \
49017 configure-target-libatomic
49018 @: $(MAKE); $(unstage)
22121df0 49019 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49020 r=`${PWD_COMMAND}`; export r; \
49021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49022 $(NORMAL_TARGET_EXPORTS) \
22121df0 49023 echo "Doing TAGS in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49024 for flag in $(EXTRA_TARGET_FLAGS); do \
49025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49026 done; \
49027 (cd $(TARGET_SUBDIR)/libatomic && \
49028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49030 "RANLIB=$${RANLIB}" \
49031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49032 TAGS) \
49033 || exit 1
49034
49035@endif target-libatomic
49036
49037.PHONY: maybe-install-info-target-libatomic install-info-target-libatomic
49038maybe-install-info-target-libatomic:
49039@if target-libatomic
49040maybe-install-info-target-libatomic: install-info-target-libatomic
49041
49042install-info-target-libatomic: \
49043 configure-target-libatomic \
49044 info-target-libatomic
49045 @: $(MAKE); $(unstage)
22121df0 49046 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49047 r=`${PWD_COMMAND}`; export r; \
49048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49049 $(NORMAL_TARGET_EXPORTS) \
22121df0 49050 echo "Doing install-info in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49051 for flag in $(EXTRA_TARGET_FLAGS); do \
49052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49053 done; \
49054 (cd $(TARGET_SUBDIR)/libatomic && \
49055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49057 "RANLIB=$${RANLIB}" \
49058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49059 install-info) \
49060 || exit 1
49061
49062@endif target-libatomic
49063
49064.PHONY: maybe-install-pdf-target-libatomic install-pdf-target-libatomic
49065maybe-install-pdf-target-libatomic:
49066@if target-libatomic
49067maybe-install-pdf-target-libatomic: install-pdf-target-libatomic
49068
49069install-pdf-target-libatomic: \
49070 configure-target-libatomic \
49071 pdf-target-libatomic
49072 @: $(MAKE); $(unstage)
22121df0 49073 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49074 r=`${PWD_COMMAND}`; export r; \
49075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49076 $(NORMAL_TARGET_EXPORTS) \
22121df0 49077 echo "Doing install-pdf in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49078 for flag in $(EXTRA_TARGET_FLAGS); do \
49079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49080 done; \
49081 (cd $(TARGET_SUBDIR)/libatomic && \
49082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49084 "RANLIB=$${RANLIB}" \
49085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49086 install-pdf) \
49087 || exit 1
49088
49089@endif target-libatomic
49090
49091.PHONY: maybe-install-html-target-libatomic install-html-target-libatomic
49092maybe-install-html-target-libatomic:
49093@if target-libatomic
49094maybe-install-html-target-libatomic: install-html-target-libatomic
49095
49096install-html-target-libatomic: \
49097 configure-target-libatomic \
49098 html-target-libatomic
49099 @: $(MAKE); $(unstage)
22121df0 49100 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49101 r=`${PWD_COMMAND}`; export r; \
49102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49103 $(NORMAL_TARGET_EXPORTS) \
22121df0 49104 echo "Doing install-html in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49105 for flag in $(EXTRA_TARGET_FLAGS); do \
49106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49107 done; \
49108 (cd $(TARGET_SUBDIR)/libatomic && \
49109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49111 "RANLIB=$${RANLIB}" \
49112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49113 install-html) \
49114 || exit 1
49115
49116@endif target-libatomic
49117
49118.PHONY: maybe-installcheck-target-libatomic installcheck-target-libatomic
49119maybe-installcheck-target-libatomic:
49120@if target-libatomic
49121maybe-installcheck-target-libatomic: installcheck-target-libatomic
49122
49123installcheck-target-libatomic: \
49124 configure-target-libatomic
49125 @: $(MAKE); $(unstage)
22121df0 49126 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49127 r=`${PWD_COMMAND}`; export r; \
49128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49129 $(NORMAL_TARGET_EXPORTS) \
22121df0 49130 echo "Doing installcheck in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49131 for flag in $(EXTRA_TARGET_FLAGS); do \
49132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49133 done; \
49134 (cd $(TARGET_SUBDIR)/libatomic && \
49135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49137 "RANLIB=$${RANLIB}" \
49138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49139 installcheck) \
49140 || exit 1
49141
49142@endif target-libatomic
49143
49144.PHONY: maybe-mostlyclean-target-libatomic mostlyclean-target-libatomic
49145maybe-mostlyclean-target-libatomic:
49146@if target-libatomic
49147maybe-mostlyclean-target-libatomic: mostlyclean-target-libatomic
49148
49149mostlyclean-target-libatomic:
49150 @: $(MAKE); $(unstage)
22121df0 49151 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49152 r=`${PWD_COMMAND}`; export r; \
49153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49154 $(NORMAL_TARGET_EXPORTS) \
22121df0 49155 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49156 for flag in $(EXTRA_TARGET_FLAGS); do \
49157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49158 done; \
49159 (cd $(TARGET_SUBDIR)/libatomic && \
49160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49162 "RANLIB=$${RANLIB}" \
49163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49164 mostlyclean) \
49165 || exit 1
49166
49167@endif target-libatomic
49168
49169.PHONY: maybe-clean-target-libatomic clean-target-libatomic
49170maybe-clean-target-libatomic:
49171@if target-libatomic
49172maybe-clean-target-libatomic: clean-target-libatomic
49173
49174clean-target-libatomic:
49175 @: $(MAKE); $(unstage)
22121df0 49176 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49177 r=`${PWD_COMMAND}`; export r; \
49178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49179 $(NORMAL_TARGET_EXPORTS) \
22121df0 49180 echo "Doing clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49181 for flag in $(EXTRA_TARGET_FLAGS); do \
49182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49183 done; \
49184 (cd $(TARGET_SUBDIR)/libatomic && \
49185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49187 "RANLIB=$${RANLIB}" \
49188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49189 clean) \
49190 || exit 1
49191
49192@endif target-libatomic
49193
49194.PHONY: maybe-distclean-target-libatomic distclean-target-libatomic
49195maybe-distclean-target-libatomic:
49196@if target-libatomic
49197maybe-distclean-target-libatomic: distclean-target-libatomic
49198
49199distclean-target-libatomic:
49200 @: $(MAKE); $(unstage)
22121df0 49201 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49202 r=`${PWD_COMMAND}`; export r; \
49203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49204 $(NORMAL_TARGET_EXPORTS) \
22121df0 49205 echo "Doing distclean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49206 for flag in $(EXTRA_TARGET_FLAGS); do \
49207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49208 done; \
49209 (cd $(TARGET_SUBDIR)/libatomic && \
49210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49212 "RANLIB=$${RANLIB}" \
49213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49214 distclean) \
49215 || exit 1
49216
49217@endif target-libatomic
49218
49219.PHONY: maybe-maintainer-clean-target-libatomic maintainer-clean-target-libatomic
49220maybe-maintainer-clean-target-libatomic:
49221@if target-libatomic
49222maybe-maintainer-clean-target-libatomic: maintainer-clean-target-libatomic
49223
49224maintainer-clean-target-libatomic:
49225 @: $(MAKE); $(unstage)
22121df0 49226 @[ -f $(TARGET_SUBDIR)/libatomic/Makefile ] || exit 0; \
7ec59b9e
L
49227 r=`${PWD_COMMAND}`; export r; \
49228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49229 $(NORMAL_TARGET_EXPORTS) \
22121df0 49230 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libatomic"; \
7ec59b9e
L
49231 for flag in $(EXTRA_TARGET_FLAGS); do \
49232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
49233 done; \
49234 (cd $(TARGET_SUBDIR)/libatomic && \
49235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
49236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
49237 "RANLIB=$${RANLIB}" \
49238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
49239 maintainer-clean) \
49240 || exit 1
49241
49242@endif target-libatomic
49243
49244
49245
7ec59b9e
L
49246@if target-libgomp
49247.PHONY: check-target-libgomp-c++
49248check-target-libgomp-c++:
49249 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libgomp
49250
e0541124
EB
49251.PHONY: check-target-libgomp-fortran
49252check-target-libgomp-fortran:
49253 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) fortran.exp" check-target-libgomp
49254
7ec59b9e
L
49255@endif target-libgomp
49256
49257@if target-libitm
49258.PHONY: check-target-libitm-c++
49259check-target-libitm-c++:
49260 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) c++.exp" check-target-libitm
49261
49262@endif target-libitm
49263
15723a45
NN
49264# ----------
49265# GCC module
49266# ----------
49267
319cab08 49268@if gcc-no-bootstrap
252b5132 49269.PHONY: cross
72b2455a 49270cross: all-build all-gas all-ld
b40e3958
L
49271 @r=`${PWD_COMMAND}`; export r; \
49272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 49273 $(HOST_EXPORTS) \
252b5132 49274 echo "Building the C and C++ compiler"; \
5cec67bf 49275 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
b40e3958 49276 @r=`${PWD_COMMAND}`; export r; \
22121df0 49277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
252b5132 49278 echo "Building runtime libraries"; \
656fdd47 49279 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
319cab08 49280@endif gcc-no-bootstrap
252b5132 49281
6bd3dfaa 49282@if gcc
c50523ce
L
49283
49284.PHONY: check-gcc-c check-c
49285check-gcc-c:
49286 r=`${PWD_COMMAND}`; export r; \
49287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49288 $(HOST_EXPORTS) \
49289 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-gcc);
49290check-c: check-gcc-c
49291
49292.PHONY: check-gcc-c++ check-c++
7d695d07 49293check-gcc-c++:
c50523ce
L
49294 r=`${PWD_COMMAND}`; export r; \
49295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49296 $(HOST_EXPORTS) \
7ec59b9e 49297 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++);
cb49a9e1 49298check-c++: check-gcc-c++ check-target-libstdc++-v3 check-target-libitm-c++ check-target-libgomp-c++
c50523ce
L
49299
49300.PHONY: check-gcc-fortran check-fortran
49301check-gcc-fortran:
49302 r=`${PWD_COMMAND}`; export r; \
49303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49304 $(HOST_EXPORTS) \
49305 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-fortran);
e0541124 49306check-fortran: check-gcc-fortran check-target-libquadmath check-target-libgfortran check-target-libgomp-fortran
c50523ce 49307
c50523ce
L
49308.PHONY: check-gcc-ada check-ada
49309check-gcc-ada:
49310 r=`${PWD_COMMAND}`; export r; \
49311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49312 $(HOST_EXPORTS) \
49313 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-ada);
49314check-ada: check-gcc-ada check-target-libada
49315
49316.PHONY: check-gcc-objc check-objc
49317check-gcc-objc:
49318 r=`${PWD_COMMAND}`; export r; \
49319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49320 $(HOST_EXPORTS) \
49321 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-objc);
49322check-objc: check-gcc-objc check-target-libobjc
49323
49324.PHONY: check-gcc-obj-c++ check-obj-c++
49325check-gcc-obj-c++:
49326 r=`${PWD_COMMAND}`; export r; \
49327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49328 $(HOST_EXPORTS) \
49329 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-obj-c++);
49330check-obj-c++: check-gcc-obj-c++
7d695d07 49331
e552509b
ILT
49332.PHONY: check-gcc-go check-go
49333check-gcc-go:
49334 r=`${PWD_COMMAND}`; export r; \
49335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
49336 $(HOST_EXPORTS) \
49337 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-go);
e3f56a99 49338check-go: check-gcc-go check-target-libgo
e552509b 49339
252b5132 49340
7ec59b9e
L
49341# The gcc part of install-no-fixedincludes, which relies on an intimate
49342# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
49343.PHONY: gcc-install-no-fixedincludes
49344gcc-install-no-fixedincludes:
15723a45 49345 @if [ -f ./gcc/Makefile ]; then \
b40e3958 49346 r=`${PWD_COMMAND}`; export r; \
7ec59b9e 49347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7ffa0b57 49348 $(HOST_EXPORTS) \
7ec59b9e
L
49349 (cd ./gcc \
49350 && $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
15723a45 49351 else true; fi
6bd3dfaa 49352@endif gcc
4fa63067 49353
b813574b
PB
49354# ---------------------
49355# GCC bootstrap support
49356# ---------------------
4fa63067 49357
b813574b
PB
49358# We track the current stage (the one in 'gcc') in the stage_current file.
49359# stage_last instead tracks the stage that was built last. These targets
49360# are dummy when toplevel bootstrap is not active.
4fa63067 49361
f70224b5 49362# While making host and target tools, symlinks to the final stage must be
0aed8855
PB
49363# there, so $(unstage) should be run at various points. To avoid excessive
49364# recursive invocations of make, we "inline" them using a variable. These
49365# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
49366# to avoid warnings from the GNU Make job server.
f70224b5
PB
49367
49368unstage = :
49369stage = :
c52c6897 49370current_stage = ""
f70224b5 49371
b813574b 49372@if gcc-bootstrap
9daf3993 49373unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
f6d183c0 49374stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
c52c6897 49375current_stage = "`cat stage_current 2> /dev/null`"
b813574b 49376@endif gcc-bootstrap
4fa63067 49377
f70224b5
PB
49378.PHONY: unstage stage
49379unstage:
0aed8855 49380 @: $(MAKE); $(unstage)
b813574b 49381stage:
0aed8855 49382 @: $(MAKE); $(stage)
1d39f329 49383
80911fe1
PB
49384# Disable commands for lean bootstrap.
49385LEAN = false
49386
dfdffa2c
PB
49387# We name the build directories for the various stages "stage1-gcc",
49388# "stage2-gcc","stage3-gcc", etc.
49389
49390# Since the 'compare' process will fail (on debugging information) if any
49391# directory names are different, we need to link the gcc directory for
0aed8855 49392# the previous stage to a constant name ('prev-gcc'), and to make the name of
dfdffa2c
PB
49393# the build directories constant as well. For the latter, we use naked names
49394# like 'gcc', because the scripts in that directory assume it. We use
49395# mv on platforms where symlinks to directories do not work or are not
49396# reliable.
49397
1d39f329
NN
49398# 'touch' doesn't work right on some platforms.
49399STAMP = echo timestamp >
49400
dfdffa2c
PB
49401# We only want to compare .o files, so set this!
49402objext = .o
49403
dfdffa2c 49404
319cab08 49405.PHONY: stage1-start stage1-end
dfdffa2c 49406
656fdd47 49407stage1-start::
0aed8855 49408 @: $(MAKE); $(stage); \
22121df0 49409 echo stage1 > stage_current; \
b00612cc 49410 echo stage1 > stage_last; \
0aed8855 49411 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49412@if bfd
b00612cc
PB
49413 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
49414 mkdir stage1-bfd; \
22121df0 49415 mv stage1-bfd bfd
72b2455a
PB
49416@endif bfd
49417@if opcodes
b00612cc
PB
49418 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
49419 mkdir stage1-opcodes; \
22121df0 49420 mv stage1-opcodes opcodes
72b2455a
PB
49421@endif opcodes
49422@if binutils
b00612cc
PB
49423 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
49424 mkdir stage1-binutils; \
22121df0 49425 mv stage1-binutils binutils
72b2455a 49426@endif binutils
201f096f 49427@if fixincludes
49428 @cd $(HOST_SUBDIR); [ -d stage1-fixincludes ] || \
49429 mkdir stage1-fixincludes; \
22121df0 49430 mv stage1-fixincludes fixincludes
201f096f 49431@endif fixincludes
72b2455a 49432@if gas
b00612cc
PB
49433 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
49434 mkdir stage1-gas; \
22121df0 49435 mv stage1-gas gas
72b2455a
PB
49436@endif gas
49437@if gcc
b00612cc
PB
49438 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
49439 mkdir stage1-gcc; \
22121df0 49440 mv stage1-gcc gcc
72b2455a 49441@endif gcc
4b900473
PB
49442@if gmp
49443 @cd $(HOST_SUBDIR); [ -d stage1-gmp ] || \
49444 mkdir stage1-gmp; \
22121df0 49445 mv stage1-gmp gmp
4b900473
PB
49446@endif gmp
49447@if mpfr
49448 @cd $(HOST_SUBDIR); [ -d stage1-mpfr ] || \
49449 mkdir stage1-mpfr; \
22121df0 49450 mv stage1-mpfr mpfr
4b900473 49451@endif mpfr
e8a5fa9c
RW
49452@if mpc
49453 @cd $(HOST_SUBDIR); [ -d stage1-mpc ] || \
49454 mkdir stage1-mpc; \
22121df0 49455 mv stage1-mpc mpc
e8a5fa9c 49456@endif mpc
7ec59b9e
L
49457@if isl
49458 @cd $(HOST_SUBDIR); [ -d stage1-isl ] || \
49459 mkdir stage1-isl; \
22121df0 49460 mv stage1-isl isl
7ec59b9e 49461@endif isl
1f53ca9a
AO
49462@if libelf
49463 @cd $(HOST_SUBDIR); [ -d stage1-libelf ] || \
49464 mkdir stage1-libelf; \
22121df0 49465 mv stage1-libelf libelf
1f53ca9a 49466@endif libelf
93f9b408
ILT
49467@if gold
49468 @cd $(HOST_SUBDIR); [ -d stage1-gold ] || \
49469 mkdir stage1-gold; \
22121df0 49470 mv stage1-gold gold
93f9b408 49471@endif gold
72b2455a 49472@if intl
b00612cc
PB
49473 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
49474 mkdir stage1-intl; \
22121df0 49475 mv stage1-intl intl
72b2455a
PB
49476@endif intl
49477@if ld
b00612cc
PB
49478 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
49479 mkdir stage1-ld; \
22121df0 49480 mv stage1-ld ld
72b2455a 49481@endif ld
2bf680c4
ILT
49482@if libbacktrace
49483 @cd $(HOST_SUBDIR); [ -d stage1-libbacktrace ] || \
49484 mkdir stage1-libbacktrace; \
22121df0 49485 mv stage1-libbacktrace libbacktrace
2bf680c4 49486@endif libbacktrace
72b2455a 49487@if libcpp
b00612cc
PB
49488 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
49489 mkdir stage1-libcpp; \
22121df0 49490 mv stage1-libcpp libcpp
72b2455a 49491@endif libcpp
be01d343
PB
49492@if libdecnumber
49493 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
49494 mkdir stage1-libdecnumber; \
22121df0 49495 mv stage1-libdecnumber libdecnumber
be01d343 49496@endif libdecnumber
72b2455a 49497@if libiberty
b00612cc
PB
49498 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
49499 mkdir stage1-libiberty; \
22121df0 49500 mv stage1-libiberty libiberty
72b2455a 49501@endif libiberty
1b6c0831
L
49502@if libiberty-linker-plugin
49503 @cd $(HOST_SUBDIR); [ -d stage1-libiberty-linker-plugin ] || \
49504 mkdir stage1-libiberty-linker-plugin; \
22121df0 49505 mv stage1-libiberty-linker-plugin libiberty-linker-plugin
1b6c0831 49506@endif libiberty-linker-plugin
016a3251
DD
49507@if libiconv
49508 @cd $(HOST_SUBDIR); [ -d stage1-libiconv ] || \
49509 mkdir stage1-libiconv; \
49510 mv stage1-libiconv libiconv
49511@endif libiconv
72b2455a 49512@if zlib
b00612cc
PB
49513 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
49514 mkdir stage1-zlib; \
22121df0 49515 mv stage1-zlib zlib
72b2455a 49516@endif zlib
700d40ca
ILT
49517@if lto-plugin
49518 @cd $(HOST_SUBDIR); [ -d stage1-lto-plugin ] || \
49519 mkdir stage1-lto-plugin; \
22121df0 49520 mv stage1-lto-plugin lto-plugin
700d40ca 49521@endif lto-plugin
0e65dfba
NA
49522@if libctf
49523 @cd $(HOST_SUBDIR); [ -d stage1-libctf ] || \
49524 mkdir stage1-libctf; \
49525 mv stage1-libctf libctf
49526@endif libctf
0aed8855
PB
49527 @[ -d stage1-$(TARGET_SUBDIR) ] || \
49528 mkdir stage1-$(TARGET_SUBDIR); \
22121df0 49529 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
dfdffa2c 49530
80911fe1 49531stage1-end::
72b2455a 49532@if bfd
22121df0
L
49533 @if test -d $(HOST_SUBDIR)/bfd; then \
49534 cd $(HOST_SUBDIR); mv bfd stage1-bfd; \
0aed8855 49535 fi
72b2455a
PB
49536@endif bfd
49537@if opcodes
22121df0
L
49538 @if test -d $(HOST_SUBDIR)/opcodes; then \
49539 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes; \
0aed8855 49540 fi
72b2455a
PB
49541@endif opcodes
49542@if binutils
22121df0
L
49543 @if test -d $(HOST_SUBDIR)/binutils; then \
49544 cd $(HOST_SUBDIR); mv binutils stage1-binutils; \
0aed8855 49545 fi
72b2455a 49546@endif binutils
201f096f 49547@if fixincludes
22121df0
L
49548 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49549 cd $(HOST_SUBDIR); mv fixincludes stage1-fixincludes; \
201f096f 49550 fi
49551@endif fixincludes
72b2455a 49552@if gas
22121df0
L
49553 @if test -d $(HOST_SUBDIR)/gas; then \
49554 cd $(HOST_SUBDIR); mv gas stage1-gas; \
0aed8855 49555 fi
72b2455a
PB
49556@endif gas
49557@if gcc
22121df0
L
49558 @if test -d $(HOST_SUBDIR)/gcc; then \
49559 cd $(HOST_SUBDIR); mv gcc stage1-gcc; \
0aed8855 49560 fi
72b2455a 49561@endif gcc
4b900473 49562@if gmp
22121df0
L
49563 @if test -d $(HOST_SUBDIR)/gmp; then \
49564 cd $(HOST_SUBDIR); mv gmp stage1-gmp; \
4b900473
PB
49565 fi
49566@endif gmp
49567@if mpfr
22121df0
L
49568 @if test -d $(HOST_SUBDIR)/mpfr; then \
49569 cd $(HOST_SUBDIR); mv mpfr stage1-mpfr; \
4b900473
PB
49570 fi
49571@endif mpfr
e8a5fa9c 49572@if mpc
22121df0
L
49573 @if test -d $(HOST_SUBDIR)/mpc; then \
49574 cd $(HOST_SUBDIR); mv mpc stage1-mpc; \
e8a5fa9c
RW
49575 fi
49576@endif mpc
7ec59b9e 49577@if isl
22121df0
L
49578 @if test -d $(HOST_SUBDIR)/isl; then \
49579 cd $(HOST_SUBDIR); mv isl stage1-isl; \
e28c595f 49580 fi
7ec59b9e 49581@endif isl
1f53ca9a 49582@if libelf
22121df0
L
49583 @if test -d $(HOST_SUBDIR)/libelf; then \
49584 cd $(HOST_SUBDIR); mv libelf stage1-libelf; \
1f53ca9a
AO
49585 fi
49586@endif libelf
93f9b408 49587@if gold
22121df0
L
49588 @if test -d $(HOST_SUBDIR)/gold; then \
49589 cd $(HOST_SUBDIR); mv gold stage1-gold; \
93f9b408
ILT
49590 fi
49591@endif gold
72b2455a 49592@if intl
22121df0
L
49593 @if test -d $(HOST_SUBDIR)/intl; then \
49594 cd $(HOST_SUBDIR); mv intl stage1-intl; \
0aed8855 49595 fi
72b2455a
PB
49596@endif intl
49597@if ld
22121df0
L
49598 @if test -d $(HOST_SUBDIR)/ld; then \
49599 cd $(HOST_SUBDIR); mv ld stage1-ld; \
0aed8855 49600 fi
72b2455a 49601@endif ld
2bf680c4 49602@if libbacktrace
22121df0
L
49603 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49604 cd $(HOST_SUBDIR); mv libbacktrace stage1-libbacktrace; \
2bf680c4
ILT
49605 fi
49606@endif libbacktrace
72b2455a 49607@if libcpp
22121df0
L
49608 @if test -d $(HOST_SUBDIR)/libcpp; then \
49609 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp; \
0aed8855 49610 fi
72b2455a 49611@endif libcpp
be01d343 49612@if libdecnumber
22121df0
L
49613 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49614 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber; \
0aed8855 49615 fi
be01d343 49616@endif libdecnumber
72b2455a 49617@if libiberty
22121df0
L
49618 @if test -d $(HOST_SUBDIR)/libiberty; then \
49619 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty; \
0aed8855 49620 fi
72b2455a 49621@endif libiberty
1b6c0831 49622@if libiberty-linker-plugin
22121df0
L
49623 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49624 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage1-libiberty-linker-plugin; \
1b6c0831
L
49625 fi
49626@endif libiberty-linker-plugin
016a3251
DD
49627@if libiconv
49628 @if test -d $(HOST_SUBDIR)/libiconv; then \
49629 cd $(HOST_SUBDIR); mv libiconv stage1-libiconv; \
49630 fi
49631@endif libiconv
72b2455a 49632@if zlib
22121df0
L
49633 @if test -d $(HOST_SUBDIR)/zlib; then \
49634 cd $(HOST_SUBDIR); mv zlib stage1-zlib; \
0aed8855 49635 fi
72b2455a 49636@endif zlib
700d40ca 49637@if lto-plugin
22121df0
L
49638 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49639 cd $(HOST_SUBDIR); mv lto-plugin stage1-lto-plugin; \
700d40ca
ILT
49640 fi
49641@endif lto-plugin
0e65dfba
NA
49642@if libctf
49643 @if test -d $(HOST_SUBDIR)/libctf; then \
49644 cd $(HOST_SUBDIR); mv libctf stage1-libctf; \
49645 fi
49646@endif libctf
22121df0
L
49647 @if test -d $(TARGET_SUBDIR); then \
49648 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); \
0aed8855 49649 fi
80911fe1 49650 rm -f stage_current
dfdffa2c 49651
973601e1 49652# Bubble a bug fix through all the stages up to stage 1. They are
0aed8855 49653# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49654# reconfigured either.
319cab08 49655.PHONY: stage1-bubble
656fdd47 49656stage1-bubble::
e360f423
PB
49657 @r=`${PWD_COMMAND}`; export r; \
49658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49659 if test -f stage1-lean ; then \
49660 echo Skipping rebuild of stage1; \
9cb3fa6f 49661 else \
f70224b5
PB
49662 $(MAKE) stage1-start; \
49663 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
9cb3fa6f 49664 fi
72b2455a 49665
0df3d27f 49666.PHONY: all-stage1 clean-stage1
0df3d27f 49667do-clean: clean-stage1
0df3d27f 49668
72b2455a
PB
49669# FIXME: Will not need to be conditional when toplevel bootstrap is the
49670# only possibility, but now it conflicts with no-bootstrap rules
49671@if gcc-bootstrap
49672
49673
49674
49675
0df3d27f 49676# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 49677
0df3d27f 49678.PHONY: distclean-stage1
72b2455a 49679distclean-stage1::
0aed8855 49680 @: $(MAKE); $(stage)
e00a73e3 49681 @test "`cat stage_last`" != stage1 || rm -f stage_last
9cb3fa6f 49682 rm -rf stage1-*
72b2455a
PB
49683
49684
49685@endif gcc-bootstrap
49686
49687
49688.PHONY: stage2-start stage2-end
49689
49690stage2-start::
0aed8855 49691 @: $(MAKE); $(stage); \
22121df0 49692 echo stage2 > stage_current; \
b00612cc 49693 echo stage2 > stage_last; \
0aed8855 49694 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 49695@if bfd
b00612cc
PB
49696 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
49697 mkdir stage2-bfd; \
22121df0 49698 mv stage2-bfd bfd; \
80911fe1 49699 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
49700@endif bfd
49701@if opcodes
b00612cc
PB
49702 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
49703 mkdir stage2-opcodes; \
22121df0 49704 mv stage2-opcodes opcodes; \
80911fe1 49705 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
49706@endif opcodes
49707@if binutils
b00612cc
PB
49708 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
49709 mkdir stage2-binutils; \
22121df0 49710 mv stage2-binutils binutils; \
80911fe1 49711 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 49712@endif binutils
201f096f 49713@if fixincludes
49714 @cd $(HOST_SUBDIR); [ -d stage2-fixincludes ] || \
49715 mkdir stage2-fixincludes; \
22121df0 49716 mv stage2-fixincludes fixincludes; \
201f096f 49717 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
49718@endif fixincludes
72b2455a 49719@if gas
b00612cc
PB
49720 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
49721 mkdir stage2-gas; \
22121df0 49722 mv stage2-gas gas; \
80911fe1 49723 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
49724@endif gas
49725@if gcc
b00612cc
PB
49726 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
49727 mkdir stage2-gcc; \
22121df0 49728 mv stage2-gcc gcc; \
80911fe1 49729 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 49730@endif gcc
4b900473
PB
49731@if gmp
49732 @cd $(HOST_SUBDIR); [ -d stage2-gmp ] || \
49733 mkdir stage2-gmp; \
22121df0 49734 mv stage2-gmp gmp; \
4b900473
PB
49735 mv stage1-gmp prev-gmp || test -f stage1-lean
49736@endif gmp
49737@if mpfr
49738 @cd $(HOST_SUBDIR); [ -d stage2-mpfr ] || \
49739 mkdir stage2-mpfr; \
22121df0 49740 mv stage2-mpfr mpfr; \
4b900473
PB
49741 mv stage1-mpfr prev-mpfr || test -f stage1-lean
49742@endif mpfr
e8a5fa9c
RW
49743@if mpc
49744 @cd $(HOST_SUBDIR); [ -d stage2-mpc ] || \
49745 mkdir stage2-mpc; \
22121df0 49746 mv stage2-mpc mpc; \
e8a5fa9c
RW
49747 mv stage1-mpc prev-mpc || test -f stage1-lean
49748@endif mpc
7ec59b9e
L
49749@if isl
49750 @cd $(HOST_SUBDIR); [ -d stage2-isl ] || \
49751 mkdir stage2-isl; \
22121df0 49752 mv stage2-isl isl; \
7ec59b9e
L
49753 mv stage1-isl prev-isl || test -f stage1-lean
49754@endif isl
1f53ca9a
AO
49755@if libelf
49756 @cd $(HOST_SUBDIR); [ -d stage2-libelf ] || \
49757 mkdir stage2-libelf; \
22121df0 49758 mv stage2-libelf libelf; \
1f53ca9a
AO
49759 mv stage1-libelf prev-libelf || test -f stage1-lean
49760@endif libelf
93f9b408
ILT
49761@if gold
49762 @cd $(HOST_SUBDIR); [ -d stage2-gold ] || \
49763 mkdir stage2-gold; \
22121df0 49764 mv stage2-gold gold; \
93f9b408
ILT
49765 mv stage1-gold prev-gold || test -f stage1-lean
49766@endif gold
72b2455a 49767@if intl
b00612cc
PB
49768 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
49769 mkdir stage2-intl; \
22121df0 49770 mv stage2-intl intl; \
80911fe1 49771 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
49772@endif intl
49773@if ld
b00612cc
PB
49774 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
49775 mkdir stage2-ld; \
22121df0 49776 mv stage2-ld ld; \
80911fe1 49777 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 49778@endif ld
2bf680c4
ILT
49779@if libbacktrace
49780 @cd $(HOST_SUBDIR); [ -d stage2-libbacktrace ] || \
49781 mkdir stage2-libbacktrace; \
22121df0 49782 mv stage2-libbacktrace libbacktrace; \
2bf680c4
ILT
49783 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
49784@endif libbacktrace
72b2455a 49785@if libcpp
b00612cc
PB
49786 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
49787 mkdir stage2-libcpp; \
22121df0 49788 mv stage2-libcpp libcpp; \
80911fe1 49789 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 49790@endif libcpp
be01d343
PB
49791@if libdecnumber
49792 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
49793 mkdir stage2-libdecnumber; \
22121df0 49794 mv stage2-libdecnumber libdecnumber; \
80911fe1 49795 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 49796@endif libdecnumber
72b2455a 49797@if libiberty
b00612cc
PB
49798 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
49799 mkdir stage2-libiberty; \
22121df0 49800 mv stage2-libiberty libiberty; \
80911fe1 49801 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 49802@endif libiberty
1b6c0831
L
49803@if libiberty-linker-plugin
49804 @cd $(HOST_SUBDIR); [ -d stage2-libiberty-linker-plugin ] || \
49805 mkdir stage2-libiberty-linker-plugin; \
22121df0 49806 mv stage2-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
49807 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
49808@endif libiberty-linker-plugin
016a3251
DD
49809@if libiconv
49810 @cd $(HOST_SUBDIR); [ -d stage2-libiconv ] || \
49811 mkdir stage2-libiconv; \
49812 mv stage2-libiconv libiconv; \
49813 mv stage1-libiconv prev-libiconv || test -f stage1-lean
49814@endif libiconv
72b2455a 49815@if zlib
b00612cc
PB
49816 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
49817 mkdir stage2-zlib; \
22121df0 49818 mv stage2-zlib zlib; \
80911fe1 49819 mv stage1-zlib prev-zlib || test -f stage1-lean
72b2455a 49820@endif zlib
700d40ca
ILT
49821@if lto-plugin
49822 @cd $(HOST_SUBDIR); [ -d stage2-lto-plugin ] || \
49823 mkdir stage2-lto-plugin; \
22121df0 49824 mv stage2-lto-plugin lto-plugin; \
700d40ca
ILT
49825 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
49826@endif lto-plugin
0e65dfba
NA
49827@if libctf
49828 @cd $(HOST_SUBDIR); [ -d stage2-libctf ] || \
49829 mkdir stage2-libctf; \
49830 mv stage2-libctf libctf; \
49831 mv stage1-libctf prev-libctf || test -f stage1-lean
49832@endif libctf
0aed8855
PB
49833 @[ -d stage2-$(TARGET_SUBDIR) ] || \
49834 mkdir stage2-$(TARGET_SUBDIR); \
22121df0 49835 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 49836 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
72b2455a 49837
80911fe1 49838stage2-end::
72b2455a 49839@if bfd
22121df0
L
49840 @if test -d $(HOST_SUBDIR)/bfd; then \
49841 cd $(HOST_SUBDIR); mv bfd stage2-bfd; \
49842 mv prev-bfd stage1-bfd; : ; \
0aed8855 49843 fi
72b2455a
PB
49844@endif bfd
49845@if opcodes
22121df0
L
49846 @if test -d $(HOST_SUBDIR)/opcodes; then \
49847 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes; \
49848 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 49849 fi
72b2455a
PB
49850@endif opcodes
49851@if binutils
22121df0
L
49852 @if test -d $(HOST_SUBDIR)/binutils; then \
49853 cd $(HOST_SUBDIR); mv binutils stage2-binutils; \
49854 mv prev-binutils stage1-binutils; : ; \
0aed8855 49855 fi
72b2455a 49856@endif binutils
201f096f 49857@if fixincludes
22121df0
L
49858 @if test -d $(HOST_SUBDIR)/fixincludes; then \
49859 cd $(HOST_SUBDIR); mv fixincludes stage2-fixincludes; \
49860 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 49861 fi
49862@endif fixincludes
72b2455a 49863@if gas
22121df0
L
49864 @if test -d $(HOST_SUBDIR)/gas; then \
49865 cd $(HOST_SUBDIR); mv gas stage2-gas; \
49866 mv prev-gas stage1-gas; : ; \
0aed8855 49867 fi
72b2455a
PB
49868@endif gas
49869@if gcc
22121df0
L
49870 @if test -d $(HOST_SUBDIR)/gcc; then \
49871 cd $(HOST_SUBDIR); mv gcc stage2-gcc; \
49872 mv prev-gcc stage1-gcc; : ; \
0aed8855 49873 fi
72b2455a 49874@endif gcc
4b900473 49875@if gmp
22121df0
L
49876 @if test -d $(HOST_SUBDIR)/gmp; then \
49877 cd $(HOST_SUBDIR); mv gmp stage2-gmp; \
49878 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
49879 fi
49880@endif gmp
49881@if mpfr
22121df0
L
49882 @if test -d $(HOST_SUBDIR)/mpfr; then \
49883 cd $(HOST_SUBDIR); mv mpfr stage2-mpfr; \
49884 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
49885 fi
49886@endif mpfr
e8a5fa9c 49887@if mpc
22121df0
L
49888 @if test -d $(HOST_SUBDIR)/mpc; then \
49889 cd $(HOST_SUBDIR); mv mpc stage2-mpc; \
49890 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
49891 fi
49892@endif mpc
7ec59b9e 49893@if isl
22121df0
L
49894 @if test -d $(HOST_SUBDIR)/isl; then \
49895 cd $(HOST_SUBDIR); mv isl stage2-isl; \
49896 mv prev-isl stage1-isl; : ; \
e28c595f 49897 fi
7ec59b9e 49898@endif isl
1f53ca9a 49899@if libelf
22121df0
L
49900 @if test -d $(HOST_SUBDIR)/libelf; then \
49901 cd $(HOST_SUBDIR); mv libelf stage2-libelf; \
49902 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
49903 fi
49904@endif libelf
93f9b408 49905@if gold
22121df0
L
49906 @if test -d $(HOST_SUBDIR)/gold; then \
49907 cd $(HOST_SUBDIR); mv gold stage2-gold; \
49908 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
49909 fi
49910@endif gold
72b2455a 49911@if intl
22121df0
L
49912 @if test -d $(HOST_SUBDIR)/intl; then \
49913 cd $(HOST_SUBDIR); mv intl stage2-intl; \
49914 mv prev-intl stage1-intl; : ; \
0aed8855 49915 fi
72b2455a
PB
49916@endif intl
49917@if ld
22121df0
L
49918 @if test -d $(HOST_SUBDIR)/ld; then \
49919 cd $(HOST_SUBDIR); mv ld stage2-ld; \
49920 mv prev-ld stage1-ld; : ; \
0aed8855 49921 fi
72b2455a 49922@endif ld
2bf680c4 49923@if libbacktrace
22121df0
L
49924 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
49925 cd $(HOST_SUBDIR); mv libbacktrace stage2-libbacktrace; \
49926 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
49927 fi
49928@endif libbacktrace
72b2455a 49929@if libcpp
22121df0
L
49930 @if test -d $(HOST_SUBDIR)/libcpp; then \
49931 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp; \
49932 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 49933 fi
72b2455a 49934@endif libcpp
be01d343 49935@if libdecnumber
22121df0
L
49936 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
49937 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber; \
49938 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 49939 fi
be01d343 49940@endif libdecnumber
72b2455a 49941@if libiberty
22121df0
L
49942 @if test -d $(HOST_SUBDIR)/libiberty; then \
49943 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty; \
49944 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 49945 fi
72b2455a 49946@endif libiberty
1b6c0831 49947@if libiberty-linker-plugin
22121df0
L
49948 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
49949 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage2-libiberty-linker-plugin; \
49950 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
49951 fi
49952@endif libiberty-linker-plugin
016a3251
DD
49953@if libiconv
49954 @if test -d $(HOST_SUBDIR)/libiconv; then \
49955 cd $(HOST_SUBDIR); mv libiconv stage2-libiconv; \
49956 mv prev-libiconv stage1-libiconv; : ; \
49957 fi
49958@endif libiconv
72b2455a 49959@if zlib
22121df0
L
49960 @if test -d $(HOST_SUBDIR)/zlib; then \
49961 cd $(HOST_SUBDIR); mv zlib stage2-zlib; \
49962 mv prev-zlib stage1-zlib; : ; \
0aed8855 49963 fi
72b2455a 49964@endif zlib
700d40ca 49965@if lto-plugin
22121df0
L
49966 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
49967 cd $(HOST_SUBDIR); mv lto-plugin stage2-lto-plugin; \
49968 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
49969 fi
49970@endif lto-plugin
0e65dfba
NA
49971@if libctf
49972 @if test -d $(HOST_SUBDIR)/libctf; then \
49973 cd $(HOST_SUBDIR); mv libctf stage2-libctf; \
49974 mv prev-libctf stage1-libctf; : ; \
49975 fi
49976@endif libctf
22121df0
L
49977 @if test -d $(TARGET_SUBDIR); then \
49978 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); \
49979 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 49980 fi
80911fe1 49981 rm -f stage_current
72b2455a 49982
973601e1 49983# Bubble a bug fix through all the stages up to stage 2. They are
0aed8855 49984# remade, but not reconfigured. The next stage (if any) will not be
675492f0 49985# reconfigured either.
72b2455a
PB
49986.PHONY: stage2-bubble
49987stage2-bubble:: stage1-bubble
e360f423
PB
49988 @r=`${PWD_COMMAND}`; export r; \
49989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
49990 if test -f stage2-lean || test -f stage1-lean ; then \
49991 echo Skipping rebuild of stage2; \
9cb3fa6f 49992 else \
f70224b5
PB
49993 $(MAKE) stage2-start; \
49994 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
9cb3fa6f 49995 fi
72b2455a 49996
0df3d27f 49997.PHONY: all-stage2 clean-stage2
0df3d27f 49998do-clean: clean-stage2
0df3d27f 49999
72b2455a
PB
50000# FIXME: Will not need to be conditional when toplevel bootstrap is the
50001# only possibility, but now it conflicts with no-bootstrap rules
50002@if gcc-bootstrap
50003
50004
50005
80911fe1 50006.PHONY: bootstrap2 bootstrap2-lean
be01d343
PB
50007bootstrap2:
50008 echo stage2 > stage_final
50009 @r=`${PWD_COMMAND}`; export r; \
50010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50011 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
0aed8855 50012 @: $(MAKE); $(unstage)
be01d343
PB
50013 @r=`${PWD_COMMAND}`; export r; \
50014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50015 TFLAGS="$(STAGE2_TFLAGS)"; \
be01d343 50016 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
72b2455a 50017
80911fe1
PB
50018bootstrap2-lean:
50019 echo stage2 > stage_final
50020 @r=`${PWD_COMMAND}`; export r; \
50021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50022 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
50023 @: $(MAKE); $(unstage)
50024 @r=`${PWD_COMMAND}`; export r; \
50025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50026 TFLAGS="$(STAGE2_TFLAGS)"; \
80911fe1
PB
50027 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50028
72b2455a 50029
0df3d27f 50030# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 50031distclean-stage1:: distclean-stage2
0df3d27f 50032.PHONY: distclean-stage2
72b2455a 50033distclean-stage2::
0aed8855 50034 @: $(MAKE); $(stage)
e00a73e3 50035 @test "`cat stage_last`" != stage2 || rm -f stage_last
9cb3fa6f 50036 rm -rf stage2-*
72b2455a
PB
50037
50038
50039@endif gcc-bootstrap
50040
50041
50042.PHONY: stage3-start stage3-end
50043
50044stage3-start::
0aed8855 50045 @: $(MAKE); $(stage); \
22121df0 50046 echo stage3 > stage_current; \
b00612cc 50047 echo stage3 > stage_last; \
0aed8855 50048 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50049@if bfd
b00612cc
PB
50050 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
50051 mkdir stage3-bfd; \
22121df0 50052 mv stage3-bfd bfd; \
80911fe1 50053 mv stage2-bfd prev-bfd || test -f stage2-lean
72b2455a
PB
50054@endif bfd
50055@if opcodes
b00612cc
PB
50056 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
50057 mkdir stage3-opcodes; \
22121df0 50058 mv stage3-opcodes opcodes; \
80911fe1 50059 mv stage2-opcodes prev-opcodes || test -f stage2-lean
72b2455a
PB
50060@endif opcodes
50061@if binutils
b00612cc
PB
50062 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
50063 mkdir stage3-binutils; \
22121df0 50064 mv stage3-binutils binutils; \
80911fe1 50065 mv stage2-binutils prev-binutils || test -f stage2-lean
72b2455a 50066@endif binutils
201f096f 50067@if fixincludes
50068 @cd $(HOST_SUBDIR); [ -d stage3-fixincludes ] || \
50069 mkdir stage3-fixincludes; \
22121df0 50070 mv stage3-fixincludes fixincludes; \
201f096f 50071 mv stage2-fixincludes prev-fixincludes || test -f stage2-lean
50072@endif fixincludes
72b2455a 50073@if gas
b00612cc
PB
50074 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
50075 mkdir stage3-gas; \
22121df0 50076 mv stage3-gas gas; \
80911fe1 50077 mv stage2-gas prev-gas || test -f stage2-lean
72b2455a
PB
50078@endif gas
50079@if gcc
b00612cc
PB
50080 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
50081 mkdir stage3-gcc; \
22121df0 50082 mv stage3-gcc gcc; \
80911fe1 50083 mv stage2-gcc prev-gcc || test -f stage2-lean
72b2455a 50084@endif gcc
4b900473
PB
50085@if gmp
50086 @cd $(HOST_SUBDIR); [ -d stage3-gmp ] || \
50087 mkdir stage3-gmp; \
22121df0 50088 mv stage3-gmp gmp; \
4b900473
PB
50089 mv stage2-gmp prev-gmp || test -f stage2-lean
50090@endif gmp
50091@if mpfr
50092 @cd $(HOST_SUBDIR); [ -d stage3-mpfr ] || \
50093 mkdir stage3-mpfr; \
22121df0 50094 mv stage3-mpfr mpfr; \
4b900473
PB
50095 mv stage2-mpfr prev-mpfr || test -f stage2-lean
50096@endif mpfr
e8a5fa9c
RW
50097@if mpc
50098 @cd $(HOST_SUBDIR); [ -d stage3-mpc ] || \
50099 mkdir stage3-mpc; \
22121df0 50100 mv stage3-mpc mpc; \
e8a5fa9c
RW
50101 mv stage2-mpc prev-mpc || test -f stage2-lean
50102@endif mpc
7ec59b9e
L
50103@if isl
50104 @cd $(HOST_SUBDIR); [ -d stage3-isl ] || \
50105 mkdir stage3-isl; \
22121df0 50106 mv stage3-isl isl; \
7ec59b9e
L
50107 mv stage2-isl prev-isl || test -f stage2-lean
50108@endif isl
1f53ca9a
AO
50109@if libelf
50110 @cd $(HOST_SUBDIR); [ -d stage3-libelf ] || \
50111 mkdir stage3-libelf; \
22121df0 50112 mv stage3-libelf libelf; \
1f53ca9a
AO
50113 mv stage2-libelf prev-libelf || test -f stage2-lean
50114@endif libelf
93f9b408
ILT
50115@if gold
50116 @cd $(HOST_SUBDIR); [ -d stage3-gold ] || \
50117 mkdir stage3-gold; \
22121df0 50118 mv stage3-gold gold; \
93f9b408
ILT
50119 mv stage2-gold prev-gold || test -f stage2-lean
50120@endif gold
72b2455a 50121@if intl
b00612cc
PB
50122 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
50123 mkdir stage3-intl; \
22121df0 50124 mv stage3-intl intl; \
80911fe1 50125 mv stage2-intl prev-intl || test -f stage2-lean
72b2455a
PB
50126@endif intl
50127@if ld
b00612cc
PB
50128 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
50129 mkdir stage3-ld; \
22121df0 50130 mv stage3-ld ld; \
80911fe1 50131 mv stage2-ld prev-ld || test -f stage2-lean
72b2455a 50132@endif ld
2bf680c4
ILT
50133@if libbacktrace
50134 @cd $(HOST_SUBDIR); [ -d stage3-libbacktrace ] || \
50135 mkdir stage3-libbacktrace; \
22121df0 50136 mv stage3-libbacktrace libbacktrace; \
2bf680c4
ILT
50137 mv stage2-libbacktrace prev-libbacktrace || test -f stage2-lean
50138@endif libbacktrace
72b2455a 50139@if libcpp
b00612cc
PB
50140 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
50141 mkdir stage3-libcpp; \
22121df0 50142 mv stage3-libcpp libcpp; \
80911fe1 50143 mv stage2-libcpp prev-libcpp || test -f stage2-lean
72b2455a 50144@endif libcpp
be01d343
PB
50145@if libdecnumber
50146 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
50147 mkdir stage3-libdecnumber; \
22121df0 50148 mv stage3-libdecnumber libdecnumber; \
80911fe1 50149 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
be01d343 50150@endif libdecnumber
72b2455a 50151@if libiberty
b00612cc
PB
50152 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
50153 mkdir stage3-libiberty; \
22121df0 50154 mv stage3-libiberty libiberty; \
80911fe1 50155 mv stage2-libiberty prev-libiberty || test -f stage2-lean
72b2455a 50156@endif libiberty
1b6c0831
L
50157@if libiberty-linker-plugin
50158 @cd $(HOST_SUBDIR); [ -d stage3-libiberty-linker-plugin ] || \
50159 mkdir stage3-libiberty-linker-plugin; \
22121df0 50160 mv stage3-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50161 mv stage2-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage2-lean
50162@endif libiberty-linker-plugin
016a3251
DD
50163@if libiconv
50164 @cd $(HOST_SUBDIR); [ -d stage3-libiconv ] || \
50165 mkdir stage3-libiconv; \
50166 mv stage3-libiconv libiconv; \
50167 mv stage2-libiconv prev-libiconv || test -f stage2-lean
50168@endif libiconv
72b2455a 50169@if zlib
b00612cc
PB
50170 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
50171 mkdir stage3-zlib; \
22121df0 50172 mv stage3-zlib zlib; \
80911fe1 50173 mv stage2-zlib prev-zlib || test -f stage2-lean
72b2455a 50174@endif zlib
700d40ca
ILT
50175@if lto-plugin
50176 @cd $(HOST_SUBDIR); [ -d stage3-lto-plugin ] || \
50177 mkdir stage3-lto-plugin; \
22121df0 50178 mv stage3-lto-plugin lto-plugin; \
700d40ca
ILT
50179 mv stage2-lto-plugin prev-lto-plugin || test -f stage2-lean
50180@endif lto-plugin
0e65dfba
NA
50181@if libctf
50182 @cd $(HOST_SUBDIR); [ -d stage3-libctf ] || \
50183 mkdir stage3-libctf; \
50184 mv stage3-libctf libctf; \
50185 mv stage2-libctf prev-libctf || test -f stage2-lean
50186@endif libctf
0aed8855
PB
50187 @[ -d stage3-$(TARGET_SUBDIR) ] || \
50188 mkdir stage3-$(TARGET_SUBDIR); \
22121df0 50189 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50190 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
72b2455a 50191
80911fe1 50192stage3-end::
72b2455a 50193@if bfd
22121df0
L
50194 @if test -d $(HOST_SUBDIR)/bfd; then \
50195 cd $(HOST_SUBDIR); mv bfd stage3-bfd; \
50196 mv prev-bfd stage2-bfd; : ; \
0aed8855 50197 fi
72b2455a
PB
50198@endif bfd
50199@if opcodes
22121df0
L
50200 @if test -d $(HOST_SUBDIR)/opcodes; then \
50201 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes; \
50202 mv prev-opcodes stage2-opcodes; : ; \
0aed8855 50203 fi
72b2455a
PB
50204@endif opcodes
50205@if binutils
22121df0
L
50206 @if test -d $(HOST_SUBDIR)/binutils; then \
50207 cd $(HOST_SUBDIR); mv binutils stage3-binutils; \
50208 mv prev-binutils stage2-binutils; : ; \
0aed8855 50209 fi
72b2455a 50210@endif binutils
201f096f 50211@if fixincludes
22121df0
L
50212 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50213 cd $(HOST_SUBDIR); mv fixincludes stage3-fixincludes; \
50214 mv prev-fixincludes stage2-fixincludes; : ; \
201f096f 50215 fi
50216@endif fixincludes
72b2455a 50217@if gas
22121df0
L
50218 @if test -d $(HOST_SUBDIR)/gas; then \
50219 cd $(HOST_SUBDIR); mv gas stage3-gas; \
50220 mv prev-gas stage2-gas; : ; \
0aed8855 50221 fi
72b2455a
PB
50222@endif gas
50223@if gcc
22121df0
L
50224 @if test -d $(HOST_SUBDIR)/gcc; then \
50225 cd $(HOST_SUBDIR); mv gcc stage3-gcc; \
50226 mv prev-gcc stage2-gcc; : ; \
0aed8855 50227 fi
72b2455a 50228@endif gcc
4b900473 50229@if gmp
22121df0
L
50230 @if test -d $(HOST_SUBDIR)/gmp; then \
50231 cd $(HOST_SUBDIR); mv gmp stage3-gmp; \
50232 mv prev-gmp stage2-gmp; : ; \
4b900473
PB
50233 fi
50234@endif gmp
50235@if mpfr
22121df0
L
50236 @if test -d $(HOST_SUBDIR)/mpfr; then \
50237 cd $(HOST_SUBDIR); mv mpfr stage3-mpfr; \
50238 mv prev-mpfr stage2-mpfr; : ; \
4b900473
PB
50239 fi
50240@endif mpfr
e8a5fa9c 50241@if mpc
22121df0
L
50242 @if test -d $(HOST_SUBDIR)/mpc; then \
50243 cd $(HOST_SUBDIR); mv mpc stage3-mpc; \
50244 mv prev-mpc stage2-mpc; : ; \
e8a5fa9c
RW
50245 fi
50246@endif mpc
7ec59b9e 50247@if isl
22121df0
L
50248 @if test -d $(HOST_SUBDIR)/isl; then \
50249 cd $(HOST_SUBDIR); mv isl stage3-isl; \
50250 mv prev-isl stage2-isl; : ; \
e28c595f 50251 fi
7ec59b9e 50252@endif isl
1f53ca9a 50253@if libelf
22121df0
L
50254 @if test -d $(HOST_SUBDIR)/libelf; then \
50255 cd $(HOST_SUBDIR); mv libelf stage3-libelf; \
50256 mv prev-libelf stage2-libelf; : ; \
1f53ca9a
AO
50257 fi
50258@endif libelf
93f9b408 50259@if gold
22121df0
L
50260 @if test -d $(HOST_SUBDIR)/gold; then \
50261 cd $(HOST_SUBDIR); mv gold stage3-gold; \
50262 mv prev-gold stage2-gold; : ; \
93f9b408
ILT
50263 fi
50264@endif gold
72b2455a 50265@if intl
22121df0
L
50266 @if test -d $(HOST_SUBDIR)/intl; then \
50267 cd $(HOST_SUBDIR); mv intl stage3-intl; \
50268 mv prev-intl stage2-intl; : ; \
0aed8855 50269 fi
72b2455a
PB
50270@endif intl
50271@if ld
22121df0
L
50272 @if test -d $(HOST_SUBDIR)/ld; then \
50273 cd $(HOST_SUBDIR); mv ld stage3-ld; \
50274 mv prev-ld stage2-ld; : ; \
0aed8855 50275 fi
72b2455a 50276@endif ld
2bf680c4 50277@if libbacktrace
22121df0
L
50278 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50279 cd $(HOST_SUBDIR); mv libbacktrace stage3-libbacktrace; \
50280 mv prev-libbacktrace stage2-libbacktrace; : ; \
2bf680c4
ILT
50281 fi
50282@endif libbacktrace
72b2455a 50283@if libcpp
22121df0
L
50284 @if test -d $(HOST_SUBDIR)/libcpp; then \
50285 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp; \
50286 mv prev-libcpp stage2-libcpp; : ; \
0aed8855 50287 fi
72b2455a 50288@endif libcpp
be01d343 50289@if libdecnumber
22121df0
L
50290 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50291 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber; \
50292 mv prev-libdecnumber stage2-libdecnumber; : ; \
0aed8855 50293 fi
be01d343 50294@endif libdecnumber
72b2455a 50295@if libiberty
22121df0
L
50296 @if test -d $(HOST_SUBDIR)/libiberty; then \
50297 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty; \
50298 mv prev-libiberty stage2-libiberty; : ; \
0aed8855 50299 fi
72b2455a 50300@endif libiberty
1b6c0831 50301@if libiberty-linker-plugin
22121df0
L
50302 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50303 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage3-libiberty-linker-plugin; \
50304 mv prev-libiberty-linker-plugin stage2-libiberty-linker-plugin; : ; \
1b6c0831
L
50305 fi
50306@endif libiberty-linker-plugin
016a3251
DD
50307@if libiconv
50308 @if test -d $(HOST_SUBDIR)/libiconv; then \
50309 cd $(HOST_SUBDIR); mv libiconv stage3-libiconv; \
50310 mv prev-libiconv stage2-libiconv; : ; \
50311 fi
50312@endif libiconv
72b2455a 50313@if zlib
22121df0
L
50314 @if test -d $(HOST_SUBDIR)/zlib; then \
50315 cd $(HOST_SUBDIR); mv zlib stage3-zlib; \
50316 mv prev-zlib stage2-zlib; : ; \
0aed8855 50317 fi
72b2455a 50318@endif zlib
700d40ca 50319@if lto-plugin
22121df0
L
50320 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50321 cd $(HOST_SUBDIR); mv lto-plugin stage3-lto-plugin; \
50322 mv prev-lto-plugin stage2-lto-plugin; : ; \
700d40ca
ILT
50323 fi
50324@endif lto-plugin
0e65dfba
NA
50325@if libctf
50326 @if test -d $(HOST_SUBDIR)/libctf; then \
50327 cd $(HOST_SUBDIR); mv libctf stage3-libctf; \
50328 mv prev-libctf stage2-libctf; : ; \
50329 fi
50330@endif libctf
22121df0
L
50331 @if test -d $(TARGET_SUBDIR); then \
50332 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); \
50333 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR); : ; \
0aed8855 50334 fi
80911fe1 50335 rm -f stage_current
72b2455a 50336
973601e1 50337# Bubble a bug fix through all the stages up to stage 3. They are
0aed8855 50338# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50339# reconfigured either.
72b2455a
PB
50340.PHONY: stage3-bubble
50341stage3-bubble:: stage2-bubble
e360f423
PB
50342 @r=`${PWD_COMMAND}`; export r; \
50343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50344 if test -f stage3-lean || test -f stage2-lean ; then \
50345 echo Skipping rebuild of stage3; \
9cb3fa6f 50346 else \
f70224b5 50347 $(MAKE) stage3-start; \
80911fe1 50348 if $(LEAN); then \
22121df0
L
50349 rm -rf stage1-*; \
50350 $(STAMP) stage1-lean; \
80911fe1 50351 fi; \
f70224b5 50352 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
9cb3fa6f 50353 fi
f6d183c0 50354 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
72b2455a 50355
0df3d27f 50356.PHONY: all-stage3 clean-stage3
0df3d27f 50357do-clean: clean-stage3
0df3d27f 50358
d545f33b
PB
50359# FIXME: Will not need to be conditional when toplevel bootstrap is the
50360# only possibility, but now it conflicts with no-bootstrap rules
50361@if gcc-bootstrap
72b2455a 50362
d545f33b 50363compare:
e360f423
PB
50364 @r=`${PWD_COMMAND}`; export r; \
50365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50366 if test -f stage2-lean; then \
22121df0
L
50367 echo Cannot compare object files as stage 2 was deleted.; \
50368 exit 0; \
d545f33b 50369 fi; \
0aed8855 50370 : $(MAKE); $(stage); \
22121df0
L
50371 rm -f .bad_compare; \
50372 echo Comparing stages 2 and 3; \
fda13ee8
AO
50373 sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
50374 files=`find stage3-* -name "*$(objext)" -print | \
22121df0 50375 sed -n s,^stage$$sed-,,p`; \
e3f56a99 50376 for file in $${files}; do \
fda13ee8
AO
50377 f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
50378 if test ! -f $$f1; then continue; fi; \
8520c408 50379 $(do-compare) > /dev/null 2>&1; \
f70224b5
PB
50380 if test $$? -eq 1; then \
50381 case $$file in \
e8a5fa9c 50382 @compare_exclusions@) \
f70224b5
PB
50383 echo warning: $$file differs ;; \
50384 *) \
50385 echo $$file differs >> .bad_compare ;; \
22121df0
L
50386 esac; \
50387 fi; \
50388 done; \
d545f33b
PB
50389 if [ -f .bad_compare ]; then \
50390 echo "Bootstrap comparison failure!"; \
50391 cat .bad_compare; \
50392 exit 1; \
50393 else \
c52c6897 50394 echo Comparison successful.; \
22121df0 50395 fi; \
d545f33b 50396 $(STAMP) compare
80911fe1
PB
50397 if $(LEAN); then \
50398 rm -rf stage2-*; \
50399 $(STAMP) stage2-lean; \
50400 fi
9cb3fa6f 50401
72b2455a 50402
72b2455a 50403
80911fe1 50404.PHONY: bootstrap bootstrap-lean
be01d343
PB
50405bootstrap:
50406 echo stage3 > stage_final
50407 @r=`${PWD_COMMAND}`; export r; \
50408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50409 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
0aed8855 50410 @: $(MAKE); $(unstage)
be01d343
PB
50411 @r=`${PWD_COMMAND}`; export r; \
50412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50413 TFLAGS="$(STAGE3_TFLAGS)"; \
be01d343 50414 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 50415
80911fe1
PB
50416bootstrap-lean:
50417 echo stage3 > stage_final
50418 @r=`${PWD_COMMAND}`; export r; \
50419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50420 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
50421 @: $(MAKE); $(unstage)
50422 @r=`${PWD_COMMAND}`; export r; \
50423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50424 TFLAGS="$(STAGE3_TFLAGS)"; \
80911fe1
PB
50425 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50426
72b2455a 50427
d545f33b
PB
50428# Rules to wipe a stage and all the following ones, also used for cleanstrap
50429distclean-stage2:: distclean-stage3
50430.PHONY: distclean-stage3
50431distclean-stage3::
0aed8855 50432 @: $(MAKE); $(stage)
e00a73e3 50433 @test "`cat stage_last`" != stage3 || rm -f stage_last
d545f33b 50434 rm -rf stage3-* compare
0df3d27f 50435
9cb3fa6f 50436
d545f33b 50437.PHONY: cleanstrap
e00a73e3
PB
50438cleanstrap: do-distclean local-clean
50439 echo stage3 > stage_final
50440 @r=`${PWD_COMMAND}`; export r; \
50441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50442 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
50443 @: $(MAKE); $(unstage)
50444 @r=`${PWD_COMMAND}`; export r; \
50445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50446 TFLAGS="$(STAGE3_TFLAGS)"; \
8520c408
AO
50447 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50448
50449@endif gcc-bootstrap
50450
50451
72b2455a
PB
50452.PHONY: stage4-start stage4-end
50453
50454stage4-start::
0aed8855 50455 @: $(MAKE); $(stage); \
22121df0 50456 echo stage4 > stage_current; \
b00612cc 50457 echo stage4 > stage_last; \
0aed8855 50458 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50459@if bfd
b00612cc
PB
50460 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
50461 mkdir stage4-bfd; \
22121df0 50462 mv stage4-bfd bfd; \
80911fe1 50463 mv stage3-bfd prev-bfd || test -f stage3-lean
72b2455a
PB
50464@endif bfd
50465@if opcodes
b00612cc
PB
50466 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
50467 mkdir stage4-opcodes; \
22121df0 50468 mv stage4-opcodes opcodes; \
80911fe1 50469 mv stage3-opcodes prev-opcodes || test -f stage3-lean
72b2455a
PB
50470@endif opcodes
50471@if binutils
b00612cc
PB
50472 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
50473 mkdir stage4-binutils; \
22121df0 50474 mv stage4-binutils binutils; \
80911fe1 50475 mv stage3-binutils prev-binutils || test -f stage3-lean
72b2455a 50476@endif binutils
201f096f 50477@if fixincludes
50478 @cd $(HOST_SUBDIR); [ -d stage4-fixincludes ] || \
50479 mkdir stage4-fixincludes; \
22121df0 50480 mv stage4-fixincludes fixincludes; \
201f096f 50481 mv stage3-fixincludes prev-fixincludes || test -f stage3-lean
50482@endif fixincludes
72b2455a 50483@if gas
b00612cc
PB
50484 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
50485 mkdir stage4-gas; \
22121df0 50486 mv stage4-gas gas; \
80911fe1 50487 mv stage3-gas prev-gas || test -f stage3-lean
72b2455a
PB
50488@endif gas
50489@if gcc
b00612cc
PB
50490 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
50491 mkdir stage4-gcc; \
22121df0 50492 mv stage4-gcc gcc; \
80911fe1 50493 mv stage3-gcc prev-gcc || test -f stage3-lean
72b2455a 50494@endif gcc
4b900473
PB
50495@if gmp
50496 @cd $(HOST_SUBDIR); [ -d stage4-gmp ] || \
50497 mkdir stage4-gmp; \
22121df0 50498 mv stage4-gmp gmp; \
4b900473
PB
50499 mv stage3-gmp prev-gmp || test -f stage3-lean
50500@endif gmp
50501@if mpfr
50502 @cd $(HOST_SUBDIR); [ -d stage4-mpfr ] || \
50503 mkdir stage4-mpfr; \
22121df0 50504 mv stage4-mpfr mpfr; \
4b900473
PB
50505 mv stage3-mpfr prev-mpfr || test -f stage3-lean
50506@endif mpfr
e8a5fa9c
RW
50507@if mpc
50508 @cd $(HOST_SUBDIR); [ -d stage4-mpc ] || \
50509 mkdir stage4-mpc; \
22121df0 50510 mv stage4-mpc mpc; \
e8a5fa9c
RW
50511 mv stage3-mpc prev-mpc || test -f stage3-lean
50512@endif mpc
7ec59b9e
L
50513@if isl
50514 @cd $(HOST_SUBDIR); [ -d stage4-isl ] || \
50515 mkdir stage4-isl; \
22121df0 50516 mv stage4-isl isl; \
7ec59b9e
L
50517 mv stage3-isl prev-isl || test -f stage3-lean
50518@endif isl
1f53ca9a
AO
50519@if libelf
50520 @cd $(HOST_SUBDIR); [ -d stage4-libelf ] || \
50521 mkdir stage4-libelf; \
22121df0 50522 mv stage4-libelf libelf; \
1f53ca9a
AO
50523 mv stage3-libelf prev-libelf || test -f stage3-lean
50524@endif libelf
93f9b408
ILT
50525@if gold
50526 @cd $(HOST_SUBDIR); [ -d stage4-gold ] || \
50527 mkdir stage4-gold; \
22121df0 50528 mv stage4-gold gold; \
93f9b408
ILT
50529 mv stage3-gold prev-gold || test -f stage3-lean
50530@endif gold
72b2455a 50531@if intl
b00612cc
PB
50532 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
50533 mkdir stage4-intl; \
22121df0 50534 mv stage4-intl intl; \
80911fe1 50535 mv stage3-intl prev-intl || test -f stage3-lean
72b2455a
PB
50536@endif intl
50537@if ld
b00612cc
PB
50538 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
50539 mkdir stage4-ld; \
22121df0 50540 mv stage4-ld ld; \
80911fe1 50541 mv stage3-ld prev-ld || test -f stage3-lean
72b2455a 50542@endif ld
2bf680c4
ILT
50543@if libbacktrace
50544 @cd $(HOST_SUBDIR); [ -d stage4-libbacktrace ] || \
50545 mkdir stage4-libbacktrace; \
22121df0 50546 mv stage4-libbacktrace libbacktrace; \
2bf680c4
ILT
50547 mv stage3-libbacktrace prev-libbacktrace || test -f stage3-lean
50548@endif libbacktrace
72b2455a 50549@if libcpp
b00612cc
PB
50550 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
50551 mkdir stage4-libcpp; \
22121df0 50552 mv stage4-libcpp libcpp; \
80911fe1 50553 mv stage3-libcpp prev-libcpp || test -f stage3-lean
72b2455a 50554@endif libcpp
be01d343
PB
50555@if libdecnumber
50556 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
50557 mkdir stage4-libdecnumber; \
22121df0 50558 mv stage4-libdecnumber libdecnumber; \
80911fe1 50559 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
be01d343 50560@endif libdecnumber
72b2455a 50561@if libiberty
b00612cc
PB
50562 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
50563 mkdir stage4-libiberty; \
22121df0 50564 mv stage4-libiberty libiberty; \
80911fe1 50565 mv stage3-libiberty prev-libiberty || test -f stage3-lean
72b2455a 50566@endif libiberty
1b6c0831
L
50567@if libiberty-linker-plugin
50568 @cd $(HOST_SUBDIR); [ -d stage4-libiberty-linker-plugin ] || \
50569 mkdir stage4-libiberty-linker-plugin; \
22121df0 50570 mv stage4-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50571 mv stage3-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage3-lean
50572@endif libiberty-linker-plugin
016a3251
DD
50573@if libiconv
50574 @cd $(HOST_SUBDIR); [ -d stage4-libiconv ] || \
50575 mkdir stage4-libiconv; \
50576 mv stage4-libiconv libiconv; \
50577 mv stage3-libiconv prev-libiconv || test -f stage3-lean
50578@endif libiconv
72b2455a 50579@if zlib
b00612cc
PB
50580 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
50581 mkdir stage4-zlib; \
22121df0 50582 mv stage4-zlib zlib; \
80911fe1 50583 mv stage3-zlib prev-zlib || test -f stage3-lean
72b2455a 50584@endif zlib
700d40ca
ILT
50585@if lto-plugin
50586 @cd $(HOST_SUBDIR); [ -d stage4-lto-plugin ] || \
50587 mkdir stage4-lto-plugin; \
22121df0 50588 mv stage4-lto-plugin lto-plugin; \
700d40ca
ILT
50589 mv stage3-lto-plugin prev-lto-plugin || test -f stage3-lean
50590@endif lto-plugin
0e65dfba
NA
50591@if libctf
50592 @cd $(HOST_SUBDIR); [ -d stage4-libctf ] || \
50593 mkdir stage4-libctf; \
50594 mv stage4-libctf libctf; \
50595 mv stage3-libctf prev-libctf || test -f stage3-lean
50596@endif libctf
0aed8855
PB
50597 @[ -d stage4-$(TARGET_SUBDIR) ] || \
50598 mkdir stage4-$(TARGET_SUBDIR); \
22121df0 50599 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50600 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
72b2455a 50601
80911fe1 50602stage4-end::
72b2455a 50603@if bfd
22121df0
L
50604 @if test -d $(HOST_SUBDIR)/bfd; then \
50605 cd $(HOST_SUBDIR); mv bfd stage4-bfd; \
50606 mv prev-bfd stage3-bfd; : ; \
0aed8855 50607 fi
72b2455a
PB
50608@endif bfd
50609@if opcodes
22121df0
L
50610 @if test -d $(HOST_SUBDIR)/opcodes; then \
50611 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes; \
50612 mv prev-opcodes stage3-opcodes; : ; \
0aed8855 50613 fi
72b2455a
PB
50614@endif opcodes
50615@if binutils
22121df0
L
50616 @if test -d $(HOST_SUBDIR)/binutils; then \
50617 cd $(HOST_SUBDIR); mv binutils stage4-binutils; \
50618 mv prev-binutils stage3-binutils; : ; \
0aed8855 50619 fi
72b2455a 50620@endif binutils
201f096f 50621@if fixincludes
22121df0
L
50622 @if test -d $(HOST_SUBDIR)/fixincludes; then \
50623 cd $(HOST_SUBDIR); mv fixincludes stage4-fixincludes; \
50624 mv prev-fixincludes stage3-fixincludes; : ; \
201f096f 50625 fi
50626@endif fixincludes
72b2455a 50627@if gas
22121df0
L
50628 @if test -d $(HOST_SUBDIR)/gas; then \
50629 cd $(HOST_SUBDIR); mv gas stage4-gas; \
50630 mv prev-gas stage3-gas; : ; \
0aed8855 50631 fi
72b2455a
PB
50632@endif gas
50633@if gcc
22121df0
L
50634 @if test -d $(HOST_SUBDIR)/gcc; then \
50635 cd $(HOST_SUBDIR); mv gcc stage4-gcc; \
50636 mv prev-gcc stage3-gcc; : ; \
0aed8855 50637 fi
72b2455a 50638@endif gcc
4b900473 50639@if gmp
22121df0
L
50640 @if test -d $(HOST_SUBDIR)/gmp; then \
50641 cd $(HOST_SUBDIR); mv gmp stage4-gmp; \
50642 mv prev-gmp stage3-gmp; : ; \
4b900473
PB
50643 fi
50644@endif gmp
50645@if mpfr
22121df0
L
50646 @if test -d $(HOST_SUBDIR)/mpfr; then \
50647 cd $(HOST_SUBDIR); mv mpfr stage4-mpfr; \
50648 mv prev-mpfr stage3-mpfr; : ; \
4b900473
PB
50649 fi
50650@endif mpfr
e8a5fa9c 50651@if mpc
22121df0
L
50652 @if test -d $(HOST_SUBDIR)/mpc; then \
50653 cd $(HOST_SUBDIR); mv mpc stage4-mpc; \
50654 mv prev-mpc stage3-mpc; : ; \
e8a5fa9c
RW
50655 fi
50656@endif mpc
7ec59b9e 50657@if isl
22121df0
L
50658 @if test -d $(HOST_SUBDIR)/isl; then \
50659 cd $(HOST_SUBDIR); mv isl stage4-isl; \
50660 mv prev-isl stage3-isl; : ; \
e28c595f 50661 fi
7ec59b9e 50662@endif isl
1f53ca9a 50663@if libelf
22121df0
L
50664 @if test -d $(HOST_SUBDIR)/libelf; then \
50665 cd $(HOST_SUBDIR); mv libelf stage4-libelf; \
50666 mv prev-libelf stage3-libelf; : ; \
1f53ca9a
AO
50667 fi
50668@endif libelf
93f9b408 50669@if gold
22121df0
L
50670 @if test -d $(HOST_SUBDIR)/gold; then \
50671 cd $(HOST_SUBDIR); mv gold stage4-gold; \
50672 mv prev-gold stage3-gold; : ; \
93f9b408
ILT
50673 fi
50674@endif gold
72b2455a 50675@if intl
22121df0
L
50676 @if test -d $(HOST_SUBDIR)/intl; then \
50677 cd $(HOST_SUBDIR); mv intl stage4-intl; \
50678 mv prev-intl stage3-intl; : ; \
0aed8855 50679 fi
72b2455a
PB
50680@endif intl
50681@if ld
22121df0
L
50682 @if test -d $(HOST_SUBDIR)/ld; then \
50683 cd $(HOST_SUBDIR); mv ld stage4-ld; \
50684 mv prev-ld stage3-ld; : ; \
0aed8855 50685 fi
72b2455a 50686@endif ld
2bf680c4 50687@if libbacktrace
22121df0
L
50688 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
50689 cd $(HOST_SUBDIR); mv libbacktrace stage4-libbacktrace; \
50690 mv prev-libbacktrace stage3-libbacktrace; : ; \
2bf680c4
ILT
50691 fi
50692@endif libbacktrace
72b2455a 50693@if libcpp
22121df0
L
50694 @if test -d $(HOST_SUBDIR)/libcpp; then \
50695 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp; \
50696 mv prev-libcpp stage3-libcpp; : ; \
0aed8855 50697 fi
72b2455a 50698@endif libcpp
be01d343 50699@if libdecnumber
22121df0
L
50700 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
50701 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber; \
50702 mv prev-libdecnumber stage3-libdecnumber; : ; \
0aed8855 50703 fi
be01d343 50704@endif libdecnumber
72b2455a 50705@if libiberty
22121df0
L
50706 @if test -d $(HOST_SUBDIR)/libiberty; then \
50707 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty; \
50708 mv prev-libiberty stage3-libiberty; : ; \
0aed8855 50709 fi
72b2455a 50710@endif libiberty
1b6c0831 50711@if libiberty-linker-plugin
22121df0
L
50712 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
50713 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stage4-libiberty-linker-plugin; \
50714 mv prev-libiberty-linker-plugin stage3-libiberty-linker-plugin; : ; \
1b6c0831
L
50715 fi
50716@endif libiberty-linker-plugin
016a3251
DD
50717@if libiconv
50718 @if test -d $(HOST_SUBDIR)/libiconv; then \
50719 cd $(HOST_SUBDIR); mv libiconv stage4-libiconv; \
50720 mv prev-libiconv stage3-libiconv; : ; \
50721 fi
50722@endif libiconv
72b2455a 50723@if zlib
22121df0
L
50724 @if test -d $(HOST_SUBDIR)/zlib; then \
50725 cd $(HOST_SUBDIR); mv zlib stage4-zlib; \
50726 mv prev-zlib stage3-zlib; : ; \
0aed8855 50727 fi
72b2455a 50728@endif zlib
700d40ca 50729@if lto-plugin
22121df0
L
50730 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
50731 cd $(HOST_SUBDIR); mv lto-plugin stage4-lto-plugin; \
50732 mv prev-lto-plugin stage3-lto-plugin; : ; \
700d40ca
ILT
50733 fi
50734@endif lto-plugin
0e65dfba
NA
50735@if libctf
50736 @if test -d $(HOST_SUBDIR)/libctf; then \
50737 cd $(HOST_SUBDIR); mv libctf stage4-libctf; \
50738 mv prev-libctf stage3-libctf; : ; \
50739 fi
50740@endif libctf
22121df0
L
50741 @if test -d $(TARGET_SUBDIR); then \
50742 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR); \
50743 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR); : ; \
0aed8855 50744 fi
80911fe1 50745 rm -f stage_current
72b2455a 50746
973601e1 50747# Bubble a bug fix through all the stages up to stage 4. They are
0aed8855 50748# remade, but not reconfigured. The next stage (if any) will not be
675492f0 50749# reconfigured either.
72b2455a
PB
50750.PHONY: stage4-bubble
50751stage4-bubble:: stage3-bubble
e360f423
PB
50752 @r=`${PWD_COMMAND}`; export r; \
50753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
50754 if test -f stage4-lean || test -f stage3-lean ; then \
50755 echo Skipping rebuild of stage4; \
9cb3fa6f 50756 else \
f70224b5 50757 $(MAKE) stage4-start; \
80911fe1 50758 if $(LEAN); then \
22121df0
L
50759 rm -rf stage2-*; \
50760 $(STAMP) stage2-lean; \
80911fe1 50761 fi; \
f70224b5 50762 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
9cb3fa6f 50763 fi
f6d183c0 50764 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
72b2455a 50765
0df3d27f 50766.PHONY: all-stage4 clean-stage4
0df3d27f 50767do-clean: clean-stage4
0df3d27f 50768
d545f33b
PB
50769# FIXME: Will not need to be conditional when toplevel bootstrap is the
50770# only possibility, but now it conflicts with no-bootstrap rules
50771@if gcc-bootstrap
72b2455a 50772
d545f33b 50773compare3:
e360f423
PB
50774 @r=`${PWD_COMMAND}`; export r; \
50775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50776 if test -f stage3-lean; then \
22121df0
L
50777 echo Cannot compare object files as stage 3 was deleted.; \
50778 exit 0; \
d545f33b 50779 fi; \
0aed8855 50780 : $(MAKE); $(stage); \
22121df0
L
50781 rm -f .bad_compare; \
50782 echo Comparing stages 3 and 4; \
fda13ee8
AO
50783 sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
50784 files=`find stage4-* -name "*$(objext)" -print | \
22121df0 50785 sed -n s,^stage$$sed-,,p`; \
e3f56a99 50786 for file in $${files}; do \
fda13ee8
AO
50787 f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
50788 if test ! -f $$f1; then continue; fi; \
8520c408 50789 $(do-compare3) > /dev/null 2>&1; \
f70224b5
PB
50790 if test $$? -eq 1; then \
50791 case $$file in \
e8a5fa9c 50792 @compare_exclusions@) \
f70224b5
PB
50793 echo warning: $$file differs ;; \
50794 *) \
50795 echo $$file differs >> .bad_compare ;; \
22121df0
L
50796 esac; \
50797 fi; \
50798 done; \
d545f33b
PB
50799 if [ -f .bad_compare ]; then \
50800 echo "Bootstrap comparison failure!"; \
50801 cat .bad_compare; \
50802 exit 1; \
50803 else \
c52c6897 50804 echo Comparison successful.; \
22121df0 50805 fi; \
d545f33b 50806 $(STAMP) compare3
80911fe1
PB
50807 if $(LEAN); then \
50808 rm -rf stage3-*; \
50809 $(STAMP) stage3-lean; \
50810 fi
9cb3fa6f 50811
72b2455a 50812
72b2455a 50813
80911fe1 50814.PHONY: bootstrap4 bootstrap4-lean
be01d343
PB
50815bootstrap4:
50816 echo stage4 > stage_final
50817 @r=`${PWD_COMMAND}`; export r; \
50818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50819 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
0aed8855 50820 @: $(MAKE); $(unstage)
be01d343
PB
50821 @r=`${PWD_COMMAND}`; export r; \
50822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50823 TFLAGS="$(STAGE4_TFLAGS)"; \
be01d343 50824 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
0df3d27f 50825
80911fe1
PB
50826bootstrap4-lean:
50827 echo stage4 > stage_final
50828 @r=`${PWD_COMMAND}`; export r; \
50829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
50830 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
50831 @: $(MAKE); $(unstage)
50832 @r=`${PWD_COMMAND}`; export r; \
50833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 50834 TFLAGS="$(STAGE4_TFLAGS)"; \
80911fe1
PB
50835 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
50836
72b2455a 50837
d545f33b
PB
50838# Rules to wipe a stage and all the following ones, also used for cleanstrap
50839distclean-stage3:: distclean-stage4
50840.PHONY: distclean-stage4
50841distclean-stage4::
0aed8855 50842 @: $(MAKE); $(stage)
e00a73e3 50843 @test "`cat stage_last`" != stage4 || rm -f stage_last
d545f33b 50844 rm -rf stage4-* compare3
0df3d27f 50845
9cb3fa6f 50846
d545f33b 50847@endif gcc-bootstrap
72b2455a
PB
50848
50849
50850.PHONY: stageprofile-start stageprofile-end
50851
50852stageprofile-start::
0aed8855 50853 @: $(MAKE); $(stage); \
22121df0 50854 echo stageprofile > stage_current; \
b00612cc 50855 echo stageprofile > stage_last; \
0aed8855 50856 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 50857@if bfd
b00612cc
PB
50858 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
50859 mkdir stageprofile-bfd; \
22121df0 50860 mv stageprofile-bfd bfd; \
80911fe1 50861 mv stage1-bfd prev-bfd || test -f stage1-lean
72b2455a
PB
50862@endif bfd
50863@if opcodes
b00612cc
PB
50864 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
50865 mkdir stageprofile-opcodes; \
22121df0 50866 mv stageprofile-opcodes opcodes; \
80911fe1 50867 mv stage1-opcodes prev-opcodes || test -f stage1-lean
72b2455a
PB
50868@endif opcodes
50869@if binutils
b00612cc
PB
50870 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
50871 mkdir stageprofile-binutils; \
22121df0 50872 mv stageprofile-binutils binutils; \
80911fe1 50873 mv stage1-binutils prev-binutils || test -f stage1-lean
72b2455a 50874@endif binutils
201f096f 50875@if fixincludes
50876 @cd $(HOST_SUBDIR); [ -d stageprofile-fixincludes ] || \
50877 mkdir stageprofile-fixincludes; \
22121df0 50878 mv stageprofile-fixincludes fixincludes; \
201f096f 50879 mv stage1-fixincludes prev-fixincludes || test -f stage1-lean
50880@endif fixincludes
72b2455a 50881@if gas
b00612cc
PB
50882 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
50883 mkdir stageprofile-gas; \
22121df0 50884 mv stageprofile-gas gas; \
80911fe1 50885 mv stage1-gas prev-gas || test -f stage1-lean
72b2455a
PB
50886@endif gas
50887@if gcc
b00612cc
PB
50888 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
50889 mkdir stageprofile-gcc; \
22121df0 50890 mv stageprofile-gcc gcc; \
80911fe1 50891 mv stage1-gcc prev-gcc || test -f stage1-lean
72b2455a 50892@endif gcc
4b900473
PB
50893@if gmp
50894 @cd $(HOST_SUBDIR); [ -d stageprofile-gmp ] || \
50895 mkdir stageprofile-gmp; \
22121df0 50896 mv stageprofile-gmp gmp; \
4b900473
PB
50897 mv stage1-gmp prev-gmp || test -f stage1-lean
50898@endif gmp
50899@if mpfr
50900 @cd $(HOST_SUBDIR); [ -d stageprofile-mpfr ] || \
50901 mkdir stageprofile-mpfr; \
22121df0 50902 mv stageprofile-mpfr mpfr; \
4b900473
PB
50903 mv stage1-mpfr prev-mpfr || test -f stage1-lean
50904@endif mpfr
e8a5fa9c
RW
50905@if mpc
50906 @cd $(HOST_SUBDIR); [ -d stageprofile-mpc ] || \
50907 mkdir stageprofile-mpc; \
22121df0 50908 mv stageprofile-mpc mpc; \
e8a5fa9c
RW
50909 mv stage1-mpc prev-mpc || test -f stage1-lean
50910@endif mpc
7ec59b9e
L
50911@if isl
50912 @cd $(HOST_SUBDIR); [ -d stageprofile-isl ] || \
50913 mkdir stageprofile-isl; \
22121df0 50914 mv stageprofile-isl isl; \
7ec59b9e
L
50915 mv stage1-isl prev-isl || test -f stage1-lean
50916@endif isl
1f53ca9a
AO
50917@if libelf
50918 @cd $(HOST_SUBDIR); [ -d stageprofile-libelf ] || \
50919 mkdir stageprofile-libelf; \
22121df0 50920 mv stageprofile-libelf libelf; \
1f53ca9a
AO
50921 mv stage1-libelf prev-libelf || test -f stage1-lean
50922@endif libelf
93f9b408
ILT
50923@if gold
50924 @cd $(HOST_SUBDIR); [ -d stageprofile-gold ] || \
50925 mkdir stageprofile-gold; \
22121df0 50926 mv stageprofile-gold gold; \
93f9b408
ILT
50927 mv stage1-gold prev-gold || test -f stage1-lean
50928@endif gold
72b2455a 50929@if intl
b00612cc
PB
50930 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
50931 mkdir stageprofile-intl; \
22121df0 50932 mv stageprofile-intl intl; \
80911fe1 50933 mv stage1-intl prev-intl || test -f stage1-lean
72b2455a
PB
50934@endif intl
50935@if ld
b00612cc
PB
50936 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
50937 mkdir stageprofile-ld; \
22121df0 50938 mv stageprofile-ld ld; \
80911fe1 50939 mv stage1-ld prev-ld || test -f stage1-lean
72b2455a 50940@endif ld
2bf680c4
ILT
50941@if libbacktrace
50942 @cd $(HOST_SUBDIR); [ -d stageprofile-libbacktrace ] || \
50943 mkdir stageprofile-libbacktrace; \
22121df0 50944 mv stageprofile-libbacktrace libbacktrace; \
2bf680c4
ILT
50945 mv stage1-libbacktrace prev-libbacktrace || test -f stage1-lean
50946@endif libbacktrace
72b2455a 50947@if libcpp
b00612cc
PB
50948 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
50949 mkdir stageprofile-libcpp; \
22121df0 50950 mv stageprofile-libcpp libcpp; \
80911fe1 50951 mv stage1-libcpp prev-libcpp || test -f stage1-lean
72b2455a 50952@endif libcpp
be01d343
PB
50953@if libdecnumber
50954 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
50955 mkdir stageprofile-libdecnumber; \
22121df0 50956 mv stageprofile-libdecnumber libdecnumber; \
80911fe1 50957 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
be01d343 50958@endif libdecnumber
72b2455a 50959@if libiberty
b00612cc
PB
50960 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
50961 mkdir stageprofile-libiberty; \
22121df0 50962 mv stageprofile-libiberty libiberty; \
80911fe1 50963 mv stage1-libiberty prev-libiberty || test -f stage1-lean
72b2455a 50964@endif libiberty
1b6c0831
L
50965@if libiberty-linker-plugin
50966 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty-linker-plugin ] || \
50967 mkdir stageprofile-libiberty-linker-plugin; \
22121df0 50968 mv stageprofile-libiberty-linker-plugin libiberty-linker-plugin; \
1b6c0831
L
50969 mv stage1-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stage1-lean
50970@endif libiberty-linker-plugin
016a3251
DD
50971@if libiconv
50972 @cd $(HOST_SUBDIR); [ -d stageprofile-libiconv ] || \
50973 mkdir stageprofile-libiconv; \
50974 mv stageprofile-libiconv libiconv; \
50975 mv stage1-libiconv prev-libiconv || test -f stage1-lean
50976@endif libiconv
72b2455a 50977@if zlib
d545f33b
PB
50978 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
50979 mkdir stageprofile-zlib; \
22121df0 50980 mv stageprofile-zlib zlib; \
80911fe1 50981 mv stage1-zlib prev-zlib || test -f stage1-lean
d545f33b 50982@endif zlib
700d40ca
ILT
50983@if lto-plugin
50984 @cd $(HOST_SUBDIR); [ -d stageprofile-lto-plugin ] || \
50985 mkdir stageprofile-lto-plugin; \
22121df0 50986 mv stageprofile-lto-plugin lto-plugin; \
700d40ca
ILT
50987 mv stage1-lto-plugin prev-lto-plugin || test -f stage1-lean
50988@endif lto-plugin
0e65dfba
NA
50989@if libctf
50990 @cd $(HOST_SUBDIR); [ -d stageprofile-libctf ] || \
50991 mkdir stageprofile-libctf; \
50992 mv stageprofile-libctf libctf; \
50993 mv stage1-libctf prev-libctf || test -f stage1-lean
50994@endif libctf
0aed8855
PB
50995 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
50996 mkdir stageprofile-$(TARGET_SUBDIR); \
22121df0 50997 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
80911fe1 50998 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
0df3d27f 50999
80911fe1 51000stageprofile-end::
d545f33b 51001@if bfd
22121df0
L
51002 @if test -d $(HOST_SUBDIR)/bfd; then \
51003 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd; \
51004 mv prev-bfd stage1-bfd; : ; \
0aed8855 51005 fi
d545f33b
PB
51006@endif bfd
51007@if opcodes
22121df0
L
51008 @if test -d $(HOST_SUBDIR)/opcodes; then \
51009 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes; \
51010 mv prev-opcodes stage1-opcodes; : ; \
0aed8855 51011 fi
d545f33b
PB
51012@endif opcodes
51013@if binutils
22121df0
L
51014 @if test -d $(HOST_SUBDIR)/binutils; then \
51015 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils; \
51016 mv prev-binutils stage1-binutils; : ; \
0aed8855 51017 fi
d545f33b 51018@endif binutils
201f096f 51019@if fixincludes
22121df0
L
51020 @if test -d $(HOST_SUBDIR)/fixincludes; then \
51021 cd $(HOST_SUBDIR); mv fixincludes stageprofile-fixincludes; \
51022 mv prev-fixincludes stage1-fixincludes; : ; \
201f096f 51023 fi
51024@endif fixincludes
d545f33b 51025@if gas
22121df0
L
51026 @if test -d $(HOST_SUBDIR)/gas; then \
51027 cd $(HOST_SUBDIR); mv gas stageprofile-gas; \
51028 mv prev-gas stage1-gas; : ; \
0aed8855 51029 fi
d545f33b
PB
51030@endif gas
51031@if gcc
22121df0
L
51032 @if test -d $(HOST_SUBDIR)/gcc; then \
51033 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc; \
51034 mv prev-gcc stage1-gcc; : ; \
0aed8855 51035 fi
d545f33b 51036@endif gcc
4b900473 51037@if gmp
22121df0
L
51038 @if test -d $(HOST_SUBDIR)/gmp; then \
51039 cd $(HOST_SUBDIR); mv gmp stageprofile-gmp; \
51040 mv prev-gmp stage1-gmp; : ; \
4b900473
PB
51041 fi
51042@endif gmp
51043@if mpfr
22121df0
L
51044 @if test -d $(HOST_SUBDIR)/mpfr; then \
51045 cd $(HOST_SUBDIR); mv mpfr stageprofile-mpfr; \
51046 mv prev-mpfr stage1-mpfr; : ; \
4b900473
PB
51047 fi
51048@endif mpfr
e8a5fa9c 51049@if mpc
22121df0
L
51050 @if test -d $(HOST_SUBDIR)/mpc; then \
51051 cd $(HOST_SUBDIR); mv mpc stageprofile-mpc; \
51052 mv prev-mpc stage1-mpc; : ; \
e8a5fa9c
RW
51053 fi
51054@endif mpc
7ec59b9e 51055@if isl
22121df0
L
51056 @if test -d $(HOST_SUBDIR)/isl; then \
51057 cd $(HOST_SUBDIR); mv isl stageprofile-isl; \
51058 mv prev-isl stage1-isl; : ; \
e28c595f 51059 fi
7ec59b9e 51060@endif isl
1f53ca9a 51061@if libelf
22121df0
L
51062 @if test -d $(HOST_SUBDIR)/libelf; then \
51063 cd $(HOST_SUBDIR); mv libelf stageprofile-libelf; \
51064 mv prev-libelf stage1-libelf; : ; \
1f53ca9a
AO
51065 fi
51066@endif libelf
93f9b408 51067@if gold
22121df0
L
51068 @if test -d $(HOST_SUBDIR)/gold; then \
51069 cd $(HOST_SUBDIR); mv gold stageprofile-gold; \
51070 mv prev-gold stage1-gold; : ; \
93f9b408
ILT
51071 fi
51072@endif gold
d545f33b 51073@if intl
22121df0
L
51074 @if test -d $(HOST_SUBDIR)/intl; then \
51075 cd $(HOST_SUBDIR); mv intl stageprofile-intl; \
51076 mv prev-intl stage1-intl; : ; \
0aed8855 51077 fi
d545f33b
PB
51078@endif intl
51079@if ld
22121df0
L
51080 @if test -d $(HOST_SUBDIR)/ld; then \
51081 cd $(HOST_SUBDIR); mv ld stageprofile-ld; \
51082 mv prev-ld stage1-ld; : ; \
0aed8855 51083 fi
d545f33b 51084@endif ld
2bf680c4 51085@if libbacktrace
22121df0
L
51086 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
51087 cd $(HOST_SUBDIR); mv libbacktrace stageprofile-libbacktrace; \
51088 mv prev-libbacktrace stage1-libbacktrace; : ; \
2bf680c4
ILT
51089 fi
51090@endif libbacktrace
d545f33b 51091@if libcpp
22121df0
L
51092 @if test -d $(HOST_SUBDIR)/libcpp; then \
51093 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp; \
51094 mv prev-libcpp stage1-libcpp; : ; \
0aed8855 51095 fi
d545f33b 51096@endif libcpp
be01d343 51097@if libdecnumber
22121df0
L
51098 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
51099 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber; \
51100 mv prev-libdecnumber stage1-libdecnumber; : ; \
0aed8855 51101 fi
be01d343 51102@endif libdecnumber
d545f33b 51103@if libiberty
22121df0
L
51104 @if test -d $(HOST_SUBDIR)/libiberty; then \
51105 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty; \
51106 mv prev-libiberty stage1-libiberty; : ; \
0aed8855 51107 fi
d545f33b 51108@endif libiberty
1b6c0831 51109@if libiberty-linker-plugin
22121df0
L
51110 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
51111 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stageprofile-libiberty-linker-plugin; \
51112 mv prev-libiberty-linker-plugin stage1-libiberty-linker-plugin; : ; \
1b6c0831
L
51113 fi
51114@endif libiberty-linker-plugin
016a3251
DD
51115@if libiconv
51116 @if test -d $(HOST_SUBDIR)/libiconv; then \
51117 cd $(HOST_SUBDIR); mv libiconv stageprofile-libiconv; \
51118 mv prev-libiconv stage1-libiconv; : ; \
51119 fi
51120@endif libiconv
d545f33b 51121@if zlib
22121df0
L
51122 @if test -d $(HOST_SUBDIR)/zlib; then \
51123 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib; \
51124 mv prev-zlib stage1-zlib; : ; \
0aed8855 51125 fi
d545f33b 51126@endif zlib
700d40ca 51127@if lto-plugin
22121df0
L
51128 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
51129 cd $(HOST_SUBDIR); mv lto-plugin stageprofile-lto-plugin; \
51130 mv prev-lto-plugin stage1-lto-plugin; : ; \
700d40ca
ILT
51131 fi
51132@endif lto-plugin
0e65dfba
NA
51133@if libctf
51134 @if test -d $(HOST_SUBDIR)/libctf; then \
51135 cd $(HOST_SUBDIR); mv libctf stageprofile-libctf; \
51136 mv prev-libctf stage1-libctf; : ; \
51137 fi
51138@endif libctf
22121df0
L
51139 @if test -d $(TARGET_SUBDIR); then \
51140 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); \
51141 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR); : ; \
0aed8855 51142 fi
80911fe1 51143 rm -f stage_current
72b2455a 51144
973601e1 51145# Bubble a bug fix through all the stages up to stage profile. They are
0aed8855 51146# remade, but not reconfigured. The next stage (if any) will not be
675492f0 51147# reconfigured either.
d545f33b
PB
51148.PHONY: stageprofile-bubble
51149stageprofile-bubble:: stage1-bubble
e360f423
PB
51150 @r=`${PWD_COMMAND}`; export r; \
51151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22121df0
L
51152 if test -f stageprofile-lean || test -f stage1-lean ; then \
51153 echo Skipping rebuild of stageprofile; \
d545f33b 51154 else \
f70224b5
PB
51155 $(MAKE) stageprofile-start; \
51156 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
d545f33b 51157 fi
72b2455a 51158
d545f33b
PB
51159.PHONY: all-stageprofile clean-stageprofile
51160do-clean: clean-stageprofile
0df3d27f 51161
72b2455a
PB
51162# FIXME: Will not need to be conditional when toplevel bootstrap is the
51163# only possibility, but now it conflicts with no-bootstrap rules
51164@if gcc-bootstrap
51165
51166
51167
51168
0df3d27f 51169# Rules to wipe a stage and all the following ones, also used for cleanstrap
72b2455a 51170distclean-stage1:: distclean-stageprofile
0df3d27f 51171.PHONY: distclean-stageprofile
72b2455a 51172distclean-stageprofile::
0aed8855 51173 @: $(MAKE); $(stage)
e00a73e3 51174 @test "`cat stage_last`" != stageprofile || rm -f stage_last
9cb3fa6f 51175 rm -rf stageprofile-*
dfdffa2c
PB
51176
51177
72b2455a 51178@endif gcc-bootstrap
dfdffa2c
PB
51179
51180
72b2455a 51181.PHONY: stagefeedback-start stagefeedback-end
dfdffa2c 51182
72b2455a 51183stagefeedback-start::
0aed8855 51184 @: $(MAKE); $(stage); \
22121df0 51185 echo stagefeedback > stage_current; \
b00612cc 51186 echo stagefeedback > stage_last; \
0aed8855 51187 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
72b2455a 51188@if bfd
b00612cc
PB
51189 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
51190 mkdir stagefeedback-bfd; \
22121df0 51191 mv stagefeedback-bfd bfd; \
e3f56a99 51192 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
72b2455a
PB
51193@endif bfd
51194@if opcodes
b00612cc
PB
51195 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
51196 mkdir stagefeedback-opcodes; \
22121df0 51197 mv stagefeedback-opcodes opcodes; \
e3f56a99 51198 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
72b2455a
PB
51199@endif opcodes
51200@if binutils
b00612cc
PB
51201 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
51202 mkdir stagefeedback-binutils; \
22121df0 51203 mv stagefeedback-binutils binutils; \
e3f56a99 51204 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
72b2455a 51205@endif binutils
201f096f 51206@if fixincludes
51207 @cd $(HOST_SUBDIR); [ -d stagefeedback-fixincludes ] || \
51208 mkdir stagefeedback-fixincludes; \
22121df0 51209 mv stagefeedback-fixincludes fixincludes; \
e3f56a99 51210 mv stageprofile-fixincludes prev-fixincludes || test -f stageprofile-lean
201f096f 51211@endif fixincludes
72b2455a 51212@if gas
b00612cc
PB
51213 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
51214 mkdir stagefeedback-gas; \
22121df0 51215 mv stagefeedback-gas gas; \
e3f56a99 51216 mv stageprofile-gas prev-gas || test -f stageprofile-lean
72b2455a
PB
51217@endif gas
51218@if gcc
b00612cc
PB
51219 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
51220 mkdir stagefeedback-gcc; \
22121df0 51221 mv stagefeedback-gcc gcc; \
e3f56a99 51222 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
72b2455a 51223@endif gcc
4b900473
PB
51224@if gmp
51225 @cd $(HOST_SUBDIR); [ -d stagefeedback-gmp ] || \
51226 mkdir stagefeedback-gmp; \
22121df0 51227 mv stagefeedback-gmp gmp; \
e3f56a99 51228 mv stageprofile-gmp prev-gmp || test -f stageprofile-lean
4b900473
PB
51229@endif gmp
51230@if mpfr
51231 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpfr ] || \
51232 mkdir stagefeedback-mpfr; \
22121df0 51233 mv stagefeedback-mpfr mpfr; \
e3f56a99 51234 mv stageprofile-mpfr prev-mpfr || test -f stageprofile-lean
4b900473 51235@endif mpfr
e8a5fa9c
RW
51236@if mpc
51237 @cd $(HOST_SUBDIR); [ -d stagefeedback-mpc ] || \
51238 mkdir stagefeedback-mpc; \
22121df0 51239 mv stagefeedback-mpc mpc; \
e3f56a99 51240 mv stageprofile-mpc prev-mpc || test -f stageprofile-lean
e8a5fa9c 51241@endif mpc
7ec59b9e
L
51242@if isl
51243 @cd $(HOST_SUBDIR); [ -d stagefeedback-isl ] || \
51244 mkdir stagefeedback-isl; \
22121df0 51245 mv stagefeedback-isl isl; \
e3f56a99 51246 mv stageprofile-isl prev-isl || test -f stageprofile-lean
7ec59b9e 51247@endif isl
1f53ca9a
AO
51248@if libelf
51249 @cd $(HOST_SUBDIR); [ -d stagefeedback-libelf ] || \
51250 mkdir stagefeedback-libelf; \
22121df0 51251 mv stagefeedback-libelf libelf; \
e3f56a99 51252 mv stageprofile-libelf prev-libelf || test -f stageprofile-lean
1f53ca9a 51253@endif libelf
93f9b408
ILT
51254@if gold
51255 @cd $(HOST_SUBDIR); [ -d stagefeedback-gold ] || \
51256 mkdir stagefeedback-gold; \
22121df0 51257 mv stagefeedback-gold gold; \
e3f56a99 51258 mv stageprofile-gold prev-gold || test -f stageprofile-lean
93f9b408 51259@endif gold
72b2455a 51260@if intl
b00612cc
PB
51261 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
51262 mkdir stagefeedback-intl; \
22121df0 51263 mv stagefeedback-intl intl; \
e3f56a99 51264 mv stageprofile-intl prev-intl || test -f stageprofile-lean
72b2455a
PB
51265@endif intl
51266@if ld
b00612cc
PB
51267 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
51268 mkdir stagefeedback-ld; \
22121df0 51269 mv stagefeedback-ld ld; \
e3f56a99 51270 mv stageprofile-ld prev-ld || test -f stageprofile-lean
72b2455a 51271@endif ld
2bf680c4
ILT
51272@if libbacktrace
51273 @cd $(HOST_SUBDIR); [ -d stagefeedback-libbacktrace ] || \
51274 mkdir stagefeedback-libbacktrace; \
22121df0 51275 mv stagefeedback-libbacktrace libbacktrace; \
e3f56a99 51276 mv stageprofile-libbacktrace prev-libbacktrace || test -f stageprofile-lean
2bf680c4 51277@endif libbacktrace
72b2455a 51278@if libcpp
b00612cc
PB
51279 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
51280 mkdir stagefeedback-libcpp; \
22121df0 51281 mv stagefeedback-libcpp libcpp; \
e3f56a99 51282 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
72b2455a 51283@endif libcpp
be01d343
PB
51284@if libdecnumber
51285 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
51286 mkdir stagefeedback-libdecnumber; \
22121df0 51287 mv stagefeedback-libdecnumber libdecnumber; \
e3f56a99 51288 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
be01d343 51289@endif libdecnumber
72b2455a 51290@if libiberty
b00612cc
PB
51291 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
51292 mkdir stagefeedback-libiberty; \
22121df0 51293 mv stagefeedback-libiberty libiberty; \
e3f56a99 51294 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
72b2455a 51295@endif libiberty
1b6c0831
L
51296@if libiberty-linker-plugin
51297 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty-linker-plugin ] || \
51298 mkdir stagefeedback-libiberty-linker-plugin; \
22121df0 51299 mv stagefeedback-libiberty-linker-plugin libiberty-linker-plugin; \
e3f56a99 51300 mv stageprofile-libiberty-linker-plugin prev-libiberty-linker-plugin || test -f stageprofile-lean
1b6c0831 51301@endif libiberty-linker-plugin
016a3251
DD
51302@if libiconv
51303 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiconv ] || \
51304 mkdir stagefeedback-libiconv; \
51305 mv stagefeedback-libiconv libiconv; \
e3f56a99 51306 mv stageprofile-libiconv prev-libiconv || test -f stageprofile-lean
016a3251 51307@endif libiconv
72b2455a 51308@if zlib
b00612cc
PB
51309 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
51310 mkdir stagefeedback-zlib; \
22121df0 51311 mv stagefeedback-zlib zlib; \
e3f56a99 51312 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
72b2455a 51313@endif zlib
700d40ca
ILT
51314@if lto-plugin
51315 @cd $(HOST_SUBDIR); [ -d stagefeedback-lto-plugin ] || \
51316 mkdir stagefeedback-lto-plugin; \
22121df0 51317 mv stagefeedback-lto-plugin lto-plugin; \
e3f56a99 51318 mv stageprofile-lto-plugin prev-lto-plugin || test -f stageprofile-lean
700d40ca 51319@endif lto-plugin
0e65dfba
NA
51320@if libctf
51321 @cd $(HOST_SUBDIR); [ -d stagefeedback-libctf ] || \
51322 mkdir stagefeedback-libctf; \
51323 mv stagefeedback-libctf libctf; \
e3f56a99 51324 mv stageprofile-libctf prev-libctf || test -f stageprofile-lean
0e65dfba 51325@endif libctf
0aed8855
PB
51326 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
51327 mkdir stagefeedback-$(TARGET_SUBDIR); \
22121df0 51328 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR); \
e3f56a99 51329 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
dfdffa2c 51330
80911fe1 51331stagefeedback-end::
72b2455a 51332@if bfd
22121df0
L
51333 @if test -d $(HOST_SUBDIR)/bfd; then \
51334 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd; \
e3f56a99 51335 mv prev-bfd stageprofile-bfd; : ; \
0aed8855 51336 fi
72b2455a
PB
51337@endif bfd
51338@if opcodes
22121df0
L
51339 @if test -d $(HOST_SUBDIR)/opcodes; then \
51340 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes; \
e3f56a99 51341 mv prev-opcodes stageprofile-opcodes; : ; \
0aed8855 51342 fi
72b2455a
PB
51343@endif opcodes
51344@if binutils
22121df0
L
51345 @if test -d $(HOST_SUBDIR)/binutils; then \
51346 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils; \
e3f56a99 51347 mv prev-binutils stageprofile-binutils; : ; \
0aed8855 51348 fi
72b2455a 51349@endif binutils
201f096f 51350@if fixincludes
22121df0
L
51351 @if test -d $(HOST_SUBDIR)/fixincludes; then \
51352 cd $(HOST_SUBDIR); mv fixincludes stagefeedback-fixincludes; \
e3f56a99 51353 mv prev-fixincludes stageprofile-fixincludes; : ; \
201f096f 51354 fi
51355@endif fixincludes
72b2455a 51356@if gas
22121df0
L
51357 @if test -d $(HOST_SUBDIR)/gas; then \
51358 cd $(HOST_SUBDIR); mv gas stagefeedback-gas; \
e3f56a99 51359 mv prev-gas stageprofile-gas; : ; \
0aed8855 51360 fi
72b2455a
PB
51361@endif gas
51362@if gcc
22121df0
L
51363 @if test -d $(HOST_SUBDIR)/gcc; then \
51364 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc; \
e3f56a99 51365 mv prev-gcc stageprofile-gcc; : ; \
0aed8855 51366 fi
72b2455a 51367@endif gcc
4b900473 51368@if gmp
22121df0
L
51369 @if test -d $(HOST_SUBDIR)/gmp; then \
51370 cd $(HOST_SUBDIR); mv gmp stagefeedback-gmp; \
e3f56a99 51371 mv prev-gmp stageprofile-gmp; : ; \
4b900473
PB
51372 fi
51373@endif gmp
51374@if mpfr
22121df0
L
51375 @if test -d $(HOST_SUBDIR)/mpfr; then \
51376 cd $(HOST_SUBDIR); mv mpfr stagefeedback-mpfr; \
e3f56a99 51377 mv prev-mpfr stageprofile-mpfr; : ; \
4b900473
PB
51378 fi
51379@endif mpfr
e8a5fa9c 51380@if mpc
22121df0
L
51381 @if test -d $(HOST_SUBDIR)/mpc; then \
51382 cd $(HOST_SUBDIR); mv mpc stagefeedback-mpc; \
e3f56a99 51383 mv prev-mpc stageprofile-mpc; : ; \
e8a5fa9c
RW
51384 fi
51385@endif mpc
7ec59b9e 51386@if isl
22121df0
L
51387 @if test -d $(HOST_SUBDIR)/isl; then \
51388 cd $(HOST_SUBDIR); mv isl stagefeedback-isl; \
e3f56a99 51389 mv prev-isl stageprofile-isl; : ; \
e28c595f 51390 fi
7ec59b9e 51391@endif isl
1f53ca9a 51392@if libelf
22121df0
L
51393 @if test -d $(HOST_SUBDIR)/libelf; then \
51394 cd $(HOST_SUBDIR); mv libelf stagefeedback-libelf; \
e3f56a99 51395 mv prev-libelf stageprofile-libelf; : ; \
1f53ca9a
AO
51396 fi
51397@endif libelf
93f9b408 51398@if gold
22121df0
L
51399 @if test -d $(HOST_SUBDIR)/gold; then \
51400 cd $(HOST_SUBDIR); mv gold stagefeedback-gold; \
e3f56a99 51401 mv prev-gold stageprofile-gold; : ; \
93f9b408
ILT
51402 fi
51403@endif gold
72b2455a 51404@if intl
22121df0
L
51405 @if test -d $(HOST_SUBDIR)/intl; then \
51406 cd $(HOST_SUBDIR); mv intl stagefeedback-intl; \
e3f56a99 51407 mv prev-intl stageprofile-intl; : ; \
0aed8855 51408 fi
72b2455a
PB
51409@endif intl
51410@if ld
22121df0
L
51411 @if test -d $(HOST_SUBDIR)/ld; then \
51412 cd $(HOST_SUBDIR); mv ld stagefeedback-ld; \
e3f56a99 51413 mv prev-ld stageprofile-ld; : ; \
0aed8855 51414 fi
72b2455a 51415@endif ld
2bf680c4 51416@if libbacktrace
22121df0
L
51417 @if test -d $(HOST_SUBDIR)/libbacktrace; then \
51418 cd $(HOST_SUBDIR); mv libbacktrace stagefeedback-libbacktrace; \
e3f56a99 51419 mv prev-libbacktrace stageprofile-libbacktrace; : ; \
2bf680c4
ILT
51420 fi
51421@endif libbacktrace
72b2455a 51422@if libcpp
22121df0
L
51423 @if test -d $(HOST_SUBDIR)/libcpp; then \
51424 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp; \
e3f56a99 51425 mv prev-libcpp stageprofile-libcpp; : ; \
0aed8855 51426 fi
72b2455a 51427@endif libcpp
be01d343 51428@if libdecnumber
22121df0
L
51429 @if test -d $(HOST_SUBDIR)/libdecnumber; then \
51430 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber; \
e3f56a99 51431 mv prev-libdecnumber stageprofile-libdecnumber; : ; \
0aed8855 51432 fi
be01d343 51433@endif libdecnumber
72b2455a 51434@if libiberty
22121df0
L
51435 @if test -d $(HOST_SUBDIR)/libiberty; then \
51436 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty; \
e3f56a99 51437 mv prev-libiberty stageprofile-libiberty; : ; \
0aed8855 51438 fi
72b2455a 51439@endif libiberty
1b6c0831 51440@if libiberty-linker-plugin
22121df0
L
51441 @if test -d $(HOST_SUBDIR)/libiberty-linker-plugin; then \
51442 cd $(HOST_SUBDIR); mv libiberty-linker-plugin stagefeedback-libiberty-linker-plugin; \
e3f56a99 51443 mv prev-libiberty-linker-plugin stageprofile-libiberty-linker-plugin; : ; \
1b6c0831
L
51444 fi
51445@endif libiberty-linker-plugin
016a3251
DD
51446@if libiconv
51447 @if test -d $(HOST_SUBDIR)/libiconv; then \
51448 cd $(HOST_SUBDIR); mv libiconv stagefeedback-libiconv; \
e3f56a99 51449 mv prev-libiconv stageprofile-libiconv; : ; \
016a3251
DD
51450 fi
51451@endif libiconv
72b2455a 51452@if zlib
22121df0
L
51453 @if test -d $(HOST_SUBDIR)/zlib; then \
51454 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib; \
e3f56a99 51455 mv prev-zlib stageprofile-zlib; : ; \
0aed8855 51456 fi
72b2455a 51457@endif zlib
700d40ca 51458@if lto-plugin
22121df0
L
51459 @if test -d $(HOST_SUBDIR)/lto-plugin; then \
51460 cd $(HOST_SUBDIR); mv lto-plugin stagefeedback-lto-plugin; \
e3f56a99 51461 mv prev-lto-plugin stageprofile-lto-plugin; : ; \
700d40ca
ILT
51462 fi
51463@endif lto-plugin
0e65dfba
NA
51464@if libctf
51465 @if test -d $(HOST_SUBDIR)/libctf; then \
51466 cd $(HOST_SUBDIR); mv libctf stagefeedback-libctf; \
e3f56a99 51467 mv prev-libctf stageprofile-libctf; : ; \
0e65dfba
NA
51468 fi
51469@endif libctf
22121df0
L
51470 @if test -d $(TARGET_SUBDIR); then \
51471 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR); \
e3f56a99 51472 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR); : ; \
0aed8855 51473 fi
80911fe1 51474 rm -f stage_current
dfdffa2c 51475
973601e1 51476# Bubble a bug fix through all the stages up to stage feedback. They are
0aed8855 51477# remade, but not reconfigured. The next stage (if any) will not be
675492f0 51478# reconfigured either.
72b2455a 51479.PHONY: stagefeedback-bubble
e3f56a99 51480stagefeedback-bubble:: stageprofile-bubble
e360f423
PB
51481 @r=`${PWD_COMMAND}`; export r; \
51482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
e3f56a99 51483 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
22121df0 51484 echo Skipping rebuild of stagefeedback; \
9cb3fa6f 51485 else \
f70224b5
PB
51486 $(MAKE) stagefeedback-start; \
51487 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
9cb3fa6f 51488 fi
72b2455a 51489
0df3d27f 51490.PHONY: all-stagefeedback clean-stagefeedback
0df3d27f 51491do-clean: clean-stagefeedback
0df3d27f 51492
72b2455a
PB
51493# FIXME: Will not need to be conditional when toplevel bootstrap is the
51494# only possibility, but now it conflicts with no-bootstrap rules
51495@if gcc-bootstrap
656fdd47
PB
51496
51497
51498
80911fe1 51499.PHONY: profiledbootstrap profiledbootstrap-lean
be01d343
PB
51500profiledbootstrap:
51501 echo stagefeedback > stage_final
51502 @r=`${PWD_COMMAND}`; export r; \
51503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51504 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
0aed8855 51505 @: $(MAKE); $(unstage)
be01d343
PB
51506 @r=`${PWD_COMMAND}`; export r; \
51507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 51508 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
be01d343 51509 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7d329e61 51510
80911fe1
PB
51511profiledbootstrap-lean:
51512 echo stagefeedback > stage_final
51513 @r=`${PWD_COMMAND}`; export r; \
51514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
51515 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
51516 @: $(MAKE); $(unstage)
51517 @r=`${PWD_COMMAND}`; export r; \
51518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1b05fbbd 51519 TFLAGS="$(STAGEfeedback_TFLAGS)"; \
80911fe1
PB
51520 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
51521
656fdd47 51522
0df3d27f 51523# Rules to wipe a stage and all the following ones, also used for cleanstrap
e3f56a99 51524distclean-stageprofile:: distclean-stagefeedback
0df3d27f 51525.PHONY: distclean-stagefeedback
656fdd47 51526distclean-stagefeedback::
0aed8855 51527 @: $(MAKE); $(stage)
e00a73e3 51528 @test "`cat stage_last`" != stagefeedback || rm -f stage_last
9cb3fa6f 51529 rm -rf stagefeedback-*
656fdd47
PB
51530
51531
72b2455a 51532@endif gcc-bootstrap
656fdd47
PB
51533
51534
51535
7d329e61
PB
51536stageprofile-end::
51537 $(MAKE) distclean-stagefeedback
656fdd47 51538
7d329e61 51539stagefeedback-start::
656fdd47
PB
51540 @r=`${PWD_COMMAND}`; export r; \
51541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7d329e61 51542 for i in prev-*; do \
22121df0 51543 j=`echo $$i | sed s/^prev-//`; \
7d329e61 51544 cd $$r/$$i && \
22121df0
L
51545 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL); } && \
51546 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL); }; \
7d329e61 51547 done
b8908782 51548
0df3d27f 51549@if gcc-bootstrap
0df3d27f 51550do-distclean: distclean-stage1
c52c6897
PB
51551
51552# Provide a GCC build when we're building target libraries. This does
51553# not work as a dependency, just as the minimum necessary to avoid errors.
51554stage_last:
314b2e66
AS
51555 @r=`${PWD_COMMAND}`; export r; \
51556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c52c6897 51557 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
0df3d27f 51558
4f0ef2d8
CD
51559# Same as unstage, but not phony and defaulting to stage1-start. We place
51560# it in the dependency so that for example `make -j3 all-gcc' works.
51561stage_current:
51562 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
51563
c52c6897 51564.PHONY: restrap
266df637 51565restrap::
c52c6897 51566 @: $(MAKE); $(stage)
e3f56a99 51567 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
266df637 51568restrap:: all
c380fdd8 51569@endif gcc-bootstrap
c52c6897 51570
ae831be5
NN
51571# --------------------------------------
51572# Dependencies between different modules
51573# --------------------------------------
252b5132 51574
9e6ce191 51575# Generic dependencies for target modules on host stuff, especially gcc
c52c6897 51576@if gcc-bootstrap
e8a5fa9c
RW
51577configure-stage1-target-libstdc++-v3: maybe-all-stage1-gcc
51578configure-stage2-target-libstdc++-v3: maybe-all-stage2-gcc
51579configure-stage3-target-libstdc++-v3: maybe-all-stage3-gcc
51580configure-stage4-target-libstdc++-v3: maybe-all-stage4-gcc
51581configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-gcc
51582configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-gcc
5eb08693
L
51583configure-stage1-target-libsanitizer: maybe-all-stage1-gcc
51584configure-stage2-target-libsanitizer: maybe-all-stage2-gcc
51585configure-stage3-target-libsanitizer: maybe-all-stage3-gcc
51586configure-stage4-target-libsanitizer: maybe-all-stage4-gcc
51587configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-gcc
51588configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-gcc
1b6c0831
L
51589configure-stage1-target-libmpx: maybe-all-stage1-gcc
51590configure-stage2-target-libmpx: maybe-all-stage2-gcc
51591configure-stage3-target-libmpx: maybe-all-stage3-gcc
51592configure-stage4-target-libmpx: maybe-all-stage4-gcc
51593configure-stageprofile-target-libmpx: maybe-all-stageprofile-gcc
51594configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-gcc
95e43135
JBG
51595configure-stage1-target-libvtv: maybe-all-stage1-gcc
51596configure-stage2-target-libvtv: maybe-all-stage2-gcc
51597configure-stage3-target-libvtv: maybe-all-stage3-gcc
51598configure-stage4-target-libvtv: maybe-all-stage4-gcc
51599configure-stageprofile-target-libvtv: maybe-all-stageprofile-gcc
51600configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-gcc
e3f56a99 51601configure-target-libcilkrts: stage_last
1b6c0831 51602configure-target-liboffloadmic: stage_last
c52c6897 51603configure-target-libssp: stage_last
c52c6897 51604configure-target-newlib: stage_last
6aa8ef82
DJ
51605configure-stage1-target-libgcc: maybe-all-stage1-gcc
51606configure-stage2-target-libgcc: maybe-all-stage2-gcc
51607configure-stage3-target-libgcc: maybe-all-stage3-gcc
51608configure-stage4-target-libgcc: maybe-all-stage4-gcc
51609configure-stageprofile-target-libgcc: maybe-all-stageprofile-gcc
51610configure-stagefeedback-target-libgcc: maybe-all-stagefeedback-gcc
2bf680c4 51611configure-target-libbacktrace: stage_last
e552509b 51612configure-target-libquadmath: stage_last
c52c6897
PB
51613configure-target-libgfortran: stage_last
51614configure-target-libobjc: stage_last
e552509b 51615configure-target-libgo: stage_last
c52c6897
PB
51616configure-target-libtermcap: stage_last
51617configure-target-winsup: stage_last
51618configure-target-libgloss: stage_last
c52c6897 51619configure-target-libffi: stage_last
c52c6897 51620configure-target-zlib: stage_last
c52c6897
PB
51621configure-target-rda: stage_last
51622configure-target-libada: stage_last
911e63d0
JR
51623configure-stage1-target-libgomp: maybe-all-stage1-gcc
51624configure-stage2-target-libgomp: maybe-all-stage2-gcc
51625configure-stage3-target-libgomp: maybe-all-stage3-gcc
51626configure-stage4-target-libgomp: maybe-all-stage4-gcc
51627configure-stageprofile-target-libgomp: maybe-all-stageprofile-gcc
51628configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-gcc
7ec59b9e
L
51629configure-target-libitm: stage_last
51630configure-target-libatomic: stage_last
c52c6897 51631@endif gcc-bootstrap
9e6ce191 51632
c52c6897 51633@if gcc-no-bootstrap
9e6ce191 51634configure-target-libstdc++-v3: maybe-all-gcc
5286fdef 51635configure-target-libsanitizer: maybe-all-gcc
1b6c0831 51636configure-target-libmpx: maybe-all-gcc
95e43135 51637configure-target-libvtv: maybe-all-gcc
e3f56a99 51638configure-target-libcilkrts: maybe-all-gcc
1b6c0831 51639configure-target-liboffloadmic: maybe-all-gcc
064d0a7c 51640configure-target-libssp: maybe-all-gcc
9e6ce191 51641configure-target-newlib: maybe-all-gcc
6aa8ef82 51642configure-target-libgcc: maybe-all-gcc
2bf680c4 51643configure-target-libbacktrace: maybe-all-gcc
e552509b 51644configure-target-libquadmath: maybe-all-gcc
9e6ce191 51645configure-target-libgfortran: maybe-all-gcc
9e6ce191 51646configure-target-libobjc: maybe-all-gcc
e552509b 51647configure-target-libgo: maybe-all-gcc
9e6ce191 51648configure-target-libtermcap: maybe-all-gcc
9e6ce191 51649configure-target-winsup: maybe-all-gcc
9e6ce191 51650configure-target-libgloss: maybe-all-gcc
9e6ce191 51651configure-target-libffi: maybe-all-gcc
9e6ce191 51652configure-target-zlib: maybe-all-gcc
9e6ce191 51653configure-target-rda: maybe-all-gcc
9e6ce191 51654configure-target-libada: maybe-all-gcc
b3ded179 51655configure-target-libgomp: maybe-all-gcc
7ec59b9e
L
51656configure-target-libitm: maybe-all-gcc
51657configure-target-libatomic: maybe-all-gcc
c52c6897 51658@endif gcc-no-bootstrap
b3ded179 51659
9e6ce191 51660
ae831be5
NN
51661# There are two types of dependencies here: 'hard' dependencies, where one
51662# module simply won't build without the other; and 'soft' dependencies, where
51663# if the depended-on module is missing, the depending module will do without
51664# or find a substitute somewhere (perhaps installed). Soft dependencies
9e6ce191 51665# are made here to depend on a 'maybe-' target. If you're not sure,
ae831be5
NN
51666# it's safer to use a soft dependency.
51667
9e6ce191
PB
51668
51669
51670
51671
c60fe18b 51672
9e6ce191
PB
51673# With all the machinery above in place, it is pretty easy to generate
51674# dependencies. Host dependencies are a bit more complex because we have
51675# to check for bootstrap/prebootstrap dependencies. To resolve
51676# prebootstrap dependencies, prebootstrap modules are gathered in
51677# a hash table.
6a9cf61e
PB
51678all-build-bison: maybe-all-build-texinfo
51679all-build-flex: maybe-all-build-texinfo
9e6ce191 51680all-build-flex: maybe-all-build-bison
9e6ce191 51681all-build-flex: maybe-all-build-m4
6a9cf61e 51682all-build-libiberty: maybe-all-build-texinfo
9e6ce191 51683all-build-m4: maybe-all-build-texinfo
ee025550 51684all-build-fixincludes: maybe-all-build-libiberty
1b6c0831 51685all-build-libcpp: maybe-all-build-libiberty
9e6ce191 51686configure-gcc: maybe-configure-intl
9e6ce191
PB
51687configure-stage1-gcc: maybe-configure-stage1-intl
51688configure-stage2-gcc: maybe-configure-stage2-intl
51689configure-stage3-gcc: maybe-configure-stage3-intl
51690configure-stage4-gcc: maybe-configure-stage4-intl
51691configure-stageprofile-gcc: maybe-configure-stageprofile-intl
51692configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
861ea9c8 51693configure-gcc: maybe-all-gmp
861ea9c8
L
51694configure-stage1-gcc: maybe-all-stage1-gmp
51695configure-stage2-gcc: maybe-all-stage2-gmp
51696configure-stage3-gcc: maybe-all-stage3-gmp
51697configure-stage4-gcc: maybe-all-stage4-gmp
51698configure-stageprofile-gcc: maybe-all-stageprofile-gmp
51699configure-stagefeedback-gcc: maybe-all-stagefeedback-gmp
1b6c0831 51700configure-gcc: maybe-all-mpfr
1b6c0831
L
51701configure-stage1-gcc: maybe-all-stage1-mpfr
51702configure-stage2-gcc: maybe-all-stage2-mpfr
51703configure-stage3-gcc: maybe-all-stage3-mpfr
51704configure-stage4-gcc: maybe-all-stage4-mpfr
51705configure-stageprofile-gcc: maybe-all-stageprofile-mpfr
51706configure-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
51707configure-gcc: maybe-all-mpc
1b6c0831
L
51708configure-stage1-gcc: maybe-all-stage1-mpc
51709configure-stage2-gcc: maybe-all-stage2-mpc
51710configure-stage3-gcc: maybe-all-stage3-mpc
51711configure-stage4-gcc: maybe-all-stage4-mpc
51712configure-stageprofile-gcc: maybe-all-stageprofile-mpc
51713configure-stagefeedback-gcc: maybe-all-stagefeedback-mpc
51714configure-gcc: maybe-all-isl
1b6c0831
L
51715configure-stage1-gcc: maybe-all-stage1-isl
51716configure-stage2-gcc: maybe-all-stage2-isl
51717configure-stage3-gcc: maybe-all-stage3-isl
51718configure-stage4-gcc: maybe-all-stage4-isl
51719configure-stageprofile-gcc: maybe-all-stageprofile-isl
51720configure-stagefeedback-gcc: maybe-all-stagefeedback-isl
8d8eef9a 51721configure-gcc: maybe-all-lto-plugin
8d8eef9a
RW
51722configure-stage1-gcc: maybe-all-stage1-lto-plugin
51723configure-stage2-gcc: maybe-all-stage2-lto-plugin
51724configure-stage3-gcc: maybe-all-stage3-lto-plugin
51725configure-stage4-gcc: maybe-all-stage4-lto-plugin
51726configure-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
51727configure-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
c60fe18b 51728configure-gcc: maybe-all-binutils
c60fe18b
PB
51729configure-stage1-gcc: maybe-all-stage1-binutils
51730configure-stage2-gcc: maybe-all-stage2-binutils
51731configure-stage3-gcc: maybe-all-stage3-binutils
51732configure-stage4-gcc: maybe-all-stage4-binutils
51733configure-stageprofile-gcc: maybe-all-stageprofile-binutils
51734configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
51735configure-gcc: maybe-all-gas
c60fe18b
PB
51736configure-stage1-gcc: maybe-all-stage1-gas
51737configure-stage2-gcc: maybe-all-stage2-gas
51738configure-stage3-gcc: maybe-all-stage3-gas
51739configure-stage4-gcc: maybe-all-stage4-gas
51740configure-stageprofile-gcc: maybe-all-stageprofile-gas
51741configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
51742configure-gcc: maybe-all-ld
c60fe18b
PB
51743configure-stage1-gcc: maybe-all-stage1-ld
51744configure-stage2-gcc: maybe-all-stage2-ld
51745configure-stage3-gcc: maybe-all-stage3-ld
51746configure-stage4-gcc: maybe-all-stage4-ld
51747configure-stageprofile-gcc: maybe-all-stageprofile-ld
51748configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
93f9b408 51749configure-gcc: maybe-all-gold
93f9b408
ILT
51750configure-stage1-gcc: maybe-all-stage1-gold
51751configure-stage2-gcc: maybe-all-stage2-gold
93f9b408 51752configure-stage3-gcc: maybe-all-stage3-gold
93f9b408
ILT
51753configure-stage4-gcc: maybe-all-stage4-gold
51754configure-stageprofile-gcc: maybe-all-stageprofile-gold
51755configure-stagefeedback-gcc: maybe-all-stagefeedback-gold
7530c480 51756configure-gcc: maybe-all-libelf
7530c480
AO
51757configure-stage1-gcc: maybe-all-stage1-libelf
51758configure-stage2-gcc: maybe-all-stage2-libelf
51759configure-stage3-gcc: maybe-all-stage3-libelf
51760configure-stage4-gcc: maybe-all-stage4-libelf
51761configure-stageprofile-gcc: maybe-all-stageprofile-libelf
51762configure-stagefeedback-gcc: maybe-all-stagefeedback-libelf
016a3251 51763configure-gcc: maybe-all-libiconv
016a3251
DD
51764configure-stage1-gcc: maybe-all-stage1-libiconv
51765configure-stage2-gcc: maybe-all-stage2-libiconv
51766configure-stage3-gcc: maybe-all-stage3-libiconv
51767configure-stage4-gcc: maybe-all-stage4-libiconv
51768configure-stageprofile-gcc: maybe-all-stageprofile-libiconv
51769configure-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
9e6ce191 51770all-gcc: all-libiberty
9e6ce191
PB
51771all-stage1-gcc: all-stage1-libiberty
51772all-stage2-gcc: all-stage2-libiberty
51773all-stage3-gcc: all-stage3-libiberty
51774all-stage4-gcc: all-stage4-libiberty
51775all-stageprofile-gcc: all-stageprofile-libiberty
51776all-stagefeedback-gcc: all-stagefeedback-libiberty
51777all-gcc: maybe-all-intl
9e6ce191
PB
51778all-stage1-gcc: maybe-all-stage1-intl
51779all-stage2-gcc: maybe-all-stage2-intl
51780all-stage3-gcc: maybe-all-stage3-intl
51781all-stage4-gcc: maybe-all-stage4-intl
51782all-stageprofile-gcc: maybe-all-stageprofile-intl
51783all-stagefeedback-gcc: maybe-all-stagefeedback-intl
4b900473 51784all-gcc: maybe-all-mpfr
4b900473
PB
51785all-stage1-gcc: maybe-all-stage1-mpfr
51786all-stage2-gcc: maybe-all-stage2-mpfr
51787all-stage3-gcc: maybe-all-stage3-mpfr
51788all-stage4-gcc: maybe-all-stage4-mpfr
51789all-stageprofile-gcc: maybe-all-stageprofile-mpfr
51790all-stagefeedback-gcc: maybe-all-stagefeedback-mpfr
e8a5fa9c 51791all-gcc: maybe-all-mpc
e8a5fa9c
RW
51792all-stage1-gcc: maybe-all-stage1-mpc
51793all-stage2-gcc: maybe-all-stage2-mpc
51794all-stage3-gcc: maybe-all-stage3-mpc
51795all-stage4-gcc: maybe-all-stage4-mpc
51796all-stageprofile-gcc: maybe-all-stageprofile-mpc
51797all-stagefeedback-gcc: maybe-all-stagefeedback-mpc
1b6c0831 51798all-gcc: maybe-all-isl
1b6c0831
L
51799all-stage1-gcc: maybe-all-stage1-isl
51800all-stage2-gcc: maybe-all-stage2-isl
51801all-stage3-gcc: maybe-all-stage3-isl
51802all-stage4-gcc: maybe-all-stage4-isl
51803all-stageprofile-gcc: maybe-all-stageprofile-isl
51804all-stagefeedback-gcc: maybe-all-stagefeedback-isl
72b2455a 51805all-gcc: maybe-all-build-texinfo
72b2455a
PB
51806all-stage1-gcc: maybe-all-build-texinfo
51807all-stage2-gcc: maybe-all-build-texinfo
51808all-stage3-gcc: maybe-all-build-texinfo
51809all-stage4-gcc: maybe-all-build-texinfo
51810all-stageprofile-gcc: maybe-all-build-texinfo
51811all-stagefeedback-gcc: maybe-all-build-texinfo
72b2455a 51812all-gcc: maybe-all-build-bison
72b2455a
PB
51813all-stage1-gcc: maybe-all-build-bison
51814all-stage2-gcc: maybe-all-build-bison
51815all-stage3-gcc: maybe-all-build-bison
51816all-stage4-gcc: maybe-all-build-bison
51817all-stageprofile-gcc: maybe-all-build-bison
51818all-stagefeedback-gcc: maybe-all-build-bison
72b2455a 51819all-gcc: maybe-all-build-flex
72b2455a
PB
51820all-stage1-gcc: maybe-all-build-flex
51821all-stage2-gcc: maybe-all-build-flex
51822all-stage3-gcc: maybe-all-build-flex
51823all-stage4-gcc: maybe-all-build-flex
51824all-stageprofile-gcc: maybe-all-build-flex
51825all-stagefeedback-gcc: maybe-all-build-flex
ee025550 51826all-gcc: maybe-all-build-libiberty
ee025550
PB
51827all-stage1-gcc: maybe-all-build-libiberty
51828all-stage2-gcc: maybe-all-build-libiberty
51829all-stage3-gcc: maybe-all-build-libiberty
51830all-stage4-gcc: maybe-all-build-libiberty
51831all-stageprofile-gcc: maybe-all-build-libiberty
51832all-stagefeedback-gcc: maybe-all-build-libiberty
ee025550 51833all-gcc: maybe-all-build-fixincludes
ee025550
PB
51834all-stage1-gcc: maybe-all-build-fixincludes
51835all-stage2-gcc: maybe-all-build-fixincludes
51836all-stage3-gcc: maybe-all-build-fixincludes
51837all-stage4-gcc: maybe-all-build-fixincludes
51838all-stageprofile-gcc: maybe-all-build-fixincludes
51839all-stagefeedback-gcc: maybe-all-build-fixincludes
1b6c0831 51840all-gcc: maybe-all-build-libcpp
1b6c0831
L
51841all-stage1-gcc: maybe-all-build-libcpp
51842all-stage2-gcc: maybe-all-build-libcpp
51843all-stage3-gcc: maybe-all-build-libcpp
51844all-stage4-gcc: maybe-all-build-libcpp
51845all-stageprofile-gcc: maybe-all-build-libcpp
51846all-stagefeedback-gcc: maybe-all-build-libcpp
9e6ce191 51847all-gcc: maybe-all-zlib
9e6ce191
PB
51848all-stage1-gcc: maybe-all-stage1-zlib
51849all-stage2-gcc: maybe-all-stage2-zlib
51850all-stage3-gcc: maybe-all-stage3-zlib
51851all-stage4-gcc: maybe-all-stage4-zlib
51852all-stageprofile-gcc: maybe-all-stageprofile-zlib
51853all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
8e71395b 51854all-gcc: all-libbacktrace
8e71395b
L
51855all-stage1-gcc: all-stage1-libbacktrace
51856all-stage2-gcc: all-stage2-libbacktrace
51857all-stage3-gcc: all-stage3-libbacktrace
51858all-stage4-gcc: all-stage4-libbacktrace
51859all-stageprofile-gcc: all-stageprofile-libbacktrace
51860all-stagefeedback-gcc: all-stagefeedback-libbacktrace
9e6ce191 51861all-gcc: all-libcpp
9e6ce191
PB
51862all-stage1-gcc: all-stage1-libcpp
51863all-stage2-gcc: all-stage2-libcpp
51864all-stage3-gcc: all-stage3-libcpp
51865all-stage4-gcc: all-stage4-libcpp
51866all-stageprofile-gcc: all-stageprofile-libcpp
51867all-stagefeedback-gcc: all-stagefeedback-libcpp
be01d343 51868all-gcc: all-libdecnumber
be01d343
PB
51869all-stage1-gcc: all-stage1-libdecnumber
51870all-stage2-gcc: all-stage2-libdecnumber
51871all-stage3-gcc: all-stage3-libdecnumber
51872all-stage4-gcc: all-stage4-libdecnumber
51873all-stageprofile-gcc: all-stageprofile-libdecnumber
51874all-stagefeedback-gcc: all-stagefeedback-libdecnumber
d3ed111c 51875all-gcc: maybe-all-libiberty
d3ed111c
GK
51876all-stage1-gcc: maybe-all-stage1-libiberty
51877all-stage2-gcc: maybe-all-stage2-libiberty
51878all-stage3-gcc: maybe-all-stage3-libiberty
51879all-stage4-gcc: maybe-all-stage4-libiberty
51880all-stageprofile-gcc: maybe-all-stageprofile-libiberty
51881all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
51882all-gcc: maybe-all-fixincludes
201f096f 51883all-stage1-gcc: maybe-all-stage1-fixincludes
51884all-stage2-gcc: maybe-all-stage2-fixincludes
51885all-stage3-gcc: maybe-all-stage3-fixincludes
51886all-stage4-gcc: maybe-all-stage4-fixincludes
51887all-stageprofile-gcc: maybe-all-stageprofile-fixincludes
51888all-stagefeedback-gcc: maybe-all-stagefeedback-fixincludes
8d8eef9a 51889all-gcc: maybe-all-lto-plugin
8d8eef9a
RW
51890all-stage1-gcc: maybe-all-stage1-lto-plugin
51891all-stage2-gcc: maybe-all-stage2-lto-plugin
51892all-stage3-gcc: maybe-all-stage3-lto-plugin
51893all-stage4-gcc: maybe-all-stage4-lto-plugin
51894all-stageprofile-gcc: maybe-all-stageprofile-lto-plugin
51895all-stagefeedback-gcc: maybe-all-stagefeedback-lto-plugin
016a3251 51896all-gcc: maybe-all-libiconv
016a3251
DD
51897all-stage1-gcc: maybe-all-stage1-libiconv
51898all-stage2-gcc: maybe-all-stage2-libiconv
51899all-stage3-gcc: maybe-all-stage3-libiconv
51900all-stage4-gcc: maybe-all-stage4-libiconv
51901all-stageprofile-gcc: maybe-all-stageprofile-libiconv
51902all-stagefeedback-gcc: maybe-all-stagefeedback-libiconv
57eefe4d 51903info-gcc: maybe-all-build-libiberty
57eefe4d
RW
51904info-stage1-gcc: maybe-all-build-libiberty
51905info-stage2-gcc: maybe-all-build-libiberty
51906info-stage3-gcc: maybe-all-build-libiberty
51907info-stage4-gcc: maybe-all-build-libiberty
51908info-stageprofile-gcc: maybe-all-build-libiberty
51909info-stagefeedback-gcc: maybe-all-build-libiberty
51910dvi-gcc: maybe-all-build-libiberty
57eefe4d
RW
51911dvi-stage1-gcc: maybe-all-build-libiberty
51912dvi-stage2-gcc: maybe-all-build-libiberty
51913dvi-stage3-gcc: maybe-all-build-libiberty
51914dvi-stage4-gcc: maybe-all-build-libiberty
51915dvi-stageprofile-gcc: maybe-all-build-libiberty
51916dvi-stagefeedback-gcc: maybe-all-build-libiberty
51917pdf-gcc: maybe-all-build-libiberty
57eefe4d
RW
51918pdf-stage1-gcc: maybe-all-build-libiberty
51919pdf-stage2-gcc: maybe-all-build-libiberty
51920pdf-stage3-gcc: maybe-all-build-libiberty
51921pdf-stage4-gcc: maybe-all-build-libiberty
51922pdf-stageprofile-gcc: maybe-all-build-libiberty
51923pdf-stagefeedback-gcc: maybe-all-build-libiberty
51924html-gcc: maybe-all-build-libiberty
57eefe4d
RW
51925html-stage1-gcc: maybe-all-build-libiberty
51926html-stage2-gcc: maybe-all-build-libiberty
51927html-stage3-gcc: maybe-all-build-libiberty
51928html-stage4-gcc: maybe-all-build-libiberty
51929html-stageprofile-gcc: maybe-all-build-libiberty
51930html-stagefeedback-gcc: maybe-all-build-libiberty
69e57115 51931install-gcc: maybe-install-fixincludes
8d8eef9a 51932install-gcc: maybe-install-lto-plugin
9b980aa1 51933install-strip-gcc: maybe-install-strip-fixincludes
7ec59b9e 51934install-strip-gcc: maybe-install-strip-lto-plugin
9e6ce191 51935configure-libcpp: configure-libiberty
9e6ce191
PB
51936configure-stage1-libcpp: configure-stage1-libiberty
51937configure-stage2-libcpp: configure-stage2-libiberty
51938configure-stage3-libcpp: configure-stage3-libiberty
51939configure-stage4-libcpp: configure-stage4-libiberty
51940configure-stageprofile-libcpp: configure-stageprofile-libiberty
51941configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
51942configure-libcpp: maybe-configure-intl
9e6ce191
PB
51943configure-stage1-libcpp: maybe-configure-stage1-intl
51944configure-stage2-libcpp: maybe-configure-stage2-intl
51945configure-stage3-libcpp: maybe-configure-stage3-intl
51946configure-stage4-libcpp: maybe-configure-stage4-intl
51947configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
51948configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
016a3251 51949configure-libcpp: maybe-all-libiconv
016a3251
DD
51950configure-stage1-libcpp: maybe-all-stage1-libiconv
51951configure-stage2-libcpp: maybe-all-stage2-libiconv
51952configure-stage3-libcpp: maybe-all-stage3-libiconv
51953configure-stage4-libcpp: maybe-all-stage4-libiconv
51954configure-stageprofile-libcpp: maybe-all-stageprofile-libiconv
51955configure-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
9e6ce191 51956all-libcpp: all-libiberty
9e6ce191
PB
51957all-stage1-libcpp: all-stage1-libiberty
51958all-stage2-libcpp: all-stage2-libiberty
51959all-stage3-libcpp: all-stage3-libiberty
51960all-stage4-libcpp: all-stage4-libiberty
51961all-stageprofile-libcpp: all-stageprofile-libiberty
51962all-stagefeedback-libcpp: all-stagefeedback-libiberty
51963all-libcpp: maybe-all-intl
9e6ce191
PB
51964all-stage1-libcpp: maybe-all-stage1-intl
51965all-stage2-libcpp: maybe-all-stage2-intl
51966all-stage3-libcpp: maybe-all-stage3-intl
51967all-stage4-libcpp: maybe-all-stage4-intl
51968all-stageprofile-libcpp: maybe-all-stageprofile-intl
51969all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
016a3251 51970all-libcpp: maybe-all-libiconv
016a3251
DD
51971all-stage1-libcpp: maybe-all-stage1-libiconv
51972all-stage2-libcpp: maybe-all-stage2-libiconv
51973all-stage3-libcpp: maybe-all-stage3-libiconv
51974all-stage4-libcpp: maybe-all-stage4-libiconv
51975all-stageprofile-libcpp: maybe-all-stageprofile-libiconv
51976all-stagefeedback-libcpp: maybe-all-stagefeedback-libiconv
d3ed111c 51977all-fixincludes: maybe-all-libiberty
201f096f 51978all-stage1-fixincludes: maybe-all-stage1-libiberty
51979all-stage2-fixincludes: maybe-all-stage2-libiberty
51980all-stage3-fixincludes: maybe-all-stage3-libiberty
51981all-stage4-fixincludes: maybe-all-stage4-libiberty
51982all-stageprofile-fixincludes: maybe-all-stageprofile-libiberty
51983all-stagefeedback-fixincludes: maybe-all-stagefeedback-libiberty
b00612cc 51984all-gnattools: maybe-all-target-libada
8d8eef9a 51985all-lto-plugin: maybe-all-libiberty
8d8eef9a
RW
51986all-stage1-lto-plugin: maybe-all-stage1-libiberty
51987all-stage2-lto-plugin: maybe-all-stage2-libiberty
51988all-stage3-lto-plugin: maybe-all-stage3-libiberty
51989all-stage4-lto-plugin: maybe-all-stage4-libiberty
51990all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty
51991all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty
1b6c0831 51992all-lto-plugin: maybe-all-libiberty-linker-plugin
1b6c0831
L
51993all-stage1-lto-plugin: maybe-all-stage1-libiberty-linker-plugin
51994all-stage2-lto-plugin: maybe-all-stage2-libiberty-linker-plugin
51995all-stage3-lto-plugin: maybe-all-stage3-libiberty-linker-plugin
51996all-stage4-lto-plugin: maybe-all-stage4-libiberty-linker-plugin
51997all-stageprofile-lto-plugin: maybe-all-stageprofile-libiberty-linker-plugin
51998all-stagefeedback-lto-plugin: maybe-all-stagefeedback-libiberty-linker-plugin
1b6c0831 51999all-gotools: maybe-all-target-libgo
016a3251 52000configure-intl: maybe-all-libiconv
016a3251
DD
52001configure-stage1-intl: maybe-all-stage1-libiconv
52002configure-stage2-intl: maybe-all-stage2-libiconv
52003configure-stage3-intl: maybe-all-stage3-libiconv
52004configure-stage4-intl: maybe-all-stage4-libiconv
52005configure-stageprofile-intl: maybe-all-stageprofile-libiconv
52006configure-stagefeedback-intl: maybe-all-stagefeedback-libiconv
4b900473 52007configure-mpfr: maybe-all-gmp
4b900473
PB
52008configure-stage1-mpfr: maybe-all-stage1-gmp
52009configure-stage2-mpfr: maybe-all-stage2-gmp
52010configure-stage3-mpfr: maybe-all-stage3-gmp
52011configure-stage4-mpfr: maybe-all-stage4-gmp
52012configure-stageprofile-mpfr: maybe-all-stageprofile-gmp
52013configure-stagefeedback-mpfr: maybe-all-stagefeedback-gmp
e8a5fa9c 52014configure-mpc: maybe-all-mpfr
e8a5fa9c
RW
52015configure-stage1-mpc: maybe-all-stage1-mpfr
52016configure-stage2-mpc: maybe-all-stage2-mpfr
52017configure-stage3-mpc: maybe-all-stage3-mpfr
52018configure-stage4-mpc: maybe-all-stage4-mpfr
52019configure-stageprofile-mpc: maybe-all-stageprofile-mpfr
52020configure-stagefeedback-mpc: maybe-all-stagefeedback-mpfr
7ec59b9e 52021configure-isl: maybe-all-gmp
7ec59b9e
L
52022configure-stage1-isl: maybe-all-stage1-gmp
52023configure-stage2-isl: maybe-all-stage2-gmp
52024configure-stage3-isl: maybe-all-stage3-gmp
52025configure-stage4-isl: maybe-all-stage4-gmp
52026configure-stageprofile-isl: maybe-all-stageprofile-gmp
52027configure-stagefeedback-isl: maybe-all-stagefeedback-gmp
016a3251 52028all-intl: maybe-all-libiconv
016a3251
DD
52029all-stage1-intl: maybe-all-stage1-libiconv
52030all-stage2-intl: maybe-all-stage2-libiconv
52031all-stage3-intl: maybe-all-stage3-libiconv
52032all-stage4-intl: maybe-all-stage4-libiconv
52033all-stageprofile-intl: maybe-all-stageprofile-libiconv
52034all-stagefeedback-intl: maybe-all-stagefeedback-libiconv
9e6ce191 52035configure-gdb: maybe-configure-sim
73cc7272 52036configure-gdb: maybe-all-gnulib
01027315 52037configure-gdb: maybe-all-gdbsupport
73cc7272 52038all-gdb: maybe-all-gnulib
01027315 52039all-gdb: maybe-all-gdbsupport
9e6ce191 52040all-gdb: maybe-all-readline
72b2455a 52041all-gdb: maybe-all-build-bison
9e6ce191 52042all-gdb: maybe-all-sim
dbbe5f95 52043all-gdb: maybe-all-libtermcap
1a627e7e 52044configure-gdbserver: maybe-all-gnulib
4635ff97 52045all-gdbserver: maybe-all-gdbsupport
1a627e7e 52046all-gdbserver: maybe-all-gnulib
9e6ce191
PB
52047configure-libgui: maybe-configure-tcl
52048configure-libgui: maybe-configure-tk
52049all-libgui: maybe-all-tcl
52050all-libgui: maybe-all-tk
52051all-libgui: maybe-all-itcl
01027315
TT
52052configure-gdbsupport: maybe-configure-gnulib
52053all-gdbsupport: maybe-all-gnulib
b4a77b47 52054configure-bfd: configure-libiberty
9e6ce191
PB
52055configure-stage1-bfd: configure-stage1-libiberty
52056configure-stage2-bfd: configure-stage2-libiberty
52057configure-stage3-bfd: configure-stage3-libiberty
52058configure-stage4-bfd: configure-stage4-libiberty
52059configure-stageprofile-bfd: configure-stageprofile-libiberty
52060configure-stagefeedback-bfd: configure-stagefeedback-libiberty
20e95c23 52061configure-bfd: maybe-configure-intl
20e95c23
DJ
52062configure-stage1-bfd: maybe-configure-stage1-intl
52063configure-stage2-bfd: maybe-configure-stage2-intl
52064configure-stage3-bfd: maybe-configure-stage3-intl
52065configure-stage4-bfd: maybe-configure-stage4-intl
52066configure-stageprofile-bfd: maybe-configure-stageprofile-intl
52067configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
9e6ce191 52068all-bfd: maybe-all-libiberty
9e6ce191
PB
52069all-stage1-bfd: maybe-all-stage1-libiberty
52070all-stage2-bfd: maybe-all-stage2-libiberty
52071all-stage3-bfd: maybe-all-stage3-libiberty
52072all-stage4-bfd: maybe-all-stage4-libiberty
52073all-stageprofile-bfd: maybe-all-stageprofile-libiberty
52074all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
52075all-bfd: maybe-all-intl
9e6ce191
PB
52076all-stage1-bfd: maybe-all-stage1-intl
52077all-stage2-bfd: maybe-all-stage2-intl
52078all-stage3-bfd: maybe-all-stage3-intl
52079all-stage4-bfd: maybe-all-stage4-intl
52080all-stageprofile-bfd: maybe-all-stageprofile-intl
52081all-stagefeedback-bfd: maybe-all-stagefeedback-intl
d2d67aea 52082all-bfd: maybe-all-zlib
d2d67aea
L
52083all-stage1-bfd: maybe-all-stage1-zlib
52084all-stage2-bfd: maybe-all-stage2-zlib
52085all-stage3-bfd: maybe-all-stage3-zlib
52086all-stage4-bfd: maybe-all-stage4-zlib
52087all-stageprofile-bfd: maybe-all-stageprofile-zlib
52088all-stagefeedback-bfd: maybe-all-stagefeedback-zlib
66775d67 52089configure-opcodes: configure-libiberty
66775d67
AM
52090configure-stage1-opcodes: configure-stage1-libiberty
52091configure-stage2-opcodes: configure-stage2-libiberty
66775d67 52092configure-stage3-opcodes: configure-stage3-libiberty
66775d67
AM
52093configure-stage4-opcodes: configure-stage4-libiberty
52094configure-stageprofile-opcodes: configure-stageprofile-libiberty
52095configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
52096all-opcodes: maybe-all-libiberty
66775d67
AM
52097all-stage1-opcodes: maybe-all-stage1-libiberty
52098all-stage2-opcodes: maybe-all-stage2-libiberty
66775d67 52099all-stage3-opcodes: maybe-all-stage3-libiberty
66775d67
AM
52100all-stage4-opcodes: maybe-all-stage4-libiberty
52101all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
52102all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
20e95c23 52103configure-binutils: maybe-configure-intl
20e95c23
DJ
52104configure-stage1-binutils: maybe-configure-stage1-intl
52105configure-stage2-binutils: maybe-configure-stage2-intl
52106configure-stage3-binutils: maybe-configure-stage3-intl
52107configure-stage4-binutils: maybe-configure-stage4-intl
52108configure-stageprofile-binutils: maybe-configure-stageprofile-intl
52109configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
9e6ce191 52110all-binutils: maybe-all-libiberty
9e6ce191
PB
52111all-stage1-binutils: maybe-all-stage1-libiberty
52112all-stage2-binutils: maybe-all-stage2-libiberty
52113all-stage3-binutils: maybe-all-stage3-libiberty
52114all-stage4-binutils: maybe-all-stage4-libiberty
52115all-stageprofile-binutils: maybe-all-stageprofile-libiberty
52116all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
52117all-binutils: maybe-all-opcodes
9e6ce191
PB
52118all-stage1-binutils: maybe-all-stage1-opcodes
52119all-stage2-binutils: maybe-all-stage2-opcodes
52120all-stage3-binutils: maybe-all-stage3-opcodes
52121all-stage4-binutils: maybe-all-stage4-opcodes
52122all-stageprofile-binutils: maybe-all-stageprofile-opcodes
52123all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
52124all-binutils: maybe-all-bfd
9e6ce191
PB
52125all-stage1-binutils: maybe-all-stage1-bfd
52126all-stage2-binutils: maybe-all-stage2-bfd
52127all-stage3-binutils: maybe-all-stage3-bfd
52128all-stage4-binutils: maybe-all-stage4-bfd
52129all-stageprofile-binutils: maybe-all-stageprofile-bfd
52130all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
72b2455a 52131all-binutils: maybe-all-build-flex
72b2455a
PB
52132all-stage1-binutils: maybe-all-build-flex
52133all-stage2-binutils: maybe-all-build-flex
52134all-stage3-binutils: maybe-all-build-flex
52135all-stage4-binutils: maybe-all-build-flex
52136all-stageprofile-binutils: maybe-all-build-flex
52137all-stagefeedback-binutils: maybe-all-build-flex
72b2455a 52138all-binutils: maybe-all-build-bison
72b2455a
PB
52139all-stage1-binutils: maybe-all-build-bison
52140all-stage2-binutils: maybe-all-build-bison
52141all-stage3-binutils: maybe-all-build-bison
52142all-stage4-binutils: maybe-all-build-bison
52143all-stageprofile-binutils: maybe-all-build-bison
52144all-stagefeedback-binutils: maybe-all-build-bison
9e6ce191 52145all-binutils: maybe-all-intl
9e6ce191
PB
52146all-stage1-binutils: maybe-all-stage1-intl
52147all-stage2-binutils: maybe-all-stage2-intl
52148all-stage3-binutils: maybe-all-stage3-intl
52149all-stage4-binutils: maybe-all-stage4-intl
52150all-stageprofile-binutils: maybe-all-stageprofile-intl
52151all-stagefeedback-binutils: maybe-all-stagefeedback-intl
0140d685 52152all-binutils: maybe-all-gas
0140d685
L
52153all-stage1-binutils: maybe-all-stage1-gas
52154all-stage2-binutils: maybe-all-stage2-gas
52155all-stage3-binutils: maybe-all-stage3-gas
52156all-stage4-binutils: maybe-all-stage4-gas
52157all-stageprofile-binutils: maybe-all-stageprofile-gas
52158all-stagefeedback-binutils: maybe-all-stagefeedback-gas
0e65dfba
NA
52159all-binutils: maybe-all-libctf
52160all-stage1-binutils: maybe-all-stage1-libctf
52161all-stage2-binutils: maybe-all-stage2-libctf
52162all-stage3-binutils: maybe-all-stage3-libctf
52163all-stage4-binutils: maybe-all-stage4-libctf
52164all-stageprofile-binutils: maybe-all-stageprofile-libctf
52165all-stagefeedback-binutils: maybe-all-stagefeedback-libctf
1ff6de03
NA
52166all-ld: maybe-all-libctf
52167all-stage1-ld: maybe-all-stage1-libctf
52168all-stage2-ld: maybe-all-stage2-libctf
52169all-stage3-ld: maybe-all-stage3-libctf
52170all-stage4-ld: maybe-all-stage4-libctf
52171all-stageprofile-ld: maybe-all-stageprofile-libctf
52172all-stagefeedback-ld: maybe-all-stagefeedback-libctf
ae831be5 52173install-binutils: maybe-install-opcodes
9b980aa1 52174install-strip-binutils: maybe-install-strip-opcodes
755ba58e
NA
52175install-libctf: maybe-install-bfd
52176install-ld: maybe-install-bfd
52177install-ld: maybe-install-libctf
52178install-strip-libctf: maybe-install-strip-bfd
52179install-strip-ld: maybe-install-strip-bfd
52180install-strip-ld: maybe-install-strip-libctf
cf662e21 52181install-opcodes: maybe-install-bfd
9b980aa1 52182install-strip-opcodes: maybe-install-strip-bfd
20e95c23 52183configure-gas: maybe-configure-intl
20e95c23
DJ
52184configure-stage1-gas: maybe-configure-stage1-intl
52185configure-stage2-gas: maybe-configure-stage2-intl
52186configure-stage3-gas: maybe-configure-stage3-intl
52187configure-stage4-gas: maybe-configure-stage4-intl
52188configure-stageprofile-gas: maybe-configure-stageprofile-intl
52189configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
9e6ce191 52190all-gas: maybe-all-libiberty
9e6ce191
PB
52191all-stage1-gas: maybe-all-stage1-libiberty
52192all-stage2-gas: maybe-all-stage2-libiberty
52193all-stage3-gas: maybe-all-stage3-libiberty
52194all-stage4-gas: maybe-all-stage4-libiberty
52195all-stageprofile-gas: maybe-all-stageprofile-libiberty
52196all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
52197all-gas: maybe-all-opcodes
9e6ce191
PB
52198all-stage1-gas: maybe-all-stage1-opcodes
52199all-stage2-gas: maybe-all-stage2-opcodes
52200all-stage3-gas: maybe-all-stage3-opcodes
52201all-stage4-gas: maybe-all-stage4-opcodes
52202all-stageprofile-gas: maybe-all-stageprofile-opcodes
52203all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
52204all-gas: maybe-all-bfd
9e6ce191
PB
52205all-stage1-gas: maybe-all-stage1-bfd
52206all-stage2-gas: maybe-all-stage2-bfd
52207all-stage3-gas: maybe-all-stage3-bfd
52208all-stage4-gas: maybe-all-stage4-bfd
52209all-stageprofile-gas: maybe-all-stageprofile-bfd
52210all-stagefeedback-gas: maybe-all-stagefeedback-bfd
52211all-gas: maybe-all-intl
9e6ce191
PB
52212all-stage1-gas: maybe-all-stage1-intl
52213all-stage2-gas: maybe-all-stage2-intl
52214all-stage3-gas: maybe-all-stage3-intl
52215all-stage4-gas: maybe-all-stage4-intl
52216all-stageprofile-gas: maybe-all-stageprofile-intl
52217all-stagefeedback-gas: maybe-all-stagefeedback-intl
20e95c23 52218configure-ld: maybe-configure-intl
20e95c23
DJ
52219configure-stage1-ld: maybe-configure-stage1-intl
52220configure-stage2-ld: maybe-configure-stage2-intl
52221configure-stage3-ld: maybe-configure-stage3-intl
52222configure-stage4-ld: maybe-configure-stage4-intl
52223configure-stageprofile-ld: maybe-configure-stageprofile-intl
52224configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
9e6ce191 52225all-ld: maybe-all-libiberty
9e6ce191
PB
52226all-stage1-ld: maybe-all-stage1-libiberty
52227all-stage2-ld: maybe-all-stage2-libiberty
52228all-stage3-ld: maybe-all-stage3-libiberty
52229all-stage4-ld: maybe-all-stage4-libiberty
52230all-stageprofile-ld: maybe-all-stageprofile-libiberty
52231all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
52232all-ld: maybe-all-bfd
9e6ce191
PB
52233all-stage1-ld: maybe-all-stage1-bfd
52234all-stage2-ld: maybe-all-stage2-bfd
52235all-stage3-ld: maybe-all-stage3-bfd
52236all-stage4-ld: maybe-all-stage4-bfd
52237all-stageprofile-ld: maybe-all-stageprofile-bfd
52238all-stagefeedback-ld: maybe-all-stagefeedback-bfd
52239all-ld: maybe-all-opcodes
9e6ce191
PB
52240all-stage1-ld: maybe-all-stage1-opcodes
52241all-stage2-ld: maybe-all-stage2-opcodes
52242all-stage3-ld: maybe-all-stage3-opcodes
52243all-stage4-ld: maybe-all-stage4-opcodes
52244all-stageprofile-ld: maybe-all-stageprofile-opcodes
52245all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
72b2455a 52246all-ld: maybe-all-build-bison
72b2455a
PB
52247all-stage1-ld: maybe-all-build-bison
52248all-stage2-ld: maybe-all-build-bison
52249all-stage3-ld: maybe-all-build-bison
52250all-stage4-ld: maybe-all-build-bison
52251all-stageprofile-ld: maybe-all-build-bison
52252all-stagefeedback-ld: maybe-all-build-bison
72b2455a 52253all-ld: maybe-all-build-flex
72b2455a
PB
52254all-stage1-ld: maybe-all-build-flex
52255all-stage2-ld: maybe-all-build-flex
52256all-stage3-ld: maybe-all-build-flex
52257all-stage4-ld: maybe-all-build-flex
52258all-stageprofile-ld: maybe-all-build-flex
52259all-stagefeedback-ld: maybe-all-build-flex
9e6ce191 52260all-ld: maybe-all-intl
9e6ce191
PB
52261all-stage1-ld: maybe-all-stage1-intl
52262all-stage2-ld: maybe-all-stage2-intl
52263all-stage3-ld: maybe-all-stage3-intl
52264all-stage4-ld: maybe-all-stage4-intl
52265all-stageprofile-ld: maybe-all-stageprofile-intl
52266all-stagefeedback-ld: maybe-all-stagefeedback-intl
0140d685 52267all-ld: maybe-all-gas
0140d685
L
52268all-stage1-ld: maybe-all-stage1-gas
52269all-stage2-ld: maybe-all-stage2-gas
52270all-stage3-ld: maybe-all-stage3-gas
52271all-stage4-ld: maybe-all-stage4-gas
52272all-stageprofile-ld: maybe-all-stageprofile-gas
52273all-stagefeedback-ld: maybe-all-stagefeedback-gas
a6305403 52274all-ld: maybe-all-binutils
a6305403
YS
52275all-stage1-ld: maybe-all-stage1-binutils
52276all-stage2-ld: maybe-all-stage2-binutils
52277all-stage3-ld: maybe-all-stage3-binutils
52278all-stage4-ld: maybe-all-stage4-binutils
52279all-stageprofile-ld: maybe-all-stageprofile-binutils
52280all-stagefeedback-ld: maybe-all-stagefeedback-binutils
e6de499b 52281install-ld: maybe-install-gold
9b980aa1 52282install-strip-ld: maybe-install-strip-gold
93f9b408 52283configure-gold: maybe-configure-intl
93f9b408
ILT
52284configure-stage1-gold: maybe-configure-stage1-intl
52285configure-stage2-gold: maybe-configure-stage2-intl
93f9b408 52286configure-stage3-gold: maybe-configure-stage3-intl
93f9b408
ILT
52287configure-stage4-gold: maybe-configure-stage4-intl
52288configure-stageprofile-gold: maybe-configure-stageprofile-intl
52289configure-stagefeedback-gold: maybe-configure-stagefeedback-intl
52290all-gold: maybe-all-libiberty
93f9b408
ILT
52291all-stage1-gold: maybe-all-stage1-libiberty
52292all-stage2-gold: maybe-all-stage2-libiberty
93f9b408 52293all-stage3-gold: maybe-all-stage3-libiberty
93f9b408
ILT
52294all-stage4-gold: maybe-all-stage4-libiberty
52295all-stageprofile-gold: maybe-all-stageprofile-libiberty
52296all-stagefeedback-gold: maybe-all-stagefeedback-libiberty
52297all-gold: maybe-all-intl
93f9b408
ILT
52298all-stage1-gold: maybe-all-stage1-intl
52299all-stage2-gold: maybe-all-stage2-intl
93f9b408 52300all-stage3-gold: maybe-all-stage3-intl
93f9b408
ILT
52301all-stage4-gold: maybe-all-stage4-intl
52302all-stageprofile-gold: maybe-all-stageprofile-intl
52303all-stagefeedback-gold: maybe-all-stagefeedback-intl
52304all-gold: maybe-all-bfd
93f9b408
ILT
52305all-stage1-gold: maybe-all-stage1-bfd
52306all-stage2-gold: maybe-all-stage2-bfd
93f9b408 52307all-stage3-gold: maybe-all-stage3-bfd
93f9b408
ILT
52308all-stage4-gold: maybe-all-stage4-bfd
52309all-stageprofile-gold: maybe-all-stageprofile-bfd
52310all-stagefeedback-gold: maybe-all-stagefeedback-bfd
52311all-gold: maybe-all-build-bison
93f9b408
ILT
52312all-stage1-gold: maybe-all-build-bison
52313all-stage2-gold: maybe-all-build-bison
93f9b408 52314all-stage3-gold: maybe-all-build-bison
93f9b408
ILT
52315all-stage4-gold: maybe-all-build-bison
52316all-stageprofile-gold: maybe-all-build-bison
52317all-stagefeedback-gold: maybe-all-build-bison
0140d685 52318all-gold: maybe-all-gas
0140d685
L
52319all-stage1-gold: maybe-all-stage1-gas
52320all-stage2-gold: maybe-all-stage2-gas
52321all-stage3-gold: maybe-all-stage3-gas
52322all-stage4-gold: maybe-all-stage4-gas
52323all-stageprofile-gold: maybe-all-stageprofile-gas
52324all-stagefeedback-gold: maybe-all-stagefeedback-gas
e5164e97 52325check-gold: maybe-all-binutils
e5164e97
ILT
52326check-stage1-gold: maybe-all-stage1-binutils
52327check-stage2-gold: maybe-all-stage2-binutils
e5164e97 52328check-stage3-gold: maybe-all-stage3-binutils
e5164e97
ILT
52329check-stage4-gold: maybe-all-stage4-binutils
52330check-stageprofile-gold: maybe-all-stageprofile-binutils
52331check-stagefeedback-gold: maybe-all-stagefeedback-binutils
700d40ca 52332check-gold: maybe-all-gas
700d40ca
ILT
52333check-stage1-gold: maybe-all-stage1-gas
52334check-stage2-gold: maybe-all-stage2-gas
52335check-stage3-gold: maybe-all-stage3-gas
52336check-stage4-gold: maybe-all-stage4-gas
52337check-stageprofile-gold: maybe-all-stageprofile-gas
52338check-stagefeedback-gold: maybe-all-stagefeedback-gas
7206a0ee 52339configure-opcodes: maybe-configure-intl
7206a0ee
JJ
52340configure-stage1-opcodes: maybe-configure-stage1-intl
52341configure-stage2-opcodes: maybe-configure-stage2-intl
52342configure-stage3-opcodes: maybe-configure-stage3-intl
52343configure-stage4-opcodes: maybe-configure-stage4-intl
52344configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
52345configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
9e6ce191 52346all-opcodes: maybe-all-bfd
9e6ce191
PB
52347all-stage1-opcodes: maybe-all-stage1-bfd
52348all-stage2-opcodes: maybe-all-stage2-bfd
52349all-stage3-opcodes: maybe-all-stage3-bfd
52350all-stage4-opcodes: maybe-all-stage4-bfd
52351all-stageprofile-opcodes: maybe-all-stageprofile-bfd
52352all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
52353all-opcodes: maybe-all-libiberty
9e6ce191
PB
52354all-stage1-opcodes: maybe-all-stage1-libiberty
52355all-stage2-opcodes: maybe-all-stage2-libiberty
52356all-stage3-opcodes: maybe-all-stage3-libiberty
52357all-stage4-opcodes: maybe-all-stage4-libiberty
52358all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
52359all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
7206a0ee 52360all-opcodes: maybe-all-intl
7206a0ee
JJ
52361all-stage1-opcodes: maybe-all-stage1-intl
52362all-stage2-opcodes: maybe-all-stage2-intl
52363all-stage3-opcodes: maybe-all-stage3-intl
52364all-stage4-opcodes: maybe-all-stage4-intl
52365all-stageprofile-opcodes: maybe-all-stageprofile-intl
52366all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
9e6ce191
PB
52367all-dejagnu: maybe-all-tcl
52368all-dejagnu: maybe-all-expect
52369all-dejagnu: maybe-all-tk
52370configure-expect: maybe-configure-tcl
52371configure-expect: maybe-configure-tk
52372all-expect: maybe-all-tcl
52373all-expect: maybe-all-tk
52374configure-itcl: maybe-configure-tcl
52375configure-itcl: maybe-configure-tk
52376all-itcl: maybe-all-tcl
52377all-itcl: maybe-all-tk
ae831be5 52378install-itcl: maybe-install-tcl
9b980aa1 52379install-strip-itcl: maybe-install-strip-tcl
b4a77b47 52380configure-tk: maybe-configure-tcl
ae831be5 52381all-tk: maybe-all-tcl
9e6ce191
PB
52382all-sid: maybe-all-tcl
52383all-sid: maybe-all-tk
52384install-sid: maybe-install-tcl
9b980aa1 52385install-strip-sid: maybe-install-strip-tcl
9e6ce191 52386install-sid: maybe-install-tk
9b980aa1 52387install-strip-sid: maybe-install-strip-tk
9cc11ab5 52388configure-sim: maybe-all-gnulib
9e6ce191 52389all-sim: maybe-all-readline
72b2455a 52390all-fastjar: maybe-all-build-texinfo
0e65dfba
NA
52391all-libctf: all-libiberty
52392all-stage1-libctf: all-stage1-libiberty
52393all-stage2-libctf: all-stage2-libiberty
52394all-stage3-libctf: all-stage3-libiberty
52395all-stage4-libctf: all-stage4-libiberty
52396all-stageprofile-libctf: all-stageprofile-libiberty
52397all-stagefeedback-libctf: all-stagefeedback-libiberty
52398all-libctf: maybe-all-bfd
52399all-stage1-libctf: maybe-all-stage1-bfd
52400all-stage2-libctf: maybe-all-stage2-bfd
52401all-stage3-libctf: maybe-all-stage3-bfd
52402all-stage4-libctf: maybe-all-stage4-bfd
52403all-stageprofile-libctf: maybe-all-stageprofile-bfd
52404all-stagefeedback-libctf: maybe-all-stagefeedback-bfd
52405all-libctf: maybe-all-zlib
52406all-stage1-libctf: maybe-all-stage1-zlib
52407all-stage2-libctf: maybe-all-stage2-zlib
52408all-stage3-libctf: maybe-all-stage3-zlib
52409all-stage4-libctf: maybe-all-stage4-zlib
52410all-stageprofile-libctf: maybe-all-stageprofile-zlib
52411all-stagefeedback-libctf: maybe-all-stagefeedback-zlib
9698cf9b
NA
52412configure-libctf: maybe-all-bfd
52413configure-stage1-libctf: maybe-all-stage1-bfd
52414configure-stage2-libctf: maybe-all-stage2-bfd
52415configure-stage3-libctf: maybe-all-stage3-bfd
52416configure-stage4-libctf: maybe-all-stage4-bfd
52417configure-stageprofile-libctf: maybe-all-stageprofile-bfd
52418configure-stagefeedback-libctf: maybe-all-stagefeedback-bfd
52419configure-libctf: maybe-all-intl
52420configure-stage1-libctf: maybe-all-stage1-intl
52421configure-stage2-libctf: maybe-all-stage2-intl
52422configure-stage3-libctf: maybe-all-stage3-intl
52423configure-stage4-libctf: maybe-all-stage4-intl
52424configure-stageprofile-libctf: maybe-all-stageprofile-intl
52425configure-stagefeedback-libctf: maybe-all-stagefeedback-intl
52426configure-libctf: maybe-all-zlib
52427configure-stage1-libctf: maybe-all-stage1-zlib
52428configure-stage2-libctf: maybe-all-stage2-zlib
52429configure-stage3-libctf: maybe-all-stage3-zlib
52430configure-stage4-libctf: maybe-all-stage4-zlib
52431configure-stageprofile-libctf: maybe-all-stageprofile-zlib
52432configure-stagefeedback-libctf: maybe-all-stagefeedback-zlib
52433configure-libctf: maybe-all-libiconv
52434configure-stage1-libctf: maybe-all-stage1-libiconv
52435configure-stage2-libctf: maybe-all-stage2-libiconv
52436configure-stage3-libctf: maybe-all-stage3-libiconv
52437configure-stage4-libctf: maybe-all-stage4-libiconv
52438configure-stageprofile-libctf: maybe-all-stageprofile-libiconv
52439configure-stagefeedback-libctf: maybe-all-stagefeedback-libiconv
c59e30ed
NA
52440check-libctf: maybe-all-ld
52441check-stage1-libctf: maybe-all-stage1-ld
52442check-stage2-libctf: maybe-all-stage2-ld
52443check-stage3-libctf: maybe-all-stage3-ld
52444check-stage4-libctf: maybe-all-stage4-ld
52445check-stageprofile-libctf: maybe-all-stageprofile-ld
52446check-stagefeedback-libctf: maybe-all-stagefeedback-ld
ba4d88ad
AB
52447distclean-gnulib: maybe-distclean-gdb
52448distclean-gnulib: maybe-distclean-gdbserver
72b2455a 52449all-bison: maybe-all-build-texinfo
72b2455a 52450all-flex: maybe-all-build-bison
9e6ce191 52451all-flex: maybe-all-m4
72b2455a 52452all-flex: maybe-all-build-texinfo
72b2455a 52453all-m4: maybe-all-build-texinfo
b4a77b47 52454configure-target-fastjar: maybe-configure-target-zlib
9e6ce191 52455all-target-fastjar: maybe-all-target-zlib
e552509b 52456configure-target-libgo: maybe-configure-target-libffi
8e71395b 52457all-target-libgo: maybe-all-target-libbacktrace
e552509b 52458all-target-libgo: maybe-all-target-libffi
9417cd2f 52459all-target-libgo: maybe-all-target-libatomic
cff87f51 52460configure-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
52461configure-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
52462configure-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
52463configure-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
52464configure-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
52465configure-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
52466configure-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
5286fdef 52467configure-target-libsanitizer: maybe-all-target-libstdc++-v3
5eb08693
L
52468configure-stage1-target-libsanitizer: maybe-all-stage1-target-libstdc++-v3
52469configure-stage2-target-libsanitizer: maybe-all-stage2-target-libstdc++-v3
52470configure-stage3-target-libsanitizer: maybe-all-stage3-target-libstdc++-v3
52471configure-stage4-target-libsanitizer: maybe-all-stage4-target-libstdc++-v3
52472configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libstdc++-v3
52473configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libstdc++-v3
95e43135 52474configure-target-libvtv: maybe-all-target-libstdc++-v3
95e43135
JBG
52475configure-stage1-target-libvtv: maybe-all-stage1-target-libstdc++-v3
52476configure-stage2-target-libvtv: maybe-all-stage2-target-libstdc++-v3
52477configure-stage3-target-libvtv: maybe-all-stage3-target-libstdc++-v3
52478configure-stage4-target-libvtv: maybe-all-stage4-target-libstdc++-v3
52479configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libstdc++-v3
52480configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libstdc++-v3
911e63d0 52481all-target-libstdc++-v3: maybe-configure-target-libgomp
911e63d0
JR
52482all-stage1-target-libstdc++-v3: maybe-configure-stage1-target-libgomp
52483all-stage2-target-libstdc++-v3: maybe-configure-stage2-target-libgomp
52484all-stage3-target-libstdc++-v3: maybe-configure-stage3-target-libgomp
52485all-stage4-target-libstdc++-v3: maybe-configure-stage4-target-libgomp
52486all-stageprofile-target-libstdc++-v3: maybe-configure-stageprofile-target-libgomp
52487all-stagefeedback-target-libstdc++-v3: maybe-configure-stagefeedback-target-libgomp
9417cd2f
JBG
52488install-target-libgo: maybe-install-target-libatomic
52489install-target-libgfortran: maybe-install-target-libquadmath
52490install-target-libgfortran: maybe-install-target-libgcc
3dae1673 52491install-target-libsanitizer: maybe-install-target-libstdc++-v3
9417cd2f 52492install-target-libsanitizer: maybe-install-target-libgcc
95e43135
JBG
52493install-target-libvtv: maybe-install-target-libstdc++-v3
52494install-target-libvtv: maybe-install-target-libgcc
e3f56a99
NC
52495install-target-libcilkrts: maybe-install-target-libstdc++-v3
52496install-target-libcilkrts: maybe-install-target-libgcc
1b6c0831
L
52497install-target-liboffloadmic: maybe-install-target-libstdc++-v3
52498install-target-liboffloadmic: maybe-install-target-libgcc
9417cd2f
JBG
52499install-target-libitm: maybe-install-target-libgcc
52500install-target-libobjc: maybe-install-target-libgcc
52501install-target-libstdc++-v3: maybe-install-target-libgcc
2c133ff9 52502all-target-libgloss: maybe-all-target-newlib
9e6ce191 52503all-target-winsup: maybe-all-target-libtermcap
e552509b 52504configure-target-libgfortran: maybe-all-target-libquadmath
68996839 52505configure-target-libgfortran: maybe-all-target-libbacktrace
9e6ce191
PB
52506
52507
4119873a
AO
52508@if gcc-bootstrap
52509configure-gnattools: stage_last
52510configure-libcc1: stage_last
52511configure-utils: stage_last
52512configure-gdb: stage_last
1a627e7e 52513configure-gdbserver: stage_last
01027315 52514configure-gdbsupport: stage_last
4119873a
AO
52515configure-gprof: stage_last
52516configure-sid: stage_last
52517configure-sim: stage_last
52518configure-fastjar: stage_last
52519configure-bison: stage_last
52520configure-flex: stage_last
52521configure-m4: stage_last
52522@endif gcc-bootstrap
52523
52524@unless gcc-bootstrap
52525all-gnattools: maybe-all-target-libstdc++-v3
52526configure-libcc1: maybe-configure-gcc
52527all-libcc1: maybe-all-gcc
52528all-utils: maybe-all-libiberty
52529configure-gdb: maybe-all-intl
52530configure-gdb: maybe-all-bfd
52531configure-gdb: maybe-all-libiconv
52532all-gdb: maybe-all-libiberty
52533all-gdb: maybe-all-libiconv
52534all-gdb: maybe-all-opcodes
52535all-gdb: maybe-all-libdecnumber
30d1f018 52536all-gdb: maybe-all-libctf
1a627e7e 52537all-gdbserver: maybe-all-libiberty
9a665d62 52538configure-gdbsupport: maybe-configure-intl
9a665d62 52539all-gdbsupport: maybe-all-intl
4119873a
AO
52540configure-gprof: maybe-configure-intl
52541all-gprof: maybe-all-libiberty
52542all-gprof: maybe-all-bfd
52543all-gprof: maybe-all-opcodes
52544all-gprof: maybe-all-intl
52545all-gprof: maybe-all-gas
52546all-sid: maybe-all-libiberty
52547all-sid: maybe-all-bfd
52548all-sid: maybe-all-opcodes
52549configure-sim: maybe-configure-intl
52550all-sim: maybe-all-intl
52551all-sim: maybe-all-libiberty
52552all-sim: maybe-all-bfd
52553all-sim: maybe-all-opcodes
52554all-fastjar: maybe-all-zlib
52555all-fastjar: maybe-all-libiberty
52556all-bison: maybe-all-intl
52557all-flex: maybe-all-intl
52558all-m4: maybe-all-intl
52559configure-target-libgo: maybe-all-target-libstdc++-v3
52560configure-target-liboffloadmic: maybe-configure-target-libgomp
52561all-target-liboffloadmic: maybe-all-target-libgomp
52562configure-target-newlib: maybe-all-binutils
52563configure-target-newlib: maybe-all-ld
52564@endunless gcc-bootstrap
52565
6aa8ef82
DJ
52566# Dependencies for target modules on other target modules are
52567# described by lang_env_dependencies; the defaults apply to anything
52568# not mentioned there.
52569
52570
52571@if gcc-bootstrap
e8a5fa9c
RW
52572configure-stage1-target-libstdc++-v3: maybe-all-stage1-target-libgcc
52573configure-stage2-target-libstdc++-v3: maybe-all-stage2-target-libgcc
52574configure-stage3-target-libstdc++-v3: maybe-all-stage3-target-libgcc
52575configure-stage4-target-libstdc++-v3: maybe-all-stage4-target-libgcc
52576configure-stageprofile-target-libstdc++-v3: maybe-all-stageprofile-target-libgcc
52577configure-stagefeedback-target-libstdc++-v3: maybe-all-stagefeedback-target-libgcc
5eb08693
L
52578configure-stage1-target-libsanitizer: maybe-all-stage1-target-libgcc
52579configure-stage2-target-libsanitizer: maybe-all-stage2-target-libgcc
52580configure-stage3-target-libsanitizer: maybe-all-stage3-target-libgcc
52581configure-stage4-target-libsanitizer: maybe-all-stage4-target-libgcc
52582configure-stageprofile-target-libsanitizer: maybe-all-stageprofile-target-libgcc
52583configure-stagefeedback-target-libsanitizer: maybe-all-stagefeedback-target-libgcc
1b6c0831
L
52584configure-stage1-target-libmpx: maybe-all-stage1-target-libgcc
52585configure-stage2-target-libmpx: maybe-all-stage2-target-libgcc
52586configure-stage3-target-libmpx: maybe-all-stage3-target-libgcc
52587configure-stage4-target-libmpx: maybe-all-stage4-target-libgcc
52588configure-stageprofile-target-libmpx: maybe-all-stageprofile-target-libgcc
52589configure-stagefeedback-target-libmpx: maybe-all-stagefeedback-target-libgcc
95e43135
JBG
52590configure-stage1-target-libvtv: maybe-all-stage1-target-libgcc
52591configure-stage2-target-libvtv: maybe-all-stage2-target-libgcc
52592configure-stage3-target-libvtv: maybe-all-stage3-target-libgcc
52593configure-stage4-target-libvtv: maybe-all-stage4-target-libgcc
52594configure-stageprofile-target-libvtv: maybe-all-stageprofile-target-libgcc
52595configure-stagefeedback-target-libvtv: maybe-all-stagefeedback-target-libgcc
911e63d0
JR
52596configure-stage1-target-libgomp: maybe-all-stage1-target-libgcc
52597configure-stage2-target-libgomp: maybe-all-stage2-target-libgcc
52598configure-stage3-target-libgomp: maybe-all-stage3-target-libgcc
52599configure-stage4-target-libgomp: maybe-all-stage4-target-libgcc
52600configure-stageprofile-target-libgomp: maybe-all-stageprofile-target-libgcc
52601configure-stagefeedback-target-libgomp: maybe-all-stagefeedback-target-libgcc
6aa8ef82
DJ
52602@endif gcc-bootstrap
52603
52604@if gcc-no-bootstrap
52605configure-target-libstdc++-v3: maybe-all-target-libgcc
5286fdef 52606configure-target-libsanitizer: maybe-all-target-libgcc
1b6c0831 52607configure-target-libmpx: maybe-all-target-libgcc
95e43135 52608configure-target-libvtv: maybe-all-target-libgcc
e3f56a99 52609configure-target-libcilkrts: maybe-all-target-libgcc
1b6c0831 52610configure-target-liboffloadmic: maybe-all-target-libgcc
e78e02e6 52611configure-target-libssp: maybe-all-target-libgcc
6aa8ef82 52612configure-target-newlib: maybe-all-target-libgcc
2bf680c4 52613configure-target-libbacktrace: maybe-all-target-libgcc
e552509b 52614configure-target-libquadmath: maybe-all-target-libgcc
6aa8ef82
DJ
52615configure-target-libgfortran: maybe-all-target-libgcc
52616configure-target-libobjc: maybe-all-target-libgcc
e552509b 52617configure-target-libgo: maybe-all-target-libgcc
6aa8ef82
DJ
52618configure-target-libtermcap: maybe-all-target-libgcc
52619configure-target-winsup: maybe-all-target-libgcc
52620configure-target-libgloss: maybe-all-target-libgcc
6aa8ef82 52621configure-target-libffi: maybe-all-target-libgcc
6aa8ef82 52622configure-target-zlib: maybe-all-target-libgcc
6aa8ef82
DJ
52623configure-target-rda: maybe-all-target-libgcc
52624configure-target-libada: maybe-all-target-libgcc
52625configure-target-libgomp: maybe-all-target-libgcc
7ec59b9e
L
52626configure-target-libitm: maybe-all-target-libgcc
52627configure-target-libatomic: maybe-all-target-libgcc
6aa8ef82
DJ
52628@endif gcc-no-bootstrap
52629
52630
52631configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
52632
5286fdef
L
52633configure-target-libsanitizer: maybe-all-target-newlib maybe-all-target-libgloss
52634
1b6c0831
L
52635configure-target-libmpx: maybe-all-target-newlib maybe-all-target-libgloss
52636
95e43135
JBG
52637configure-target-libvtv: maybe-all-target-newlib maybe-all-target-libgloss
52638
e3f56a99
NC
52639configure-target-libcilkrts: maybe-all-target-newlib maybe-all-target-libgloss
52640configure-target-libcilkrts: maybe-all-target-libstdc++-v3
52641
1b6c0831
L
52642configure-target-liboffloadmic: maybe-all-target-newlib maybe-all-target-libgloss
52643configure-target-liboffloadmic: maybe-all-target-libstdc++-v3
52644
6aa8ef82
DJ
52645configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
52646
52647
52648
2bf680c4
ILT
52649configure-target-libbacktrace: maybe-all-target-newlib maybe-all-target-libgloss
52650
e552509b
ILT
52651configure-target-libquadmath: maybe-all-target-newlib maybe-all-target-libgloss
52652
6aa8ef82
DJ
52653configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
52654
52655configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
52656
e552509b
ILT
52657configure-target-libgo: maybe-all-target-newlib maybe-all-target-libgloss
52658
6aa8ef82
DJ
52659configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
52660
52661configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
52662
52663
6aa8ef82 52664configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
4849dfd8 52665configure-target-libffi: maybe-all-target-libstdc++-v3
6aa8ef82 52666
6aa8ef82
DJ
52667configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
52668
6aa8ef82
DJ
52669configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
52670
52671configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
52672
52673configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
52674
7ec59b9e
L
52675configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
52676configure-target-libitm: maybe-all-target-libstdc++-v3
52677
52678configure-target-libatomic: maybe-all-target-newlib maybe-all-target-libgloss
52679
6aa8ef82 52680
907be67c 52681CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
9e6ce191 52682GDB_TK = @GDB_TK@
907be67c
DJ
52683INSTALL_GDB_TK = @INSTALL_GDB_TK@
52684configure-gdb: $(CONFIGURE_GDB_TK)
9e6ce191 52685all-gdb: $(gdbnlmrequirements) $(GDB_TK)
907be67c 52686install-gdb: $(INSTALL_GDB_TK)
907a7241 52687
a2cc058a
NN
52688# Serialization dependencies. Host configures don't work well in parallel to
52689# each other, due to contention over config.cache. Target configures and
52690# build configures are similar.
52691@serialization_dependencies@
52692
15723a45
NN
52693# --------------------------------
52694# Regenerating top level configury
52695# --------------------------------
252b5132 52696
14a2a2f1 52697# Rebuilding Makefile.in, using autogen.
43be203f 52698AUTOGEN = autogen
6b784d9f 52699$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
43be203f 52700 cd $(srcdir) && $(AUTOGEN) Makefile.def
14a2a2f1 52701
a0da8069 52702# Rebuilding Makefile.
43be203f
AO
52703Makefile: $(srcdir)/Makefile.in config.status
52704 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
52705
479759c8 52706config.status: configure
10ecffb9 52707 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
252b5132 52708
a0da8069 52709# Rebuilding configure.
43be203f 52710AUTOCONF = autoconf
da888c87 52711$(srcdir)/configure: @MAINT@ $(srcdir)/configure.ac $(srcdir)/config/acx.m4 \
0597bdc4
AM
52712 $(srcdir)/config/override.m4 $(srcdir)/config/proginstall.m4 \
52713 $(srcdir)/config/elf.m4 $(srcdir)/config/isl.m4 \
50ad1254 52714 $(srcdir)/config/gcc-plugin.m4 \
0597bdc4
AM
52715 $(srcdir)/libtool.m4 $(srcdir)/ltoptions.m4 $(srcdir)/ltsugar.m4 \
52716 $(srcdir)/ltversion.m4 $(srcdir)/lt~obsolete.m4
43be203f 52717 cd $(srcdir) && $(AUTOCONF)
252b5132 52718
3728fade
NN
52719# ------------------------------
52720# Special directives to GNU Make
52721# ------------------------------
52722
3728fade
NN
52723# Don't pass command-line variables to submakes.
52724.NOEXPORT:
52725MAKEOVERRIDES=
52726
252b5132 52727# end of Makefile.in
This page took 5.514565 seconds and 4 git commands to generate.